Install
npm install
Create a symlink for cli.js as executable tcr
npm link
Show help menu / available commands
tcr --help
Print configurations
tcr config
Set tcr (Default: 'adChain')
tcr config -t [tcr]
Set network (Default: 'mainnet')
tcr config -n [network]
Set path index for $MNEMONIC-generated accounts (Default: '0')
tcr config -i [pathIndex]
accounts: All things account-relatedconfig: Set/print configlist: Print listingssync: Get logs, create/update listings, store data locallyapprove <spender> <numTokens>: Approve tokens for a contract (e.g. 'registry 420', 'voting 9001')apply <listingID> [data]: Apply a listing to the registrychallenge <listingID> [data]: Challenge a listing, create a pollcommit <listingID> <voteOption: number> <numTokens: number>: Commit a votereveal <listingID>: Reveal a committed voteupdate <listingID>: Refesh a listing's statusrescue <listingID>: Rescue tokens from a committed, non-revealed, expired polltx <txHash>: Print transaction detailsread: Read event logs and listings
Chain
-nor--network: Specify a network (e.g. mainnet, rinkeby)-tor--tcr: Specify a tcr (adChain, ethaireum, cpl)-ior--pathIndex: Specify a path index for $MNEMONIC environment variable
Sync
-uor--update: Update local listings store with past logs-Ror--reset: Reset local listings store with past logs-sor--save: Save logs to local store
Listings
-aor--applied: Print listings in the application stage-cor--challenged: Print listings which were challenged and are in voting stage-wor--whitelisted: Print whitelisted listings in the registry-Aor--all: Print all listings, regardless of status-ror--removed: Print listings which were removed