Contract Functions

IDropClaimCondition

Interface for a claim condition that can be used to determine if a user can claim a drop

Version 5.3.4

IDropClaimCondition Contract

This interface defines the methods that a claim condition must implement to be used with the Drop contract.

Methods

  • canClaim: Checks if a given address can claim the drop based on the claim condition.
  • maxClaimableSupply: Returns the maximum number of tokens that can be claimed based on the claim condition.
  • currentClaimedSupply: Returns the number of tokens that have already been claimed based on the claim condition.
  • availableSupply: Returns the number of tokens that are still available to be claimed based on the claim condition.
  • Usage

    The Drop contract uses this interface to determine if a user is eligible to claim a drop. You can create your own claim conditions that implement this interface to customize the drop claiming process.

    Functions

    setClaimCondition

    setClaimCondition(uint256 _conditionId, uint256 _startTimestamp, uint256 _maxClaimableSupply, uint256 _supplyClaimed, bytes32 _merkleRoot, uint256 _quantityLimitPerWallet, uint256 _waitTimeSeconds, uint256 _maxClaimablePerWallet, bool _active)

    setClaimConditionActive

    setClaimConditionActive(uint256 _conditionId, bool _active)
    Ask about contract functions, security, or implementation details

    Press Enter to send your query

    Source Code

    1