Substrate-coin-flipper is a project to learn how to create a substrate node by developing a custom Pallet that creates, flips and tosses a coin.
Why a coin flipper? It's a common smart contract example rewritten for Substrate, with logic to flip a coin at random and lots of testing.
The goal is to show how to develop and test a simple Substrate FRAME palette, This project is part 1 of a series of Substrate tutorials.
Enjoy!
Use the following command to build the node without launching it:
cargo build --release
Use the following command to run the regression tests:
cargo test
To start the node (in development mode), just type:
cargo run --dev
After you start the node template locally, you can interact with it using the hosted version of the Polkadot/Substrate Portal front-end by connecting to the local node endpoint, in Development mode using Local Node.
This tutorial is a continuous work in progress. If you have suggestions for features, or if you find any issues in the code, design, interface, tutorial etc, please feel free to share them on GitHub.
I appreciate very much your feedback!