Skip to content
Lattice

IMessageRecipient

Git Source

Title: IMessageRecipient (Hyperlane message recipient) — vendored subset

Authors: David Dada <daveproxy80@gmail.com> (https://github.com/dadadave80), Vendored minimal subset of Hyperlane's IMessageRecipient (https://github.com/hyperlane-xyz/hyperlane-monorepo). Upstream license: MIT OR Apache-2.0.

The delivery callback the Hyperlane Mailbox invokes on the recipient at process time. PAYABLE upstream — implementers that never expect value-bearing messages must guard msg.value themselves.

Verified verbatim against hyperlane-xyz/hyperlane-monorepo (MIT OR Apache-2.0): solidity/contracts/interfaces/IMessageRecipient.sol. Re-declared at pragma ^0.8.30 — do NOT add a hyperlane-monorepo dependency.

Note:

  • lattice-source: Hyperlane

Functions

handle

Handles a Hyperlane message delivered by the local Mailbox.

function handle(uint32 _origin, bytes32 _sender, bytes calldata _message) external payable;

Parameters

NameTypeDescription
_originuint32The origin Hyperlane domain of the message.
_senderbytes32The 32-byte message sender address on _origin.
_messagebytesThe raw message body.