Whitelist
contract Whitelist
The Whitelist contract has a whitelist of addresses, and provides basic authorization control functions. This simplifies the implementation of "user permissions".
Source: access/Whitelist.sol
Index
Reference
Modifiers
onlyIfWhitelisted
modifier onlyIfWhitelisted(address _operator)
Throws if operator is not whitelisted.
- Parameters:
_operator
- address
Functions
addAddressToWhitelist
function addAddressToWhitelist(address _operator) public
Add an address to the whitelist.
- Modifiers:
- onlyOwner
- Parameters:
_operator
- address- Returns:
- true if the address was added to the whitelist, false if the address was already in the whitelist
addAddressesToWhitelist
function addAddressesToWhitelist(address[] _operators) public
Add addresses to the whitelist.
- Modifiers:
- onlyOwner
- Parameters:
_operators
- addresses- Returns:
- true if at least one address was added to the whitelist, false if all addresses were already in the whitelist
removeAddressFromWhitelist
function removeAddressFromWhitelist(address _operator) public
Remove an address from the whitelist.
- Modifiers:
- onlyOwner
- Parameters:
_operator
- address- Returns:
- true if the address was removed from the whitelist, false if the address wasn't in the whitelist in the first place
removeAddressesFromWhitelist
function removeAddressesFromWhitelist(address[] _operators) public
Remove addresses from the whitelist.
- Modifiers:
- onlyOwner
- Parameters:
_operators
- addresses- Returns:
- true if at least one address was removed from the whitelist, false if all addresses weren't in the whitelist in the first place
whitelist
function whitelist(address _operator) public view returns (bool)
Getter to determine if address is in whitelist.
- Parameters:
_operator
- address- Returns:
- bool