ClaimableERC721

Description

The ClaimableERC721 contract is a module that provides claim-based minting functionality for ERC-721 tokens. It includes features for setting claim conditions, validating claims via Merkle proofs, and handling signature-based claim requests. This contract ensures secure and controlled minting processes with the possibility of integrating primary sales.

GitHub
View on GitHub

Callback Functions

FunctionDescription
beforeMintERC721Callback function that checks the claim conditions before minting ERC-721 tokens.
beforeMintWithSignatureERC721Callback function that verifies a claim request with a signature and processes the mint accordingly.

Fallback Functions

FunctionDescription
getSaleConfigReturns the sale configuration for a token, including the primary sale recipient.
setSaleConfigSets the sale configuration for a token, including the primary sale recipient. Requires manager role.
getClaimConditionReturns the claim condition for a specific token ID.
setClaimConditionSets the claim condition for a specific token ID. Requires minter role.

Required Interfaces

InterfaceID
ERC-7210x80ac58cd

Installation Callback

This module uses an installation callback to set up the initial parameters such as the primary sale recipient.