UNPKG

@thirdweb-dev/contracts-js

Version:
355 lines • 8.02 kB
[ { "type": "function", "name": "claim", "inputs": [ { "name": "_receiver", "type": "address", "internalType": "address" }, { "name": "_quantity", "type": "uint256", "internalType": "uint256" }, { "name": "_currency", "type": "address", "internalType": "address" }, { "name": "_pricePerToken", "type": "uint256", "internalType": "uint256" }, { "name": "_allowlistProof", "type": "tuple", "internalType": "struct IDropSinglePhase_V1.AllowlistProof", "components": [ { "name": "proof", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "maxQuantityInAllowlist", "type": "uint256", "internalType": "uint256" } ] }, { "name": "_data", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "claimCondition", "inputs": [], "outputs": [ { "name": "startTimestamp", "type": "uint256", "internalType": "uint256" }, { "name": "maxClaimableSupply", "type": "uint256", "internalType": "uint256" }, { "name": "supplyClaimed", "type": "uint256", "internalType": "uint256" }, { "name": "quantityLimitPerTransaction", "type": "uint256", "internalType": "uint256" }, { "name": "waitTimeInSecondsBetweenClaims", "type": "uint256", "internalType": "uint256" }, { "name": "merkleRoot", "type": "bytes32", "internalType": "bytes32" }, { "name": "pricePerToken", "type": "uint256", "internalType": "uint256" }, { "name": "currency", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "getClaimTimestamp", "inputs": [ { "name": "_claimer", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "lastClaimedAt", "type": "uint256", "internalType": "uint256" }, { "name": "nextValidClaimTimestamp", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "setClaimConditions", "inputs": [ { "name": "_condition", "type": "tuple", "internalType": "struct IClaimCondition_V1.ClaimCondition", "components": [ { "name": "startTimestamp", "type": "uint256", "internalType": "uint256" }, { "name": "maxClaimableSupply", "type": "uint256", "internalType": "uint256" }, { "name": "supplyClaimed", "type": "uint256", "internalType": "uint256" }, { "name": "quantityLimitPerTransaction", "type": "uint256", "internalType": "uint256" }, { "name": "waitTimeInSecondsBetweenClaims", "type": "uint256", "internalType": "uint256" }, { "name": "merkleRoot", "type": "bytes32", "internalType": "bytes32" }, { "name": "pricePerToken", "type": "uint256", "internalType": "uint256" }, { "name": "currency", "type": "address", "internalType": "address" } ] }, { "name": "_resetClaimEligibility", "type": "bool", "internalType": "bool" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "verifyClaim", "inputs": [ { "name": "_claimer", "type": "address", "internalType": "address" }, { "name": "_quantity", "type": "uint256", "internalType": "uint256" }, { "name": "_currency", "type": "address", "internalType": "address" }, { "name": "_pricePerToken", "type": "uint256", "internalType": "uint256" }, { "name": "verifyMaxQuantityPerTransaction", "type": "bool", "internalType": "bool" } ], "outputs": [], "stateMutability": "view" }, { "type": "function", "name": "verifyClaimMerkleProof", "inputs": [ { "name": "_claimer", "type": "address", "internalType": "address" }, { "name": "_quantity", "type": "uint256", "internalType": "uint256" }, { "name": "_allowlistProof", "type": "tuple", "internalType": "struct IDropSinglePhase_V1.AllowlistProof", "components": [ { "name": "proof", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "maxQuantityInAllowlist", "type": "uint256", "internalType": "uint256" } ] } ], "outputs": [ { "name": "validMerkleProof", "type": "bool", "internalType": "bool" }, { "name": "merkleProofIndex", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "event", "name": "ClaimConditionUpdated", "inputs": [ { "name": "condition", "type": "tuple", "indexed": false, "internalType": "struct IClaimCondition_V1.ClaimCondition", "components": [ { "name": "startTimestamp", "type": "uint256", "internalType": "uint256" }, { "name": "maxClaimableSupply", "type": "uint256", "internalType": "uint256" }, { "name": "supplyClaimed", "type": "uint256", "internalType": "uint256" }, { "name": "quantityLimitPerTransaction", "type": "uint256", "internalType": "uint256" }, { "name": "waitTimeInSecondsBetweenClaims", "type": "uint256", "internalType": "uint256" }, { "name": "merkleRoot", "type": "bytes32", "internalType": "bytes32" }, { "name": "pricePerToken", "type": "uint256", "internalType": "uint256" }, { "name": "currency", "type": "address", "internalType": "address" } ] }, { "name": "resetEligibility", "type": "bool", "indexed": false, "internalType": "bool" } ], "anonymous": false }, { "type": "event", "name": "TokensClaimed", "inputs": [ { "name": "claimer", "type": "address", "indexed": true, "internalType": "address" }, { "name": "receiver", "type": "address", "indexed": true, "internalType": "address" }, { "name": "startTokenId", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "quantityClaimed", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false } ]