Superuser
contract Superuser
The Superuser contract defines a single superuser who can transfer the ownership of a contract to a new address, even if he is not the owner. A superuser can transfer his role to a new address.
Source: ownership/Superuser.sol
Reference
Modifiers
onlyOwnerOrSuperuser
modifier onlyOwnerOrSuperuser()
onlySuperuser
modifier onlySuperuser()
Throws if called by any account that's not a superuser.
Functions
fallback
function () public
isSuperuser
function isSuperuser(address _addr) public view returns (bool)
Getter to determine if address has superuser role.
- Parameters:
_addr
- address- Returns:
- bool
transferOwnership
function transferOwnership(address _newOwner) public
Allows the current superuser or owner to transfer control of the contract to a newOwner.
- Modifiers:
- onlyOwnerOrSuperuser
- Parameters:
_newOwner
- The address to transfer ownership to.
transferSuperuser
function transferSuperuser(address _newSuperuser) public
Allows the current superuser to transfer his role to a newSuperuser.
- Modifiers:
- onlySuperuser
- Parameters:
_newSuperuser
- The address to transfer ownership to.