paritytech/pwasm-repo-contract

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

Homepage:

Size: 79

Language: Rust

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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:

up target add wasm32-unknown-unknown --toolchain nightly

Install Wasm build util:

o install --git https://github.com/paritytech/wasm-utils wasm-build
Build

Run:

ild.sh
Testing
o test --manifest-path="contract/Cargo.toml" --features std

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.