Ownable
contract Ownable
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) internalTransfers control of the contract to a newOwner.
- Parameters:
newOwner- The address to transfer ownership to.
fallback
function () internalThe 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.
transferOwnership
function transferOwnership(address newOwner) publicAllows the current owner to transfer control of the contract to a newOwner.
- Modifiers:
- onlyOwner
- Parameters:
newOwner- The address to transfer ownership to.
withdrawAllEther
