IMessageRecipient
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
Name | Type | Description |
---|---|---|
origin | uint32 | Domain where message originated |
nonce | uint32 | Message nonce on the origin domain |
sender | bytes32 | Sender address on origin chain |
proofMaturity | uint256 | Message's merkle proof age in seconds |
version | uint32 | Message version specified by sender |
content | bytes | Raw bytes content of message |