Skip to content
/ manic-minter Public template

ink! smart contract example for cross contract calls with ink_e2e tests

License

Notifications You must be signed in to change notification settings

inkdevhub/manic-minter

Repository files navigation

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.

About

ink! smart contract example for cross contract calls with ink_e2e tests

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published