sekisamu / ink-types-node-runtime

Imports types from substrate for ink! smart contracts targeting the default node-runtime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node runtime types for ink!

Defines types for ink! smart contracts targeting Substrate's node-runtime.

Supplies an implementation of the ink! EnvTypes trait.

See ink! examples for usage.

Requirements

rustup component add rust-src --toolchain nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
rustup target add wasm32-unknown-unknown --toolchain stable
cargo install cargo-contract --vers 0.6.1 --force

Build

Runtime Dependencies

cargo +nightly build --release

ink! Smart Contract

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

Test

cargo +nightly test

About

Imports types from substrate for ink! smart contracts targeting the default node-runtime

License:GNU General Public License v3.0


Languages

Language:Rust 100.0%