UNPKG

@thirdweb-dev/contracts-js

Version:
1,621 lines • 31.7 kB
[ { "type": "constructor", "inputs": [ { "name": "_defaultAdmin", "type": "address", "internalType": "address" }, { "name": "_name", "type": "string", "internalType": "string" }, { "name": "_symbol", "type": "string", "internalType": "string" }, { "name": "_royaltyRecipient", "type": "address", "internalType": "address" }, { "name": "_royaltyBps", "type": "uint128", "internalType": "uint128" }, { "name": "_primarySaleRecipient", "type": "address", "internalType": "address" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "approve", "inputs": [ { "name": "to", "type": "address", "internalType": "address" }, { "name": "tokenId", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "balanceOf", "inputs": [ { "name": "owner", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "batchFrozen", "inputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "burn", "inputs": [ { "name": "_tokenId", "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": "encryptDecrypt", "inputs": [ { "name": "data", "type": "bytes", "internalType": "bytes" }, { "name": "key", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "result", "type": "bytes", "internalType": "bytes" } ], "stateMutability": "pure" }, { "type": "function", "name": "encryptedData", "inputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bytes", "internalType": "bytes" } ], "stateMutability": "view" }, { "type": "function", "name": "getApproved", "inputs": [ { "name": "tokenId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "getBaseURICount", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getBatchIdAtIndex", "inputs": [ { "name": "_index", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getDefaultRoyaltyInfo", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" }, { "name": "", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "getRevealURI", "inputs": [ { "name": "_batchId", "type": "uint256", "internalType": "uint256" }, { "name": "_key", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "revealedURI", "type": "string", "internalType": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "getRoyaltyInfoForToken", "inputs": [ { "name": "_tokenId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" }, { "name": "", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "getSupplyClaimedByWallet", "inputs": [ { "name": "_claimer", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "isApprovedForAll", "inputs": [ { "name": "owner", "type": "address", "internalType": "address" }, { "name": "operator", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "isEncryptedBatch", "inputs": [ { "name": "_batchId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "lazyMint", "inputs": [ { "name": "_amount", "type": "uint256", "internalType": "uint256" }, { "name": "_baseURIForTokens", "type": "string", "internalType": "string" }, { "name": "_data", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "batchId", "type": "uint256", "internalType": "uint256" } ], "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": "nextTokenIdToClaim", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "nextTokenIdToMint", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "ownerOf", "inputs": [ { "name": "tokenId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "primarySaleRecipient", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "reveal", "inputs": [ { "name": "_index", "type": "uint256", "internalType": "uint256" }, { "name": "_key", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "revealedURI", "type": "string", "internalType": "string" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "royaltyInfo", "inputs": [ { "name": "tokenId", "type": "uint256", "internalType": "uint256" }, { "name": "salePrice", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "receiver", "type": "address", "internalType": "address" }, { "name": "royaltyAmount", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "safeTransferFrom", "inputs": [ { "name": "from", "type": "address", "internalType": "address" }, { "name": "to", "type": "address", "internalType": "address" }, { "name": "tokenId", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "safeTransferFrom", "inputs": [ { "name": "from", "type": "address", "internalType": "address" }, { "name": "to", "type": "address", "internalType": "address" }, { "name": "tokenId", "type": "uint256", "internalType": "uint256" }, { "name": "_data", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setApprovalForAll", "inputs": [ { "name": "operator", "type": "address", "internalType": "address" }, { "name": "approved", "type": "bool", "internalType": "bool" } ], "outputs": [], "stateMutability": "nonpayable" }, { "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": "setDefaultRoyaltyInfo", "inputs": [ { "name": "_royaltyRecipient", "type": "address", "internalType": "address" }, { "name": "_royaltyBps", "type": "uint256", "internalType": "uint256" } ], "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": "setRoyaltyInfoForToken", "inputs": [ { "name": "_tokenId", "type": "uint256", "internalType": "uint256" }, { "name": "_recipient", "type": "address", "internalType": "address" }, { "name": "_bps", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "supportsInterface", "inputs": [ { "name": "interfaceId", "type": "bytes4", "internalType": "bytes4" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "symbol", "inputs": [], "outputs": [ { "name": "", "type": "string", "internalType": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "tokenURI", "inputs": [ { "name": "_tokenId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "string", "internalType": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "totalSupply", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "transferFrom", "inputs": [ { "name": "from", "type": "address", "internalType": "address" }, { "name": "to", "type": "address", "internalType": "address" }, { "name": "tokenId", "type": "uint256", "internalType": "uint256" } ], "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": "_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": "approved", "type": "address", "indexed": true, "internalType": "address" }, { "name": "tokenId", "type": "uint256", "indexed": true, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "ApprovalForAll", "inputs": [ { "name": "owner", "type": "address", "indexed": true, "internalType": "address" }, { "name": "operator", "type": "address", "indexed": true, "internalType": "address" }, { "name": "approved", "type": "bool", "indexed": false, "internalType": "bool" } ], "anonymous": false }, { "type": "event", "name": "BatchMetadataUpdate", "inputs": [ { "name": "_fromTokenId", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "_toTokenId", "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": "DefaultRoyalty", "inputs": [ { "name": "newRoyaltyRecipient", "type": "address", "indexed": true, "internalType": "address" }, { "name": "newRoyaltyBps", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "MetadataFrozen", "inputs": [], "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": "RoyaltyForToken", "inputs": [ { "name": "tokenId", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "royaltyRecipient", "type": "address", "indexed": true, "internalType": "address" }, { "name": "royaltyBps", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "TokenURIRevealed", "inputs": [ { "name": "index", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "revealedURI", "type": "string", "indexed": false, "internalType": "string" } ], "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": "TokensLazyMinted", "inputs": [ { "name": "startTokenId", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "endTokenId", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "baseURI", "type": "string", "indexed": false, "internalType": "string" }, { "name": "encryptedBaseURI", "type": "bytes", "indexed": false, "internalType": "bytes" } ], "anonymous": false }, { "type": "event", "name": "Transfer", "inputs": [ { "name": "from", "type": "address", "indexed": true, "internalType": "address" }, { "name": "to", "type": "address", "indexed": true, "internalType": "address" }, { "name": "tokenId", "type": "uint256", "indexed": true, "internalType": "uint256" } ], "anonymous": false }, { "type": "error", "name": "ApprovalCallerNotOwnerNorApproved", "inputs": [] }, { "type": "error", "name": "ApprovalQueryForNonexistentToken", "inputs": [] }, { "type": "error", "name": "ApprovalToCurrentOwner", "inputs": [] }, { "type": "error", "name": "ApproveToCaller", "inputs": [] }, { "type": "error", "name": "BalanceQueryForZeroAddress", "inputs": [] }, { "type": "error", "name": "BatchMintInvalidBatchId", "inputs": [ { "name": "index", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "BatchMintInvalidTokenId", "inputs": [ { "name": "tokenId", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "BatchMintMetadataFrozen", "inputs": [ { "name": "batchId", "type": "uint256", "internalType": "uint256" } ] }, { "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": "DelayedRevealIncorrectResultHash", "inputs": [ { "name": "expected", "type": "bytes32", "internalType": "bytes32" }, { "name": "actual", "type": "bytes32", "internalType": "bytes32" } ] }, { "type": "error", "name": "DelayedRevealNothingToReveal", "inputs": [] }, { "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": "LazyMintInvalidAmount", "inputs": [] }, { "type": "error", "name": "LazyMintUnauthorized", "inputs": [] }, { "type": "error", "name": "MintToZeroAddress", "inputs": [] }, { "type": "error", "name": "MintZeroQuantity", "inputs": [] }, { "type": "error", "name": "OwnableUnauthorized", "inputs": [] }, { "type": "error", "name": "OwnerQueryForNonexistentToken", "inputs": [] }, { "type": "error", "name": "PrimarySaleInvalidRecipient", "inputs": [ { "name": "recipient", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "PrimarySaleUnauthorized", "inputs": [] }, { "type": "error", "name": "RoyaltyExceededMaxFeeBps", "inputs": [ { "name": "max", "type": "uint256", "internalType": "uint256" }, { "name": "actual", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "RoyaltyInvalidRecipient", "inputs": [ { "name": "recipient", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "RoyaltyUnauthorized", "inputs": [] }, { "type": "error", "name": "TransferCallerNotOwnerNorApproved", "inputs": [] }, { "type": "error", "name": "TransferFromIncorrectOwner", "inputs": [] }, { "type": "error", "name": "TransferToNonERC721ReceiverImplementer", "inputs": [] }, { "type": "error", "name": "TransferToZeroAddress", "inputs": [] }, { "type": "error", "name": "URIQueryForNonexistentToken", "inputs": [] } ]