Skip to main content

QuorumFactory

The QuorumFactory contract allows anyone to reliably deploy new IQuorum contracts.

Functions

newQuorum()

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

Deploy a new quorum contract.

Parameters

NameTypeDescription
validatorsaddress[]The list of validators
epochLengthuint256The epoch length

Return Values

NameTypeDescription
[0]IQuorumThe deployed quorum contract

newQuorum() (with salt)

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

Deploy a new quorum contract deterministically using CREATE2.

Parameters

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

Return Values

NameTypeDescription
[0]IQuorumThe deployed quorum contract

calculateQuorumAddress()

function calculateQuorumAddress(
address[] calldata validators,
uint256 epochLength,
bytes32 salt
) external view override 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.