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

Latest commit

 

History

History
71 lines (55 loc) · 2.19 KB

bridge.md

File metadata and controls

71 lines (55 loc) · 2.19 KB

Bridge Command

register-resource

Register a resource ID with a contract address for a handler.

  --bridge <address>          Bridge contract address
  --handler <address>         Handler address
  --targetContract <address>  Contract address to be registered
  --resourceId <address>      Resource ID to be registered

register-generic-resource

Register a resource ID with a contract address for a generic handler.

Note: The --hash flag can be used to avoid computing the function selector ahead of time.

  --bridge <address>          Bridge contract address
  --handler <address>         Handler contract address
  --targetContract <address>  Contract address to be registered
  --resourceId <address>      ResourceID to be registered
  --deposit <string>          Deposit function signature
  --execute <string>          Execute proposal function signature
  --hash                      Treat signature inputs as function prototype strings, hash and take the first 4 bytes 

set-burn

Set a token contract as mintable/burnable in a handler.

  --bridge <address>         Bridge contract address
  --handler <address>        ERC20 handler contract address
  --tokenContract <address>  Token contract to be registered

cancel-proposal

Cancels an expired proposal.

  --bridge <address>      Bridge contract address
  --chainId <id>          Chain ID of proposal to cancel
  --depositNonce <value>  Deposit nonce of proposal to cancel

query-proposal

Queries an inbound proposal.

  --bridge <address>      Bridge contract address 
  --chainId <id>          Source chain ID of proposal
  --depositNonce <value>  Deposit nonce of proposal
  --dataHash <value>      Hash of proposal metadata

query-resouce

Queries the contract address associated with the provided resource ID for a specific handler contract.

  --handler <address>     Handler contract address 
  --resourceId <address>  ResourceID to query