Ownable

Git Source

Inherits: IOwnable

This abstract contract adds basic ownership control functionalities

State Variables

owner

Address of the contract owner

address public owner;

Functions

constructor

constructor(address _owner);

Parameters

NameTypeDescription
_owneraddressThe address of the owner of the contract

setOwner

Sets a new contract owner

function setOwner(address _owner) external onlyOwner;

Parameters

NameTypeDescription
_owneraddress

_setOwner

Sets a new contract owner

function _setOwner(address _newOwner) internal;

onlyOwner

Checks whether msg.sender can call an owned function

modifier onlyOwner();