Skip to content

Contract Framework

Antonio Yang edited this page Mar 7, 2022 · 5 revisions

Contract Framework

Sewup is one of Rust contract frameworks, there are also others in different domain. Here is the summary help you know the different.

\ Sewup Ink! Solana
Blockchain Ecosystem Ethereum based Substrate based Solana base
Binary format i ethereum WASM ink WASM solana eBPF
Low level api ethereum_api seal0 BPF helper calls
Executor Ewasm runtime Wasmtime VM Kernel mode service
---------------------- -------------------- -------------------------- --------------------------------
build tool cargo-sewup cargo-contract cargo-builbpf
test environment Test runtime ii Native iii Solana Runtime
Develop environment Linux/Windows iv Linux/Windows Linux
---------------------- -------------------- -------------------------- --------------------------------
client tools web3.js v polkadot.js
client language Raw Rust SDK :JS/Go/C#/RustPython JSON PRC API SDK (Rust/JS SDK)
    1. There are abi in wasm and bpf, so these format still can use with other program using wasm and bpf.
    1. Test runtime is based on Wasmedge(SSVM) 6.3.1
    1. Test does not really running environment on chain, only for business logic testing.
    1. Windows possible after upgrade wasmedge, and the test runtime can work on windows.
    1. token feature is supported, and need to provide abi_json and parsing correctly.