IAuthorityFactory
Functions
newAuthority
Deploy a new authority.
On success, MUST emit an AuthorityCreated event.
function newAuthority(address authorityOwner) external returns (Authority);
Parameters
| Name | Type | Description | 
|---|---|---|
| authorityOwner | address | The initial authority owner | 
Returns
| Name | Type | Description | 
|---|---|---|
| <none> | Authority | The authority | 
newAuthority
Deploy a new authority deterministically.
On success, MUST emit an AuthorityCreated event.
function newAuthority(address authorityOwner, bytes32 salt) external returns (Authority);
Parameters
| Name | Type | Description | 
|---|---|---|
| authorityOwner | address | The initial authority owner | 
| salt | bytes32 | The salt used to deterministically generate the authority address | 
Returns
| Name | Type | Description | 
|---|---|---|
| <none> | Authority | The authority | 
calculateAuthorityAddress
Calculate the address of an authority to be deployed deterministically.
Beware that only the newAuthority function with the salt parameter
is able to deterministically deploy an authority.
function calculateAuthorityAddress(address authorityOwner, bytes32 salt) external view returns (address);
Parameters
| Name | Type | Description | 
|---|---|---|
| authorityOwner | address | The initial authority owner | 
| salt | bytes32 | The salt used to deterministically generate the authority address | 
Returns
| Name | Type | Description | 
|---|---|---|
| <none> | address | The deterministic authority address | 
Events
AuthorityCreated
A new authority was deployed.
MUST be triggered on a successful call to newAuthority.
event AuthorityCreated(address authorityOwner, Authority authority);
Parameters
| Name | Type | Description | 
|---|---|---|
| authorityOwner | address | The initial authority owner | 
| authority | Authority | The authority |