ClaimableERC1155

Description

The ClaimableERC1155 contract is a module that provides claim-based minting functionality for ERC-1155 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
beforeMintERC1155Callback function that checks the claim conditions before minting ERC-1155 tokens.
beforeMintWithSignatureERC1155Callback 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.
getClaimConditionByTokenIdReturns the claim condition for a specific token ID.
setClaimConditionByTokenIdSets the claim condition for a specific token ID. Requires minter role.

Required Interfaces

InterfaceID
ERC-11550xd9b67a26

Installation Callback

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