CrossChainOPTellerWithMultiAssetSupport
Inherits: CrossChainTellerBase
LayerZero implementation of CrossChainTeller
State Variables
messenger
peer
maxMessageGas
minMessageGas
nonce
Functions
constructor
setPeer
Callable by OWNER_ROLE.
Parameters
Name | Type | Description |
---|---|---|
|
| new peer to set |
setGasBounds
Callable by OWNER_ROLE.
Parameters
Name | Type | Description |
---|---|---|
|
| the new minMessageGas bound |
|
| the new maxMessageGas bound |
receiveBridgeMessage
Function for OP Messenger to call to receive a message and mint the shares on this chain
Parameters
Name | Type | Description |
---|---|---|
|
| to receive the shares |
|
| amount of shares to mint |
|
|
_bridge
the virtual bridge function to execute Optimism messenger sendMessage()
Parameters
Name | Type | Description |
---|---|---|
|
| |
|
| bridge data |
Returns
Name | Type | Description |
---|---|---|
|
| messageId |
_beforeBridge
before bridge hook to check gas bound and revert if someone's paying a fee
Parameters
Name | Type | Description |
---|---|---|
|
| bridge data |
_quote
the virtual function to override to get bridge fees, always zero for OP
Parameters
Name | Type | Description |
---|---|---|
|
| to send |
|
| bridge data |