CCIP v2.0.0 IMailbox API Reference
Summary
IMailbox defines the minimal interface for the Lombard Mailbox contract.
The Mailbox is responsible for:
- Verifying bridge proofs
- Executing the bridged message
- Returning execution status and optional payload data
It is used by CCIP verifiers such as [LombardVerifier](/ccip/evm/api-reference/v2.0.0/lombard-verifier) during destination-side verification.
Contract
chains/evm/contracts/interfaces/lombard/IMailbox.sol
Import
import {IMailbox} from "chainlink-ccip/chains/evm/contracts/interfaces/lombard/IMailbox.sol";
Interface surface
interface IMailbox {
deliverAndHandle
function deliverAndHandle(
bytes calldata rawPayload,
bytes calldata proof
)
external
returns (
bytes32,
bool executed,
bytes memory optionalMessage
);
Verifies and executes a bridged message.
Returns:
bytes32— Bridge-defined identifier (e.g., payload hash)bool executed— Whether execution succeededbytes optionalMessage— Optional payload forwarded from source chain
}
Integration notes / expectations
- Implementations must ensure proof verification correctness.
- Consumers should validate
executed == truebefore trusting returned data. optionalMessagemay contain verifier-specific metadata and must be validated by the calling contract.