I would like to propose a list of possible cli commands for interacting with the liquidity and bridge api and contract methods. Some of these commands probably don’t have to be implemented, because they represent internal contract methods. I’ve included them all to make the list as complete as possbile. The command names follow a namespace principle to keep the actual commands short and similar to each other like get, info, list, set, listBy etc and to avoid command names like getAllWrapTokenRequestsByToAddressNetworkClassAndChainId.
I’m not aware if any other devs are currently working on the cli, but it might be helpful to discuss and share a common command interface before implementing one to avoid creating different interfaces.
Liquidity commands
liquidity.info Get the liquidity information
liquidity.security Get the liquidity security information
liquidity.timeChallenges List all liquidity time challenges
liquidity.emercency Put the liquidity contract in emercency mode. Can only be called by the administrator.
liquidity.halt Halt liquidity operations. Can only be called by the administrator.
liquidity.unhalt Unhalt liquidity operations. Can only be called by the administrator.
liquidity.burn
liquidity.fund
liquidity.donate
liquidity.update Update the liquidity contract.
liquidity.stake Stake liquidity
liquidity.stake.list List all stakes by address
liquidity.stake.cancel Cancel staked liquidity
liquidity.stake.unlock Unlock liquidity staking for a zts that is no longer allowed.
liquidity.reward.list List all liquidity reward history by address
liquidity.reward.get Get uncollected reward by address
liquidity.reward.collect Collect liquidity rewards
liquidity.reward.setAdditional Set additional liquidity rewards. Can only be called by the administrator
liquidity.reward.setToken Set token and corresponding reward percentages. Can only be set by the administrator.
liquidity.admin.nominate Nominate liquidity guardians. Can only be called by the administrator.
liquidity.admin.propose Propose liquidity administrator. Can only be called by a guardian if the liquidity contract is in emergency mode.
liquidity.admin.change Change liquidity administrator. Can only be called by the administrator.
Bridge commands
bridge.info Get the bridge information
bridge.security Get the bridge security information
bridge.timeChallenges List all bridge time challenges
bridge.emercency Put the bridge contract in emercency mode. Can only be called by the administrator.
bridge.halt Halt bridge operations.
bridge.unhalt Unhalt bridge operations. Can only be called by the administrator.
bridge.enableKeyGen Enable bridge key generation. Can only be called by the administrator.
bridge.disableKeyGen Disable bridge key generation. Can only be called by the administrator.
bridge.setMetadata Set the bridge metadata. Can only be called by the administrator.
bridge.setRedeemDelay Set the bridge redeem delay in momentums Can only be called by the administrator…
bridge.changePubKey Change bridge TSS ECDSA public key. Can only be called by the administrator.
bridge.wrap.list List all wrap token requests
bridge.wrap.listByAddress List all wrap token requests by address
bridge.wrap.listUnsigned List all unsigned wrap token requests
bridge.wrap.get Get wrap token request by id
bridge.wrap.update Update wrap token request
bridge.wrap.token Wrap assets.
bridge.unwrap.list List all unwrap token requests
bridge.unwrap.listByAddress List all unwrap token requests by address
bridge.unwrap.get Get unwrap token request by hash and log index
bridge.unwrap.token Unwrap assets.
bridge.unwrap.revoke Revoke unwrap request.
bridge.orchestrator.info Get the orchestrator information
bridge.orchestrator.set Set the orchestrator information
bridge.network.list List all available bridge netwoks
bridge.network.get Get the current bridge network information
bridge.network.set Add or edit an existing bridge network
bridge.network.remove Remove an existing bridge network
bridge.network.setMetadata Set the metadata for a bridge network
bridge.admin.nominate Nominate bridge guardians. Can only be called by administrator.
bridge.admin.propose Propose bridge administrator. Can only be called by a guardian if the bridge contract is in emergency mode.
bridge.admin.change Change bridge administrator. Can only be called by administrator.