curl https://sh.rustup.rs -sSf | sh
rustup default stable
rustup update
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
sudo apt install binaryen
cargo install cargo-dylint dylint-link
cargo +nightly install cargo-contract --vers 3.2.0 --force --locked
cargo install cargo-watch
- Fill in the blanks creating a contract the keeps track of a counter, adding a value to it with every
add
transaction. - Build the contract instance
make release
. - Go to the ContractsUI.
- Deploy and interact with the contract by adding a value. Retrieve the updated value.
- Use the
//Alice
(bottom drive obey lake curtain smoke basket hold race lonely fit walk/Alice
) account to sign your transactions, it has some funds to cover the gas fees. Add it to polkadot.js extension .
Run devnet:
make devnet
Compile & deploy:
make deps
make compile
make deploy
make compile
ENV=test make deploy
Licensed under the terms of the GPL-3 or later.