Search
K

RegistryAuth

Inherits: RolesAuthority
RegistryAuth - contract to control ownership of the Registry.

State Variables

pendingOwner

Pending owner for 2 step ownership transfer.
address public pendingOwner;

Functions

constructor

constructor(address _owner, Authority _authority) RolesAuthority(_owner, _authority);

transferOwnership

Starts the 2 step process of transferring registry authorization to a new owner.
function transferOwnership(address _newOwner) external requiresAuth;
Parameters
Name
Type
Description
_newOwner
address
Proposed new owner of registry authorization.

claimOwnership

Completes the 2 step process of transferring registry authorization to a new owner. This function must be called by the proposed new owner.
function claimOwnership() external;

setOwner

Old approach of setting a new owner in a single step.
This function throws an error to force use of the new 2-step approach.
function setOwner(address) public view override requiresAuth;

Events

OwnershipTransferProposed

Emitted when the first step of an ownership transfer (proposal) is done.
event OwnershipTransferProposed(address indexed user, address indexed newOwner);

OwnershipChanged

Emitted when the second step of an ownership transfer (claim) is done.
event OwnershipChanged(address indexed owner, address indexed newOwner);