logoAcademy

Deploy a Home Contract

Deploy the Token Home on C-chain

We will deploy two Avalanche Interchain Token Transfer contracts. One of the source chain (which is C-chain in our case) and another on the destination chain (myblockchain in our case).

Deploy ERC20Home Contract

forge create --rpc-url local-c --private-key $PK lib/avalanche-interchain-token-transfer/contracts/src/TokenHome/ERC20TokenHome.sol:ERC20TokenHome --constructor-args $TELEPORTER_REGISTRY_C_CHAIN $FUNDED_ADDRESS $ERC20_C_CHAIN 18

Save the ERC-20 Home Address

export ERC20_HOME_C_CHAIN=<"Deployed to" address>

On this page