git clone https://github.com/ChainSupport/frontier-pos-template.git
cd frontier-pos-template
cargo build --release --features testnet
./target/release/substrate --dev --alice
cargo test -p babe-consensus-data-provider -- --nocapture
cargo test -p ecdsa-keyring -- --nocapture
cargo clean
cargo tarpaulin --out html --run-types Tests -p babe-consensus-data-provider
cargo clean
cargo tarpaulin --out html --run-types Tests -p ecdsa-keyring
cargo clippy --features testnet
cargo clippy --features mainnet
docker-compose up
Vist explorer
Here, we can see that two validators are randomly producing blocks, fully compatible with NPOS (Nominated Proof-of-Stake).
The following steps assume that you have already created a wallet address. If you haven't created a wallet yet, please create one in MetaMask first.
-
Add your network to MetaMask.
Network name: Frontier Testnet Default RPC URL: http://localhost:9944 Chain ID: 42 Currency symbol: UNIT
-
Connect to your network and copy your wallet address.
- select network
-
Use
CHARLETH
to transfer UNIT to your wallet address in the explorer. Your MetaMask wallet will display the balance.- transfer
- balance
Transactions in the EVM can be viewed on this scan.
-
deploy
git clone https://github.com/ChainSupport/blockscout.git cd blockscout/docker-compose
docker-compose up --build
-
When you send token to any address from MetaMask, you will find the transfer record on the scan.
- Send token by MetaMask
- transactions
Note: Currently, Blockscout does not support displaying native transfer records, meaning transactions made through the
Balances
pallet are not shown here. (We plan to provide support for this in the future.)
-
Visit Remix
-
Compile and deploy the smart contract