Is there any ewasm smart contract for testing?

The example contracts of parity cannot be deployed due to exceeding block gas https://github.com/paritytech/pwasm-tutorial/


The de-facto Hello World contract is WRC-20, which is essentially a subset of ERC20 implemented in Ewasm.It is implemented in a few languages as an example.

In C: https://github.com/ewasm/wrc20-examples/blob/3553ea7c87fcb1012e6d76c28ba0cbe878fe55c2/C/wrc20.c

In Rust, also implementing all of WRC20: https://github.com/hugo-dc/wrc20-rust/blob/master/src/ewasm_token.rs

Apologies for that, we really need to store the examples centrally. Hopefully this helps.

To clarify some other misconceptions: Kovan is now sunsetted, and also it implements Parity Wasm (Pwasm) rather than Ewasm. The Ewasm testnet is available here: https://ewasm.ethereum.org

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.