BroadcastRegistry
Introduction
BroadcastRegistry
proposes a unique form of communication from one chain to all chains Superform contracts are deployed on, as opposed to BaseStateRegistry
which assumes communication between only two chains.
Core Concepts
All functions in BroadcastRegistry
are gated through access control to ensure that only authorized entities can perform specific actions within the contract.
setRequiredMessagingQuorum
This function allows the ProtocolAdmin
to adjust the number of BroadcastAMBImplementations
that must be used on a particular chain, similar to functionality in BaseStateRegistry
. The default for this is 1, as WormholeSRImlementation is the only AMB supporting broadcasting.
name | description |
---|---|
| uint64 EVM chain id of the src chain |
| uint256 quorum to use |
broadcastPayload
This function allows the appropriate configured Broadcaster
to broadcast payloads to destination chains. It handles both the payload and proof broadcasting.
name | description |
---|---|
| address of the contract initiating the transaction |
| uint8 array of the AMB ids to use in broadcasting |
| bytes message to broadcast |
| bytes |
receiveBroadcastPayload
This function allows BroadcastAMBImplementations
to write broadcasted payloads into the contract.
name | description |
---|---|
| uint64 EVM chain id |
| bytes message to be broadcast |
processPayload
This function allows Processors
to process received payloads.
name | description |
---|---|
| uint256 |
Last updated