Ownable.sol

contract Ownable

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

Index

Reference

Events

  • OwnershipRenounced

    event OwnershipRenounced(address previousOwner)

    Parameters:previousOwner - address

  • OwnershipTransferred

    event OwnershipTransferred(address previousOwner, address newOwner)

    Parameters:previousOwner - addressnewOwner - address

Modifiers

  • onlyOwner

    modifier onlyOwner()

    Throws if called by any account other than the owner.

Functions

  • _transferOwnership

    function _transferOwnership(address _newOwner) internal

    Transfers control of the contract to a newOwner.Parameters:_newOwner - The address to transfer ownership to.

  • fallback

    function () public

    The Ownable constructor sets the original `owner` of the contract to the sender account.

  • renounceOwnership

    function renounceOwnership() public

    Allows the current owner to relinquish control of the contract., Renouncing to ownership will leave the contract without an owner. It will not be possible to call the functions with the `onlyOwner` modifier anymore.Modifiers:onlyOwner

  • transferOwnership

    function transferOwnership(address _newOwner) public

    Allows the current owner to transfer control of the contract to a newOwner.Modifiers:onlyOwnerParameters:_newOwner - The address to transfer ownership to.

Last updated

Was this helpful?