An example implementation of a FRAME-based Substrate node with integration of the Sequester donations pallet.
First, complete the basic Rust setup instructions.
This command will initialize the WASM build environment and set up the latest Rust nightly build
make init
This command will start our single-node development chain with non-persistent state:
make run-dev
Purge the development chain's state:
make purge-chain
Development chain means that the state of our chain will be in a tmp folder while the nodes are running. Also, alice account will be authority and sudo account as declared in the genesis state. At the same time the following accounts will be pre-funded:
- Alice
- Bob
- Alice//stash
- Bob//stash
We've integrated the Sequester donations pallet into this example chain.
You can use the Substrate Front-end template and send funds between accounts to see Sequester pallet in action.
Instructions to install and run the front-end template can be found in this Substrate tutorial..
The Donations pallet functionality can be verified through the UI by sending a transaction between users and observing events donations:TxnFeeQueued
and donations:TxnFeeSubsumed
in the Events UI section. Every 9 blocks (as configured by our example chain), we will send the accumulated transaction fees to Sequester's account, observed through a balances:Deposit
event.
First, install Docker and Docker Compose.
Then run the following command to start a single node development chain.
./scripts/docker-run.sh
This command will firstly compile your code, and then start a local development network.