IBroadcastRegistry

Git Source

Author: ZeroPoint Labs

is an helper for base state registry with broadcasting abilities.

Functions

broadcastPayload

allows core contracts to send payload to all configured destination chain.

function broadcastPayload(
    address srcSender_,
    uint8[] memory ambIds_,
    bytes memory message_,
    bytes memory extraData_
)
    external
    payable;

Parameters

NameTypeDescription
srcSender_addressis the caller of the function (used for gas refunds).
ambIds_uint8[]is the identifier of the arbitrary message bridge to be used
message_bytesis the crosschain payload to be broadcasted
extraData_bytesdefines all the message bridge realted overrides

receiveBroadcastPayload

allows ambs to write broadcasted payloads

function receiveBroadcastPayload(uint64 srcChainId_, bytes memory message_) external;

processPayload

allows previlaged actors to process broadcasted payloads

function processPayload(uint256 payloadId_) external;

Parameters

NameTypeDescription
payloadId_uint256is the identifier of the cross-chain payload