IOwner
IOwner
Addresses
Chain | Address |
---|
Functions
transferOwner
function transferOwner(address newOwner) external
Dev note
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.
acceptOwner
function acceptOwner() external
Dev note
The new owner accepts the ownership transfer.
pendingOwner
function pendingOwner() external view returns (address)
Dev note
Returns the address of the pending owner.
owner
function owner() external view returns (address)
Dev note
Returns the address of the current owner.
Events
OwnerTransferStarted
event OwnerTransferStarted(address previousOwner, address newOwner)
OwnerTransferred
event OwnerTransferred(address previousOwner, address newOwner)
Errors
OwnerUnauthorizedAccount
error OwnerUnauthorizedAccount(address account)
Dev note
The caller account is not authorized to perform an operation.
OwnerInvalidAddress
error OwnerInvalidAddress(address owner)
Dev note
The owner is not a valid owner account. (eg. address(0)
)