IQuorumManager

Git Source

Functions

setRequiredMessagingQuorum

quorum is the number of extra ambs a message proof must go through and be validated

allows inheriting contracts to set the messaging quorum for a specific sender chain

function setRequiredMessagingQuorum(uint64 srcChainId_, uint256 quorum_) external;

Parameters

NameTypeDescription
srcChainId_uint64is the chain id from which the message (payload) is sent
quorum_uint256the minimum number of message bridges required for processing NOTE: overriding child contracts should handle the sender validation & setting of message quorum

getRequiredMessagingQuorum

returns the required quorum for the srcChain & dstChain

function getRequiredMessagingQuorum(uint64 srcChainId_) external view returns (uint256 quorum_);

Parameters

NameTypeDescription
srcChainId_uint64is the chain id from which the message (payload) is sent

Returns

NameTypeDescription
quorum_uint256the minimum number of message bridges required for processing

Events

QuorumSet

emitted when a new quorum is set for a specific chain

event QuorumSet(uint64 indexed srcChainId, uint256 quorum);

Parameters

NameTypeDescription
srcChainIduint64the chain id from which the message (payload) is sent
quorumuint256the minimum number of message bridges required for processing