Skip to content

paralink-network/ink-contracts

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages