WhitelistedCrowdsale
contract WhitelistedCrowdsale
Crowdsale in which only whitelisted users can contribute.
Reference
Modifiers
isWhitelisted
modifier isWhitelisted(address _beneficiary)
Reverts if beneficiary is not whitelisted. Can be used when extending this contract.
- Parameters:
_beneficiary
- address
Functions
_preValidatePurchase
function _preValidatePurchase(address _beneficiary, uint256 _weiAmount) internal
Extend parent behavior requiring beneficiary to be in whitelist.
- Modifiers:
- isWhitelisted
- Parameters:
_beneficiary
- Token beneficiary_weiAmount
- Amount of wei contributed
addManyToWhitelist
function addManyToWhitelist(address[] _beneficiaries) external
Adds list of addresses to whitelist. Not overloaded due to limitations with truffle testing.
- Modifiers:
- onlyOwner
- Parameters:
_beneficiaries
- Addresses to be added to the whitelist
addToWhitelist
function addToWhitelist(address _beneficiary) external
Adds single address to whitelist.
- Modifiers:
- onlyOwner
- Parameters:
_beneficiary
- Address to be added to the whitelist
removeFromWhitelist
function removeFromWhitelist(address _beneficiary) external
Removes single address from whitelist.
- Modifiers:
- onlyOwner
- Parameters:
_beneficiary
- Address to be removed to the whitelist