Interchain Token
An interchain ERC20 token contract
Last updated
An interchain ERC20 token contract
Last updated
**** **** app is an interchain ERC20 token contract using the
The shows an example Interchain Token, an ERC20 that can travel between any Hyperlane chain, also called a HypERC20
.
The changes to the vanilla OpenZeppelin ERC20 contract are minimal. It has a transferRemote()
function that burns the specified amount of tokens on the sending chain and mints the equivalent amount on the receiving chain.
Its implements a transferRemote
method which burns tokens and dispatches corresponding messages.
It also requires a _handle
method which mints tokens upon receiving messages.