IAuthorityFactory

Git Source

Functions

newAuthority

Deploy a new authority.

On success, MUST emit an AuthorityCreated event.

function newAuthority(address authorityOwner) external returns (Authority);

Parameters

NameTypeDescription
authorityOwneraddressThe initial authority owner

Returns

NameTypeDescription
<none>AuthorityThe authority

newAuthority

Deploy a new authority deterministically.

On success, MUST emit an AuthorityCreated event.

function newAuthority(address authorityOwner, bytes32 salt) external returns (Authority);

Parameters

NameTypeDescription
authorityOwneraddressThe initial authority owner
saltbytes32The salt used to deterministically generate the authority address

Returns

NameTypeDescription
<none>AuthorityThe 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

NameTypeDescription
authorityOwneraddressThe initial authority owner
saltbytes32The salt used to deterministically generate the authority address

Returns

NameTypeDescription
<none>addressThe 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

NameTypeDescription
authorityOwneraddressThe initial authority owner
authorityAuthorityThe authority