IHaiOwnable2Step
Functions
owner
Emitted when an ownership transfer is initiated
Throws if the caller account is not authorized to perform an operation
Throws if the owner is not a valid owner account
The address of the current owner
function owner() external view returns (address _owner);
pendingOwner
The address of the pending owner
function pendingOwner() external view 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
Can only be called by the current owner
function renounceOwnership() external;
transferOwnership
Starts the ownership transfer of the contract to a new account
Replaces the pending transfer if there is one
Can only be called by the current owner
function transferOwnership(address _newOwner) external;
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() external;