Teleporter CLI
The CLI is a command line interface for interacting with the Teleporter contracts.
ICM Contracts CLI
This directory contains the source code for the ICM Contracts CLI. The CLI is a command line interface for interacting with the ICM contracts. It is written with cobra commands as a Go application.
Build
To build the CLI, run go build from this directory. This will create a binary called teleporter-cli in the current directory.
Usage
The CLI has a number of subcommands. To see the list of subcommands, run ./teleporter-cli help. To see the help for a specific subcommand, run ./teleporter-cli help <subcommand>.
The supported subcommands include:
event: given a log event's topics and data, attempts to decode into an ICM event in a more readable format.message: given an ICM message encoded as a hex string, attempts to decode into an ICM message in a more readable format.transaction: given a transaction hash, attempts to decode all relevant TeleporterMessenger and ICM log events in a more readable format.
Is this guide helpful?
Encoding and Decoding Messages
How to encode and decode the bytes payload of an ICM message with abi.encode and abi.decode, including how to route multiple actions with a double encoding.
Upgradeability
The TeleporterMessenger contract is non-upgradable. However, there could still be new versions of TeleporterMessenger contracts needed to be deployed in the future.