IClaimConditionsSinglePhase
Thirdweb's 'Drop' contracts are distribution mechanisms for tokens. A contract admin (i.e. a holder of DEFAULT_ADMIN_ROLE
) can set a series of claim conditions, ordered by their respective startTimestamp
. A claim condition defines criteria under which accounts can mint tokens. Claim conditions can be overwritten or added to by the contract admin. At any moment, there is only one active claim condition.
Methods
setClaimConditions
function setClaimConditions(IClaimCondition.ClaimCondition phase, bool resetClaimEligibility) external nonpayable
Lets a contract admin (account with DEFAULT_ADMIN_ROLE
) set claim conditions.
Parameters
Name | Type | Description |
---|---|---|
phase | IClaimCondition.ClaimCondition | Claim conditions in ascending order by startTimestamp . |
resetClaimEligibility | bool | Whether to reset limitLastClaimTimestamp and limitMerkleProofClaim values when setting new claim conditions. |
Events
ClaimConditionUpdated
event ClaimConditionUpdated(IClaimCondition.ClaimCondition claimConditions, bool resetClaimEligibility)
Parameters
Name | Type | Description |
---|---|---|
claimConditions | IClaimCondition.ClaimCondition | undefined |
resetClaimEligibility | bool | undefined |