Skip to content

Polkadot-Blockchain-Academy/ink-adder

Repository files navigation

Prerequisites

Make sure you have Rust installed:

curl https://sh.rustup.rs -sSf | sh
rustup default stable
rustup update
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly

Make sure you have cargo-contract:

Install it's dependencies:

sudo apt install binaryen
cargo install cargo-dylint dylint-link

And install this version of c-c:

cargo +nightly install cargo-contract --vers 3.2.0 --force --locked

Install file watcher:

cargo install cargo-watch

Instructions

  • 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 .

AlephZero devnet deployment

Run devnet:

make devnet

Compile & deploy:

make deps
make compile
make deploy

AlephZero testnet deployment

make compile
ENV=test make deploy

License

Licensed under the terms of the GPL-3 or later.

About

MASTER COPY -- ink! adder conract challenge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published