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