ZOSLibOwnable
contract ZOSLibOwnable
The Ownable contract has an owner address, and provides basic authorization control functions, this simplifies the implementation of "user permissions". * Source https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-solidity/v2.1.3/contracts/ownership/Ownable.sol This contract is copied here and renamed from the original to avoid clashes in the compiled artifacts when the user imports a zos-lib contract (that transitively causes this contract to be compiled and added to the build/artifacts folder) as well as the vanilla Ownable implementation from an openzeppelin version.
Index
Reference
Events
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 () internal
The Ownable constructor sets the original `owner` of the contract to the sender account.
isOwner
function isOwner() public view returns (bool)
- Returns:
- true if `msg.sender` is the owner of the contract.
owner
function owner() public view returns (address)
- Returns:
- the address of the owner.
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:
- onlyOwner
- Parameters:
newOwner
- The address to transfer ownership to.