Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 892 Bytes

README.md

File metadata and controls

40 lines (32 loc) · 892 Bytes

Ink! Smart Contracts

This repository contains smart contracts for wasm runtime.

The main contracts of interest are:

Setup

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

Compile

Open the contract directory, ie:

cd trusted_oracle/

Compile to wasm:

cargo +nightly contract build
cargo +nightly contract generate-metadata