IMessageRecipient

Git Source

Functions

receiveBaseMessage

Message recipient needs to implement this function in order to receive cross-chain messages.

Message recipient needs to ensure that merkle proof for the message is at least as old as the optimistic period that the recipient is using. Note: as this point it is checked that the "message optimistic period" has passed, however the period value itself could be anything, and thus could differ from the one that the recipient would like to enforce.

function receiveBaseMessage(
    uint32 origin,
    uint32 nonce,
    bytes32 sender,
    uint256 proofMaturity,
    uint32 version,
    bytes memory content
) external payable;

Parameters

NameTypeDescription
originuint32Domain where message originated
nonceuint32Message nonce on the origin domain
senderbytes32Sender address on origin chain
proofMaturityuint256Message's merkle proof age in seconds
versionuint32Message version specified by sender
contentbytesRaw bytes content of message