Seele Doc
Search…
User Guide

Create Subchain

Install

The npm version seele-anchor-cli (abbreviated to "anc") requires: 6.13.0+. Install anc globally with -g tag to use everywhere.
1
npm i -g seele-anchor-cli
2
anc -v # --version: Show version
3
anc -h # --help: Show help
Copied!

Initiate

Navigating between anc projects will not require terminal navigation in the future. For now, anc creates a .subchain/yourProjectName in user's current working directory (abbreviated to "cwd"). Navigate to yourProjectName and open the directory with editor.
1
anc init -n mySubchain
Copied!

Start

Configure anc settings in conf.json. For private environment tools refer to Developer resources.
1
cd .subchain/mySubchain
2
anc fill # Fill hashes
3
anc make -cd # compile and deploy subchain to mainchain
4
anc show # show results
Copied!

Interact with Subchain

IMPORTANT: interacting with subchain for now requires user to

Flow Chart summary

User

Keys
1
anc keys -s 1 # --shard generate subchain and mainchain keypairs
2
anc keys -p # return subchain and mainchain address by privatekey
Copied!
Transact
1
anc send\
2
--to 0x55a03a606f8b1b9627c6e988806818fbc4544711\
3
--amount 100 # to and amount over subchain network
4
anc adtx\
5
--to 0x55a03a606f8b1b9627c6e988806818fbc4544711\
6
--amount 100 # to and amount over mainchain network
Copied!
Trade
1
anc trade in -a 100 # deposite money and
2
anc trade in -a 100 -o # deposite and request verifier privilege
3
anc trade out -a 100 # (TODO) exit money, keeping privilege
4
anc trade out -o # cancel verifier privilege, refund all
5
anc trade fee -a 100 # (TODO) get all
6
anc trade # show current status
7
anc trade out # (TODO) early exits
Copied!
Challenge
1
anc challenge --bond #(TODO) challenge
Copied!

Verifier

Maintain
1
# config maintain info in conf.json
2
anc keep
3
anc keep -p #(TODO) push task to crontab
4
anc keep -d #(TODO) drop task from crontab
Copied!

Creator

Control
1
anc freeze #(TODO) freeze subchain contract
2
anc unfreeze #(TODO) unfreeze subchain contracts
Copied!