UNPKG

@thirdweb-dev/contracts-js

Version:
1,023 lines • 20.4 kB
[ { "type": "constructor", "inputs": [ { "name": "_defaultAdmin", "type": "address", "internalType": "address" }, { "name": "_name", "type": "string", "internalType": "string" }, { "name": "_symbol", "type": "string", "internalType": "string" }, { "name": "_primarySaleRecipient", "type": "address", "internalType": "address" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "DOMAIN_SEPARATOR", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "allowance", "inputs": [ { "name": "owner", "type": "address", "internalType": "address" }, { "name": "spender", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "approve", "inputs": [ { "name": "spender", "type": "address", "internalType": "address" }, { "name": "amount", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "balanceOf", "inputs": [ { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "burn", "inputs": [ { "name": "_amount", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "burnFrom", "inputs": [ { "name": "_account", "type": "address", "internalType": "address" }, { "name": "_amount", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "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.AllowlistProof", "components": [ { "name": "proof", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "quantityLimitPerWallet", "type": "uint256", "internalType": "uint256" }, { "name": "pricePerToken", "type": "uint256", "internalType": "uint256" }, { "name": "currency", "type": "address", "internalType": "address" } ] }, { "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": "quantityLimitPerWallet", "type": "uint256", "internalType": "uint256" }, { "name": "merkleRoot", "type": "bytes32", "internalType": "bytes32" }, { "name": "pricePerToken", "type": "uint256", "internalType": "uint256" }, { "name": "currency", "type": "address", "internalType": "address" }, { "name": "metadata", "type": "string", "internalType": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "contractURI", "inputs": [], "outputs": [ { "name": "", "type": "string", "internalType": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "decimals", "inputs": [], "outputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "stateMutability": "view" }, { "type": "function", "name": "decreaseAllowance", "inputs": [ { "name": "spender", "type": "address", "internalType": "address" }, { "name": "subtractedValue", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "getSupplyClaimedByWallet", "inputs": [ { "name": "_claimer", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "increaseAllowance", "inputs": [ { "name": "spender", "type": "address", "internalType": "address" }, { "name": "addedValue", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "multicall", "inputs": [ { "name": "data", "type": "bytes[]", "internalType": "bytes[]" } ], "outputs": [ { "name": "results", "type": "bytes[]", "internalType": "bytes[]" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "name", "inputs": [], "outputs": [ { "name": "", "type": "string", "internalType": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "nonces", "inputs": [ { "name": "owner", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "permit", "inputs": [ { "name": "owner", "type": "address", "internalType": "address" }, { "name": "spender", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "deadline", "type": "uint256", "internalType": "uint256" }, { "name": "v", "type": "uint8", "internalType": "uint8" }, { "name": "r", "type": "bytes32", "internalType": "bytes32" }, { "name": "s", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "primarySaleRecipient", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "setClaimConditions", "inputs": [ { "name": "_condition", "type": "tuple", "internalType": "struct IClaimCondition.ClaimCondition", "components": [ { "name": "startTimestamp", "type": "uint256", "internalType": "uint256" }, { "name": "maxClaimableSupply", "type": "uint256", "internalType": "uint256" }, { "name": "supplyClaimed", "type": "uint256", "internalType": "uint256" }, { "name": "quantityLimitPerWallet", "type": "uint256", "internalType": "uint256" }, { "name": "merkleRoot", "type": "bytes32", "internalType": "bytes32" }, { "name": "pricePerToken", "type": "uint256", "internalType": "uint256" }, { "name": "currency", "type": "address", "internalType": "address" }, { "name": "metadata", "type": "string", "internalType": "string" } ] }, { "name": "_resetClaimEligibility", "type": "bool", "internalType": "bool" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setContractURI", "inputs": [ { "name": "_uri", "type": "string", "internalType": "string" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setOwner", "inputs": [ { "name": "_newOwner", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setPrimarySaleRecipient", "inputs": [ { "name": "_saleRecipient", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "symbol", "inputs": [], "outputs": [ { "name": "", "type": "string", "internalType": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "totalSupply", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "transfer", "inputs": [ { "name": "to", "type": "address", "internalType": "address" }, { "name": "amount", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "transferFrom", "inputs": [ { "name": "from", "type": "address", "internalType": "address" }, { "name": "to", "type": "address", "internalType": "address" }, { "name": "amount", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "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": "_allowlistProof", "type": "tuple", "internalType": "struct IDropSinglePhase.AllowlistProof", "components": [ { "name": "proof", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "quantityLimitPerWallet", "type": "uint256", "internalType": "uint256" }, { "name": "pricePerToken", "type": "uint256", "internalType": "uint256" }, { "name": "currency", "type": "address", "internalType": "address" } ] } ], "outputs": [ { "name": "isOverride", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "event", "name": "Approval", "inputs": [ { "name": "owner", "type": "address", "indexed": true, "internalType": "address" }, { "name": "spender", "type": "address", "indexed": true, "internalType": "address" }, { "name": "value", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "ClaimConditionUpdated", "inputs": [ { "name": "condition", "type": "tuple", "indexed": false, "internalType": "struct IClaimCondition.ClaimCondition", "components": [ { "name": "startTimestamp", "type": "uint256", "internalType": "uint256" }, { "name": "maxClaimableSupply", "type": "uint256", "internalType": "uint256" }, { "name": "supplyClaimed", "type": "uint256", "internalType": "uint256" }, { "name": "quantityLimitPerWallet", "type": "uint256", "internalType": "uint256" }, { "name": "merkleRoot", "type": "bytes32", "internalType": "bytes32" }, { "name": "pricePerToken", "type": "uint256", "internalType": "uint256" }, { "name": "currency", "type": "address", "internalType": "address" }, { "name": "metadata", "type": "string", "internalType": "string" } ] }, { "name": "resetEligibility", "type": "bool", "indexed": false, "internalType": "bool" } ], "anonymous": false }, { "type": "event", "name": "ContractURIUpdated", "inputs": [ { "name": "prevURI", "type": "string", "indexed": false, "internalType": "string" }, { "name": "newURI", "type": "string", "indexed": false, "internalType": "string" } ], "anonymous": false }, { "type": "event", "name": "OwnerUpdated", "inputs": [ { "name": "prevOwner", "type": "address", "indexed": true, "internalType": "address" }, { "name": "newOwner", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "PrimarySaleRecipientUpdated", "inputs": [ { "name": "recipient", "type": "address", "indexed": true, "internalType": "address" } ], "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 }, { "type": "event", "name": "Transfer", "inputs": [ { "name": "from", "type": "address", "indexed": true, "internalType": "address" }, { "name": "to", "type": "address", "indexed": true, "internalType": "address" }, { "name": "value", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "error", "name": "ContractMetadataUnauthorized", "inputs": [] }, { "type": "error", "name": "CurrencyTransferLibFailedNativeTransfer", "inputs": [ { "name": "recipient", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "DropClaimExceedLimit", "inputs": [ { "name": "expected", "type": "uint256", "internalType": "uint256" }, { "name": "actual", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "DropClaimExceedMaxSupply", "inputs": [ { "name": "expected", "type": "uint256", "internalType": "uint256" }, { "name": "actual", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "DropClaimInvalidTokenPrice", "inputs": [ { "name": "expectedCurrency", "type": "address", "internalType": "address" }, { "name": "expectedPricePerToken", "type": "uint256", "internalType": "uint256" }, { "name": "actualCurrency", "type": "address", "internalType": "address" }, { "name": "actualExpectedPricePerToken", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "DropClaimNotStarted", "inputs": [ { "name": "expected", "type": "uint256", "internalType": "uint256" }, { "name": "actual", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "DropExceedMaxSupply", "inputs": [] }, { "type": "error", "name": "DropNoActiveCondition", "inputs": [] }, { "type": "error", "name": "DropUnauthorized", "inputs": [] }, { "type": "error", "name": "OwnableUnauthorized", "inputs": [] }, { "type": "error", "name": "PrimarySaleInvalidRecipient", "inputs": [ { "name": "recipient", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "PrimarySaleUnauthorized", "inputs": [] } ]