It's assumed that these software are installed and running:
This project was developed using the Intellij Community with the Rust plugin.
This repository is tracking Substrate's
polkadot-v0.9.37
branch.
The dev-node-substrate is a simple Substrate blockchain which is configured to include the Substrate module for smart contract development using ink! v4.0.
Note: the consensus from aura & grandpa(GHOST-based Recursive ANcestor Deriving Prefix Agreement) was changed to manual-seal(sp_consensus/sc_consensus) where blocks are authored at every transaction.
cargo contract --version
The directory will be assigned with a Rust toolchain with rustup override.
rustup show
Note:The nightly-2023-02-09 is set by the rust-toolchain.toml file.
Test the outer node.
cargo check -p node --release
Test the runtime node.
cargo check -p node-runtime --release
Build the Substrate Smart Contracts Node.
cargo build --release
Run the Substrate Smart Contracts Node.
./target/release/dev-node-substrate --dev
Interact with our Substrate Smart Contracts Node using the Contracts UI:
References:
ink!
Smart Contracts