Skip to main content

DropSinglePhase1155

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

claimCondition

function claimCondition(uint256) external view returns (uint256 startTimestamp, uint256 maxClaimableSupply, uint256 supplyClaimed, uint256 quantityLimitPerWallet, bytes32 merkleRoot, uint256 pricePerToken, address currency, string metadata)

Mapping from tokenId => active claim condition for the tokenId.

Parameters

NameTypeDescription
_0uint256undefined

Returns

NameTypeDescription
startTimestampuint256undefined
maxClaimableSupplyuint256undefined
supplyClaimeduint256undefined
quantityLimitPerWalletuint256undefined
merkleRootbytes32undefined
pricePerTokenuint256undefined
currencyaddressundefined
metadatastringundefined

getSupplyClaimedByWallet

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

Returns the supply claimed by claimer for active conditionId.

Parameters

NameTypeDescription
_tokenIduint256undefined
_claimeraddressundefined

Returns

NameTypeDescription
_0uint256undefined

setClaimConditions

function setClaimConditions(uint256 _tokenId, IClaimCondition.ClaimCondition _condition, bool _resetClaimEligibility) external nonpayable

Parameters

NameTypeDescription
_tokenIduint256undefined
_conditionIClaimCondition.ClaimConditionundefined
_resetClaimEligibilityboolundefined

verifyClaim

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

Parameters

NameTypeDescription
_tokenIduint256undefined
_claimeraddressundefined
_quantityuint256undefined
_currencyaddressundefined
_pricePerTokenuint256undefined
_allowlistProofIDropSinglePhase1155.AllowlistProofundefined

Returns

NameTypeDescription
isOverrideboolundefined

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