IQuorumFactory
Functions
newQuorum
Deploy a new quorum.
On success, MUST emit a QuorumCreated
event.
function newQuorum(address[] calldata validators) external returns (Quorum);
Parameters
Name | Type | Description |
---|---|---|
validators | address[] | the list of validators |
Returns
Name | Type | Description |
---|---|---|
<none> | Quorum | The quorum |
newQuorum
Deploy a new quorum deterministically.
On success, MUST emit a QuorumCreated
event.
function newQuorum(address[] calldata validators, bytes32 salt) external returns (Quorum);
Parameters
Name | Type | Description |
---|---|---|
validators | address[] | the list of validators |
salt | bytes32 | The salt used to deterministically generate the quorum address |
Returns
Name | Type | Description |
---|---|---|
<none> | Quorum | The quorum |
calculateQuorumAddress
Calculate the address of a quorum to be deployed deterministically.
Beware that only the newQuorum
function with the salt
parameter
is able to deterministically deploy a quorum.
function calculateQuorumAddress(address[] calldata validators, bytes32 salt) external view returns (address);
Parameters
Name | Type | Description |
---|---|---|
validators | address[] | the list of validators |
salt | bytes32 | The salt used to deterministically generate the quorum address |
Returns
Name | Type | Description |
---|---|---|
<none> | address | The deterministic quorum address |
Events
QuorumCreated
A new quorum was deployed.
MUST be triggered on a successful call to newQuorum
.
event QuorumCreated(Quorum quorum);
Parameters
Name | Type | Description |
---|---|---|
quorum | Quorum | The quorum |