HaiOwnable2Step
Inherits: Ownable2Step, IHaiOwnable2Step
This abstract contract inherits Ownable2Step
Functions
owner
Emitted when an ownership transfer is initiated
function owner() public view virtual override(Ownable, IHaiOwnable2Step) returns (address _owner);
pendingOwner
The address of the pending owner
function pendingOwner() public view virtual override(Ownable2Step, IHaiOwnable2Step) returns (address _pendingOwner);
renounceOwnership
Leaves the contract without an owner, thereby disabling any functionality that is only available to the owner
It will not be possible to call onlyOwner
functions
function renounceOwnership() public virtual override(Ownable, IHaiOwnable2Step) onlyOwner;
transferOwnership
Starts the ownership transfer of the contract to a new account
Replaces the pending transfer if there is one
function transferOwnership(address _newOwner) public virtual override(Ownable2Step, IHaiOwnable2Step) onlyOwner;
Parameters
Name | Type | Description |
---|---|---|
_newOwner | address | The address of the new owner |
acceptOwnership
Accepts the ownership transfer
Can only be called by the current pending owner
function acceptOwnership() public virtual override(Ownable2Step, IHaiOwnable2Step);