Skip to content
Lattice

IReceiver

Git Source

Inherits: IERC165

Title: IReceiver

Author: Vendored minimal subset of Chainlink CRE (https://docs.chain.link/samples/CRE/IReceiver.sol).

Upstream license: MIT.

Consumer interface for receiving Chainlink CRE (Chainlink Runtime Environment) workflow reports. The KeystoneForwarder validates the DON's report signatures off-chain, then calls onReport on the consumer.

Vendored — do not add a chainlink dependency. type(IReceiver).interfaceId is the canonical CRE receiver id (the XOR of onReport's selector only; the inherited supportsInterface is excluded from a Solidity interface id), which is what CRE tooling queries via ERC-165.

Functions

onReport

Called by the KeystoneForwarder to deliver a CRE workflow report.

function onReport(bytes calldata metadata, bytes calldata report) external;

Parameters

NameTypeDescription
metadatabytesPacked workflow identity: abi.encodePacked(bytes32 workflowId,<br/>bytes10 workflowName, address workflowOwner) (62 bytes) plus a trailing
2-byte report id (64 bytes total).
reportbytesThe ABI-encoded workflow payload (matches the workflow's runtime.report()).