Name: pwasm-repo-contract
Owner: Parity Technologies
Description: Sample repo contract written in Rust and compiled to WebAssembly
Created: 2017-12-13 13:28:36.0
Updated: 2018-05-22 11:18:35.0
Pushed: 2018-03-16 14:36:51.0
Size: 79
Language: Rust
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A simple contract allows to lend some amount of particular ERC20 token (impl by https://github.com/paritytech/pwasm-token-example) for some interest. It demonstrates how WASM contracts can depend on each other and communicate through ABI. It shows also how to mock callee contract in the test environment.
Install rust with wasm32-unknown-unknown
target:
up target add wasm32-unknown-unknown --toolchain nightly
Install Wasm build util:
o install --git https://github.com/paritytech/wasm-utils wasm-build
Run:
ild.sh
o test --manifest-path="contract/Cargo.toml" --features std