Skip to main content

IDropSinglePhase1155

The interface IDropSinglePhase1155 is written for thirdweb's 'DropSinglePhase' contracts, which are distribution mechanisms for tokens. An authorized wallet can set a claim condition for the distribution of the contract's tokens. 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​

claim​

function claim(address receiver, uint256 tokenId, uint256 quantity, address currency, uint256 pricePerToken, IDropSinglePhase1155.AllowlistProof allowlistProof, bytes data) external payable

Parameters​

NameTypeDescription
receiveraddressundefined
tokenIduint256undefined
quantityuint256undefined
currencyaddressundefined
pricePerTokenuint256undefined
allowlistProofIDropSinglePhase1155.AllowlistProofundefined
databytesundefined

setClaimConditions​

function setClaimConditions(uint256 tokenId, IClaimCondition.ClaimCondition phase, bool resetClaimEligibility) external nonpayable

Parameters​

NameTypeDescription
tokenIduint256undefined
phaseIClaimCondition.ClaimConditionundefined
resetClaimEligibilityboolundefined

Events​

ClaimConditionUpdated​

event ClaimConditionUpdated(uint256 indexed tokenId, IClaimCondition.ClaimCondition condition, bool resetEligibility)

Emitted when the contract's claim conditions are updated.

Parameters​

NameTypeDescription
tokenId indexeduint256undefined
conditionIClaimCondition.ClaimConditionundefined
resetEligibilityboolundefined

TokensClaimed​

event TokensClaimed(address indexed claimer, address indexed receiver, uint256 indexed tokenId, uint256 quantityClaimed)

Emitted when tokens are claimed via claim.

Parameters​

NameTypeDescription
claimer indexedaddressundefined
receiver indexedaddressundefined
tokenId indexeduint256undefined
quantityClaimeduint256undefined