Ownable
The Ownable contract has an owner address, and provides basic authorization control functions, this simplifies the implementation of "user permissions".
Constants & Variables
address public owner;
Events
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
Throws if called by any account other than the owner.
modifier onlyOwner() internal
Arguments
Name | Type | Description |
---|
Renouncing to ownership will leave the contract without an owner.
It will not be possible to call the functions with the onlyOwner
modifier anymore.
function renounceOwnership() public onlyOwner
Allows the current owner to transfer control of the contract to a newOwner.
function transferOwnership(address _newOwner) public onlyOwner
Arguments
Name | Type | Description |
---|---|---|
_newOwner | address | The address to transfer ownership to. |
Transfers control of the contract to a newOwner.
function _transferOwnership(address _newOwner) internal
Arguments
Name | Type | Description |
---|---|---|
_newOwner | address | The address to transfer ownership to. |