Skip to main content

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

NameTypeDescription
phaseIClaimCondition.ClaimConditionClaim conditions in ascending order by startTimestamp.
resetClaimEligibilityboolWhether to reset limitLastClaimTimestamp and limitMerkleProofClaim values when setting new claim conditions.

Events

ClaimConditionUpdated

event ClaimConditionUpdated(IClaimCondition.ClaimCondition claimConditions, bool resetClaimEligibility)

Parameters

NameTypeDescription
claimConditionsIClaimCondition.ClaimConditionundefined
resetClaimEligibilityboolundefined