MultiChainTellerBase
Inherits: CrossChainTellerBase
Base contract for the MultiChainTellers, We've noticed that many bridge options are L1 -> L2 only, which are quite simple IE Optimism Messenger While others like LZ that can contact many bridges, contain lots of additional complexity to manage the configuration for these chains To keep this separated we are using this MultiChain syntax for the > 2 chain messaging while only CrossChain for 2 chain messengers like OP
State Variables
selectorToChains
Functions
constructor
addChain
adds an acceptable chain to bridge to
Callable by OWNER_ROLE.
Parameters
Name | Type | Description |
---|---|---|
|
| chainSelector of chain |
|
| allow messages from this chain |
|
| allow messages to the chain |
|
| address of the target teller on this chain |
|
| to pass to bridge |
|
| to require a minimum provided gas for this chain |
stopMessagesFromChain
block messages from a particular chain
Callable by OWNER_ROLE.
Parameters
Name | Type | Description |
---|---|---|
|
| of chain |
allowMessagesFromChain
allow messages from a particular chain
Callable by OWNER_ROLE.
Parameters
Name | Type | Description |
---|---|---|
|
| of chain |
|
|
removeChain
Remove a chain from the teller.
Callable by OWNER_ROLE.
Callable by OWNER_ROLE.
allowMessagesToChain
Allow messages to a chain.
Callable by OWNER_ROLE.
stopMessagesToChain
Stop messages to a chain.
Callable by OWNER_ROLE.
setChainGasLimit
Set the gas limit for messages to a chain.
Callable by OWNER_ROLE.
_beforeBridge
override beforeBridge to check Chain struct
Parameters
Name | Type | Description |
---|---|---|
|
| bridge data |