@0xsequence/marketplace-sdk 1.2.0 → 2.0.0
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 +192 -1
- package/compile-tailwind.js +1 -1
- package/dist/BellIcon.js +48 -0
- package/dist/BellIcon.js.map +1 -0
- package/dist/Card.js +831 -0
- package/dist/Card.js.map +1 -0
- package/dist/ShopCard.d.ts +83 -0
- package/dist/_internal.js +78 -0
- package/dist/_internal.js.map +1 -0
- package/dist/abi.js +157 -0
- package/dist/abi.js.map +1 -0
- package/dist/alertMessage.js +29 -0
- package/dist/alertMessage.js.map +1 -0
- package/dist/alien_swap.js +6 -0
- package/dist/alien_swap.js.map +1 -0
- package/dist/api.js +187 -0
- package/dist/api.js.map +1 -0
- package/dist/aqua-xyz.js +6 -0
- package/dist/aqua-xyz.js.map +1 -0
- package/dist/aura.js +6 -0
- package/dist/aura.js.map +1 -0
- package/dist/blur.js +6 -0
- package/dist/blur.js.map +1 -0
- package/dist/builder-api.js +41 -0
- package/dist/builder-api.js.map +1 -0
- 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/coinbase.js +6 -0
- package/dist/coinbase.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/config.js +75 -0
- 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 +116 -0
- package/dist/contracts.js.map +1 -0
- package/dist/create-config.d.ts +12255 -0
- package/dist/create-config.js +170 -0
- package/dist/create-config.js.map +1 -0
- 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/element.js +6 -0
- package/dist/element.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 +29 -0
- package/dist/foundation.js +6 -0
- package/dist/foundation.js.map +1 -0
- 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 +13 -16
- package/dist/index10.d.ts +61 -0
- package/dist/index11.d.ts +639 -0
- package/dist/index12.d.ts +563 -0
- package/dist/index13.d.ts +19 -0
- package/dist/index14.d.ts +19 -0
- package/dist/index15.d.ts +25 -0
- package/dist/index16.d.ts +8 -0
- package/dist/index17.d.ts +853 -0
- package/dist/index18.d.ts +552 -0
- package/dist/index19.d.ts +338 -0
- package/dist/index2.d.ts +2174 -0
- package/dist/index21.d.ts +319 -0
- package/dist/index22.d.ts +230 -0
- package/dist/index23.d.ts +516 -0
- package/dist/index24.d.ts +24 -0
- package/dist/index26.d.ts +27 -0
- package/dist/index27.d.ts +25 -0
- package/dist/index28.d.ts +115 -0
- package/dist/index3.d.ts +2216 -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 +135 -0
- package/dist/index38.d.ts +85 -0
- package/dist/index39.d.ts +91 -0
- package/dist/index4.d.ts +3426 -0
- package/dist/index40.d.ts +46 -0
- package/dist/index5.d.ts +809 -0
- package/dist/index6.d.ts +2541 -0
- package/dist/index7.d.ts +1803 -0
- package/dist/index8.d.ts +121 -0
- package/dist/index9.d.ts +47 -0
- package/dist/inventory.d.ts +46 -0
- package/dist/inventory.js +91 -0
- package/dist/inventory.js.map +1 -0
- package/dist/looks-rare.js +6 -0
- package/dist/looks-rare.js.map +1 -0
- package/dist/magic-eden.js +6 -0
- package/dist/magic-eden.js.map +1 -0
- package/dist/manifold.js +6 -0
- package/dist/manifold.js.map +1 -0
- package/dist/marketplace-logos.js +50 -0
- package/dist/marketplace-logos.js.map +1 -0
- package/dist/marketplace.js +1913 -0
- package/dist/marketplace.js.map +1 -0
- package/dist/marketplace2.js +70 -0
- package/dist/marketplace2.js.map +1 -0
- package/dist/metadata.d.ts +733 -0
- package/dist/mintify.js +6 -0
- package/dist/mintify.js.map +1 -0
- package/dist/network.js +15 -0
- package/dist/network.js.map +1 -0
- package/dist/networkconfigToWagmiChain.js +16 -0
- package/dist/networkconfigToWagmiChain.js.map +1 -0
- package/dist/nftx.js +6 -0
- package/dist/nftx.js.map +1 -0
- package/dist/okx.js +6 -0
- package/dist/okx.js.map +1 -0
- package/dist/open-sea.js +6 -0
- package/dist/open-sea.js.map +1 -0
- package/dist/primary-sale-checkout-options.d.ts +29 -0
- package/dist/primary-sale.js +3048 -0
- package/dist/primary-sale.js.map +1 -0
- package/dist/quantityInput.js +93 -0
- package/dist/quantityInput.js.map +1 -0
- package/dist/ranges.d.ts +125 -0
- package/dist/rarible.js +6 -0
- package/dist/rarible.js.map +1 -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 +6 -11
- package/dist/react/_internal/wagmi/index.d.ts +4 -1
- package/dist/react/_internal/wagmi/index.js +2 -5
- 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 +9 -8
- 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 +47 -37
- 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 +6 -3
- 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 +11 -5
- 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 +6 -37
- package/dist/react/hooks/utils/index.js +5 -38
- package/dist/react/index.d.ts +47 -37
- package/dist/react/index.js +20 -38
- 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 +23 -24
- package/dist/react/queries/index.js +11 -30
- package/dist/react/queries/inventory/index.d.ts +7 -3
- 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 +13 -25
- package/dist/react/ssr/index.js +13 -36
- 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 +45 -5
- package/dist/react/ui/components/marketplace-collectible-card/index.js +6 -38
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.d.ts +6 -3
- 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/components/marketplace-logos/index.js +1 -1
- 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 +45 -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 +16224 -0
- package/dist/react.js.map +1 -0
- package/dist/sequence.js +6 -0
- package/dist/sequence.js.map +1 -0
- 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 +2040 -375
- package/dist/sudo-swap.js +6 -0
- package/dist/sudo-swap.js.map +1 -0
- package/dist/super-rare.js +6 -0
- package/dist/super-rare.js.map +1 -0
- 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/token.js +2091 -0
- package/dist/token.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 +70 -0
- package/dist/transaction.js.map +1 -0
- 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 +88 -0
- package/dist/types.js +41 -0
- package/dist/types.js.map +1 -0
- 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 +5 -5
- package/dist/utils/abi/marketplace/index.d.ts +1 -1
- package/dist/utils/abi/marketplace/index.js +1 -1
- package/dist/utils/abi/primary-sale/index.d.ts +1 -1
- package/dist/utils/abi/primary-sale/index.js +1 -1
- package/dist/utils/abi/token/index.d.ts +1 -1
- package/dist/utils/abi/token/index.js +1 -1
- package/dist/utils/index.d.ts +9 -7
- package/dist/utils/index.js +9 -13
- package/dist/utils.js +230 -0
- package/dist/utils.js.map +1 -0
- package/dist/utils2.js +76 -0
- package/dist/utils2.js.map +1 -0
- package/dist/waas-types.d.ts +19 -0
- package/dist/wagmi.js +0 -0
- package/dist/x2y2.js +6 -0
- package/dist/x2y2.js.map +1 -0
- package/dist/xstate-store.cjs.d.ts +18 -0
- package/dist/zora.js +6 -0
- package/dist/zora.js.map +1 -0
- package/eslint/sequence-types.js +1069 -0
- package/eslint.config.mjs +337 -9
- package/image.d.ts +5 -0
- package/package.json +52 -50
- 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 +22 -7
- package/src/react/hooks/_deprecated/index.ts +61 -0
- package/src/react/hooks/checkout/index.ts +1 -0
- package/src/react/hooks/checkout/primary-sale-checkout-options.test.tsx +206 -0
- package/src/react/hooks/checkout/primary-sale-checkout-options.tsx +111 -0
- package/src/react/hooks/collectible/balance.test.tsx +149 -0
- package/src/react/hooks/collectible/balance.tsx +39 -0
- package/src/react/hooks/collectible/erc721-sale-details.tsx +184 -0
- package/src/react/hooks/collectible/index.ts +16 -0
- package/src/react/hooks/collectible/market-count.test.tsx +133 -0
- package/src/react/hooks/collectible/market-count.tsx +75 -0
- package/src/react/hooks/collectible/market-highest-offer.test.tsx +112 -0
- package/src/react/hooks/collectible/market-highest-offer.tsx +74 -0
- package/src/react/hooks/collectible/market-list-paginated.test.tsx +211 -0
- package/src/react/hooks/collectible/market-list-paginated.tsx +109 -0
- package/src/react/hooks/collectible/market-list.test.tsx +243 -0
- package/src/react/hooks/collectible/market-list.tsx +79 -0
- package/src/react/hooks/collectible/market-listings-count.test.tsx +110 -0
- package/src/react/hooks/collectible/market-listings-count.tsx +75 -0
- package/src/react/hooks/collectible/market-listings.test.tsx +140 -0
- package/src/react/hooks/collectible/market-listings.tsx +99 -0
- package/src/react/hooks/collectible/market-lowest-listing.test.tsx +157 -0
- package/src/react/hooks/collectible/market-lowest-listing.tsx +74 -0
- package/src/react/hooks/collectible/market-offers-count.test.tsx +110 -0
- package/src/react/hooks/collectible/market-offers-count.tsx +75 -0
- package/src/react/hooks/collectible/market-offers.test.tsx +139 -0
- package/src/react/hooks/collectible/market-offers.tsx +79 -0
- package/src/react/hooks/collectible/metadata.test.tsx +119 -0
- package/src/react/hooks/collectible/metadata.tsx +72 -0
- package/src/react/hooks/collectible/primary-sale-item.test.tsx +503 -0
- package/src/react/hooks/collectible/primary-sale-item.tsx +69 -0
- 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/collectible/primary-sale-items.tsx +66 -0
- package/src/react/hooks/collectible/token-balances.test.tsx +175 -0
- package/src/react/hooks/collectible/token-balances.tsx +38 -0
- package/src/react/hooks/collection/__snapshots__/list.test.tsx.snap +303 -0
- package/src/react/hooks/collection/balance-details.test.tsx +163 -0
- package/src/react/hooks/collection/balance-details.tsx +106 -0
- package/src/react/hooks/collection/index.ts +11 -0
- package/src/react/hooks/collection/list.test.tsx +111 -0
- package/src/react/hooks/collection/list.tsx +80 -0
- package/src/react/hooks/collection/market-detail-polling.test.tsx +146 -0
- package/src/react/hooks/collection/market-detail-polling.tsx +65 -0
- package/src/react/hooks/collection/market-filtered-count.test.tsx +121 -0
- package/src/react/hooks/collection/market-filtered-count.tsx +39 -0
- package/src/react/hooks/collection/market-floor.test.tsx +104 -0
- package/src/react/hooks/collection/market-floor.tsx +74 -0
- package/src/react/hooks/collection/market-items-count.test.tsx +121 -0
- package/src/react/hooks/collection/market-items-count.tsx +90 -0
- package/src/react/hooks/collection/market-items-paginated.test.tsx +142 -0
- package/src/react/hooks/collection/market-items-paginated.tsx +110 -0
- package/src/react/hooks/collection/market-items.test.tsx +184 -0
- package/src/react/hooks/collection/market-items.tsx +95 -0
- package/src/react/hooks/collection/metadata.test.tsx +103 -0
- package/src/react/hooks/collection/metadata.tsx +75 -0
- package/src/react/hooks/collection/useCollectionActiveListingsCurrencies.test.tsx +150 -0
- package/src/react/hooks/collection/useCollectionActiveListingsCurrencies.tsx +74 -0
- package/src/react/hooks/collection/useCollectionActiveOffersCurrencies.test.tsx +150 -0
- package/src/react/hooks/collection/useCollectionActiveOffersCurrencies.tsx +74 -0
- 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/currency/compare-prices.test.tsx +221 -0
- package/src/react/hooks/currency/compare-prices.tsx +104 -0
- package/src/react/hooks/currency/convert-to-usd.test.tsx +173 -0
- package/src/react/hooks/currency/convert-to-usd.tsx +96 -0
- package/src/react/hooks/currency/currency.test.tsx +131 -0
- package/src/react/hooks/currency/currency.tsx +65 -0
- package/src/react/hooks/currency/index.ts +4 -0
- package/src/react/hooks/currency/list.test.tsx +191 -0
- package/src/react/hooks/currency/list.tsx +65 -0
- 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/inventory/inventory.test.tsx +160 -0
- package/src/react/hooks/inventory/inventory.tsx +17 -0
- package/src/react/hooks/token/balances.test.tsx +111 -0
- package/src/react/hooks/token/balances.tsx +59 -0
- package/src/react/hooks/token/currency-balance.test.tsx +83 -0
- package/src/react/hooks/token/currency-balance.tsx +151 -0
- package/src/react/hooks/token/index.ts +5 -0
- package/src/react/hooks/token/metadata-search.test.tsx +292 -0
- package/src/react/hooks/token/metadata-search.tsx +192 -0
- package/src/react/hooks/token/metadata.test.tsx +140 -0
- package/src/react/hooks/token/metadata.tsx +73 -0
- package/src/react/hooks/token/ranges.test.tsx +112 -0
- package/src/react/hooks/token/ranges.tsx +93 -0
- 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 +89 -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/ui/card-data/market-card-data.test.tsx +299 -0
- package/src/react/hooks/ui/card-data/market-card-data.tsx +178 -0
- package/src/react/hooks/ui/card-data/primary-sale-1155-card-data.tsx +89 -0
- package/src/react/hooks/ui/card-data/primary-sale-721-card-data.tsx +227 -0
- 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/url-state/filter-state.tsx +264 -0
- 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 +116 -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 +100 -0
- package/src/react/queries/index.ts +6 -7
- package/src/react/queries/inventory/inventory.ts +139 -91
- package/src/react/queries/marketplace/config.ts +85 -0
- package/src/react/queries/marketplace/filters.ts +139 -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/marketplace-collectible-card/ActionButton/ActionButton.stories.tsx +293 -0
- package/src/react/ui/components/marketplace-collectible-card/ActionButton/ActionButton.tsx +114 -0
- package/src/react/ui/components/marketplace-collectible-card/ActionButton/__tests__/ActionButtonBody.test.tsx +106 -0
- package/src/react/ui/components/marketplace-collectible-card/ActionButton/__tests__/NonOwnerActions.test.tsx +70 -0
- package/src/react/ui/components/marketplace-collectible-card/ActionButton/__tests__/OwnerActions.test.tsx +68 -0
- package/src/react/ui/components/marketplace-collectible-card/ActionButton/__tests__/useActionButtonLogic.test.tsx +101 -0
- package/src/react/ui/components/marketplace-collectible-card/ActionButton/components/ActionButtonBody.tsx +57 -0
- package/src/react/ui/components/marketplace-collectible-card/ActionButton/components/NonOwnerActions.tsx +136 -0
- package/src/react/ui/components/marketplace-collectible-card/ActionButton/components/OwnerActions.tsx +91 -0
- package/src/react/ui/components/marketplace-collectible-card/ActionButton/hooks/useActionButtonLogic.ts +97 -0
- package/src/react/ui/components/marketplace-collectible-card/ActionButton/index.ts +1 -0
- package/src/react/ui/components/marketplace-collectible-card/ActionButton/store.ts +85 -0
- 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 +161 -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/sequence-checkout/ERC1155QuantityModal.tsx +197 -0
- package/src/react/ui/modals/BuyModal/components/sequence-checkout/SequenceCheckoutNew.tsx +161 -0
- package/src/react/ui/modals/BuyModal/components/sequence-checkout/usePaymentModalParams.ts +204 -0
- package/src/react/ui/modals/BuyModal/components/types.ts +6 -5
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC1155SalePaymentParams.test.tsx +369 -0
- package/src/react/ui/modals/BuyModal/hooks/useBuyModalData.ts +151 -0
- package/src/react/ui/modals/BuyModal/hooks/useERC1155SalePaymentParams.ts +244 -0
- 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 +2 -2
- 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 +150 -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 +453 -0
- package/src/react/ui/modals/MakeOfferModal/internal/helpers/validation.ts +99 -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 +150 -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 +76 -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 -97
- 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 +91 -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 +66 -66
- 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 +11 -7
- 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 +2036 -374
- 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/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/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 +13 -3
- package/dist/BellIcon-DMKEumAz.js +0 -45
- package/dist/BellIcon-DMKEumAz.js.map +0 -1
- package/dist/CartIcon-UyB4NYKt.js +0 -102
- package/dist/CartIcon-UyB4NYKt.js.map +0 -1
- package/dist/CollectibleCard-z05qWzKE.d.ts +0 -8
- package/dist/_internal-DkS2VUn5.js +0 -22
- package/dist/_internal-DkS2VUn5.js.map +0 -1
- package/dist/abi-fa-o9gH3.js +0 -134
- package/dist/abi-fa-o9gH3.js.map +0 -1
- package/dist/alien_swap-Cq8LuElo.js +0 -6
- package/dist/alien_swap-Cq8LuElo.js.map +0 -1
- package/dist/api-GwTR0dBA.js +0 -210
- package/dist/api-GwTR0dBA.js.map +0 -1
- package/dist/aqua-xyz-0yye_c-Z.js +0 -6
- package/dist/aqua-xyz-0yye_c-Z.js.map +0 -1
- package/dist/aura-TaxFvTFQ.js +0 -6
- package/dist/aura-TaxFvTFQ.js.map +0 -1
- package/dist/blur-BupOTobO.js +0 -6
- package/dist/blur-BupOTobO.js.map +0 -1
- package/dist/builder-api-m4JAA6ee.js +0 -28
- package/dist/builder-api-m4JAA6ee.js.map +0 -1
- package/dist/builder.gen--XD71cNL.js +0 -303
- package/dist/builder.gen--XD71cNL.js.map +0 -1
- package/dist/coinbase-DTgZ4wDT.js +0 -6
- package/dist/coinbase-DTgZ4wDT.js.map +0 -1
- package/dist/collectibles-CZ6i8sXK.js +0 -324
- package/dist/collectibles-CZ6i8sXK.js.map +0 -1
- package/dist/collections-5NcU-7ZR.js +0 -331
- package/dist/collections-5NcU-7ZR.js.map +0 -1
- package/dist/components-CY8kx2kb.js +0 -123
- package/dist/components-CY8kx2kb.js.map +0 -1
- package/dist/contracts-DRJHF89h.js +0 -97
- package/dist/contracts-DRJHF89h.js.map +0 -1
- package/dist/create-config-BxyfYCEk.js +0 -172
- package/dist/create-config-BxyfYCEk.js.map +0 -1
- package/dist/create-config-CFBeD8CB.d.ts +0 -2019
- package/dist/element-D4dDznlu.js +0 -6
- package/dist/element-D4dDznlu.js.map +0 -1
- package/dist/filters-B5niI_fX.d.ts +0 -60
- package/dist/foundation-GHZOKAzN.js +0 -6
- package/dist/foundation-GHZOKAzN.js.map +0 -1
- package/dist/index-8scPf0CS.d.ts +0 -55
- package/dist/index-9qsplZ8r.d.ts +0 -18
- package/dist/index-BIuYTMc2.d.ts +0 -122
- package/dist/index-BNrz99xy.d.ts +0 -24
- package/dist/index-BYQOPS8e.d.ts +0 -1003
- package/dist/index-BkZ7SPLc.d.ts +0 -288
- package/dist/index-BnUku_aF.d.ts +0 -808
- package/dist/index-BtDAHMW_.d.ts +0 -50
- package/dist/index-C-c_M_sE.d.ts +0 -107
- package/dist/index-CNIiC8Z_.d.ts +0 -67
- package/dist/index-CbERNN3s.d.ts +0 -505
- package/dist/index-CsfxsN0t.d.ts +0 -61
- package/dist/index-DASjaiJL.d.ts +0 -406
- package/dist/index-DD7Vc4cE.d.ts +0 -809
- package/dist/index-DIc8OqWV.d.ts +0 -152
- package/dist/index-DVI_vggD.d.ts +0 -171
- package/dist/index-DqxQeYT2.d.ts +0 -450
- package/dist/index-Dsf9FRtr.d.ts +0 -121
- package/dist/index-DxAReMEO.d.ts +0 -357
- package/dist/index-UXRoZmd_.d.ts +0 -70
- package/dist/index-isFvc5gd.d.ts +0 -2541
- package/dist/index-j3nuJWyJ.d.ts +0 -139
- package/dist/index-nVb7o0hc.d.ts +0 -7
- package/dist/index-pbE88Tt7.d.ts +0 -1803
- package/dist/inventory--t6Zu55O.js +0 -75
- package/dist/inventory--t6Zu55O.js.map +0 -1
- package/dist/listCollectiblesPaginated-BlE5mSzh.d.ts +0 -327
- package/dist/listCollections-DWyqFSQ3.d.ts +0 -828
- package/dist/looks-rare-2HBhMpOf.js +0 -6
- package/dist/looks-rare-2HBhMpOf.js.map +0 -1
- package/dist/lowestListing-DsunDO1c.d.ts +0 -475
- package/dist/magic-eden-BYdTp-uk.js +0 -6
- package/dist/magic-eden-BYdTp-uk.js.map +0 -1
- package/dist/manifold-yE0x6ZmO.js +0 -6
- package/dist/manifold-yE0x6ZmO.js.map +0 -1
- package/dist/market-DuBpFsDg.js +0 -219
- package/dist/market-DuBpFsDg.js.map +0 -1
- package/dist/marketCurrencies-BgwmbGFk.d.ts +0 -164
- package/dist/marketCurrencies-Bolonndy.js +0 -59
- package/dist/marketCurrencies-Bolonndy.js.map +0 -1
- package/dist/marketplace-NQB-sEQL.js +0 -1913
- package/dist/marketplace-NQB-sEQL.js.map +0 -1
- package/dist/marketplace-logos-Cz9RrtQo.js +0 -50
- package/dist/marketplace-logos-Cz9RrtQo.js.map +0 -1
- package/dist/marketplace.gen-906FrJQJ.js +0 -1147
- package/dist/marketplace.gen-906FrJQJ.js.map +0 -1
- package/dist/marketplaceConfig-Bqjo7NYO.js +0 -85
- package/dist/marketplaceConfig-Bqjo7NYO.js.map +0 -1
- package/dist/mintify-BXQx3mZB.js +0 -6
- package/dist/mintify-BXQx3mZB.js.map +0 -1
- package/dist/network-DwdZ_5-7.js +0 -15
- package/dist/network-DwdZ_5-7.js.map +0 -1
- package/dist/networkconfigToWagmiChain-Ct-hGq8M.js +0 -16
- package/dist/networkconfigToWagmiChain-Ct-hGq8M.js.map +0 -1
- package/dist/nftx-B929_3Ce.js +0 -6
- package/dist/nftx-B929_3Ce.js.map +0 -1
- package/dist/okx-sZ0-Udny.js +0 -6
- package/dist/okx-sZ0-Udny.js.map +0 -1
- package/dist/open-sea-DO9PhTrz.js +0 -6
- package/dist/open-sea-DO9PhTrz.js.map +0 -1
- package/dist/orders-DH76ym2e.js +0 -469
- package/dist/orders-DH76ym2e.js.map +0 -1
- package/dist/primary-sale-1u4QlPdA.js +0 -3048
- package/dist/primary-sale-1u4QlPdA.js.map +0 -1
- package/dist/primary-sales-CECrqatg.js +0 -156
- package/dist/primary-sales-CECrqatg.js.map +0 -1
- package/dist/query-brXxOcH0.d.ts +0 -31
- package/dist/rarible-Ccb2hs7y.js +0 -6
- package/dist/rarible-Ccb2hs7y.js.map +0 -1
- package/dist/react/hooks/data/collectibles/index.d.ts +0 -11
- 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 -12
- package/dist/react/hooks/data/market/index.js +0 -39
- package/dist/react/hooks/data/orders/index.d.ts +0 -11
- 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 -11
- 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 -11
- 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/react-CBsgOdVP.js +0 -13476
- package/dist/react-CBsgOdVP.js.map +0 -1
- package/dist/sequence-CRdb1yEs.js +0 -6
- package/dist/sequence-CRdb1yEs.js.map +0 -1
- package/dist/src-Dz2CfBL0.js +0 -8
- package/dist/src-Dz2CfBL0.js.map +0 -1
- package/dist/sudo-swap-BIklG2gq.js +0 -6
- package/dist/sudo-swap-BIklG2gq.js.map +0 -1
- package/dist/super-rare-h8645_5E.js +0 -6
- package/dist/super-rare-h8645_5E.js.map +0 -1
- package/dist/token-Cv7l2ZaL.js +0 -2091
- package/dist/token-Cv7l2ZaL.js.map +0 -1
- package/dist/tokenBalances-CouzNX4j.js +0 -57
- package/dist/tokenBalances-CouzNX4j.js.map +0 -1
- package/dist/tokenSupplies-C3zJll0M.d.ts +0 -265
- package/dist/tokens-BvIRUCGG.js +0 -225
- package/dist/tokens-BvIRUCGG.js.map +0 -1
- package/dist/transaction-DZUW5RHu.js +0 -76
- package/dist/transaction-DZUW5RHu.js.map +0 -1
- package/dist/types-B_-cnkcP.js +0 -13
- package/dist/types-B_-cnkcP.js.map +0 -1
- package/dist/types-CMDwfhfR.d.ts +0 -78
- package/dist/utils-9ToOvt-c.js +0 -235
- package/dist/utils-9ToOvt-c.js.map +0 -1
- package/dist/utils-B6di6O-C.js +0 -43
- package/dist/utils-B6di6O-C.js.map +0 -1
- package/dist/utils-BCYTEOvy.js +0 -122
- package/dist/utils-BCYTEOvy.js.map +0 -1
- package/dist/waitForTransactionReceipt-CbSeUSXe.js +0 -26
- package/dist/waitForTransactionReceipt-CbSeUSXe.js.map +0 -1
- package/dist/x2y2-OvF__ugj.js +0 -6
- package/dist/x2y2-OvF__ugj.js.map +0 -1
- package/dist/zora-DzCeu-eE.js +0 -6
- package/dist/zora-DzCeu-eE.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/useBalanceOfCollectible.test.tsx +0 -141
- package/src/react/hooks/data/collectibles/useBalanceOfCollectible.tsx +0 -39
- package/src/react/hooks/data/collectibles/useCollectible.test.tsx +0 -117
- package/src/react/hooks/data/collectibles/useCollectible.tsx +0 -69
- package/src/react/hooks/data/collectibles/useCountOfCollectables.test.tsx +0 -128
- package/src/react/hooks/data/collectibles/useCountOfCollectables.tsx +0 -70
- 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/collectibles/useListCollectibles.test.tsx +0 -231
- package/src/react/hooks/data/collectibles/useListCollectibles.tsx +0 -78
- package/src/react/hooks/data/collectibles/useListCollectiblesPaginated.test.tsx +0 -211
- package/src/react/hooks/data/collectibles/useListCollectiblesPaginated.tsx +0 -107
- package/src/react/hooks/data/collectibles/useTokenBalances.test.tsx +0 -151
- package/src/react/hooks/data/collectibles/useTokenBalances.tsx +0 -38
- package/src/react/hooks/data/collections/__snapshots__/useListCollections.test.tsx.snap +0 -303
- package/src/react/hooks/data/collections/index.ts +0 -8
- package/src/react/hooks/data/collections/useCollection.test.tsx +0 -98
- package/src/react/hooks/data/collections/useCollection.tsx +0 -66
- package/src/react/hooks/data/collections/useCollectionActiveListingsCurrencies.test.tsx +0 -112
- package/src/react/hooks/data/collections/useCollectionActiveListingsCurrencies.tsx +0 -74
- package/src/react/hooks/data/collections/useCollectionActiveOffersCurrencies.test.tsx +0 -110
- package/src/react/hooks/data/collections/useCollectionActiveOffersCurrencies.tsx +0 -74
- package/src/react/hooks/data/collections/useCollectionBalanceDetails.test.tsx +0 -158
- package/src/react/hooks/data/collections/useCollectionBalanceDetails.tsx +0 -106
- 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/useCollectionDetailsPolling.tsx +0 -64
- 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/collections/useListCollections.test.tsx +0 -110
- package/src/react/hooks/data/collections/useListCollections.tsx +0 -80
- 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.test.tsx +0 -162
- 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/market/useCurrency.test.tsx +0 -127
- package/src/react/hooks/data/market/useCurrency.tsx +0 -65
- package/src/react/hooks/data/market/useListMarketCardData.test.tsx +0 -297
- package/src/react/hooks/data/market/useListMarketCardData.tsx +0 -165
- package/src/react/hooks/data/market/useMarketCurrencies.test.tsx +0 -216
- package/src/react/hooks/data/market/useMarketCurrencies.tsx +0 -65
- package/src/react/hooks/data/orders/index.ts +0 -11
- package/src/react/hooks/data/orders/useCountItemsOrdersForCollection.tsx +0 -90
- package/src/react/hooks/data/orders/useCountListingsForCollectible.test.tsx +0 -107
- package/src/react/hooks/data/orders/useCountListingsForCollectible.tsx +0 -75
- package/src/react/hooks/data/orders/useCountOffersForCollectible.test.tsx +0 -107
- package/src/react/hooks/data/orders/useCountOffersForCollectible.tsx +0 -75
- package/src/react/hooks/data/orders/useFloorOrder.test.tsx +0 -100
- package/src/react/hooks/data/orders/useFloorOrder.tsx +0 -70
- package/src/react/hooks/data/orders/useGetCountOfFilteredOrders.tsx +0 -39
- package/src/react/hooks/data/orders/useHighestOffer.test.tsx +0 -101
- package/src/react/hooks/data/orders/useHighestOffer.tsx +0 -72
- package/src/react/hooks/data/orders/useListItemsOrdersForCollection.tsx +0 -93
- package/src/react/hooks/data/orders/useListItemsOrdersForCollectionPaginated.tsx +0 -108
- package/src/react/hooks/data/orders/useListListingsForCollectible.test.tsx +0 -140
- package/src/react/hooks/data/orders/useListListingsForCollectible.tsx +0 -101
- package/src/react/hooks/data/orders/useListOffersForCollectible.test.tsx +0 -139
- package/src/react/hooks/data/orders/useListOffersForCollectible.tsx +0 -80
- package/src/react/hooks/data/orders/useLowestListing.test.tsx +0 -146
- package/src/react/hooks/data/orders/useLowestListing.tsx +0 -72
- 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/useErc721SalesData.tsx +0 -184
- package/src/react/hooks/data/primary-sales/useGetCountOfPrimarySaleItems.tsx +0 -48
- package/src/react/hooks/data/primary-sales/useList1155ShopCardData.tsx +0 -96
- package/src/react/hooks/data/primary-sales/useList721ShopCardData.tsx +0 -194
- package/src/react/hooks/data/primary-sales/useListPrimarySaleItems.tsx +0 -66
- package/src/react/hooks/data/primary-sales/usePrimarySaleItem.tsx +0 -71
- package/src/react/hooks/data/tokens/index.ts +0 -5
- package/src/react/hooks/data/tokens/useCurrencyBalance.test.tsx +0 -83
- package/src/react/hooks/data/tokens/useGetTokenRanges.test.tsx +0 -111
- package/src/react/hooks/data/tokens/useGetTokenRanges.tsx +0 -94
- package/src/react/hooks/data/tokens/useListBalances.test.tsx +0 -100
- package/src/react/hooks/data/tokens/useListBalances.tsx +0 -29
- package/src/react/hooks/data/tokens/useListTokenMetadata.test.tsx +0 -137
- package/src/react/hooks/data/tokens/useListTokenMetadata.tsx +0 -73
- package/src/react/hooks/data/tokens/useSearchTokenMetadata.test.tsx +0 -284
- package/src/react/hooks/data/tokens/useSearchTokenMetadata.tsx +0 -189
- package/src/react/hooks/data/tokens/useTokenSupplies.ts +0 -69
- package/src/react/hooks/ui/useFilterState.tsx +0 -250
- package/src/react/hooks/utils/useCheckoutOptions.test.tsx +0 -162
- package/src/react/hooks/utils/useCheckoutOptions.tsx +0 -98
- package/src/react/hooks/utils/useCheckoutOptionsSalesContract.test.tsx +0 -206
- package/src/react/hooks/utils/useCheckoutOptionsSalesContract.tsx +0 -108
- package/src/react/hooks/utils/useComparePrices.test.tsx +0 -215
- package/src/react/hooks/utils/useComparePrices.tsx +0 -102
- package/src/react/hooks/utils/useConvertPriceToUSD.test.tsx +0 -172
- package/src/react/hooks/utils/useConvertPriceToUSD.tsx +0 -96
- 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/_internals/action-button/ActionButton.stories.tsx +0 -298
- package/src/react/ui/components/_internals/action-button/ActionButton.tsx +0 -108
- package/src/react/ui/components/_internals/action-button/__tests__/ActionButtonBody.test.tsx +0 -104
- package/src/react/ui/components/_internals/action-button/__tests__/NonOwnerActions.test.tsx +0 -65
- package/src/react/ui/components/_internals/action-button/__tests__/OwnerActions.test.tsx +0 -66
- package/src/react/ui/components/_internals/action-button/__tests__/useActionButtonLogic.test.tsx +0 -99
- package/src/react/ui/components/_internals/action-button/components/ActionButtonBody.tsx +0 -52
- package/src/react/ui/components/_internals/action-button/components/NonOwnerActions.tsx +0 -145
- package/src/react/ui/components/_internals/action-button/components/OwnerActions.tsx +0 -83
- package/src/react/ui/components/_internals/action-button/hooks/useActionButtonLogic.ts +0 -97
- package/src/react/ui/components/_internals/action-button/store.ts +0 -85
- 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 -398
- 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/ERC1155QuantityModal.tsx +0 -208
- package/src/react/ui/modals/BuyModal/components/ERC1155ShopModal.tsx +0 -124
- 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__/useERC1155Checkout.test.tsx +0 -395
- 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/useERC1155Checkout.ts +0 -103
- 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/BuyModal/hooks/usePaymentModalParams.ts +0 -243
- 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/dist/{index-CCggO_hw.d.ts → index20.d.ts} +0 -0
- /package/dist/{index-CKefEBrI.d.ts → index25.d.ts} +0 -0
- /package/dist/{index-DgsCqh_P.d.ts → index29.d.ts} +0 -0
- /package/dist/{index-xpO4AQyS.d.ts → index30.d.ts} +0 -0
- /package/dist/{queries-CyajGg_O.js → queries.js} +0 -0
- /package/dist/{wagmi-Bseovd6Q.js → src.js} +0 -0
- /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
|
@@ -0,0 +1,3048 @@
|
|
|
1
|
+
//#region src/utils/abi/primary-sale/sequence-721-sales-contract-v0.ts
|
|
2
|
+
const ERC721_SALE_ABI_V0 = [
|
|
3
|
+
{
|
|
4
|
+
type: "function",
|
|
5
|
+
name: "DEFAULT_ADMIN_ROLE",
|
|
6
|
+
inputs: [],
|
|
7
|
+
outputs: [{
|
|
8
|
+
name: "",
|
|
9
|
+
type: "bytes32",
|
|
10
|
+
internalType: "bytes32"
|
|
11
|
+
}],
|
|
12
|
+
stateMutability: "view"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: "function",
|
|
16
|
+
name: "checkMerkleProof",
|
|
17
|
+
inputs: [
|
|
18
|
+
{
|
|
19
|
+
name: "root",
|
|
20
|
+
type: "bytes32",
|
|
21
|
+
internalType: "bytes32"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "proof",
|
|
25
|
+
type: "bytes32[]",
|
|
26
|
+
internalType: "bytes32[]"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "addr",
|
|
30
|
+
type: "address",
|
|
31
|
+
internalType: "address"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "salt",
|
|
35
|
+
type: "bytes32",
|
|
36
|
+
internalType: "bytes32"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
outputs: [{
|
|
40
|
+
name: "",
|
|
41
|
+
type: "bool",
|
|
42
|
+
internalType: "bool"
|
|
43
|
+
}],
|
|
44
|
+
stateMutability: "view"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
type: "function",
|
|
48
|
+
name: "getRoleAdmin",
|
|
49
|
+
inputs: [{
|
|
50
|
+
name: "role",
|
|
51
|
+
type: "bytes32",
|
|
52
|
+
internalType: "bytes32"
|
|
53
|
+
}],
|
|
54
|
+
outputs: [{
|
|
55
|
+
name: "",
|
|
56
|
+
type: "bytes32",
|
|
57
|
+
internalType: "bytes32"
|
|
58
|
+
}],
|
|
59
|
+
stateMutability: "view"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
type: "function",
|
|
63
|
+
name: "getRoleMember",
|
|
64
|
+
inputs: [{
|
|
65
|
+
name: "role",
|
|
66
|
+
type: "bytes32",
|
|
67
|
+
internalType: "bytes32"
|
|
68
|
+
}, {
|
|
69
|
+
name: "index",
|
|
70
|
+
type: "uint256",
|
|
71
|
+
internalType: "uint256"
|
|
72
|
+
}],
|
|
73
|
+
outputs: [{
|
|
74
|
+
name: "",
|
|
75
|
+
type: "address",
|
|
76
|
+
internalType: "address"
|
|
77
|
+
}],
|
|
78
|
+
stateMutability: "view"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
type: "function",
|
|
82
|
+
name: "getRoleMemberCount",
|
|
83
|
+
inputs: [{
|
|
84
|
+
name: "role",
|
|
85
|
+
type: "bytes32",
|
|
86
|
+
internalType: "bytes32"
|
|
87
|
+
}],
|
|
88
|
+
outputs: [{
|
|
89
|
+
name: "",
|
|
90
|
+
type: "uint256",
|
|
91
|
+
internalType: "uint256"
|
|
92
|
+
}],
|
|
93
|
+
stateMutability: "view"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
type: "function",
|
|
97
|
+
name: "grantRole",
|
|
98
|
+
inputs: [{
|
|
99
|
+
name: "role",
|
|
100
|
+
type: "bytes32",
|
|
101
|
+
internalType: "bytes32"
|
|
102
|
+
}, {
|
|
103
|
+
name: "account",
|
|
104
|
+
type: "address",
|
|
105
|
+
internalType: "address"
|
|
106
|
+
}],
|
|
107
|
+
outputs: [],
|
|
108
|
+
stateMutability: "nonpayable"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
type: "function",
|
|
112
|
+
name: "hasRole",
|
|
113
|
+
inputs: [{
|
|
114
|
+
name: "role",
|
|
115
|
+
type: "bytes32",
|
|
116
|
+
internalType: "bytes32"
|
|
117
|
+
}, {
|
|
118
|
+
name: "account",
|
|
119
|
+
type: "address",
|
|
120
|
+
internalType: "address"
|
|
121
|
+
}],
|
|
122
|
+
outputs: [{
|
|
123
|
+
name: "",
|
|
124
|
+
type: "bool",
|
|
125
|
+
internalType: "bool"
|
|
126
|
+
}],
|
|
127
|
+
stateMutability: "view"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
type: "function",
|
|
131
|
+
name: "initialize",
|
|
132
|
+
inputs: [{
|
|
133
|
+
name: "owner",
|
|
134
|
+
type: "address",
|
|
135
|
+
internalType: "address"
|
|
136
|
+
}, {
|
|
137
|
+
name: "items",
|
|
138
|
+
type: "address",
|
|
139
|
+
internalType: "address"
|
|
140
|
+
}],
|
|
141
|
+
outputs: [],
|
|
142
|
+
stateMutability: "nonpayable"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
type: "function",
|
|
146
|
+
name: "itemsContract",
|
|
147
|
+
inputs: [],
|
|
148
|
+
outputs: [{
|
|
149
|
+
name: "",
|
|
150
|
+
type: "address",
|
|
151
|
+
internalType: "address"
|
|
152
|
+
}],
|
|
153
|
+
stateMutability: "view"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
type: "function",
|
|
157
|
+
name: "mint",
|
|
158
|
+
inputs: [
|
|
159
|
+
{
|
|
160
|
+
name: "to",
|
|
161
|
+
type: "address",
|
|
162
|
+
internalType: "address"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: "amount",
|
|
166
|
+
type: "uint256",
|
|
167
|
+
internalType: "uint256"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: "paymentToken",
|
|
171
|
+
type: "address",
|
|
172
|
+
internalType: "address"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: "maxTotal",
|
|
176
|
+
type: "uint256",
|
|
177
|
+
internalType: "uint256"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: "proof",
|
|
181
|
+
type: "bytes32[]",
|
|
182
|
+
internalType: "bytes32[]"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
outputs: [],
|
|
186
|
+
stateMutability: "payable"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
type: "function",
|
|
190
|
+
name: "renounceRole",
|
|
191
|
+
inputs: [{
|
|
192
|
+
name: "role",
|
|
193
|
+
type: "bytes32",
|
|
194
|
+
internalType: "bytes32"
|
|
195
|
+
}, {
|
|
196
|
+
name: "account",
|
|
197
|
+
type: "address",
|
|
198
|
+
internalType: "address"
|
|
199
|
+
}],
|
|
200
|
+
outputs: [],
|
|
201
|
+
stateMutability: "nonpayable"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
type: "function",
|
|
205
|
+
name: "revokeRole",
|
|
206
|
+
inputs: [{
|
|
207
|
+
name: "role",
|
|
208
|
+
type: "bytes32",
|
|
209
|
+
internalType: "bytes32"
|
|
210
|
+
}, {
|
|
211
|
+
name: "account",
|
|
212
|
+
type: "address",
|
|
213
|
+
internalType: "address"
|
|
214
|
+
}],
|
|
215
|
+
outputs: [],
|
|
216
|
+
stateMutability: "nonpayable"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
type: "function",
|
|
220
|
+
name: "saleDetails",
|
|
221
|
+
inputs: [],
|
|
222
|
+
outputs: [{
|
|
223
|
+
name: "",
|
|
224
|
+
type: "tuple",
|
|
225
|
+
internalType: "struct IERC721SaleFunctions.SaleDetails",
|
|
226
|
+
components: [
|
|
227
|
+
{
|
|
228
|
+
name: "supplyCap",
|
|
229
|
+
type: "uint256",
|
|
230
|
+
internalType: "uint256"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
name: "cost",
|
|
234
|
+
type: "uint256",
|
|
235
|
+
internalType: "uint256"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
name: "paymentToken",
|
|
239
|
+
type: "address",
|
|
240
|
+
internalType: "address"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: "startTime",
|
|
244
|
+
type: "uint64",
|
|
245
|
+
internalType: "uint64"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: "endTime",
|
|
249
|
+
type: "uint64",
|
|
250
|
+
internalType: "uint64"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: "merkleRoot",
|
|
254
|
+
type: "bytes32",
|
|
255
|
+
internalType: "bytes32"
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
}],
|
|
259
|
+
stateMutability: "view"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
type: "function",
|
|
263
|
+
name: "setSaleDetails",
|
|
264
|
+
inputs: [
|
|
265
|
+
{
|
|
266
|
+
name: "supplyCap",
|
|
267
|
+
type: "uint256",
|
|
268
|
+
internalType: "uint256"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
name: "cost",
|
|
272
|
+
type: "uint256",
|
|
273
|
+
internalType: "uint256"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
name: "paymentToken",
|
|
277
|
+
type: "address",
|
|
278
|
+
internalType: "address"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: "startTime",
|
|
282
|
+
type: "uint64",
|
|
283
|
+
internalType: "uint64"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
name: "endTime",
|
|
287
|
+
type: "uint64",
|
|
288
|
+
internalType: "uint64"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
name: "merkleRoot",
|
|
292
|
+
type: "bytes32",
|
|
293
|
+
internalType: "bytes32"
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
outputs: [],
|
|
297
|
+
stateMutability: "nonpayable"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
type: "function",
|
|
301
|
+
name: "supportsInterface",
|
|
302
|
+
inputs: [{
|
|
303
|
+
name: "interfaceId",
|
|
304
|
+
type: "bytes4",
|
|
305
|
+
internalType: "bytes4"
|
|
306
|
+
}],
|
|
307
|
+
outputs: [{
|
|
308
|
+
name: "",
|
|
309
|
+
type: "bool",
|
|
310
|
+
internalType: "bool"
|
|
311
|
+
}],
|
|
312
|
+
stateMutability: "view"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
type: "function",
|
|
316
|
+
name: "withdrawERC20",
|
|
317
|
+
inputs: [
|
|
318
|
+
{
|
|
319
|
+
name: "token",
|
|
320
|
+
type: "address",
|
|
321
|
+
internalType: "address"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
name: "to",
|
|
325
|
+
type: "address",
|
|
326
|
+
internalType: "address"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
name: "value",
|
|
330
|
+
type: "uint256",
|
|
331
|
+
internalType: "uint256"
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
outputs: [],
|
|
335
|
+
stateMutability: "nonpayable"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
type: "function",
|
|
339
|
+
name: "withdrawETH",
|
|
340
|
+
inputs: [{
|
|
341
|
+
name: "to",
|
|
342
|
+
type: "address",
|
|
343
|
+
internalType: "address"
|
|
344
|
+
}, {
|
|
345
|
+
name: "value",
|
|
346
|
+
type: "uint256",
|
|
347
|
+
internalType: "uint256"
|
|
348
|
+
}],
|
|
349
|
+
outputs: [],
|
|
350
|
+
stateMutability: "nonpayable"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
type: "event",
|
|
354
|
+
name: "RoleAdminChanged",
|
|
355
|
+
inputs: [
|
|
356
|
+
{
|
|
357
|
+
name: "role",
|
|
358
|
+
type: "bytes32",
|
|
359
|
+
indexed: true,
|
|
360
|
+
internalType: "bytes32"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
name: "previousAdminRole",
|
|
364
|
+
type: "bytes32",
|
|
365
|
+
indexed: true,
|
|
366
|
+
internalType: "bytes32"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: "newAdminRole",
|
|
370
|
+
type: "bytes32",
|
|
371
|
+
indexed: true,
|
|
372
|
+
internalType: "bytes32"
|
|
373
|
+
}
|
|
374
|
+
],
|
|
375
|
+
anonymous: false
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
type: "event",
|
|
379
|
+
name: "RoleGranted",
|
|
380
|
+
inputs: [
|
|
381
|
+
{
|
|
382
|
+
name: "role",
|
|
383
|
+
type: "bytes32",
|
|
384
|
+
indexed: true,
|
|
385
|
+
internalType: "bytes32"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
name: "account",
|
|
389
|
+
type: "address",
|
|
390
|
+
indexed: true,
|
|
391
|
+
internalType: "address"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
name: "sender",
|
|
395
|
+
type: "address",
|
|
396
|
+
indexed: true,
|
|
397
|
+
internalType: "address"
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
anonymous: false
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
type: "event",
|
|
404
|
+
name: "RoleRevoked",
|
|
405
|
+
inputs: [
|
|
406
|
+
{
|
|
407
|
+
name: "role",
|
|
408
|
+
type: "bytes32",
|
|
409
|
+
indexed: true,
|
|
410
|
+
internalType: "bytes32"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
name: "account",
|
|
414
|
+
type: "address",
|
|
415
|
+
indexed: true,
|
|
416
|
+
internalType: "address"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
name: "sender",
|
|
420
|
+
type: "address",
|
|
421
|
+
indexed: true,
|
|
422
|
+
internalType: "address"
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
anonymous: false
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
type: "event",
|
|
429
|
+
name: "SaleDetailsUpdated",
|
|
430
|
+
inputs: [
|
|
431
|
+
{
|
|
432
|
+
name: "supplyCap",
|
|
433
|
+
type: "uint256",
|
|
434
|
+
indexed: false,
|
|
435
|
+
internalType: "uint256"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
name: "cost",
|
|
439
|
+
type: "uint256",
|
|
440
|
+
indexed: false,
|
|
441
|
+
internalType: "uint256"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
name: "paymentToken",
|
|
445
|
+
type: "address",
|
|
446
|
+
indexed: false,
|
|
447
|
+
internalType: "address"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
name: "startTime",
|
|
451
|
+
type: "uint64",
|
|
452
|
+
indexed: false,
|
|
453
|
+
internalType: "uint64"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
name: "endTime",
|
|
457
|
+
type: "uint64",
|
|
458
|
+
indexed: false,
|
|
459
|
+
internalType: "uint64"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
name: "merkleRoot",
|
|
463
|
+
type: "bytes32",
|
|
464
|
+
indexed: false,
|
|
465
|
+
internalType: "bytes32"
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
anonymous: false
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
type: "error",
|
|
472
|
+
name: "InsufficientPayment",
|
|
473
|
+
inputs: [
|
|
474
|
+
{
|
|
475
|
+
name: "currency",
|
|
476
|
+
type: "address",
|
|
477
|
+
internalType: "address"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
name: "expected",
|
|
481
|
+
type: "uint256",
|
|
482
|
+
internalType: "uint256"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
name: "actual",
|
|
486
|
+
type: "uint256",
|
|
487
|
+
internalType: "uint256"
|
|
488
|
+
}
|
|
489
|
+
]
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
type: "error",
|
|
493
|
+
name: "InsufficientSupply",
|
|
494
|
+
inputs: [
|
|
495
|
+
{
|
|
496
|
+
name: "currentSupply",
|
|
497
|
+
type: "uint256",
|
|
498
|
+
internalType: "uint256"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
name: "amount",
|
|
502
|
+
type: "uint256",
|
|
503
|
+
internalType: "uint256"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
name: "maxSupply",
|
|
507
|
+
type: "uint256",
|
|
508
|
+
internalType: "uint256"
|
|
509
|
+
}
|
|
510
|
+
]
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
type: "error",
|
|
514
|
+
name: "InvalidInitialization",
|
|
515
|
+
inputs: []
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
type: "error",
|
|
519
|
+
name: "InvalidSaleDetails",
|
|
520
|
+
inputs: []
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
type: "error",
|
|
524
|
+
name: "MerkleProofInvalid",
|
|
525
|
+
inputs: [
|
|
526
|
+
{
|
|
527
|
+
name: "root",
|
|
528
|
+
type: "bytes32",
|
|
529
|
+
internalType: "bytes32"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
name: "proof",
|
|
533
|
+
type: "bytes32[]",
|
|
534
|
+
internalType: "bytes32[]"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
name: "addr",
|
|
538
|
+
type: "address",
|
|
539
|
+
internalType: "address"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
name: "salt",
|
|
543
|
+
type: "bytes32",
|
|
544
|
+
internalType: "bytes32"
|
|
545
|
+
}
|
|
546
|
+
]
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
type: "error",
|
|
550
|
+
name: "SaleInactive",
|
|
551
|
+
inputs: []
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
type: "error",
|
|
555
|
+
name: "WithdrawFailed",
|
|
556
|
+
inputs: []
|
|
557
|
+
}
|
|
558
|
+
];
|
|
559
|
+
|
|
560
|
+
//#endregion
|
|
561
|
+
//#region src/utils/abi/primary-sale/sequence-721-sales-contract-v1.ts
|
|
562
|
+
const ERC721_SALE_ABI_V1 = [
|
|
563
|
+
{
|
|
564
|
+
inputs: [
|
|
565
|
+
{
|
|
566
|
+
internalType: "address",
|
|
567
|
+
name: "currency",
|
|
568
|
+
type: "address"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
internalType: "uint256",
|
|
572
|
+
name: "expected",
|
|
573
|
+
type: "uint256"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
internalType: "uint256",
|
|
577
|
+
name: "actual",
|
|
578
|
+
type: "uint256"
|
|
579
|
+
}
|
|
580
|
+
],
|
|
581
|
+
name: "InsufficientPayment",
|
|
582
|
+
type: "error"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
inputs: [{
|
|
586
|
+
internalType: "uint256",
|
|
587
|
+
name: "remainingSupply",
|
|
588
|
+
type: "uint256"
|
|
589
|
+
}, {
|
|
590
|
+
internalType: "uint256",
|
|
591
|
+
name: "amount",
|
|
592
|
+
type: "uint256"
|
|
593
|
+
}],
|
|
594
|
+
name: "InsufficientSupply",
|
|
595
|
+
type: "error"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
inputs: [],
|
|
599
|
+
name: "InvalidInitialization",
|
|
600
|
+
type: "error"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
inputs: [],
|
|
604
|
+
name: "InvalidSaleDetails",
|
|
605
|
+
type: "error"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
inputs: [
|
|
609
|
+
{
|
|
610
|
+
internalType: "bytes32",
|
|
611
|
+
name: "root",
|
|
612
|
+
type: "bytes32"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
internalType: "bytes32[]",
|
|
616
|
+
name: "proof",
|
|
617
|
+
type: "bytes32[]"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
internalType: "address",
|
|
621
|
+
name: "addr",
|
|
622
|
+
type: "address"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
internalType: "bytes32",
|
|
626
|
+
name: "salt",
|
|
627
|
+
type: "bytes32"
|
|
628
|
+
}
|
|
629
|
+
],
|
|
630
|
+
name: "MerkleProofInvalid",
|
|
631
|
+
type: "error"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
inputs: [],
|
|
635
|
+
name: "SaleInactive",
|
|
636
|
+
type: "error"
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
inputs: [],
|
|
640
|
+
name: "WithdrawFailed",
|
|
641
|
+
type: "error"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
anonymous: false,
|
|
645
|
+
inputs: [{
|
|
646
|
+
indexed: false,
|
|
647
|
+
internalType: "address",
|
|
648
|
+
name: "to",
|
|
649
|
+
type: "address"
|
|
650
|
+
}, {
|
|
651
|
+
indexed: false,
|
|
652
|
+
internalType: "uint256",
|
|
653
|
+
name: "amount",
|
|
654
|
+
type: "uint256"
|
|
655
|
+
}],
|
|
656
|
+
name: "ItemsMinted",
|
|
657
|
+
type: "event"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
anonymous: false,
|
|
661
|
+
inputs: [
|
|
662
|
+
{
|
|
663
|
+
indexed: true,
|
|
664
|
+
internalType: "bytes32",
|
|
665
|
+
name: "role",
|
|
666
|
+
type: "bytes32"
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
indexed: true,
|
|
670
|
+
internalType: "bytes32",
|
|
671
|
+
name: "previousAdminRole",
|
|
672
|
+
type: "bytes32"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
indexed: true,
|
|
676
|
+
internalType: "bytes32",
|
|
677
|
+
name: "newAdminRole",
|
|
678
|
+
type: "bytes32"
|
|
679
|
+
}
|
|
680
|
+
],
|
|
681
|
+
name: "RoleAdminChanged",
|
|
682
|
+
type: "event"
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
anonymous: false,
|
|
686
|
+
inputs: [
|
|
687
|
+
{
|
|
688
|
+
indexed: true,
|
|
689
|
+
internalType: "bytes32",
|
|
690
|
+
name: "role",
|
|
691
|
+
type: "bytes32"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
indexed: true,
|
|
695
|
+
internalType: "address",
|
|
696
|
+
name: "account",
|
|
697
|
+
type: "address"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
indexed: true,
|
|
701
|
+
internalType: "address",
|
|
702
|
+
name: "sender",
|
|
703
|
+
type: "address"
|
|
704
|
+
}
|
|
705
|
+
],
|
|
706
|
+
name: "RoleGranted",
|
|
707
|
+
type: "event"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
anonymous: false,
|
|
711
|
+
inputs: [
|
|
712
|
+
{
|
|
713
|
+
indexed: true,
|
|
714
|
+
internalType: "bytes32",
|
|
715
|
+
name: "role",
|
|
716
|
+
type: "bytes32"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
indexed: true,
|
|
720
|
+
internalType: "address",
|
|
721
|
+
name: "account",
|
|
722
|
+
type: "address"
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
indexed: true,
|
|
726
|
+
internalType: "address",
|
|
727
|
+
name: "sender",
|
|
728
|
+
type: "address"
|
|
729
|
+
}
|
|
730
|
+
],
|
|
731
|
+
name: "RoleRevoked",
|
|
732
|
+
type: "event"
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
anonymous: false,
|
|
736
|
+
inputs: [
|
|
737
|
+
{
|
|
738
|
+
indexed: false,
|
|
739
|
+
internalType: "uint256",
|
|
740
|
+
name: "remainingSupply",
|
|
741
|
+
type: "uint256"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
indexed: false,
|
|
745
|
+
internalType: "uint256",
|
|
746
|
+
name: "cost",
|
|
747
|
+
type: "uint256"
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
indexed: false,
|
|
751
|
+
internalType: "address",
|
|
752
|
+
name: "paymentToken",
|
|
753
|
+
type: "address"
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
indexed: false,
|
|
757
|
+
internalType: "uint64",
|
|
758
|
+
name: "startTime",
|
|
759
|
+
type: "uint64"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
indexed: false,
|
|
763
|
+
internalType: "uint64",
|
|
764
|
+
name: "endTime",
|
|
765
|
+
type: "uint64"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
indexed: false,
|
|
769
|
+
internalType: "bytes32",
|
|
770
|
+
name: "merkleRoot",
|
|
771
|
+
type: "bytes32"
|
|
772
|
+
}
|
|
773
|
+
],
|
|
774
|
+
name: "SaleDetailsUpdated",
|
|
775
|
+
type: "event"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
inputs: [],
|
|
779
|
+
name: "DEFAULT_ADMIN_ROLE",
|
|
780
|
+
outputs: [{
|
|
781
|
+
internalType: "bytes32",
|
|
782
|
+
name: "",
|
|
783
|
+
type: "bytes32"
|
|
784
|
+
}],
|
|
785
|
+
stateMutability: "view",
|
|
786
|
+
type: "function"
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
inputs: [
|
|
790
|
+
{
|
|
791
|
+
internalType: "address",
|
|
792
|
+
name: "wallet",
|
|
793
|
+
type: "address"
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
components: [
|
|
797
|
+
{
|
|
798
|
+
internalType: "address",
|
|
799
|
+
name: "approvedSigner",
|
|
800
|
+
type: "address"
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
internalType: "bytes4",
|
|
804
|
+
name: "identityType",
|
|
805
|
+
type: "bytes4"
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
internalType: "bytes32",
|
|
809
|
+
name: "issuerHash",
|
|
810
|
+
type: "bytes32"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
internalType: "bytes32",
|
|
814
|
+
name: "audienceHash",
|
|
815
|
+
type: "bytes32"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
internalType: "bytes",
|
|
819
|
+
name: "applicationData",
|
|
820
|
+
type: "bytes"
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
components: [{
|
|
824
|
+
internalType: "string",
|
|
825
|
+
name: "redirectUrl",
|
|
826
|
+
type: "string"
|
|
827
|
+
}, {
|
|
828
|
+
internalType: "uint64",
|
|
829
|
+
name: "issuedAt",
|
|
830
|
+
type: "uint64"
|
|
831
|
+
}],
|
|
832
|
+
internalType: "struct AuthData",
|
|
833
|
+
name: "authData",
|
|
834
|
+
type: "tuple"
|
|
835
|
+
}
|
|
836
|
+
],
|
|
837
|
+
internalType: "struct Attestation",
|
|
838
|
+
name: "attestation",
|
|
839
|
+
type: "tuple"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
components: [
|
|
843
|
+
{
|
|
844
|
+
internalType: "address",
|
|
845
|
+
name: "to",
|
|
846
|
+
type: "address"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
internalType: "uint256",
|
|
850
|
+
name: "value",
|
|
851
|
+
type: "uint256"
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
internalType: "bytes",
|
|
855
|
+
name: "data",
|
|
856
|
+
type: "bytes"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
internalType: "uint256",
|
|
860
|
+
name: "gasLimit",
|
|
861
|
+
type: "uint256"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
internalType: "bool",
|
|
865
|
+
name: "delegateCall",
|
|
866
|
+
type: "bool"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
internalType: "bool",
|
|
870
|
+
name: "onlyFallback",
|
|
871
|
+
type: "bool"
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
internalType: "uint256",
|
|
875
|
+
name: "behaviorOnError",
|
|
876
|
+
type: "uint256"
|
|
877
|
+
}
|
|
878
|
+
],
|
|
879
|
+
internalType: "struct Payload.Call",
|
|
880
|
+
name: "call",
|
|
881
|
+
type: "tuple"
|
|
882
|
+
}
|
|
883
|
+
],
|
|
884
|
+
name: "acceptImplicitRequest",
|
|
885
|
+
outputs: [{
|
|
886
|
+
internalType: "bytes32",
|
|
887
|
+
name: "",
|
|
888
|
+
type: "bytes32"
|
|
889
|
+
}],
|
|
890
|
+
stateMutability: "view",
|
|
891
|
+
type: "function"
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
inputs: [
|
|
895
|
+
{
|
|
896
|
+
internalType: "bytes32",
|
|
897
|
+
name: "root",
|
|
898
|
+
type: "bytes32"
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
internalType: "bytes32[]",
|
|
902
|
+
name: "proof",
|
|
903
|
+
type: "bytes32[]"
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
internalType: "address",
|
|
907
|
+
name: "addr",
|
|
908
|
+
type: "address"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
internalType: "bytes32",
|
|
912
|
+
name: "salt",
|
|
913
|
+
type: "bytes32"
|
|
914
|
+
}
|
|
915
|
+
],
|
|
916
|
+
name: "checkMerkleProof",
|
|
917
|
+
outputs: [{
|
|
918
|
+
internalType: "bool",
|
|
919
|
+
name: "",
|
|
920
|
+
type: "bool"
|
|
921
|
+
}],
|
|
922
|
+
stateMutability: "view",
|
|
923
|
+
type: "function"
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
inputs: [{
|
|
927
|
+
internalType: "bytes32",
|
|
928
|
+
name: "role",
|
|
929
|
+
type: "bytes32"
|
|
930
|
+
}],
|
|
931
|
+
name: "getRoleAdmin",
|
|
932
|
+
outputs: [{
|
|
933
|
+
internalType: "bytes32",
|
|
934
|
+
name: "",
|
|
935
|
+
type: "bytes32"
|
|
936
|
+
}],
|
|
937
|
+
stateMutability: "view",
|
|
938
|
+
type: "function"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
inputs: [{
|
|
942
|
+
internalType: "bytes32",
|
|
943
|
+
name: "role",
|
|
944
|
+
type: "bytes32"
|
|
945
|
+
}, {
|
|
946
|
+
internalType: "uint256",
|
|
947
|
+
name: "index",
|
|
948
|
+
type: "uint256"
|
|
949
|
+
}],
|
|
950
|
+
name: "getRoleMember",
|
|
951
|
+
outputs: [{
|
|
952
|
+
internalType: "address",
|
|
953
|
+
name: "",
|
|
954
|
+
type: "address"
|
|
955
|
+
}],
|
|
956
|
+
stateMutability: "view",
|
|
957
|
+
type: "function"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
inputs: [{
|
|
961
|
+
internalType: "bytes32",
|
|
962
|
+
name: "role",
|
|
963
|
+
type: "bytes32"
|
|
964
|
+
}],
|
|
965
|
+
name: "getRoleMemberCount",
|
|
966
|
+
outputs: [{
|
|
967
|
+
internalType: "uint256",
|
|
968
|
+
name: "",
|
|
969
|
+
type: "uint256"
|
|
970
|
+
}],
|
|
971
|
+
stateMutability: "view",
|
|
972
|
+
type: "function"
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
inputs: [{
|
|
976
|
+
internalType: "bytes32",
|
|
977
|
+
name: "role",
|
|
978
|
+
type: "bytes32"
|
|
979
|
+
}, {
|
|
980
|
+
internalType: "address",
|
|
981
|
+
name: "account",
|
|
982
|
+
type: "address"
|
|
983
|
+
}],
|
|
984
|
+
name: "grantRole",
|
|
985
|
+
outputs: [],
|
|
986
|
+
stateMutability: "nonpayable",
|
|
987
|
+
type: "function"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
inputs: [{
|
|
991
|
+
internalType: "bytes32",
|
|
992
|
+
name: "role",
|
|
993
|
+
type: "bytes32"
|
|
994
|
+
}, {
|
|
995
|
+
internalType: "address",
|
|
996
|
+
name: "account",
|
|
997
|
+
type: "address"
|
|
998
|
+
}],
|
|
999
|
+
name: "hasRole",
|
|
1000
|
+
outputs: [{
|
|
1001
|
+
internalType: "bool",
|
|
1002
|
+
name: "",
|
|
1003
|
+
type: "bool"
|
|
1004
|
+
}],
|
|
1005
|
+
stateMutability: "view",
|
|
1006
|
+
type: "function"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
inputs: [
|
|
1010
|
+
{
|
|
1011
|
+
internalType: "address",
|
|
1012
|
+
name: "owner",
|
|
1013
|
+
type: "address"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
internalType: "address",
|
|
1017
|
+
name: "items",
|
|
1018
|
+
type: "address"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
internalType: "address",
|
|
1022
|
+
name: "implicitModeValidator",
|
|
1023
|
+
type: "address"
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
internalType: "bytes32",
|
|
1027
|
+
name: "implicitModeProjectId",
|
|
1028
|
+
type: "bytes32"
|
|
1029
|
+
}
|
|
1030
|
+
],
|
|
1031
|
+
name: "initialize",
|
|
1032
|
+
outputs: [],
|
|
1033
|
+
stateMutability: "nonpayable",
|
|
1034
|
+
type: "function"
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
inputs: [],
|
|
1038
|
+
name: "itemsContract",
|
|
1039
|
+
outputs: [{
|
|
1040
|
+
internalType: "address",
|
|
1041
|
+
name: "",
|
|
1042
|
+
type: "address"
|
|
1043
|
+
}],
|
|
1044
|
+
stateMutability: "view",
|
|
1045
|
+
type: "function"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
inputs: [
|
|
1049
|
+
{
|
|
1050
|
+
internalType: "address",
|
|
1051
|
+
name: "to",
|
|
1052
|
+
type: "address"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
internalType: "uint256",
|
|
1056
|
+
name: "amount",
|
|
1057
|
+
type: "uint256"
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
internalType: "address",
|
|
1061
|
+
name: "paymentToken",
|
|
1062
|
+
type: "address"
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
internalType: "uint256",
|
|
1066
|
+
name: "maxTotal",
|
|
1067
|
+
type: "uint256"
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
internalType: "bytes32[]",
|
|
1071
|
+
name: "proof",
|
|
1072
|
+
type: "bytes32[]"
|
|
1073
|
+
}
|
|
1074
|
+
],
|
|
1075
|
+
name: "mint",
|
|
1076
|
+
outputs: [],
|
|
1077
|
+
stateMutability: "payable",
|
|
1078
|
+
type: "function"
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
inputs: [{
|
|
1082
|
+
internalType: "bytes32",
|
|
1083
|
+
name: "role",
|
|
1084
|
+
type: "bytes32"
|
|
1085
|
+
}, {
|
|
1086
|
+
internalType: "address",
|
|
1087
|
+
name: "account",
|
|
1088
|
+
type: "address"
|
|
1089
|
+
}],
|
|
1090
|
+
name: "renounceRole",
|
|
1091
|
+
outputs: [],
|
|
1092
|
+
stateMutability: "nonpayable",
|
|
1093
|
+
type: "function"
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
inputs: [{
|
|
1097
|
+
internalType: "bytes32",
|
|
1098
|
+
name: "role",
|
|
1099
|
+
type: "bytes32"
|
|
1100
|
+
}, {
|
|
1101
|
+
internalType: "address",
|
|
1102
|
+
name: "account",
|
|
1103
|
+
type: "address"
|
|
1104
|
+
}],
|
|
1105
|
+
name: "revokeRole",
|
|
1106
|
+
outputs: [],
|
|
1107
|
+
stateMutability: "nonpayable",
|
|
1108
|
+
type: "function"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
inputs: [],
|
|
1112
|
+
name: "saleDetails",
|
|
1113
|
+
outputs: [{
|
|
1114
|
+
components: [
|
|
1115
|
+
{
|
|
1116
|
+
internalType: "uint256",
|
|
1117
|
+
name: "remainingSupply",
|
|
1118
|
+
type: "uint256"
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
internalType: "uint256",
|
|
1122
|
+
name: "cost",
|
|
1123
|
+
type: "uint256"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
internalType: "address",
|
|
1127
|
+
name: "paymentToken",
|
|
1128
|
+
type: "address"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
internalType: "uint64",
|
|
1132
|
+
name: "startTime",
|
|
1133
|
+
type: "uint64"
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
internalType: "uint64",
|
|
1137
|
+
name: "endTime",
|
|
1138
|
+
type: "uint64"
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
internalType: "bytes32",
|
|
1142
|
+
name: "merkleRoot",
|
|
1143
|
+
type: "bytes32"
|
|
1144
|
+
}
|
|
1145
|
+
],
|
|
1146
|
+
internalType: "struct IERC721SaleFunctions.SaleDetails",
|
|
1147
|
+
name: "",
|
|
1148
|
+
type: "tuple"
|
|
1149
|
+
}],
|
|
1150
|
+
stateMutability: "view",
|
|
1151
|
+
type: "function"
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
inputs: [{
|
|
1155
|
+
internalType: "bytes32",
|
|
1156
|
+
name: "projectId",
|
|
1157
|
+
type: "bytes32"
|
|
1158
|
+
}],
|
|
1159
|
+
name: "setImplicitModeProjectId",
|
|
1160
|
+
outputs: [],
|
|
1161
|
+
stateMutability: "nonpayable",
|
|
1162
|
+
type: "function"
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
inputs: [{
|
|
1166
|
+
internalType: "address",
|
|
1167
|
+
name: "validator",
|
|
1168
|
+
type: "address"
|
|
1169
|
+
}],
|
|
1170
|
+
name: "setImplicitModeValidator",
|
|
1171
|
+
outputs: [],
|
|
1172
|
+
stateMutability: "nonpayable",
|
|
1173
|
+
type: "function"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
inputs: [
|
|
1177
|
+
{
|
|
1178
|
+
internalType: "uint256",
|
|
1179
|
+
name: "remainingSupply",
|
|
1180
|
+
type: "uint256"
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
internalType: "uint256",
|
|
1184
|
+
name: "cost",
|
|
1185
|
+
type: "uint256"
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
internalType: "address",
|
|
1189
|
+
name: "paymentToken",
|
|
1190
|
+
type: "address"
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
internalType: "uint64",
|
|
1194
|
+
name: "startTime",
|
|
1195
|
+
type: "uint64"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
internalType: "uint64",
|
|
1199
|
+
name: "endTime",
|
|
1200
|
+
type: "uint64"
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
internalType: "bytes32",
|
|
1204
|
+
name: "merkleRoot",
|
|
1205
|
+
type: "bytes32"
|
|
1206
|
+
}
|
|
1207
|
+
],
|
|
1208
|
+
name: "setSaleDetails",
|
|
1209
|
+
outputs: [],
|
|
1210
|
+
stateMutability: "nonpayable",
|
|
1211
|
+
type: "function"
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
inputs: [{
|
|
1215
|
+
internalType: "bytes4",
|
|
1216
|
+
name: "interfaceId",
|
|
1217
|
+
type: "bytes4"
|
|
1218
|
+
}],
|
|
1219
|
+
name: "supportsInterface",
|
|
1220
|
+
outputs: [{
|
|
1221
|
+
internalType: "bool",
|
|
1222
|
+
name: "",
|
|
1223
|
+
type: "bool"
|
|
1224
|
+
}],
|
|
1225
|
+
stateMutability: "view",
|
|
1226
|
+
type: "function"
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
inputs: [
|
|
1230
|
+
{
|
|
1231
|
+
internalType: "address",
|
|
1232
|
+
name: "token",
|
|
1233
|
+
type: "address"
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
internalType: "address",
|
|
1237
|
+
name: "to",
|
|
1238
|
+
type: "address"
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
internalType: "uint256",
|
|
1242
|
+
name: "value",
|
|
1243
|
+
type: "uint256"
|
|
1244
|
+
}
|
|
1245
|
+
],
|
|
1246
|
+
name: "withdrawERC20",
|
|
1247
|
+
outputs: [],
|
|
1248
|
+
stateMutability: "nonpayable",
|
|
1249
|
+
type: "function"
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
inputs: [{
|
|
1253
|
+
internalType: "address",
|
|
1254
|
+
name: "to",
|
|
1255
|
+
type: "address"
|
|
1256
|
+
}, {
|
|
1257
|
+
internalType: "uint256",
|
|
1258
|
+
name: "value",
|
|
1259
|
+
type: "uint256"
|
|
1260
|
+
}],
|
|
1261
|
+
name: "withdrawETH",
|
|
1262
|
+
outputs: [],
|
|
1263
|
+
stateMutability: "nonpayable",
|
|
1264
|
+
type: "function"
|
|
1265
|
+
}
|
|
1266
|
+
];
|
|
1267
|
+
|
|
1268
|
+
//#endregion
|
|
1269
|
+
//#region src/utils/abi/primary-sale/sequence-1155-sales-contract-v0.ts
|
|
1270
|
+
const ERC1155_SALES_CONTRACT_ABI_V0 = [
|
|
1271
|
+
{
|
|
1272
|
+
type: "function",
|
|
1273
|
+
name: "DEFAULT_ADMIN_ROLE",
|
|
1274
|
+
inputs: [],
|
|
1275
|
+
outputs: [{
|
|
1276
|
+
name: "",
|
|
1277
|
+
type: "bytes32",
|
|
1278
|
+
internalType: "bytes32"
|
|
1279
|
+
}],
|
|
1280
|
+
stateMutability: "view"
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
type: "function",
|
|
1284
|
+
name: "checkMerkleProof",
|
|
1285
|
+
inputs: [
|
|
1286
|
+
{
|
|
1287
|
+
name: "root",
|
|
1288
|
+
type: "bytes32",
|
|
1289
|
+
internalType: "bytes32"
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
name: "proof",
|
|
1293
|
+
type: "bytes32[]",
|
|
1294
|
+
internalType: "bytes32[]"
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
name: "addr",
|
|
1298
|
+
type: "address",
|
|
1299
|
+
internalType: "address"
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
name: "salt",
|
|
1303
|
+
type: "bytes32",
|
|
1304
|
+
internalType: "bytes32"
|
|
1305
|
+
}
|
|
1306
|
+
],
|
|
1307
|
+
outputs: [{
|
|
1308
|
+
name: "",
|
|
1309
|
+
type: "bool",
|
|
1310
|
+
internalType: "bool"
|
|
1311
|
+
}],
|
|
1312
|
+
stateMutability: "view"
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
type: "function",
|
|
1316
|
+
name: "getRoleAdmin",
|
|
1317
|
+
inputs: [{
|
|
1318
|
+
name: "role",
|
|
1319
|
+
type: "bytes32",
|
|
1320
|
+
internalType: "bytes32"
|
|
1321
|
+
}],
|
|
1322
|
+
outputs: [{
|
|
1323
|
+
name: "",
|
|
1324
|
+
type: "bytes32",
|
|
1325
|
+
internalType: "bytes32"
|
|
1326
|
+
}],
|
|
1327
|
+
stateMutability: "view"
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
type: "function",
|
|
1331
|
+
name: "getRoleMember",
|
|
1332
|
+
inputs: [{
|
|
1333
|
+
name: "role",
|
|
1334
|
+
type: "bytes32",
|
|
1335
|
+
internalType: "bytes32"
|
|
1336
|
+
}, {
|
|
1337
|
+
name: "index",
|
|
1338
|
+
type: "uint256",
|
|
1339
|
+
internalType: "uint256"
|
|
1340
|
+
}],
|
|
1341
|
+
outputs: [{
|
|
1342
|
+
name: "",
|
|
1343
|
+
type: "address",
|
|
1344
|
+
internalType: "address"
|
|
1345
|
+
}],
|
|
1346
|
+
stateMutability: "view"
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
type: "function",
|
|
1350
|
+
name: "getRoleMemberCount",
|
|
1351
|
+
inputs: [{
|
|
1352
|
+
name: "role",
|
|
1353
|
+
type: "bytes32",
|
|
1354
|
+
internalType: "bytes32"
|
|
1355
|
+
}],
|
|
1356
|
+
outputs: [{
|
|
1357
|
+
name: "",
|
|
1358
|
+
type: "uint256",
|
|
1359
|
+
internalType: "uint256"
|
|
1360
|
+
}],
|
|
1361
|
+
stateMutability: "view"
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
type: "function",
|
|
1365
|
+
name: "globalSaleDetails",
|
|
1366
|
+
inputs: [],
|
|
1367
|
+
outputs: [{
|
|
1368
|
+
name: "",
|
|
1369
|
+
type: "tuple",
|
|
1370
|
+
internalType: "struct IERC1155SaleFunctions.SaleDetails",
|
|
1371
|
+
components: [
|
|
1372
|
+
{
|
|
1373
|
+
name: "cost",
|
|
1374
|
+
type: "uint256",
|
|
1375
|
+
internalType: "uint256"
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
name: "supplyCap",
|
|
1379
|
+
type: "uint256",
|
|
1380
|
+
internalType: "uint256"
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
name: "startTime",
|
|
1384
|
+
type: "uint64",
|
|
1385
|
+
internalType: "uint64"
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
name: "endTime",
|
|
1389
|
+
type: "uint64",
|
|
1390
|
+
internalType: "uint64"
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
name: "merkleRoot",
|
|
1394
|
+
type: "bytes32",
|
|
1395
|
+
internalType: "bytes32"
|
|
1396
|
+
}
|
|
1397
|
+
]
|
|
1398
|
+
}],
|
|
1399
|
+
stateMutability: "view"
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
type: "function",
|
|
1403
|
+
name: "grantRole",
|
|
1404
|
+
inputs: [{
|
|
1405
|
+
name: "role",
|
|
1406
|
+
type: "bytes32",
|
|
1407
|
+
internalType: "bytes32"
|
|
1408
|
+
}, {
|
|
1409
|
+
name: "account",
|
|
1410
|
+
type: "address",
|
|
1411
|
+
internalType: "address"
|
|
1412
|
+
}],
|
|
1413
|
+
outputs: [],
|
|
1414
|
+
stateMutability: "nonpayable"
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
type: "function",
|
|
1418
|
+
name: "hasRole",
|
|
1419
|
+
inputs: [{
|
|
1420
|
+
name: "role",
|
|
1421
|
+
type: "bytes32",
|
|
1422
|
+
internalType: "bytes32"
|
|
1423
|
+
}, {
|
|
1424
|
+
name: "account",
|
|
1425
|
+
type: "address",
|
|
1426
|
+
internalType: "address"
|
|
1427
|
+
}],
|
|
1428
|
+
outputs: [{
|
|
1429
|
+
name: "",
|
|
1430
|
+
type: "bool",
|
|
1431
|
+
internalType: "bool"
|
|
1432
|
+
}],
|
|
1433
|
+
stateMutability: "view"
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
type: "function",
|
|
1437
|
+
name: "initialize",
|
|
1438
|
+
inputs: [{
|
|
1439
|
+
name: "owner",
|
|
1440
|
+
type: "address",
|
|
1441
|
+
internalType: "address"
|
|
1442
|
+
}, {
|
|
1443
|
+
name: "items",
|
|
1444
|
+
type: "address",
|
|
1445
|
+
internalType: "address"
|
|
1446
|
+
}],
|
|
1447
|
+
outputs: [],
|
|
1448
|
+
stateMutability: "nonpayable"
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
type: "function",
|
|
1452
|
+
name: "mint",
|
|
1453
|
+
inputs: [
|
|
1454
|
+
{
|
|
1455
|
+
name: "to",
|
|
1456
|
+
type: "address",
|
|
1457
|
+
internalType: "address"
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
name: "tokenIds",
|
|
1461
|
+
type: "uint256[]",
|
|
1462
|
+
internalType: "uint256[]"
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
name: "amounts",
|
|
1466
|
+
type: "uint256[]",
|
|
1467
|
+
internalType: "uint256[]"
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
name: "data",
|
|
1471
|
+
type: "bytes",
|
|
1472
|
+
internalType: "bytes"
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
name: "expectedPaymentToken",
|
|
1476
|
+
type: "address",
|
|
1477
|
+
internalType: "address"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
name: "maxTotal",
|
|
1481
|
+
type: "uint256",
|
|
1482
|
+
internalType: "uint256"
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
name: "proof",
|
|
1486
|
+
type: "bytes32[]",
|
|
1487
|
+
internalType: "bytes32[]"
|
|
1488
|
+
}
|
|
1489
|
+
],
|
|
1490
|
+
outputs: [],
|
|
1491
|
+
stateMutability: "payable"
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
type: "function",
|
|
1495
|
+
name: "paymentToken",
|
|
1496
|
+
inputs: [],
|
|
1497
|
+
outputs: [{
|
|
1498
|
+
name: "",
|
|
1499
|
+
type: "address",
|
|
1500
|
+
internalType: "address"
|
|
1501
|
+
}],
|
|
1502
|
+
stateMutability: "view"
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
type: "function",
|
|
1506
|
+
name: "renounceRole",
|
|
1507
|
+
inputs: [{
|
|
1508
|
+
name: "role",
|
|
1509
|
+
type: "bytes32",
|
|
1510
|
+
internalType: "bytes32"
|
|
1511
|
+
}, {
|
|
1512
|
+
name: "account",
|
|
1513
|
+
type: "address",
|
|
1514
|
+
internalType: "address"
|
|
1515
|
+
}],
|
|
1516
|
+
outputs: [],
|
|
1517
|
+
stateMutability: "nonpayable"
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
type: "function",
|
|
1521
|
+
name: "revokeRole",
|
|
1522
|
+
inputs: [{
|
|
1523
|
+
name: "role",
|
|
1524
|
+
type: "bytes32",
|
|
1525
|
+
internalType: "bytes32"
|
|
1526
|
+
}, {
|
|
1527
|
+
name: "account",
|
|
1528
|
+
type: "address",
|
|
1529
|
+
internalType: "address"
|
|
1530
|
+
}],
|
|
1531
|
+
outputs: [],
|
|
1532
|
+
stateMutability: "nonpayable"
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
type: "function",
|
|
1536
|
+
name: "setGlobalSaleDetails",
|
|
1537
|
+
inputs: [
|
|
1538
|
+
{
|
|
1539
|
+
name: "cost",
|
|
1540
|
+
type: "uint256",
|
|
1541
|
+
internalType: "uint256"
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
name: "supplyCap",
|
|
1545
|
+
type: "uint256",
|
|
1546
|
+
internalType: "uint256"
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
name: "startTime",
|
|
1550
|
+
type: "uint64",
|
|
1551
|
+
internalType: "uint64"
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
name: "endTime",
|
|
1555
|
+
type: "uint64",
|
|
1556
|
+
internalType: "uint64"
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
name: "merkleRoot",
|
|
1560
|
+
type: "bytes32",
|
|
1561
|
+
internalType: "bytes32"
|
|
1562
|
+
}
|
|
1563
|
+
],
|
|
1564
|
+
outputs: [],
|
|
1565
|
+
stateMutability: "nonpayable"
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
type: "function",
|
|
1569
|
+
name: "setPaymentToken",
|
|
1570
|
+
inputs: [{
|
|
1571
|
+
name: "paymentTokenAddr",
|
|
1572
|
+
type: "address",
|
|
1573
|
+
internalType: "address"
|
|
1574
|
+
}],
|
|
1575
|
+
outputs: [],
|
|
1576
|
+
stateMutability: "nonpayable"
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
type: "function",
|
|
1580
|
+
name: "setTokenSaleDetails",
|
|
1581
|
+
inputs: [
|
|
1582
|
+
{
|
|
1583
|
+
name: "tokenId",
|
|
1584
|
+
type: "uint256",
|
|
1585
|
+
internalType: "uint256"
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
name: "cost",
|
|
1589
|
+
type: "uint256",
|
|
1590
|
+
internalType: "uint256"
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
name: "supplyCap",
|
|
1594
|
+
type: "uint256",
|
|
1595
|
+
internalType: "uint256"
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
name: "startTime",
|
|
1599
|
+
type: "uint64",
|
|
1600
|
+
internalType: "uint64"
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
name: "endTime",
|
|
1604
|
+
type: "uint64",
|
|
1605
|
+
internalType: "uint64"
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
name: "merkleRoot",
|
|
1609
|
+
type: "bytes32",
|
|
1610
|
+
internalType: "bytes32"
|
|
1611
|
+
}
|
|
1612
|
+
],
|
|
1613
|
+
outputs: [],
|
|
1614
|
+
stateMutability: "nonpayable"
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
type: "function",
|
|
1618
|
+
name: "setTokenSaleDetailsBatch",
|
|
1619
|
+
inputs: [
|
|
1620
|
+
{
|
|
1621
|
+
name: "tokenIds",
|
|
1622
|
+
type: "uint256[]",
|
|
1623
|
+
internalType: "uint256[]"
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
name: "costs",
|
|
1627
|
+
type: "uint256[]",
|
|
1628
|
+
internalType: "uint256[]"
|
|
1629
|
+
},
|
|
1630
|
+
{
|
|
1631
|
+
name: "supplyCaps",
|
|
1632
|
+
type: "uint256[]",
|
|
1633
|
+
internalType: "uint256[]"
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
name: "startTimes",
|
|
1637
|
+
type: "uint64[]",
|
|
1638
|
+
internalType: "uint64[]"
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
name: "endTimes",
|
|
1642
|
+
type: "uint64[]",
|
|
1643
|
+
internalType: "uint64[]"
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
name: "merkleRoots",
|
|
1647
|
+
type: "bytes32[]",
|
|
1648
|
+
internalType: "bytes32[]"
|
|
1649
|
+
}
|
|
1650
|
+
],
|
|
1651
|
+
outputs: [],
|
|
1652
|
+
stateMutability: "nonpayable"
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
type: "function",
|
|
1656
|
+
name: "supportsInterface",
|
|
1657
|
+
inputs: [{
|
|
1658
|
+
name: "interfaceId",
|
|
1659
|
+
type: "bytes4",
|
|
1660
|
+
internalType: "bytes4"
|
|
1661
|
+
}],
|
|
1662
|
+
outputs: [{
|
|
1663
|
+
name: "",
|
|
1664
|
+
type: "bool",
|
|
1665
|
+
internalType: "bool"
|
|
1666
|
+
}],
|
|
1667
|
+
stateMutability: "view"
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
type: "function",
|
|
1671
|
+
name: "tokenSaleDetails",
|
|
1672
|
+
inputs: [{
|
|
1673
|
+
name: "tokenId",
|
|
1674
|
+
type: "uint256",
|
|
1675
|
+
internalType: "uint256"
|
|
1676
|
+
}],
|
|
1677
|
+
outputs: [{
|
|
1678
|
+
name: "",
|
|
1679
|
+
type: "tuple",
|
|
1680
|
+
internalType: "struct IERC1155SaleFunctions.SaleDetails",
|
|
1681
|
+
components: [
|
|
1682
|
+
{
|
|
1683
|
+
name: "cost",
|
|
1684
|
+
type: "uint256",
|
|
1685
|
+
internalType: "uint256"
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
name: "supplyCap",
|
|
1689
|
+
type: "uint256",
|
|
1690
|
+
internalType: "uint256"
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
name: "startTime",
|
|
1694
|
+
type: "uint64",
|
|
1695
|
+
internalType: "uint64"
|
|
1696
|
+
},
|
|
1697
|
+
{
|
|
1698
|
+
name: "endTime",
|
|
1699
|
+
type: "uint64",
|
|
1700
|
+
internalType: "uint64"
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
name: "merkleRoot",
|
|
1704
|
+
type: "bytes32",
|
|
1705
|
+
internalType: "bytes32"
|
|
1706
|
+
}
|
|
1707
|
+
]
|
|
1708
|
+
}],
|
|
1709
|
+
stateMutability: "view"
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
type: "function",
|
|
1713
|
+
name: "tokenSaleDetailsBatch",
|
|
1714
|
+
inputs: [{
|
|
1715
|
+
name: "tokenIds",
|
|
1716
|
+
type: "uint256[]",
|
|
1717
|
+
internalType: "uint256[]"
|
|
1718
|
+
}],
|
|
1719
|
+
outputs: [{
|
|
1720
|
+
name: "",
|
|
1721
|
+
type: "tuple[]",
|
|
1722
|
+
internalType: "struct IERC1155SaleFunctions.SaleDetails[]",
|
|
1723
|
+
components: [
|
|
1724
|
+
{
|
|
1725
|
+
name: "cost",
|
|
1726
|
+
type: "uint256",
|
|
1727
|
+
internalType: "uint256"
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
name: "supplyCap",
|
|
1731
|
+
type: "uint256",
|
|
1732
|
+
internalType: "uint256"
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
name: "startTime",
|
|
1736
|
+
type: "uint64",
|
|
1737
|
+
internalType: "uint64"
|
|
1738
|
+
},
|
|
1739
|
+
{
|
|
1740
|
+
name: "endTime",
|
|
1741
|
+
type: "uint64",
|
|
1742
|
+
internalType: "uint64"
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
name: "merkleRoot",
|
|
1746
|
+
type: "bytes32",
|
|
1747
|
+
internalType: "bytes32"
|
|
1748
|
+
}
|
|
1749
|
+
]
|
|
1750
|
+
}],
|
|
1751
|
+
stateMutability: "view"
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
type: "function",
|
|
1755
|
+
name: "withdrawERC20",
|
|
1756
|
+
inputs: [
|
|
1757
|
+
{
|
|
1758
|
+
name: "token",
|
|
1759
|
+
type: "address",
|
|
1760
|
+
internalType: "address"
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
name: "to",
|
|
1764
|
+
type: "address",
|
|
1765
|
+
internalType: "address"
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
name: "value",
|
|
1769
|
+
type: "uint256",
|
|
1770
|
+
internalType: "uint256"
|
|
1771
|
+
}
|
|
1772
|
+
],
|
|
1773
|
+
outputs: [],
|
|
1774
|
+
stateMutability: "nonpayable"
|
|
1775
|
+
},
|
|
1776
|
+
{
|
|
1777
|
+
type: "function",
|
|
1778
|
+
name: "withdrawETH",
|
|
1779
|
+
inputs: [{
|
|
1780
|
+
name: "to",
|
|
1781
|
+
type: "address",
|
|
1782
|
+
internalType: "address"
|
|
1783
|
+
}, {
|
|
1784
|
+
name: "value",
|
|
1785
|
+
type: "uint256",
|
|
1786
|
+
internalType: "uint256"
|
|
1787
|
+
}],
|
|
1788
|
+
outputs: [],
|
|
1789
|
+
stateMutability: "nonpayable"
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
type: "event",
|
|
1793
|
+
name: "GlobalSaleDetailsUpdated",
|
|
1794
|
+
inputs: [
|
|
1795
|
+
{
|
|
1796
|
+
name: "cost",
|
|
1797
|
+
type: "uint256",
|
|
1798
|
+
indexed: false,
|
|
1799
|
+
internalType: "uint256"
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
name: "supplyCap",
|
|
1803
|
+
type: "uint256",
|
|
1804
|
+
indexed: false,
|
|
1805
|
+
internalType: "uint256"
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
name: "startTime",
|
|
1809
|
+
type: "uint64",
|
|
1810
|
+
indexed: false,
|
|
1811
|
+
internalType: "uint64"
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
name: "endTime",
|
|
1815
|
+
type: "uint64",
|
|
1816
|
+
indexed: false,
|
|
1817
|
+
internalType: "uint64"
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
name: "merkleRoot",
|
|
1821
|
+
type: "bytes32",
|
|
1822
|
+
indexed: false,
|
|
1823
|
+
internalType: "bytes32"
|
|
1824
|
+
}
|
|
1825
|
+
],
|
|
1826
|
+
anonymous: false
|
|
1827
|
+
},
|
|
1828
|
+
{
|
|
1829
|
+
type: "event",
|
|
1830
|
+
name: "ItemsMinted",
|
|
1831
|
+
inputs: [
|
|
1832
|
+
{
|
|
1833
|
+
name: "to",
|
|
1834
|
+
type: "address",
|
|
1835
|
+
indexed: false,
|
|
1836
|
+
internalType: "address"
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
name: "tokenIds",
|
|
1840
|
+
type: "uint256[]",
|
|
1841
|
+
indexed: false,
|
|
1842
|
+
internalType: "uint256[]"
|
|
1843
|
+
},
|
|
1844
|
+
{
|
|
1845
|
+
name: "amounts",
|
|
1846
|
+
type: "uint256[]",
|
|
1847
|
+
indexed: false,
|
|
1848
|
+
internalType: "uint256[]"
|
|
1849
|
+
}
|
|
1850
|
+
],
|
|
1851
|
+
anonymous: false
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
type: "event",
|
|
1855
|
+
name: "RoleAdminChanged",
|
|
1856
|
+
inputs: [
|
|
1857
|
+
{
|
|
1858
|
+
name: "role",
|
|
1859
|
+
type: "bytes32",
|
|
1860
|
+
indexed: true,
|
|
1861
|
+
internalType: "bytes32"
|
|
1862
|
+
},
|
|
1863
|
+
{
|
|
1864
|
+
name: "previousAdminRole",
|
|
1865
|
+
type: "bytes32",
|
|
1866
|
+
indexed: true,
|
|
1867
|
+
internalType: "bytes32"
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
name: "newAdminRole",
|
|
1871
|
+
type: "bytes32",
|
|
1872
|
+
indexed: true,
|
|
1873
|
+
internalType: "bytes32"
|
|
1874
|
+
}
|
|
1875
|
+
],
|
|
1876
|
+
anonymous: false
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
type: "event",
|
|
1880
|
+
name: "RoleGranted",
|
|
1881
|
+
inputs: [
|
|
1882
|
+
{
|
|
1883
|
+
name: "role",
|
|
1884
|
+
type: "bytes32",
|
|
1885
|
+
indexed: true,
|
|
1886
|
+
internalType: "bytes32"
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
name: "account",
|
|
1890
|
+
type: "address",
|
|
1891
|
+
indexed: true,
|
|
1892
|
+
internalType: "address"
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
name: "sender",
|
|
1896
|
+
type: "address",
|
|
1897
|
+
indexed: true,
|
|
1898
|
+
internalType: "address"
|
|
1899
|
+
}
|
|
1900
|
+
],
|
|
1901
|
+
anonymous: false
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
type: "event",
|
|
1905
|
+
name: "RoleRevoked",
|
|
1906
|
+
inputs: [
|
|
1907
|
+
{
|
|
1908
|
+
name: "role",
|
|
1909
|
+
type: "bytes32",
|
|
1910
|
+
indexed: true,
|
|
1911
|
+
internalType: "bytes32"
|
|
1912
|
+
},
|
|
1913
|
+
{
|
|
1914
|
+
name: "account",
|
|
1915
|
+
type: "address",
|
|
1916
|
+
indexed: true,
|
|
1917
|
+
internalType: "address"
|
|
1918
|
+
},
|
|
1919
|
+
{
|
|
1920
|
+
name: "sender",
|
|
1921
|
+
type: "address",
|
|
1922
|
+
indexed: true,
|
|
1923
|
+
internalType: "address"
|
|
1924
|
+
}
|
|
1925
|
+
],
|
|
1926
|
+
anonymous: false
|
|
1927
|
+
},
|
|
1928
|
+
{
|
|
1929
|
+
type: "event",
|
|
1930
|
+
name: "TokenSaleDetailsUpdated",
|
|
1931
|
+
inputs: [
|
|
1932
|
+
{
|
|
1933
|
+
name: "tokenId",
|
|
1934
|
+
type: "uint256",
|
|
1935
|
+
indexed: false,
|
|
1936
|
+
internalType: "uint256"
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
name: "cost",
|
|
1940
|
+
type: "uint256",
|
|
1941
|
+
indexed: false,
|
|
1942
|
+
internalType: "uint256"
|
|
1943
|
+
},
|
|
1944
|
+
{
|
|
1945
|
+
name: "supplyCap",
|
|
1946
|
+
type: "uint256",
|
|
1947
|
+
indexed: false,
|
|
1948
|
+
internalType: "uint256"
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
name: "startTime",
|
|
1952
|
+
type: "uint64",
|
|
1953
|
+
indexed: false,
|
|
1954
|
+
internalType: "uint64"
|
|
1955
|
+
},
|
|
1956
|
+
{
|
|
1957
|
+
name: "endTime",
|
|
1958
|
+
type: "uint64",
|
|
1959
|
+
indexed: false,
|
|
1960
|
+
internalType: "uint64"
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
name: "merkleRoot",
|
|
1964
|
+
type: "bytes32",
|
|
1965
|
+
indexed: false,
|
|
1966
|
+
internalType: "bytes32"
|
|
1967
|
+
}
|
|
1968
|
+
],
|
|
1969
|
+
anonymous: false
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
type: "error",
|
|
1973
|
+
name: "GlobalSaleInactive",
|
|
1974
|
+
inputs: []
|
|
1975
|
+
},
|
|
1976
|
+
{
|
|
1977
|
+
type: "error",
|
|
1978
|
+
name: "InsufficientPayment",
|
|
1979
|
+
inputs: [
|
|
1980
|
+
{
|
|
1981
|
+
name: "currency",
|
|
1982
|
+
type: "address",
|
|
1983
|
+
internalType: "address"
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
name: "expected",
|
|
1987
|
+
type: "uint256",
|
|
1988
|
+
internalType: "uint256"
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
name: "actual",
|
|
1992
|
+
type: "uint256",
|
|
1993
|
+
internalType: "uint256"
|
|
1994
|
+
}
|
|
1995
|
+
]
|
|
1996
|
+
},
|
|
1997
|
+
{
|
|
1998
|
+
type: "error",
|
|
1999
|
+
name: "InsufficientSupply",
|
|
2000
|
+
inputs: [
|
|
2001
|
+
{
|
|
2002
|
+
name: "currentSupply",
|
|
2003
|
+
type: "uint256",
|
|
2004
|
+
internalType: "uint256"
|
|
2005
|
+
},
|
|
2006
|
+
{
|
|
2007
|
+
name: "requestedAmount",
|
|
2008
|
+
type: "uint256",
|
|
2009
|
+
internalType: "uint256"
|
|
2010
|
+
},
|
|
2011
|
+
{
|
|
2012
|
+
name: "maxSupply",
|
|
2013
|
+
type: "uint256",
|
|
2014
|
+
internalType: "uint256"
|
|
2015
|
+
}
|
|
2016
|
+
]
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
type: "error",
|
|
2020
|
+
name: "InvalidInitialization",
|
|
2021
|
+
inputs: []
|
|
2022
|
+
},
|
|
2023
|
+
{
|
|
2024
|
+
type: "error",
|
|
2025
|
+
name: "InvalidSaleDetails",
|
|
2026
|
+
inputs: []
|
|
2027
|
+
},
|
|
2028
|
+
{
|
|
2029
|
+
type: "error",
|
|
2030
|
+
name: "InvalidTokenIds",
|
|
2031
|
+
inputs: []
|
|
2032
|
+
},
|
|
2033
|
+
{
|
|
2034
|
+
type: "error",
|
|
2035
|
+
name: "MerkleProofInvalid",
|
|
2036
|
+
inputs: [
|
|
2037
|
+
{
|
|
2038
|
+
name: "root",
|
|
2039
|
+
type: "bytes32",
|
|
2040
|
+
internalType: "bytes32"
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
name: "proof",
|
|
2044
|
+
type: "bytes32[]",
|
|
2045
|
+
internalType: "bytes32[]"
|
|
2046
|
+
},
|
|
2047
|
+
{
|
|
2048
|
+
name: "addr",
|
|
2049
|
+
type: "address",
|
|
2050
|
+
internalType: "address"
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
name: "salt",
|
|
2054
|
+
type: "bytes32",
|
|
2055
|
+
internalType: "bytes32"
|
|
2056
|
+
}
|
|
2057
|
+
]
|
|
2058
|
+
},
|
|
2059
|
+
{
|
|
2060
|
+
type: "error",
|
|
2061
|
+
name: "SaleInactive",
|
|
2062
|
+
inputs: [{
|
|
2063
|
+
name: "tokenId",
|
|
2064
|
+
type: "uint256",
|
|
2065
|
+
internalType: "uint256"
|
|
2066
|
+
}]
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
type: "error",
|
|
2070
|
+
name: "WithdrawFailed",
|
|
2071
|
+
inputs: []
|
|
2072
|
+
}
|
|
2073
|
+
];
|
|
2074
|
+
|
|
2075
|
+
//#endregion
|
|
2076
|
+
//#region src/utils/abi/primary-sale/sequence-1155-sales-contract-v1.ts
|
|
2077
|
+
const ERC1155_SALES_CONTRACT_ABI_V1 = [
|
|
2078
|
+
{
|
|
2079
|
+
inputs: [],
|
|
2080
|
+
name: "GlobalSaleInactive",
|
|
2081
|
+
type: "error"
|
|
2082
|
+
},
|
|
2083
|
+
{
|
|
2084
|
+
inputs: [
|
|
2085
|
+
{
|
|
2086
|
+
internalType: "address",
|
|
2087
|
+
name: "currency",
|
|
2088
|
+
type: "address"
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
internalType: "uint256",
|
|
2092
|
+
name: "expected",
|
|
2093
|
+
type: "uint256"
|
|
2094
|
+
},
|
|
2095
|
+
{
|
|
2096
|
+
internalType: "uint256",
|
|
2097
|
+
name: "actual",
|
|
2098
|
+
type: "uint256"
|
|
2099
|
+
}
|
|
2100
|
+
],
|
|
2101
|
+
name: "InsufficientPayment",
|
|
2102
|
+
type: "error"
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
inputs: [{
|
|
2106
|
+
internalType: "uint256",
|
|
2107
|
+
name: "remainingSupply",
|
|
2108
|
+
type: "uint256"
|
|
2109
|
+
}, {
|
|
2110
|
+
internalType: "uint256",
|
|
2111
|
+
name: "amount",
|
|
2112
|
+
type: "uint256"
|
|
2113
|
+
}],
|
|
2114
|
+
name: "InsufficientSupply",
|
|
2115
|
+
type: "error"
|
|
2116
|
+
},
|
|
2117
|
+
{
|
|
2118
|
+
inputs: [],
|
|
2119
|
+
name: "InvalidInitialization",
|
|
2120
|
+
type: "error"
|
|
2121
|
+
},
|
|
2122
|
+
{
|
|
2123
|
+
inputs: [],
|
|
2124
|
+
name: "InvalidSaleDetails",
|
|
2125
|
+
type: "error"
|
|
2126
|
+
},
|
|
2127
|
+
{
|
|
2128
|
+
inputs: [],
|
|
2129
|
+
name: "InvalidTokenIds",
|
|
2130
|
+
type: "error"
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
inputs: [
|
|
2134
|
+
{
|
|
2135
|
+
internalType: "bytes32",
|
|
2136
|
+
name: "root",
|
|
2137
|
+
type: "bytes32"
|
|
2138
|
+
},
|
|
2139
|
+
{
|
|
2140
|
+
internalType: "bytes32[]",
|
|
2141
|
+
name: "proof",
|
|
2142
|
+
type: "bytes32[]"
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
internalType: "address",
|
|
2146
|
+
name: "addr",
|
|
2147
|
+
type: "address"
|
|
2148
|
+
},
|
|
2149
|
+
{
|
|
2150
|
+
internalType: "bytes32",
|
|
2151
|
+
name: "salt",
|
|
2152
|
+
type: "bytes32"
|
|
2153
|
+
}
|
|
2154
|
+
],
|
|
2155
|
+
name: "MerkleProofInvalid",
|
|
2156
|
+
type: "error"
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
inputs: [{
|
|
2160
|
+
internalType: "uint256",
|
|
2161
|
+
name: "tokenId",
|
|
2162
|
+
type: "uint256"
|
|
2163
|
+
}],
|
|
2164
|
+
name: "SaleInactive",
|
|
2165
|
+
type: "error"
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
inputs: [],
|
|
2169
|
+
name: "WithdrawFailed",
|
|
2170
|
+
type: "error"
|
|
2171
|
+
},
|
|
2172
|
+
{
|
|
2173
|
+
anonymous: false,
|
|
2174
|
+
inputs: [
|
|
2175
|
+
{
|
|
2176
|
+
indexed: false,
|
|
2177
|
+
internalType: "uint256",
|
|
2178
|
+
name: "minTokenId",
|
|
2179
|
+
type: "uint256"
|
|
2180
|
+
},
|
|
2181
|
+
{
|
|
2182
|
+
indexed: false,
|
|
2183
|
+
internalType: "uint256",
|
|
2184
|
+
name: "maxTokenId",
|
|
2185
|
+
type: "uint256"
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
indexed: false,
|
|
2189
|
+
internalType: "uint256",
|
|
2190
|
+
name: "cost",
|
|
2191
|
+
type: "uint256"
|
|
2192
|
+
},
|
|
2193
|
+
{
|
|
2194
|
+
indexed: false,
|
|
2195
|
+
internalType: "uint256",
|
|
2196
|
+
name: "remainingSupply",
|
|
2197
|
+
type: "uint256"
|
|
2198
|
+
},
|
|
2199
|
+
{
|
|
2200
|
+
indexed: false,
|
|
2201
|
+
internalType: "uint64",
|
|
2202
|
+
name: "startTime",
|
|
2203
|
+
type: "uint64"
|
|
2204
|
+
},
|
|
2205
|
+
{
|
|
2206
|
+
indexed: false,
|
|
2207
|
+
internalType: "uint64",
|
|
2208
|
+
name: "endTime",
|
|
2209
|
+
type: "uint64"
|
|
2210
|
+
},
|
|
2211
|
+
{
|
|
2212
|
+
indexed: false,
|
|
2213
|
+
internalType: "bytes32",
|
|
2214
|
+
name: "merkleRoot",
|
|
2215
|
+
type: "bytes32"
|
|
2216
|
+
}
|
|
2217
|
+
],
|
|
2218
|
+
name: "GlobalSaleDetailsUpdated",
|
|
2219
|
+
type: "event"
|
|
2220
|
+
},
|
|
2221
|
+
{
|
|
2222
|
+
anonymous: false,
|
|
2223
|
+
inputs: [
|
|
2224
|
+
{
|
|
2225
|
+
indexed: false,
|
|
2226
|
+
internalType: "address",
|
|
2227
|
+
name: "to",
|
|
2228
|
+
type: "address"
|
|
2229
|
+
},
|
|
2230
|
+
{
|
|
2231
|
+
indexed: false,
|
|
2232
|
+
internalType: "uint256[]",
|
|
2233
|
+
name: "tokenIds",
|
|
2234
|
+
type: "uint256[]"
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
indexed: false,
|
|
2238
|
+
internalType: "uint256[]",
|
|
2239
|
+
name: "amounts",
|
|
2240
|
+
type: "uint256[]"
|
|
2241
|
+
}
|
|
2242
|
+
],
|
|
2243
|
+
name: "ItemsMinted",
|
|
2244
|
+
type: "event"
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
anonymous: false,
|
|
2248
|
+
inputs: [
|
|
2249
|
+
{
|
|
2250
|
+
indexed: true,
|
|
2251
|
+
internalType: "bytes32",
|
|
2252
|
+
name: "role",
|
|
2253
|
+
type: "bytes32"
|
|
2254
|
+
},
|
|
2255
|
+
{
|
|
2256
|
+
indexed: true,
|
|
2257
|
+
internalType: "bytes32",
|
|
2258
|
+
name: "previousAdminRole",
|
|
2259
|
+
type: "bytes32"
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
indexed: true,
|
|
2263
|
+
internalType: "bytes32",
|
|
2264
|
+
name: "newAdminRole",
|
|
2265
|
+
type: "bytes32"
|
|
2266
|
+
}
|
|
2267
|
+
],
|
|
2268
|
+
name: "RoleAdminChanged",
|
|
2269
|
+
type: "event"
|
|
2270
|
+
},
|
|
2271
|
+
{
|
|
2272
|
+
anonymous: false,
|
|
2273
|
+
inputs: [
|
|
2274
|
+
{
|
|
2275
|
+
indexed: true,
|
|
2276
|
+
internalType: "bytes32",
|
|
2277
|
+
name: "role",
|
|
2278
|
+
type: "bytes32"
|
|
2279
|
+
},
|
|
2280
|
+
{
|
|
2281
|
+
indexed: true,
|
|
2282
|
+
internalType: "address",
|
|
2283
|
+
name: "account",
|
|
2284
|
+
type: "address"
|
|
2285
|
+
},
|
|
2286
|
+
{
|
|
2287
|
+
indexed: true,
|
|
2288
|
+
internalType: "address",
|
|
2289
|
+
name: "sender",
|
|
2290
|
+
type: "address"
|
|
2291
|
+
}
|
|
2292
|
+
],
|
|
2293
|
+
name: "RoleGranted",
|
|
2294
|
+
type: "event"
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
anonymous: false,
|
|
2298
|
+
inputs: [
|
|
2299
|
+
{
|
|
2300
|
+
indexed: true,
|
|
2301
|
+
internalType: "bytes32",
|
|
2302
|
+
name: "role",
|
|
2303
|
+
type: "bytes32"
|
|
2304
|
+
},
|
|
2305
|
+
{
|
|
2306
|
+
indexed: true,
|
|
2307
|
+
internalType: "address",
|
|
2308
|
+
name: "account",
|
|
2309
|
+
type: "address"
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
indexed: true,
|
|
2313
|
+
internalType: "address",
|
|
2314
|
+
name: "sender",
|
|
2315
|
+
type: "address"
|
|
2316
|
+
}
|
|
2317
|
+
],
|
|
2318
|
+
name: "RoleRevoked",
|
|
2319
|
+
type: "event"
|
|
2320
|
+
},
|
|
2321
|
+
{
|
|
2322
|
+
anonymous: false,
|
|
2323
|
+
inputs: [
|
|
2324
|
+
{
|
|
2325
|
+
indexed: false,
|
|
2326
|
+
internalType: "uint256",
|
|
2327
|
+
name: "tokenId",
|
|
2328
|
+
type: "uint256"
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
indexed: false,
|
|
2332
|
+
internalType: "uint256",
|
|
2333
|
+
name: "cost",
|
|
2334
|
+
type: "uint256"
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
indexed: false,
|
|
2338
|
+
internalType: "uint256",
|
|
2339
|
+
name: "remainingSupply",
|
|
2340
|
+
type: "uint256"
|
|
2341
|
+
},
|
|
2342
|
+
{
|
|
2343
|
+
indexed: false,
|
|
2344
|
+
internalType: "uint64",
|
|
2345
|
+
name: "startTime",
|
|
2346
|
+
type: "uint64"
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
indexed: false,
|
|
2350
|
+
internalType: "uint64",
|
|
2351
|
+
name: "endTime",
|
|
2352
|
+
type: "uint64"
|
|
2353
|
+
},
|
|
2354
|
+
{
|
|
2355
|
+
indexed: false,
|
|
2356
|
+
internalType: "bytes32",
|
|
2357
|
+
name: "merkleRoot",
|
|
2358
|
+
type: "bytes32"
|
|
2359
|
+
}
|
|
2360
|
+
],
|
|
2361
|
+
name: "TokenSaleDetailsUpdated",
|
|
2362
|
+
type: "event"
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
inputs: [],
|
|
2366
|
+
name: "DEFAULT_ADMIN_ROLE",
|
|
2367
|
+
outputs: [{
|
|
2368
|
+
internalType: "bytes32",
|
|
2369
|
+
name: "",
|
|
2370
|
+
type: "bytes32"
|
|
2371
|
+
}],
|
|
2372
|
+
stateMutability: "view",
|
|
2373
|
+
type: "function"
|
|
2374
|
+
},
|
|
2375
|
+
{
|
|
2376
|
+
inputs: [
|
|
2377
|
+
{
|
|
2378
|
+
internalType: "address",
|
|
2379
|
+
name: "wallet",
|
|
2380
|
+
type: "address"
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
components: [
|
|
2384
|
+
{
|
|
2385
|
+
internalType: "address",
|
|
2386
|
+
name: "approvedSigner",
|
|
2387
|
+
type: "address"
|
|
2388
|
+
},
|
|
2389
|
+
{
|
|
2390
|
+
internalType: "bytes4",
|
|
2391
|
+
name: "identityType",
|
|
2392
|
+
type: "bytes4"
|
|
2393
|
+
},
|
|
2394
|
+
{
|
|
2395
|
+
internalType: "bytes32",
|
|
2396
|
+
name: "issuerHash",
|
|
2397
|
+
type: "bytes32"
|
|
2398
|
+
},
|
|
2399
|
+
{
|
|
2400
|
+
internalType: "bytes32",
|
|
2401
|
+
name: "audienceHash",
|
|
2402
|
+
type: "bytes32"
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
internalType: "bytes",
|
|
2406
|
+
name: "applicationData",
|
|
2407
|
+
type: "bytes"
|
|
2408
|
+
},
|
|
2409
|
+
{
|
|
2410
|
+
components: [{
|
|
2411
|
+
internalType: "string",
|
|
2412
|
+
name: "redirectUrl",
|
|
2413
|
+
type: "string"
|
|
2414
|
+
}, {
|
|
2415
|
+
internalType: "uint64",
|
|
2416
|
+
name: "issuedAt",
|
|
2417
|
+
type: "uint64"
|
|
2418
|
+
}],
|
|
2419
|
+
internalType: "struct AuthData",
|
|
2420
|
+
name: "authData",
|
|
2421
|
+
type: "tuple"
|
|
2422
|
+
}
|
|
2423
|
+
],
|
|
2424
|
+
internalType: "struct Attestation",
|
|
2425
|
+
name: "attestation",
|
|
2426
|
+
type: "tuple"
|
|
2427
|
+
},
|
|
2428
|
+
{
|
|
2429
|
+
components: [
|
|
2430
|
+
{
|
|
2431
|
+
internalType: "address",
|
|
2432
|
+
name: "to",
|
|
2433
|
+
type: "address"
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
internalType: "uint256",
|
|
2437
|
+
name: "value",
|
|
2438
|
+
type: "uint256"
|
|
2439
|
+
},
|
|
2440
|
+
{
|
|
2441
|
+
internalType: "bytes",
|
|
2442
|
+
name: "data",
|
|
2443
|
+
type: "bytes"
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
internalType: "uint256",
|
|
2447
|
+
name: "gasLimit",
|
|
2448
|
+
type: "uint256"
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
internalType: "bool",
|
|
2452
|
+
name: "delegateCall",
|
|
2453
|
+
type: "bool"
|
|
2454
|
+
},
|
|
2455
|
+
{
|
|
2456
|
+
internalType: "bool",
|
|
2457
|
+
name: "onlyFallback",
|
|
2458
|
+
type: "bool"
|
|
2459
|
+
},
|
|
2460
|
+
{
|
|
2461
|
+
internalType: "uint256",
|
|
2462
|
+
name: "behaviorOnError",
|
|
2463
|
+
type: "uint256"
|
|
2464
|
+
}
|
|
2465
|
+
],
|
|
2466
|
+
internalType: "struct Payload.Call",
|
|
2467
|
+
name: "call",
|
|
2468
|
+
type: "tuple"
|
|
2469
|
+
}
|
|
2470
|
+
],
|
|
2471
|
+
name: "acceptImplicitRequest",
|
|
2472
|
+
outputs: [{
|
|
2473
|
+
internalType: "bytes32",
|
|
2474
|
+
name: "",
|
|
2475
|
+
type: "bytes32"
|
|
2476
|
+
}],
|
|
2477
|
+
stateMutability: "view",
|
|
2478
|
+
type: "function"
|
|
2479
|
+
},
|
|
2480
|
+
{
|
|
2481
|
+
inputs: [
|
|
2482
|
+
{
|
|
2483
|
+
internalType: "bytes32",
|
|
2484
|
+
name: "root",
|
|
2485
|
+
type: "bytes32"
|
|
2486
|
+
},
|
|
2487
|
+
{
|
|
2488
|
+
internalType: "bytes32[]",
|
|
2489
|
+
name: "proof",
|
|
2490
|
+
type: "bytes32[]"
|
|
2491
|
+
},
|
|
2492
|
+
{
|
|
2493
|
+
internalType: "address",
|
|
2494
|
+
name: "addr",
|
|
2495
|
+
type: "address"
|
|
2496
|
+
},
|
|
2497
|
+
{
|
|
2498
|
+
internalType: "bytes32",
|
|
2499
|
+
name: "salt",
|
|
2500
|
+
type: "bytes32"
|
|
2501
|
+
}
|
|
2502
|
+
],
|
|
2503
|
+
name: "checkMerkleProof",
|
|
2504
|
+
outputs: [{
|
|
2505
|
+
internalType: "bool",
|
|
2506
|
+
name: "",
|
|
2507
|
+
type: "bool"
|
|
2508
|
+
}],
|
|
2509
|
+
stateMutability: "view",
|
|
2510
|
+
type: "function"
|
|
2511
|
+
},
|
|
2512
|
+
{
|
|
2513
|
+
inputs: [{
|
|
2514
|
+
internalType: "bytes32",
|
|
2515
|
+
name: "role",
|
|
2516
|
+
type: "bytes32"
|
|
2517
|
+
}],
|
|
2518
|
+
name: "getRoleAdmin",
|
|
2519
|
+
outputs: [{
|
|
2520
|
+
internalType: "bytes32",
|
|
2521
|
+
name: "",
|
|
2522
|
+
type: "bytes32"
|
|
2523
|
+
}],
|
|
2524
|
+
stateMutability: "view",
|
|
2525
|
+
type: "function"
|
|
2526
|
+
},
|
|
2527
|
+
{
|
|
2528
|
+
inputs: [{
|
|
2529
|
+
internalType: "bytes32",
|
|
2530
|
+
name: "role",
|
|
2531
|
+
type: "bytes32"
|
|
2532
|
+
}, {
|
|
2533
|
+
internalType: "uint256",
|
|
2534
|
+
name: "index",
|
|
2535
|
+
type: "uint256"
|
|
2536
|
+
}],
|
|
2537
|
+
name: "getRoleMember",
|
|
2538
|
+
outputs: [{
|
|
2539
|
+
internalType: "address",
|
|
2540
|
+
name: "",
|
|
2541
|
+
type: "address"
|
|
2542
|
+
}],
|
|
2543
|
+
stateMutability: "view",
|
|
2544
|
+
type: "function"
|
|
2545
|
+
},
|
|
2546
|
+
{
|
|
2547
|
+
inputs: [{
|
|
2548
|
+
internalType: "bytes32",
|
|
2549
|
+
name: "role",
|
|
2550
|
+
type: "bytes32"
|
|
2551
|
+
}],
|
|
2552
|
+
name: "getRoleMemberCount",
|
|
2553
|
+
outputs: [{
|
|
2554
|
+
internalType: "uint256",
|
|
2555
|
+
name: "",
|
|
2556
|
+
type: "uint256"
|
|
2557
|
+
}],
|
|
2558
|
+
stateMutability: "view",
|
|
2559
|
+
type: "function"
|
|
2560
|
+
},
|
|
2561
|
+
{
|
|
2562
|
+
inputs: [],
|
|
2563
|
+
name: "globalSaleDetails",
|
|
2564
|
+
outputs: [{
|
|
2565
|
+
components: [
|
|
2566
|
+
{
|
|
2567
|
+
internalType: "uint256",
|
|
2568
|
+
name: "minTokenId",
|
|
2569
|
+
type: "uint256"
|
|
2570
|
+
},
|
|
2571
|
+
{
|
|
2572
|
+
internalType: "uint256",
|
|
2573
|
+
name: "maxTokenId",
|
|
2574
|
+
type: "uint256"
|
|
2575
|
+
},
|
|
2576
|
+
{
|
|
2577
|
+
internalType: "uint256",
|
|
2578
|
+
name: "cost",
|
|
2579
|
+
type: "uint256"
|
|
2580
|
+
},
|
|
2581
|
+
{
|
|
2582
|
+
internalType: "uint256",
|
|
2583
|
+
name: "remainingSupply",
|
|
2584
|
+
type: "uint256"
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
internalType: "uint64",
|
|
2588
|
+
name: "startTime",
|
|
2589
|
+
type: "uint64"
|
|
2590
|
+
},
|
|
2591
|
+
{
|
|
2592
|
+
internalType: "uint64",
|
|
2593
|
+
name: "endTime",
|
|
2594
|
+
type: "uint64"
|
|
2595
|
+
},
|
|
2596
|
+
{
|
|
2597
|
+
internalType: "bytes32",
|
|
2598
|
+
name: "merkleRoot",
|
|
2599
|
+
type: "bytes32"
|
|
2600
|
+
}
|
|
2601
|
+
],
|
|
2602
|
+
internalType: "struct IERC1155SaleFunctions.GlobalSaleDetails",
|
|
2603
|
+
name: "",
|
|
2604
|
+
type: "tuple"
|
|
2605
|
+
}],
|
|
2606
|
+
stateMutability: "view",
|
|
2607
|
+
type: "function"
|
|
2608
|
+
},
|
|
2609
|
+
{
|
|
2610
|
+
inputs: [{
|
|
2611
|
+
internalType: "bytes32",
|
|
2612
|
+
name: "role",
|
|
2613
|
+
type: "bytes32"
|
|
2614
|
+
}, {
|
|
2615
|
+
internalType: "address",
|
|
2616
|
+
name: "account",
|
|
2617
|
+
type: "address"
|
|
2618
|
+
}],
|
|
2619
|
+
name: "grantRole",
|
|
2620
|
+
outputs: [],
|
|
2621
|
+
stateMutability: "nonpayable",
|
|
2622
|
+
type: "function"
|
|
2623
|
+
},
|
|
2624
|
+
{
|
|
2625
|
+
inputs: [{
|
|
2626
|
+
internalType: "bytes32",
|
|
2627
|
+
name: "role",
|
|
2628
|
+
type: "bytes32"
|
|
2629
|
+
}, {
|
|
2630
|
+
internalType: "address",
|
|
2631
|
+
name: "account",
|
|
2632
|
+
type: "address"
|
|
2633
|
+
}],
|
|
2634
|
+
name: "hasRole",
|
|
2635
|
+
outputs: [{
|
|
2636
|
+
internalType: "bool",
|
|
2637
|
+
name: "",
|
|
2638
|
+
type: "bool"
|
|
2639
|
+
}],
|
|
2640
|
+
stateMutability: "view",
|
|
2641
|
+
type: "function"
|
|
2642
|
+
},
|
|
2643
|
+
{
|
|
2644
|
+
inputs: [
|
|
2645
|
+
{
|
|
2646
|
+
internalType: "address",
|
|
2647
|
+
name: "owner",
|
|
2648
|
+
type: "address"
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
internalType: "address",
|
|
2652
|
+
name: "items",
|
|
2653
|
+
type: "address"
|
|
2654
|
+
},
|
|
2655
|
+
{
|
|
2656
|
+
internalType: "address",
|
|
2657
|
+
name: "implicitModeValidator",
|
|
2658
|
+
type: "address"
|
|
2659
|
+
},
|
|
2660
|
+
{
|
|
2661
|
+
internalType: "bytes32",
|
|
2662
|
+
name: "implicitModeProjectId",
|
|
2663
|
+
type: "bytes32"
|
|
2664
|
+
}
|
|
2665
|
+
],
|
|
2666
|
+
name: "initialize",
|
|
2667
|
+
outputs: [],
|
|
2668
|
+
stateMutability: "nonpayable",
|
|
2669
|
+
type: "function"
|
|
2670
|
+
},
|
|
2671
|
+
{
|
|
2672
|
+
inputs: [
|
|
2673
|
+
{
|
|
2674
|
+
internalType: "address",
|
|
2675
|
+
name: "to",
|
|
2676
|
+
type: "address"
|
|
2677
|
+
},
|
|
2678
|
+
{
|
|
2679
|
+
internalType: "uint256[]",
|
|
2680
|
+
name: "tokenIds",
|
|
2681
|
+
type: "uint256[]"
|
|
2682
|
+
},
|
|
2683
|
+
{
|
|
2684
|
+
internalType: "uint256[]",
|
|
2685
|
+
name: "amounts",
|
|
2686
|
+
type: "uint256[]"
|
|
2687
|
+
},
|
|
2688
|
+
{
|
|
2689
|
+
internalType: "bytes",
|
|
2690
|
+
name: "data",
|
|
2691
|
+
type: "bytes"
|
|
2692
|
+
},
|
|
2693
|
+
{
|
|
2694
|
+
internalType: "address",
|
|
2695
|
+
name: "expectedPaymentToken",
|
|
2696
|
+
type: "address"
|
|
2697
|
+
},
|
|
2698
|
+
{
|
|
2699
|
+
internalType: "uint256",
|
|
2700
|
+
name: "maxTotal",
|
|
2701
|
+
type: "uint256"
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
internalType: "bytes32[]",
|
|
2705
|
+
name: "proof",
|
|
2706
|
+
type: "bytes32[]"
|
|
2707
|
+
}
|
|
2708
|
+
],
|
|
2709
|
+
name: "mint",
|
|
2710
|
+
outputs: [],
|
|
2711
|
+
stateMutability: "payable",
|
|
2712
|
+
type: "function"
|
|
2713
|
+
},
|
|
2714
|
+
{
|
|
2715
|
+
inputs: [],
|
|
2716
|
+
name: "paymentToken",
|
|
2717
|
+
outputs: [{
|
|
2718
|
+
internalType: "address",
|
|
2719
|
+
name: "",
|
|
2720
|
+
type: "address"
|
|
2721
|
+
}],
|
|
2722
|
+
stateMutability: "view",
|
|
2723
|
+
type: "function"
|
|
2724
|
+
},
|
|
2725
|
+
{
|
|
2726
|
+
inputs: [{
|
|
2727
|
+
internalType: "bytes32",
|
|
2728
|
+
name: "role",
|
|
2729
|
+
type: "bytes32"
|
|
2730
|
+
}, {
|
|
2731
|
+
internalType: "address",
|
|
2732
|
+
name: "account",
|
|
2733
|
+
type: "address"
|
|
2734
|
+
}],
|
|
2735
|
+
name: "renounceRole",
|
|
2736
|
+
outputs: [],
|
|
2737
|
+
stateMutability: "nonpayable",
|
|
2738
|
+
type: "function"
|
|
2739
|
+
},
|
|
2740
|
+
{
|
|
2741
|
+
inputs: [{
|
|
2742
|
+
internalType: "bytes32",
|
|
2743
|
+
name: "role",
|
|
2744
|
+
type: "bytes32"
|
|
2745
|
+
}, {
|
|
2746
|
+
internalType: "address",
|
|
2747
|
+
name: "account",
|
|
2748
|
+
type: "address"
|
|
2749
|
+
}],
|
|
2750
|
+
name: "revokeRole",
|
|
2751
|
+
outputs: [],
|
|
2752
|
+
stateMutability: "nonpayable",
|
|
2753
|
+
type: "function"
|
|
2754
|
+
},
|
|
2755
|
+
{
|
|
2756
|
+
inputs: [
|
|
2757
|
+
{
|
|
2758
|
+
internalType: "uint256",
|
|
2759
|
+
name: "minTokenId",
|
|
2760
|
+
type: "uint256"
|
|
2761
|
+
},
|
|
2762
|
+
{
|
|
2763
|
+
internalType: "uint256",
|
|
2764
|
+
name: "maxTokenId",
|
|
2765
|
+
type: "uint256"
|
|
2766
|
+
},
|
|
2767
|
+
{
|
|
2768
|
+
internalType: "uint256",
|
|
2769
|
+
name: "cost",
|
|
2770
|
+
type: "uint256"
|
|
2771
|
+
},
|
|
2772
|
+
{
|
|
2773
|
+
internalType: "uint256",
|
|
2774
|
+
name: "remainingSupply",
|
|
2775
|
+
type: "uint256"
|
|
2776
|
+
},
|
|
2777
|
+
{
|
|
2778
|
+
internalType: "uint64",
|
|
2779
|
+
name: "startTime",
|
|
2780
|
+
type: "uint64"
|
|
2781
|
+
},
|
|
2782
|
+
{
|
|
2783
|
+
internalType: "uint64",
|
|
2784
|
+
name: "endTime",
|
|
2785
|
+
type: "uint64"
|
|
2786
|
+
},
|
|
2787
|
+
{
|
|
2788
|
+
internalType: "bytes32",
|
|
2789
|
+
name: "merkleRoot",
|
|
2790
|
+
type: "bytes32"
|
|
2791
|
+
}
|
|
2792
|
+
],
|
|
2793
|
+
name: "setGlobalSaleDetails",
|
|
2794
|
+
outputs: [],
|
|
2795
|
+
stateMutability: "nonpayable",
|
|
2796
|
+
type: "function"
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
inputs: [{
|
|
2800
|
+
internalType: "bytes32",
|
|
2801
|
+
name: "projectId",
|
|
2802
|
+
type: "bytes32"
|
|
2803
|
+
}],
|
|
2804
|
+
name: "setImplicitModeProjectId",
|
|
2805
|
+
outputs: [],
|
|
2806
|
+
stateMutability: "nonpayable",
|
|
2807
|
+
type: "function"
|
|
2808
|
+
},
|
|
2809
|
+
{
|
|
2810
|
+
inputs: [{
|
|
2811
|
+
internalType: "address",
|
|
2812
|
+
name: "validator",
|
|
2813
|
+
type: "address"
|
|
2814
|
+
}],
|
|
2815
|
+
name: "setImplicitModeValidator",
|
|
2816
|
+
outputs: [],
|
|
2817
|
+
stateMutability: "nonpayable",
|
|
2818
|
+
type: "function"
|
|
2819
|
+
},
|
|
2820
|
+
{
|
|
2821
|
+
inputs: [{
|
|
2822
|
+
internalType: "address",
|
|
2823
|
+
name: "paymentTokenAddr",
|
|
2824
|
+
type: "address"
|
|
2825
|
+
}],
|
|
2826
|
+
name: "setPaymentToken",
|
|
2827
|
+
outputs: [],
|
|
2828
|
+
stateMutability: "nonpayable",
|
|
2829
|
+
type: "function"
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
inputs: [
|
|
2833
|
+
{
|
|
2834
|
+
internalType: "uint256",
|
|
2835
|
+
name: "tokenId",
|
|
2836
|
+
type: "uint256"
|
|
2837
|
+
},
|
|
2838
|
+
{
|
|
2839
|
+
internalType: "uint256",
|
|
2840
|
+
name: "cost",
|
|
2841
|
+
type: "uint256"
|
|
2842
|
+
},
|
|
2843
|
+
{
|
|
2844
|
+
internalType: "uint256",
|
|
2845
|
+
name: "remainingSupply",
|
|
2846
|
+
type: "uint256"
|
|
2847
|
+
},
|
|
2848
|
+
{
|
|
2849
|
+
internalType: "uint64",
|
|
2850
|
+
name: "startTime",
|
|
2851
|
+
type: "uint64"
|
|
2852
|
+
},
|
|
2853
|
+
{
|
|
2854
|
+
internalType: "uint64",
|
|
2855
|
+
name: "endTime",
|
|
2856
|
+
type: "uint64"
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
internalType: "bytes32",
|
|
2860
|
+
name: "merkleRoot",
|
|
2861
|
+
type: "bytes32"
|
|
2862
|
+
}
|
|
2863
|
+
],
|
|
2864
|
+
name: "setTokenSaleDetails",
|
|
2865
|
+
outputs: [],
|
|
2866
|
+
stateMutability: "nonpayable",
|
|
2867
|
+
type: "function"
|
|
2868
|
+
},
|
|
2869
|
+
{
|
|
2870
|
+
inputs: [
|
|
2871
|
+
{
|
|
2872
|
+
internalType: "uint256[]",
|
|
2873
|
+
name: "tokenIds",
|
|
2874
|
+
type: "uint256[]"
|
|
2875
|
+
},
|
|
2876
|
+
{
|
|
2877
|
+
internalType: "uint256[]",
|
|
2878
|
+
name: "costs",
|
|
2879
|
+
type: "uint256[]"
|
|
2880
|
+
},
|
|
2881
|
+
{
|
|
2882
|
+
internalType: "uint256[]",
|
|
2883
|
+
name: "remainingSupplies",
|
|
2884
|
+
type: "uint256[]"
|
|
2885
|
+
},
|
|
2886
|
+
{
|
|
2887
|
+
internalType: "uint64[]",
|
|
2888
|
+
name: "startTimes",
|
|
2889
|
+
type: "uint64[]"
|
|
2890
|
+
},
|
|
2891
|
+
{
|
|
2892
|
+
internalType: "uint64[]",
|
|
2893
|
+
name: "endTimes",
|
|
2894
|
+
type: "uint64[]"
|
|
2895
|
+
},
|
|
2896
|
+
{
|
|
2897
|
+
internalType: "bytes32[]",
|
|
2898
|
+
name: "merkleRoots",
|
|
2899
|
+
type: "bytes32[]"
|
|
2900
|
+
}
|
|
2901
|
+
],
|
|
2902
|
+
name: "setTokenSaleDetailsBatch",
|
|
2903
|
+
outputs: [],
|
|
2904
|
+
stateMutability: "nonpayable",
|
|
2905
|
+
type: "function"
|
|
2906
|
+
},
|
|
2907
|
+
{
|
|
2908
|
+
inputs: [{
|
|
2909
|
+
internalType: "bytes4",
|
|
2910
|
+
name: "interfaceId",
|
|
2911
|
+
type: "bytes4"
|
|
2912
|
+
}],
|
|
2913
|
+
name: "supportsInterface",
|
|
2914
|
+
outputs: [{
|
|
2915
|
+
internalType: "bool",
|
|
2916
|
+
name: "",
|
|
2917
|
+
type: "bool"
|
|
2918
|
+
}],
|
|
2919
|
+
stateMutability: "view",
|
|
2920
|
+
type: "function"
|
|
2921
|
+
},
|
|
2922
|
+
{
|
|
2923
|
+
inputs: [{
|
|
2924
|
+
internalType: "uint256",
|
|
2925
|
+
name: "tokenId",
|
|
2926
|
+
type: "uint256"
|
|
2927
|
+
}],
|
|
2928
|
+
name: "tokenSaleDetails",
|
|
2929
|
+
outputs: [{
|
|
2930
|
+
components: [
|
|
2931
|
+
{
|
|
2932
|
+
internalType: "uint256",
|
|
2933
|
+
name: "cost",
|
|
2934
|
+
type: "uint256"
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
internalType: "uint256",
|
|
2938
|
+
name: "remainingSupply",
|
|
2939
|
+
type: "uint256"
|
|
2940
|
+
},
|
|
2941
|
+
{
|
|
2942
|
+
internalType: "uint64",
|
|
2943
|
+
name: "startTime",
|
|
2944
|
+
type: "uint64"
|
|
2945
|
+
},
|
|
2946
|
+
{
|
|
2947
|
+
internalType: "uint64",
|
|
2948
|
+
name: "endTime",
|
|
2949
|
+
type: "uint64"
|
|
2950
|
+
},
|
|
2951
|
+
{
|
|
2952
|
+
internalType: "bytes32",
|
|
2953
|
+
name: "merkleRoot",
|
|
2954
|
+
type: "bytes32"
|
|
2955
|
+
}
|
|
2956
|
+
],
|
|
2957
|
+
internalType: "struct IERC1155SaleFunctions.SaleDetails",
|
|
2958
|
+
name: "",
|
|
2959
|
+
type: "tuple"
|
|
2960
|
+
}],
|
|
2961
|
+
stateMutability: "view",
|
|
2962
|
+
type: "function"
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
inputs: [{
|
|
2966
|
+
internalType: "uint256[]",
|
|
2967
|
+
name: "tokenIds",
|
|
2968
|
+
type: "uint256[]"
|
|
2969
|
+
}],
|
|
2970
|
+
name: "tokenSaleDetailsBatch",
|
|
2971
|
+
outputs: [{
|
|
2972
|
+
components: [
|
|
2973
|
+
{
|
|
2974
|
+
internalType: "uint256",
|
|
2975
|
+
name: "cost",
|
|
2976
|
+
type: "uint256"
|
|
2977
|
+
},
|
|
2978
|
+
{
|
|
2979
|
+
internalType: "uint256",
|
|
2980
|
+
name: "remainingSupply",
|
|
2981
|
+
type: "uint256"
|
|
2982
|
+
},
|
|
2983
|
+
{
|
|
2984
|
+
internalType: "uint64",
|
|
2985
|
+
name: "startTime",
|
|
2986
|
+
type: "uint64"
|
|
2987
|
+
},
|
|
2988
|
+
{
|
|
2989
|
+
internalType: "uint64",
|
|
2990
|
+
name: "endTime",
|
|
2991
|
+
type: "uint64"
|
|
2992
|
+
},
|
|
2993
|
+
{
|
|
2994
|
+
internalType: "bytes32",
|
|
2995
|
+
name: "merkleRoot",
|
|
2996
|
+
type: "bytes32"
|
|
2997
|
+
}
|
|
2998
|
+
],
|
|
2999
|
+
internalType: "struct IERC1155SaleFunctions.SaleDetails[]",
|
|
3000
|
+
name: "",
|
|
3001
|
+
type: "tuple[]"
|
|
3002
|
+
}],
|
|
3003
|
+
stateMutability: "view",
|
|
3004
|
+
type: "function"
|
|
3005
|
+
},
|
|
3006
|
+
{
|
|
3007
|
+
inputs: [
|
|
3008
|
+
{
|
|
3009
|
+
internalType: "address",
|
|
3010
|
+
name: "token",
|
|
3011
|
+
type: "address"
|
|
3012
|
+
},
|
|
3013
|
+
{
|
|
3014
|
+
internalType: "address",
|
|
3015
|
+
name: "to",
|
|
3016
|
+
type: "address"
|
|
3017
|
+
},
|
|
3018
|
+
{
|
|
3019
|
+
internalType: "uint256",
|
|
3020
|
+
name: "value",
|
|
3021
|
+
type: "uint256"
|
|
3022
|
+
}
|
|
3023
|
+
],
|
|
3024
|
+
name: "withdrawERC20",
|
|
3025
|
+
outputs: [],
|
|
3026
|
+
stateMutability: "nonpayable",
|
|
3027
|
+
type: "function"
|
|
3028
|
+
},
|
|
3029
|
+
{
|
|
3030
|
+
inputs: [{
|
|
3031
|
+
internalType: "address",
|
|
3032
|
+
name: "to",
|
|
3033
|
+
type: "address"
|
|
3034
|
+
}, {
|
|
3035
|
+
internalType: "uint256",
|
|
3036
|
+
name: "value",
|
|
3037
|
+
type: "uint256"
|
|
3038
|
+
}],
|
|
3039
|
+
name: "withdrawETH",
|
|
3040
|
+
outputs: [],
|
|
3041
|
+
stateMutability: "nonpayable",
|
|
3042
|
+
type: "function"
|
|
3043
|
+
}
|
|
3044
|
+
];
|
|
3045
|
+
|
|
3046
|
+
//#endregion
|
|
3047
|
+
export { ERC721_SALE_ABI_V0 as i, ERC1155_SALES_CONTRACT_ABI_V0 as n, ERC721_SALE_ABI_V1 as r, ERC1155_SALES_CONTRACT_ABI_V1 as t };
|
|
3048
|
+
//# sourceMappingURL=primary-sale.js.map
|