approveto grant allowance for the tokens being sent to the local BridgeRouter contract
Replicacontracts sending tokens from another chain
Homecontract in order to send tokens to other chains
BridgeRouter, who uses this to make sure a representation of the token exists on this chain before minting/burning
approvetokens to the local
sendon the local
BridgeRouter-Aand held in escrow
BridgeRouter-Acan burn non-native tokens because the representative contract for the token on its non-native chain was originally deployed by
BridgeRouter-Awhen it received a message sending the token from another chain. The router has administrative rights on representations
BridgeRouter-Aconstructs a message to
BridgeRouter-Akeeps a mapping of
BridgeRoutercontracts on other chains so it knows where to send the message on Chain B
Home-Acontract to send the message to Chain B
Replica-Aon Chain B
Replica-Aprocesses the message and dispatches it to
BridgeRouter-Bkeeps a mapping
Replicacontracts that it trusts on the local chain. It uses this to authenticate that the incoming message came from chain A
BridgeRouter-Bkeeps a mapping of
BridgeRoutercontracts on other chains, so it can authenticate that this message came from
BridgeRouter-Blooks for the corresponding ERC-20 token contract in its registry, and deploys a new representative one if it doesn't already exist
BridgeRouter-Bsends the token to the recipient
BridgeRouter-Bsends the tokens from the pool it's holding in escrow
BridgeRouter-Bmints the token to the recipient (
BridgeRouter-Bcan mint non-native tokens because the representative contract for the token on its non-native chain is deployed by
BridgeRouter-Bwhen it received a message sending the token from another chain. The router has administrative rights on representations.
bridgeRoutercontract you are looking for, addresses in the config dir:
TokenRegistrysmart contract. This contract handles mapping canonical Nomad token identifiers to their local representation (or native local deployment) and vice versa.
migratefunction that allows users to immediately exchange any previous representation for the latest representation. This allows a user to upgrade outdated representations and receive the latest without dispatching a cross-chain message.
dustin order to facilitate their onboarding to the chain (all chains apart from Ethereum).