Deploy ERC20 Token Remote
Deploy and register the ERC20TokenRemote contract to the Dijets Utility Chain.
Deploy ERC20TokenRemote
on Utility Chain
Using the forge create
command, we will deploy the ERC20TokenRemote.sol contract, passing in the following constructor arguments:
- InterECC Messaging Registry Address (for Utility Chain)
- InterECC Messaging Manager (our funded address)
- Source Blockchain ID (hexidecimal representation of our Dijets ECC's Blockchain ID
mydijetschain
) - Token Home Address (address of NativeTokenHome.sol deployed on our Dijets ECC
mydijetschain
in the last step) - Token Name (input in the constructor of the wrapped token contract)
- Token Symbol (input in the constructor of the wrapped token contract)
- Token Decimals (uint8 integer representing number of decimal places for the ERC20 token being created; typically 18 decimals)
Register ERC20TokenRemote
on Utility Chain with NativeTokenHome
on mydijetschain
After deploying the bridge contracts, you'll need to register the remote bridge by sending a dummy message using the registerWithHome
method. This message includes details which inform the home bridge about your destination blockchain and bridge settings, eg. initialReserveImbalance
.