The npm version seele-anchor-cli (abbreviated to "anc") requires: 6.13.0+. Install anc globally with -g tag to use everywhere.
npmi-gseele-anchor-clianc-v# --version: Show versionanc-h# --help: Show help
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.
cd.subchain/mySubchainancfill# Fill hashesancmake-cd# compile and deploy subchain to mainchainancshow# show results
Interact with Subchain
IMPORTANT: interacting with subchain for now requires user to
Flow Chart summary
User
Keys
anckeys-s1# --shard generate subchain and mainchain keypairsanckeys-p# return subchain and mainchain address by privatekey
Transact
ancsend\--to 0x55a03a606f8b1b9627c6e988806818fbc4544711\--amount 100# to and amount over subchain networkancadtx\--to 0x55a03a606f8b1b9627c6e988806818fbc4544711\--amount 100# to and amount over mainchain network
Trade
anctradein-a100# deposite money andanctradein-a100-o# deposite and request verifier privilegeanctradeout-a100# (TODO) exit money, keeping privilegeanctradeout-o# cancel verifier privilege, refund allanctradefee-a100# (TODO) get allanctrade# show current statusanctradeout# (TODO) early exits
Challenge
ancchallenge--bond#(TODO) challenge
Verifier
Maintain
# config maintain info in conf.jsonanckeepanckeep-p#(TODO) push task to crontabanckeep-d#(TODO) drop task from crontab