Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 2.2 KB

README.md

File metadata and controls

54 lines (43 loc) · 2.2 KB

Manic Minter

workflow stack-exchange discord built-with-ink License

This is an example project using ink! smart contract. It utilizes the cross contract call and PSP22 standard to create a fungible project.

Purpose

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.

License

Apache 2.0

🏗️ How to use - Contracts

💫 Build
cargo contract build --release
💫 Run unit test
cargo test
💫 Deploy

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
💫 Run integration test

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

📚 Learn

Follow the From Zero to ink! Hero tutorial to learn how to build this smart contract.