Interchain Token
An interchain ERC20 token contract
****ERC20 Token **** app is an interchain ERC20 token contract using the App framework.
The hyperlane-token repo 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.
Contract
Its contract implements a transferRemote
method which burns tokens and dispatches corresponding messages.
It also requires a _handle
method which mints tokens upon receiving messages.
Last updated