Deploy Native Token Home
Deploy the NativeTokenHome contract on the Avalanche L1 blockchain.
You may already have
TELEPORTER_REGISTRY_L1
and SOURCE_BLOCKCHAIN_ID_HEX
set from previous sections. If you do, you can skip to step 5.Save the Teleporter Registry Address
Note
The address 0xB4DC3d786D658d118631F5C6B75CB5935be8407C
is your receiver contract address.
Most other environment variables we will need are already set in the devcontainer or from the previous section.
Save the Blockchain ID (hex)
Note
The address 0xcdd5b2b99ae462c32a8e4ea47e94f2c7804519353558fd4127cf7ae11d8a6e52
is your receiver contract address.
Deploy NativeTokenHome
on myblockchain
Using the forge create
command, we will deploy the NativeTokenHome.sol contract, passing in the following constructor arguments:
- Interchain Messaging Registry (for our Avalanche L1)
- Interchain Messaging Manager (our funded address)
- Wrapped Token Address (deployed in the last step)
Save the Native Token Home Address
Note
The address 0x17aB05351fC94a1a67Bf3f56DdbB941aE6c63E25
is your receiver contract address.
Is this guide helpful?