contracts for subDAO, using ink! 3.0.0.0-rc4.
reference here.
rustup default stable
rustup update
rustup update nightly
rustup component add rust-src --toolchain nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
As a pre-requisite for the tool you need to install the binaryen package, which is used to optimize the WebAssembly bytecode of the contract.
binaryen version must be >=99.
git submodule init
git submodule update
Please use version 0.11!
cargo install cargo-contract --vers ^0.11 --force --locked
cargo +nightly contract build
./build.sh
the ABI, wasm, and contract files are copied in ./release
dir.
visit polkadot.js apps, and connect subDAO node.
then Develpoer
->Contract
->upload WASM
.