ClaimableERC20

Description

The ClaimableERC20 contract is a module that provides claim-based minting functionality for ERC-20 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
beforeMintERC20Callback function that checks the claim conditions before minting ERC-20 tokens.
beforeMintWithSignatureERC20Callback 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-200x36372b07

Installation Callback

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