Skip to content

openvapory/twasm-repo-contract

Repository files navigation

Build Status

Description

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.

Build prerequisites

Install rust with wasm32-unknown-unknown target:

rustup target add wasm32-unknown-unknown

Install Wasm build util:

cargo install pwasm-utils --bin wasm-build

Build

Run:

./build.sh

Testing

cargo test --manifest-path="contract/Cargo.toml" --features std

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •