RegistryAuth
RegistryAuth - contract to control ownership of the Registry.
Pending owner for 2 step ownership transfer.
address public pendingOwner;
constructor(address _owner, Authority _authority) RolesAuthority(_owner, _authority);
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. |
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;
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;
Emitted when the first step of an ownership transfer (proposal) is done.
event OwnershipTransferProposed(address indexed user, address indexed newOwner);
Emitted when the second step of an ownership transfer (claim) is done.
event OwnershipChanged(address indexed owner, address indexed newOwner);
Last modified 1mo ago