Skip to main content

IQuorumFactory

The IQuorumFactory interface defines the contract for deploying new IQuorum contracts.

Events

QuorumCreated

event QuorumCreated(IQuorum quorum)

A new quorum was deployed.

Parameters

NameTypeDescription
quorumIQuorumThe quorum

Functions

newQuorum()

function newQuorum(address[] calldata validators, uint256 epochLength) external returns (IQuorum)

Deploy a new quorum.

Parameters

NameTypeDescription
validatorsaddress[]The list of validators
epochLengthuint256The epoch length

Return Values

NameTypeDescription
[0]IQuorumThe quorum

newQuorum() (with salt)

function newQuorum(address[] calldata validators, uint256 epochLength, bytes32 salt) external returns (IQuorum)

Deploy a new quorum deterministically.

Parameters

NameTypeDescription
validatorsaddress[]The list of validators
epochLengthuint256The epoch length
saltbytes32The salt used to deterministically generate the quorum address

Return Values

NameTypeDescription
[0]IQuorumThe quorum

calculateQuorumAddress()

function calculateQuorumAddress(
address[] calldata validators,
uint256 epochLength,
bytes32 salt
) external view returns (address)

Calculate the address of a quorum to be deployed deterministically.

Parameters

NameTypeDescription
validatorsaddress[]The list of validators
epochLengthuint256The epoch length
saltbytes32The salt used to deterministically generate the quorum address

Return Values

NameTypeDescription
[0]addressThe deterministic quorum address

On this page

Useful resources to learn more

We use cookies to ensure that we give you the best experience on our website. By using the website, you agree to the use of cookies.