Skip to content

Latest commit

 

History

History
95 lines (65 loc) · 2.09 KB

Ownable.md

File metadata and controls

95 lines (65 loc) · 2.09 KB

Ownable (Ownable.sol)

Ownable

The Ownable contract has an owner address, and provides basic authorization control functions, this simplifies the implementation of "user permissions".

Contract Members

Constants & Variables

address public owner;

Events

event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

Modifiers

onlyOwner

Throws if called by any account other than the owner.

modifier onlyOwner() internal

Arguments

Name Type Description

Functions

renounceOwnership

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

transferOwnership

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.

_transferOwnership

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.

Contracts