@0xsequence/marketplace-sdk 1.2.1 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/preview.tsx +4 -7
- package/CHANGELOG.md +179 -0
- package/compile-tailwind.js +1 -1
- package/dist/BellIcon.js +7 -4
- package/dist/BellIcon.js.map +1 -1
- package/dist/Card.js +831 -0
- package/dist/Card.js.map +1 -0
- package/dist/ShopCard.d.ts +83 -0
- package/dist/_internal.js +57 -1
- package/dist/_internal.js.map +1 -1
- package/dist/abi.js +24 -1
- package/dist/abi.js.map +1 -1
- package/dist/alertMessage.js +29 -0
- package/dist/alertMessage.js.map +1 -0
- package/dist/api.js +95 -108
- package/dist/api.js.map +1 -1
- package/dist/builder-api.js +17 -4
- package/dist/builder-api.js.map +1 -1
- package/dist/calendar.js +51 -0
- package/dist/calendar.js.map +1 -0
- package/dist/checkout.js +52 -0
- package/dist/checkout.js.map +1 -0
- package/dist/collectible.js +620 -0
- package/dist/collectible.js.map +1 -0
- package/dist/collection.js +396 -0
- package/dist/collection.js.map +1 -0
- package/dist/{marketplaceConfig.js → config.js} +25 -31
- package/dist/config.js.map +1 -0
- package/dist/consts.d.ts +7 -0
- package/dist/consts.js +8 -0
- package/dist/consts.js.map +1 -0
- package/dist/contracts.js +22 -2
- package/dist/contracts.js.map +1 -1
- package/dist/create-config.d.ts +12037 -1801
- package/dist/create-config.js +9 -7
- package/dist/create-config.js.map +1 -1
- package/dist/currency.js +186 -0
- package/dist/currency.js.map +1 -0
- package/dist/currencyImage.js +28 -0
- package/dist/currencyImage.js.map +1 -0
- package/dist/dist.js +2771 -0
- package/dist/dist.js.map +1 -0
- package/dist/expirationDateSelect.js +245 -0
- package/dist/expirationDateSelect.js.map +1 -0
- package/dist/filter-state.d.ts +153 -0
- package/dist/filters.d.ts +14 -45
- package/dist/hooks.js +26 -0
- package/dist/hooks.js.map +1 -0
- package/dist/hooks2.js +24 -0
- package/dist/hooks2.js.map +1 -0
- package/dist/index.d.ts +12 -8
- package/dist/index.js +7 -10
- package/dist/index10.d.ts +39 -261
- package/dist/index11.d.ts +461 -220
- package/dist/index12.d.ts +511 -85
- package/dist/index13.d.ts +17 -493
- package/dist/index14.d.ts +15 -66
- package/dist/index15.d.ts +25 -1
- package/dist/index16.d.ts +5 -47
- package/dist/index17.d.ts +840 -108
- package/dist/index18.d.ts +552 -1
- package/dist/index19.d.ts +317 -147
- package/dist/index2.d.ts +2172 -5
- package/dist/index21.d.ts +306 -93
- package/dist/index22.d.ts +230 -1
- package/dist/index23.d.ts +323 -797
- package/dist/index24.d.ts +22 -445
- package/dist/index25.d.ts +1 -357
- package/dist/index26.d.ts +20 -151
- package/dist/index27.d.ts +18 -794
- package/dist/index28.d.ts +109 -58
- package/dist/index29.d.ts +1 -24
- package/dist/index3.d.ts +2212 -51
- package/dist/index30.d.ts +1 -0
- package/dist/index31.d.ts +48 -0
- package/dist/index32.d.ts +1 -0
- package/dist/index33.d.ts +56 -0
- package/dist/index34.d.ts +99 -0
- package/dist/index35.d.ts +171 -0
- package/dist/index36.d.ts +131 -0
- package/dist/index37.d.ts +137 -0
- package/dist/index38.d.ts +85 -0
- package/dist/index39.d.ts +91 -0
- package/dist/index4.d.ts +2634 -17
- package/dist/index40.d.ts +46 -0
- package/dist/index5.d.ts +535 -2267
- package/dist/index6.d.ts +2025 -1287
- package/dist/index7.d.ts +1798 -116
- package/dist/index8.d.ts +123 -12
- package/dist/index9.d.ts +42 -56
- package/dist/inventory.d.ts +46 -0
- package/dist/inventory.js +58 -35
- package/dist/inventory.js.map +1 -1
- package/dist/marketplace-logos.js +1 -1
- package/dist/marketplace-logos.js.map +1 -1
- package/dist/marketplace2.js +70 -0
- package/dist/marketplace2.js.map +1 -0
- package/dist/metadata.d.ts +733 -0
- package/dist/network.js +1 -1
- package/dist/networkconfigToWagmiChain.js.map +1 -1
- package/dist/primary-sale-checkout-options.d.ts +29 -0
- package/dist/quantityInput.js +93 -0
- package/dist/quantityInput.js.map +1 -0
- package/dist/ranges.d.ts +125 -0
- package/dist/react/_internal/api/index.d.ts +5 -2
- package/dist/react/_internal/api/index.js +4 -7
- package/dist/react/_internal/databeat/index.d.ts +4 -1
- package/dist/react/_internal/databeat/index.js +4 -37
- package/dist/react/_internal/index.d.ts +5 -2
- package/dist/react/_internal/index.js +5 -10
- package/dist/react/_internal/wagmi/index.d.ts +4 -1
- package/dist/react/_internal/wagmi/index.js +1 -4
- package/dist/react/hooks/_deprecated/index.d.ts +47 -0
- package/dist/react/hooks/_deprecated/index.js +4 -0
- package/dist/react/hooks/checkout/index.d.ts +7 -0
- package/dist/react/hooks/checkout/index.js +7 -0
- package/dist/react/hooks/collectible/index.d.ts +7 -0
- package/dist/react/hooks/collectible/index.js +7 -0
- package/dist/react/hooks/collection/index.d.ts +11 -0
- package/dist/react/hooks/collection/index.js +7 -0
- package/dist/react/hooks/config/index.d.ts +5 -4
- package/dist/react/hooks/config/index.js +4 -37
- package/dist/react/hooks/contracts/index.d.ts +4 -7
- package/dist/react/hooks/contracts/index.js +3 -16
- package/dist/react/hooks/currency/index.d.ts +47 -0
- package/dist/react/hooks/currency/index.js +7 -0
- package/dist/react/hooks/index.d.ts +41 -31
- package/dist/react/hooks/index.js +14 -38
- package/dist/react/hooks/inventory/index.d.ts +7 -0
- package/dist/react/hooks/inventory/index.js +4 -0
- package/dist/react/hooks/token/index.d.ts +7 -0
- package/dist/react/hooks/token/index.js +7 -0
- package/dist/react/hooks/transactions/index.d.ts +5 -2
- package/dist/react/hooks/transactions/index.js +5 -38
- package/dist/react/hooks/ui/card-data/index.d.ts +8 -0
- package/dist/react/hooks/ui/card-data/index.js +4 -0
- package/dist/react/hooks/ui/index.d.ts +9 -3
- package/dist/react/hooks/ui/index.js +8 -38
- package/dist/react/hooks/ui/url-state/index.d.ts +7 -0
- package/dist/react/hooks/ui/url-state/index.js +4 -0
- package/dist/react/hooks/utils/index.d.ts +3 -34
- package/dist/react/hooks/utils/index.js +5 -38
- package/dist/react/index.d.ts +45 -35
- package/dist/react/index.js +19 -37
- package/dist/react/providers/index.d.ts +6 -0
- package/dist/react/providers/index.js +6 -0
- package/dist/react/queries/checkout/index.d.ts +7 -0
- package/dist/react/queries/checkout/index.js +4 -0
- package/dist/react/queries/collectible/index.d.ts +7 -0
- package/dist/react/queries/collectible/index.js +5 -0
- package/dist/react/queries/collection/index.d.ts +11 -0
- package/dist/react/queries/collection/index.js +4 -0
- package/dist/react/queries/currency/index.d.ts +6 -0
- package/dist/react/queries/currency/index.js +4 -0
- package/dist/react/queries/index.d.ts +20 -21
- package/dist/react/queries/index.js +11 -30
- package/dist/react/queries/inventory/index.d.ts +6 -2
- package/dist/react/queries/inventory/index.js +3 -21
- package/dist/react/queries/marketplace/index.d.ts +7 -0
- package/dist/react/queries/marketplace/index.js +5 -0
- package/dist/react/queries/token/index.d.ts +7 -0
- package/dist/react/queries/token/index.js +4 -0
- package/dist/react/ssr/index.d.ts +12 -24
- package/dist/react/ssr/index.js +13 -33
- package/dist/react/ui/components/marketplace-collectible-card/ActionButton/index.d.ts +6 -0
- package/dist/react/ui/components/marketplace-collectible-card/ActionButton/index.js +6 -0
- package/dist/react/ui/components/marketplace-collectible-card/Card/index.d.ts +10 -0
- package/dist/react/ui/components/marketplace-collectible-card/Card/index.js +6 -0
- package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +44 -4
- package/dist/react/ui/components/marketplace-collectible-card/index.js +6 -38
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.d.ts +5 -2
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.js +3 -12
- package/dist/react/ui/components/marketplace-logos/index.d.ts +23 -22
- package/dist/react/ui/hooks/index.d.ts +47 -0
- package/dist/react/ui/hooks/index.js +15 -0
- package/dist/react/ui/icons/index.d.ts +3 -1
- package/dist/react/ui/icons/index.js +3 -14
- package/dist/react/ui/index.d.ts +47 -5
- package/dist/react/ui/index.js +6 -38
- package/dist/react/ui/modals/BuyModal/index.d.ts +47 -0
- package/dist/react/ui/modals/BuyModal/index.js +4 -0
- package/dist/react/ui/modals/CreateListingModal/index.d.ts +4 -0
- package/dist/react/ui/modals/CreateListingModal/index.js +6 -0
- package/dist/react/ui/modals/CreateListingModal/internal/hooks/index.d.ts +190 -0
- package/dist/react/ui/modals/CreateListingModal/internal/hooks/index.js +4 -0
- package/dist/react/ui/modals/MakeOfferModal/index.d.ts +4 -0
- package/dist/react/ui/modals/MakeOfferModal/index.js +4 -0
- package/dist/react/ui/modals/MakeOfferModal/internal/hooks/index.d.ts +188 -0
- package/dist/react/ui/modals/MakeOfferModal/internal/hooks/index.js +3 -0
- package/dist/react/ui/modals/SellModal/index.d.ts +6 -0
- package/dist/react/ui/modals/SellModal/index.js +6 -0
- package/dist/react/ui/modals/TransferModal/index.d.ts +47 -0
- package/dist/react/ui/modals/TransferModal/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/alertMessage/index.d.ts +14 -0
- package/dist/react/ui/modals/_internal/components/alertMessage/index.js +3 -0
- package/dist/react/ui/modals/_internal/components/baseModal/index.d.ts +144 -0
- package/dist/react/ui/modals/_internal/components/baseModal/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/calendar/index.d.ts +73 -0
- package/dist/react/ui/modals/_internal/components/calendar/index.js +5 -0
- package/dist/react/ui/modals/_internal/components/calendarDropdown/index.d.ts +21 -0
- package/dist/react/ui/modals/_internal/components/calendarDropdown/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/currencyImage/index.d.ts +15 -0
- package/dist/react/ui/modals/_internal/components/currencyImage/index.js +5 -0
- package/dist/react/ui/modals/_internal/components/currencyOptionsSelect/index.d.ts +30 -0
- package/dist/react/ui/modals/_internal/components/currencyOptionsSelect/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/expirationDateSelect/index.d.ts +2 -0
- package/dist/react/ui/modals/_internal/components/expirationDateSelect/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/floorPriceText/index.d.ts +24 -0
- package/dist/react/ui/modals/_internal/components/floorPriceText/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/priceInput/index.d.ts +43 -0
- package/dist/react/ui/modals/_internal/components/priceInput/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/quantityInput/index.d.ts +24 -0
- package/dist/react/ui/modals/_internal/components/quantityInput/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/selectWaasFeeOptions/index.d.ts +18 -0
- package/dist/react/ui/modals/_internal/components/selectWaasFeeOptions/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/switchChainErrorModal/index.d.ts +14 -0
- package/dist/react/ui/modals/_internal/components/switchChainErrorModal/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/timeAgo/index.d.ts +12 -0
- package/dist/react/ui/modals/_internal/components/timeAgo/index.js +5 -0
- package/dist/react/ui/modals/_internal/components/tokenPreview/index.d.ts +19 -0
- package/dist/react/ui/modals/_internal/components/tokenPreview/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/transaction-footer/index.d.ts +26 -0
- package/dist/react/ui/modals/_internal/components/transaction-footer/index.js +4 -0
- package/dist/react/ui/modals/_internal/components/transactionDetails/index.d.ts +28 -0
- package/dist/react/ui/modals/_internal/components/transactionDetails/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/transactionHeader/index.d.ts +16 -0
- package/dist/react/ui/modals/_internal/components/transactionHeader/index.js +3 -0
- package/dist/react/ui/modals/_internal/components/transactionPreview/index.d.ts +36 -0
- package/dist/react/ui/modals/_internal/components/transactionPreview/index.js +6 -0
- package/dist/react/ui/modals/_internal/components/transactionStatusModal/index.d.ts +27 -0
- package/dist/react/ui/modals/_internal/components/transactionStatusModal/index.js +6 -0
- package/dist/react/utils/index.d.ts +6 -19
- package/dist/react/utils/index.js +3 -8
- package/dist/react.js +12726 -9828
- package/dist/react.js.map +1 -1
- package/dist/src.js +0 -8
- package/dist/ssr.js +26 -0
- package/dist/ssr.js.map +1 -0
- package/dist/steps.d.ts +85 -0
- package/dist/styles/index.css +2056 -376
- package/dist/switchChainErrorModal.js +97 -0
- package/dist/switchChainErrorModal.js.map +1 -0
- package/dist/timeAgo.js +29 -0
- package/dist/timeAgo.js.map +1 -0
- package/dist/token-balances.d.ts +359 -0
- package/dist/token-balances.js +62 -0
- package/dist/token-balances.js.map +1 -0
- package/dist/token2.js +247 -0
- package/dist/token2.js.map +1 -0
- package/dist/transaction-footer.js +45 -0
- package/dist/transaction-footer.js.map +1 -0
- package/dist/transaction.js +1 -7
- package/dist/transaction.js.map +1 -1
- package/dist/transactionHeader.js +32 -0
- package/dist/transactionHeader.js.map +1 -0
- package/dist/types/index.d.ts +5 -2
- package/dist/types/index.js +3 -4
- package/dist/types.d.ts +26 -16
- package/dist/types.js +29 -1
- package/dist/types.js.map +1 -1
- package/dist/url-state.js +170 -0
- package/dist/url-state.js.map +1 -0
- package/dist/utils/abi/index.d.ts +6 -5
- package/dist/utils/abi/index.js +2 -2
- package/dist/utils/abi/marketplace/index.d.ts +1 -1
- package/dist/utils/abi/primary-sale/index.d.ts +1 -1
- package/dist/utils/abi/token/index.d.ts +1 -1
- package/dist/utils/index.d.ts +9 -7
- package/dist/utils/index.js +5 -9
- package/dist/utils.js +20 -9
- package/dist/utils.js.map +1 -1
- package/dist/utils2.js +64 -106
- package/dist/utils2.js.map +1 -1
- package/dist/waas-types.d.ts +19 -0
- package/dist/xstate-store.cjs.d.ts +18 -0
- package/eslint/sequence-types.js +1069 -0
- package/eslint.config.mjs +337 -9
- package/image.d.ts +5 -0
- package/package.json +49 -47
- package/postcss.config.mjs +1 -1
- package/preserve-directives.ts +235 -0
- package/public/mockServiceWorker.js +0 -1
- package/src/react/_internal/api/builder-api.ts +26 -4
- package/src/react/_internal/api/index.ts +1 -2
- package/src/react/_internal/api/marketplace-api.ts +57 -25
- package/src/react/_internal/api/services.ts +56 -4
- package/src/react/_internal/api-mocks.ts +8 -0
- package/src/react/_internal/databeat/index.ts +4 -0
- package/src/react/_internal/databeat/types.ts +24 -28
- package/src/react/_internal/index.ts +70 -0
- package/src/react/_internal/query-builder.ts +203 -0
- package/src/react/_internal/types.ts +88 -18
- package/src/react/_internal/utils.ts +34 -52
- package/src/react/_internal/wagmi/__tests__/create-config.test.ts +11 -5
- package/src/react/_internal/wagmi/create-config.ts +2 -2
- package/src/react/_internal/wagmi/get-connectors.ts +10 -6
- package/src/react/hooks/_deprecated/index.ts +61 -0
- package/src/react/hooks/checkout/index.ts +1 -0
- package/src/react/hooks/{utils/useCheckoutOptionsSalesContract.test.tsx → checkout/primary-sale-checkout-options.test.tsx} +23 -23
- package/src/react/hooks/{utils/useCheckoutOptionsSalesContract.tsx → checkout/primary-sale-checkout-options.tsx} +35 -32
- package/src/react/hooks/{data/collectibles/useBalanceOfCollectible.test.tsx → collectible/balance.test.tsx} +37 -29
- package/src/react/hooks/{data/collectibles/useBalanceOfCollectible.tsx → collectible/balance.tsx} +11 -11
- package/src/react/hooks/{data/primary-sales/useErc721SalesData.tsx → collectible/erc721-sale-details.tsx} +6 -6
- package/src/react/hooks/collectible/index.ts +16 -0
- package/src/react/hooks/{data/collectibles/useCountOfCollectables.test.tsx → collectible/market-count.test.tsx} +21 -16
- package/src/react/hooks/{data/collectibles/useCountOfCollectables.tsx → collectible/market-count.tsx} +13 -8
- package/src/react/hooks/{data/orders/useHighestOffer.test.tsx → collectible/market-highest-offer.test.tsx} +35 -24
- package/src/react/hooks/{data/orders/useHighestOffer.tsx → collectible/market-highest-offer.tsx} +12 -10
- package/src/react/hooks/{data/collectibles/useListCollectiblesPaginated.test.tsx → collectible/market-list-paginated.test.tsx} +18 -18
- package/src/react/hooks/{data/collectibles/useListCollectiblesPaginated.tsx → collectible/market-list-paginated.tsx} +12 -10
- package/src/react/hooks/{data/collectibles/useListCollectibles.test.tsx → collectible/market-list.test.tsx} +51 -39
- package/src/react/hooks/{data/collectibles/useListCollectibles.tsx → collectible/market-list.tsx} +11 -10
- package/src/react/hooks/{data/orders/useCountListingsForCollectible.test.tsx → collectible/market-listings-count.test.tsx} +13 -10
- package/src/react/hooks/{data/orders/useCountListingsForCollectible.tsx → collectible/market-listings-count.tsx} +11 -11
- package/src/react/hooks/{data/orders/useListListingsForCollectible.test.tsx → collectible/market-listings.test.tsx} +19 -19
- package/src/react/hooks/{data/orders/useListListingsForCollectible.tsx → collectible/market-listings.tsx} +17 -19
- package/src/react/hooks/{data/orders/useLowestListing.test.tsx → collectible/market-lowest-listing.test.tsx} +35 -24
- package/src/react/hooks/{data/orders/useLowestListing.tsx → collectible/market-lowest-listing.tsx} +12 -10
- package/src/react/hooks/{data/orders/useCountOffersForCollectible.test.tsx → collectible/market-offers-count.test.tsx} +13 -10
- package/src/react/hooks/{data/orders/useCountOffersForCollectible.tsx → collectible/market-offers-count.tsx} +11 -11
- package/src/react/hooks/{data/orders/useListOffersForCollectible.test.tsx → collectible/market-offers.test.tsx} +17 -17
- package/src/react/hooks/{data/orders/useListOffersForCollectible.tsx → collectible/market-offers.tsx} +16 -17
- package/src/react/hooks/{data/collectibles/useCollectible.test.tsx → collectible/metadata.test.tsx} +25 -23
- package/src/react/hooks/{data/collectibles/useCollectible.tsx → collectible/metadata.tsx} +17 -14
- package/src/react/hooks/collectible/primary-sale-item.test.tsx +503 -0
- package/src/react/hooks/{data/primary-sales/usePrimarySaleItem.tsx → collectible/primary-sale-item.tsx} +6 -8
- package/src/react/hooks/collectible/primary-sale-items-count.test.tsx +154 -0
- package/src/react/hooks/collectible/primary-sale-items-count.tsx +22 -0
- package/src/react/hooks/collectible/primary-sale-items.test.tsx +259 -0
- package/src/react/hooks/{data/primary-sales/useListPrimarySaleItems.tsx → collectible/primary-sale-items.tsx} +9 -9
- package/src/react/hooks/{data/collectibles/useTokenBalances.test.tsx → collectible/token-balances.test.tsx} +52 -28
- package/src/react/hooks/{data/collectibles/useTokenBalances.tsx → collectible/token-balances.tsx} +10 -10
- package/src/react/hooks/{data/collections/__snapshots__/useListCollections.test.tsx.snap → collection/__snapshots__/list.test.tsx.snap} +20 -20
- package/src/react/hooks/{data/collections/useCollectionBalanceDetails.test.tsx → collection/balance-details.test.tsx} +13 -8
- package/src/react/hooks/{data/collections/useCollectionBalanceDetails.tsx → collection/balance-details.tsx} +3 -3
- package/src/react/hooks/collection/index.ts +11 -0
- package/src/react/hooks/{data/collections/useListCollections.test.tsx → collection/list.test.tsx} +15 -14
- package/src/react/hooks/{data/collections/useListCollections.tsx → collection/list.tsx} +7 -7
- package/src/react/hooks/collection/market-detail-polling.test.tsx +146 -0
- package/src/react/hooks/{data/collections/useCollectionDetailsPolling.tsx → collection/market-detail-polling.tsx} +13 -12
- package/src/react/hooks/collection/market-filtered-count.test.tsx +121 -0
- package/src/react/hooks/{data/orders/useGetCountOfFilteredOrders.tsx → collection/market-filtered-count.tsx} +6 -6
- package/src/react/hooks/{data/orders/useFloorOrder.test.tsx → collection/market-floor.test.tsx} +19 -15
- package/src/react/hooks/{data/orders/useFloorOrder.tsx → collection/market-floor.tsx} +13 -9
- package/src/react/hooks/collection/market-items-count.test.tsx +121 -0
- package/src/react/hooks/{data/orders/useCountItemsOrdersForCollection.tsx → collection/market-items-count.tsx} +9 -9
- package/src/react/hooks/collection/market-items-paginated.test.tsx +142 -0
- package/src/react/hooks/{data/orders/useListItemsOrdersForCollectionPaginated.tsx → collection/market-items-paginated.tsx} +11 -9
- package/src/react/hooks/collection/market-items.test.tsx +184 -0
- package/src/react/hooks/{data/orders/useListItemsOrdersForCollection.tsx → collection/market-items.tsx} +16 -14
- package/src/react/hooks/{data/collections/useCollection.test.tsx → collection/metadata.test.tsx} +18 -13
- package/src/react/hooks/{data/collections/useCollection.tsx → collection/metadata.tsx} +16 -7
- package/src/react/hooks/collection/useCollectionActiveListingsCurrencies.test.tsx +150 -0
- package/src/react/hooks/{data/collections → collection}/useCollectionActiveListingsCurrencies.tsx +3 -3
- package/src/react/hooks/collection/useCollectionActiveOffersCurrencies.test.tsx +150 -0
- package/src/react/hooks/{data/collections → collection}/useCollectionActiveOffersCurrencies.tsx +3 -3
- package/src/react/hooks/config/__snapshots__/useMarketplaceConfig.test.tsx.snap +12 -11
- package/src/react/hooks/config/useConnectorMetadata.tsx +1 -1
- package/src/react/hooks/config/useMarketplaceConfig.test.tsx +3 -1
- package/src/react/hooks/config/useMarketplaceConfig.tsx +1 -1
- package/src/react/hooks/contracts/index.ts +1 -0
- package/src/react/hooks/contracts/useERC721Owner.test.tsx +82 -0
- package/src/react/hooks/contracts/useERC721Owner.tsx +47 -0
- package/src/react/hooks/contracts/useSalesContractABI.ts +2 -2
- package/src/react/hooks/{utils/useComparePrices.test.tsx → currency/compare-prices.test.tsx} +17 -11
- package/src/react/hooks/{utils/useComparePrices.tsx → currency/compare-prices.tsx} +8 -6
- package/src/react/hooks/{utils/useConvertPriceToUSD.test.tsx → currency/convert-to-usd.test.tsx} +17 -16
- package/src/react/hooks/{utils/useConvertPriceToUSD.tsx → currency/convert-to-usd.tsx} +6 -6
- package/src/react/hooks/{data/market/useCurrency.test.tsx → currency/currency.test.tsx} +18 -14
- package/src/react/hooks/{data/market/useCurrency.tsx → currency/currency.tsx} +3 -3
- package/src/react/hooks/currency/index.ts +4 -0
- package/src/react/hooks/{data/market/useMarketCurrencies.test.tsx → currency/list.test.tsx} +55 -59
- package/src/react/hooks/{data/market/useMarketCurrencies.tsx → currency/list.tsx} +7 -7
- package/src/react/hooks/data/orders/useOrders.test.tsx +143 -0
- package/src/react/hooks/data/orders/useOrders.tsx +73 -0
- package/src/react/hooks/data/tokens/useCurrencyBalance.tsx +1 -1
- package/src/react/hooks/index.ts +9 -12
- package/src/react/hooks/inventory/index.ts +1 -0
- package/src/react/hooks/{data/inventory/useInventory.test.tsx → inventory/inventory.test.tsx} +12 -14
- package/src/react/hooks/inventory/inventory.tsx +17 -0
- package/src/react/hooks/{data/tokens/useListBalances.test.tsx → token/balances.test.tsx} +22 -11
- package/src/react/hooks/token/balances.tsx +59 -0
- package/src/react/hooks/{data/tokens/useCurrencyBalance.test.tsx → token/currency-balance.test.tsx} +6 -6
- package/src/react/hooks/token/currency-balance.tsx +151 -0
- package/src/react/hooks/token/index.ts +5 -0
- package/src/react/hooks/{data/tokens/useSearchTokenMetadata.test.tsx → token/metadata-search.test.tsx} +38 -30
- package/src/react/hooks/{data/tokens/useSearchTokenMetadata.tsx → token/metadata-search.tsx} +27 -24
- package/src/react/hooks/{data/tokens/useListTokenMetadata.test.tsx → token/metadata.test.tsx} +27 -24
- package/src/react/hooks/{data/tokens/useListTokenMetadata.tsx → token/metadata.tsx} +7 -7
- package/src/react/hooks/{data/tokens/useGetTokenRanges.test.tsx → token/ranges.test.tsx} +15 -14
- package/src/react/hooks/{data/tokens/useGetTokenRanges.tsx → token/ranges.tsx} +12 -13
- package/src/react/hooks/transactions/index.ts +5 -0
- package/src/react/hooks/transactions/useBuyTransaction.tsx +95 -0
- package/src/react/hooks/transactions/useCancelOrder.test.tsx +15 -35
- package/src/react/hooks/transactions/useCancelOrder.tsx +3 -9
- package/src/react/hooks/transactions/useCancelTransactionSteps.tsx +3 -9
- package/src/react/hooks/transactions/useGenerateCancelTransaction.test.tsx +23 -12
- package/src/react/hooks/transactions/useGenerateCancelTransaction.tsx +16 -11
- package/src/react/hooks/transactions/useGenerateListingTransaction.test.tsx +17 -57
- package/src/react/hooks/transactions/useGenerateListingTransaction.tsx +17 -12
- package/src/react/hooks/transactions/useGenerateOfferTransaction.test.tsx +14 -15
- package/src/react/hooks/transactions/useGenerateOfferTransaction.tsx +11 -11
- package/src/react/hooks/transactions/useGenerateSellTransaction.test.tsx +28 -38
- package/src/react/hooks/transactions/useGenerateSellTransaction.tsx +16 -15
- package/src/react/hooks/transactions/useMarketTransactionSteps.test.tsx +105 -0
- package/src/react/hooks/transactions/useMarketTransactionSteps.tsx +129 -0
- package/src/react/hooks/transactions/useOrderSteps.tsx +23 -36
- package/src/react/hooks/transactions/usePrimarySaleTransactionSteps.ts +196 -0
- package/src/react/hooks/transactions/useProcessStep.test.tsx +63 -59
- package/src/react/hooks/transactions/useProcessStep.ts +52 -54
- package/src/react/hooks/transactions/useTransactionExecution.test.tsx +99 -0
- package/src/react/hooks/transactions/useTransactionExecution.ts +31 -0
- package/src/react/hooks/transactions/useTransactionType.ts +20 -0
- package/src/react/hooks/transactions/useTransferTokens.test.tsx +16 -16
- package/src/react/hooks/transactions/useTransferTokens.tsx +17 -5
- package/src/react/hooks/ui/card-data/index.ts +4 -0
- package/src/react/hooks/ui/card-data/market-card-data-paged.test.tsx +375 -0
- package/src/react/hooks/ui/card-data/market-card-data-paged.tsx +265 -0
- package/src/react/hooks/{data/market/useListMarketCardData.test.tsx → ui/card-data/market-card-data.test.tsx} +30 -28
- package/src/react/hooks/{data/market/useListMarketCardData.tsx → ui/card-data/market-card-data.tsx} +44 -31
- package/src/react/hooks/{data/primary-sales/useList1155ShopCardData.tsx → ui/card-data/primary-sale-1155-card-data.tsx} +24 -31
- package/src/react/hooks/{data/primary-sales/useList721ShopCardData.tsx → ui/card-data/primary-sale-721-card-data.tsx} +70 -37
- package/src/react/hooks/ui/index.ts +3 -1
- package/src/react/hooks/ui/url-state/filter-state.test.tsx +569 -0
- package/src/react/hooks/ui/{useFilterState.tsx → url-state/filter-state.tsx} +34 -20
- package/src/react/hooks/ui/url-state/index.ts +1 -0
- package/src/react/hooks/ui/useCollectibleCardOfferState.test.tsx +75 -0
- package/src/react/hooks/ui/useCollectibleCardOfferState.ts +47 -0
- package/src/react/hooks/ui/useFilters.test.tsx +4 -1
- package/src/react/hooks/ui/useFilters.tsx +2 -2
- package/src/react/hooks/util/optimisticCancelUpdates.test.ts +489 -0
- package/src/react/hooks/util/optimisticCancelUpdates.ts +21 -22
- package/src/react/hooks/utils/index.ts +0 -4
- package/src/react/hooks/utils/useAutoSelectFeeOption.test.tsx +8 -5
- package/src/react/hooks/utils/useAutoSelectFeeOption.tsx +33 -17
- package/src/react/hooks/utils/useRoyalty.test.tsx +1 -1
- package/src/react/hooks/utils/useRoyalty.tsx +99 -34
- package/src/react/hooks/utils/useWaasFeeOptions.tsx +234 -0
- package/src/react/hooks/utils/waasFeeOptionsStore.ts +141 -0
- package/src/react/index.ts +3 -0
- package/src/react/providers/index.tsx +3 -3
- package/src/react/providers/modal-provider.tsx +6 -17
- package/src/react/providers/provider.test.tsx +1 -1
- package/src/react/providers/shadow-root.tsx +1 -1
- package/src/react/providers/theme-provider.tsx +1 -1
- package/src/react/queries/checkout/index.ts +1 -0
- package/src/react/queries/checkout/primary-sale-checkout-options.ts +118 -0
- package/src/react/queries/collectible/balance.ts +113 -0
- package/src/react/queries/collectible/index.ts +15 -0
- package/src/react/queries/collectible/market-count.ts +91 -0
- package/src/react/queries/collectible/market-highest-offer.ts +74 -0
- package/src/react/queries/collectible/market-list-paginated.ts +110 -0
- package/src/react/queries/collectible/market-list.ts +118 -0
- package/src/react/queries/collectible/market-listings-count.ts +70 -0
- package/src/react/queries/collectible/market-listings.ts +71 -0
- package/src/react/queries/collectible/market-lowest-listing.ts +74 -0
- package/src/react/queries/collectible/market-offers-count.ts +70 -0
- package/src/react/queries/collectible/market-offers.ts +90 -0
- package/src/react/queries/collectible/metadata.ts +84 -0
- package/src/react/queries/collectible/primary-sale-item.ts +79 -0
- package/src/react/queries/collectible/primary-sale-items-count.ts +67 -0
- package/src/react/queries/collectible/primary-sale-items.ts +96 -0
- package/src/react/queries/collectible/queryKeys.ts +12 -0
- package/src/react/queries/collectible/token-balances.ts +83 -0
- package/src/react/queries/collection/activeListingsCurrencies.ts +74 -0
- package/src/react/queries/collection/activeOffersCurrencies.ts +74 -0
- package/src/react/queries/collection/balance-details.ts +103 -0
- package/src/react/queries/collection/index.ts +9 -0
- package/src/react/queries/collection/list.ts +195 -0
- package/src/react/queries/collection/market-detail.ts +60 -0
- package/src/react/queries/collection/market-filtered-count.ts +67 -0
- package/src/react/queries/collection/market-floor.ts +58 -0
- package/src/react/queries/collection/market-items-count.ts +69 -0
- package/src/react/queries/collection/market-items-paginated.ts +84 -0
- package/src/react/queries/collection/market-items.ts +72 -0
- package/src/react/queries/collection/metadata.ts +60 -0
- package/src/react/queries/collection/queryKeys.ts +12 -0
- package/src/react/queries/currency/compare-prices.ts +122 -0
- package/src/react/queries/currency/convert-to-usd.ts +99 -0
- package/src/react/queries/currency/currency.ts +82 -0
- package/src/react/queries/currency/index.ts +4 -0
- package/src/react/queries/currency/list.ts +103 -0
- package/src/react/queries/index.ts +6 -7
- package/src/react/queries/inventory/inventory.ts +144 -94
- package/src/react/queries/marketplace/config.ts +85 -0
- package/src/react/queries/marketplace/filters.ts +141 -0
- package/src/react/queries/marketplace/index.ts +2 -0
- package/src/react/queries/marketplace/queryKeys.ts +12 -0
- package/src/react/queries/orders.ts +48 -0
- package/src/react/queries/token/balances.ts +107 -0
- package/src/react/queries/token/index.ts +5 -0
- package/src/react/queries/token/metadata-search.ts +95 -0
- package/src/react/queries/token/metadata.ts +80 -0
- package/src/react/queries/token/queryKeys.ts +12 -0
- package/src/react/queries/token/ranges.ts +74 -0
- package/src/react/queries/token/supplies.ts +86 -0
- package/src/react/ssr/__tests__/__snapshots__/create-ssr-client.test.ts.snap +11 -10
- package/src/react/ssr/create-ssr-client.ts +1 -1
- package/src/react/ssr/index.ts +5 -0
- package/src/react/types/query.ts +8 -7
- package/src/react/ui/components/_internals/ErrorDisplay.tsx +87 -0
- package/src/react/ui/components/_internals/ErrorLogBox.tsx +8 -1
- package/src/react/ui/components/_internals/custom-select/CustomSelect.tsx +13 -14
- package/src/react/ui/components/_internals/pill/__tests__/Pill.test.tsx +9 -5
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/ActionButton.stories.tsx +24 -29
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/ActionButton.tsx +20 -14
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/__tests__/ActionButtonBody.test.tsx +7 -5
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/__tests__/NonOwnerActions.test.tsx +11 -6
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/__tests__/OwnerActions.test.tsx +8 -6
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/__tests__/useActionButtonLogic.test.tsx +6 -4
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/components/ActionButtonBody.tsx +14 -9
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/components/NonOwnerActions.tsx +26 -35
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/components/OwnerActions.tsx +21 -13
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/hooks/useActionButtonLogic.ts +3 -3
- package/src/react/ui/components/marketplace-collectible-card/ActionButton/index.ts +1 -0
- package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/store.ts +4 -4
- package/src/react/ui/components/marketplace-collectible-card/Card/card-badge.tsx +37 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card-content.tsx +27 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card-footer.tsx +38 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card-media.tsx +69 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card-price.tsx +44 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card-sale-details.tsx +37 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card-skeleton.tsx +39 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card-title.tsx +109 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/card.tsx +51 -0
- package/src/react/ui/components/marketplace-collectible-card/Card/index.ts +30 -0
- package/src/react/ui/components/marketplace-collectible-card/CollectibleCardSkeleton.tsx +1 -1
- package/src/react/ui/components/marketplace-collectible-card/_internals/PriceDisplay.tsx +87 -0
- package/src/react/ui/components/marketplace-collectible-card/constants.ts +20 -0
- package/src/react/ui/components/marketplace-collectible-card/index.ts +6 -0
- package/src/react/ui/components/marketplace-collectible-card/types.ts +31 -16
- package/src/react/ui/components/marketplace-collectible-card/utils/determineCardAction.ts +63 -0
- package/src/react/ui/components/marketplace-collectible-card/utils/formatPrice.ts +71 -2
- package/src/react/ui/components/marketplace-collectible-card/utils/index.ts +3 -0
- package/src/react/ui/components/marketplace-collectible-card/utils/renderSkeleton.tsx +44 -0
- package/src/react/ui/components/marketplace-collectible-card/utils/shopCardState.ts +83 -0
- package/src/react/ui/components/marketplace-collectible-card/utils/supplyStatus.ts +5 -5
- package/src/react/ui/components/marketplace-collectible-card/variants/MarketCard.tsx +63 -78
- package/src/react/ui/components/marketplace-collectible-card/variants/MarketCardPresentation.tsx +170 -0
- package/src/react/ui/components/marketplace-collectible-card/variants/NonTradableInventoryCard.tsx +56 -38
- package/src/react/ui/components/marketplace-collectible-card/variants/ShopCard.tsx +55 -65
- package/src/react/ui/components/marketplace-collectible-card/variants/ShopCardPresentation.tsx +144 -0
- package/src/react/ui/components/marketplace-logos/marketplace-logos.tsx +1 -5
- package/src/react/ui/components/media/Media.tsx +1 -1
- package/src/react/ui/components/media/MediaSkeleton.tsx +1 -1
- package/src/react/ui/hooks/index.ts +2 -0
- package/src/react/ui/icons/BellIcon.tsx +7 -3
- package/src/react/ui/icons/iconVariants.ts +11 -0
- package/src/react/ui/icons/index.ts +0 -3
- package/src/react/ui/index.ts +37 -8
- package/src/react/ui/modals/BuyModal/components/BuyModalContent.tsx +195 -0
- package/src/react/ui/modals/BuyModal/components/CollectibleMetadataSummary.tsx +141 -0
- package/src/react/ui/modals/BuyModal/components/CryptoPaymentModal.tsx +177 -0
- package/src/react/ui/modals/BuyModal/components/CryptoPaymentModalSkeleton.tsx +48 -0
- package/src/react/ui/modals/BuyModal/components/Modal.tsx +2 -2
- package/src/react/ui/modals/BuyModal/components/TrailsCss.ts +216 -0
- package/src/react/ui/modals/BuyModal/components/{ERC1155QuantityModal.tsx → sequence-checkout/ERC1155QuantityModal.tsx} +71 -82
- package/src/react/ui/modals/BuyModal/components/sequence-checkout/SequenceCheckoutNew.tsx +161 -0
- package/src/react/ui/modals/BuyModal/{hooks → components/sequence-checkout}/usePaymentModalParams.ts +73 -112
- package/src/react/ui/modals/BuyModal/components/types.ts +6 -5
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC1155SalePaymentParams.test.tsx +2 -14
- package/src/react/ui/modals/BuyModal/hooks/useBuyModalData.ts +151 -0
- package/src/react/ui/modals/BuyModal/hooks/useERC1155SalePaymentParams.ts +15 -28
- package/src/react/ui/modals/BuyModal/hooks/useExecuteBundledTransactions.ts +167 -0
- package/src/react/ui/modals/BuyModal/hooks/useHasSufficientBalance.ts +30 -0
- package/src/react/ui/modals/BuyModal/hooks/useMarketPlatformFee.ts +7 -7
- package/src/react/ui/modals/BuyModal/index.tsx +6 -3
- package/src/react/ui/modals/BuyModal/internal/__tests__/determineCheckoutMode.test.ts +119 -0
- package/src/react/ui/modals/BuyModal/internal/buyModalContext.ts +146 -0
- package/src/react/ui/modals/BuyModal/internal/cryptoPaymentModalContext.tsx +399 -0
- package/src/react/ui/modals/BuyModal/internal/determineCheckoutMode.ts +49 -0
- package/src/react/ui/modals/BuyModal/store.ts +25 -94
- package/src/react/ui/modals/CreateListingModal/Modal.tsx +141 -308
- package/src/react/ui/modals/CreateListingModal/__tests__/Modal.test.tsx +35 -61
- package/src/react/ui/modals/CreateListingModal/index.tsx +16 -9
- package/src/react/ui/modals/CreateListingModal/internal/context.ts +416 -0
- package/src/react/ui/modals/CreateListingModal/internal/helpers/validation.ts +79 -0
- package/src/react/ui/modals/CreateListingModal/internal/hooks/index.ts +1 -0
- package/src/react/ui/modals/CreateListingModal/internal/hooks/use-collectible-approval.ts +49 -0
- package/src/react/ui/modals/CreateListingModal/internal/listing-mutations.ts +267 -0
- package/src/react/ui/modals/CreateListingModal/internal/store.ts +153 -0
- package/src/react/ui/modals/MakeOfferModal/Modal.tsx +130 -348
- package/src/react/ui/modals/MakeOfferModal/__stories__/MakeOfferModal.mock-data.ts +494 -0
- package/src/react/ui/modals/MakeOfferModal/__stories__/MakeOfferModal.stories.tsx +699 -0
- package/src/react/ui/modals/MakeOfferModal/__tests__/Modal.test.tsx +28 -155
- package/src/react/ui/modals/MakeOfferModal/index.tsx +17 -11
- package/src/react/ui/modals/MakeOfferModal/internal/context.ts +472 -0
- package/src/react/ui/modals/MakeOfferModal/internal/helpers/validation.ts +114 -0
- package/src/react/ui/modals/MakeOfferModal/internal/hooks/index.ts +1 -0
- package/src/react/ui/modals/MakeOfferModal/internal/hooks/use-erc20-allowance.ts +43 -0
- package/src/react/ui/modals/MakeOfferModal/internal/offer-mutations.ts +231 -0
- package/src/react/ui/modals/MakeOfferModal/internal/store.ts +153 -0
- package/src/react/ui/modals/SellModal/Modal.tsx +74 -213
- package/src/react/ui/modals/SellModal/index.tsx +5 -11
- package/src/react/ui/modals/SellModal/internal/context.ts +284 -0
- package/src/react/ui/modals/SellModal/internal/sell-mutations.ts +163 -0
- package/src/react/ui/modals/SellModal/internal/store.ts +79 -0
- package/src/react/ui/modals/SellModal/internal/use-generate-sell-transaction.ts +93 -0
- package/src/react/ui/modals/TransferModal/__tests__/store.test.ts +51 -345
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TokenQuantityInput.tsx +36 -34
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/WalletAddressInput.tsx +19 -28
- package/src/react/ui/modals/TransferModal/index.tsx +98 -119
- package/src/react/ui/modals/TransferModal/internal/context.ts +404 -0
- package/src/react/ui/modals/TransferModal/internal/store.ts +118 -0
- package/src/react/ui/modals/_internal/components/alertMessage/index.tsx +2 -3
- package/src/react/ui/modals/_internal/components/baseModal/ActionModal.tsx +338 -0
- package/src/react/ui/modals/_internal/components/baseModal/BaseModal.tsx +51 -0
- package/src/react/ui/modals/_internal/components/baseModal/ErrorBoundary.tsx +83 -0
- package/src/react/ui/modals/_internal/components/baseModal/ErrorModal.tsx +51 -0
- package/src/react/ui/modals/_internal/components/baseModal/LoadingModal.tsx +35 -0
- package/src/react/ui/modals/_internal/components/baseModal/SmartErrorHandler.tsx +31 -0
- package/src/react/ui/modals/_internal/components/baseModal/__tests__/ErrorBoundary.test.tsx +390 -0
- package/src/react/ui/modals/_internal/components/baseModal/errors/ModalInitializationError.tsx +93 -0
- package/src/react/ui/modals/_internal/components/baseModal/errors/errorActionType.ts +5 -0
- package/src/react/ui/modals/_internal/components/baseModal/index.ts +13 -0
- package/src/react/ui/modals/_internal/components/calendarDropdown/TimeSelector.tsx +1 -1
- package/src/react/ui/modals/_internal/components/calendarDropdown/index.tsx +14 -9
- package/src/react/ui/modals/_internal/components/consts.ts +19 -5
- package/src/react/ui/modals/_internal/components/currencyImage/index.tsx +5 -7
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +6 -14
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +17 -24
- package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +1 -1
- package/src/react/ui/modals/_internal/components/floorPriceText/__tests__/FloorPriceText.test.tsx +61 -40
- package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +23 -19
- package/src/react/ui/modals/_internal/components/priceInput/__tests__/PriceInput.test.tsx +3 -3
- package/src/react/ui/modals/_internal/components/priceInput/index.tsx +68 -75
- package/src/react/ui/modals/_internal/components/quantityInput/__tests__/index.test.tsx +22 -137
- package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +84 -131
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/__tests__/SelectWaasFeeOptions.test.tsx +14 -31
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/_components/ActionButtons.tsx +37 -25
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/index.tsx +13 -6
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/store.ts +9 -26
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/useWaasFeeOptionManager.tsx +27 -29
- package/src/react/ui/modals/_internal/components/switchChainErrorModal/store.ts +2 -2
- package/src/react/ui/modals/_internal/components/tokenPreview/index.tsx +10 -9
- package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +16 -9
- package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +8 -7
- package/src/react/ui/modals/_internal/components/transactionPreview/useTransactionPreviewTitle.tsx +1 -1
- package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/TransactionStatusModal.test.tsx +3 -5
- package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/utils.test.ts +3 -3
- package/src/react/ui/modals/_internal/components/transactionStatusModal/hooks/useTransactionStatus.ts +4 -15
- package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +14 -15
- package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +8 -11
- package/src/react/ui/modals/_internal/components/waasFeeOptionsSelect/WaasFeeOptionsSelect.tsx +65 -10
- package/src/react/ui/modals/_internal/constants/opensea-currencies.ts +484 -0
- package/src/react/ui/modals/_internal/helpers/currency.ts +56 -0
- package/src/react/ui/modals/_internal/helpers/dnum-utils.ts +40 -0
- package/src/react/ui/modals/_internal/helpers/flow-state.ts +269 -0
- package/src/react/ui/modals/_internal/helpers/step-guards.ts +131 -0
- package/src/react/ui/modals/_internal/types/steps.ts +145 -0
- package/src/react/ui/modals/_internal/types.ts +2 -9
- package/src/react/utils/index.ts +2 -0
- package/src/react/utils/normalize-attributes.test.ts +94 -0
- package/src/react/utils/normalize-attributes.ts +89 -0
- package/src/react/utils/normalize-properties.test.ts +77 -0
- package/src/react/utils/normalize-properties.ts +60 -0
- package/src/react/utils/normalizePriceFilters.ts +25 -0
- package/src/react/utils/waitForTransactionReceipt.ts +2 -2
- package/src/styles/index.css +2 -0
- package/src/styles/styles.ts +2056 -376
- package/src/types/api-types.ts +6 -14
- package/src/types/buyModalErrors.ts +24 -30
- package/src/types/index.ts +4 -2
- package/src/types/sdk-config.ts +14 -1
- package/src/types/transactions.ts +10 -0
- package/src/types/types.ts +93 -14
- package/src/utils/__tests__/getMarketplaceDetails.test.ts +1 -1
- package/src/utils/_internal/error/base.ts +1 -1
- package/src/utils/_internal/error/transaction.ts +4 -5
- package/src/utils/abi/helpers.ts +38 -0
- package/src/utils/abi/index.ts +1 -0
- package/src/utils/collection.ts +19 -0
- package/src/utils/decode/erc20.ts +2 -2
- package/src/utils/errors.ts +527 -0
- package/src/utils/getConduitAddressForOrderbook.ts +38 -0
- package/src/utils/getErrorMessage.ts +37 -0
- package/src/utils/getMarketplaceDetails.ts +1 -1
- package/src/utils/getSequenceMarketRequestId.ts +3 -7
- package/src/utils/getWagmiErrorMessage.ts +241 -0
- package/src/utils/getWebRPCErrorMessage.ts +63 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/networkconfigToWagmiChain.ts +2 -1
- package/src/utils/price.ts +12 -10
- package/test/const.ts +3 -3
- package/test/globalSetup.ts +4 -5
- package/test/handlers.ts +2 -2
- package/test/server-setup.ts +8 -8
- package/test/setup.ts +11 -0
- package/test/test-utils.tsx +23 -6
- package/tsconfig.json +8 -1
- package/tsdown.config.ts +12 -3
- package/dist/CartIcon.js +0 -102
- package/dist/CartIcon.js.map +0 -1
- package/dist/CollectibleCard.d.ts +0 -8
- package/dist/builder.gen.js +0 -300
- package/dist/builder.gen.js.map +0 -1
- package/dist/collectibles.js +0 -319
- package/dist/collectibles.js.map +0 -1
- package/dist/collections.js +0 -320
- package/dist/collections.js.map +0 -1
- package/dist/components.js +0 -117
- package/dist/components.js.map +0 -1
- package/dist/listCollectiblesPaginated.d.ts +0 -322
- package/dist/listCollections.d.ts +0 -821
- package/dist/lowestListing.d.ts +0 -465
- package/dist/market.js +0 -207
- package/dist/market.js.map +0 -1
- package/dist/marketCurrencies.d.ts +0 -163
- package/dist/marketCurrencies.js +0 -56
- package/dist/marketCurrencies.js.map +0 -1
- package/dist/marketplace.gen.js +0 -1144
- package/dist/marketplace.gen.js.map +0 -1
- package/dist/marketplaceConfig.js.map +0 -1
- package/dist/orders.js +0 -462
- package/dist/orders.js.map +0 -1
- package/dist/primary-sales.js +0 -152
- package/dist/primary-sales.js.map +0 -1
- package/dist/query.d.ts +0 -31
- package/dist/react/hooks/data/collectibles/index.d.ts +0 -5
- package/dist/react/hooks/data/collectibles/index.js +0 -39
- package/dist/react/hooks/data/collections/index.d.ts +0 -11
- package/dist/react/hooks/data/collections/index.js +0 -39
- package/dist/react/hooks/data/index.d.ts +0 -37
- package/dist/react/hooks/data/index.js +0 -39
- package/dist/react/hooks/data/inventory/index.d.ts +0 -37
- package/dist/react/hooks/data/inventory/index.js +0 -39
- package/dist/react/hooks/data/market/index.d.ts +0 -6
- package/dist/react/hooks/data/market/index.js +0 -39
- package/dist/react/hooks/data/orders/index.d.ts +0 -5
- package/dist/react/hooks/data/orders/index.js +0 -39
- package/dist/react/hooks/data/primary-sales/index.d.ts +0 -37
- package/dist/react/hooks/data/primary-sales/index.js +0 -39
- package/dist/react/hooks/data/tokens/index.d.ts +0 -5
- package/dist/react/hooks/data/tokens/index.js +0 -39
- package/dist/react/queries/collectibles/index.d.ts +0 -5
- package/dist/react/queries/collectibles/index.js +0 -22
- package/dist/react/queries/collections/index.d.ts +0 -11
- package/dist/react/queries/collections/index.js +0 -20
- package/dist/react/queries/market/index.d.ts +0 -6
- package/dist/react/queries/market/index.js +0 -22
- package/dist/react/queries/orders/index.d.ts +0 -5
- package/dist/react/queries/orders/index.js +0 -13
- package/dist/react/queries/primary-sales/index.d.ts +0 -4
- package/dist/react/queries/primary-sales/index.js +0 -13
- package/dist/react/queries/tokens/index.d.ts +0 -5
- package/dist/react/queries/tokens/index.js +0 -13
- package/dist/react/queries/utils/index.d.ts +0 -4
- package/dist/react/queries/utils/index.js +0 -22
- package/dist/react/ssr/index.js.map +0 -1
- package/dist/react/ui/components/marketplace-collectible-card/components/footer/components/index.d.ts +0 -3
- package/dist/react/ui/components/marketplace-collectible-card/components/footer/components/index.js +0 -22
- package/dist/react/ui/components/marketplace-collectible-card/components/footer/index.d.ts +0 -51
- package/dist/react/ui/components/marketplace-collectible-card/components/footer/index.js +0 -39
- package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +0 -40
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +0 -39
- package/dist/src.js.map +0 -1
- package/dist/tokenBalances.js +0 -56
- package/dist/tokenBalances.js.map +0 -1
- package/dist/tokenSupplies.d.ts +0 -261
- package/dist/tokens.js +0 -219
- package/dist/tokens.js.map +0 -1
- package/dist/utils3.js +0 -43
- package/dist/utils3.js.map +0 -1
- package/dist/waitForTransactionReceipt.js +0 -25
- package/dist/waitForTransactionReceipt.js.map +0 -1
- package/src/react/_internal/api/__mocks__/builder.msw.ts +0 -239
- package/src/react/_internal/api/__mocks__/indexer.msw.ts +0 -216
- package/src/react/_internal/api/__mocks__/marketplace.msw.ts +0 -402
- package/src/react/_internal/api/__mocks__/metadata.msw.ts +0 -195
- package/src/react/_internal/api/builder.gen.ts +0 -773
- package/src/react/_internal/api/marketplace.gen.ts +0 -2718
- package/src/react/_internal/api/query-keys.ts +0 -124
- package/src/react/hooks/data/collectibles/index.ts +0 -6
- package/src/react/hooks/data/collectibles/useListCollectibleActivities.test.tsx +0 -192
- package/src/react/hooks/data/collectibles/useListCollectibleActivities.tsx +0 -98
- package/src/react/hooks/data/collections/index.ts +0 -8
- package/src/react/hooks/data/collections/useCollectionActiveListingsCurrencies.test.tsx +0 -112
- package/src/react/hooks/data/collections/useCollectionActiveOffersCurrencies.test.tsx +0 -110
- package/src/react/hooks/data/collections/useCollectionDetails.test.tsx +0 -83
- package/src/react/hooks/data/collections/useCollectionDetails.ts +0 -69
- package/src/react/hooks/data/collections/useCollectionDetailsPolling.test.tsx +0 -137
- package/src/react/hooks/data/collections/useListCollectionActivities.test.tsx +0 -227
- package/src/react/hooks/data/collections/useListCollectionActivities.tsx +0 -93
- package/src/react/hooks/data/index.ts +0 -6
- package/src/react/hooks/data/inventory/index.ts +0 -1
- package/src/react/hooks/data/inventory/useInventory.tsx +0 -12
- package/src/react/hooks/data/market/index.ts +0 -3
- package/src/react/hooks/data/orders/index.ts +0 -11
- package/src/react/hooks/data/primary-sales/index.ts +0 -7
- package/src/react/hooks/data/primary-sales/useCountOfPrimarySaleItems.tsx +0 -13
- package/src/react/hooks/data/primary-sales/useGetCountOfPrimarySaleItems.tsx +0 -48
- package/src/react/hooks/data/tokens/index.ts +0 -5
- package/src/react/hooks/data/tokens/useListBalances.tsx +0 -29
- package/src/react/hooks/data/tokens/useTokenSupplies.ts +0 -69
- package/src/react/hooks/utils/useCheckoutOptions.test.tsx +0 -162
- package/src/react/hooks/utils/useCheckoutOptions.tsx +0 -98
- package/src/react/queries/collectibles/balanceOfCollectible.ts +0 -90
- package/src/react/queries/collectibles/collectible.ts +0 -81
- package/src/react/queries/collectibles/countOfCollectables.ts +0 -109
- package/src/react/queries/collectibles/index.ts +0 -7
- package/src/react/queries/collectibles/listCollectibleActivities.ts +0 -121
- package/src/react/queries/collectibles/listCollectibles.ts +0 -115
- package/src/react/queries/collectibles/listCollectiblesPaginated.ts +0 -104
- package/src/react/queries/collectibles/tokenBalances.ts +0 -89
- package/src/react/queries/collections/activeListingsCurrencies.ts +0 -84
- package/src/react/queries/collections/activeOffersCurrencies.ts +0 -84
- package/src/react/queries/collections/collection.ts +0 -69
- package/src/react/queries/collections/collectionBalanceDetails.ts +0 -107
- package/src/react/queries/collections/collectionDetails.ts +0 -79
- package/src/react/queries/collections/index.ts +0 -7
- package/src/react/queries/collections/listCollectionActivities.ts +0 -117
- package/src/react/queries/collections/listCollections.ts +0 -175
- package/src/react/queries/market/checkoutOptions.ts +0 -107
- package/src/react/queries/market/checkoutOptionsSalesContract.ts +0 -108
- package/src/react/queries/market/currency.ts +0 -92
- package/src/react/queries/market/filters.ts +0 -152
- package/src/react/queries/market/index.ts +0 -6
- package/src/react/queries/market/marketCurrencies.ts +0 -120
- package/src/react/queries/market/marketplaceConfig.ts +0 -117
- package/src/react/queries/orders/countItemsOrdersForCollection.ts +0 -86
- package/src/react/queries/orders/countListingsForCollectible.ts +0 -90
- package/src/react/queries/orders/countOffersForCollectible.ts +0 -90
- package/src/react/queries/orders/floorOrder.ts +0 -74
- package/src/react/queries/orders/getCountOfFilteredOrders.ts +0 -88
- package/src/react/queries/orders/highestOffer.ts +0 -78
- package/src/react/queries/orders/index.ts +0 -11
- package/src/react/queries/orders/listItemsOrdersForCollection.ts +0 -90
- package/src/react/queries/orders/listItemsOrdersForCollectionPaginated.ts +0 -90
- package/src/react/queries/orders/listListingsForCollectible.ts +0 -97
- package/src/react/queries/orders/listOffersForCollectible.ts +0 -116
- package/src/react/queries/orders/lowestListing.ts +0 -81
- package/src/react/queries/primary-sales/countOfPrimarySaleItems.ts +0 -62
- package/src/react/queries/primary-sales/index.ts +0 -4
- package/src/react/queries/primary-sales/primarySaleItem.ts +0 -80
- package/src/react/queries/primary-sales/primarySaleItems.ts +0 -94
- package/src/react/queries/primary-sales/primarySaleItemsCount.ts +0 -79
- package/src/react/queries/tokens/getTokenRanges.ts +0 -75
- package/src/react/queries/tokens/index.ts +0 -5
- package/src/react/queries/tokens/listBalances.ts +0 -71
- package/src/react/queries/tokens/listTokenMetadata.ts +0 -81
- package/src/react/queries/tokens/searchTokenMetadata.ts +0 -101
- package/src/react/queries/tokens/tokenSupplies.ts +0 -84
- package/src/react/queries/utils/comparePrices.ts +0 -132
- package/src/react/queries/utils/convertPriceToUSD.ts +0 -105
- package/src/react/queries/utils/index.ts +0 -2
- package/src/react/ui/components/marketplace-collectible-card/components/ActionButtonWrapper.tsx +0 -79
- package/src/react/ui/components/marketplace-collectible-card/components/BaseCard.tsx +0 -68
- package/src/react/ui/components/marketplace-collectible-card/components/footer/Footer.tsx +0 -165
- package/src/react/ui/components/marketplace-collectible-card/components/footer/components/FooterName.tsx +0 -103
- package/src/react/ui/components/marketplace-collectible-card/components/footer/components/PriceDisplay.tsx +0 -80
- package/src/react/ui/components/marketplace-collectible-card/components/footer/components/SaleDetailsPill.tsx +0 -29
- package/src/react/ui/components/marketplace-collectible-card/components/footer/components/TokenTypeBalancePill.tsx +0 -30
- package/src/react/ui/components/marketplace-collectible-card/components/footer/components/index.ts +0 -4
- package/src/react/ui/components/marketplace-collectible-card/components/footer/index.ts +0 -2
- package/src/react/ui/icons/CalendarIcon.tsx +0 -37
- package/src/react/ui/icons/CartIcon.tsx +0 -52
- package/src/react/ui/icons/InfoIcon.tsx +0 -44
- package/src/react/ui/modals/BuyModal/__tests__/BuyModalRouter.test.tsx +0 -557
- package/src/react/ui/modals/BuyModal/__tests__/ERC1155ShopModal.test.tsx +0 -409
- package/src/react/ui/modals/BuyModal/__tests__/ERC721ShopModal.test.tsx +0 -272
- package/src/react/ui/modals/BuyModal/__tests__/Modal.test.tsx.bak +0 -112
- package/src/react/ui/modals/BuyModal/__tests__/Modal1155.test.tsx +0 -251
- package/src/react/ui/modals/BuyModal/__tests__/store.test.ts +0 -105
- package/src/react/ui/modals/BuyModal/components/BuyModalRouter.tsx +0 -157
- package/src/react/ui/modals/BuyModal/components/ERC1155BuyModal.tsx +0 -198
- package/src/react/ui/modals/BuyModal/components/ERC1155ShopModal.tsx +0 -108
- package/src/react/ui/modals/BuyModal/components/ERC721BuyModal.tsx +0 -116
- package/src/react/ui/modals/BuyModal/components/ERC721ShopModal.tsx +0 -86
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useCheckoutOptions.test.tsx +0 -115
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC721SalePaymentParams.test.tsx +0 -283
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useMarketPlatformFee.test.tsx +0 -145
- package/src/react/ui/modals/BuyModal/hooks/useCheckoutOptions.ts +0 -86
- package/src/react/ui/modals/BuyModal/hooks/useERC721SalePaymentParams.ts +0 -216
- package/src/react/ui/modals/BuyModal/hooks/useLoadData.ts +0 -120
- package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +0 -98
- package/src/react/ui/modals/CreateListingModal/hooks/useGetTokenApproval.ts +0 -87
- package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +0 -246
- package/src/react/ui/modals/CreateListingModal/store.ts +0 -99
- package/src/react/ui/modals/MakeOfferModal/hooks/useGetTokenApproval.tsx +0 -90
- package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +0 -71
- package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +0 -241
- package/src/react/ui/modals/MakeOfferModal/store.ts +0 -94
- package/src/react/ui/modals/SellModal/__tests__/Modal.test.tsx +0 -85
- package/src/react/ui/modals/SellModal/hooks/useGetTokenApproval.tsx +0 -79
- package/src/react/ui/modals/SellModal/hooks/useSell.tsx +0 -77
- package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +0 -242
- package/src/react/ui/modals/SellModal/store.ts +0 -62
- package/src/react/ui/modals/SellModal/utils.ts +0 -38
- package/src/react/ui/modals/SuccessfulPurchaseModal/__tests__/Modal.test.tsx +0 -157
- package/src/react/ui/modals/SuccessfulPurchaseModal/index.tsx +0 -154
- package/src/react/ui/modals/SuccessfulPurchaseModal/store.ts +0 -71
- package/src/react/ui/modals/TransferModal/__tests__/__snapshots__/store.test.ts.snap +0 -17
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/__tests__/useHandleTransfer.test.tsx +0 -412
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TransferButton.tsx +0 -66
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +0 -137
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/useHandleTransfer.tsx +0 -97
- package/src/react/ui/modals/TransferModal/_views/followWalletInstructions/index.tsx +0 -31
- package/src/react/ui/modals/TransferModal/messages.ts +0 -14
- package/src/react/ui/modals/TransferModal/store.ts +0 -122
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.test.tsx +0 -281
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +0 -113
- package/src/react/ui/modals/_internal/components/actionModal/ErrorModal.tsx +0 -35
- package/src/react/ui/modals/_internal/components/actionModal/LoadingModal.tsx +0 -32
- package/src/react/ui/modals/_internal/components/actionModal/index.ts +0 -1
- package/src/types/custom.d.ts +0 -1
- package/src/types/messages.ts +0 -43
- package/src/types/new-marketplace-types.ts +0 -95
- /package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/types.ts +0 -0
- /package/src/react/ui/modals/_internal/hooks/{useSelectWaasFeeOptions.ts → useSelectWaasFeeOptions.tsx} +0 -0
package/dist/index4.d.ts
CHANGED
|
@@ -1,30 +1,2597 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Ft as Address$1, s as ContractType } from "./index2.js";
|
|
2
|
+
import { i as ERC721_SALE_ABI_V0, n as ERC1155_SALES_CONTRACT_ABI_V0, r as ERC721_SALE_ABI_V1, t as ERC1155_SALES_CONTRACT_ABI_V1 } from "./index6.js";
|
|
3
|
+
|
|
4
|
+
//#region src/react/hooks/contracts/useSalesContractABI.d.ts
|
|
5
|
+
declare enum SalesContractVersion {
|
|
6
|
+
V0 = "v0",
|
|
7
|
+
V1 = "v1",
|
|
8
|
+
}
|
|
9
|
+
interface UseSalesContractABIProps {
|
|
10
|
+
contractAddress: Address$1;
|
|
11
|
+
contractType: ContractType.ERC721 | ContractType.ERC1155;
|
|
12
|
+
chainId: number;
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
type UseSalesContractABIResult = {
|
|
16
|
+
version: null;
|
|
17
|
+
abi: null;
|
|
18
|
+
contractType: null;
|
|
19
|
+
isLoading: true;
|
|
20
|
+
error: null;
|
|
21
|
+
} | {
|
|
22
|
+
version: SalesContractVersion.V0;
|
|
23
|
+
abi: typeof ERC721_SALE_ABI_V0;
|
|
24
|
+
contractType: ContractType.ERC721;
|
|
25
|
+
isLoading: false;
|
|
26
|
+
error: null;
|
|
27
|
+
} | {
|
|
28
|
+
version: SalesContractVersion.V0;
|
|
29
|
+
abi: typeof ERC1155_SALES_CONTRACT_ABI_V0;
|
|
30
|
+
contractType: ContractType.ERC1155;
|
|
31
|
+
isLoading: false;
|
|
32
|
+
error: null;
|
|
33
|
+
} | {
|
|
34
|
+
version: SalesContractVersion.V1;
|
|
35
|
+
abi: typeof ERC721_SALE_ABI_V1;
|
|
36
|
+
contractType: ContractType.ERC721;
|
|
37
|
+
isLoading: false;
|
|
38
|
+
error: null;
|
|
39
|
+
} | {
|
|
40
|
+
version: SalesContractVersion.V1;
|
|
41
|
+
abi: typeof ERC1155_SALES_CONTRACT_ABI_V1;
|
|
42
|
+
contractType: ContractType.ERC1155;
|
|
43
|
+
isLoading: false;
|
|
44
|
+
error: null;
|
|
45
|
+
} | {
|
|
46
|
+
version: null;
|
|
47
|
+
abi: null;
|
|
48
|
+
contractType: null;
|
|
49
|
+
isLoading: false;
|
|
50
|
+
error: Error;
|
|
51
|
+
};
|
|
52
|
+
declare function useSalesContractABI({
|
|
53
|
+
contractAddress,
|
|
54
|
+
contractType,
|
|
55
|
+
chainId,
|
|
56
|
+
enabled
|
|
57
|
+
}: UseSalesContractABIProps): UseSalesContractABIResult;
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/utils/abi/helpers.d.ts
|
|
60
|
+
/**
|
|
61
|
+
* Get the appropriate sales contract ABI based on token type and version
|
|
62
|
+
*/
|
|
63
|
+
declare const getSaleContractABI: (tokenType: "ERC721" | "ERC1155", version: SalesContractVersion) => readonly [{
|
|
64
|
+
readonly inputs: readonly [{
|
|
65
|
+
readonly internalType: "address";
|
|
66
|
+
readonly name: "currency";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
}, {
|
|
69
|
+
readonly internalType: "uint256";
|
|
70
|
+
readonly name: "expected";
|
|
71
|
+
readonly type: "uint256";
|
|
72
|
+
}, {
|
|
73
|
+
readonly internalType: "uint256";
|
|
74
|
+
readonly name: "actual";
|
|
75
|
+
readonly type: "uint256";
|
|
76
|
+
}];
|
|
77
|
+
readonly name: "InsufficientPayment";
|
|
78
|
+
readonly type: "error";
|
|
79
|
+
}, {
|
|
80
|
+
readonly inputs: readonly [{
|
|
81
|
+
readonly internalType: "uint256";
|
|
82
|
+
readonly name: "remainingSupply";
|
|
83
|
+
readonly type: "uint256";
|
|
84
|
+
}, {
|
|
85
|
+
readonly internalType: "uint256";
|
|
86
|
+
readonly name: "amount";
|
|
87
|
+
readonly type: "uint256";
|
|
88
|
+
}];
|
|
89
|
+
readonly name: "InsufficientSupply";
|
|
90
|
+
readonly type: "error";
|
|
91
|
+
}, {
|
|
92
|
+
readonly inputs: readonly [];
|
|
93
|
+
readonly name: "InvalidInitialization";
|
|
94
|
+
readonly type: "error";
|
|
95
|
+
}, {
|
|
96
|
+
readonly inputs: readonly [];
|
|
97
|
+
readonly name: "InvalidSaleDetails";
|
|
98
|
+
readonly type: "error";
|
|
99
|
+
}, {
|
|
100
|
+
readonly inputs: readonly [{
|
|
101
|
+
readonly internalType: "bytes32";
|
|
102
|
+
readonly name: "root";
|
|
103
|
+
readonly type: "bytes32";
|
|
104
|
+
}, {
|
|
105
|
+
readonly internalType: "bytes32[]";
|
|
106
|
+
readonly name: "proof";
|
|
107
|
+
readonly type: "bytes32[]";
|
|
108
|
+
}, {
|
|
109
|
+
readonly internalType: "address";
|
|
110
|
+
readonly name: "addr";
|
|
111
|
+
readonly type: "address";
|
|
112
|
+
}, {
|
|
113
|
+
readonly internalType: "bytes32";
|
|
114
|
+
readonly name: "salt";
|
|
115
|
+
readonly type: "bytes32";
|
|
116
|
+
}];
|
|
117
|
+
readonly name: "MerkleProofInvalid";
|
|
118
|
+
readonly type: "error";
|
|
119
|
+
}, {
|
|
120
|
+
readonly inputs: readonly [];
|
|
121
|
+
readonly name: "SaleInactive";
|
|
122
|
+
readonly type: "error";
|
|
123
|
+
}, {
|
|
124
|
+
readonly inputs: readonly [];
|
|
125
|
+
readonly name: "WithdrawFailed";
|
|
126
|
+
readonly type: "error";
|
|
127
|
+
}, {
|
|
128
|
+
readonly anonymous: false;
|
|
129
|
+
readonly inputs: readonly [{
|
|
130
|
+
readonly indexed: false;
|
|
131
|
+
readonly internalType: "address";
|
|
132
|
+
readonly name: "to";
|
|
133
|
+
readonly type: "address";
|
|
134
|
+
}, {
|
|
135
|
+
readonly indexed: false;
|
|
136
|
+
readonly internalType: "uint256";
|
|
137
|
+
readonly name: "amount";
|
|
138
|
+
readonly type: "uint256";
|
|
139
|
+
}];
|
|
140
|
+
readonly name: "ItemsMinted";
|
|
141
|
+
readonly type: "event";
|
|
142
|
+
}, {
|
|
143
|
+
readonly anonymous: false;
|
|
144
|
+
readonly inputs: readonly [{
|
|
145
|
+
readonly indexed: true;
|
|
146
|
+
readonly internalType: "bytes32";
|
|
147
|
+
readonly name: "role";
|
|
148
|
+
readonly type: "bytes32";
|
|
149
|
+
}, {
|
|
150
|
+
readonly indexed: true;
|
|
151
|
+
readonly internalType: "bytes32";
|
|
152
|
+
readonly name: "previousAdminRole";
|
|
153
|
+
readonly type: "bytes32";
|
|
154
|
+
}, {
|
|
155
|
+
readonly indexed: true;
|
|
156
|
+
readonly internalType: "bytes32";
|
|
157
|
+
readonly name: "newAdminRole";
|
|
158
|
+
readonly type: "bytes32";
|
|
159
|
+
}];
|
|
160
|
+
readonly name: "RoleAdminChanged";
|
|
161
|
+
readonly type: "event";
|
|
162
|
+
}, {
|
|
163
|
+
readonly anonymous: false;
|
|
164
|
+
readonly inputs: readonly [{
|
|
165
|
+
readonly indexed: true;
|
|
166
|
+
readonly internalType: "bytes32";
|
|
167
|
+
readonly name: "role";
|
|
168
|
+
readonly type: "bytes32";
|
|
169
|
+
}, {
|
|
170
|
+
readonly indexed: true;
|
|
171
|
+
readonly internalType: "address";
|
|
172
|
+
readonly name: "account";
|
|
173
|
+
readonly type: "address";
|
|
174
|
+
}, {
|
|
175
|
+
readonly indexed: true;
|
|
176
|
+
readonly internalType: "address";
|
|
177
|
+
readonly name: "sender";
|
|
178
|
+
readonly type: "address";
|
|
179
|
+
}];
|
|
180
|
+
readonly name: "RoleGranted";
|
|
181
|
+
readonly type: "event";
|
|
182
|
+
}, {
|
|
183
|
+
readonly anonymous: false;
|
|
184
|
+
readonly inputs: readonly [{
|
|
185
|
+
readonly indexed: true;
|
|
186
|
+
readonly internalType: "bytes32";
|
|
187
|
+
readonly name: "role";
|
|
188
|
+
readonly type: "bytes32";
|
|
189
|
+
}, {
|
|
190
|
+
readonly indexed: true;
|
|
191
|
+
readonly internalType: "address";
|
|
192
|
+
readonly name: "account";
|
|
193
|
+
readonly type: "address";
|
|
194
|
+
}, {
|
|
195
|
+
readonly indexed: true;
|
|
196
|
+
readonly internalType: "address";
|
|
197
|
+
readonly name: "sender";
|
|
198
|
+
readonly type: "address";
|
|
199
|
+
}];
|
|
200
|
+
readonly name: "RoleRevoked";
|
|
201
|
+
readonly type: "event";
|
|
202
|
+
}, {
|
|
203
|
+
readonly anonymous: false;
|
|
204
|
+
readonly inputs: readonly [{
|
|
205
|
+
readonly indexed: false;
|
|
206
|
+
readonly internalType: "uint256";
|
|
207
|
+
readonly name: "remainingSupply";
|
|
208
|
+
readonly type: "uint256";
|
|
209
|
+
}, {
|
|
210
|
+
readonly indexed: false;
|
|
211
|
+
readonly internalType: "uint256";
|
|
212
|
+
readonly name: "cost";
|
|
213
|
+
readonly type: "uint256";
|
|
214
|
+
}, {
|
|
215
|
+
readonly indexed: false;
|
|
216
|
+
readonly internalType: "address";
|
|
217
|
+
readonly name: "paymentToken";
|
|
218
|
+
readonly type: "address";
|
|
219
|
+
}, {
|
|
220
|
+
readonly indexed: false;
|
|
221
|
+
readonly internalType: "uint64";
|
|
222
|
+
readonly name: "startTime";
|
|
223
|
+
readonly type: "uint64";
|
|
224
|
+
}, {
|
|
225
|
+
readonly indexed: false;
|
|
226
|
+
readonly internalType: "uint64";
|
|
227
|
+
readonly name: "endTime";
|
|
228
|
+
readonly type: "uint64";
|
|
229
|
+
}, {
|
|
230
|
+
readonly indexed: false;
|
|
231
|
+
readonly internalType: "bytes32";
|
|
232
|
+
readonly name: "merkleRoot";
|
|
233
|
+
readonly type: "bytes32";
|
|
234
|
+
}];
|
|
235
|
+
readonly name: "SaleDetailsUpdated";
|
|
236
|
+
readonly type: "event";
|
|
237
|
+
}, {
|
|
238
|
+
readonly inputs: readonly [];
|
|
239
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
240
|
+
readonly outputs: readonly [{
|
|
241
|
+
readonly internalType: "bytes32";
|
|
242
|
+
readonly name: "";
|
|
243
|
+
readonly type: "bytes32";
|
|
244
|
+
}];
|
|
245
|
+
readonly stateMutability: "view";
|
|
246
|
+
readonly type: "function";
|
|
247
|
+
}, {
|
|
248
|
+
readonly inputs: readonly [{
|
|
249
|
+
readonly internalType: "address";
|
|
250
|
+
readonly name: "wallet";
|
|
251
|
+
readonly type: "address";
|
|
252
|
+
}, {
|
|
253
|
+
readonly components: readonly [{
|
|
254
|
+
readonly internalType: "address";
|
|
255
|
+
readonly name: "approvedSigner";
|
|
256
|
+
readonly type: "address";
|
|
257
|
+
}, {
|
|
258
|
+
readonly internalType: "bytes4";
|
|
259
|
+
readonly name: "identityType";
|
|
260
|
+
readonly type: "bytes4";
|
|
261
|
+
}, {
|
|
262
|
+
readonly internalType: "bytes32";
|
|
263
|
+
readonly name: "issuerHash";
|
|
264
|
+
readonly type: "bytes32";
|
|
265
|
+
}, {
|
|
266
|
+
readonly internalType: "bytes32";
|
|
267
|
+
readonly name: "audienceHash";
|
|
268
|
+
readonly type: "bytes32";
|
|
269
|
+
}, {
|
|
270
|
+
readonly internalType: "bytes";
|
|
271
|
+
readonly name: "applicationData";
|
|
272
|
+
readonly type: "bytes";
|
|
273
|
+
}, {
|
|
274
|
+
readonly components: readonly [{
|
|
275
|
+
readonly internalType: "string";
|
|
276
|
+
readonly name: "redirectUrl";
|
|
277
|
+
readonly type: "string";
|
|
278
|
+
}, {
|
|
279
|
+
readonly internalType: "uint64";
|
|
280
|
+
readonly name: "issuedAt";
|
|
281
|
+
readonly type: "uint64";
|
|
282
|
+
}];
|
|
283
|
+
readonly internalType: "struct AuthData";
|
|
284
|
+
readonly name: "authData";
|
|
285
|
+
readonly type: "tuple";
|
|
286
|
+
}];
|
|
287
|
+
readonly internalType: "struct Attestation";
|
|
288
|
+
readonly name: "attestation";
|
|
289
|
+
readonly type: "tuple";
|
|
290
|
+
}, {
|
|
291
|
+
readonly components: readonly [{
|
|
292
|
+
readonly internalType: "address";
|
|
293
|
+
readonly name: "to";
|
|
294
|
+
readonly type: "address";
|
|
295
|
+
}, {
|
|
296
|
+
readonly internalType: "uint256";
|
|
297
|
+
readonly name: "value";
|
|
298
|
+
readonly type: "uint256";
|
|
299
|
+
}, {
|
|
300
|
+
readonly internalType: "bytes";
|
|
301
|
+
readonly name: "data";
|
|
302
|
+
readonly type: "bytes";
|
|
303
|
+
}, {
|
|
304
|
+
readonly internalType: "uint256";
|
|
305
|
+
readonly name: "gasLimit";
|
|
306
|
+
readonly type: "uint256";
|
|
307
|
+
}, {
|
|
308
|
+
readonly internalType: "bool";
|
|
309
|
+
readonly name: "delegateCall";
|
|
310
|
+
readonly type: "bool";
|
|
311
|
+
}, {
|
|
312
|
+
readonly internalType: "bool";
|
|
313
|
+
readonly name: "onlyFallback";
|
|
314
|
+
readonly type: "bool";
|
|
315
|
+
}, {
|
|
316
|
+
readonly internalType: "uint256";
|
|
317
|
+
readonly name: "behaviorOnError";
|
|
318
|
+
readonly type: "uint256";
|
|
319
|
+
}];
|
|
320
|
+
readonly internalType: "struct Payload.Call";
|
|
321
|
+
readonly name: "call";
|
|
322
|
+
readonly type: "tuple";
|
|
323
|
+
}];
|
|
324
|
+
readonly name: "acceptImplicitRequest";
|
|
325
|
+
readonly outputs: readonly [{
|
|
326
|
+
readonly internalType: "bytes32";
|
|
327
|
+
readonly name: "";
|
|
328
|
+
readonly type: "bytes32";
|
|
329
|
+
}];
|
|
330
|
+
readonly stateMutability: "view";
|
|
331
|
+
readonly type: "function";
|
|
332
|
+
}, {
|
|
333
|
+
readonly inputs: readonly [{
|
|
334
|
+
readonly internalType: "bytes32";
|
|
335
|
+
readonly name: "root";
|
|
336
|
+
readonly type: "bytes32";
|
|
337
|
+
}, {
|
|
338
|
+
readonly internalType: "bytes32[]";
|
|
339
|
+
readonly name: "proof";
|
|
340
|
+
readonly type: "bytes32[]";
|
|
341
|
+
}, {
|
|
342
|
+
readonly internalType: "address";
|
|
343
|
+
readonly name: "addr";
|
|
344
|
+
readonly type: "address";
|
|
345
|
+
}, {
|
|
346
|
+
readonly internalType: "bytes32";
|
|
347
|
+
readonly name: "salt";
|
|
348
|
+
readonly type: "bytes32";
|
|
349
|
+
}];
|
|
350
|
+
readonly name: "checkMerkleProof";
|
|
351
|
+
readonly outputs: readonly [{
|
|
352
|
+
readonly internalType: "bool";
|
|
353
|
+
readonly name: "";
|
|
354
|
+
readonly type: "bool";
|
|
355
|
+
}];
|
|
356
|
+
readonly stateMutability: "view";
|
|
357
|
+
readonly type: "function";
|
|
358
|
+
}, {
|
|
359
|
+
readonly inputs: readonly [{
|
|
360
|
+
readonly internalType: "bytes32";
|
|
361
|
+
readonly name: "role";
|
|
362
|
+
readonly type: "bytes32";
|
|
363
|
+
}];
|
|
364
|
+
readonly name: "getRoleAdmin";
|
|
365
|
+
readonly outputs: readonly [{
|
|
366
|
+
readonly internalType: "bytes32";
|
|
367
|
+
readonly name: "";
|
|
368
|
+
readonly type: "bytes32";
|
|
369
|
+
}];
|
|
370
|
+
readonly stateMutability: "view";
|
|
371
|
+
readonly type: "function";
|
|
372
|
+
}, {
|
|
373
|
+
readonly inputs: readonly [{
|
|
374
|
+
readonly internalType: "bytes32";
|
|
375
|
+
readonly name: "role";
|
|
376
|
+
readonly type: "bytes32";
|
|
377
|
+
}, {
|
|
378
|
+
readonly internalType: "uint256";
|
|
379
|
+
readonly name: "index";
|
|
380
|
+
readonly type: "uint256";
|
|
381
|
+
}];
|
|
382
|
+
readonly name: "getRoleMember";
|
|
383
|
+
readonly outputs: readonly [{
|
|
384
|
+
readonly internalType: "address";
|
|
385
|
+
readonly name: "";
|
|
386
|
+
readonly type: "address";
|
|
387
|
+
}];
|
|
388
|
+
readonly stateMutability: "view";
|
|
389
|
+
readonly type: "function";
|
|
390
|
+
}, {
|
|
391
|
+
readonly inputs: readonly [{
|
|
392
|
+
readonly internalType: "bytes32";
|
|
393
|
+
readonly name: "role";
|
|
394
|
+
readonly type: "bytes32";
|
|
395
|
+
}];
|
|
396
|
+
readonly name: "getRoleMemberCount";
|
|
397
|
+
readonly outputs: readonly [{
|
|
398
|
+
readonly internalType: "uint256";
|
|
399
|
+
readonly name: "";
|
|
400
|
+
readonly type: "uint256";
|
|
401
|
+
}];
|
|
402
|
+
readonly stateMutability: "view";
|
|
403
|
+
readonly type: "function";
|
|
404
|
+
}, {
|
|
405
|
+
readonly inputs: readonly [{
|
|
406
|
+
readonly internalType: "bytes32";
|
|
407
|
+
readonly name: "role";
|
|
408
|
+
readonly type: "bytes32";
|
|
409
|
+
}, {
|
|
410
|
+
readonly internalType: "address";
|
|
411
|
+
readonly name: "account";
|
|
412
|
+
readonly type: "address";
|
|
413
|
+
}];
|
|
414
|
+
readonly name: "grantRole";
|
|
415
|
+
readonly outputs: readonly [];
|
|
416
|
+
readonly stateMutability: "nonpayable";
|
|
417
|
+
readonly type: "function";
|
|
418
|
+
}, {
|
|
419
|
+
readonly inputs: readonly [{
|
|
420
|
+
readonly internalType: "bytes32";
|
|
421
|
+
readonly name: "role";
|
|
422
|
+
readonly type: "bytes32";
|
|
423
|
+
}, {
|
|
424
|
+
readonly internalType: "address";
|
|
425
|
+
readonly name: "account";
|
|
426
|
+
readonly type: "address";
|
|
427
|
+
}];
|
|
428
|
+
readonly name: "hasRole";
|
|
429
|
+
readonly outputs: readonly [{
|
|
430
|
+
readonly internalType: "bool";
|
|
431
|
+
readonly name: "";
|
|
432
|
+
readonly type: "bool";
|
|
433
|
+
}];
|
|
434
|
+
readonly stateMutability: "view";
|
|
435
|
+
readonly type: "function";
|
|
436
|
+
}, {
|
|
437
|
+
readonly inputs: readonly [{
|
|
438
|
+
readonly internalType: "address";
|
|
439
|
+
readonly name: "owner";
|
|
440
|
+
readonly type: "address";
|
|
441
|
+
}, {
|
|
442
|
+
readonly internalType: "address";
|
|
443
|
+
readonly name: "items";
|
|
444
|
+
readonly type: "address";
|
|
445
|
+
}, {
|
|
446
|
+
readonly internalType: "address";
|
|
447
|
+
readonly name: "implicitModeValidator";
|
|
448
|
+
readonly type: "address";
|
|
449
|
+
}, {
|
|
450
|
+
readonly internalType: "bytes32";
|
|
451
|
+
readonly name: "implicitModeProjectId";
|
|
452
|
+
readonly type: "bytes32";
|
|
453
|
+
}];
|
|
454
|
+
readonly name: "initialize";
|
|
455
|
+
readonly outputs: readonly [];
|
|
456
|
+
readonly stateMutability: "nonpayable";
|
|
457
|
+
readonly type: "function";
|
|
458
|
+
}, {
|
|
459
|
+
readonly inputs: readonly [];
|
|
460
|
+
readonly name: "itemsContract";
|
|
461
|
+
readonly outputs: readonly [{
|
|
462
|
+
readonly internalType: "address";
|
|
463
|
+
readonly name: "";
|
|
464
|
+
readonly type: "address";
|
|
465
|
+
}];
|
|
466
|
+
readonly stateMutability: "view";
|
|
467
|
+
readonly type: "function";
|
|
468
|
+
}, {
|
|
469
|
+
readonly inputs: readonly [{
|
|
470
|
+
readonly internalType: "address";
|
|
471
|
+
readonly name: "to";
|
|
472
|
+
readonly type: "address";
|
|
473
|
+
}, {
|
|
474
|
+
readonly internalType: "uint256";
|
|
475
|
+
readonly name: "amount";
|
|
476
|
+
readonly type: "uint256";
|
|
477
|
+
}, {
|
|
478
|
+
readonly internalType: "address";
|
|
479
|
+
readonly name: "paymentToken";
|
|
480
|
+
readonly type: "address";
|
|
481
|
+
}, {
|
|
482
|
+
readonly internalType: "uint256";
|
|
483
|
+
readonly name: "maxTotal";
|
|
484
|
+
readonly type: "uint256";
|
|
485
|
+
}, {
|
|
486
|
+
readonly internalType: "bytes32[]";
|
|
487
|
+
readonly name: "proof";
|
|
488
|
+
readonly type: "bytes32[]";
|
|
489
|
+
}];
|
|
490
|
+
readonly name: "mint";
|
|
491
|
+
readonly outputs: readonly [];
|
|
492
|
+
readonly stateMutability: "payable";
|
|
493
|
+
readonly type: "function";
|
|
494
|
+
}, {
|
|
495
|
+
readonly inputs: readonly [{
|
|
496
|
+
readonly internalType: "bytes32";
|
|
497
|
+
readonly name: "role";
|
|
498
|
+
readonly type: "bytes32";
|
|
499
|
+
}, {
|
|
500
|
+
readonly internalType: "address";
|
|
501
|
+
readonly name: "account";
|
|
502
|
+
readonly type: "address";
|
|
503
|
+
}];
|
|
504
|
+
readonly name: "renounceRole";
|
|
505
|
+
readonly outputs: readonly [];
|
|
506
|
+
readonly stateMutability: "nonpayable";
|
|
507
|
+
readonly type: "function";
|
|
508
|
+
}, {
|
|
509
|
+
readonly inputs: readonly [{
|
|
510
|
+
readonly internalType: "bytes32";
|
|
511
|
+
readonly name: "role";
|
|
512
|
+
readonly type: "bytes32";
|
|
513
|
+
}, {
|
|
514
|
+
readonly internalType: "address";
|
|
515
|
+
readonly name: "account";
|
|
516
|
+
readonly type: "address";
|
|
517
|
+
}];
|
|
518
|
+
readonly name: "revokeRole";
|
|
519
|
+
readonly outputs: readonly [];
|
|
520
|
+
readonly stateMutability: "nonpayable";
|
|
521
|
+
readonly type: "function";
|
|
522
|
+
}, {
|
|
523
|
+
readonly inputs: readonly [];
|
|
524
|
+
readonly name: "saleDetails";
|
|
525
|
+
readonly outputs: readonly [{
|
|
526
|
+
readonly components: readonly [{
|
|
527
|
+
readonly internalType: "uint256";
|
|
528
|
+
readonly name: "remainingSupply";
|
|
529
|
+
readonly type: "uint256";
|
|
530
|
+
}, {
|
|
531
|
+
readonly internalType: "uint256";
|
|
532
|
+
readonly name: "cost";
|
|
533
|
+
readonly type: "uint256";
|
|
534
|
+
}, {
|
|
535
|
+
readonly internalType: "address";
|
|
536
|
+
readonly name: "paymentToken";
|
|
537
|
+
readonly type: "address";
|
|
538
|
+
}, {
|
|
539
|
+
readonly internalType: "uint64";
|
|
540
|
+
readonly name: "startTime";
|
|
541
|
+
readonly type: "uint64";
|
|
542
|
+
}, {
|
|
543
|
+
readonly internalType: "uint64";
|
|
544
|
+
readonly name: "endTime";
|
|
545
|
+
readonly type: "uint64";
|
|
546
|
+
}, {
|
|
547
|
+
readonly internalType: "bytes32";
|
|
548
|
+
readonly name: "merkleRoot";
|
|
549
|
+
readonly type: "bytes32";
|
|
550
|
+
}];
|
|
551
|
+
readonly internalType: "struct IERC721SaleFunctions.SaleDetails";
|
|
552
|
+
readonly name: "";
|
|
553
|
+
readonly type: "tuple";
|
|
554
|
+
}];
|
|
555
|
+
readonly stateMutability: "view";
|
|
556
|
+
readonly type: "function";
|
|
557
|
+
}, {
|
|
558
|
+
readonly inputs: readonly [{
|
|
559
|
+
readonly internalType: "bytes32";
|
|
560
|
+
readonly name: "projectId";
|
|
561
|
+
readonly type: "bytes32";
|
|
562
|
+
}];
|
|
563
|
+
readonly name: "setImplicitModeProjectId";
|
|
564
|
+
readonly outputs: readonly [];
|
|
565
|
+
readonly stateMutability: "nonpayable";
|
|
566
|
+
readonly type: "function";
|
|
567
|
+
}, {
|
|
568
|
+
readonly inputs: readonly [{
|
|
569
|
+
readonly internalType: "address";
|
|
570
|
+
readonly name: "validator";
|
|
571
|
+
readonly type: "address";
|
|
572
|
+
}];
|
|
573
|
+
readonly name: "setImplicitModeValidator";
|
|
574
|
+
readonly outputs: readonly [];
|
|
575
|
+
readonly stateMutability: "nonpayable";
|
|
576
|
+
readonly type: "function";
|
|
577
|
+
}, {
|
|
578
|
+
readonly inputs: readonly [{
|
|
579
|
+
readonly internalType: "uint256";
|
|
580
|
+
readonly name: "remainingSupply";
|
|
581
|
+
readonly type: "uint256";
|
|
582
|
+
}, {
|
|
583
|
+
readonly internalType: "uint256";
|
|
584
|
+
readonly name: "cost";
|
|
585
|
+
readonly type: "uint256";
|
|
586
|
+
}, {
|
|
587
|
+
readonly internalType: "address";
|
|
588
|
+
readonly name: "paymentToken";
|
|
589
|
+
readonly type: "address";
|
|
590
|
+
}, {
|
|
591
|
+
readonly internalType: "uint64";
|
|
592
|
+
readonly name: "startTime";
|
|
593
|
+
readonly type: "uint64";
|
|
594
|
+
}, {
|
|
595
|
+
readonly internalType: "uint64";
|
|
596
|
+
readonly name: "endTime";
|
|
597
|
+
readonly type: "uint64";
|
|
598
|
+
}, {
|
|
599
|
+
readonly internalType: "bytes32";
|
|
600
|
+
readonly name: "merkleRoot";
|
|
601
|
+
readonly type: "bytes32";
|
|
602
|
+
}];
|
|
603
|
+
readonly name: "setSaleDetails";
|
|
604
|
+
readonly outputs: readonly [];
|
|
605
|
+
readonly stateMutability: "nonpayable";
|
|
606
|
+
readonly type: "function";
|
|
607
|
+
}, {
|
|
608
|
+
readonly inputs: readonly [{
|
|
609
|
+
readonly internalType: "bytes4";
|
|
610
|
+
readonly name: "interfaceId";
|
|
611
|
+
readonly type: "bytes4";
|
|
612
|
+
}];
|
|
613
|
+
readonly name: "supportsInterface";
|
|
614
|
+
readonly outputs: readonly [{
|
|
615
|
+
readonly internalType: "bool";
|
|
616
|
+
readonly name: "";
|
|
617
|
+
readonly type: "bool";
|
|
618
|
+
}];
|
|
619
|
+
readonly stateMutability: "view";
|
|
620
|
+
readonly type: "function";
|
|
621
|
+
}, {
|
|
622
|
+
readonly inputs: readonly [{
|
|
623
|
+
readonly internalType: "address";
|
|
624
|
+
readonly name: "token";
|
|
625
|
+
readonly type: "address";
|
|
626
|
+
}, {
|
|
627
|
+
readonly internalType: "address";
|
|
628
|
+
readonly name: "to";
|
|
629
|
+
readonly type: "address";
|
|
630
|
+
}, {
|
|
631
|
+
readonly internalType: "uint256";
|
|
632
|
+
readonly name: "value";
|
|
633
|
+
readonly type: "uint256";
|
|
634
|
+
}];
|
|
635
|
+
readonly name: "withdrawERC20";
|
|
636
|
+
readonly outputs: readonly [];
|
|
637
|
+
readonly stateMutability: "nonpayable";
|
|
638
|
+
readonly type: "function";
|
|
639
|
+
}, {
|
|
640
|
+
readonly inputs: readonly [{
|
|
641
|
+
readonly internalType: "address";
|
|
642
|
+
readonly name: "to";
|
|
643
|
+
readonly type: "address";
|
|
644
|
+
}, {
|
|
645
|
+
readonly internalType: "uint256";
|
|
646
|
+
readonly name: "value";
|
|
647
|
+
readonly type: "uint256";
|
|
648
|
+
}];
|
|
649
|
+
readonly name: "withdrawETH";
|
|
650
|
+
readonly outputs: readonly [];
|
|
651
|
+
readonly stateMutability: "nonpayable";
|
|
652
|
+
readonly type: "function";
|
|
653
|
+
}] | readonly [{
|
|
654
|
+
readonly inputs: readonly [];
|
|
655
|
+
readonly name: "GlobalSaleInactive";
|
|
656
|
+
readonly type: "error";
|
|
657
|
+
}, {
|
|
658
|
+
readonly inputs: readonly [{
|
|
659
|
+
readonly internalType: "address";
|
|
660
|
+
readonly name: "currency";
|
|
661
|
+
readonly type: "address";
|
|
662
|
+
}, {
|
|
663
|
+
readonly internalType: "uint256";
|
|
664
|
+
readonly name: "expected";
|
|
665
|
+
readonly type: "uint256";
|
|
666
|
+
}, {
|
|
667
|
+
readonly internalType: "uint256";
|
|
668
|
+
readonly name: "actual";
|
|
669
|
+
readonly type: "uint256";
|
|
670
|
+
}];
|
|
671
|
+
readonly name: "InsufficientPayment";
|
|
672
|
+
readonly type: "error";
|
|
673
|
+
}, {
|
|
674
|
+
readonly inputs: readonly [{
|
|
675
|
+
readonly internalType: "uint256";
|
|
676
|
+
readonly name: "remainingSupply";
|
|
677
|
+
readonly type: "uint256";
|
|
678
|
+
}, {
|
|
679
|
+
readonly internalType: "uint256";
|
|
680
|
+
readonly name: "amount";
|
|
681
|
+
readonly type: "uint256";
|
|
682
|
+
}];
|
|
683
|
+
readonly name: "InsufficientSupply";
|
|
684
|
+
readonly type: "error";
|
|
685
|
+
}, {
|
|
686
|
+
readonly inputs: readonly [];
|
|
687
|
+
readonly name: "InvalidInitialization";
|
|
688
|
+
readonly type: "error";
|
|
689
|
+
}, {
|
|
690
|
+
readonly inputs: readonly [];
|
|
691
|
+
readonly name: "InvalidSaleDetails";
|
|
692
|
+
readonly type: "error";
|
|
693
|
+
}, {
|
|
694
|
+
readonly inputs: readonly [];
|
|
695
|
+
readonly name: "InvalidTokenIds";
|
|
696
|
+
readonly type: "error";
|
|
697
|
+
}, {
|
|
698
|
+
readonly inputs: readonly [{
|
|
699
|
+
readonly internalType: "bytes32";
|
|
700
|
+
readonly name: "root";
|
|
701
|
+
readonly type: "bytes32";
|
|
702
|
+
}, {
|
|
703
|
+
readonly internalType: "bytes32[]";
|
|
704
|
+
readonly name: "proof";
|
|
705
|
+
readonly type: "bytes32[]";
|
|
706
|
+
}, {
|
|
707
|
+
readonly internalType: "address";
|
|
708
|
+
readonly name: "addr";
|
|
709
|
+
readonly type: "address";
|
|
710
|
+
}, {
|
|
711
|
+
readonly internalType: "bytes32";
|
|
712
|
+
readonly name: "salt";
|
|
713
|
+
readonly type: "bytes32";
|
|
714
|
+
}];
|
|
715
|
+
readonly name: "MerkleProofInvalid";
|
|
716
|
+
readonly type: "error";
|
|
717
|
+
}, {
|
|
718
|
+
readonly inputs: readonly [{
|
|
719
|
+
readonly internalType: "uint256";
|
|
720
|
+
readonly name: "tokenId";
|
|
721
|
+
readonly type: "uint256";
|
|
722
|
+
}];
|
|
723
|
+
readonly name: "SaleInactive";
|
|
724
|
+
readonly type: "error";
|
|
725
|
+
}, {
|
|
726
|
+
readonly inputs: readonly [];
|
|
727
|
+
readonly name: "WithdrawFailed";
|
|
728
|
+
readonly type: "error";
|
|
729
|
+
}, {
|
|
730
|
+
readonly anonymous: false;
|
|
731
|
+
readonly inputs: readonly [{
|
|
732
|
+
readonly indexed: false;
|
|
733
|
+
readonly internalType: "uint256";
|
|
734
|
+
readonly name: "minTokenId";
|
|
735
|
+
readonly type: "uint256";
|
|
736
|
+
}, {
|
|
737
|
+
readonly indexed: false;
|
|
738
|
+
readonly internalType: "uint256";
|
|
739
|
+
readonly name: "maxTokenId";
|
|
740
|
+
readonly type: "uint256";
|
|
741
|
+
}, {
|
|
742
|
+
readonly indexed: false;
|
|
743
|
+
readonly internalType: "uint256";
|
|
744
|
+
readonly name: "cost";
|
|
745
|
+
readonly type: "uint256";
|
|
746
|
+
}, {
|
|
747
|
+
readonly indexed: false;
|
|
748
|
+
readonly internalType: "uint256";
|
|
749
|
+
readonly name: "remainingSupply";
|
|
750
|
+
readonly type: "uint256";
|
|
751
|
+
}, {
|
|
752
|
+
readonly indexed: false;
|
|
753
|
+
readonly internalType: "uint64";
|
|
754
|
+
readonly name: "startTime";
|
|
755
|
+
readonly type: "uint64";
|
|
756
|
+
}, {
|
|
757
|
+
readonly indexed: false;
|
|
758
|
+
readonly internalType: "uint64";
|
|
759
|
+
readonly name: "endTime";
|
|
760
|
+
readonly type: "uint64";
|
|
761
|
+
}, {
|
|
762
|
+
readonly indexed: false;
|
|
763
|
+
readonly internalType: "bytes32";
|
|
764
|
+
readonly name: "merkleRoot";
|
|
765
|
+
readonly type: "bytes32";
|
|
766
|
+
}];
|
|
767
|
+
readonly name: "GlobalSaleDetailsUpdated";
|
|
768
|
+
readonly type: "event";
|
|
769
|
+
}, {
|
|
770
|
+
readonly anonymous: false;
|
|
771
|
+
readonly inputs: readonly [{
|
|
772
|
+
readonly indexed: false;
|
|
773
|
+
readonly internalType: "address";
|
|
774
|
+
readonly name: "to";
|
|
775
|
+
readonly type: "address";
|
|
776
|
+
}, {
|
|
777
|
+
readonly indexed: false;
|
|
778
|
+
readonly internalType: "uint256[]";
|
|
779
|
+
readonly name: "tokenIds";
|
|
780
|
+
readonly type: "uint256[]";
|
|
781
|
+
}, {
|
|
782
|
+
readonly indexed: false;
|
|
783
|
+
readonly internalType: "uint256[]";
|
|
784
|
+
readonly name: "amounts";
|
|
785
|
+
readonly type: "uint256[]";
|
|
786
|
+
}];
|
|
787
|
+
readonly name: "ItemsMinted";
|
|
788
|
+
readonly type: "event";
|
|
789
|
+
}, {
|
|
790
|
+
readonly anonymous: false;
|
|
791
|
+
readonly inputs: readonly [{
|
|
792
|
+
readonly indexed: true;
|
|
793
|
+
readonly internalType: "bytes32";
|
|
794
|
+
readonly name: "role";
|
|
795
|
+
readonly type: "bytes32";
|
|
796
|
+
}, {
|
|
797
|
+
readonly indexed: true;
|
|
798
|
+
readonly internalType: "bytes32";
|
|
799
|
+
readonly name: "previousAdminRole";
|
|
800
|
+
readonly type: "bytes32";
|
|
801
|
+
}, {
|
|
802
|
+
readonly indexed: true;
|
|
803
|
+
readonly internalType: "bytes32";
|
|
804
|
+
readonly name: "newAdminRole";
|
|
805
|
+
readonly type: "bytes32";
|
|
806
|
+
}];
|
|
807
|
+
readonly name: "RoleAdminChanged";
|
|
808
|
+
readonly type: "event";
|
|
809
|
+
}, {
|
|
810
|
+
readonly anonymous: false;
|
|
811
|
+
readonly inputs: readonly [{
|
|
812
|
+
readonly indexed: true;
|
|
813
|
+
readonly internalType: "bytes32";
|
|
814
|
+
readonly name: "role";
|
|
815
|
+
readonly type: "bytes32";
|
|
816
|
+
}, {
|
|
817
|
+
readonly indexed: true;
|
|
818
|
+
readonly internalType: "address";
|
|
819
|
+
readonly name: "account";
|
|
820
|
+
readonly type: "address";
|
|
821
|
+
}, {
|
|
822
|
+
readonly indexed: true;
|
|
823
|
+
readonly internalType: "address";
|
|
824
|
+
readonly name: "sender";
|
|
825
|
+
readonly type: "address";
|
|
826
|
+
}];
|
|
827
|
+
readonly name: "RoleGranted";
|
|
828
|
+
readonly type: "event";
|
|
829
|
+
}, {
|
|
830
|
+
readonly anonymous: false;
|
|
831
|
+
readonly inputs: readonly [{
|
|
832
|
+
readonly indexed: true;
|
|
833
|
+
readonly internalType: "bytes32";
|
|
834
|
+
readonly name: "role";
|
|
835
|
+
readonly type: "bytes32";
|
|
836
|
+
}, {
|
|
837
|
+
readonly indexed: true;
|
|
838
|
+
readonly internalType: "address";
|
|
839
|
+
readonly name: "account";
|
|
840
|
+
readonly type: "address";
|
|
841
|
+
}, {
|
|
842
|
+
readonly indexed: true;
|
|
843
|
+
readonly internalType: "address";
|
|
844
|
+
readonly name: "sender";
|
|
845
|
+
readonly type: "address";
|
|
846
|
+
}];
|
|
847
|
+
readonly name: "RoleRevoked";
|
|
848
|
+
readonly type: "event";
|
|
849
|
+
}, {
|
|
850
|
+
readonly anonymous: false;
|
|
851
|
+
readonly inputs: readonly [{
|
|
852
|
+
readonly indexed: false;
|
|
853
|
+
readonly internalType: "uint256";
|
|
854
|
+
readonly name: "tokenId";
|
|
855
|
+
readonly type: "uint256";
|
|
856
|
+
}, {
|
|
857
|
+
readonly indexed: false;
|
|
858
|
+
readonly internalType: "uint256";
|
|
859
|
+
readonly name: "cost";
|
|
860
|
+
readonly type: "uint256";
|
|
861
|
+
}, {
|
|
862
|
+
readonly indexed: false;
|
|
863
|
+
readonly internalType: "uint256";
|
|
864
|
+
readonly name: "remainingSupply";
|
|
865
|
+
readonly type: "uint256";
|
|
866
|
+
}, {
|
|
867
|
+
readonly indexed: false;
|
|
868
|
+
readonly internalType: "uint64";
|
|
869
|
+
readonly name: "startTime";
|
|
870
|
+
readonly type: "uint64";
|
|
871
|
+
}, {
|
|
872
|
+
readonly indexed: false;
|
|
873
|
+
readonly internalType: "uint64";
|
|
874
|
+
readonly name: "endTime";
|
|
875
|
+
readonly type: "uint64";
|
|
876
|
+
}, {
|
|
877
|
+
readonly indexed: false;
|
|
878
|
+
readonly internalType: "bytes32";
|
|
879
|
+
readonly name: "merkleRoot";
|
|
880
|
+
readonly type: "bytes32";
|
|
881
|
+
}];
|
|
882
|
+
readonly name: "TokenSaleDetailsUpdated";
|
|
883
|
+
readonly type: "event";
|
|
884
|
+
}, {
|
|
885
|
+
readonly inputs: readonly [];
|
|
886
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
887
|
+
readonly outputs: readonly [{
|
|
888
|
+
readonly internalType: "bytes32";
|
|
889
|
+
readonly name: "";
|
|
890
|
+
readonly type: "bytes32";
|
|
891
|
+
}];
|
|
892
|
+
readonly stateMutability: "view";
|
|
893
|
+
readonly type: "function";
|
|
894
|
+
}, {
|
|
895
|
+
readonly inputs: readonly [{
|
|
896
|
+
readonly internalType: "address";
|
|
897
|
+
readonly name: "wallet";
|
|
898
|
+
readonly type: "address";
|
|
899
|
+
}, {
|
|
900
|
+
readonly components: readonly [{
|
|
901
|
+
readonly internalType: "address";
|
|
902
|
+
readonly name: "approvedSigner";
|
|
903
|
+
readonly type: "address";
|
|
904
|
+
}, {
|
|
905
|
+
readonly internalType: "bytes4";
|
|
906
|
+
readonly name: "identityType";
|
|
907
|
+
readonly type: "bytes4";
|
|
908
|
+
}, {
|
|
909
|
+
readonly internalType: "bytes32";
|
|
910
|
+
readonly name: "issuerHash";
|
|
911
|
+
readonly type: "bytes32";
|
|
912
|
+
}, {
|
|
913
|
+
readonly internalType: "bytes32";
|
|
914
|
+
readonly name: "audienceHash";
|
|
915
|
+
readonly type: "bytes32";
|
|
916
|
+
}, {
|
|
917
|
+
readonly internalType: "bytes";
|
|
918
|
+
readonly name: "applicationData";
|
|
919
|
+
readonly type: "bytes";
|
|
920
|
+
}, {
|
|
921
|
+
readonly components: readonly [{
|
|
922
|
+
readonly internalType: "string";
|
|
923
|
+
readonly name: "redirectUrl";
|
|
924
|
+
readonly type: "string";
|
|
925
|
+
}, {
|
|
926
|
+
readonly internalType: "uint64";
|
|
927
|
+
readonly name: "issuedAt";
|
|
928
|
+
readonly type: "uint64";
|
|
929
|
+
}];
|
|
930
|
+
readonly internalType: "struct AuthData";
|
|
931
|
+
readonly name: "authData";
|
|
932
|
+
readonly type: "tuple";
|
|
933
|
+
}];
|
|
934
|
+
readonly internalType: "struct Attestation";
|
|
935
|
+
readonly name: "attestation";
|
|
936
|
+
readonly type: "tuple";
|
|
937
|
+
}, {
|
|
938
|
+
readonly components: readonly [{
|
|
939
|
+
readonly internalType: "address";
|
|
940
|
+
readonly name: "to";
|
|
941
|
+
readonly type: "address";
|
|
942
|
+
}, {
|
|
943
|
+
readonly internalType: "uint256";
|
|
944
|
+
readonly name: "value";
|
|
945
|
+
readonly type: "uint256";
|
|
946
|
+
}, {
|
|
947
|
+
readonly internalType: "bytes";
|
|
948
|
+
readonly name: "data";
|
|
949
|
+
readonly type: "bytes";
|
|
950
|
+
}, {
|
|
951
|
+
readonly internalType: "uint256";
|
|
952
|
+
readonly name: "gasLimit";
|
|
953
|
+
readonly type: "uint256";
|
|
954
|
+
}, {
|
|
955
|
+
readonly internalType: "bool";
|
|
956
|
+
readonly name: "delegateCall";
|
|
957
|
+
readonly type: "bool";
|
|
958
|
+
}, {
|
|
959
|
+
readonly internalType: "bool";
|
|
960
|
+
readonly name: "onlyFallback";
|
|
961
|
+
readonly type: "bool";
|
|
962
|
+
}, {
|
|
963
|
+
readonly internalType: "uint256";
|
|
964
|
+
readonly name: "behaviorOnError";
|
|
965
|
+
readonly type: "uint256";
|
|
966
|
+
}];
|
|
967
|
+
readonly internalType: "struct Payload.Call";
|
|
968
|
+
readonly name: "call";
|
|
969
|
+
readonly type: "tuple";
|
|
970
|
+
}];
|
|
971
|
+
readonly name: "acceptImplicitRequest";
|
|
972
|
+
readonly outputs: readonly [{
|
|
973
|
+
readonly internalType: "bytes32";
|
|
974
|
+
readonly name: "";
|
|
975
|
+
readonly type: "bytes32";
|
|
976
|
+
}];
|
|
977
|
+
readonly stateMutability: "view";
|
|
978
|
+
readonly type: "function";
|
|
979
|
+
}, {
|
|
980
|
+
readonly inputs: readonly [{
|
|
981
|
+
readonly internalType: "bytes32";
|
|
982
|
+
readonly name: "root";
|
|
983
|
+
readonly type: "bytes32";
|
|
984
|
+
}, {
|
|
985
|
+
readonly internalType: "bytes32[]";
|
|
986
|
+
readonly name: "proof";
|
|
987
|
+
readonly type: "bytes32[]";
|
|
988
|
+
}, {
|
|
989
|
+
readonly internalType: "address";
|
|
990
|
+
readonly name: "addr";
|
|
991
|
+
readonly type: "address";
|
|
992
|
+
}, {
|
|
993
|
+
readonly internalType: "bytes32";
|
|
994
|
+
readonly name: "salt";
|
|
995
|
+
readonly type: "bytes32";
|
|
996
|
+
}];
|
|
997
|
+
readonly name: "checkMerkleProof";
|
|
998
|
+
readonly outputs: readonly [{
|
|
999
|
+
readonly internalType: "bool";
|
|
1000
|
+
readonly name: "";
|
|
1001
|
+
readonly type: "bool";
|
|
1002
|
+
}];
|
|
1003
|
+
readonly stateMutability: "view";
|
|
1004
|
+
readonly type: "function";
|
|
1005
|
+
}, {
|
|
1006
|
+
readonly inputs: readonly [{
|
|
1007
|
+
readonly internalType: "bytes32";
|
|
1008
|
+
readonly name: "role";
|
|
1009
|
+
readonly type: "bytes32";
|
|
1010
|
+
}];
|
|
1011
|
+
readonly name: "getRoleAdmin";
|
|
1012
|
+
readonly outputs: readonly [{
|
|
1013
|
+
readonly internalType: "bytes32";
|
|
1014
|
+
readonly name: "";
|
|
1015
|
+
readonly type: "bytes32";
|
|
1016
|
+
}];
|
|
1017
|
+
readonly stateMutability: "view";
|
|
1018
|
+
readonly type: "function";
|
|
1019
|
+
}, {
|
|
1020
|
+
readonly inputs: readonly [{
|
|
1021
|
+
readonly internalType: "bytes32";
|
|
1022
|
+
readonly name: "role";
|
|
1023
|
+
readonly type: "bytes32";
|
|
1024
|
+
}, {
|
|
1025
|
+
readonly internalType: "uint256";
|
|
1026
|
+
readonly name: "index";
|
|
1027
|
+
readonly type: "uint256";
|
|
1028
|
+
}];
|
|
1029
|
+
readonly name: "getRoleMember";
|
|
1030
|
+
readonly outputs: readonly [{
|
|
1031
|
+
readonly internalType: "address";
|
|
1032
|
+
readonly name: "";
|
|
1033
|
+
readonly type: "address";
|
|
1034
|
+
}];
|
|
1035
|
+
readonly stateMutability: "view";
|
|
1036
|
+
readonly type: "function";
|
|
1037
|
+
}, {
|
|
1038
|
+
readonly inputs: readonly [{
|
|
1039
|
+
readonly internalType: "bytes32";
|
|
1040
|
+
readonly name: "role";
|
|
1041
|
+
readonly type: "bytes32";
|
|
1042
|
+
}];
|
|
1043
|
+
readonly name: "getRoleMemberCount";
|
|
1044
|
+
readonly outputs: readonly [{
|
|
1045
|
+
readonly internalType: "uint256";
|
|
1046
|
+
readonly name: "";
|
|
1047
|
+
readonly type: "uint256";
|
|
1048
|
+
}];
|
|
1049
|
+
readonly stateMutability: "view";
|
|
1050
|
+
readonly type: "function";
|
|
1051
|
+
}, {
|
|
1052
|
+
readonly inputs: readonly [];
|
|
1053
|
+
readonly name: "globalSaleDetails";
|
|
1054
|
+
readonly outputs: readonly [{
|
|
1055
|
+
readonly components: readonly [{
|
|
1056
|
+
readonly internalType: "uint256";
|
|
1057
|
+
readonly name: "minTokenId";
|
|
1058
|
+
readonly type: "uint256";
|
|
1059
|
+
}, {
|
|
1060
|
+
readonly internalType: "uint256";
|
|
1061
|
+
readonly name: "maxTokenId";
|
|
1062
|
+
readonly type: "uint256";
|
|
1063
|
+
}, {
|
|
1064
|
+
readonly internalType: "uint256";
|
|
1065
|
+
readonly name: "cost";
|
|
1066
|
+
readonly type: "uint256";
|
|
1067
|
+
}, {
|
|
1068
|
+
readonly internalType: "uint256";
|
|
1069
|
+
readonly name: "remainingSupply";
|
|
1070
|
+
readonly type: "uint256";
|
|
1071
|
+
}, {
|
|
1072
|
+
readonly internalType: "uint64";
|
|
1073
|
+
readonly name: "startTime";
|
|
1074
|
+
readonly type: "uint64";
|
|
1075
|
+
}, {
|
|
1076
|
+
readonly internalType: "uint64";
|
|
1077
|
+
readonly name: "endTime";
|
|
1078
|
+
readonly type: "uint64";
|
|
1079
|
+
}, {
|
|
1080
|
+
readonly internalType: "bytes32";
|
|
1081
|
+
readonly name: "merkleRoot";
|
|
1082
|
+
readonly type: "bytes32";
|
|
1083
|
+
}];
|
|
1084
|
+
readonly internalType: "struct IERC1155SaleFunctions.GlobalSaleDetails";
|
|
1085
|
+
readonly name: "";
|
|
1086
|
+
readonly type: "tuple";
|
|
1087
|
+
}];
|
|
1088
|
+
readonly stateMutability: "view";
|
|
1089
|
+
readonly type: "function";
|
|
1090
|
+
}, {
|
|
1091
|
+
readonly inputs: readonly [{
|
|
1092
|
+
readonly internalType: "bytes32";
|
|
1093
|
+
readonly name: "role";
|
|
1094
|
+
readonly type: "bytes32";
|
|
1095
|
+
}, {
|
|
1096
|
+
readonly internalType: "address";
|
|
1097
|
+
readonly name: "account";
|
|
1098
|
+
readonly type: "address";
|
|
1099
|
+
}];
|
|
1100
|
+
readonly name: "grantRole";
|
|
1101
|
+
readonly outputs: readonly [];
|
|
1102
|
+
readonly stateMutability: "nonpayable";
|
|
1103
|
+
readonly type: "function";
|
|
1104
|
+
}, {
|
|
1105
|
+
readonly inputs: readonly [{
|
|
1106
|
+
readonly internalType: "bytes32";
|
|
1107
|
+
readonly name: "role";
|
|
1108
|
+
readonly type: "bytes32";
|
|
1109
|
+
}, {
|
|
1110
|
+
readonly internalType: "address";
|
|
1111
|
+
readonly name: "account";
|
|
1112
|
+
readonly type: "address";
|
|
1113
|
+
}];
|
|
1114
|
+
readonly name: "hasRole";
|
|
1115
|
+
readonly outputs: readonly [{
|
|
1116
|
+
readonly internalType: "bool";
|
|
1117
|
+
readonly name: "";
|
|
1118
|
+
readonly type: "bool";
|
|
1119
|
+
}];
|
|
1120
|
+
readonly stateMutability: "view";
|
|
1121
|
+
readonly type: "function";
|
|
1122
|
+
}, {
|
|
1123
|
+
readonly inputs: readonly [{
|
|
1124
|
+
readonly internalType: "address";
|
|
1125
|
+
readonly name: "owner";
|
|
1126
|
+
readonly type: "address";
|
|
1127
|
+
}, {
|
|
1128
|
+
readonly internalType: "address";
|
|
1129
|
+
readonly name: "items";
|
|
1130
|
+
readonly type: "address";
|
|
1131
|
+
}, {
|
|
1132
|
+
readonly internalType: "address";
|
|
1133
|
+
readonly name: "implicitModeValidator";
|
|
1134
|
+
readonly type: "address";
|
|
1135
|
+
}, {
|
|
1136
|
+
readonly internalType: "bytes32";
|
|
1137
|
+
readonly name: "implicitModeProjectId";
|
|
1138
|
+
readonly type: "bytes32";
|
|
1139
|
+
}];
|
|
1140
|
+
readonly name: "initialize";
|
|
1141
|
+
readonly outputs: readonly [];
|
|
1142
|
+
readonly stateMutability: "nonpayable";
|
|
1143
|
+
readonly type: "function";
|
|
1144
|
+
}, {
|
|
1145
|
+
readonly inputs: readonly [{
|
|
1146
|
+
readonly internalType: "address";
|
|
1147
|
+
readonly name: "to";
|
|
1148
|
+
readonly type: "address";
|
|
1149
|
+
}, {
|
|
1150
|
+
readonly internalType: "uint256[]";
|
|
1151
|
+
readonly name: "tokenIds";
|
|
1152
|
+
readonly type: "uint256[]";
|
|
1153
|
+
}, {
|
|
1154
|
+
readonly internalType: "uint256[]";
|
|
1155
|
+
readonly name: "amounts";
|
|
1156
|
+
readonly type: "uint256[]";
|
|
1157
|
+
}, {
|
|
1158
|
+
readonly internalType: "bytes";
|
|
1159
|
+
readonly name: "data";
|
|
1160
|
+
readonly type: "bytes";
|
|
1161
|
+
}, {
|
|
1162
|
+
readonly internalType: "address";
|
|
1163
|
+
readonly name: "expectedPaymentToken";
|
|
1164
|
+
readonly type: "address";
|
|
1165
|
+
}, {
|
|
1166
|
+
readonly internalType: "uint256";
|
|
1167
|
+
readonly name: "maxTotal";
|
|
1168
|
+
readonly type: "uint256";
|
|
1169
|
+
}, {
|
|
1170
|
+
readonly internalType: "bytes32[]";
|
|
1171
|
+
readonly name: "proof";
|
|
1172
|
+
readonly type: "bytes32[]";
|
|
1173
|
+
}];
|
|
1174
|
+
readonly name: "mint";
|
|
1175
|
+
readonly outputs: readonly [];
|
|
1176
|
+
readonly stateMutability: "payable";
|
|
1177
|
+
readonly type: "function";
|
|
1178
|
+
}, {
|
|
1179
|
+
readonly inputs: readonly [];
|
|
1180
|
+
readonly name: "paymentToken";
|
|
1181
|
+
readonly outputs: readonly [{
|
|
1182
|
+
readonly internalType: "address";
|
|
1183
|
+
readonly name: "";
|
|
1184
|
+
readonly type: "address";
|
|
1185
|
+
}];
|
|
1186
|
+
readonly stateMutability: "view";
|
|
1187
|
+
readonly type: "function";
|
|
1188
|
+
}, {
|
|
1189
|
+
readonly inputs: readonly [{
|
|
1190
|
+
readonly internalType: "bytes32";
|
|
1191
|
+
readonly name: "role";
|
|
1192
|
+
readonly type: "bytes32";
|
|
1193
|
+
}, {
|
|
1194
|
+
readonly internalType: "address";
|
|
1195
|
+
readonly name: "account";
|
|
1196
|
+
readonly type: "address";
|
|
1197
|
+
}];
|
|
1198
|
+
readonly name: "renounceRole";
|
|
1199
|
+
readonly outputs: readonly [];
|
|
1200
|
+
readonly stateMutability: "nonpayable";
|
|
1201
|
+
readonly type: "function";
|
|
1202
|
+
}, {
|
|
1203
|
+
readonly inputs: readonly [{
|
|
1204
|
+
readonly internalType: "bytes32";
|
|
1205
|
+
readonly name: "role";
|
|
1206
|
+
readonly type: "bytes32";
|
|
1207
|
+
}, {
|
|
1208
|
+
readonly internalType: "address";
|
|
1209
|
+
readonly name: "account";
|
|
1210
|
+
readonly type: "address";
|
|
1211
|
+
}];
|
|
1212
|
+
readonly name: "revokeRole";
|
|
1213
|
+
readonly outputs: readonly [];
|
|
1214
|
+
readonly stateMutability: "nonpayable";
|
|
1215
|
+
readonly type: "function";
|
|
1216
|
+
}, {
|
|
1217
|
+
readonly inputs: readonly [{
|
|
1218
|
+
readonly internalType: "uint256";
|
|
1219
|
+
readonly name: "minTokenId";
|
|
1220
|
+
readonly type: "uint256";
|
|
1221
|
+
}, {
|
|
1222
|
+
readonly internalType: "uint256";
|
|
1223
|
+
readonly name: "maxTokenId";
|
|
1224
|
+
readonly type: "uint256";
|
|
1225
|
+
}, {
|
|
1226
|
+
readonly internalType: "uint256";
|
|
1227
|
+
readonly name: "cost";
|
|
1228
|
+
readonly type: "uint256";
|
|
1229
|
+
}, {
|
|
1230
|
+
readonly internalType: "uint256";
|
|
1231
|
+
readonly name: "remainingSupply";
|
|
1232
|
+
readonly type: "uint256";
|
|
1233
|
+
}, {
|
|
1234
|
+
readonly internalType: "uint64";
|
|
1235
|
+
readonly name: "startTime";
|
|
1236
|
+
readonly type: "uint64";
|
|
1237
|
+
}, {
|
|
1238
|
+
readonly internalType: "uint64";
|
|
1239
|
+
readonly name: "endTime";
|
|
1240
|
+
readonly type: "uint64";
|
|
1241
|
+
}, {
|
|
1242
|
+
readonly internalType: "bytes32";
|
|
1243
|
+
readonly name: "merkleRoot";
|
|
1244
|
+
readonly type: "bytes32";
|
|
1245
|
+
}];
|
|
1246
|
+
readonly name: "setGlobalSaleDetails";
|
|
1247
|
+
readonly outputs: readonly [];
|
|
1248
|
+
readonly stateMutability: "nonpayable";
|
|
1249
|
+
readonly type: "function";
|
|
1250
|
+
}, {
|
|
1251
|
+
readonly inputs: readonly [{
|
|
1252
|
+
readonly internalType: "bytes32";
|
|
1253
|
+
readonly name: "projectId";
|
|
1254
|
+
readonly type: "bytes32";
|
|
1255
|
+
}];
|
|
1256
|
+
readonly name: "setImplicitModeProjectId";
|
|
1257
|
+
readonly outputs: readonly [];
|
|
1258
|
+
readonly stateMutability: "nonpayable";
|
|
1259
|
+
readonly type: "function";
|
|
1260
|
+
}, {
|
|
1261
|
+
readonly inputs: readonly [{
|
|
1262
|
+
readonly internalType: "address";
|
|
1263
|
+
readonly name: "validator";
|
|
1264
|
+
readonly type: "address";
|
|
1265
|
+
}];
|
|
1266
|
+
readonly name: "setImplicitModeValidator";
|
|
1267
|
+
readonly outputs: readonly [];
|
|
1268
|
+
readonly stateMutability: "nonpayable";
|
|
1269
|
+
readonly type: "function";
|
|
1270
|
+
}, {
|
|
1271
|
+
readonly inputs: readonly [{
|
|
1272
|
+
readonly internalType: "address";
|
|
1273
|
+
readonly name: "paymentTokenAddr";
|
|
1274
|
+
readonly type: "address";
|
|
1275
|
+
}];
|
|
1276
|
+
readonly name: "setPaymentToken";
|
|
1277
|
+
readonly outputs: readonly [];
|
|
1278
|
+
readonly stateMutability: "nonpayable";
|
|
1279
|
+
readonly type: "function";
|
|
1280
|
+
}, {
|
|
1281
|
+
readonly inputs: readonly [{
|
|
1282
|
+
readonly internalType: "uint256";
|
|
1283
|
+
readonly name: "tokenId";
|
|
1284
|
+
readonly type: "uint256";
|
|
1285
|
+
}, {
|
|
1286
|
+
readonly internalType: "uint256";
|
|
1287
|
+
readonly name: "cost";
|
|
1288
|
+
readonly type: "uint256";
|
|
1289
|
+
}, {
|
|
1290
|
+
readonly internalType: "uint256";
|
|
1291
|
+
readonly name: "remainingSupply";
|
|
1292
|
+
readonly type: "uint256";
|
|
1293
|
+
}, {
|
|
1294
|
+
readonly internalType: "uint64";
|
|
1295
|
+
readonly name: "startTime";
|
|
1296
|
+
readonly type: "uint64";
|
|
1297
|
+
}, {
|
|
1298
|
+
readonly internalType: "uint64";
|
|
1299
|
+
readonly name: "endTime";
|
|
1300
|
+
readonly type: "uint64";
|
|
1301
|
+
}, {
|
|
1302
|
+
readonly internalType: "bytes32";
|
|
1303
|
+
readonly name: "merkleRoot";
|
|
1304
|
+
readonly type: "bytes32";
|
|
1305
|
+
}];
|
|
1306
|
+
readonly name: "setTokenSaleDetails";
|
|
1307
|
+
readonly outputs: readonly [];
|
|
1308
|
+
readonly stateMutability: "nonpayable";
|
|
1309
|
+
readonly type: "function";
|
|
1310
|
+
}, {
|
|
1311
|
+
readonly inputs: readonly [{
|
|
1312
|
+
readonly internalType: "uint256[]";
|
|
1313
|
+
readonly name: "tokenIds";
|
|
1314
|
+
readonly type: "uint256[]";
|
|
1315
|
+
}, {
|
|
1316
|
+
readonly internalType: "uint256[]";
|
|
1317
|
+
readonly name: "costs";
|
|
1318
|
+
readonly type: "uint256[]";
|
|
1319
|
+
}, {
|
|
1320
|
+
readonly internalType: "uint256[]";
|
|
1321
|
+
readonly name: "remainingSupplies";
|
|
1322
|
+
readonly type: "uint256[]";
|
|
1323
|
+
}, {
|
|
1324
|
+
readonly internalType: "uint64[]";
|
|
1325
|
+
readonly name: "startTimes";
|
|
1326
|
+
readonly type: "uint64[]";
|
|
1327
|
+
}, {
|
|
1328
|
+
readonly internalType: "uint64[]";
|
|
1329
|
+
readonly name: "endTimes";
|
|
1330
|
+
readonly type: "uint64[]";
|
|
1331
|
+
}, {
|
|
1332
|
+
readonly internalType: "bytes32[]";
|
|
1333
|
+
readonly name: "merkleRoots";
|
|
1334
|
+
readonly type: "bytes32[]";
|
|
1335
|
+
}];
|
|
1336
|
+
readonly name: "setTokenSaleDetailsBatch";
|
|
1337
|
+
readonly outputs: readonly [];
|
|
1338
|
+
readonly stateMutability: "nonpayable";
|
|
1339
|
+
readonly type: "function";
|
|
1340
|
+
}, {
|
|
1341
|
+
readonly inputs: readonly [{
|
|
1342
|
+
readonly internalType: "bytes4";
|
|
1343
|
+
readonly name: "interfaceId";
|
|
1344
|
+
readonly type: "bytes4";
|
|
1345
|
+
}];
|
|
1346
|
+
readonly name: "supportsInterface";
|
|
1347
|
+
readonly outputs: readonly [{
|
|
1348
|
+
readonly internalType: "bool";
|
|
1349
|
+
readonly name: "";
|
|
1350
|
+
readonly type: "bool";
|
|
1351
|
+
}];
|
|
1352
|
+
readonly stateMutability: "view";
|
|
1353
|
+
readonly type: "function";
|
|
1354
|
+
}, {
|
|
1355
|
+
readonly inputs: readonly [{
|
|
1356
|
+
readonly internalType: "uint256";
|
|
1357
|
+
readonly name: "tokenId";
|
|
1358
|
+
readonly type: "uint256";
|
|
1359
|
+
}];
|
|
1360
|
+
readonly name: "tokenSaleDetails";
|
|
1361
|
+
readonly outputs: readonly [{
|
|
1362
|
+
readonly components: readonly [{
|
|
1363
|
+
readonly internalType: "uint256";
|
|
1364
|
+
readonly name: "cost";
|
|
1365
|
+
readonly type: "uint256";
|
|
1366
|
+
}, {
|
|
1367
|
+
readonly internalType: "uint256";
|
|
1368
|
+
readonly name: "remainingSupply";
|
|
1369
|
+
readonly type: "uint256";
|
|
1370
|
+
}, {
|
|
1371
|
+
readonly internalType: "uint64";
|
|
1372
|
+
readonly name: "startTime";
|
|
1373
|
+
readonly type: "uint64";
|
|
1374
|
+
}, {
|
|
1375
|
+
readonly internalType: "uint64";
|
|
1376
|
+
readonly name: "endTime";
|
|
1377
|
+
readonly type: "uint64";
|
|
1378
|
+
}, {
|
|
1379
|
+
readonly internalType: "bytes32";
|
|
1380
|
+
readonly name: "merkleRoot";
|
|
1381
|
+
readonly type: "bytes32";
|
|
1382
|
+
}];
|
|
1383
|
+
readonly internalType: "struct IERC1155SaleFunctions.SaleDetails";
|
|
1384
|
+
readonly name: "";
|
|
1385
|
+
readonly type: "tuple";
|
|
1386
|
+
}];
|
|
1387
|
+
readonly stateMutability: "view";
|
|
1388
|
+
readonly type: "function";
|
|
1389
|
+
}, {
|
|
1390
|
+
readonly inputs: readonly [{
|
|
1391
|
+
readonly internalType: "uint256[]";
|
|
1392
|
+
readonly name: "tokenIds";
|
|
1393
|
+
readonly type: "uint256[]";
|
|
1394
|
+
}];
|
|
1395
|
+
readonly name: "tokenSaleDetailsBatch";
|
|
1396
|
+
readonly outputs: readonly [{
|
|
1397
|
+
readonly components: readonly [{
|
|
1398
|
+
readonly internalType: "uint256";
|
|
1399
|
+
readonly name: "cost";
|
|
1400
|
+
readonly type: "uint256";
|
|
1401
|
+
}, {
|
|
1402
|
+
readonly internalType: "uint256";
|
|
1403
|
+
readonly name: "remainingSupply";
|
|
1404
|
+
readonly type: "uint256";
|
|
1405
|
+
}, {
|
|
1406
|
+
readonly internalType: "uint64";
|
|
1407
|
+
readonly name: "startTime";
|
|
1408
|
+
readonly type: "uint64";
|
|
1409
|
+
}, {
|
|
1410
|
+
readonly internalType: "uint64";
|
|
1411
|
+
readonly name: "endTime";
|
|
1412
|
+
readonly type: "uint64";
|
|
1413
|
+
}, {
|
|
1414
|
+
readonly internalType: "bytes32";
|
|
1415
|
+
readonly name: "merkleRoot";
|
|
1416
|
+
readonly type: "bytes32";
|
|
1417
|
+
}];
|
|
1418
|
+
readonly internalType: "struct IERC1155SaleFunctions.SaleDetails[]";
|
|
1419
|
+
readonly name: "";
|
|
1420
|
+
readonly type: "tuple[]";
|
|
1421
|
+
}];
|
|
1422
|
+
readonly stateMutability: "view";
|
|
1423
|
+
readonly type: "function";
|
|
1424
|
+
}, {
|
|
1425
|
+
readonly inputs: readonly [{
|
|
1426
|
+
readonly internalType: "address";
|
|
1427
|
+
readonly name: "token";
|
|
1428
|
+
readonly type: "address";
|
|
1429
|
+
}, {
|
|
1430
|
+
readonly internalType: "address";
|
|
1431
|
+
readonly name: "to";
|
|
1432
|
+
readonly type: "address";
|
|
1433
|
+
}, {
|
|
1434
|
+
readonly internalType: "uint256";
|
|
1435
|
+
readonly name: "value";
|
|
1436
|
+
readonly type: "uint256";
|
|
1437
|
+
}];
|
|
1438
|
+
readonly name: "withdrawERC20";
|
|
1439
|
+
readonly outputs: readonly [];
|
|
1440
|
+
readonly stateMutability: "nonpayable";
|
|
1441
|
+
readonly type: "function";
|
|
1442
|
+
}, {
|
|
1443
|
+
readonly inputs: readonly [{
|
|
1444
|
+
readonly internalType: "address";
|
|
1445
|
+
readonly name: "to";
|
|
1446
|
+
readonly type: "address";
|
|
1447
|
+
}, {
|
|
1448
|
+
readonly internalType: "uint256";
|
|
1449
|
+
readonly name: "value";
|
|
1450
|
+
readonly type: "uint256";
|
|
1451
|
+
}];
|
|
1452
|
+
readonly name: "withdrawETH";
|
|
1453
|
+
readonly outputs: readonly [];
|
|
1454
|
+
readonly stateMutability: "nonpayable";
|
|
1455
|
+
readonly type: "function";
|
|
1456
|
+
}] | readonly [{
|
|
1457
|
+
readonly type: "function";
|
|
1458
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
1459
|
+
readonly inputs: readonly [];
|
|
1460
|
+
readonly outputs: readonly [{
|
|
1461
|
+
readonly name: "";
|
|
1462
|
+
readonly type: "bytes32";
|
|
1463
|
+
readonly internalType: "bytes32";
|
|
1464
|
+
}];
|
|
1465
|
+
readonly stateMutability: "view";
|
|
1466
|
+
}, {
|
|
1467
|
+
readonly type: "function";
|
|
1468
|
+
readonly name: "checkMerkleProof";
|
|
1469
|
+
readonly inputs: readonly [{
|
|
1470
|
+
readonly name: "root";
|
|
1471
|
+
readonly type: "bytes32";
|
|
1472
|
+
readonly internalType: "bytes32";
|
|
1473
|
+
}, {
|
|
1474
|
+
readonly name: "proof";
|
|
1475
|
+
readonly type: "bytes32[]";
|
|
1476
|
+
readonly internalType: "bytes32[]";
|
|
1477
|
+
}, {
|
|
1478
|
+
readonly name: "addr";
|
|
1479
|
+
readonly type: "address";
|
|
1480
|
+
readonly internalType: "address";
|
|
1481
|
+
}, {
|
|
1482
|
+
readonly name: "salt";
|
|
1483
|
+
readonly type: "bytes32";
|
|
1484
|
+
readonly internalType: "bytes32";
|
|
1485
|
+
}];
|
|
1486
|
+
readonly outputs: readonly [{
|
|
1487
|
+
readonly name: "";
|
|
1488
|
+
readonly type: "bool";
|
|
1489
|
+
readonly internalType: "bool";
|
|
1490
|
+
}];
|
|
1491
|
+
readonly stateMutability: "view";
|
|
1492
|
+
}, {
|
|
1493
|
+
readonly type: "function";
|
|
1494
|
+
readonly name: "getRoleAdmin";
|
|
1495
|
+
readonly inputs: readonly [{
|
|
1496
|
+
readonly name: "role";
|
|
1497
|
+
readonly type: "bytes32";
|
|
1498
|
+
readonly internalType: "bytes32";
|
|
1499
|
+
}];
|
|
1500
|
+
readonly outputs: readonly [{
|
|
1501
|
+
readonly name: "";
|
|
1502
|
+
readonly type: "bytes32";
|
|
1503
|
+
readonly internalType: "bytes32";
|
|
1504
|
+
}];
|
|
1505
|
+
readonly stateMutability: "view";
|
|
1506
|
+
}, {
|
|
1507
|
+
readonly type: "function";
|
|
1508
|
+
readonly name: "getRoleMember";
|
|
1509
|
+
readonly inputs: readonly [{
|
|
1510
|
+
readonly name: "role";
|
|
1511
|
+
readonly type: "bytes32";
|
|
1512
|
+
readonly internalType: "bytes32";
|
|
1513
|
+
}, {
|
|
1514
|
+
readonly name: "index";
|
|
1515
|
+
readonly type: "uint256";
|
|
1516
|
+
readonly internalType: "uint256";
|
|
1517
|
+
}];
|
|
1518
|
+
readonly outputs: readonly [{
|
|
1519
|
+
readonly name: "";
|
|
1520
|
+
readonly type: "address";
|
|
1521
|
+
readonly internalType: "address";
|
|
1522
|
+
}];
|
|
1523
|
+
readonly stateMutability: "view";
|
|
1524
|
+
}, {
|
|
1525
|
+
readonly type: "function";
|
|
1526
|
+
readonly name: "getRoleMemberCount";
|
|
1527
|
+
readonly inputs: readonly [{
|
|
1528
|
+
readonly name: "role";
|
|
1529
|
+
readonly type: "bytes32";
|
|
1530
|
+
readonly internalType: "bytes32";
|
|
1531
|
+
}];
|
|
1532
|
+
readonly outputs: readonly [{
|
|
1533
|
+
readonly name: "";
|
|
1534
|
+
readonly type: "uint256";
|
|
1535
|
+
readonly internalType: "uint256";
|
|
1536
|
+
}];
|
|
1537
|
+
readonly stateMutability: "view";
|
|
1538
|
+
}, {
|
|
1539
|
+
readonly type: "function";
|
|
1540
|
+
readonly name: "globalSaleDetails";
|
|
1541
|
+
readonly inputs: readonly [];
|
|
1542
|
+
readonly outputs: readonly [{
|
|
1543
|
+
readonly name: "";
|
|
1544
|
+
readonly type: "tuple";
|
|
1545
|
+
readonly internalType: "struct IERC1155SaleFunctions.SaleDetails";
|
|
1546
|
+
readonly components: readonly [{
|
|
1547
|
+
readonly name: "cost";
|
|
1548
|
+
readonly type: "uint256";
|
|
1549
|
+
readonly internalType: "uint256";
|
|
1550
|
+
}, {
|
|
1551
|
+
readonly name: "supplyCap";
|
|
1552
|
+
readonly type: "uint256";
|
|
1553
|
+
readonly internalType: "uint256";
|
|
1554
|
+
}, {
|
|
1555
|
+
readonly name: "startTime";
|
|
1556
|
+
readonly type: "uint64";
|
|
1557
|
+
readonly internalType: "uint64";
|
|
1558
|
+
}, {
|
|
1559
|
+
readonly name: "endTime";
|
|
1560
|
+
readonly type: "uint64";
|
|
1561
|
+
readonly internalType: "uint64";
|
|
1562
|
+
}, {
|
|
1563
|
+
readonly name: "merkleRoot";
|
|
1564
|
+
readonly type: "bytes32";
|
|
1565
|
+
readonly internalType: "bytes32";
|
|
1566
|
+
}];
|
|
1567
|
+
}];
|
|
1568
|
+
readonly stateMutability: "view";
|
|
1569
|
+
}, {
|
|
1570
|
+
readonly type: "function";
|
|
1571
|
+
readonly name: "grantRole";
|
|
1572
|
+
readonly inputs: readonly [{
|
|
1573
|
+
readonly name: "role";
|
|
1574
|
+
readonly type: "bytes32";
|
|
1575
|
+
readonly internalType: "bytes32";
|
|
1576
|
+
}, {
|
|
1577
|
+
readonly name: "account";
|
|
1578
|
+
readonly type: "address";
|
|
1579
|
+
readonly internalType: "address";
|
|
1580
|
+
}];
|
|
1581
|
+
readonly outputs: readonly [];
|
|
1582
|
+
readonly stateMutability: "nonpayable";
|
|
1583
|
+
}, {
|
|
1584
|
+
readonly type: "function";
|
|
1585
|
+
readonly name: "hasRole";
|
|
1586
|
+
readonly inputs: readonly [{
|
|
1587
|
+
readonly name: "role";
|
|
1588
|
+
readonly type: "bytes32";
|
|
1589
|
+
readonly internalType: "bytes32";
|
|
1590
|
+
}, {
|
|
1591
|
+
readonly name: "account";
|
|
1592
|
+
readonly type: "address";
|
|
1593
|
+
readonly internalType: "address";
|
|
1594
|
+
}];
|
|
1595
|
+
readonly outputs: readonly [{
|
|
1596
|
+
readonly name: "";
|
|
1597
|
+
readonly type: "bool";
|
|
1598
|
+
readonly internalType: "bool";
|
|
1599
|
+
}];
|
|
1600
|
+
readonly stateMutability: "view";
|
|
1601
|
+
}, {
|
|
1602
|
+
readonly type: "function";
|
|
1603
|
+
readonly name: "initialize";
|
|
1604
|
+
readonly inputs: readonly [{
|
|
1605
|
+
readonly name: "owner";
|
|
1606
|
+
readonly type: "address";
|
|
1607
|
+
readonly internalType: "address";
|
|
1608
|
+
}, {
|
|
1609
|
+
readonly name: "items";
|
|
1610
|
+
readonly type: "address";
|
|
1611
|
+
readonly internalType: "address";
|
|
1612
|
+
}];
|
|
1613
|
+
readonly outputs: readonly [];
|
|
1614
|
+
readonly stateMutability: "nonpayable";
|
|
1615
|
+
}, {
|
|
1616
|
+
readonly type: "function";
|
|
1617
|
+
readonly name: "mint";
|
|
1618
|
+
readonly inputs: readonly [{
|
|
1619
|
+
readonly name: "to";
|
|
1620
|
+
readonly type: "address";
|
|
1621
|
+
readonly internalType: "address";
|
|
1622
|
+
}, {
|
|
1623
|
+
readonly name: "tokenIds";
|
|
1624
|
+
readonly type: "uint256[]";
|
|
1625
|
+
readonly internalType: "uint256[]";
|
|
1626
|
+
}, {
|
|
1627
|
+
readonly name: "amounts";
|
|
1628
|
+
readonly type: "uint256[]";
|
|
1629
|
+
readonly internalType: "uint256[]";
|
|
1630
|
+
}, {
|
|
1631
|
+
readonly name: "data";
|
|
1632
|
+
readonly type: "bytes";
|
|
1633
|
+
readonly internalType: "bytes";
|
|
1634
|
+
}, {
|
|
1635
|
+
readonly name: "expectedPaymentToken";
|
|
1636
|
+
readonly type: "address";
|
|
1637
|
+
readonly internalType: "address";
|
|
1638
|
+
}, {
|
|
1639
|
+
readonly name: "maxTotal";
|
|
1640
|
+
readonly type: "uint256";
|
|
1641
|
+
readonly internalType: "uint256";
|
|
1642
|
+
}, {
|
|
1643
|
+
readonly name: "proof";
|
|
1644
|
+
readonly type: "bytes32[]";
|
|
1645
|
+
readonly internalType: "bytes32[]";
|
|
1646
|
+
}];
|
|
1647
|
+
readonly outputs: readonly [];
|
|
1648
|
+
readonly stateMutability: "payable";
|
|
1649
|
+
}, {
|
|
1650
|
+
readonly type: "function";
|
|
1651
|
+
readonly name: "paymentToken";
|
|
1652
|
+
readonly inputs: readonly [];
|
|
1653
|
+
readonly outputs: readonly [{
|
|
1654
|
+
readonly name: "";
|
|
1655
|
+
readonly type: "address";
|
|
1656
|
+
readonly internalType: "address";
|
|
1657
|
+
}];
|
|
1658
|
+
readonly stateMutability: "view";
|
|
1659
|
+
}, {
|
|
1660
|
+
readonly type: "function";
|
|
1661
|
+
readonly name: "renounceRole";
|
|
1662
|
+
readonly inputs: readonly [{
|
|
1663
|
+
readonly name: "role";
|
|
1664
|
+
readonly type: "bytes32";
|
|
1665
|
+
readonly internalType: "bytes32";
|
|
1666
|
+
}, {
|
|
1667
|
+
readonly name: "account";
|
|
1668
|
+
readonly type: "address";
|
|
1669
|
+
readonly internalType: "address";
|
|
1670
|
+
}];
|
|
1671
|
+
readonly outputs: readonly [];
|
|
1672
|
+
readonly stateMutability: "nonpayable";
|
|
1673
|
+
}, {
|
|
1674
|
+
readonly type: "function";
|
|
1675
|
+
readonly name: "revokeRole";
|
|
1676
|
+
readonly inputs: readonly [{
|
|
1677
|
+
readonly name: "role";
|
|
1678
|
+
readonly type: "bytes32";
|
|
1679
|
+
readonly internalType: "bytes32";
|
|
1680
|
+
}, {
|
|
1681
|
+
readonly name: "account";
|
|
1682
|
+
readonly type: "address";
|
|
1683
|
+
readonly internalType: "address";
|
|
1684
|
+
}];
|
|
1685
|
+
readonly outputs: readonly [];
|
|
1686
|
+
readonly stateMutability: "nonpayable";
|
|
1687
|
+
}, {
|
|
1688
|
+
readonly type: "function";
|
|
1689
|
+
readonly name: "setGlobalSaleDetails";
|
|
1690
|
+
readonly inputs: readonly [{
|
|
1691
|
+
readonly name: "cost";
|
|
1692
|
+
readonly type: "uint256";
|
|
1693
|
+
readonly internalType: "uint256";
|
|
1694
|
+
}, {
|
|
1695
|
+
readonly name: "supplyCap";
|
|
1696
|
+
readonly type: "uint256";
|
|
1697
|
+
readonly internalType: "uint256";
|
|
1698
|
+
}, {
|
|
1699
|
+
readonly name: "startTime";
|
|
1700
|
+
readonly type: "uint64";
|
|
1701
|
+
readonly internalType: "uint64";
|
|
1702
|
+
}, {
|
|
1703
|
+
readonly name: "endTime";
|
|
1704
|
+
readonly type: "uint64";
|
|
1705
|
+
readonly internalType: "uint64";
|
|
1706
|
+
}, {
|
|
1707
|
+
readonly name: "merkleRoot";
|
|
1708
|
+
readonly type: "bytes32";
|
|
1709
|
+
readonly internalType: "bytes32";
|
|
1710
|
+
}];
|
|
1711
|
+
readonly outputs: readonly [];
|
|
1712
|
+
readonly stateMutability: "nonpayable";
|
|
1713
|
+
}, {
|
|
1714
|
+
readonly type: "function";
|
|
1715
|
+
readonly name: "setPaymentToken";
|
|
1716
|
+
readonly inputs: readonly [{
|
|
1717
|
+
readonly name: "paymentTokenAddr";
|
|
1718
|
+
readonly type: "address";
|
|
1719
|
+
readonly internalType: "address";
|
|
1720
|
+
}];
|
|
1721
|
+
readonly outputs: readonly [];
|
|
1722
|
+
readonly stateMutability: "nonpayable";
|
|
1723
|
+
}, {
|
|
1724
|
+
readonly type: "function";
|
|
1725
|
+
readonly name: "setTokenSaleDetails";
|
|
1726
|
+
readonly inputs: readonly [{
|
|
1727
|
+
readonly name: "tokenId";
|
|
1728
|
+
readonly type: "uint256";
|
|
1729
|
+
readonly internalType: "uint256";
|
|
1730
|
+
}, {
|
|
1731
|
+
readonly name: "cost";
|
|
1732
|
+
readonly type: "uint256";
|
|
1733
|
+
readonly internalType: "uint256";
|
|
1734
|
+
}, {
|
|
1735
|
+
readonly name: "supplyCap";
|
|
1736
|
+
readonly type: "uint256";
|
|
1737
|
+
readonly internalType: "uint256";
|
|
1738
|
+
}, {
|
|
1739
|
+
readonly name: "startTime";
|
|
1740
|
+
readonly type: "uint64";
|
|
1741
|
+
readonly internalType: "uint64";
|
|
1742
|
+
}, {
|
|
1743
|
+
readonly name: "endTime";
|
|
1744
|
+
readonly type: "uint64";
|
|
1745
|
+
readonly internalType: "uint64";
|
|
1746
|
+
}, {
|
|
1747
|
+
readonly name: "merkleRoot";
|
|
1748
|
+
readonly type: "bytes32";
|
|
1749
|
+
readonly internalType: "bytes32";
|
|
1750
|
+
}];
|
|
1751
|
+
readonly outputs: readonly [];
|
|
1752
|
+
readonly stateMutability: "nonpayable";
|
|
1753
|
+
}, {
|
|
1754
|
+
readonly type: "function";
|
|
1755
|
+
readonly name: "setTokenSaleDetailsBatch";
|
|
1756
|
+
readonly inputs: readonly [{
|
|
1757
|
+
readonly name: "tokenIds";
|
|
1758
|
+
readonly type: "uint256[]";
|
|
1759
|
+
readonly internalType: "uint256[]";
|
|
1760
|
+
}, {
|
|
1761
|
+
readonly name: "costs";
|
|
1762
|
+
readonly type: "uint256[]";
|
|
1763
|
+
readonly internalType: "uint256[]";
|
|
1764
|
+
}, {
|
|
1765
|
+
readonly name: "supplyCaps";
|
|
1766
|
+
readonly type: "uint256[]";
|
|
1767
|
+
readonly internalType: "uint256[]";
|
|
1768
|
+
}, {
|
|
1769
|
+
readonly name: "startTimes";
|
|
1770
|
+
readonly type: "uint64[]";
|
|
1771
|
+
readonly internalType: "uint64[]";
|
|
1772
|
+
}, {
|
|
1773
|
+
readonly name: "endTimes";
|
|
1774
|
+
readonly type: "uint64[]";
|
|
1775
|
+
readonly internalType: "uint64[]";
|
|
1776
|
+
}, {
|
|
1777
|
+
readonly name: "merkleRoots";
|
|
1778
|
+
readonly type: "bytes32[]";
|
|
1779
|
+
readonly internalType: "bytes32[]";
|
|
1780
|
+
}];
|
|
1781
|
+
readonly outputs: readonly [];
|
|
1782
|
+
readonly stateMutability: "nonpayable";
|
|
1783
|
+
}, {
|
|
1784
|
+
readonly type: "function";
|
|
1785
|
+
readonly name: "supportsInterface";
|
|
1786
|
+
readonly inputs: readonly [{
|
|
1787
|
+
readonly name: "interfaceId";
|
|
1788
|
+
readonly type: "bytes4";
|
|
1789
|
+
readonly internalType: "bytes4";
|
|
1790
|
+
}];
|
|
1791
|
+
readonly outputs: readonly [{
|
|
1792
|
+
readonly name: "";
|
|
1793
|
+
readonly type: "bool";
|
|
1794
|
+
readonly internalType: "bool";
|
|
1795
|
+
}];
|
|
1796
|
+
readonly stateMutability: "view";
|
|
1797
|
+
}, {
|
|
1798
|
+
readonly type: "function";
|
|
1799
|
+
readonly name: "tokenSaleDetails";
|
|
1800
|
+
readonly inputs: readonly [{
|
|
1801
|
+
readonly name: "tokenId";
|
|
1802
|
+
readonly type: "uint256";
|
|
1803
|
+
readonly internalType: "uint256";
|
|
1804
|
+
}];
|
|
1805
|
+
readonly outputs: readonly [{
|
|
1806
|
+
readonly name: "";
|
|
1807
|
+
readonly type: "tuple";
|
|
1808
|
+
readonly internalType: "struct IERC1155SaleFunctions.SaleDetails";
|
|
1809
|
+
readonly components: readonly [{
|
|
1810
|
+
readonly name: "cost";
|
|
1811
|
+
readonly type: "uint256";
|
|
1812
|
+
readonly internalType: "uint256";
|
|
1813
|
+
}, {
|
|
1814
|
+
readonly name: "supplyCap";
|
|
1815
|
+
readonly type: "uint256";
|
|
1816
|
+
readonly internalType: "uint256";
|
|
1817
|
+
}, {
|
|
1818
|
+
readonly name: "startTime";
|
|
1819
|
+
readonly type: "uint64";
|
|
1820
|
+
readonly internalType: "uint64";
|
|
1821
|
+
}, {
|
|
1822
|
+
readonly name: "endTime";
|
|
1823
|
+
readonly type: "uint64";
|
|
1824
|
+
readonly internalType: "uint64";
|
|
1825
|
+
}, {
|
|
1826
|
+
readonly name: "merkleRoot";
|
|
1827
|
+
readonly type: "bytes32";
|
|
1828
|
+
readonly internalType: "bytes32";
|
|
1829
|
+
}];
|
|
1830
|
+
}];
|
|
1831
|
+
readonly stateMutability: "view";
|
|
1832
|
+
}, {
|
|
1833
|
+
readonly type: "function";
|
|
1834
|
+
readonly name: "tokenSaleDetailsBatch";
|
|
1835
|
+
readonly inputs: readonly [{
|
|
1836
|
+
readonly name: "tokenIds";
|
|
1837
|
+
readonly type: "uint256[]";
|
|
1838
|
+
readonly internalType: "uint256[]";
|
|
1839
|
+
}];
|
|
1840
|
+
readonly outputs: readonly [{
|
|
1841
|
+
readonly name: "";
|
|
1842
|
+
readonly type: "tuple[]";
|
|
1843
|
+
readonly internalType: "struct IERC1155SaleFunctions.SaleDetails[]";
|
|
1844
|
+
readonly components: readonly [{
|
|
1845
|
+
readonly name: "cost";
|
|
1846
|
+
readonly type: "uint256";
|
|
1847
|
+
readonly internalType: "uint256";
|
|
1848
|
+
}, {
|
|
1849
|
+
readonly name: "supplyCap";
|
|
1850
|
+
readonly type: "uint256";
|
|
1851
|
+
readonly internalType: "uint256";
|
|
1852
|
+
}, {
|
|
1853
|
+
readonly name: "startTime";
|
|
1854
|
+
readonly type: "uint64";
|
|
1855
|
+
readonly internalType: "uint64";
|
|
1856
|
+
}, {
|
|
1857
|
+
readonly name: "endTime";
|
|
1858
|
+
readonly type: "uint64";
|
|
1859
|
+
readonly internalType: "uint64";
|
|
1860
|
+
}, {
|
|
1861
|
+
readonly name: "merkleRoot";
|
|
1862
|
+
readonly type: "bytes32";
|
|
1863
|
+
readonly internalType: "bytes32";
|
|
1864
|
+
}];
|
|
1865
|
+
}];
|
|
1866
|
+
readonly stateMutability: "view";
|
|
1867
|
+
}, {
|
|
1868
|
+
readonly type: "function";
|
|
1869
|
+
readonly name: "withdrawERC20";
|
|
1870
|
+
readonly inputs: readonly [{
|
|
1871
|
+
readonly name: "token";
|
|
1872
|
+
readonly type: "address";
|
|
1873
|
+
readonly internalType: "address";
|
|
1874
|
+
}, {
|
|
1875
|
+
readonly name: "to";
|
|
1876
|
+
readonly type: "address";
|
|
1877
|
+
readonly internalType: "address";
|
|
1878
|
+
}, {
|
|
1879
|
+
readonly name: "value";
|
|
1880
|
+
readonly type: "uint256";
|
|
1881
|
+
readonly internalType: "uint256";
|
|
1882
|
+
}];
|
|
1883
|
+
readonly outputs: readonly [];
|
|
1884
|
+
readonly stateMutability: "nonpayable";
|
|
1885
|
+
}, {
|
|
1886
|
+
readonly type: "function";
|
|
1887
|
+
readonly name: "withdrawETH";
|
|
1888
|
+
readonly inputs: readonly [{
|
|
1889
|
+
readonly name: "to";
|
|
1890
|
+
readonly type: "address";
|
|
1891
|
+
readonly internalType: "address";
|
|
1892
|
+
}, {
|
|
1893
|
+
readonly name: "value";
|
|
1894
|
+
readonly type: "uint256";
|
|
1895
|
+
readonly internalType: "uint256";
|
|
1896
|
+
}];
|
|
1897
|
+
readonly outputs: readonly [];
|
|
1898
|
+
readonly stateMutability: "nonpayable";
|
|
1899
|
+
}, {
|
|
1900
|
+
readonly type: "event";
|
|
1901
|
+
readonly name: "GlobalSaleDetailsUpdated";
|
|
1902
|
+
readonly inputs: readonly [{
|
|
1903
|
+
readonly name: "cost";
|
|
1904
|
+
readonly type: "uint256";
|
|
1905
|
+
readonly indexed: false;
|
|
1906
|
+
readonly internalType: "uint256";
|
|
1907
|
+
}, {
|
|
1908
|
+
readonly name: "supplyCap";
|
|
1909
|
+
readonly type: "uint256";
|
|
1910
|
+
readonly indexed: false;
|
|
1911
|
+
readonly internalType: "uint256";
|
|
1912
|
+
}, {
|
|
1913
|
+
readonly name: "startTime";
|
|
1914
|
+
readonly type: "uint64";
|
|
1915
|
+
readonly indexed: false;
|
|
1916
|
+
readonly internalType: "uint64";
|
|
1917
|
+
}, {
|
|
1918
|
+
readonly name: "endTime";
|
|
1919
|
+
readonly type: "uint64";
|
|
1920
|
+
readonly indexed: false;
|
|
1921
|
+
readonly internalType: "uint64";
|
|
1922
|
+
}, {
|
|
1923
|
+
readonly name: "merkleRoot";
|
|
1924
|
+
readonly type: "bytes32";
|
|
1925
|
+
readonly indexed: false;
|
|
1926
|
+
readonly internalType: "bytes32";
|
|
1927
|
+
}];
|
|
1928
|
+
readonly anonymous: false;
|
|
1929
|
+
}, {
|
|
1930
|
+
readonly type: "event";
|
|
1931
|
+
readonly name: "ItemsMinted";
|
|
1932
|
+
readonly inputs: readonly [{
|
|
1933
|
+
readonly name: "to";
|
|
1934
|
+
readonly type: "address";
|
|
1935
|
+
readonly indexed: false;
|
|
1936
|
+
readonly internalType: "address";
|
|
1937
|
+
}, {
|
|
1938
|
+
readonly name: "tokenIds";
|
|
1939
|
+
readonly type: "uint256[]";
|
|
1940
|
+
readonly indexed: false;
|
|
1941
|
+
readonly internalType: "uint256[]";
|
|
1942
|
+
}, {
|
|
1943
|
+
readonly name: "amounts";
|
|
1944
|
+
readonly type: "uint256[]";
|
|
1945
|
+
readonly indexed: false;
|
|
1946
|
+
readonly internalType: "uint256[]";
|
|
1947
|
+
}];
|
|
1948
|
+
readonly anonymous: false;
|
|
1949
|
+
}, {
|
|
1950
|
+
readonly type: "event";
|
|
1951
|
+
readonly name: "RoleAdminChanged";
|
|
1952
|
+
readonly inputs: readonly [{
|
|
1953
|
+
readonly name: "role";
|
|
1954
|
+
readonly type: "bytes32";
|
|
1955
|
+
readonly indexed: true;
|
|
1956
|
+
readonly internalType: "bytes32";
|
|
1957
|
+
}, {
|
|
1958
|
+
readonly name: "previousAdminRole";
|
|
1959
|
+
readonly type: "bytes32";
|
|
1960
|
+
readonly indexed: true;
|
|
1961
|
+
readonly internalType: "bytes32";
|
|
1962
|
+
}, {
|
|
1963
|
+
readonly name: "newAdminRole";
|
|
1964
|
+
readonly type: "bytes32";
|
|
1965
|
+
readonly indexed: true;
|
|
1966
|
+
readonly internalType: "bytes32";
|
|
1967
|
+
}];
|
|
1968
|
+
readonly anonymous: false;
|
|
1969
|
+
}, {
|
|
1970
|
+
readonly type: "event";
|
|
1971
|
+
readonly name: "RoleGranted";
|
|
1972
|
+
readonly inputs: readonly [{
|
|
1973
|
+
readonly name: "role";
|
|
1974
|
+
readonly type: "bytes32";
|
|
1975
|
+
readonly indexed: true;
|
|
1976
|
+
readonly internalType: "bytes32";
|
|
1977
|
+
}, {
|
|
1978
|
+
readonly name: "account";
|
|
1979
|
+
readonly type: "address";
|
|
1980
|
+
readonly indexed: true;
|
|
1981
|
+
readonly internalType: "address";
|
|
1982
|
+
}, {
|
|
1983
|
+
readonly name: "sender";
|
|
1984
|
+
readonly type: "address";
|
|
1985
|
+
readonly indexed: true;
|
|
1986
|
+
readonly internalType: "address";
|
|
1987
|
+
}];
|
|
1988
|
+
readonly anonymous: false;
|
|
1989
|
+
}, {
|
|
1990
|
+
readonly type: "event";
|
|
1991
|
+
readonly name: "RoleRevoked";
|
|
1992
|
+
readonly inputs: readonly [{
|
|
1993
|
+
readonly name: "role";
|
|
1994
|
+
readonly type: "bytes32";
|
|
1995
|
+
readonly indexed: true;
|
|
1996
|
+
readonly internalType: "bytes32";
|
|
1997
|
+
}, {
|
|
1998
|
+
readonly name: "account";
|
|
1999
|
+
readonly type: "address";
|
|
2000
|
+
readonly indexed: true;
|
|
2001
|
+
readonly internalType: "address";
|
|
2002
|
+
}, {
|
|
2003
|
+
readonly name: "sender";
|
|
2004
|
+
readonly type: "address";
|
|
2005
|
+
readonly indexed: true;
|
|
2006
|
+
readonly internalType: "address";
|
|
2007
|
+
}];
|
|
2008
|
+
readonly anonymous: false;
|
|
2009
|
+
}, {
|
|
2010
|
+
readonly type: "event";
|
|
2011
|
+
readonly name: "TokenSaleDetailsUpdated";
|
|
2012
|
+
readonly inputs: readonly [{
|
|
2013
|
+
readonly name: "tokenId";
|
|
2014
|
+
readonly type: "uint256";
|
|
2015
|
+
readonly indexed: false;
|
|
2016
|
+
readonly internalType: "uint256";
|
|
2017
|
+
}, {
|
|
2018
|
+
readonly name: "cost";
|
|
2019
|
+
readonly type: "uint256";
|
|
2020
|
+
readonly indexed: false;
|
|
2021
|
+
readonly internalType: "uint256";
|
|
2022
|
+
}, {
|
|
2023
|
+
readonly name: "supplyCap";
|
|
2024
|
+
readonly type: "uint256";
|
|
2025
|
+
readonly indexed: false;
|
|
2026
|
+
readonly internalType: "uint256";
|
|
2027
|
+
}, {
|
|
2028
|
+
readonly name: "startTime";
|
|
2029
|
+
readonly type: "uint64";
|
|
2030
|
+
readonly indexed: false;
|
|
2031
|
+
readonly internalType: "uint64";
|
|
2032
|
+
}, {
|
|
2033
|
+
readonly name: "endTime";
|
|
2034
|
+
readonly type: "uint64";
|
|
2035
|
+
readonly indexed: false;
|
|
2036
|
+
readonly internalType: "uint64";
|
|
2037
|
+
}, {
|
|
2038
|
+
readonly name: "merkleRoot";
|
|
2039
|
+
readonly type: "bytes32";
|
|
2040
|
+
readonly indexed: false;
|
|
2041
|
+
readonly internalType: "bytes32";
|
|
2042
|
+
}];
|
|
2043
|
+
readonly anonymous: false;
|
|
2044
|
+
}, {
|
|
2045
|
+
readonly type: "error";
|
|
2046
|
+
readonly name: "GlobalSaleInactive";
|
|
2047
|
+
readonly inputs: readonly [];
|
|
2048
|
+
}, {
|
|
2049
|
+
readonly type: "error";
|
|
2050
|
+
readonly name: "InsufficientPayment";
|
|
2051
|
+
readonly inputs: readonly [{
|
|
2052
|
+
readonly name: "currency";
|
|
2053
|
+
readonly type: "address";
|
|
2054
|
+
readonly internalType: "address";
|
|
2055
|
+
}, {
|
|
2056
|
+
readonly name: "expected";
|
|
2057
|
+
readonly type: "uint256";
|
|
2058
|
+
readonly internalType: "uint256";
|
|
2059
|
+
}, {
|
|
2060
|
+
readonly name: "actual";
|
|
2061
|
+
readonly type: "uint256";
|
|
2062
|
+
readonly internalType: "uint256";
|
|
2063
|
+
}];
|
|
2064
|
+
}, {
|
|
2065
|
+
readonly type: "error";
|
|
2066
|
+
readonly name: "InsufficientSupply";
|
|
2067
|
+
readonly inputs: readonly [{
|
|
2068
|
+
readonly name: "currentSupply";
|
|
2069
|
+
readonly type: "uint256";
|
|
2070
|
+
readonly internalType: "uint256";
|
|
2071
|
+
}, {
|
|
2072
|
+
readonly name: "requestedAmount";
|
|
2073
|
+
readonly type: "uint256";
|
|
2074
|
+
readonly internalType: "uint256";
|
|
2075
|
+
}, {
|
|
2076
|
+
readonly name: "maxSupply";
|
|
2077
|
+
readonly type: "uint256";
|
|
2078
|
+
readonly internalType: "uint256";
|
|
2079
|
+
}];
|
|
2080
|
+
}, {
|
|
2081
|
+
readonly type: "error";
|
|
2082
|
+
readonly name: "InvalidInitialization";
|
|
2083
|
+
readonly inputs: readonly [];
|
|
2084
|
+
}, {
|
|
2085
|
+
readonly type: "error";
|
|
2086
|
+
readonly name: "InvalidSaleDetails";
|
|
2087
|
+
readonly inputs: readonly [];
|
|
2088
|
+
}, {
|
|
2089
|
+
readonly type: "error";
|
|
2090
|
+
readonly name: "InvalidTokenIds";
|
|
2091
|
+
readonly inputs: readonly [];
|
|
2092
|
+
}, {
|
|
2093
|
+
readonly type: "error";
|
|
2094
|
+
readonly name: "MerkleProofInvalid";
|
|
2095
|
+
readonly inputs: readonly [{
|
|
2096
|
+
readonly name: "root";
|
|
2097
|
+
readonly type: "bytes32";
|
|
2098
|
+
readonly internalType: "bytes32";
|
|
2099
|
+
}, {
|
|
2100
|
+
readonly name: "proof";
|
|
2101
|
+
readonly type: "bytes32[]";
|
|
2102
|
+
readonly internalType: "bytes32[]";
|
|
2103
|
+
}, {
|
|
2104
|
+
readonly name: "addr";
|
|
2105
|
+
readonly type: "address";
|
|
2106
|
+
readonly internalType: "address";
|
|
2107
|
+
}, {
|
|
2108
|
+
readonly name: "salt";
|
|
2109
|
+
readonly type: "bytes32";
|
|
2110
|
+
readonly internalType: "bytes32";
|
|
2111
|
+
}];
|
|
2112
|
+
}, {
|
|
2113
|
+
readonly type: "error";
|
|
2114
|
+
readonly name: "SaleInactive";
|
|
2115
|
+
readonly inputs: readonly [{
|
|
2116
|
+
readonly name: "tokenId";
|
|
2117
|
+
readonly type: "uint256";
|
|
2118
|
+
readonly internalType: "uint256";
|
|
2119
|
+
}];
|
|
2120
|
+
}, {
|
|
2121
|
+
readonly type: "error";
|
|
2122
|
+
readonly name: "WithdrawFailed";
|
|
2123
|
+
readonly inputs: readonly [];
|
|
2124
|
+
}] | readonly [{
|
|
2125
|
+
readonly type: "function";
|
|
2126
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
2127
|
+
readonly inputs: readonly [];
|
|
2128
|
+
readonly outputs: readonly [{
|
|
2129
|
+
readonly name: "";
|
|
2130
|
+
readonly type: "bytes32";
|
|
2131
|
+
readonly internalType: "bytes32";
|
|
2132
|
+
}];
|
|
2133
|
+
readonly stateMutability: "view";
|
|
2134
|
+
}, {
|
|
2135
|
+
readonly type: "function";
|
|
2136
|
+
readonly name: "checkMerkleProof";
|
|
2137
|
+
readonly inputs: readonly [{
|
|
2138
|
+
readonly name: "root";
|
|
2139
|
+
readonly type: "bytes32";
|
|
2140
|
+
readonly internalType: "bytes32";
|
|
2141
|
+
}, {
|
|
2142
|
+
readonly name: "proof";
|
|
2143
|
+
readonly type: "bytes32[]";
|
|
2144
|
+
readonly internalType: "bytes32[]";
|
|
2145
|
+
}, {
|
|
2146
|
+
readonly name: "addr";
|
|
2147
|
+
readonly type: "address";
|
|
2148
|
+
readonly internalType: "address";
|
|
2149
|
+
}, {
|
|
2150
|
+
readonly name: "salt";
|
|
2151
|
+
readonly type: "bytes32";
|
|
2152
|
+
readonly internalType: "bytes32";
|
|
2153
|
+
}];
|
|
2154
|
+
readonly outputs: readonly [{
|
|
2155
|
+
readonly name: "";
|
|
2156
|
+
readonly type: "bool";
|
|
2157
|
+
readonly internalType: "bool";
|
|
2158
|
+
}];
|
|
2159
|
+
readonly stateMutability: "view";
|
|
2160
|
+
}, {
|
|
2161
|
+
readonly type: "function";
|
|
2162
|
+
readonly name: "getRoleAdmin";
|
|
2163
|
+
readonly inputs: readonly [{
|
|
2164
|
+
readonly name: "role";
|
|
2165
|
+
readonly type: "bytes32";
|
|
2166
|
+
readonly internalType: "bytes32";
|
|
2167
|
+
}];
|
|
2168
|
+
readonly outputs: readonly [{
|
|
2169
|
+
readonly name: "";
|
|
2170
|
+
readonly type: "bytes32";
|
|
2171
|
+
readonly internalType: "bytes32";
|
|
2172
|
+
}];
|
|
2173
|
+
readonly stateMutability: "view";
|
|
2174
|
+
}, {
|
|
2175
|
+
readonly type: "function";
|
|
2176
|
+
readonly name: "getRoleMember";
|
|
2177
|
+
readonly inputs: readonly [{
|
|
2178
|
+
readonly name: "role";
|
|
2179
|
+
readonly type: "bytes32";
|
|
2180
|
+
readonly internalType: "bytes32";
|
|
2181
|
+
}, {
|
|
2182
|
+
readonly name: "index";
|
|
2183
|
+
readonly type: "uint256";
|
|
2184
|
+
readonly internalType: "uint256";
|
|
2185
|
+
}];
|
|
2186
|
+
readonly outputs: readonly [{
|
|
2187
|
+
readonly name: "";
|
|
2188
|
+
readonly type: "address";
|
|
2189
|
+
readonly internalType: "address";
|
|
2190
|
+
}];
|
|
2191
|
+
readonly stateMutability: "view";
|
|
2192
|
+
}, {
|
|
2193
|
+
readonly type: "function";
|
|
2194
|
+
readonly name: "getRoleMemberCount";
|
|
2195
|
+
readonly inputs: readonly [{
|
|
2196
|
+
readonly name: "role";
|
|
2197
|
+
readonly type: "bytes32";
|
|
2198
|
+
readonly internalType: "bytes32";
|
|
2199
|
+
}];
|
|
2200
|
+
readonly outputs: readonly [{
|
|
2201
|
+
readonly name: "";
|
|
2202
|
+
readonly type: "uint256";
|
|
2203
|
+
readonly internalType: "uint256";
|
|
2204
|
+
}];
|
|
2205
|
+
readonly stateMutability: "view";
|
|
2206
|
+
}, {
|
|
2207
|
+
readonly type: "function";
|
|
2208
|
+
readonly name: "grantRole";
|
|
2209
|
+
readonly inputs: readonly [{
|
|
2210
|
+
readonly name: "role";
|
|
2211
|
+
readonly type: "bytes32";
|
|
2212
|
+
readonly internalType: "bytes32";
|
|
2213
|
+
}, {
|
|
2214
|
+
readonly name: "account";
|
|
2215
|
+
readonly type: "address";
|
|
2216
|
+
readonly internalType: "address";
|
|
2217
|
+
}];
|
|
2218
|
+
readonly outputs: readonly [];
|
|
2219
|
+
readonly stateMutability: "nonpayable";
|
|
2220
|
+
}, {
|
|
2221
|
+
readonly type: "function";
|
|
2222
|
+
readonly name: "hasRole";
|
|
2223
|
+
readonly inputs: readonly [{
|
|
2224
|
+
readonly name: "role";
|
|
2225
|
+
readonly type: "bytes32";
|
|
2226
|
+
readonly internalType: "bytes32";
|
|
2227
|
+
}, {
|
|
2228
|
+
readonly name: "account";
|
|
2229
|
+
readonly type: "address";
|
|
2230
|
+
readonly internalType: "address";
|
|
2231
|
+
}];
|
|
2232
|
+
readonly outputs: readonly [{
|
|
2233
|
+
readonly name: "";
|
|
2234
|
+
readonly type: "bool";
|
|
2235
|
+
readonly internalType: "bool";
|
|
2236
|
+
}];
|
|
2237
|
+
readonly stateMutability: "view";
|
|
2238
|
+
}, {
|
|
2239
|
+
readonly type: "function";
|
|
2240
|
+
readonly name: "initialize";
|
|
2241
|
+
readonly inputs: readonly [{
|
|
2242
|
+
readonly name: "owner";
|
|
2243
|
+
readonly type: "address";
|
|
2244
|
+
readonly internalType: "address";
|
|
2245
|
+
}, {
|
|
2246
|
+
readonly name: "items";
|
|
2247
|
+
readonly type: "address";
|
|
2248
|
+
readonly internalType: "address";
|
|
2249
|
+
}];
|
|
2250
|
+
readonly outputs: readonly [];
|
|
2251
|
+
readonly stateMutability: "nonpayable";
|
|
2252
|
+
}, {
|
|
2253
|
+
readonly type: "function";
|
|
2254
|
+
readonly name: "itemsContract";
|
|
2255
|
+
readonly inputs: readonly [];
|
|
2256
|
+
readonly outputs: readonly [{
|
|
2257
|
+
readonly name: "";
|
|
2258
|
+
readonly type: "address";
|
|
2259
|
+
readonly internalType: "address";
|
|
2260
|
+
}];
|
|
2261
|
+
readonly stateMutability: "view";
|
|
2262
|
+
}, {
|
|
2263
|
+
readonly type: "function";
|
|
2264
|
+
readonly name: "mint";
|
|
3
2265
|
readonly inputs: readonly [{
|
|
2266
|
+
readonly name: "to";
|
|
2267
|
+
readonly type: "address";
|
|
2268
|
+
readonly internalType: "address";
|
|
2269
|
+
}, {
|
|
2270
|
+
readonly name: "amount";
|
|
2271
|
+
readonly type: "uint256";
|
|
4
2272
|
readonly internalType: "uint256";
|
|
5
|
-
|
|
2273
|
+
}, {
|
|
2274
|
+
readonly name: "paymentToken";
|
|
2275
|
+
readonly type: "address";
|
|
2276
|
+
readonly internalType: "address";
|
|
2277
|
+
}, {
|
|
2278
|
+
readonly name: "maxTotal";
|
|
6
2279
|
readonly type: "uint256";
|
|
2280
|
+
readonly internalType: "uint256";
|
|
7
2281
|
}, {
|
|
2282
|
+
readonly name: "proof";
|
|
2283
|
+
readonly type: "bytes32[]";
|
|
2284
|
+
readonly internalType: "bytes32[]";
|
|
2285
|
+
}];
|
|
2286
|
+
readonly outputs: readonly [];
|
|
2287
|
+
readonly stateMutability: "payable";
|
|
2288
|
+
}, {
|
|
2289
|
+
readonly type: "function";
|
|
2290
|
+
readonly name: "renounceRole";
|
|
2291
|
+
readonly inputs: readonly [{
|
|
2292
|
+
readonly name: "role";
|
|
2293
|
+
readonly type: "bytes32";
|
|
2294
|
+
readonly internalType: "bytes32";
|
|
2295
|
+
}, {
|
|
2296
|
+
readonly name: "account";
|
|
2297
|
+
readonly type: "address";
|
|
2298
|
+
readonly internalType: "address";
|
|
2299
|
+
}];
|
|
2300
|
+
readonly outputs: readonly [];
|
|
2301
|
+
readonly stateMutability: "nonpayable";
|
|
2302
|
+
}, {
|
|
2303
|
+
readonly type: "function";
|
|
2304
|
+
readonly name: "revokeRole";
|
|
2305
|
+
readonly inputs: readonly [{
|
|
2306
|
+
readonly name: "role";
|
|
2307
|
+
readonly type: "bytes32";
|
|
2308
|
+
readonly internalType: "bytes32";
|
|
2309
|
+
}, {
|
|
2310
|
+
readonly name: "account";
|
|
2311
|
+
readonly type: "address";
|
|
2312
|
+
readonly internalType: "address";
|
|
2313
|
+
}];
|
|
2314
|
+
readonly outputs: readonly [];
|
|
2315
|
+
readonly stateMutability: "nonpayable";
|
|
2316
|
+
}, {
|
|
2317
|
+
readonly type: "function";
|
|
2318
|
+
readonly name: "saleDetails";
|
|
2319
|
+
readonly inputs: readonly [];
|
|
2320
|
+
readonly outputs: readonly [{
|
|
2321
|
+
readonly name: "";
|
|
2322
|
+
readonly type: "tuple";
|
|
2323
|
+
readonly internalType: "struct IERC721SaleFunctions.SaleDetails";
|
|
2324
|
+
readonly components: readonly [{
|
|
2325
|
+
readonly name: "supplyCap";
|
|
2326
|
+
readonly type: "uint256";
|
|
2327
|
+
readonly internalType: "uint256";
|
|
2328
|
+
}, {
|
|
2329
|
+
readonly name: "cost";
|
|
2330
|
+
readonly type: "uint256";
|
|
2331
|
+
readonly internalType: "uint256";
|
|
2332
|
+
}, {
|
|
2333
|
+
readonly name: "paymentToken";
|
|
2334
|
+
readonly type: "address";
|
|
2335
|
+
readonly internalType: "address";
|
|
2336
|
+
}, {
|
|
2337
|
+
readonly name: "startTime";
|
|
2338
|
+
readonly type: "uint64";
|
|
2339
|
+
readonly internalType: "uint64";
|
|
2340
|
+
}, {
|
|
2341
|
+
readonly name: "endTime";
|
|
2342
|
+
readonly type: "uint64";
|
|
2343
|
+
readonly internalType: "uint64";
|
|
2344
|
+
}, {
|
|
2345
|
+
readonly name: "merkleRoot";
|
|
2346
|
+
readonly type: "bytes32";
|
|
2347
|
+
readonly internalType: "bytes32";
|
|
2348
|
+
}];
|
|
2349
|
+
}];
|
|
2350
|
+
readonly stateMutability: "view";
|
|
2351
|
+
}, {
|
|
2352
|
+
readonly type: "function";
|
|
2353
|
+
readonly name: "setSaleDetails";
|
|
2354
|
+
readonly inputs: readonly [{
|
|
2355
|
+
readonly name: "supplyCap";
|
|
2356
|
+
readonly type: "uint256";
|
|
8
2357
|
readonly internalType: "uint256";
|
|
9
|
-
|
|
2358
|
+
}, {
|
|
2359
|
+
readonly name: "cost";
|
|
10
2360
|
readonly type: "uint256";
|
|
2361
|
+
readonly internalType: "uint256";
|
|
2362
|
+
}, {
|
|
2363
|
+
readonly name: "paymentToken";
|
|
2364
|
+
readonly type: "address";
|
|
2365
|
+
readonly internalType: "address";
|
|
2366
|
+
}, {
|
|
2367
|
+
readonly name: "startTime";
|
|
2368
|
+
readonly type: "uint64";
|
|
2369
|
+
readonly internalType: "uint64";
|
|
2370
|
+
}, {
|
|
2371
|
+
readonly name: "endTime";
|
|
2372
|
+
readonly type: "uint64";
|
|
2373
|
+
readonly internalType: "uint64";
|
|
2374
|
+
}, {
|
|
2375
|
+
readonly name: "merkleRoot";
|
|
2376
|
+
readonly type: "bytes32";
|
|
2377
|
+
readonly internalType: "bytes32";
|
|
2378
|
+
}];
|
|
2379
|
+
readonly outputs: readonly [];
|
|
2380
|
+
readonly stateMutability: "nonpayable";
|
|
2381
|
+
}, {
|
|
2382
|
+
readonly type: "function";
|
|
2383
|
+
readonly name: "supportsInterface";
|
|
2384
|
+
readonly inputs: readonly [{
|
|
2385
|
+
readonly name: "interfaceId";
|
|
2386
|
+
readonly type: "bytes4";
|
|
2387
|
+
readonly internalType: "bytes4";
|
|
11
2388
|
}];
|
|
12
|
-
readonly name: "royaltyInfo";
|
|
13
2389
|
readonly outputs: readonly [{
|
|
2390
|
+
readonly name: "";
|
|
2391
|
+
readonly type: "bool";
|
|
2392
|
+
readonly internalType: "bool";
|
|
2393
|
+
}];
|
|
2394
|
+
readonly stateMutability: "view";
|
|
2395
|
+
}, {
|
|
2396
|
+
readonly type: "function";
|
|
2397
|
+
readonly name: "withdrawERC20";
|
|
2398
|
+
readonly inputs: readonly [{
|
|
2399
|
+
readonly name: "token";
|
|
2400
|
+
readonly type: "address";
|
|
14
2401
|
readonly internalType: "address";
|
|
15
|
-
|
|
2402
|
+
}, {
|
|
2403
|
+
readonly name: "to";
|
|
16
2404
|
readonly type: "address";
|
|
2405
|
+
readonly internalType: "address";
|
|
17
2406
|
}, {
|
|
18
|
-
readonly
|
|
19
|
-
readonly name: "royaltyAmount";
|
|
2407
|
+
readonly name: "value";
|
|
20
2408
|
readonly type: "uint256";
|
|
2409
|
+
readonly internalType: "uint256";
|
|
21
2410
|
}];
|
|
22
|
-
readonly
|
|
2411
|
+
readonly outputs: readonly [];
|
|
2412
|
+
readonly stateMutability: "nonpayable";
|
|
2413
|
+
}, {
|
|
23
2414
|
readonly type: "function";
|
|
2415
|
+
readonly name: "withdrawETH";
|
|
2416
|
+
readonly inputs: readonly [{
|
|
2417
|
+
readonly name: "to";
|
|
2418
|
+
readonly type: "address";
|
|
2419
|
+
readonly internalType: "address";
|
|
2420
|
+
}, {
|
|
2421
|
+
readonly name: "value";
|
|
2422
|
+
readonly type: "uint256";
|
|
2423
|
+
readonly internalType: "uint256";
|
|
2424
|
+
}];
|
|
2425
|
+
readonly outputs: readonly [];
|
|
2426
|
+
readonly stateMutability: "nonpayable";
|
|
2427
|
+
}, {
|
|
2428
|
+
readonly type: "event";
|
|
2429
|
+
readonly name: "RoleAdminChanged";
|
|
2430
|
+
readonly inputs: readonly [{
|
|
2431
|
+
readonly name: "role";
|
|
2432
|
+
readonly type: "bytes32";
|
|
2433
|
+
readonly indexed: true;
|
|
2434
|
+
readonly internalType: "bytes32";
|
|
2435
|
+
}, {
|
|
2436
|
+
readonly name: "previousAdminRole";
|
|
2437
|
+
readonly type: "bytes32";
|
|
2438
|
+
readonly indexed: true;
|
|
2439
|
+
readonly internalType: "bytes32";
|
|
2440
|
+
}, {
|
|
2441
|
+
readonly name: "newAdminRole";
|
|
2442
|
+
readonly type: "bytes32";
|
|
2443
|
+
readonly indexed: true;
|
|
2444
|
+
readonly internalType: "bytes32";
|
|
2445
|
+
}];
|
|
2446
|
+
readonly anonymous: false;
|
|
2447
|
+
}, {
|
|
2448
|
+
readonly type: "event";
|
|
2449
|
+
readonly name: "RoleGranted";
|
|
2450
|
+
readonly inputs: readonly [{
|
|
2451
|
+
readonly name: "role";
|
|
2452
|
+
readonly type: "bytes32";
|
|
2453
|
+
readonly indexed: true;
|
|
2454
|
+
readonly internalType: "bytes32";
|
|
2455
|
+
}, {
|
|
2456
|
+
readonly name: "account";
|
|
2457
|
+
readonly type: "address";
|
|
2458
|
+
readonly indexed: true;
|
|
2459
|
+
readonly internalType: "address";
|
|
2460
|
+
}, {
|
|
2461
|
+
readonly name: "sender";
|
|
2462
|
+
readonly type: "address";
|
|
2463
|
+
readonly indexed: true;
|
|
2464
|
+
readonly internalType: "address";
|
|
2465
|
+
}];
|
|
2466
|
+
readonly anonymous: false;
|
|
2467
|
+
}, {
|
|
2468
|
+
readonly type: "event";
|
|
2469
|
+
readonly name: "RoleRevoked";
|
|
2470
|
+
readonly inputs: readonly [{
|
|
2471
|
+
readonly name: "role";
|
|
2472
|
+
readonly type: "bytes32";
|
|
2473
|
+
readonly indexed: true;
|
|
2474
|
+
readonly internalType: "bytes32";
|
|
2475
|
+
}, {
|
|
2476
|
+
readonly name: "account";
|
|
2477
|
+
readonly type: "address";
|
|
2478
|
+
readonly indexed: true;
|
|
2479
|
+
readonly internalType: "address";
|
|
2480
|
+
}, {
|
|
2481
|
+
readonly name: "sender";
|
|
2482
|
+
readonly type: "address";
|
|
2483
|
+
readonly indexed: true;
|
|
2484
|
+
readonly internalType: "address";
|
|
2485
|
+
}];
|
|
2486
|
+
readonly anonymous: false;
|
|
2487
|
+
}, {
|
|
2488
|
+
readonly type: "event";
|
|
2489
|
+
readonly name: "SaleDetailsUpdated";
|
|
2490
|
+
readonly inputs: readonly [{
|
|
2491
|
+
readonly name: "supplyCap";
|
|
2492
|
+
readonly type: "uint256";
|
|
2493
|
+
readonly indexed: false;
|
|
2494
|
+
readonly internalType: "uint256";
|
|
2495
|
+
}, {
|
|
2496
|
+
readonly name: "cost";
|
|
2497
|
+
readonly type: "uint256";
|
|
2498
|
+
readonly indexed: false;
|
|
2499
|
+
readonly internalType: "uint256";
|
|
2500
|
+
}, {
|
|
2501
|
+
readonly name: "paymentToken";
|
|
2502
|
+
readonly type: "address";
|
|
2503
|
+
readonly indexed: false;
|
|
2504
|
+
readonly internalType: "address";
|
|
2505
|
+
}, {
|
|
2506
|
+
readonly name: "startTime";
|
|
2507
|
+
readonly type: "uint64";
|
|
2508
|
+
readonly indexed: false;
|
|
2509
|
+
readonly internalType: "uint64";
|
|
2510
|
+
}, {
|
|
2511
|
+
readonly name: "endTime";
|
|
2512
|
+
readonly type: "uint64";
|
|
2513
|
+
readonly indexed: false;
|
|
2514
|
+
readonly internalType: "uint64";
|
|
2515
|
+
}, {
|
|
2516
|
+
readonly name: "merkleRoot";
|
|
2517
|
+
readonly type: "bytes32";
|
|
2518
|
+
readonly indexed: false;
|
|
2519
|
+
readonly internalType: "bytes32";
|
|
2520
|
+
}];
|
|
2521
|
+
readonly anonymous: false;
|
|
2522
|
+
}, {
|
|
2523
|
+
readonly type: "error";
|
|
2524
|
+
readonly name: "InsufficientPayment";
|
|
2525
|
+
readonly inputs: readonly [{
|
|
2526
|
+
readonly name: "currency";
|
|
2527
|
+
readonly type: "address";
|
|
2528
|
+
readonly internalType: "address";
|
|
2529
|
+
}, {
|
|
2530
|
+
readonly name: "expected";
|
|
2531
|
+
readonly type: "uint256";
|
|
2532
|
+
readonly internalType: "uint256";
|
|
2533
|
+
}, {
|
|
2534
|
+
readonly name: "actual";
|
|
2535
|
+
readonly type: "uint256";
|
|
2536
|
+
readonly internalType: "uint256";
|
|
2537
|
+
}];
|
|
2538
|
+
}, {
|
|
2539
|
+
readonly type: "error";
|
|
2540
|
+
readonly name: "InsufficientSupply";
|
|
2541
|
+
readonly inputs: readonly [{
|
|
2542
|
+
readonly name: "currentSupply";
|
|
2543
|
+
readonly type: "uint256";
|
|
2544
|
+
readonly internalType: "uint256";
|
|
2545
|
+
}, {
|
|
2546
|
+
readonly name: "amount";
|
|
2547
|
+
readonly type: "uint256";
|
|
2548
|
+
readonly internalType: "uint256";
|
|
2549
|
+
}, {
|
|
2550
|
+
readonly name: "maxSupply";
|
|
2551
|
+
readonly type: "uint256";
|
|
2552
|
+
readonly internalType: "uint256";
|
|
2553
|
+
}];
|
|
2554
|
+
}, {
|
|
2555
|
+
readonly type: "error";
|
|
2556
|
+
readonly name: "InvalidInitialization";
|
|
2557
|
+
readonly inputs: readonly [];
|
|
2558
|
+
}, {
|
|
2559
|
+
readonly type: "error";
|
|
2560
|
+
readonly name: "InvalidSaleDetails";
|
|
2561
|
+
readonly inputs: readonly [];
|
|
2562
|
+
}, {
|
|
2563
|
+
readonly type: "error";
|
|
2564
|
+
readonly name: "MerkleProofInvalid";
|
|
2565
|
+
readonly inputs: readonly [{
|
|
2566
|
+
readonly name: "root";
|
|
2567
|
+
readonly type: "bytes32";
|
|
2568
|
+
readonly internalType: "bytes32";
|
|
2569
|
+
}, {
|
|
2570
|
+
readonly name: "proof";
|
|
2571
|
+
readonly type: "bytes32[]";
|
|
2572
|
+
readonly internalType: "bytes32[]";
|
|
2573
|
+
}, {
|
|
2574
|
+
readonly name: "addr";
|
|
2575
|
+
readonly type: "address";
|
|
2576
|
+
readonly internalType: "address";
|
|
2577
|
+
}, {
|
|
2578
|
+
readonly name: "salt";
|
|
2579
|
+
readonly type: "bytes32";
|
|
2580
|
+
readonly internalType: "bytes32";
|
|
2581
|
+
}];
|
|
2582
|
+
}, {
|
|
2583
|
+
readonly type: "error";
|
|
2584
|
+
readonly name: "SaleInactive";
|
|
2585
|
+
readonly inputs: readonly [];
|
|
2586
|
+
}, {
|
|
2587
|
+
readonly type: "error";
|
|
2588
|
+
readonly name: "WithdrawFailed";
|
|
2589
|
+
readonly inputs: readonly [];
|
|
24
2590
|
}];
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
2591
|
+
/**
|
|
2592
|
+
* Get the appropriate marketplace ABI based on version
|
|
2593
|
+
*/
|
|
2594
|
+
declare const getMarketplaceABI: (version: "v1" | "v2") => readonly [{
|
|
28
2595
|
readonly inputs: readonly [{
|
|
29
2596
|
readonly internalType: "address";
|
|
30
2597
|
readonly name: "_owner";
|
|
@@ -725,10 +3292,7 @@ declare const SequenceMarketplaceV1_ABI: readonly [{
|
|
|
725
3292
|
readonly outputs: readonly [];
|
|
726
3293
|
readonly stateMutability: "nonpayable";
|
|
727
3294
|
readonly type: "function";
|
|
728
|
-
}]
|
|
729
|
-
//#endregion
|
|
730
|
-
//#region src/utils/abi/marketplace/sequence-marketplace-v2.d.ts
|
|
731
|
-
declare const SequenceMarketplaceV2_ABI: ({
|
|
3295
|
+
}] | ({
|
|
732
3296
|
type: string;
|
|
733
3297
|
inputs: never[];
|
|
734
3298
|
stateMutability: string;
|
|
@@ -805,5 +3369,58 @@ declare const SequenceMarketplaceV2_ABI: ({
|
|
|
805
3369
|
anonymous?: undefined;
|
|
806
3370
|
})[];
|
|
807
3371
|
//#endregion
|
|
808
|
-
|
|
3372
|
+
//#region src/utils/abi/mainModule.d.ts
|
|
3373
|
+
declare const MAIN_MODULE_ABI: ({
|
|
3374
|
+
type: string;
|
|
3375
|
+
name: string;
|
|
3376
|
+
constant: boolean;
|
|
3377
|
+
inputs: {
|
|
3378
|
+
type: string;
|
|
3379
|
+
}[];
|
|
3380
|
+
outputs: {
|
|
3381
|
+
type: string;
|
|
3382
|
+
}[];
|
|
3383
|
+
payable: boolean;
|
|
3384
|
+
stateMutability: string;
|
|
3385
|
+
} | {
|
|
3386
|
+
type: string;
|
|
3387
|
+
name: string;
|
|
3388
|
+
constant: boolean;
|
|
3389
|
+
inputs: ({
|
|
3390
|
+
components: {
|
|
3391
|
+
type: string;
|
|
3392
|
+
name: string;
|
|
3393
|
+
}[];
|
|
3394
|
+
type: string;
|
|
3395
|
+
} | {
|
|
3396
|
+
type: string;
|
|
3397
|
+
components?: undefined;
|
|
3398
|
+
})[];
|
|
3399
|
+
outputs: never[];
|
|
3400
|
+
payable: boolean;
|
|
3401
|
+
stateMutability: string;
|
|
3402
|
+
} | {
|
|
3403
|
+
type: string;
|
|
3404
|
+
name: string;
|
|
3405
|
+
inputs: {
|
|
3406
|
+
type: string;
|
|
3407
|
+
}[];
|
|
3408
|
+
payable: boolean;
|
|
3409
|
+
stateMutability: string;
|
|
3410
|
+
constant?: undefined;
|
|
3411
|
+
outputs?: undefined;
|
|
3412
|
+
} | {
|
|
3413
|
+
type: string;
|
|
3414
|
+
name: string;
|
|
3415
|
+
constant: boolean;
|
|
3416
|
+
inputs: {
|
|
3417
|
+
type: string;
|
|
3418
|
+
name: string;
|
|
3419
|
+
}[];
|
|
3420
|
+
outputs: never[];
|
|
3421
|
+
payable: boolean;
|
|
3422
|
+
stateMutability: string;
|
|
3423
|
+
})[];
|
|
3424
|
+
//#endregion
|
|
3425
|
+
export { useSalesContractABI as a, SalesContractVersion as i, getMarketplaceABI as n, getSaleContractABI as r, MAIN_MODULE_ABI as t };
|
|
809
3426
|
//# sourceMappingURL=index4.d.ts.map
|