This repository contains smart contracts for wasm runtime.
The main contracts of interest are:
Configure the compiler:
rustup component add rust-src --toolchain nightly
rustup target add wasm32-unknown-unknown --toolchain stable
Install dependencies:
cargo install canvas-node --git https://github.com/paritytech/canvas-node.git --tag v0.1.4 --force --locked
cargo install cargo-contract --vers 0.7.1 --force --locked
Deploy a local chain for testing:
canvas --dev --tmp
Open the contract directory, ie:
cd trusted_oracle/
Compile to wasm:
cargo +nightly contract build
cargo +nightly contract generate-metadata