The subchain controller,
seele-anchor-cli(short as 'anc'), is consist of many components that require tuning. The following is the project's major dependencies.
Place the components in your project root. In every component's root directory, run
npm link, then in
npm i. Your changes in
This is a tool used for fast access to a subchain-mainchain-private environment. In case someone is curious,
snc stands for Seele Nice Commandline.
# 1. Initiate config directory in .subchain/nodesnc init# 2. After configuring, use the followingsnc start # start nodessnc list # list all running nodessnc list --l # list all running nodes in more detailssnc kill # kiill all nodessnc clean # clears ~/.seele dir and ~/seeleTempsnc node version # check node versionsnc node compile mainchain # replace mainchain nodessnc node compile subchain # replace subchain nodes
./test/node directory contains the configuration file
snc start, use the
nodecliconfig.json_bac in case your editor or terminal crashes. The
nodecliconfig.json is configured as follows:
main-conf: array of mainchain configs to start
stem-conf: array of subchain configs to start
main-info: cli filled after
stem-info: cli filled after
./test/node/cli.js file contains the code for this tool. The function defined in this file,
run(), wraps regular bash statements. With this, it would easy to modify the too drastic
"rm -rf ~/.seele; rm -rf seeleTemp;" command to NOT DELETE all your node database that
snc clean runs.
anc command are introduced in user guide, using the
-h option in anc and you may find other helpful options. One common one is the following:
# Add -p option to deposite for other accounts instead of just yourself# Add -n option to self configure nonce# Similarly for adtx, sendanc trade in ...\-p 0xd345ed9cdfe3fc27a0382c5dbcaeec17836343a75e00cac37a81660714af8260-n 11
Refer to the
flow.test.js, in the
scriptTest.sh to write in bash.
npm test would run all files in
./test directory with
.test.js filename extesion, use
.skip to only run a single test, or selectively skip tests.