Skip to content
This repository has been archived by the owner on Feb 14, 2021. It is now read-only.

Sample repo contract written in Rust and compiled to WebAssembly

License

Notifications You must be signed in to change notification settings

openethereum/pwasm-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

Sample repo contract written in Rust and compiled to WebAssembly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published