TwoKeyCampaignValidator
contract TwoKeyCampaignValidator
Index
Reference
Modifiers
onlyTwoKeyFactory
modifier onlyTwoKeyFactory()
Functions
campaign2NonSingletonHash
function campaign2NonSingletonHash(address campaign) public view returns (string)
Function which is serving as getter for non-singleton hash at the time of campaign creation.
- Parameters:
campaign
- is the address of strictly main campaign contract (TwoKeyAcquisitionCampaignERC20, TwoKeyDonationCampaign for now)- Returns:
- string
emitCreatedEvent
function emitCreatedEvent(address campaign) internal
Function to emit event on TwoKeyEventSource contract.
- Parameters:
campaign
- address
isCampaignValidated
function isCampaignValidated(address campaign) public view returns (bool)
Function which will return either is or not one of the campaign contracts validated.
- Parameters:
campaign
- is any contract deployed during any campaign creation through TwoKeyFactory- Returns:
- bool
setInitialParams
function setInitialParams(address _twoKeySingletoneRegistry, address _proxyStorage) public
Function to set initial parameters in this contract.
- Parameters:
_twoKeySingletoneRegistry
- is the address of TwoKeySingletoneRegistry contract_proxyStorage
- is the address of proxy of storage contract
validateAcquisitionCampaign
function validateAcquisitionCampaign(address campaign, string nonSingletonHash) public
Function which will make newly created campaign validated.
- Modifiers:
- onlyTwoKeyFactory
- Parameters:
campaign
- is the address of the campaignnonSingletonHash
- is the non singleton hash at the moment of campaign creation
validateDonationCampaign
function validateDonationCampaign(address campaign, address donationConversionHandler, address donationLogicHandler, string nonSingletonHash) public
Validates all the required stuff, if the campaign is not validated, it can't update our singletones, Function which will make newly created campaign validated.
- Modifiers:
- onlyTwoKeyFactory
- Parameters:
campaign
- is the campaign addressdonationConversionHandler
- addressdonationLogicHandler
- addressnonSingletonHash
- string