This is an example project using ink! smart contract. It utilizes the cross contract call and PSP22 standard to create a fungible project.
This is an unaudited project template. It explains how the cross contract calls are done in ink! and how to use the PSP22 standard. The test is written in ink_e2e environment which testing cross contract calls.
Apache 2.0
- Use this instructions to setup your ink!/Rust environment
cargo contract build --release
cargo test
First start your local node. Recommended swanky-node v0.13.0
./target/release/swanky-node --dev --tmp -lruntime=trace -lruntime::contracts=debug -lerror
- or deploy with polkadot.JS. Instructions on Astar docs
Define environment variable CONTRAC_NODE to point to the path where you have installation of swanky-node or where you have any other node which supports pallet-contract And then:
cargo test --features e2e-tests
Follow the From Zero to ink! Hero tutorial to learn how to build this smart contract.