Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Latest commit

 

History

History
40 lines (31 loc) · 1.26 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.26 KB

cb-sol-cli Documentation

This CLI supports on-chain interactions with components of ChainBridge.

Installation

Installation requires the ABI files from the contracts which will be fetched and built from the chainbridge-solidity repo.

$ make install

Usage

The root command (cb-sol-cli) has some options:

--url <value>                 URL to connect to
--gasLimit <value>            Gas limit for transactions 
--gasPrice <value>            Gas price for transactions 
--networkId <value>	      Network id


The keypair used for interactions can be configured with:

--privateKey <value>           Private key to use

or

--jsonWallet <path>           Encrypted JSON wallet
--jsonWalletPassword <value>  Password for encrypted JSON wallet

There are multiple subcommands provided:

  • deploy: Deploys contracts via RPC
  • bridge: Interactions with the bridge contract such as registering resource IDs and handler addresses
  • admin: Interactions with the bridge contract for administering relayer set, relayer threshold, fees and more.
  • erc20: Interactions with ERC20 contracts and handlers
  • erc721: Interactions with ERC721 contracts and handler