File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ # Test scripts for Flare's P-Chain operations
2+
3+ Tests are performed on ** localflare** network and include:
4+ - C-chain to P-chain transfer (100 FLR)
5+ - P-chain to C-chain transfer (100 FLR)
6+ - Add validator (` NodeID-MFrZFVCXPv5iCn6M9K6XduxGTYp891xXZ ` with weight 10.000 FLR and duration of 14 days)
7+ - Add delegator (To node ` NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg ` with weight 10.000 FLR and duration of 1 hour)
8+
9+ Run localflare with in ` avalanchego ` directory:
10+ ``` bash
11+ ./scripts/build.sh. # Build avalanchego
12+ ./scripts/localflare.sh. # Run 5 localflare nodes
13+ ```
14+ Check that the nodes are running by visiting ` http://localhost:9650/ext/health ` in your browser.
15+
16+ Then, in a separate terminal, run the test scripts in this directory:
17+ ``` bash
18+ yarn
19+ yarn run p-chain-import
20+ yarn run p-chain-export
21+ yarn run add-validator
22+ yarn run add-delegator
23+ ```
24+ Note:
25+ - Nodejs version 20 in requred to run the scripts, also make sure you have the ` yarn ` package manager installed.
26+ - The scripts assume that the localflare network is running and accessible at the default ports.
You can’t perform that action at this time.
0 commit comments