Skip to main content

Drop1155

Methods

claim

function claim(address _receiver, uint256 _tokenId, uint256 _quantity, address _currency, uint256 _pricePerToken, IDrop1155.AllowlistProof _allowlistProof, bytes _data) external payable

Parameters

NameTypeDescription
_receiveraddressundefined
_tokenIduint256undefined
_quantityuint256undefined
_currencyaddressundefined
_pricePerTokenuint256undefined
_allowlistProofIDrop1155.AllowlistProofundefined
_databytesundefined

claimCondition

function claimCondition(uint256) external view returns (uint256 currentStartId, uint256 count)

Mapping from token ID => the set of all claim conditions, at any given moment, for tokens of the token ID.

Parameters

NameTypeDescription
_0uint256undefined

Returns

NameTypeDescription
currentStartIduint256undefined
countuint256undefined

getActiveClaimConditionId

function getActiveClaimConditionId(uint256 _tokenId) external view returns (uint256)

At any given moment, returns the uid for the active claim condition.

Parameters

NameTypeDescription
_tokenIduint256undefined

Returns

NameTypeDescription
_0uint256undefined

getClaimConditionById

function getClaimConditionById(uint256 _tokenId, uint256 _conditionId) external view returns (struct IClaimCondition.ClaimCondition condition)

Returns the claim condition at the given uid.

Parameters

NameTypeDescription
_tokenIduint256undefined
_conditionIduint256undefined

Returns

NameTypeDescription
conditionIClaimCondition.ClaimConditionundefined

getSupplyClaimedByWallet

function getSupplyClaimedByWallet(uint256 _tokenId, uint256 _conditionId, address _claimer) external view returns (uint256 supplyClaimedByWallet)

Returns the supply claimed by claimer for a given conditionId.

Parameters

NameTypeDescription
_tokenIduint256undefined
_conditionIduint256undefined
_claimeraddressundefined

Returns

NameTypeDescription
supplyClaimedByWalletuint256undefined

setClaimConditions

function setClaimConditions(uint256 _tokenId, IClaimCondition.ClaimCondition[] _conditions, bool _resetClaimEligibility) external nonpayable

Parameters

NameTypeDescription
_tokenIduint256undefined
_conditionsIClaimCondition.ClaimCondition[]undefined
_resetClaimEligibilityboolundefined

verifyClaim

function verifyClaim(uint256 _conditionId, address _claimer, uint256 _tokenId, uint256 _quantity, address _currency, uint256 _pricePerToken, IDrop1155.AllowlistProof _allowlistProof) external view returns (bool isOverride)

Parameters

NameTypeDescription
_conditionIduint256undefined
_claimeraddressundefined
_tokenIduint256undefined
_quantityuint256undefined
_currencyaddressundefined
_pricePerTokenuint256undefined
_allowlistProofIDrop1155.AllowlistProofundefined

Returns

NameTypeDescription
isOverrideboolundefined

Events

ClaimConditionsUpdated

event ClaimConditionsUpdated(uint256 indexed tokenId, IClaimCondition.ClaimCondition[] claimConditions, bool resetEligibility)

Emitted when the contract's claim conditions are updated.

Parameters

NameTypeDescription
tokenId indexeduint256undefined
claimConditionsIClaimCondition.ClaimCondition[]undefined
resetEligibilityboolundefined

TokensClaimed

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

Emitted when tokens are claimed.

Parameters

NameTypeDescription
claimConditionIndex indexeduint256undefined
claimer indexedaddressundefined
receiver indexedaddressundefined
tokenIduint256undefined
quantityClaimeduint256undefined