Message Receiver Adapters
Last updated
Last updated
The receiver adapter uses the to forward the message to MultiBridgeMessageReceiver
.
The IMessageReceiverAdapter
interface extends the MessageExecutor
interface defined below. It defines the following additional functions.
Updates the address of the corresponding IMessageSenderAdapter
contract for this bridge on the source chain.
This function returns the name of the message bridge.
The interface defines the following event:
Emitted when the sender adapter address is updated through the updateSenderAdapter()
function.
The interface defines the following event:
This event is emitted when a message or message batch has been executed.
The interface defines the following error types.
Is thrown if a messageId
has already been executed.
Is thrown if the execution of an individual message fails.
Is thrown if the execution of a batch of messages fails. (not currently used)
The contract which the executor calls (to
) MUST be ExecutorAware
. The ExecutorAware
contract allows contracts on a receiving chain to execute messages from an origin chain. These messages are sent by the MessageDispatcher
contract which live on the origin chain. The MessageExecutor
contract on the receiving chain executes these messages and then forward them to an ExecutorAware
contract on the receiving chain.