@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,853 @@
|
|
|
1
|
+
import { Ct as GetTokenBalancesResponse, Et as GetTokenIDRangesResponse, Ft as Address$1, _t as SearchTokenMetadataReturn$1, yt as TokenMetadata$1 } from "./index2.js";
|
|
2
|
+
import { B as Optional } from "./create-config.js";
|
|
3
|
+
import { f as ListTokenMetadataQueryOptions, n as GetTokenRangesQueryOptions, r as fetchGetTokenRanges, s as SearchTokenMetadataQueryOptions, v as UseListBalancesParams } from "./ranges.js";
|
|
4
|
+
import * as _0xsequence_metadata23 from "@0xsequence/metadata";
|
|
5
|
+
import { useBalance, useReadContracts } from "wagmi";
|
|
6
|
+
import * as _tanstack_react_query232 from "@tanstack/react-query";
|
|
7
|
+
|
|
8
|
+
//#region src/react/hooks/token/balances.d.ts
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Hook to fetch a list of token balances with pagination support
|
|
12
|
+
*
|
|
13
|
+
* Fetches token balances for a specific account with support for filtering by
|
|
14
|
+
* contract and token ID, metadata inclusion, and infinite pagination.
|
|
15
|
+
*
|
|
16
|
+
* @param params - Configuration parameters
|
|
17
|
+
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
18
|
+
* @param params.accountAddress - The account address to fetch balances for (required)
|
|
19
|
+
* @param params.contractAddress - The contract address to filter balances (optional)
|
|
20
|
+
* @param params.tokenId - Optional token ID to filter balances
|
|
21
|
+
* @param params.includeMetadata - Whether to include token metadata
|
|
22
|
+
* @param params.query - Optional React Query configuration
|
|
23
|
+
*
|
|
24
|
+
* @returns Infinite query result containing the balances data
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Basic usage without contract filter:
|
|
28
|
+
* ```tsx
|
|
29
|
+
* const { data, isLoading, error, fetchNextPage } = useTokenBalances({
|
|
30
|
+
* chainId: 1,
|
|
31
|
+
* accountAddress: '0x123...'
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* With contract filter and metadata:
|
|
37
|
+
* ```tsx
|
|
38
|
+
* const { data, isLoading, fetchNextPage } = useTokenBalances({
|
|
39
|
+
* chainId: 137,
|
|
40
|
+
* accountAddress: '0x123...',
|
|
41
|
+
* contractAddress: '0x456...',
|
|
42
|
+
* includeMetadata: true,
|
|
43
|
+
* query: {
|
|
44
|
+
* enabled: true,
|
|
45
|
+
* refetchInterval: 10000,
|
|
46
|
+
* }
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
declare function useTokenBalances(params: UseListBalancesParams): _tanstack_react_query232.UseInfiniteQueryResult<_tanstack_react_query232.InfiniteData<GetTokenBalancesResponse, unknown>, Error>;
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/react/hooks/token/currency-balance.d.ts
|
|
53
|
+
type UseCurrencyBalanceArgs = {
|
|
54
|
+
currencyAddress: Address$1 | undefined;
|
|
55
|
+
chainId: number | undefined;
|
|
56
|
+
userAddress: Address$1 | undefined;
|
|
57
|
+
query?: {
|
|
58
|
+
enabled?: boolean;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
type CurrencyBalanceData = {
|
|
62
|
+
value: bigint;
|
|
63
|
+
formatted: string;
|
|
64
|
+
};
|
|
65
|
+
type NativeBalanceResult = ReturnType<typeof useBalance>;
|
|
66
|
+
type Erc20BalanceResult = ReturnType<typeof useReadContracts>;
|
|
67
|
+
type CurrencyBalanceResult<T> = Omit<T, 'data'> & {
|
|
68
|
+
data: CurrencyBalanceData | undefined;
|
|
69
|
+
};
|
|
70
|
+
type UseTokenCurrencyBalanceResult = CurrencyBalanceResult<NativeBalanceResult> | CurrencyBalanceResult<Erc20BalanceResult>;
|
|
71
|
+
/**
|
|
72
|
+
* Hook to fetch cryptocurrency balance for a user
|
|
73
|
+
*
|
|
74
|
+
* Retrieves the balance of a specific currency (native token or ERC-20)
|
|
75
|
+
* for a given user address using wagmi. Handles both native tokens (ETH, MATIC, etc.)
|
|
76
|
+
* and ERC-20 tokens with automatic decimal formatting through direct blockchain calls.
|
|
77
|
+
*
|
|
78
|
+
* @param args - Configuration parameters
|
|
79
|
+
* @param args.currencyAddress - The currency contract address (use zero address for native tokens)
|
|
80
|
+
* @param args.chainId - The chain ID to query on
|
|
81
|
+
* @param args.userAddress - The user address to check balance for
|
|
82
|
+
* @param args.query - Optional wagmi query configuration
|
|
83
|
+
*
|
|
84
|
+
* @returns Wagmi query result containing raw and formatted balance values
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* Native token balance (ETH):
|
|
88
|
+
* ```typescript
|
|
89
|
+
* const { data: ethBalance, isLoading } = useTokenCurrencyBalance({
|
|
90
|
+
* currencyAddress: '0x0000000000000000000000000000000000000000', // Zero address for ETH
|
|
91
|
+
* chainId: 1,
|
|
92
|
+
* userAddress: '0x1234...'
|
|
93
|
+
* })
|
|
94
|
+
*
|
|
95
|
+
* if (data) {
|
|
96
|
+
* console.log(`ETH Balance: ${data.formatted} ETH`); // e.g., "1.5 ETH"
|
|
97
|
+
* console.log(`Raw balance: ${data.value.toString()}`); // e.g., "1500000000000000000"
|
|
98
|
+
* }
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ERC-20 token balance (USDC):
|
|
103
|
+
* ```typescript
|
|
104
|
+
* const { data: usdcBalance } = useTokenCurrencyBalance({
|
|
105
|
+
* currencyAddress: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
|
|
106
|
+
* chainId: 1,
|
|
107
|
+
* userAddress: userAddress,
|
|
108
|
+
* query: {
|
|
109
|
+
* enabled: Boolean(userAddress), // Only fetch when user is connected
|
|
110
|
+
* refetchInterval: 30000 // Update every 30 seconds
|
|
111
|
+
* }
|
|
112
|
+
* })
|
|
113
|
+
*
|
|
114
|
+
* if (data) {
|
|
115
|
+
* console.log(`USDC Balance: $${data.formatted}`); // e.g., "$1000.50"
|
|
116
|
+
* }
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
declare function useTokenCurrencyBalance(args: UseCurrencyBalanceArgs): UseTokenCurrencyBalanceResult;
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/react/hooks/token/metadata.d.ts
|
|
122
|
+
type UseTokenMetadataParams = Optional<ListTokenMetadataQueryOptions, 'config'>;
|
|
123
|
+
/**
|
|
124
|
+
* Hook to fetch metadata for multiple tokens
|
|
125
|
+
*
|
|
126
|
+
* Retrieves metadata for a batch of tokens from a specific contract using the metadata API.
|
|
127
|
+
* This hook is optimized for fetching multiple token metadata in a single request.
|
|
128
|
+
*
|
|
129
|
+
* @param params - Configuration parameters
|
|
130
|
+
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
131
|
+
* @param params.contractAddress - The contract address containing the tokens
|
|
132
|
+
* @param params.tokenIds - Array of token IDs to fetch metadata for
|
|
133
|
+
* @param params.config - Optional SDK configuration (defaults from context)
|
|
134
|
+
* @param params.query - Optional React Query configuration
|
|
135
|
+
*
|
|
136
|
+
* @returns Query result containing an array of token metadata
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* Basic usage:
|
|
140
|
+
* ```typescript
|
|
141
|
+
* const { data: metadata, isLoading } = useTokenMetadata({
|
|
142
|
+
* chainId: 137,
|
|
143
|
+
* contractAddress: '0x...',
|
|
144
|
+
* tokenIds: ['1', '2', '3']
|
|
145
|
+
* })
|
|
146
|
+
* ```
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* With query options:
|
|
150
|
+
* ```typescript
|
|
151
|
+
* const { data: metadata } = useTokenMetadata({
|
|
152
|
+
* chainId: 1,
|
|
153
|
+
* contractAddress: '0x...',
|
|
154
|
+
* tokenIds: selectedTokenIds,
|
|
155
|
+
* query: {
|
|
156
|
+
* enabled: selectedTokenIds.length > 0,
|
|
157
|
+
* staleTime: 10 * 60 * 1000 // 10 minutes
|
|
158
|
+
* }
|
|
159
|
+
* })
|
|
160
|
+
* ```
|
|
161
|
+
*/
|
|
162
|
+
declare function useTokenMetadata(params: UseTokenMetadataParams): _tanstack_react_query232.UseQueryResult<TokenMetadata$1[], Error>;
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/react/hooks/token/metadata-search.d.ts
|
|
165
|
+
type UseTokenMetadataSearchParams = Optional<SearchTokenMetadataQueryOptions, 'config'> & {
|
|
166
|
+
/**
|
|
167
|
+
* If true, only return minted tokens (tokens with supply > 0)
|
|
168
|
+
*/
|
|
169
|
+
onlyMinted?: boolean;
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Hook to search token metadata using filters with infinite pagination support
|
|
173
|
+
*
|
|
174
|
+
* Searches for tokens in a collection based on text and property filters.
|
|
175
|
+
* Supports filtering by attributes, ranges, and text search.
|
|
176
|
+
* Can optionally filter to only show minted tokens (tokens with supply > 0).
|
|
177
|
+
*
|
|
178
|
+
* @param params - Configuration parameters
|
|
179
|
+
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
180
|
+
* @param params.collectionAddress - The collection contract address
|
|
181
|
+
* @param params.filter - Filter criteria for the search
|
|
182
|
+
* @param params.filter.text - Optional text search query
|
|
183
|
+
* @param params.filter.properties - Optional array of property filters
|
|
184
|
+
* @param params.page - Optional pagination parameters
|
|
185
|
+
* @param params.query - Optional React Query configuration
|
|
186
|
+
* @param params.onlyMinted - If true, only return minted tokens (tokens with supply > 0)
|
|
187
|
+
*
|
|
188
|
+
* @returns Infinite query result containing matching token metadata with pagination support
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* Basic text search with pagination:
|
|
192
|
+
* ```typescript
|
|
193
|
+
* const { data, isLoading, fetchNextPage, hasNextPage } = useTokenMetadataSearch({
|
|
194
|
+
* chainId: 137,
|
|
195
|
+
* collectionAddress: '0x...',
|
|
196
|
+
* filter: {
|
|
197
|
+
* text: 'dragon'
|
|
198
|
+
* }
|
|
199
|
+
* })
|
|
200
|
+
* ```
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* Property filters:
|
|
204
|
+
* ```typescript
|
|
205
|
+
* const { data, fetchNextPage } = useTokenMetadataSearch({
|
|
206
|
+
* chainId: 1,
|
|
207
|
+
* collectionAddress: '0x...',
|
|
208
|
+
* filter: {
|
|
209
|
+
* properties: [
|
|
210
|
+
* {
|
|
211
|
+
* name: 'Rarity',
|
|
212
|
+
* type: PropertyType.STRING,
|
|
213
|
+
* values: ['Legendary', 'Epic']
|
|
214
|
+
* },
|
|
215
|
+
* {
|
|
216
|
+
* name: 'Level',
|
|
217
|
+
* type: PropertyType.INT,
|
|
218
|
+
* min: 50,
|
|
219
|
+
* max: 100
|
|
220
|
+
* }
|
|
221
|
+
* ]
|
|
222
|
+
* }
|
|
223
|
+
* })
|
|
224
|
+
* ```
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* Search only minted tokens:
|
|
228
|
+
* ```typescript
|
|
229
|
+
* const { data, fetchNextPage } = useTokenMetadataSearch({
|
|
230
|
+
* chainId: 1,
|
|
231
|
+
* collectionAddress: '0x...',
|
|
232
|
+
* onlyMinted: true,
|
|
233
|
+
* filter: {
|
|
234
|
+
* text: 'dragon'
|
|
235
|
+
* }
|
|
236
|
+
* })
|
|
237
|
+
* ```
|
|
238
|
+
*/
|
|
239
|
+
declare function useTokenMetadataSearch(params: UseTokenMetadataSearchParams): {
|
|
240
|
+
isError: boolean;
|
|
241
|
+
error: Error;
|
|
242
|
+
data: undefined;
|
|
243
|
+
isPending: false;
|
|
244
|
+
isLoading: false;
|
|
245
|
+
isLoadingError: false;
|
|
246
|
+
isRefetchError: true;
|
|
247
|
+
isSuccess: false;
|
|
248
|
+
isPlaceholderData: false;
|
|
249
|
+
status: "error";
|
|
250
|
+
fetchNextPage: (options?: _tanstack_react_query232.FetchNextPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
251
|
+
fetchPreviousPage: (options?: _tanstack_react_query232.FetchPreviousPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
252
|
+
hasNextPage: boolean;
|
|
253
|
+
hasPreviousPage: boolean;
|
|
254
|
+
isFetchNextPageError: boolean;
|
|
255
|
+
isFetchingNextPage: boolean;
|
|
256
|
+
isFetchPreviousPageError: boolean;
|
|
257
|
+
isFetchingPreviousPage: boolean;
|
|
258
|
+
dataUpdatedAt: number;
|
|
259
|
+
errorUpdatedAt: number;
|
|
260
|
+
failureCount: number;
|
|
261
|
+
failureReason: Error | null;
|
|
262
|
+
errorUpdateCount: number;
|
|
263
|
+
isFetched: boolean;
|
|
264
|
+
isFetchedAfterMount: boolean;
|
|
265
|
+
isFetching: boolean;
|
|
266
|
+
isInitialLoading: boolean;
|
|
267
|
+
isPaused: boolean;
|
|
268
|
+
isRefetching: boolean;
|
|
269
|
+
isStale: boolean;
|
|
270
|
+
isEnabled: boolean;
|
|
271
|
+
refetch: (options?: _tanstack_react_query232.RefetchOptions) => Promise<_tanstack_react_query232.QueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
272
|
+
fetchStatus: _tanstack_react_query232.FetchStatus;
|
|
273
|
+
promise: Promise<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>>;
|
|
274
|
+
} | {
|
|
275
|
+
isError: boolean;
|
|
276
|
+
error: Error;
|
|
277
|
+
data: undefined;
|
|
278
|
+
isPending: false;
|
|
279
|
+
isLoading: false;
|
|
280
|
+
isLoadingError: false;
|
|
281
|
+
isRefetchError: false;
|
|
282
|
+
isFetchNextPageError: false;
|
|
283
|
+
isFetchPreviousPageError: false;
|
|
284
|
+
isSuccess: true;
|
|
285
|
+
isPlaceholderData: false;
|
|
286
|
+
status: "success";
|
|
287
|
+
fetchNextPage: (options?: _tanstack_react_query232.FetchNextPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
288
|
+
fetchPreviousPage: (options?: _tanstack_react_query232.FetchPreviousPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
289
|
+
hasNextPage: boolean;
|
|
290
|
+
hasPreviousPage: boolean;
|
|
291
|
+
isFetchingNextPage: boolean;
|
|
292
|
+
isFetchingPreviousPage: boolean;
|
|
293
|
+
dataUpdatedAt: number;
|
|
294
|
+
errorUpdatedAt: number;
|
|
295
|
+
failureCount: number;
|
|
296
|
+
failureReason: Error | null;
|
|
297
|
+
errorUpdateCount: number;
|
|
298
|
+
isFetched: boolean;
|
|
299
|
+
isFetchedAfterMount: boolean;
|
|
300
|
+
isFetching: boolean;
|
|
301
|
+
isInitialLoading: boolean;
|
|
302
|
+
isPaused: boolean;
|
|
303
|
+
isRefetching: boolean;
|
|
304
|
+
isStale: boolean;
|
|
305
|
+
isEnabled: boolean;
|
|
306
|
+
refetch: (options?: _tanstack_react_query232.RefetchOptions) => Promise<_tanstack_react_query232.QueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
307
|
+
fetchStatus: _tanstack_react_query232.FetchStatus;
|
|
308
|
+
promise: Promise<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>>;
|
|
309
|
+
} | {
|
|
310
|
+
isError: boolean;
|
|
311
|
+
error: Error;
|
|
312
|
+
data: undefined;
|
|
313
|
+
isPending: false;
|
|
314
|
+
isLoading: false;
|
|
315
|
+
isLoadingError: true;
|
|
316
|
+
isRefetchError: false;
|
|
317
|
+
isFetchNextPageError: false;
|
|
318
|
+
isFetchPreviousPageError: false;
|
|
319
|
+
isSuccess: false;
|
|
320
|
+
isPlaceholderData: false;
|
|
321
|
+
status: "error";
|
|
322
|
+
fetchNextPage: (options?: _tanstack_react_query232.FetchNextPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
323
|
+
fetchPreviousPage: (options?: _tanstack_react_query232.FetchPreviousPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
324
|
+
hasNextPage: boolean;
|
|
325
|
+
hasPreviousPage: boolean;
|
|
326
|
+
isFetchingNextPage: boolean;
|
|
327
|
+
isFetchingPreviousPage: boolean;
|
|
328
|
+
dataUpdatedAt: number;
|
|
329
|
+
errorUpdatedAt: number;
|
|
330
|
+
failureCount: number;
|
|
331
|
+
failureReason: Error | null;
|
|
332
|
+
errorUpdateCount: number;
|
|
333
|
+
isFetched: boolean;
|
|
334
|
+
isFetchedAfterMount: boolean;
|
|
335
|
+
isFetching: boolean;
|
|
336
|
+
isInitialLoading: boolean;
|
|
337
|
+
isPaused: boolean;
|
|
338
|
+
isRefetching: boolean;
|
|
339
|
+
isStale: boolean;
|
|
340
|
+
isEnabled: boolean;
|
|
341
|
+
refetch: (options?: _tanstack_react_query232.RefetchOptions) => Promise<_tanstack_react_query232.QueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
342
|
+
fetchStatus: _tanstack_react_query232.FetchStatus;
|
|
343
|
+
promise: Promise<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>>;
|
|
344
|
+
} | {
|
|
345
|
+
isError: boolean;
|
|
346
|
+
error: Error;
|
|
347
|
+
data: undefined;
|
|
348
|
+
isPending: true;
|
|
349
|
+
isLoadingError: false;
|
|
350
|
+
isRefetchError: false;
|
|
351
|
+
isFetchNextPageError: false;
|
|
352
|
+
isFetchPreviousPageError: false;
|
|
353
|
+
isSuccess: false;
|
|
354
|
+
isPlaceholderData: false;
|
|
355
|
+
status: "pending";
|
|
356
|
+
fetchNextPage: (options?: _tanstack_react_query232.FetchNextPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
357
|
+
fetchPreviousPage: (options?: _tanstack_react_query232.FetchPreviousPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
358
|
+
hasNextPage: boolean;
|
|
359
|
+
hasPreviousPage: boolean;
|
|
360
|
+
isFetchingNextPage: boolean;
|
|
361
|
+
isFetchingPreviousPage: boolean;
|
|
362
|
+
dataUpdatedAt: number;
|
|
363
|
+
errorUpdatedAt: number;
|
|
364
|
+
failureCount: number;
|
|
365
|
+
failureReason: Error | null;
|
|
366
|
+
errorUpdateCount: number;
|
|
367
|
+
isFetched: boolean;
|
|
368
|
+
isFetchedAfterMount: boolean;
|
|
369
|
+
isFetching: boolean;
|
|
370
|
+
isLoading: boolean;
|
|
371
|
+
isInitialLoading: boolean;
|
|
372
|
+
isPaused: boolean;
|
|
373
|
+
isRefetching: boolean;
|
|
374
|
+
isStale: boolean;
|
|
375
|
+
isEnabled: boolean;
|
|
376
|
+
refetch: (options?: _tanstack_react_query232.RefetchOptions) => Promise<_tanstack_react_query232.QueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
377
|
+
fetchStatus: _tanstack_react_query232.FetchStatus;
|
|
378
|
+
promise: Promise<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>>;
|
|
379
|
+
} | {
|
|
380
|
+
isError: boolean;
|
|
381
|
+
error: Error;
|
|
382
|
+
data: undefined;
|
|
383
|
+
isPending: false;
|
|
384
|
+
isLoading: false;
|
|
385
|
+
isLoadingError: false;
|
|
386
|
+
isRefetchError: false;
|
|
387
|
+
isSuccess: true;
|
|
388
|
+
isPlaceholderData: true;
|
|
389
|
+
isFetchNextPageError: false;
|
|
390
|
+
isFetchPreviousPageError: false;
|
|
391
|
+
status: "success";
|
|
392
|
+
fetchNextPage: (options?: _tanstack_react_query232.FetchNextPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
393
|
+
fetchPreviousPage: (options?: _tanstack_react_query232.FetchPreviousPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
394
|
+
hasNextPage: boolean;
|
|
395
|
+
hasPreviousPage: boolean;
|
|
396
|
+
isFetchingNextPage: boolean;
|
|
397
|
+
isFetchingPreviousPage: boolean;
|
|
398
|
+
dataUpdatedAt: number;
|
|
399
|
+
errorUpdatedAt: number;
|
|
400
|
+
failureCount: number;
|
|
401
|
+
failureReason: Error | null;
|
|
402
|
+
errorUpdateCount: number;
|
|
403
|
+
isFetched: boolean;
|
|
404
|
+
isFetchedAfterMount: boolean;
|
|
405
|
+
isFetching: boolean;
|
|
406
|
+
isInitialLoading: boolean;
|
|
407
|
+
isPaused: boolean;
|
|
408
|
+
isRefetching: boolean;
|
|
409
|
+
isStale: boolean;
|
|
410
|
+
isEnabled: boolean;
|
|
411
|
+
refetch: (options?: _tanstack_react_query232.RefetchOptions) => Promise<_tanstack_react_query232.QueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
412
|
+
fetchStatus: _tanstack_react_query232.FetchStatus;
|
|
413
|
+
promise: Promise<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>>;
|
|
414
|
+
} | {
|
|
415
|
+
data: {
|
|
416
|
+
tokenMetadata: TokenMetadata$1[];
|
|
417
|
+
page: _0xsequence_metadata23.Page;
|
|
418
|
+
} | undefined;
|
|
419
|
+
error: Error;
|
|
420
|
+
isError: true;
|
|
421
|
+
isPending: false;
|
|
422
|
+
isLoading: false;
|
|
423
|
+
isLoadingError: false;
|
|
424
|
+
isRefetchError: true;
|
|
425
|
+
isSuccess: false;
|
|
426
|
+
isPlaceholderData: false;
|
|
427
|
+
status: "error";
|
|
428
|
+
fetchNextPage: (options?: _tanstack_react_query232.FetchNextPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
429
|
+
fetchPreviousPage: (options?: _tanstack_react_query232.FetchPreviousPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
430
|
+
hasNextPage: boolean;
|
|
431
|
+
hasPreviousPage: boolean;
|
|
432
|
+
isFetchNextPageError: boolean;
|
|
433
|
+
isFetchingNextPage: boolean;
|
|
434
|
+
isFetchPreviousPageError: boolean;
|
|
435
|
+
isFetchingPreviousPage: boolean;
|
|
436
|
+
dataUpdatedAt: number;
|
|
437
|
+
errorUpdatedAt: number;
|
|
438
|
+
failureCount: number;
|
|
439
|
+
failureReason: Error | null;
|
|
440
|
+
errorUpdateCount: number;
|
|
441
|
+
isFetched: boolean;
|
|
442
|
+
isFetchedAfterMount: boolean;
|
|
443
|
+
isFetching: boolean;
|
|
444
|
+
isInitialLoading: boolean;
|
|
445
|
+
isPaused: boolean;
|
|
446
|
+
isRefetching: boolean;
|
|
447
|
+
isStale: boolean;
|
|
448
|
+
isEnabled: boolean;
|
|
449
|
+
refetch: (options?: _tanstack_react_query232.RefetchOptions) => Promise<_tanstack_react_query232.QueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
450
|
+
fetchStatus: _tanstack_react_query232.FetchStatus;
|
|
451
|
+
promise: Promise<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>>;
|
|
452
|
+
} | {
|
|
453
|
+
data: {
|
|
454
|
+
tokenMetadata: TokenMetadata$1[];
|
|
455
|
+
page: _0xsequence_metadata23.Page;
|
|
456
|
+
} | undefined;
|
|
457
|
+
error: null;
|
|
458
|
+
isError: false;
|
|
459
|
+
isPending: false;
|
|
460
|
+
isLoading: false;
|
|
461
|
+
isLoadingError: false;
|
|
462
|
+
isRefetchError: false;
|
|
463
|
+
isFetchNextPageError: false;
|
|
464
|
+
isFetchPreviousPageError: false;
|
|
465
|
+
isSuccess: true;
|
|
466
|
+
isPlaceholderData: false;
|
|
467
|
+
status: "success";
|
|
468
|
+
fetchNextPage: (options?: _tanstack_react_query232.FetchNextPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
469
|
+
fetchPreviousPage: (options?: _tanstack_react_query232.FetchPreviousPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
470
|
+
hasNextPage: boolean;
|
|
471
|
+
hasPreviousPage: boolean;
|
|
472
|
+
isFetchingNextPage: boolean;
|
|
473
|
+
isFetchingPreviousPage: boolean;
|
|
474
|
+
dataUpdatedAt: number;
|
|
475
|
+
errorUpdatedAt: number;
|
|
476
|
+
failureCount: number;
|
|
477
|
+
failureReason: Error | null;
|
|
478
|
+
errorUpdateCount: number;
|
|
479
|
+
isFetched: boolean;
|
|
480
|
+
isFetchedAfterMount: boolean;
|
|
481
|
+
isFetching: boolean;
|
|
482
|
+
isInitialLoading: boolean;
|
|
483
|
+
isPaused: boolean;
|
|
484
|
+
isRefetching: boolean;
|
|
485
|
+
isStale: boolean;
|
|
486
|
+
isEnabled: boolean;
|
|
487
|
+
refetch: (options?: _tanstack_react_query232.RefetchOptions) => Promise<_tanstack_react_query232.QueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
488
|
+
fetchStatus: _tanstack_react_query232.FetchStatus;
|
|
489
|
+
promise: Promise<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>>;
|
|
490
|
+
} | {
|
|
491
|
+
data: {
|
|
492
|
+
tokenMetadata: TokenMetadata$1[];
|
|
493
|
+
page: _0xsequence_metadata23.Page;
|
|
494
|
+
} | undefined;
|
|
495
|
+
error: Error;
|
|
496
|
+
isError: true;
|
|
497
|
+
isPending: false;
|
|
498
|
+
isLoading: false;
|
|
499
|
+
isLoadingError: true;
|
|
500
|
+
isRefetchError: false;
|
|
501
|
+
isFetchNextPageError: false;
|
|
502
|
+
isFetchPreviousPageError: false;
|
|
503
|
+
isSuccess: false;
|
|
504
|
+
isPlaceholderData: false;
|
|
505
|
+
status: "error";
|
|
506
|
+
fetchNextPage: (options?: _tanstack_react_query232.FetchNextPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
507
|
+
fetchPreviousPage: (options?: _tanstack_react_query232.FetchPreviousPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
508
|
+
hasNextPage: boolean;
|
|
509
|
+
hasPreviousPage: boolean;
|
|
510
|
+
isFetchingNextPage: boolean;
|
|
511
|
+
isFetchingPreviousPage: boolean;
|
|
512
|
+
dataUpdatedAt: number;
|
|
513
|
+
errorUpdatedAt: number;
|
|
514
|
+
failureCount: number;
|
|
515
|
+
failureReason: Error | null;
|
|
516
|
+
errorUpdateCount: number;
|
|
517
|
+
isFetched: boolean;
|
|
518
|
+
isFetchedAfterMount: boolean;
|
|
519
|
+
isFetching: boolean;
|
|
520
|
+
isInitialLoading: boolean;
|
|
521
|
+
isPaused: boolean;
|
|
522
|
+
isRefetching: boolean;
|
|
523
|
+
isStale: boolean;
|
|
524
|
+
isEnabled: boolean;
|
|
525
|
+
refetch: (options?: _tanstack_react_query232.RefetchOptions) => Promise<_tanstack_react_query232.QueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
526
|
+
fetchStatus: _tanstack_react_query232.FetchStatus;
|
|
527
|
+
promise: Promise<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>>;
|
|
528
|
+
} | {
|
|
529
|
+
data: {
|
|
530
|
+
tokenMetadata: TokenMetadata$1[];
|
|
531
|
+
page: _0xsequence_metadata23.Page;
|
|
532
|
+
} | undefined;
|
|
533
|
+
error: null;
|
|
534
|
+
isError: false;
|
|
535
|
+
isPending: true;
|
|
536
|
+
isLoadingError: false;
|
|
537
|
+
isRefetchError: false;
|
|
538
|
+
isFetchNextPageError: false;
|
|
539
|
+
isFetchPreviousPageError: false;
|
|
540
|
+
isSuccess: false;
|
|
541
|
+
isPlaceholderData: false;
|
|
542
|
+
status: "pending";
|
|
543
|
+
fetchNextPage: (options?: _tanstack_react_query232.FetchNextPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
544
|
+
fetchPreviousPage: (options?: _tanstack_react_query232.FetchPreviousPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
545
|
+
hasNextPage: boolean;
|
|
546
|
+
hasPreviousPage: boolean;
|
|
547
|
+
isFetchingNextPage: boolean;
|
|
548
|
+
isFetchingPreviousPage: boolean;
|
|
549
|
+
dataUpdatedAt: number;
|
|
550
|
+
errorUpdatedAt: number;
|
|
551
|
+
failureCount: number;
|
|
552
|
+
failureReason: Error | null;
|
|
553
|
+
errorUpdateCount: number;
|
|
554
|
+
isFetched: boolean;
|
|
555
|
+
isFetchedAfterMount: boolean;
|
|
556
|
+
isFetching: boolean;
|
|
557
|
+
isLoading: boolean;
|
|
558
|
+
isInitialLoading: boolean;
|
|
559
|
+
isPaused: boolean;
|
|
560
|
+
isRefetching: boolean;
|
|
561
|
+
isStale: boolean;
|
|
562
|
+
isEnabled: boolean;
|
|
563
|
+
refetch: (options?: _tanstack_react_query232.RefetchOptions) => Promise<_tanstack_react_query232.QueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
564
|
+
fetchStatus: _tanstack_react_query232.FetchStatus;
|
|
565
|
+
promise: Promise<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>>;
|
|
566
|
+
} | {
|
|
567
|
+
data: {
|
|
568
|
+
tokenMetadata: TokenMetadata$1[];
|
|
569
|
+
page: _0xsequence_metadata23.Page;
|
|
570
|
+
} | undefined;
|
|
571
|
+
isError: false;
|
|
572
|
+
error: null;
|
|
573
|
+
isPending: false;
|
|
574
|
+
isLoading: false;
|
|
575
|
+
isLoadingError: false;
|
|
576
|
+
isRefetchError: false;
|
|
577
|
+
isSuccess: true;
|
|
578
|
+
isPlaceholderData: true;
|
|
579
|
+
isFetchNextPageError: false;
|
|
580
|
+
isFetchPreviousPageError: false;
|
|
581
|
+
status: "success";
|
|
582
|
+
fetchNextPage: (options?: _tanstack_react_query232.FetchNextPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
583
|
+
fetchPreviousPage: (options?: _tanstack_react_query232.FetchPreviousPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
584
|
+
hasNextPage: boolean;
|
|
585
|
+
hasPreviousPage: boolean;
|
|
586
|
+
isFetchingNextPage: boolean;
|
|
587
|
+
isFetchingPreviousPage: boolean;
|
|
588
|
+
dataUpdatedAt: number;
|
|
589
|
+
errorUpdatedAt: number;
|
|
590
|
+
failureCount: number;
|
|
591
|
+
failureReason: Error | null;
|
|
592
|
+
errorUpdateCount: number;
|
|
593
|
+
isFetched: boolean;
|
|
594
|
+
isFetchedAfterMount: boolean;
|
|
595
|
+
isFetching: boolean;
|
|
596
|
+
isInitialLoading: boolean;
|
|
597
|
+
isPaused: boolean;
|
|
598
|
+
isRefetching: boolean;
|
|
599
|
+
isStale: boolean;
|
|
600
|
+
isEnabled: boolean;
|
|
601
|
+
refetch: (options?: _tanstack_react_query232.RefetchOptions) => Promise<_tanstack_react_query232.QueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
602
|
+
fetchStatus: _tanstack_react_query232.FetchStatus;
|
|
603
|
+
promise: Promise<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>>;
|
|
604
|
+
} | {
|
|
605
|
+
hasNextPage: boolean;
|
|
606
|
+
data: {
|
|
607
|
+
tokenMetadata: TokenMetadata$1[];
|
|
608
|
+
page: _0xsequence_metadata23.Page | undefined;
|
|
609
|
+
} | undefined;
|
|
610
|
+
isLoading: boolean;
|
|
611
|
+
isFetching: boolean;
|
|
612
|
+
error: Error | null;
|
|
613
|
+
fetchNextPage: () => Promise<void>;
|
|
614
|
+
isError: true;
|
|
615
|
+
isPending: false;
|
|
616
|
+
isLoadingError: false;
|
|
617
|
+
isRefetchError: true;
|
|
618
|
+
isSuccess: false;
|
|
619
|
+
isPlaceholderData: false;
|
|
620
|
+
status: "error";
|
|
621
|
+
fetchPreviousPage: (options?: _tanstack_react_query232.FetchPreviousPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
622
|
+
hasPreviousPage: boolean;
|
|
623
|
+
isFetchNextPageError: boolean;
|
|
624
|
+
isFetchingNextPage: boolean;
|
|
625
|
+
isFetchPreviousPageError: boolean;
|
|
626
|
+
isFetchingPreviousPage: boolean;
|
|
627
|
+
dataUpdatedAt: number;
|
|
628
|
+
errorUpdatedAt: number;
|
|
629
|
+
failureCount: number;
|
|
630
|
+
failureReason: Error | null;
|
|
631
|
+
errorUpdateCount: number;
|
|
632
|
+
isFetched: boolean;
|
|
633
|
+
isFetchedAfterMount: boolean;
|
|
634
|
+
isInitialLoading: boolean;
|
|
635
|
+
isPaused: boolean;
|
|
636
|
+
isRefetching: boolean;
|
|
637
|
+
isStale: boolean;
|
|
638
|
+
isEnabled: boolean;
|
|
639
|
+
refetch: (options?: _tanstack_react_query232.RefetchOptions) => Promise<_tanstack_react_query232.QueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
640
|
+
fetchStatus: _tanstack_react_query232.FetchStatus;
|
|
641
|
+
promise: Promise<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>>;
|
|
642
|
+
} | {
|
|
643
|
+
hasNextPage: boolean;
|
|
644
|
+
data: {
|
|
645
|
+
tokenMetadata: TokenMetadata$1[];
|
|
646
|
+
page: _0xsequence_metadata23.Page | undefined;
|
|
647
|
+
} | undefined;
|
|
648
|
+
isLoading: boolean;
|
|
649
|
+
isFetching: boolean;
|
|
650
|
+
error: Error | null;
|
|
651
|
+
fetchNextPage: () => Promise<void>;
|
|
652
|
+
isError: false;
|
|
653
|
+
isPending: false;
|
|
654
|
+
isLoadingError: false;
|
|
655
|
+
isRefetchError: false;
|
|
656
|
+
isFetchNextPageError: false;
|
|
657
|
+
isFetchPreviousPageError: false;
|
|
658
|
+
isSuccess: true;
|
|
659
|
+
isPlaceholderData: false;
|
|
660
|
+
status: "success";
|
|
661
|
+
fetchPreviousPage: (options?: _tanstack_react_query232.FetchPreviousPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
662
|
+
hasPreviousPage: boolean;
|
|
663
|
+
isFetchingNextPage: boolean;
|
|
664
|
+
isFetchingPreviousPage: boolean;
|
|
665
|
+
dataUpdatedAt: number;
|
|
666
|
+
errorUpdatedAt: number;
|
|
667
|
+
failureCount: number;
|
|
668
|
+
failureReason: Error | null;
|
|
669
|
+
errorUpdateCount: number;
|
|
670
|
+
isFetched: boolean;
|
|
671
|
+
isFetchedAfterMount: boolean;
|
|
672
|
+
isInitialLoading: boolean;
|
|
673
|
+
isPaused: boolean;
|
|
674
|
+
isRefetching: boolean;
|
|
675
|
+
isStale: boolean;
|
|
676
|
+
isEnabled: boolean;
|
|
677
|
+
refetch: (options?: _tanstack_react_query232.RefetchOptions) => Promise<_tanstack_react_query232.QueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
678
|
+
fetchStatus: _tanstack_react_query232.FetchStatus;
|
|
679
|
+
promise: Promise<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>>;
|
|
680
|
+
} | {
|
|
681
|
+
hasNextPage: boolean;
|
|
682
|
+
data: {
|
|
683
|
+
tokenMetadata: TokenMetadata$1[];
|
|
684
|
+
page: _0xsequence_metadata23.Page | undefined;
|
|
685
|
+
} | undefined;
|
|
686
|
+
isLoading: boolean;
|
|
687
|
+
isFetching: boolean;
|
|
688
|
+
error: Error | null;
|
|
689
|
+
fetchNextPage: () => Promise<void>;
|
|
690
|
+
isError: true;
|
|
691
|
+
isPending: false;
|
|
692
|
+
isLoadingError: true;
|
|
693
|
+
isRefetchError: false;
|
|
694
|
+
isFetchNextPageError: false;
|
|
695
|
+
isFetchPreviousPageError: false;
|
|
696
|
+
isSuccess: false;
|
|
697
|
+
isPlaceholderData: false;
|
|
698
|
+
status: "error";
|
|
699
|
+
fetchPreviousPage: (options?: _tanstack_react_query232.FetchPreviousPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
700
|
+
hasPreviousPage: boolean;
|
|
701
|
+
isFetchingNextPage: boolean;
|
|
702
|
+
isFetchingPreviousPage: boolean;
|
|
703
|
+
dataUpdatedAt: number;
|
|
704
|
+
errorUpdatedAt: number;
|
|
705
|
+
failureCount: number;
|
|
706
|
+
failureReason: Error | null;
|
|
707
|
+
errorUpdateCount: number;
|
|
708
|
+
isFetched: boolean;
|
|
709
|
+
isFetchedAfterMount: boolean;
|
|
710
|
+
isInitialLoading: boolean;
|
|
711
|
+
isPaused: boolean;
|
|
712
|
+
isRefetching: boolean;
|
|
713
|
+
isStale: boolean;
|
|
714
|
+
isEnabled: boolean;
|
|
715
|
+
refetch: (options?: _tanstack_react_query232.RefetchOptions) => Promise<_tanstack_react_query232.QueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
716
|
+
fetchStatus: _tanstack_react_query232.FetchStatus;
|
|
717
|
+
promise: Promise<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>>;
|
|
718
|
+
} | {
|
|
719
|
+
hasNextPage: boolean;
|
|
720
|
+
data: {
|
|
721
|
+
tokenMetadata: TokenMetadata$1[];
|
|
722
|
+
page: _0xsequence_metadata23.Page | undefined;
|
|
723
|
+
} | undefined;
|
|
724
|
+
isLoading: boolean;
|
|
725
|
+
isFetching: boolean;
|
|
726
|
+
error: Error | null;
|
|
727
|
+
fetchNextPage: () => Promise<void>;
|
|
728
|
+
isError: false;
|
|
729
|
+
isPending: true;
|
|
730
|
+
isLoadingError: false;
|
|
731
|
+
isRefetchError: false;
|
|
732
|
+
isFetchNextPageError: false;
|
|
733
|
+
isFetchPreviousPageError: false;
|
|
734
|
+
isSuccess: false;
|
|
735
|
+
isPlaceholderData: false;
|
|
736
|
+
status: "pending";
|
|
737
|
+
fetchPreviousPage: (options?: _tanstack_react_query232.FetchPreviousPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
738
|
+
hasPreviousPage: boolean;
|
|
739
|
+
isFetchingNextPage: boolean;
|
|
740
|
+
isFetchingPreviousPage: boolean;
|
|
741
|
+
dataUpdatedAt: number;
|
|
742
|
+
errorUpdatedAt: number;
|
|
743
|
+
failureCount: number;
|
|
744
|
+
failureReason: Error | null;
|
|
745
|
+
errorUpdateCount: number;
|
|
746
|
+
isFetched: boolean;
|
|
747
|
+
isFetchedAfterMount: boolean;
|
|
748
|
+
isInitialLoading: boolean;
|
|
749
|
+
isPaused: boolean;
|
|
750
|
+
isRefetching: boolean;
|
|
751
|
+
isStale: boolean;
|
|
752
|
+
isEnabled: boolean;
|
|
753
|
+
refetch: (options?: _tanstack_react_query232.RefetchOptions) => Promise<_tanstack_react_query232.QueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
754
|
+
fetchStatus: _tanstack_react_query232.FetchStatus;
|
|
755
|
+
promise: Promise<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>>;
|
|
756
|
+
} | {
|
|
757
|
+
hasNextPage: boolean;
|
|
758
|
+
data: {
|
|
759
|
+
tokenMetadata: TokenMetadata$1[];
|
|
760
|
+
page: _0xsequence_metadata23.Page | undefined;
|
|
761
|
+
} | undefined;
|
|
762
|
+
isLoading: boolean;
|
|
763
|
+
isFetching: boolean;
|
|
764
|
+
error: Error | null;
|
|
765
|
+
fetchNextPage: () => Promise<void>;
|
|
766
|
+
isError: false;
|
|
767
|
+
isPending: false;
|
|
768
|
+
isLoadingError: false;
|
|
769
|
+
isRefetchError: false;
|
|
770
|
+
isSuccess: true;
|
|
771
|
+
isPlaceholderData: true;
|
|
772
|
+
isFetchNextPageError: false;
|
|
773
|
+
isFetchPreviousPageError: false;
|
|
774
|
+
status: "success";
|
|
775
|
+
fetchPreviousPage: (options?: _tanstack_react_query232.FetchPreviousPageOptions) => Promise<_tanstack_react_query232.InfiniteQueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
776
|
+
hasPreviousPage: boolean;
|
|
777
|
+
isFetchingNextPage: boolean;
|
|
778
|
+
isFetchingPreviousPage: boolean;
|
|
779
|
+
dataUpdatedAt: number;
|
|
780
|
+
errorUpdatedAt: number;
|
|
781
|
+
failureCount: number;
|
|
782
|
+
failureReason: Error | null;
|
|
783
|
+
errorUpdateCount: number;
|
|
784
|
+
isFetched: boolean;
|
|
785
|
+
isFetchedAfterMount: boolean;
|
|
786
|
+
isInitialLoading: boolean;
|
|
787
|
+
isPaused: boolean;
|
|
788
|
+
isRefetching: boolean;
|
|
789
|
+
isStale: boolean;
|
|
790
|
+
isEnabled: boolean;
|
|
791
|
+
refetch: (options?: _tanstack_react_query232.RefetchOptions) => Promise<_tanstack_react_query232.QueryObserverResult<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>, Error>>;
|
|
792
|
+
fetchStatus: _tanstack_react_query232.FetchStatus;
|
|
793
|
+
promise: Promise<_tanstack_react_query232.InfiniteData<SearchTokenMetadataReturn$1, unknown>>;
|
|
794
|
+
};
|
|
795
|
+
//#endregion
|
|
796
|
+
//#region src/react/hooks/token/ranges.d.ts
|
|
797
|
+
type UseTokenRangesParams = Optional<GetTokenRangesQueryOptions, 'config'>;
|
|
798
|
+
/**
|
|
799
|
+
* Hook to fetch token ID ranges for a collection
|
|
800
|
+
*
|
|
801
|
+
* Retrieves the available token ID ranges for a specific collection,
|
|
802
|
+
* which is useful for understanding the token distribution and
|
|
803
|
+
* available tokens within a collection.
|
|
804
|
+
*
|
|
805
|
+
* @param params - Configuration parameters
|
|
806
|
+
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
807
|
+
* @param params.collectionAddress - The collection contract address to fetch ranges for
|
|
808
|
+
* @param params.query - Optional React Query configuration
|
|
809
|
+
*
|
|
810
|
+
* @returns Query result containing token ID ranges for the collection
|
|
811
|
+
*
|
|
812
|
+
* @example
|
|
813
|
+
* Basic usage:
|
|
814
|
+
* ```typescript
|
|
815
|
+
* const { data: tokenRanges, isLoading } = useTokenRanges({
|
|
816
|
+
* chainId: 137,
|
|
817
|
+
* collectionAddress: '0x1234...'
|
|
818
|
+
* })
|
|
819
|
+
*
|
|
820
|
+
* if (data) {
|
|
821
|
+
* console.log(`Token ranges: ${JSON.stringify(data.ranges)}`);
|
|
822
|
+
* data.ranges?.forEach(range => {
|
|
823
|
+
* console.log(`Range: ${range.start} - ${range.end}`);
|
|
824
|
+
* });
|
|
825
|
+
* }
|
|
826
|
+
* ```
|
|
827
|
+
*
|
|
828
|
+
* @example
|
|
829
|
+
* With conditional enabling:
|
|
830
|
+
* ```typescript
|
|
831
|
+
* const { data: tokenRanges } = useTokenRanges({
|
|
832
|
+
* chainId: 1,
|
|
833
|
+
* collectionAddress: selectedCollection?.address,
|
|
834
|
+
* query: {
|
|
835
|
+
* enabled: Boolean(selectedCollection?.address),
|
|
836
|
+
* staleTime: 300000, // Cache for 5 minutes
|
|
837
|
+
* refetchInterval: 60000 // Refresh every minute
|
|
838
|
+
* }
|
|
839
|
+
* })
|
|
840
|
+
* ```
|
|
841
|
+
*/
|
|
842
|
+
declare function useTokenRanges(params: UseTokenRangesParams): _tanstack_react_query232.UseQueryResult<GetTokenIDRangesResponse, Error>;
|
|
843
|
+
type UseGetTokenRangesProps = {
|
|
844
|
+
chainId: number;
|
|
845
|
+
collectionAddress: Address$1;
|
|
846
|
+
query?: {
|
|
847
|
+
enabled?: boolean;
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
type UseGetTokenRangesReturn = Awaited<ReturnType<typeof fetchGetTokenRanges>>;
|
|
851
|
+
//#endregion
|
|
852
|
+
export { UseTokenMetadataSearchParams as a, useTokenMetadata as c, useTokenCurrencyBalance as d, useTokenBalances as f, useTokenRanges as i, UseCurrencyBalanceArgs as l, UseGetTokenRangesReturn as n, useTokenMetadataSearch as o, UseTokenRangesParams as r, UseTokenMetadataParams as s, UseGetTokenRangesProps as t, UseTokenCurrencyBalanceResult as u };
|
|
853
|
+
//# sourceMappingURL=index17.d.ts.map
|