IBroadcastRegistry
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
Name | Type | Description |
---|---|---|
srcSender_ | address | is the caller of the function (used for gas refunds). |
ambIds_ | uint8[] | is the identifier of the arbitrary message bridge to be used |
message_ | bytes | is the crosschain payload to be broadcasted |
extraData_ | bytes | defines 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
Name | Type | Description |
---|---|---|
payloadId_ | uint256 | is the identifier of the cross-chain payload |