OwnableComponent
Ownable Component
The Ownable component provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions.
The initial owner can be set by using the initializer function in
construction time. This can later be changed with transfer_ownership.
The component also offers functionality for a two-step ownership transfer where the new owner first has to accept their ownership to finalize the transfer.
Fully qualified path: openzeppelin_access::ownable::ownable::OwnableComponent
Modules
Free functions
Structs
| Storage | — |
| OwnershipTransferred | Emitted when new_owner is set as owner of the contract. new_owner can be set to zero only if the ownership is renounced. |
| OwnershipTransferStarted | Emitted when transfer_ownership is called on a contract that implements IOwnableTwoStep . previous_owner is the address of the current owner. new_owner is the address of the pending owner. |
| ComponentState | — |