Skip to content
Lattice

AcrossMessageHandler

Git Source

Title: AcrossMessageHandler

Author: Vendored minimal subset of Across's AcrossMessageHandler (https://github.com/across-protocol/contracts). Upstream license: MIT.

Implemented by any contract that expects to receive messages from the Across v3 SpokePool: when a deposit carries a non-empty message, the SpokePool calls handleV3AcrossMessage on the RECIPIENT at fill time. Fills are relayer-pushed and optimistic — NOT yet UMA-finalized when this hook runs. Upstream file: contracts/interfaces/SpokePoolMessageHandler.sol.

Functions

handleV3AcrossMessage

SpokePool-invoked delivery hook, called on the deposit's recipient at fill time.

function handleV3AcrossMessage(address tokenSent, uint256 amount, address relayer, bytes memory message) external;

Parameters

NameTypeDescription
tokenSentaddressThe destination-chain token the relayer fronted to the recipient.
amountuint256The outputAmount of tokenSent the recipient received.
relayeraddressThe relayer that filled the deposit (fronting its own funds).
messagebytesThe deposit's message bytes, verbatim.