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