HelloWorld
The skeleton of an Hyperlane-connected contract and app
Last updated
The skeleton of an Hyperlane-connected contract and app
Last updated
**** **** app **** is the skeleton of an Hyperlane-connected contract and app using the .
The shows the basic skeleton of an Hyperlane app.
Its sends a user-specified string to another chain which handles the message by increasing counters and emitting events.
To conveniently implement the router pattern, the contract extends @hyperlane-xyz/core/contracts/Router.sol
To send the message, it calls the _dispatchWithGas
method.
The is configured to deploy to local hardhat-based test networks.
The main purpose of defining a deployer is to provide the custom types and implementation of the deployContracts
method. See for more details.
The sendHelloWorld
method shows an example of triggering the remote message dispatch:
The fetches some basic statistics and returns them.