IMailbox

Git Source

is imported from (https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/solidity/contracts/interfaces/IMailbox.sol)

Functions

localDomain

function localDomain() external view returns (uint32);

delivered

function delivered(bytes32 messageId) external view returns (bool);

dispatch

function dispatch(
    uint32 _destinationDomain,
    bytes32 _recipientAddress,
    bytes calldata _messageBody
)
    external
    returns (bytes32);

process

function process(bytes calldata _metadata, bytes calldata _message) external;

count

function count() external view returns (uint32);

root

function root() external view returns (bytes32);

latestCheckpoint

function latestCheckpoint() external view returns (bytes32, uint32);

Events

Dispatch

Emitted when a new message is dispatched via Hyperlane

event Dispatch(address indexed sender, uint32 indexed destination, bytes32 indexed recipient, bytes message);

Parameters

NameTypeDescription
senderaddressThe address that dispatched the message
destinationuint32The destination domain of the message
recipientbytes32The message recipient address on destination
messagebytesRaw bytes of message

DispatchId

Emitted when a new message is dispatched via Hyperlane

event DispatchId(bytes32 indexed messageId);

Parameters

NameTypeDescription
messageIdbytes32The unique message identifier

ProcessId

Emitted when a Hyperlane message is processed

event ProcessId(bytes32 indexed messageId);

Parameters

NameTypeDescription
messageIdbytes32The unique message identifier

Process

Emitted when a Hyperlane message is delivered

event Process(uint32 indexed origin, bytes32 indexed sender, address indexed recipient);

Parameters

NameTypeDescription
originuint32The origin domain of the message
senderbytes32The message sender address on origin
recipientaddressThe address that handled the message