@0xsequence/marketplace-sdk 0.9.0 → 0.10.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/main.ts +63 -0
- package/.storybook/preview.ts +24 -0
- package/.storybook/vitest.setup.ts +6 -0
- package/CHANGELOG.md +77 -8
- package/dist/{CalendarIcon-DbQ7Vxcw.js → CalendarIcon-CqsuAuCm.js} +4 -51
- package/dist/CalendarIcon-CqsuAuCm.js.map +1 -0
- package/dist/{CollectibleCard-C8Ae64Ab.d.ts → CollectibleCard-Dd-CG6dE.d.ts} +8 -7
- package/dist/InfoIcon-v0w_Lu7t.js +53 -0
- package/dist/InfoIcon-v0w_Lu7t.js.map +1 -0
- package/dist/{_internal-BgWcRIak.js → _internal-C75gOSNo.js} +2 -10
- package/dist/_internal-C75gOSNo.js.map +1 -0
- package/dist/actionModal-CMUeVsFX.js +116 -0
- package/dist/actionModal-CMUeVsFX.js.map +1 -0
- package/dist/{alien_swap-B_76IMma.js → alien_swap-CYv6YlOF.js} +1 -1
- package/dist/{alien_swap-B_76IMma.js.map → alien_swap-CYv6YlOF.js.map} +1 -1
- package/dist/{api-DTIan01C.js → api-BiMGqWdz.js} +17 -34
- package/dist/api-BiMGqWdz.js.map +1 -0
- package/dist/{aqua-xyz-CMN_TFY5.js → aqua-xyz-Bzn5baeH.js} +1 -1
- package/dist/{aqua-xyz-CMN_TFY5.js.map → aqua-xyz-Bzn5baeH.js.map} +1 -1
- package/dist/{aura-Cye_TuHj.js → aura-DzIWh8WT.js} +1 -1
- package/dist/{aura-Cye_TuHj.js.map → aura-DzIWh8WT.js.map} +1 -1
- package/dist/base-DqaJPvfN.js +22 -0
- package/dist/base-DqaJPvfN.js.map +1 -0
- package/dist/{blur-DWDMyMpK.js → blur-DSH-Cbpj.js} +1 -1
- package/dist/{blur-DWDMyMpK.js.map → blur-DSH-Cbpj.js.map} +1 -1
- package/dist/{coinbase-ByA_XRB0.js → coinbase-Df8URNxq.js} +1 -1
- package/dist/{coinbase-ByA_XRB0.js.map → coinbase-Df8URNxq.js.map} +1 -1
- package/dist/{new-marketplace-types-Bfis0U4J.d.ts → create-config-DKJ-F0jc.d.ts} +402 -41
- package/dist/{wagmi-CDzEQbfk.js → create-config-fQ-jbJD1.js} +20 -10
- package/dist/create-config-fQ-jbJD1.js.map +1 -0
- package/dist/{element-b77CyXIZ.js → element-Cx6uJu5N.js} +1 -1
- package/dist/{element-b77CyXIZ.js.map → element-Cx6uJu5N.js.map} +1 -1
- package/dist/{foundation-DbOrKP9Y.js → foundation-D6U4aRLN.js} +1 -1
- package/dist/{foundation-DbOrKP9Y.js.map → foundation-D6U4aRLN.js.map} +1 -1
- package/dist/get-provider-CYYHfrlg.js +10 -0
- package/dist/get-provider-CYYHfrlg.js.map +1 -0
- package/dist/get-query-client-D19vvfJo.js +23 -0
- package/dist/get-query-client-D19vvfJo.js.map +1 -0
- package/dist/hooks-4pxIbLbM.js +4044 -0
- package/dist/hooks-4pxIbLbM.js.map +1 -0
- package/dist/{index-BL9RUSEK.d.ts → index-136YrWDH.d.ts} +1 -1
- package/dist/{index-D5v5iluA.d.ts → index-BAhaEfqY.d.ts} +1 -1
- package/dist/index-BKBin-rq.d.ts +979 -0
- package/dist/{index-BQsgAvtX.d.ts → index-BUWB_RXp.d.ts} +776 -570
- package/dist/{index-21LE7OhL.d.ts → index-BhVFc2rX.d.ts} +6 -3
- package/dist/{index-DXMfTZ1F.d.ts → index-C5aqo8xu.d.ts} +1 -1
- package/dist/{index-ByznONYE.d.ts → index-CKrYP7ot.d.ts} +20 -48
- package/dist/{index-DaE5ZNHb.d.ts → index-CUwMH7Ht.d.ts} +5 -5
- package/dist/{index-CLy8y5hm.d.ts → index-Cu70Lw-w.d.ts} +1 -1
- package/dist/index.css +414 -1
- package/dist/index.d.ts +8 -10
- package/dist/index.js +13 -9
- package/dist/{looks-rare-C1VqNcSM.js → looks-rare-ChBRBY-p.js} +1 -1
- package/dist/{looks-rare-C1VqNcSM.js.map → looks-rare-ChBRBY-p.js.map} +1 -1
- package/dist/{magic-eden-ea_AGCZr.js → magic-eden-D5U7N1xL.js} +1 -1
- package/dist/{magic-eden-ea_AGCZr.js.map → magic-eden-D5U7N1xL.js.map} +1 -1
- package/dist/{manifold-8y8J2sjT.js → manifold-CtLF52zU.js} +1 -1
- package/dist/{manifold-8y8J2sjT.js.map → manifold-CtLF52zU.js.map} +1 -1
- package/dist/{marketplace-nwnZv9Cb.js → marketplace-DmFiyBoS.js} +1 -1
- package/dist/{marketplace-nwnZv9Cb.js.map → marketplace-DmFiyBoS.js.map} +1 -1
- package/dist/{marketplace-logos-CSeGcPW4.js → marketplace-logos-Cd6W-qOq.js} +21 -21
- package/dist/{marketplace-logos-CSeGcPW4.js.map → marketplace-logos-Cd6W-qOq.js.map} +1 -1
- package/dist/{marketplace.gen-BSDIX7NZ.js → marketplace.gen-HpnpL5xU.js} +3 -3
- package/dist/marketplace.gen-HpnpL5xU.js.map +1 -0
- package/dist/{marketplaceConfig-C6X1SUik.js → marketplaceConfig-GQTTmihy.js} +3 -3
- package/dist/marketplaceConfig-GQTTmihy.js.map +1 -0
- package/dist/{mintify-LA68TzWg.js → mintify-Bi3Bce68.js} +1 -1
- package/dist/{mintify-LA68TzWg.js.map → mintify-Bi3Bce68.js.map} +1 -1
- package/dist/network-CGD0oKtS.js +15 -0
- package/dist/network-CGD0oKtS.js.map +1 -0
- package/dist/{nftx-D3Tc8nzd.js → nftx-BDQZjtkX.js} +1 -1
- package/dist/{nftx-D3Tc8nzd.js.map → nftx-BDQZjtkX.js.map} +1 -1
- package/dist/{okx-hbqg6oIJ.js → okx-D4meadLe.js} +1 -1
- package/dist/{okx-hbqg6oIJ.js.map → okx-D4meadLe.js.map} +1 -1
- package/dist/{open-sea-BccuK8-t.js → open-sea-DN0hgfVw.js} +1 -1
- package/dist/{open-sea-BccuK8-t.js.map → open-sea-DN0hgfVw.js.map} +1 -1
- package/dist/{primary-sale-C55ALnfQ.js → primary-sale-CmWxSfFQ.js} +1 -1
- package/dist/{primary-sale-C55ALnfQ.js.map → primary-sale-CmWxSfFQ.js.map} +1 -1
- package/dist/provider-DPGUA10G.js +125 -0
- package/dist/provider-DPGUA10G.js.map +1 -0
- package/dist/{queries-CUU65uYZ.js → queries-Ce_2othB.js} +165 -7
- package/dist/queries-Ce_2othB.js.map +1 -0
- package/dist/{rarible-BgTwwj9g.js → rarible-B0xlD88A.js} +1 -1
- package/dist/{rarible-BgTwwj9g.js.map → rarible-B0xlD88A.js.map} +1 -1
- package/dist/react/_internal/api/index.d.ts +2 -4
- package/dist/react/_internal/api/index.js +7 -4
- package/dist/react/_internal/databeat/index.d.ts +2 -73
- package/dist/react/_internal/databeat/index.js +4 -21
- package/dist/react/_internal/index.d.ts +2 -7
- package/dist/react/_internal/index.js +11 -6
- package/dist/react/_internal/wagmi/index.d.ts +2 -4
- package/dist/react/_internal/wagmi/index.js +5 -3
- package/dist/react/hooks/index.d.ts +12 -17
- package/dist/react/hooks/index.js +23 -19
- package/dist/react/hooks/options/index.d.ts +2 -3
- package/dist/react/hooks/options/index.js +12 -7
- package/dist/react/index.d.ts +12 -17
- package/dist/react/index.js +28 -19
- package/dist/react/queries/index.d.ts +9 -8
- package/dist/react/queries/index.js +20 -15
- package/dist/react/ssr/index.d.ts +7 -9
- package/dist/react/ssr/index.js +11 -6
- package/dist/react/ssr/index.js.map +1 -1
- package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +3 -8
- package/dist/react/ui/components/marketplace-collectible-card/index.js +27 -18
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.d.ts +2 -7
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.js +11 -6
- package/dist/react/ui/components/marketplace-logos/index.d.ts +21 -21
- package/dist/react/ui/components/marketplace-logos/index.js +1 -1
- package/dist/react/ui/icons/index.js +13 -9
- package/dist/react/ui/index.d.ts +3 -8
- package/dist/react/ui/index.js +27 -18
- package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +23 -18
- package/dist/{react-DAIicQPT.js → react-DP0M2Wfm.js} +799 -4306
- package/dist/react-DP0M2Wfm.js.map +1 -0
- package/dist/{react-BbHBl6gg.css → react-DeDyTgo7.css} +1 -1
- package/dist/{react-BbHBl6gg.css.map → react-DeDyTgo7.css.map} +1 -1
- package/dist/{sequence-Do3kzb4J.js → sequence-BIrOVRXO.js} +1 -1
- package/dist/{sequence-Do3kzb4J.js.map → sequence-BIrOVRXO.js.map} +1 -1
- package/dist/{sudo-swap-B6vPKxBz.js → sudo-swap-BPMon-M5.js} +1 -1
- package/dist/{sudo-swap-B6vPKxBz.js.map → sudo-swap-BPMon-M5.js.map} +1 -1
- package/dist/{super-rare-eCm1SE6O.js → super-rare-kPN6Ua8i.js} +1 -1
- package/dist/{super-rare-eCm1SE6O.js.map → super-rare-kPN6Ua8i.js.map} +1 -1
- package/dist/{token-Da4TdyUk.js → token-CHSBPYVG.js} +1 -1
- package/dist/{token-Da4TdyUk.js.map → token-CHSBPYVG.js.map} +1 -1
- package/dist/{transaction-CcVViHEL.js → transaction-CnctdNzS.js} +3 -21
- package/dist/transaction-CnctdNzS.js.map +1 -0
- package/dist/types/index.d.ts +2 -3
- package/dist/types/index.js +2 -2
- package/dist/{types-DwWE6xOF.js → types-Yw2ywj6j.js} +1 -1
- package/dist/{types-DwWE6xOF.js.map → types-Yw2ywj6j.js.map} +1 -1
- package/dist/utils/abi/index.d.ts +4 -4
- package/dist/utils/abi/index.js +4 -4
- 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 +7 -8
- package/dist/utils/index.js +12 -9
- package/dist/{utils-CW2NA5KG.js → utils-9RXDgcBl.js} +4 -11
- package/dist/utils-9RXDgcBl.js.map +1 -0
- package/dist/{utils-BPYfgDSL.js → utils-DjVJ9tov.js} +5 -6
- package/dist/utils-DjVJ9tov.js.map +1 -0
- package/dist/wagmi-Do_KW5ke.js +0 -0
- package/dist/{x2y2-DD17tT91.js → x2y2-BLz-_Q2O.js} +1 -1
- package/dist/{x2y2-DD17tT91.js.map → x2y2-BLz-_Q2O.js.map} +1 -1
- package/dist/{zora-BpSG9UzS.js → zora-UGhKs-aL.js} +1 -1
- package/dist/{zora-BpSG9UzS.js.map → zora-UGhKs-aL.js.map} +1 -1
- package/eslint.config.mjs +4 -0
- package/package.json +27 -14
- package/postcss.config.mjs +6 -0
- package/src/index.css +5 -4
- package/src/index.ts +1 -0
- package/src/react/__tests__/provider.test.tsx +4 -3
- package/src/react/_internal/api/__mocks__/indexer.msw.ts +16 -0
- package/src/react/_internal/api/__mocks__/laos.msw.ts +387 -0
- package/src/react/_internal/api/__mocks__/marketplace.msw.ts +2 -0
- package/src/react/_internal/api/__tests__/laos-api.test.ts +756 -0
- package/src/react/_internal/api/laos-api.ts +3 -0
- package/src/react/_internal/api/marketplace.gen.ts +5 -3
- package/src/react/_internal/api/query-keys.ts +12 -4
- package/src/react/_internal/api/services.ts +2 -14
- package/src/react/_internal/databeat/index.ts +15 -14
- package/src/react/_internal/databeat/types.ts +22 -0
- package/src/react/_internal/databeat/utils.ts +26 -0
- package/src/react/_internal/utils.ts +4 -4
- package/src/react/_internal/wagmi/create-config.ts +28 -13
- package/src/react/_internal/wallet/wallet.ts +4 -4
- package/src/react/hooks/__tests__/useBalanceOfCollectible.laos.test.tsx +367 -0
- package/src/react/hooks/__tests__/useCheckoutOptions.test.tsx +158 -0
- package/src/react/hooks/__tests__/useCheckoutOptionsSalesContract.test.tsx +42 -65
- package/src/react/hooks/__tests__/useCollectionBalanceDetails.test.tsx +17 -0
- package/src/react/hooks/__tests__/useCollectionDetailsPolling.test.tsx +11 -3
- package/src/react/hooks/__tests__/useConvertPriceToUSD.test.tsx +3 -3
- package/src/react/hooks/__tests__/useCurrencyBalance.test.tsx +7 -3
- package/src/react/hooks/__tests__/useFilters.test.tsx +2 -2
- package/src/react/hooks/__tests__/useGetTokenRanges.test.tsx +111 -0
- package/src/react/hooks/__tests__/useListTokenMetadata.test.tsx +83 -57
- package/src/react/hooks/__tests__/useTransferTokens.test.tsx +469 -0
- package/src/react/hooks/index.ts +3 -1
- package/src/react/hooks/useCheckoutOptions.tsx +96 -0
- package/src/react/hooks/useCheckoutOptionsSalesContract.tsx +98 -57
- package/src/react/hooks/useCollectionBalanceDetails.tsx +95 -68
- package/src/react/hooks/useCollectionDetailsPolling.tsx +3 -7
- package/src/react/hooks/useComparePrices.tsx +90 -82
- package/src/react/hooks/useConvertPriceToUSD.tsx +85 -71
- package/src/react/hooks/useCurrencyBalance.tsx +132 -46
- package/src/react/hooks/useERC721SaleMintedTokens.tsx +8 -5
- package/src/react/hooks/useFilters.tsx +154 -111
- package/src/react/hooks/useGetCountOfPrimarySaleItems.tsx +48 -0
- package/src/react/hooks/useGetTokenRanges.tsx +83 -22
- package/src/react/hooks/useList1155ShopCardData.tsx +2 -0
- package/src/react/hooks/useList721ShopCardData.tsx +12 -7
- package/src/react/hooks/useListCollections.tsx +25 -25
- package/src/react/hooks/useListMarketCardData.tsx +2 -1
- package/src/react/hooks/useListPrimarySaleItems.tsx +66 -0
- package/src/react/hooks/useListTokenMetadata.ts +71 -0
- package/src/react/hooks/useOpenConnectModal.tsx +9 -0
- package/src/react/hooks/useTokenSaleDetailsBatch.tsx +3 -7
- package/src/react/hooks/useTokenSupplies.ts +81 -0
- package/src/react/hooks/useTransferTokens.tsx +2 -2
- package/src/react/provider.tsx +73 -9
- package/src/react/queries/__tests__/balanceOfCollectible.laos.test.ts +123 -0
- package/src/react/queries/__tests__/inventory.laos.test.ts +496 -0
- package/src/react/queries/balanceOfCollectible.ts +7 -4
- package/src/react/queries/checkoutOptions.ts +85 -0
- package/src/react/queries/checkoutOptionsSalesContract.ts +89 -0
- package/src/react/queries/collectionBalanceDetails.ts +92 -0
- package/src/react/queries/comparePrices.ts +108 -0
- package/src/react/queries/convertPriceToUSD.ts +92 -0
- package/src/react/queries/filters.ts +138 -0
- package/src/react/queries/getTokenRanges.ts +62 -0
- package/src/react/queries/index.ts +3 -0
- package/src/react/queries/inventory.ts +6 -0
- package/src/react/queries/listBalances.ts +4 -3
- package/src/react/queries/listCollections.ts +7 -3
- package/src/react/queries/listTokenMetadata.ts +2 -2
- package/src/react/queries/marketplaceConfig.ts +1 -1
- package/src/react/queries/primarySaleItems.ts +85 -0
- package/src/react/queries/primarySaleItemsCount.ts +64 -0
- package/src/react/queries/tokenSupplies.ts +93 -0
- package/src/react/ui/components/_internals/action-button/ActionButton.tsx +66 -66
- package/src/react/ui/components/_internals/action-button/__tests__/ActionButtonBody.test.tsx +22 -4
- package/src/react/ui/components/_internals/action-button/components/ActionButtonBody.tsx +5 -4
- package/src/react/ui/components/_internals/action-button/components/NonOwnerActions.tsx +3 -0
- package/src/react/ui/components/_internals/action-button/components/OwnerActions.tsx +4 -4
- package/src/react/ui/components/_internals/action-button/hooks/useActionButtonLogic.ts +13 -8
- package/src/react/ui/components/_internals/action-button/store.ts +44 -34
- package/src/react/ui/components/_internals/custom-select/CustomSelect.stories.tsx +582 -0
- package/src/react/ui/components/_internals/pill/Pill.stories.tsx +83 -0
- package/src/react/ui/components/marketplace-collectible-card/Footer.tsx +11 -4
- package/src/react/ui/components/marketplace-collectible-card/components/ActionButtonWrapper.tsx +7 -4
- package/src/react/ui/components/marketplace-collectible-card/types.ts +4 -3
- package/src/react/ui/components/marketplace-collectible-card/utils/supplyStatus.ts +4 -7
- package/src/react/ui/components/marketplace-collectible-card/variants/ShopCard.tsx +5 -1
- package/src/react/ui/components/marketplace-logos/marketplace-logos.stories.tsx +199 -0
- package/src/react/ui/components/media/Media.stories.tsx +642 -0
- package/src/react/ui/components/media/Media.tsx +24 -19
- package/src/react/ui/components/media/types.ts +6 -0
- package/src/react/ui/modals/BuyModal/__tests__/BuyModalRouter.test.tsx +15 -0
- package/src/react/ui/modals/BuyModal/__tests__/ERC1155ShopModal.test.tsx +6 -0
- package/src/react/ui/modals/BuyModal/__tests__/Modal1155.test.tsx +7 -1
- package/src/react/ui/modals/BuyModal/__tests__/store.test.ts +9 -1
- package/src/react/ui/modals/BuyModal/components/ERC1155QuantityModal.tsx +15 -8
- package/src/react/ui/modals/BuyModal/components/ERC1155ShopModal.tsx +3 -0
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC1155Checkout.test.tsx +30 -27
- package/src/react/ui/modals/BuyModal/hooks/useCheckoutOptions.ts +2 -2
- package/src/react/ui/modals/BuyModal/hooks/useERC1155Checkout.ts +11 -2
- package/src/react/ui/modals/BuyModal/hooks/useERC721SalePaymentParams.ts +1 -1
- package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +7 -0
- package/src/react/ui/modals/BuyModal/index.tsx +9 -1
- package/src/react/ui/modals/BuyModal/store.ts +26 -0
- package/src/react/ui/modals/CreateListingModal/Modal.tsx +28 -11
- package/src/react/ui/modals/CreateListingModal/store.ts +3 -3
- package/src/react/ui/modals/MakeOfferModal/Modal.tsx +30 -13
- package/src/react/ui/modals/MakeOfferModal/store.ts +3 -3
- package/src/react/ui/modals/SellModal/Modal.tsx +11 -8
- package/src/react/ui/modals/SellModal/store.ts +3 -3
- package/src/react/ui/modals/TransferModal/__tests__/__snapshots__/store.test.ts.snap +17 -0
- package/src/react/ui/modals/TransferModal/__tests__/store.test.ts +366 -0
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/__tests__/useHandleTransfer.test.tsx +402 -0
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TokenQuantityInput.tsx +51 -48
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TransferButton.tsx +39 -47
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/WalletAddressInput.tsx +9 -8
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +31 -35
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/useHandleTransfer.tsx +19 -10
- package/src/react/ui/modals/TransferModal/index.tsx +28 -31
- package/src/react/ui/modals/TransferModal/messages.ts +1 -1
- package/src/react/ui/modals/TransferModal/store.ts +122 -0
- package/src/react/ui/modals/_internal/components/calendar/index.tsx +0 -1
- package/src/react/ui/modals/_internal/components/currencyImage/index.tsx +10 -14
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +5 -2
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +23 -17
- package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +10 -10
- package/src/react/ui/modals/_internal/components/floorPriceText/__tests__/FloorPriceText.test.tsx +6 -6
- package/src/react/ui/modals/_internal/components/priceInput/__tests__/PriceInput.test.tsx +13 -5
- package/src/react/ui/modals/_internal/components/priceInput/index.tsx +41 -26
- package/src/react/ui/modals/_internal/components/quantityInput/__tests__/index.test.tsx +68 -59
- package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +155 -20
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/__tests__/SelectWaasFeeOptions.test.tsx +339 -40
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/index.tsx +95 -101
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/store.ts +72 -14
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/useWaasFeeOptionManager.tsx +29 -13
- package/src/react/ui/modals/_internal/components/tokenPreview/index.tsx +2 -2
- package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +2 -2
- package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +88 -89
- package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/TransactionStatusModal.test.tsx +36 -10
- package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +32 -20
- package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +91 -62
- package/src/react/ui/modals/_internal/components/waasFeeOptionsSelect/WaasFeeOptionsSelect.tsx +43 -44
- package/src/react/ui/modals/_internal/types.ts +2 -2
- package/src/types/sdk-config.ts +6 -1
- package/src/utils/network.ts +15 -0
- package/test/test-utils.tsx +2 -0
- package/vitest.shims.d.ts +2 -0
- package/vitest.storybook.config.js +33 -0
- package/dist/CalendarIcon-DbQ7Vxcw.js.map +0 -1
- package/dist/_internal-BgWcRIak.js.map +0 -1
- package/dist/api-DTIan01C.js.map +0 -1
- package/dist/builder-api-C_zj5mr3.d.ts +0 -12
- package/dist/index-BUVWziLP.d.ts +0 -60
- package/dist/index-COt10OgI.d.ts +0 -24
- package/dist/index-DPNWNa7t.d.ts +0 -414
- package/dist/index-DsfCs3-x.d.ts +0 -122
- package/dist/index-dUb6wb4Y.d.ts +0 -22
- package/dist/marketplace.gen-BSDIX7NZ.js.map +0 -1
- package/dist/marketplaceConfig-C6X1SUik.js.map +0 -1
- package/dist/queries-CUU65uYZ.js.map +0 -1
- package/dist/react-DAIicQPT.js.map +0 -1
- package/dist/transaction-CcVViHEL.js.map +0 -1
- package/dist/utils-BPYfgDSL.js.map +0 -1
- package/dist/utils-CW2NA5KG.js.map +0 -1
- package/dist/wagmi-CDzEQbfk.js.map +0 -1
- package/src/react/hooks/__tests__/useGetTokenSuppliesMap.test.tsx +0 -104
- package/src/react/hooks/useGetTokenSuppliesMap.tsx +0 -73
- package/src/react/hooks/useListPrimarySaleItems.ts +0 -102
- package/src/react/queries/getTokenSuppliesMap.ts +0 -77
- package/src/react/ui/modals/TransferModal/_store.ts +0 -66
- package/src/react/ui/modals/_internal/components/quantityInput/QuantityInputBase.tsx +0 -166
- package/src/react/ui/modals/_internal/stores/accountModal.ts +0 -3
- /package/dist/{abi-BKyRjVcZ.js → abi-BMvgNbKQ.js} +0 -0
- /package/dist/{index-C39K_8SG.d.ts → index-CD2bj_xW.d.ts} +0 -0
- /package/dist/{options-B4QN7Xou.js → options-BBBR8u_4.js} +0 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { CheckoutOptionsSalesContractArgs, CheckoutOptionsSalesContractReturn, CollectibleCardAction, CollectibleOrder, CollectiblesFilter, Collection, CollectionFilterSettings, ContractType, CreateReq, Currency, CurrencyStatus, GenerateCancelTransactionArgs, GenerateListingTransactionArgs, GenerateOfferTransactionArgs, GenerateSellTransactionArgs, GetCountOfPrimarySaleItemsReturn, ListCollectibleActivitiesArgs, ListCollectibleActivitiesReturn, ListCollectibleListingsArgs, ListCollectibleListingsReturn, ListCollectibleOffersReturn, ListCollectiblesArgs, ListCollectiblesReturn, ListCollectionActivitiesArgs, ListCollectionActivitiesReturn, ListPrimarySaleItemsReturn, MarketplaceConfig, MarketplaceKind, MarketplaceType, Order, OrderFilter, OrderSide, OrderbookKind, Page, PrimarySaleItemsFilter, PropertyFilter, PropertyType, SdkConfig, SortBy, Step, TokenMetadata, WalletKind } from "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import * as
|
|
1
|
+
import { CheckoutOptionsItem, CheckoutOptionsSalesContractArgs, CheckoutOptionsSalesContractReturn, CollectibleCardAction, CollectibleOrder, CollectiblesFilter, Collection, CollectionFilterSettings, ContractType, CreateReq, Currency, CurrencyStatus, GenerateCancelTransactionArgs, GenerateListingTransactionArgs, GenerateOfferTransactionArgs, GenerateSellTransactionArgs, GetCountOfPrimarySaleItemsReturn, ListCollectibleActivitiesArgs, ListCollectibleActivitiesReturn, ListCollectibleListingsArgs, ListCollectibleListingsReturn, ListCollectibleOffersReturn, ListCollectiblesArgs, ListCollectiblesReturn, ListCollectionActivitiesArgs, ListCollectionActivitiesReturn, ListPrimarySaleItemsReturn, MarketplaceConfig, MarketplaceKind, MarketplaceSdkContext, MarketplaceType, Optional, Order, OrderFilter, OrderSide, OrderbookKind, Page, PrimarySaleItemsFilter, PropertyFilter, PropertyType, QueryArg, SdkConfig, SortBy, Step, TokenMetadata, ValuesOptional, WalletKind } from "./create-config-DKJ-F0jc.js";
|
|
2
|
+
import { CollectibleQueryOptions, CollectiblesResponse, CollectionDetailsQueryOptions, CurrencyQueryOptions, FloorOrderQueryOptions, HighestOfferQueryOptions, ListCollectiblesQueryOptions, ListCollectionsQueryOptions, ListTokenMetadataQueryOptions, LowestListingQueryOptions, MarketCurrenciesQueryOptions, StandardQueryOptions, TokenSuppliesQueryOptions, UseBalanceOfCollectibleArgs, UseCountOfPrimarySaleItemsArgs, UseInventoryArgs, UseListBalancesArgs } from "./index-BKBin-rq.js";
|
|
3
|
+
import { MarketCollectibleCardProps } from "./CollectibleCard-Dd-CG6dE.js";
|
|
4
|
+
import * as react33 from "react";
|
|
5
|
+
import * as _tanstack_react_query227 from "@tanstack/react-query";
|
|
6
6
|
import { skipToken } from "@tanstack/react-query";
|
|
7
|
-
import * as
|
|
8
|
-
import { GetTokenBalancesDetailsReturn,
|
|
9
|
-
import * as
|
|
7
|
+
import * as _0xsequence_indexer226 from "@0xsequence/indexer";
|
|
8
|
+
import { GetTokenBalancesDetailsReturn, GetTokenIDRangesReturn } from "@0xsequence/indexer";
|
|
9
|
+
import * as _0xsequence_metadata250 from "@0xsequence/metadata";
|
|
10
10
|
import { PropertyFilter as PropertyFilter$1 } from "@0xsequence/metadata";
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import * as nuqs167 from "nuqs";
|
|
11
|
+
import * as react_jsx_runtime34 from "react/jsx-runtime";
|
|
12
|
+
import * as viem255 from "viem";
|
|
13
|
+
import { Address } from "viem";
|
|
14
|
+
import * as nuqs258 from "nuqs";
|
|
16
15
|
|
|
17
16
|
//#region src/types/waas-types.d.ts
|
|
18
17
|
type FeeOption = {
|
|
@@ -148,7 +147,7 @@ declare function useAutoSelectFeeOption({
|
|
|
148
147
|
* });
|
|
149
148
|
* ```
|
|
150
149
|
*/
|
|
151
|
-
declare function useBalanceOfCollectible(args: UseBalanceOfCollectibleArgs):
|
|
150
|
+
declare function useBalanceOfCollectible(args: UseBalanceOfCollectibleArgs): _tanstack_react_query227.UseQueryResult<_0xsequence_indexer226.TokenBalance, Error>;
|
|
152
151
|
//#endregion
|
|
153
152
|
//#region src/react/hooks/useCancelOrder.d.ts
|
|
154
153
|
interface UseCancelOrderArgs {
|
|
@@ -182,29 +181,83 @@ declare const useCancelOrder: ({
|
|
|
182
181
|
cancellingOrderId: string | null;
|
|
183
182
|
};
|
|
184
183
|
//#endregion
|
|
185
|
-
//#region src/react/
|
|
186
|
-
|
|
184
|
+
//#region src/react/queries/checkoutOptionsSalesContract.d.ts
|
|
185
|
+
interface FetchCheckoutOptionsSalesContractParams extends Omit<CheckoutOptionsSalesContractArgs, 'chainId' | 'wallet'> {
|
|
187
186
|
chainId: number;
|
|
187
|
+
walletAddress: Address;
|
|
188
|
+
contractAddress: string;
|
|
189
|
+
collectionAddress: string;
|
|
190
|
+
items: Array<CheckoutOptionsItem>;
|
|
191
|
+
config: SdkConfig;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Fetches checkout options for sales contract from the Marketplace API
|
|
195
|
+
*/
|
|
196
|
+
declare function fetchCheckoutOptionsSalesContract(params: FetchCheckoutOptionsSalesContractParams): Promise<CheckoutOptionsSalesContractReturn>;
|
|
197
|
+
type CheckoutOptionsSalesContractQueryOptions = ValuesOptional<FetchCheckoutOptionsSalesContractParams> & {
|
|
198
|
+
query?: StandardQueryOptions;
|
|
188
199
|
};
|
|
189
|
-
declare
|
|
190
|
-
|
|
191
|
-
}) | typeof skipToken, config: SdkConfig) => _tanstack_react_query119.UseQueryOptions<CheckoutOptionsSalesContractReturn, Error, CheckoutOptionsSalesContractReturn, (string | symbol | (Omit<CheckoutOptionsSalesContractArgs, "chainId" | "wallet"> & {
|
|
192
|
-
chainId: number;
|
|
193
|
-
} & {
|
|
194
|
-
wallet?: Hex;
|
|
195
|
-
}))[]> & {
|
|
196
|
-
initialData?: CheckoutOptionsSalesContractReturn | _tanstack_react_query119.InitialDataFunction<CheckoutOptionsSalesContractReturn> | undefined;
|
|
200
|
+
declare function checkoutOptionsSalesContractQueryOptions(params: CheckoutOptionsSalesContractQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<CheckoutOptionsSalesContractReturn, Error, CheckoutOptionsSalesContractReturn, (string | CheckoutOptionsSalesContractQueryOptions)[]>, "queryFn"> & {
|
|
201
|
+
queryFn?: _tanstack_react_query227.QueryFunction<CheckoutOptionsSalesContractReturn, (string | CheckoutOptionsSalesContractQueryOptions)[], never> | undefined;
|
|
197
202
|
} & {
|
|
198
|
-
queryKey: (string |
|
|
199
|
-
chainId: number;
|
|
200
|
-
} & {
|
|
201
|
-
wallet?: Hex;
|
|
202
|
-
}))[] & {
|
|
203
|
+
queryKey: (string | CheckoutOptionsSalesContractQueryOptions)[] & {
|
|
203
204
|
[dataTagSymbol]: CheckoutOptionsSalesContractReturn;
|
|
204
205
|
[dataTagErrorSymbol]: Error;
|
|
205
206
|
};
|
|
206
207
|
};
|
|
207
|
-
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/react/hooks/useCheckoutOptionsSalesContract.d.ts
|
|
210
|
+
type UseCheckoutOptionsSalesContractParams = Optional<CheckoutOptionsSalesContractQueryOptions, 'config' | 'walletAddress'>;
|
|
211
|
+
/**
|
|
212
|
+
* Hook to fetch checkout options for sales contract items
|
|
213
|
+
*
|
|
214
|
+
* Retrieves checkout options including available payment methods, fees, and transaction details
|
|
215
|
+
* for items from a sales contract. Requires a connected wallet to calculate wallet-specific options.
|
|
216
|
+
*
|
|
217
|
+
* @param params - Configuration parameters or skipToken to skip the query
|
|
218
|
+
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
219
|
+
* @param params.contractAddress - The sales contract address
|
|
220
|
+
* @param params.collectionAddress - The collection contract address
|
|
221
|
+
* @param params.items - Array of items to purchase with tokenId and quantity
|
|
222
|
+
* @param params.query - Optional React Query configuration
|
|
223
|
+
*
|
|
224
|
+
* @returns Query result containing checkout options with payment methods and fees
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* Basic usage:
|
|
228
|
+
* ```typescript
|
|
229
|
+
* const { data: checkoutOptions, isLoading } = useCheckoutOptionsSalesContract({
|
|
230
|
+
* chainId: 137,
|
|
231
|
+
* contractAddress: '0x1234...',
|
|
232
|
+
* collectionAddress: '0x5678...',
|
|
233
|
+
* items: [{
|
|
234
|
+
* tokenId: '1',
|
|
235
|
+
* quantity: '1'
|
|
236
|
+
* }]
|
|
237
|
+
* })
|
|
238
|
+
* ```
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* With skipToken to conditionally skip:
|
|
242
|
+
* ```typescript
|
|
243
|
+
* const { data: checkoutOptions } = useCheckoutOptionsSalesContract(
|
|
244
|
+
* items.length > 0 ? {
|
|
245
|
+
* chainId: 1,
|
|
246
|
+
* contractAddress: contractAddress,
|
|
247
|
+
* collectionAddress: collectionAddress,
|
|
248
|
+
* items: items
|
|
249
|
+
* } : skipToken
|
|
250
|
+
* )
|
|
251
|
+
* ```
|
|
252
|
+
*/
|
|
253
|
+
declare function useCheckoutOptionsSalesContract(params: UseCheckoutOptionsSalesContractParams | typeof skipToken): _tanstack_react_query227.UseQueryResult<CheckoutOptionsSalesContractReturn, Error>;
|
|
254
|
+
type UseCheckoutOptionsSalesContractArgs = {
|
|
255
|
+
chainId: number;
|
|
256
|
+
contractAddress: string;
|
|
257
|
+
collectionAddress: string;
|
|
258
|
+
items: Array<CheckoutOptionsItem>;
|
|
259
|
+
};
|
|
260
|
+
type UseCheckoutOptionsSalesContractReturn = Awaited<ReturnType<typeof fetchCheckoutOptionsSalesContract>>;
|
|
208
261
|
//#endregion
|
|
209
262
|
//#region src/react/hooks/useCollectible.d.ts
|
|
210
263
|
type UseCollectibleParams = Optional<CollectibleQueryOptions, 'config'>;
|
|
@@ -246,7 +299,7 @@ type UseCollectibleParams = Optional<CollectibleQueryOptions, 'config'>;
|
|
|
246
299
|
* })
|
|
247
300
|
* ```
|
|
248
301
|
*/
|
|
249
|
-
declare function useCollectible(params: UseCollectibleParams):
|
|
302
|
+
declare function useCollectible(params: UseCollectibleParams): _tanstack_react_query227.UseQueryResult<_0xsequence_metadata250.TokenMetadata, Error>;
|
|
250
303
|
//#endregion
|
|
251
304
|
//#region src/react/queries/collection.d.ts
|
|
252
305
|
interface FetchCollectionParams {
|
|
@@ -261,11 +314,11 @@ interface FetchCollectionParams {
|
|
|
261
314
|
type CollectionQueryOptions = ValuesOptional<FetchCollectionParams> & {
|
|
262
315
|
query?: StandardQueryOptions;
|
|
263
316
|
};
|
|
264
|
-
declare function collectionQueryOptions(params: CollectionQueryOptions):
|
|
265
|
-
queryFn?:
|
|
317
|
+
declare function collectionQueryOptions(params: CollectionQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<_0xsequence_metadata250.ContractInfo, Error, _0xsequence_metadata250.ContractInfo, ("collections" | "detail" | CollectionQueryOptions)[]>, "queryFn"> & {
|
|
318
|
+
queryFn?: _tanstack_react_query227.QueryFunction<_0xsequence_metadata250.ContractInfo, ("collections" | "detail" | CollectionQueryOptions)[], never> | undefined;
|
|
266
319
|
} & {
|
|
267
320
|
queryKey: ("collections" | "detail" | CollectionQueryOptions)[] & {
|
|
268
|
-
[dataTagSymbol]:
|
|
321
|
+
[dataTagSymbol]: _0xsequence_metadata250.ContractInfo;
|
|
269
322
|
[dataTagErrorSymbol]: Error;
|
|
270
323
|
};
|
|
271
324
|
};
|
|
@@ -307,28 +360,97 @@ type UseCollectionParams = Optional<CollectionQueryOptions, 'config'>;
|
|
|
307
360
|
* })
|
|
308
361
|
* ```
|
|
309
362
|
*/
|
|
310
|
-
declare function useCollection(params: UseCollectionParams):
|
|
363
|
+
declare function useCollection(params: UseCollectionParams): _tanstack_react_query227.UseQueryResult<_0xsequence_metadata250.ContractInfo, Error>;
|
|
311
364
|
//#endregion
|
|
312
|
-
//#region src/react/
|
|
365
|
+
//#region src/react/queries/collectionBalanceDetails.d.ts
|
|
313
366
|
interface CollectionBalanceFilter {
|
|
314
|
-
accountAddresses: Address
|
|
315
|
-
contractWhitelist?: Address
|
|
367
|
+
accountAddresses: Array<Address>;
|
|
368
|
+
contractWhitelist?: Array<Address>;
|
|
316
369
|
omitNativeBalances: boolean;
|
|
317
370
|
}
|
|
318
|
-
interface
|
|
371
|
+
interface FetchCollectionBalanceDetailsParams {
|
|
319
372
|
chainId: number;
|
|
320
373
|
filter: CollectionBalanceFilter;
|
|
321
|
-
|
|
374
|
+
config: SdkConfig;
|
|
322
375
|
}
|
|
323
|
-
|
|
324
|
-
|
|
376
|
+
/**
|
|
377
|
+
* Fetches detailed balance information for multiple accounts from the Indexer API
|
|
378
|
+
*/
|
|
379
|
+
declare function fetchCollectionBalanceDetails(params: FetchCollectionBalanceDetailsParams): Promise<GetTokenBalancesDetailsReturn>;
|
|
380
|
+
type CollectionBalanceDetailsQueryOptions = ValuesOptional<FetchCollectionBalanceDetailsParams> & {
|
|
381
|
+
query?: StandardQueryOptions;
|
|
382
|
+
};
|
|
383
|
+
declare function collectionBalanceDetailsQueryOptions(params: CollectionBalanceDetailsQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<GetTokenBalancesDetailsReturn, Error, GetTokenBalancesDetailsReturn, (string | CollectionBalanceDetailsQueryOptions)[]>, "queryFn"> & {
|
|
384
|
+
queryFn?: _tanstack_react_query227.QueryFunction<GetTokenBalancesDetailsReturn, (string | CollectionBalanceDetailsQueryOptions)[], never> | undefined;
|
|
325
385
|
} & {
|
|
326
|
-
queryKey: (
|
|
386
|
+
queryKey: (string | CollectionBalanceDetailsQueryOptions)[] & {
|
|
327
387
|
[dataTagSymbol]: GetTokenBalancesDetailsReturn;
|
|
328
388
|
[dataTagErrorSymbol]: Error;
|
|
329
389
|
};
|
|
330
390
|
};
|
|
331
|
-
|
|
391
|
+
//#endregion
|
|
392
|
+
//#region src/react/hooks/useCollectionBalanceDetails.d.ts
|
|
393
|
+
type UseCollectionBalanceDetailsParams = Optional<CollectionBalanceDetailsQueryOptions, 'config'>;
|
|
394
|
+
/**
|
|
395
|
+
* Hook to fetch detailed balance information for multiple accounts
|
|
396
|
+
*
|
|
397
|
+
* Retrieves token balances and native balances for multiple account addresses,
|
|
398
|
+
* with support for contract whitelisting and optional native balance exclusion.
|
|
399
|
+
* Aggregates results from multiple account addresses into a single response.
|
|
400
|
+
*
|
|
401
|
+
* @param params - Configuration parameters
|
|
402
|
+
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
403
|
+
* @param params.filter - Filter configuration for balance queries
|
|
404
|
+
* @param params.filter.accountAddresses - Array of account addresses to query balances for
|
|
405
|
+
* @param params.filter.contractWhitelist - Optional array of contract addresses to filter by
|
|
406
|
+
* @param params.filter.omitNativeBalances - Whether to exclude native token balances
|
|
407
|
+
* @param params.query - Optional React Query configuration
|
|
408
|
+
*
|
|
409
|
+
* @returns Query result containing aggregated balance details for all accounts
|
|
410
|
+
*
|
|
411
|
+
* @example
|
|
412
|
+
* Basic usage:
|
|
413
|
+
* ```typescript
|
|
414
|
+
* const { data: balanceDetails, isLoading } = useCollectionBalanceDetails({
|
|
415
|
+
* chainId: 137,
|
|
416
|
+
* filter: {
|
|
417
|
+
* accountAddresses: ['0x1234...', '0x5678...'],
|
|
418
|
+
* omitNativeBalances: false
|
|
419
|
+
* }
|
|
420
|
+
* })
|
|
421
|
+
*
|
|
422
|
+
* if (data) {
|
|
423
|
+
* console.log(`Found ${data.balances.length} token balances`);
|
|
424
|
+
* console.log(`Found ${data.nativeBalances.length} native balances`);
|
|
425
|
+
* }
|
|
426
|
+
* ```
|
|
427
|
+
*
|
|
428
|
+
* @example
|
|
429
|
+
* With contract whitelist:
|
|
430
|
+
* ```typescript
|
|
431
|
+
* const { data: balanceDetails } = useCollectionBalanceDetails({
|
|
432
|
+
* chainId: 1,
|
|
433
|
+
* filter: {
|
|
434
|
+
* accountAddresses: [userAddress],
|
|
435
|
+
* contractWhitelist: ['0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'], // USDC only
|
|
436
|
+
* omitNativeBalances: true
|
|
437
|
+
* },
|
|
438
|
+
* query: {
|
|
439
|
+
* enabled: Boolean(userAddress),
|
|
440
|
+
* refetchInterval: 60000 // Refresh every minute
|
|
441
|
+
* }
|
|
442
|
+
* })
|
|
443
|
+
* ```
|
|
444
|
+
*/
|
|
445
|
+
declare function useCollectionBalanceDetails(params: UseCollectionBalanceDetailsParams): _tanstack_react_query227.UseQueryResult<_0xsequence_indexer226.GetTokenBalancesDetailsReturn, Error>;
|
|
446
|
+
type UseCollectionBalanceDetailsArgs = {
|
|
447
|
+
chainId: number;
|
|
448
|
+
filter: CollectionBalanceFilter;
|
|
449
|
+
query?: {
|
|
450
|
+
enabled?: boolean;
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
type UseCollectionBalanceDetailsReturn = Awaited<ReturnType<typeof fetchCollectionBalanceDetails>>;
|
|
332
454
|
//#endregion
|
|
333
455
|
//#region src/react/hooks/useCollectionDetails.d.ts
|
|
334
456
|
type UseCollectionDetailsParams = Optional<CollectionDetailsQueryOptions, 'config'>;
|
|
@@ -367,7 +489,7 @@ type UseCollectionDetailsParams = Optional<CollectionDetailsQueryOptions, 'confi
|
|
|
367
489
|
* })
|
|
368
490
|
* ```
|
|
369
491
|
*/
|
|
370
|
-
declare function useCollectionDetails(params: UseCollectionDetailsParams):
|
|
492
|
+
declare function useCollectionDetails(params: UseCollectionDetailsParams): _tanstack_react_query227.UseQueryResult<Collection, Error>;
|
|
371
493
|
//#endregion
|
|
372
494
|
//#region src/react/hooks/useCollectionDetailsPolling.d.ts
|
|
373
495
|
type UseCollectionDetailsPolling = {
|
|
@@ -377,97 +499,201 @@ type UseCollectionDetailsPolling = {
|
|
|
377
499
|
enabled?: boolean;
|
|
378
500
|
};
|
|
379
501
|
};
|
|
380
|
-
declare const collectionDetailsPollingOptions: (args: UseCollectionDetailsPolling, config: SdkConfig) =>
|
|
381
|
-
queryFn?:
|
|
502
|
+
declare const collectionDetailsPollingOptions: (args: UseCollectionDetailsPolling, config: SdkConfig) => _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<Collection, Error, Collection, ("collections" | "detail" | CollectionDetailsQueryOptions)[]>, "queryFn"> & {
|
|
503
|
+
queryFn?: _tanstack_react_query227.QueryFunction<Collection, ("collections" | "detail" | CollectionDetailsQueryOptions)[], never> | undefined;
|
|
382
504
|
} & {
|
|
383
505
|
queryKey: ("collections" | "detail" | CollectionDetailsQueryOptions)[] & {
|
|
384
506
|
[dataTagSymbol]: Collection;
|
|
385
507
|
[dataTagErrorSymbol]: Error;
|
|
386
508
|
};
|
|
387
509
|
};
|
|
388
|
-
declare const useCollectionDetailsPolling: (args: UseCollectionDetailsPolling) =>
|
|
510
|
+
declare const useCollectionDetailsPolling: (args: UseCollectionDetailsPolling) => _tanstack_react_query227.UseQueryResult<Collection, Error>;
|
|
389
511
|
//#endregion
|
|
390
|
-
//#region src/react/
|
|
391
|
-
interface
|
|
512
|
+
//#region src/react/queries/comparePrices.d.ts
|
|
513
|
+
interface FetchComparePricesParams {
|
|
392
514
|
chainId: number;
|
|
393
515
|
priceAmountRaw: string;
|
|
394
516
|
priceCurrencyAddress: Address;
|
|
395
517
|
compareToPriceAmountRaw: string;
|
|
396
518
|
compareToPriceCurrencyAddress: Address;
|
|
397
|
-
|
|
519
|
+
config: SdkConfig;
|
|
398
520
|
}
|
|
399
|
-
|
|
521
|
+
type ComparePricesReturn$1 = {
|
|
400
522
|
percentageDifference: number;
|
|
401
523
|
percentageDifferenceFormatted: string;
|
|
402
524
|
status: 'above' | 'same' | 'below';
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
|
|
525
|
+
};
|
|
526
|
+
/**
|
|
527
|
+
* Compares prices between different currencies by converting both to USD
|
|
528
|
+
*/
|
|
529
|
+
|
|
530
|
+
type ComparePricesQueryOptions = ValuesOptional<FetchComparePricesParams> & {
|
|
531
|
+
query?: StandardQueryOptions;
|
|
532
|
+
};
|
|
533
|
+
declare function comparePricesQueryOptions(params: ComparePricesQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<ComparePricesReturn$1, Error, ComparePricesReturn$1, (string | ComparePricesQueryOptions)[]>, "queryFn"> & {
|
|
534
|
+
queryFn?: _tanstack_react_query227.QueryFunction<ComparePricesReturn$1, (string | ComparePricesQueryOptions)[], never> | undefined;
|
|
406
535
|
} & {
|
|
407
|
-
queryKey: (string |
|
|
408
|
-
[dataTagSymbol]:
|
|
536
|
+
queryKey: (string | ComparePricesQueryOptions)[] & {
|
|
537
|
+
[dataTagSymbol]: ComparePricesReturn$1;
|
|
409
538
|
[dataTagErrorSymbol]: Error;
|
|
410
539
|
};
|
|
411
540
|
};
|
|
541
|
+
//#endregion
|
|
542
|
+
//#region src/react/hooks/useComparePrices.d.ts
|
|
543
|
+
type UseComparePricesParams = Optional<ComparePricesQueryOptions, 'config'>;
|
|
412
544
|
/**
|
|
413
545
|
* Hook to compare prices between different currencies by converting both to USD
|
|
414
|
-
*
|
|
415
|
-
*
|
|
546
|
+
*
|
|
547
|
+
* Compares two prices by converting both to USD using real-time exchange rates
|
|
548
|
+
* and returns the percentage difference with comparison status.
|
|
549
|
+
*
|
|
550
|
+
* @param params - Configuration parameters
|
|
551
|
+
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
552
|
+
* @param params.priceAmountRaw - The raw amount of the first price (wei format)
|
|
553
|
+
* @param params.priceCurrencyAddress - The currency address of the first price
|
|
554
|
+
* @param params.compareToPriceAmountRaw - The raw amount of the second price to compare against (wei format)
|
|
555
|
+
* @param params.compareToPriceCurrencyAddress - The currency address of the second price
|
|
556
|
+
* @param params.query - Optional React Query configuration
|
|
557
|
+
*
|
|
558
|
+
* @returns Query result containing percentage difference and comparison status
|
|
559
|
+
*
|
|
416
560
|
* @example
|
|
417
|
-
*
|
|
418
|
-
*
|
|
561
|
+
* Basic usage:
|
|
562
|
+
* ```typescript
|
|
563
|
+
* const { data: comparison, isLoading } = useComparePrices({
|
|
419
564
|
* chainId: 1,
|
|
420
|
-
* priceAmountRaw:
|
|
421
|
-
* priceCurrencyAddress:
|
|
422
|
-
*
|
|
565
|
+
* priceAmountRaw: '1000000000000000000', // 1 ETH in wei
|
|
566
|
+
* priceCurrencyAddress: '0x0000000000000000000000000000000000000000', // ETH
|
|
567
|
+
* compareToPriceAmountRaw: '2000000000', // 2000 USDC in wei (6 decimals)
|
|
568
|
+
* compareToPriceCurrencyAddress: '0xA0b86a33E6B8DbF5E71Eaa9bfD3F6fD8e8Be3F69' // USDC
|
|
569
|
+
* })
|
|
423
570
|
*
|
|
424
|
-
*
|
|
425
|
-
*
|
|
571
|
+
* if (data) {
|
|
572
|
+
* console.log(`${data.percentageDifferenceFormatted}% ${data.status}`);
|
|
573
|
+
* // e.g., "25.50% above" or "10.25% below"
|
|
574
|
+
* }
|
|
575
|
+
* ```
|
|
576
|
+
*
|
|
577
|
+
* @example
|
|
578
|
+
* With custom query options:
|
|
579
|
+
* ```typescript
|
|
580
|
+
* const { data: comparison } = useComparePrices({
|
|
581
|
+
* chainId: 137,
|
|
582
|
+
* priceAmountRaw: price1,
|
|
583
|
+
* priceCurrencyAddress: currency1Address,
|
|
584
|
+
* compareToPriceAmountRaw: price2,
|
|
585
|
+
* compareToPriceCurrencyAddress: currency2Address,
|
|
586
|
+
* query: {
|
|
587
|
+
* enabled: Boolean(price1 && price2),
|
|
588
|
+
* refetchInterval: 30000 // Refresh every 30 seconds
|
|
589
|
+
* }
|
|
590
|
+
* })
|
|
426
591
|
* ```
|
|
427
592
|
*/
|
|
428
|
-
declare
|
|
593
|
+
declare function useComparePrices(params: UseComparePricesParams): _tanstack_react_query227.UseQueryResult<ComparePricesReturn$1, Error>;
|
|
594
|
+
type UseComparePricesArgs = {
|
|
595
|
+
chainId: number;
|
|
596
|
+
priceAmountRaw: string;
|
|
597
|
+
priceCurrencyAddress: Address;
|
|
598
|
+
compareToPriceAmountRaw: string;
|
|
599
|
+
compareToPriceCurrencyAddress: Address;
|
|
600
|
+
query?: {
|
|
601
|
+
enabled?: boolean;
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
type UseComparePricesReturn = {
|
|
605
|
+
percentageDifference: number;
|
|
606
|
+
percentageDifferenceFormatted: string;
|
|
607
|
+
status: 'above' | 'same' | 'below';
|
|
608
|
+
};
|
|
609
|
+
type ComparePricesReturn = UseComparePricesReturn;
|
|
429
610
|
//#endregion
|
|
430
611
|
//#region src/react/hooks/useConfig.d.ts
|
|
431
|
-
declare function useConfig():
|
|
612
|
+
declare function useConfig(): MarketplaceSdkContext;
|
|
432
613
|
//#endregion
|
|
433
|
-
//#region src/react/
|
|
434
|
-
interface
|
|
614
|
+
//#region src/react/queries/convertPriceToUSD.d.ts
|
|
615
|
+
interface FetchConvertPriceToUSDParams {
|
|
435
616
|
chainId: number;
|
|
436
617
|
currencyAddress: Address;
|
|
437
618
|
amountRaw: string;
|
|
438
|
-
|
|
439
|
-
enabled?: boolean;
|
|
440
|
-
};
|
|
619
|
+
config: SdkConfig;
|
|
441
620
|
}
|
|
442
|
-
|
|
621
|
+
interface ConvertPriceToUSDReturn {
|
|
443
622
|
usdAmount: number;
|
|
444
623
|
usdAmountFormatted: string;
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* Converts a price amount from a specific currency to USD using exchange rates
|
|
627
|
+
*/
|
|
628
|
+
|
|
629
|
+
type ConvertPriceToUSDQueryOptions = ValuesOptional<FetchConvertPriceToUSDParams> & {
|
|
630
|
+
query?: StandardQueryOptions;
|
|
445
631
|
};
|
|
446
|
-
declare
|
|
447
|
-
|
|
448
|
-
queryFn?: _tanstack_react_query119.QueryFunction<UseConvertPriceToUSDReturn, ("currencies" | "conversion" | UseConvertPriceToUSDArgs)[], never> | undefined;
|
|
632
|
+
declare function convertPriceToUSDQueryOptions(params: ConvertPriceToUSDQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<ConvertPriceToUSDReturn, Error, ConvertPriceToUSDReturn, (string | ConvertPriceToUSDQueryOptions)[]>, "queryFn"> & {
|
|
633
|
+
queryFn?: _tanstack_react_query227.QueryFunction<ConvertPriceToUSDReturn, (string | ConvertPriceToUSDQueryOptions)[], never> | undefined;
|
|
449
634
|
} & {
|
|
450
|
-
queryKey: (
|
|
451
|
-
[dataTagSymbol]:
|
|
635
|
+
queryKey: (string | ConvertPriceToUSDQueryOptions)[] & {
|
|
636
|
+
[dataTagSymbol]: ConvertPriceToUSDReturn;
|
|
452
637
|
[dataTagErrorSymbol]: Error;
|
|
453
638
|
};
|
|
454
639
|
};
|
|
640
|
+
//#endregion
|
|
641
|
+
//#region src/react/hooks/useConvertPriceToUSD.d.ts
|
|
642
|
+
type UseConvertPriceToUSDParams = Optional<ConvertPriceToUSDQueryOptions, 'config'>;
|
|
455
643
|
/**
|
|
456
644
|
* Hook to convert a price amount from a specific currency to USD
|
|
457
|
-
*
|
|
645
|
+
*
|
|
646
|
+
* Converts cryptocurrency amounts to their USD equivalent using current exchange rates.
|
|
647
|
+
* Fetches currency data and calculates the USD value based on the provided amount
|
|
648
|
+
* and currency address.
|
|
649
|
+
*
|
|
650
|
+
* @param params - Configuration parameters
|
|
651
|
+
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
652
|
+
* @param params.currencyAddress - The currency contract address to convert from
|
|
653
|
+
* @param params.amountRaw - The raw amount in smallest units (e.g., wei for ETH)
|
|
654
|
+
* @param params.query - Optional React Query configuration
|
|
655
|
+
*
|
|
656
|
+
* @returns Query result containing USD amount and formatted USD amount
|
|
657
|
+
*
|
|
458
658
|
* @example
|
|
459
|
-
*
|
|
460
|
-
*
|
|
659
|
+
* Basic ETH to USD conversion:
|
|
660
|
+
* ```typescript
|
|
661
|
+
* const { data: conversion, isLoading } = useConvertPriceToUSD({
|
|
461
662
|
* chainId: 1,
|
|
462
|
-
* currencyAddress:
|
|
463
|
-
* amountRaw:
|
|
464
|
-
* })
|
|
663
|
+
* currencyAddress: '0x0000000000000000000000000000000000000000', // ETH
|
|
664
|
+
* amountRaw: '1000000000000000000' // 1 ETH in wei
|
|
665
|
+
* })
|
|
465
666
|
*
|
|
466
|
-
*
|
|
467
|
-
* //
|
|
667
|
+
* if (data) {
|
|
668
|
+
* console.log(`$${data.usdAmountFormatted}`); // e.g., "$2000.00"
|
|
669
|
+
* console.log(data.usdAmount); // e.g., 2000
|
|
670
|
+
* }
|
|
671
|
+
* ```
|
|
672
|
+
*
|
|
673
|
+
* @example
|
|
674
|
+
* ERC-20 token conversion with conditional enabling:
|
|
675
|
+
* ```typescript
|
|
676
|
+
* const { data: conversion } = useConvertPriceToUSD({
|
|
677
|
+
* chainId: 137,
|
|
678
|
+
* currencyAddress: '0x2791bca1f2de4661ed88a30c99a7a9449aa84174', // USDC on Polygon
|
|
679
|
+
* amountRaw: '1000000', // 1 USDC (6 decimals)
|
|
680
|
+
* query: {
|
|
681
|
+
* enabled: Boolean(userHasTokens),
|
|
682
|
+
* refetchInterval: 30000 // Update price every 30 seconds
|
|
683
|
+
* }
|
|
684
|
+
* })
|
|
468
685
|
* ```
|
|
469
686
|
*/
|
|
470
|
-
declare
|
|
687
|
+
declare function useConvertPriceToUSD(params: UseConvertPriceToUSDParams): _tanstack_react_query227.UseQueryResult<ConvertPriceToUSDReturn, Error>;
|
|
688
|
+
type UseConvertPriceToUSDArgs = {
|
|
689
|
+
chainId: number;
|
|
690
|
+
currencyAddress: Address;
|
|
691
|
+
amountRaw: string;
|
|
692
|
+
query?: {
|
|
693
|
+
enabled?: boolean;
|
|
694
|
+
};
|
|
695
|
+
};
|
|
696
|
+
type UseConvertPriceToUSDReturn = ConvertPriceToUSDReturn;
|
|
471
697
|
//#endregion
|
|
472
698
|
//#region src/react/queries/countListingsForCollectible.d.ts
|
|
473
699
|
interface FetchCountListingsForCollectibleParams {
|
|
@@ -484,8 +710,8 @@ interface FetchCountListingsForCollectibleParams {
|
|
|
484
710
|
type CountListingsForCollectibleQueryOptions = ValuesOptional<FetchCountListingsForCollectibleParams> & {
|
|
485
711
|
query?: StandardQueryOptions;
|
|
486
712
|
};
|
|
487
|
-
declare function countListingsForCollectibleQueryOptions(params: CountListingsForCollectibleQueryOptions):
|
|
488
|
-
queryFn?:
|
|
713
|
+
declare function countListingsForCollectibleQueryOptions(params: CountListingsForCollectibleQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<number, Error, number, ("collectable" | "listingsCount" | CountListingsForCollectibleQueryOptions)[]>, "queryFn"> & {
|
|
714
|
+
queryFn?: _tanstack_react_query227.QueryFunction<number, ("collectable" | "listingsCount" | CountListingsForCollectibleQueryOptions)[], never> | undefined;
|
|
489
715
|
} & {
|
|
490
716
|
queryKey: ("collectable" | "listingsCount" | CountListingsForCollectibleQueryOptions)[] & {
|
|
491
717
|
[dataTagSymbol]: number;
|
|
@@ -531,7 +757,7 @@ type UseCountListingsForCollectibleParams = Optional<CountListingsForCollectible
|
|
|
531
757
|
* })
|
|
532
758
|
* ```
|
|
533
759
|
*/
|
|
534
|
-
declare function useCountListingsForCollectible(params: UseCountListingsForCollectibleParams):
|
|
760
|
+
declare function useCountListingsForCollectible(params: UseCountListingsForCollectibleParams): _tanstack_react_query227.UseQueryResult<number, Error>;
|
|
535
761
|
//#endregion
|
|
536
762
|
//#region src/react/queries/countOfCollectables.d.ts
|
|
537
763
|
interface FetchCountOfCollectablesParams {
|
|
@@ -548,8 +774,8 @@ interface FetchCountOfCollectablesParams {
|
|
|
548
774
|
type CountOfCollectablesQueryOptions = ValuesOptional<FetchCountOfCollectablesParams> & {
|
|
549
775
|
query?: StandardQueryOptions;
|
|
550
776
|
};
|
|
551
|
-
declare function countOfCollectablesQueryOptions(params: CountOfCollectablesQueryOptions):
|
|
552
|
-
queryFn?:
|
|
777
|
+
declare function countOfCollectablesQueryOptions(params: CountOfCollectablesQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<number, Error, number, ("collectable" | "counts" | CountOfCollectablesQueryOptions)[]>, "queryFn"> & {
|
|
778
|
+
queryFn?: _tanstack_react_query227.QueryFunction<number, ("collectable" | "counts" | CountOfCollectablesQueryOptions)[], never> | undefined;
|
|
553
779
|
} & {
|
|
554
780
|
queryKey: ("collectable" | "counts" | CountOfCollectablesQueryOptions)[] & {
|
|
555
781
|
[dataTagSymbol]: number;
|
|
@@ -595,7 +821,7 @@ type UseCountOfCollectablesParams = Optional<CountOfCollectablesQueryOptions, 'c
|
|
|
595
821
|
* })
|
|
596
822
|
* ```
|
|
597
823
|
*/
|
|
598
|
-
declare function useCountOfCollectables(params: UseCountOfCollectablesParams):
|
|
824
|
+
declare function useCountOfCollectables(params: UseCountOfCollectablesParams): _tanstack_react_query227.UseQueryResult<number, Error>;
|
|
599
825
|
//#endregion
|
|
600
826
|
//#region src/react/queries/countOffersForCollectible.d.ts
|
|
601
827
|
interface FetchCountOffersForCollectibleParams {
|
|
@@ -612,8 +838,8 @@ interface FetchCountOffersForCollectibleParams {
|
|
|
612
838
|
type CountOffersForCollectibleQueryOptions = ValuesOptional<FetchCountOffersForCollectibleParams> & {
|
|
613
839
|
query?: StandardQueryOptions;
|
|
614
840
|
};
|
|
615
|
-
declare function countOffersForCollectibleQueryOptions(params: CountOffersForCollectibleQueryOptions):
|
|
616
|
-
queryFn?:
|
|
841
|
+
declare function countOffersForCollectibleQueryOptions(params: CountOffersForCollectibleQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<number, Error, number, ("collectable" | "offersCount" | CountOffersForCollectibleQueryOptions)[]>, "queryFn"> & {
|
|
842
|
+
queryFn?: _tanstack_react_query227.QueryFunction<number, ("collectable" | "offersCount" | CountOffersForCollectibleQueryOptions)[], never> | undefined;
|
|
617
843
|
} & {
|
|
618
844
|
queryKey: ("collectable" | "offersCount" | CountOffersForCollectibleQueryOptions)[] & {
|
|
619
845
|
[dataTagSymbol]: number;
|
|
@@ -659,32 +885,10 @@ type UseCountOffersForCollectibleParams = Optional<CountOffersForCollectibleQuer
|
|
|
659
885
|
* })
|
|
660
886
|
* ```
|
|
661
887
|
*/
|
|
662
|
-
declare function useCountOffersForCollectible(params: UseCountOffersForCollectibleParams):
|
|
888
|
+
declare function useCountOffersForCollectible(params: UseCountOffersForCollectibleParams): _tanstack_react_query227.UseQueryResult<number, Error>;
|
|
663
889
|
//#endregion
|
|
664
890
|
//#region src/react/hooks/useCountOfPrimarySaleItems.d.ts
|
|
665
|
-
declare function useCountOfPrimarySaleItems(args: UseCountOfPrimarySaleItemsArgs):
|
|
666
|
-
//#endregion
|
|
667
|
-
//#region src/react/queries/currency.d.ts
|
|
668
|
-
interface FetchCurrencyParams {
|
|
669
|
-
chainId: number;
|
|
670
|
-
currencyAddress: Address;
|
|
671
|
-
config: SdkConfig;
|
|
672
|
-
}
|
|
673
|
-
/**
|
|
674
|
-
* Fetches currency details from the marketplace API
|
|
675
|
-
*/
|
|
676
|
-
|
|
677
|
-
type CurrencyQueryOptions = ValuesOptional<FetchCurrencyParams> & {
|
|
678
|
-
query?: StandardQueryOptions;
|
|
679
|
-
};
|
|
680
|
-
declare function currencyQueryOptions(params: CurrencyQueryOptions): _tanstack_react_query119.UseQueryOptions<Currency | undefined, Error, Currency | undefined, ("details" | "currencies" | CurrencyQueryOptions)[]> & {
|
|
681
|
-
initialData?: Currency | _tanstack_react_query119.InitialDataFunction<Currency> | undefined;
|
|
682
|
-
} & {
|
|
683
|
-
queryKey: ("details" | "currencies" | CurrencyQueryOptions)[] & {
|
|
684
|
-
[dataTagSymbol]: Currency | undefined;
|
|
685
|
-
[dataTagErrorSymbol]: Error;
|
|
686
|
-
};
|
|
687
|
-
};
|
|
891
|
+
declare function useCountOfPrimarySaleItems(args: UseCountOfPrimarySaleItemsArgs): _tanstack_react_query227.UseQueryResult<number, Error>;
|
|
688
892
|
//#endregion
|
|
689
893
|
//#region src/react/hooks/useCurrency.d.ts
|
|
690
894
|
type UseCurrencyParams = Optional<CurrencyQueryOptions, 'config'>;
|
|
@@ -722,7 +926,7 @@ type UseCurrencyParams = Optional<CurrencyQueryOptions, 'config'>;
|
|
|
722
926
|
* })
|
|
723
927
|
* ```
|
|
724
928
|
*/
|
|
725
|
-
declare function useCurrency(params: UseCurrencyParams):
|
|
929
|
+
declare function useCurrency(params: UseCurrencyParams): _tanstack_react_query227.UseQueryResult<Currency | undefined, Error>;
|
|
726
930
|
//#endregion
|
|
727
931
|
//#region src/react/hooks/useERC721SaleMintedTokens.d.ts
|
|
728
932
|
interface UseERC721SaleMintedTokensProps {
|
|
@@ -743,7 +947,7 @@ declare function useERC721SaleMintedTokens({
|
|
|
743
947
|
totalSupplyCap: number;
|
|
744
948
|
remainingCount: number;
|
|
745
949
|
isLoading: boolean;
|
|
746
|
-
error:
|
|
950
|
+
error: viem255.ReadContractErrorType | null;
|
|
747
951
|
saleDetails: {
|
|
748
952
|
supplyCap: bigint;
|
|
749
953
|
cost: bigint;
|
|
@@ -791,33 +995,141 @@ declare function useFilterState(): {
|
|
|
791
995
|
filterOptions: PropertyFilter[];
|
|
792
996
|
searchText: string;
|
|
793
997
|
showListedOnly: boolean;
|
|
794
|
-
setFilterOptions: (value: PropertyFilter[] | ((old: PropertyFilter[]) => PropertyFilter[] | null) | null, options?:
|
|
795
|
-
setSearchText: (value: string | ((old: string) => string | null) | null, options?:
|
|
796
|
-
setShowListedOnly: (value: boolean | ((old: boolean) => boolean | null) | null, options?:
|
|
998
|
+
setFilterOptions: (value: PropertyFilter[] | ((old: PropertyFilter[]) => PropertyFilter[] | null) | null, options?: nuqs258.Options) => Promise<URLSearchParams>;
|
|
999
|
+
setSearchText: (value: string | ((old: string) => string | null) | null, options?: nuqs258.Options) => Promise<URLSearchParams>;
|
|
1000
|
+
setShowListedOnly: (value: boolean | ((old: boolean) => boolean | null) | null, options?: nuqs258.Options) => Promise<URLSearchParams>;
|
|
797
1001
|
};
|
|
798
1002
|
//#endregion
|
|
799
|
-
//#region src/react/
|
|
800
|
-
|
|
1003
|
+
//#region src/react/queries/filters.d.ts
|
|
1004
|
+
interface FetchFiltersParams {
|
|
801
1005
|
chainId: number;
|
|
802
1006
|
collectionAddress: string;
|
|
803
1007
|
showAllFilters?: boolean;
|
|
804
1008
|
excludePropertyValues?: boolean;
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
1009
|
+
config: SdkConfig;
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* Fetches collection filters from the Metadata API with optional marketplace filtering
|
|
1013
|
+
*/
|
|
1014
|
+
|
|
1015
|
+
type FiltersQueryOptions = ValuesOptional<FetchFiltersParams> & {
|
|
1016
|
+
query?: StandardQueryOptions;
|
|
808
1017
|
};
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
declare const filtersOptions: (args: UseFiltersArgs, config: SdkConfig) => _tanstack_react_query119.OmitKeyof<_tanstack_react_query119.UseQueryOptions<PropertyFilter$1[], Error, PropertyFilter$1[], (SdkConfig | "filter" | "collectable" | UseFiltersArgs)[]>, "queryFn"> & {
|
|
812
|
-
queryFn?: _tanstack_react_query119.QueryFunction<PropertyFilter$1[], (SdkConfig | "filter" | "collectable" | UseFiltersArgs)[], never> | undefined;
|
|
1018
|
+
declare function filtersQueryOptions(params: FiltersQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<PropertyFilter$1[], Error, PropertyFilter$1[], (string | FiltersQueryOptions)[]>, "queryFn"> & {
|
|
1019
|
+
queryFn?: _tanstack_react_query227.QueryFunction<PropertyFilter$1[], (string | FiltersQueryOptions)[], never> | undefined;
|
|
813
1020
|
} & {
|
|
814
|
-
queryKey: (
|
|
1021
|
+
queryKey: (string | FiltersQueryOptions)[] & {
|
|
815
1022
|
[dataTagSymbol]: PropertyFilter$1[];
|
|
816
1023
|
[dataTagErrorSymbol]: Error;
|
|
817
1024
|
};
|
|
818
1025
|
};
|
|
819
|
-
|
|
820
|
-
|
|
1026
|
+
//#endregion
|
|
1027
|
+
//#region src/react/hooks/useFilters.d.ts
|
|
1028
|
+
type UseFiltersParams = Optional<FiltersQueryOptions, 'config'>;
|
|
1029
|
+
/**
|
|
1030
|
+
* Hook to fetch metadata filters for a collection
|
|
1031
|
+
*
|
|
1032
|
+
* Retrieves property filters for a collection from the metadata service,
|
|
1033
|
+
* with support for marketplace-specific filter configuration including
|
|
1034
|
+
* exclusion rules and custom ordering.
|
|
1035
|
+
*
|
|
1036
|
+
* @param params - Configuration parameters
|
|
1037
|
+
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
1038
|
+
* @param params.collectionAddress - The collection contract address to fetch filters for
|
|
1039
|
+
* @param params.showAllFilters - Whether to show all filters or apply marketplace filtering
|
|
1040
|
+
* @param params.excludePropertyValues - Whether to exclude property values from the response
|
|
1041
|
+
* @param params.query - Optional React Query configuration
|
|
1042
|
+
*
|
|
1043
|
+
* @returns Query result containing property filters for the collection
|
|
1044
|
+
*
|
|
1045
|
+
* @example
|
|
1046
|
+
* Basic usage:
|
|
1047
|
+
* ```typescript
|
|
1048
|
+
* const { data: filters, isLoading } = useFilters({
|
|
1049
|
+
* chainId: 137,
|
|
1050
|
+
* collectionAddress: '0x1234...'
|
|
1051
|
+
* })
|
|
1052
|
+
*
|
|
1053
|
+
* if (data) {
|
|
1054
|
+
* console.log(`Found ${data.length} filters`);
|
|
1055
|
+
* data.forEach(filter => {
|
|
1056
|
+
* console.log(`${filter.name}: ${filter.values?.join(', ')}`);
|
|
1057
|
+
* });
|
|
1058
|
+
* }
|
|
1059
|
+
* ```
|
|
1060
|
+
*
|
|
1061
|
+
* @example
|
|
1062
|
+
* With marketplace filtering disabled:
|
|
1063
|
+
* ```typescript
|
|
1064
|
+
* const { data: allFilters } = useFilters({
|
|
1065
|
+
* chainId: 1,
|
|
1066
|
+
* collectionAddress: '0x5678...',
|
|
1067
|
+
* showAllFilters: true, // Bypass marketplace filter rules
|
|
1068
|
+
* query: {
|
|
1069
|
+
* enabled: Boolean(selectedCollection),
|
|
1070
|
+
* staleTime: 300000 // Cache for 5 minutes
|
|
1071
|
+
* }
|
|
1072
|
+
* })
|
|
1073
|
+
* ```
|
|
1074
|
+
*
|
|
1075
|
+
* @example
|
|
1076
|
+
* Exclude property values for faster loading:
|
|
1077
|
+
* ```typescript
|
|
1078
|
+
* const { data: filterNames } = useFilters({
|
|
1079
|
+
* chainId: 137,
|
|
1080
|
+
* collectionAddress: collectionAddress,
|
|
1081
|
+
* excludePropertyValues: true, // Only get filter names, not values
|
|
1082
|
+
* query: {
|
|
1083
|
+
* enabled: Boolean(collectionAddress)
|
|
1084
|
+
* }
|
|
1085
|
+
* })
|
|
1086
|
+
* ```
|
|
1087
|
+
*/
|
|
1088
|
+
declare function useFilters(params: UseFiltersParams): _tanstack_react_query227.UseQueryResult<PropertyFilter$1[], Error>;
|
|
1089
|
+
/**
|
|
1090
|
+
* Hook to progressively load collection filters
|
|
1091
|
+
*
|
|
1092
|
+
* First loads filter names only for fast initial display, then loads full filter
|
|
1093
|
+
* data with values. Uses placeholder data to provide immediate feedback while
|
|
1094
|
+
* full data loads in the background.
|
|
1095
|
+
*
|
|
1096
|
+
* @param params - Configuration parameters (same as useFilters)
|
|
1097
|
+
*
|
|
1098
|
+
* @returns Query result with additional loading states
|
|
1099
|
+
* @returns result.isLoadingNames - Whether filter names are still loading
|
|
1100
|
+
* @returns result.isFetchingValues - Whether filter values are being fetched
|
|
1101
|
+
*
|
|
1102
|
+
* @example
|
|
1103
|
+
* Progressive filter loading:
|
|
1104
|
+
* ```typescript
|
|
1105
|
+
* const {
|
|
1106
|
+
* data: filters,
|
|
1107
|
+
* isLoadingNames,
|
|
1108
|
+
* isFetchingValues,
|
|
1109
|
+
* isLoading
|
|
1110
|
+
* } = useFiltersProgressive({
|
|
1111
|
+
* chainId: 137,
|
|
1112
|
+
* collectionAddress: '0x1234...'
|
|
1113
|
+
* })
|
|
1114
|
+
*
|
|
1115
|
+
* if (isLoadingNames) {
|
|
1116
|
+
* return <div>Loading filters...</div>;
|
|
1117
|
+
* }
|
|
1118
|
+
*
|
|
1119
|
+
* return (
|
|
1120
|
+
* <div>
|
|
1121
|
+
* {filters?.map(filter => (
|
|
1122
|
+
* <FilterComponent
|
|
1123
|
+
* key={filter.name}
|
|
1124
|
+
* filter={filter}
|
|
1125
|
+
* isLoadingValues={isFetchingValues}
|
|
1126
|
+
* />
|
|
1127
|
+
* ))}
|
|
1128
|
+
* </div>
|
|
1129
|
+
* );
|
|
1130
|
+
* ```
|
|
1131
|
+
*/
|
|
1132
|
+
declare function useFiltersProgressive(params: UseFiltersParams): {
|
|
821
1133
|
isFetchingValues: boolean;
|
|
822
1134
|
isLoadingNames: boolean;
|
|
823
1135
|
data: PropertyFilter$1[];
|
|
@@ -842,8 +1154,8 @@ declare const useFiltersProgressive: (args: UseFiltersArgs) => {
|
|
|
842
1154
|
isPaused: boolean;
|
|
843
1155
|
isRefetching: boolean;
|
|
844
1156
|
isStale: boolean;
|
|
845
|
-
refetch: (options?:
|
|
846
|
-
fetchStatus:
|
|
1157
|
+
refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<PropertyFilter$1[], Error>>;
|
|
1158
|
+
fetchStatus: _tanstack_react_query227.FetchStatus;
|
|
847
1159
|
promise: Promise<PropertyFilter$1[]>;
|
|
848
1160
|
} | {
|
|
849
1161
|
isFetchingValues: boolean;
|
|
@@ -870,8 +1182,8 @@ declare const useFiltersProgressive: (args: UseFiltersArgs) => {
|
|
|
870
1182
|
isPaused: boolean;
|
|
871
1183
|
isRefetching: boolean;
|
|
872
1184
|
isStale: boolean;
|
|
873
|
-
refetch: (options?:
|
|
874
|
-
fetchStatus:
|
|
1185
|
+
refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<PropertyFilter$1[], Error>>;
|
|
1186
|
+
fetchStatus: _tanstack_react_query227.FetchStatus;
|
|
875
1187
|
promise: Promise<PropertyFilter$1[]>;
|
|
876
1188
|
} | {
|
|
877
1189
|
isFetchingValues: boolean;
|
|
@@ -898,8 +1210,8 @@ declare const useFiltersProgressive: (args: UseFiltersArgs) => {
|
|
|
898
1210
|
isPaused: boolean;
|
|
899
1211
|
isRefetching: boolean;
|
|
900
1212
|
isStale: boolean;
|
|
901
|
-
refetch: (options?:
|
|
902
|
-
fetchStatus:
|
|
1213
|
+
refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<PropertyFilter$1[], Error>>;
|
|
1214
|
+
fetchStatus: _tanstack_react_query227.FetchStatus;
|
|
903
1215
|
promise: Promise<PropertyFilter$1[]>;
|
|
904
1216
|
} | {
|
|
905
1217
|
isFetchingValues: boolean;
|
|
@@ -926,8 +1238,8 @@ declare const useFiltersProgressive: (args: UseFiltersArgs) => {
|
|
|
926
1238
|
isPaused: boolean;
|
|
927
1239
|
isRefetching: boolean;
|
|
928
1240
|
isStale: boolean;
|
|
929
|
-
refetch: (options?:
|
|
930
|
-
fetchStatus:
|
|
1241
|
+
refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<PropertyFilter$1[], Error>>;
|
|
1242
|
+
fetchStatus: _tanstack_react_query227.FetchStatus;
|
|
931
1243
|
promise: Promise<PropertyFilter$1[]>;
|
|
932
1244
|
} | {
|
|
933
1245
|
isFetchingValues: boolean;
|
|
@@ -954,8 +1266,8 @@ declare const useFiltersProgressive: (args: UseFiltersArgs) => {
|
|
|
954
1266
|
isPaused: boolean;
|
|
955
1267
|
isRefetching: boolean;
|
|
956
1268
|
isStale: boolean;
|
|
957
|
-
refetch: (options?:
|
|
958
|
-
fetchStatus:
|
|
1269
|
+
refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<PropertyFilter$1[], Error>>;
|
|
1270
|
+
fetchStatus: _tanstack_react_query227.FetchStatus;
|
|
959
1271
|
promise: Promise<PropertyFilter$1[]>;
|
|
960
1272
|
} | {
|
|
961
1273
|
isFetchingValues: boolean;
|
|
@@ -982,10 +1294,20 @@ declare const useFiltersProgressive: (args: UseFiltersArgs) => {
|
|
|
982
1294
|
isPaused: boolean;
|
|
983
1295
|
isRefetching: boolean;
|
|
984
1296
|
isStale: boolean;
|
|
985
|
-
refetch: (options?:
|
|
986
|
-
fetchStatus:
|
|
1297
|
+
refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<PropertyFilter$1[], Error>>;
|
|
1298
|
+
fetchStatus: _tanstack_react_query227.FetchStatus;
|
|
987
1299
|
promise: Promise<PropertyFilter$1[]>;
|
|
988
1300
|
};
|
|
1301
|
+
type UseFiltersArgs = {
|
|
1302
|
+
chainId: number;
|
|
1303
|
+
collectionAddress: string;
|
|
1304
|
+
showAllFilters?: boolean;
|
|
1305
|
+
excludePropertyValues?: boolean;
|
|
1306
|
+
query?: {
|
|
1307
|
+
enabled?: boolean;
|
|
1308
|
+
};
|
|
1309
|
+
};
|
|
1310
|
+
type UseFilterReturn = PropertyFilter$1[];
|
|
989
1311
|
//#endregion
|
|
990
1312
|
//#region src/react/hooks/useFloorOrder.d.ts
|
|
991
1313
|
type UseFloorOrderParams = Optional<FloorOrderQueryOptions, 'config'>;
|
|
@@ -1028,7 +1350,7 @@ type UseFloorOrderParams = Optional<FloorOrderQueryOptions, 'config'>;
|
|
|
1028
1350
|
* })
|
|
1029
1351
|
* ```
|
|
1030
1352
|
*/
|
|
1031
|
-
declare function useFloorOrder(params: UseFloorOrderParams):
|
|
1353
|
+
declare function useFloorOrder(params: UseFloorOrderParams): _tanstack_react_query227.UseQueryResult<CollectibleOrder, Error>;
|
|
1032
1354
|
//#endregion
|
|
1033
1355
|
//#region src/react/hooks/useGenerateCancelTransaction.d.ts
|
|
1034
1356
|
type GenerateCancelTransactionArgsWithNumberChainId = Omit<GenerateCancelTransactionArgs, 'chainId'> & {
|
|
@@ -1040,8 +1362,8 @@ interface UseGenerateCancelTransactionArgs {
|
|
|
1040
1362
|
}
|
|
1041
1363
|
declare const generateCancelTransaction: (args: GenerateCancelTransactionArgsWithNumberChainId, config: SdkConfig) => Promise<Step[]>;
|
|
1042
1364
|
declare const useGenerateCancelTransaction: (params: UseGenerateCancelTransactionArgs) => {
|
|
1043
|
-
generateCancelTransaction:
|
|
1044
|
-
generateCancelTransactionAsync:
|
|
1365
|
+
generateCancelTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
|
|
1366
|
+
generateCancelTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
|
|
1045
1367
|
data: undefined;
|
|
1046
1368
|
variables: undefined;
|
|
1047
1369
|
error: null;
|
|
@@ -1057,8 +1379,8 @@ declare const useGenerateCancelTransaction: (params: UseGenerateCancelTransactio
|
|
|
1057
1379
|
isPaused: boolean;
|
|
1058
1380
|
submittedAt: number;
|
|
1059
1381
|
} | {
|
|
1060
|
-
generateCancelTransaction:
|
|
1061
|
-
generateCancelTransactionAsync:
|
|
1382
|
+
generateCancelTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
|
|
1383
|
+
generateCancelTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
|
|
1062
1384
|
data: undefined;
|
|
1063
1385
|
variables: GenerateCancelTransactionArgsWithNumberChainId;
|
|
1064
1386
|
error: null;
|
|
@@ -1074,8 +1396,8 @@ declare const useGenerateCancelTransaction: (params: UseGenerateCancelTransactio
|
|
|
1074
1396
|
isPaused: boolean;
|
|
1075
1397
|
submittedAt: number;
|
|
1076
1398
|
} | {
|
|
1077
|
-
generateCancelTransaction:
|
|
1078
|
-
generateCancelTransactionAsync:
|
|
1399
|
+
generateCancelTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
|
|
1400
|
+
generateCancelTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
|
|
1079
1401
|
data: undefined;
|
|
1080
1402
|
error: Error;
|
|
1081
1403
|
variables: GenerateCancelTransactionArgsWithNumberChainId;
|
|
@@ -1091,8 +1413,8 @@ declare const useGenerateCancelTransaction: (params: UseGenerateCancelTransactio
|
|
|
1091
1413
|
isPaused: boolean;
|
|
1092
1414
|
submittedAt: number;
|
|
1093
1415
|
} | {
|
|
1094
|
-
generateCancelTransaction:
|
|
1095
|
-
generateCancelTransactionAsync:
|
|
1416
|
+
generateCancelTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
|
|
1417
|
+
generateCancelTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
|
|
1096
1418
|
data: Step[];
|
|
1097
1419
|
error: null;
|
|
1098
1420
|
variables: GenerateCancelTransactionArgsWithNumberChainId;
|
|
@@ -1126,8 +1448,8 @@ type GenerateListingTransactionArgsWithNumberChainId = Omit<GenerateListingTrans
|
|
|
1126
1448
|
};
|
|
1127
1449
|
declare const generateListingTransaction: (params: GenerateListingTransactionArgsWithNumberChainId, config: SdkConfig) => Promise<Step[]>;
|
|
1128
1450
|
declare const useGenerateListingTransaction: (params: UseGenerateListingTransactionArgs) => {
|
|
1129
|
-
generateListingTransaction:
|
|
1130
|
-
generateListingTransactionAsync:
|
|
1451
|
+
generateListingTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1452
|
+
generateListingTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1131
1453
|
data: undefined;
|
|
1132
1454
|
variables: undefined;
|
|
1133
1455
|
error: null;
|
|
@@ -1143,8 +1465,8 @@ declare const useGenerateListingTransaction: (params: UseGenerateListingTransact
|
|
|
1143
1465
|
isPaused: boolean;
|
|
1144
1466
|
submittedAt: number;
|
|
1145
1467
|
} | {
|
|
1146
|
-
generateListingTransaction:
|
|
1147
|
-
generateListingTransactionAsync:
|
|
1468
|
+
generateListingTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1469
|
+
generateListingTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1148
1470
|
data: undefined;
|
|
1149
1471
|
variables: Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">;
|
|
1150
1472
|
error: null;
|
|
@@ -1160,8 +1482,8 @@ declare const useGenerateListingTransaction: (params: UseGenerateListingTransact
|
|
|
1160
1482
|
isPaused: boolean;
|
|
1161
1483
|
submittedAt: number;
|
|
1162
1484
|
} | {
|
|
1163
|
-
generateListingTransaction:
|
|
1164
|
-
generateListingTransactionAsync:
|
|
1485
|
+
generateListingTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1486
|
+
generateListingTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1165
1487
|
data: undefined;
|
|
1166
1488
|
error: Error;
|
|
1167
1489
|
variables: Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">;
|
|
@@ -1177,8 +1499,8 @@ declare const useGenerateListingTransaction: (params: UseGenerateListingTransact
|
|
|
1177
1499
|
isPaused: boolean;
|
|
1178
1500
|
submittedAt: number;
|
|
1179
1501
|
} | {
|
|
1180
|
-
generateListingTransaction:
|
|
1181
|
-
generateListingTransactionAsync:
|
|
1502
|
+
generateListingTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1503
|
+
generateListingTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1182
1504
|
data: Step[];
|
|
1183
1505
|
error: null;
|
|
1184
1506
|
variables: Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">;
|
|
@@ -1212,8 +1534,8 @@ type GenerateOfferTransactionArgsWithNumberChainId = Omit<GenerateOfferTransacti
|
|
|
1212
1534
|
};
|
|
1213
1535
|
declare const generateOfferTransaction: (params: GenerateOfferTransactionArgsWithNumberChainId, config: SdkConfig, walletKind?: WalletKind) => Promise<Step[]>;
|
|
1214
1536
|
declare const useGenerateOfferTransaction: (params: UseGenerateOfferTransactionArgs) => {
|
|
1215
|
-
generateOfferTransaction:
|
|
1216
|
-
generateOfferTransactionAsync:
|
|
1537
|
+
generateOfferTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1538
|
+
generateOfferTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1217
1539
|
data: undefined;
|
|
1218
1540
|
variables: undefined;
|
|
1219
1541
|
error: null;
|
|
@@ -1229,8 +1551,8 @@ declare const useGenerateOfferTransaction: (params: UseGenerateOfferTransactionA
|
|
|
1229
1551
|
isPaused: boolean;
|
|
1230
1552
|
submittedAt: number;
|
|
1231
1553
|
} | {
|
|
1232
|
-
generateOfferTransaction:
|
|
1233
|
-
generateOfferTransactionAsync:
|
|
1554
|
+
generateOfferTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1555
|
+
generateOfferTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1234
1556
|
data: undefined;
|
|
1235
1557
|
variables: Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">;
|
|
1236
1558
|
error: null;
|
|
@@ -1246,8 +1568,8 @@ declare const useGenerateOfferTransaction: (params: UseGenerateOfferTransactionA
|
|
|
1246
1568
|
isPaused: boolean;
|
|
1247
1569
|
submittedAt: number;
|
|
1248
1570
|
} | {
|
|
1249
|
-
generateOfferTransaction:
|
|
1250
|
-
generateOfferTransactionAsync:
|
|
1571
|
+
generateOfferTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1572
|
+
generateOfferTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1251
1573
|
data: undefined;
|
|
1252
1574
|
error: Error;
|
|
1253
1575
|
variables: Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">;
|
|
@@ -1263,8 +1585,8 @@ declare const useGenerateOfferTransaction: (params: UseGenerateOfferTransactionA
|
|
|
1263
1585
|
isPaused: boolean;
|
|
1264
1586
|
submittedAt: number;
|
|
1265
1587
|
} | {
|
|
1266
|
-
generateOfferTransaction:
|
|
1267
|
-
generateOfferTransactionAsync:
|
|
1588
|
+
generateOfferTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1589
|
+
generateOfferTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1268
1590
|
data: Step[];
|
|
1269
1591
|
error: null;
|
|
1270
1592
|
variables: Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">;
|
|
@@ -1291,8 +1613,8 @@ type GenerateSellTransactionArgsWithNumberChainId = Omit<GenerateSellTransaction
|
|
|
1291
1613
|
};
|
|
1292
1614
|
declare const generateSellTransaction: (args: GenerateSellTransactionArgsWithNumberChainId, config: SdkConfig) => Promise<Step[]>;
|
|
1293
1615
|
declare const useGenerateSellTransaction: (params: UseGenerateSellTransactionArgs) => {
|
|
1294
|
-
generateSellTransaction:
|
|
1295
|
-
generateSellTransactionAsync:
|
|
1616
|
+
generateSellTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1617
|
+
generateSellTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1296
1618
|
data: undefined;
|
|
1297
1619
|
variables: undefined;
|
|
1298
1620
|
error: null;
|
|
@@ -1308,8 +1630,8 @@ declare const useGenerateSellTransaction: (params: UseGenerateSellTransactionArg
|
|
|
1308
1630
|
isPaused: boolean;
|
|
1309
1631
|
submittedAt: number;
|
|
1310
1632
|
} | {
|
|
1311
|
-
generateSellTransaction:
|
|
1312
|
-
generateSellTransactionAsync:
|
|
1633
|
+
generateSellTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1634
|
+
generateSellTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1313
1635
|
data: undefined;
|
|
1314
1636
|
variables: Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">;
|
|
1315
1637
|
error: null;
|
|
@@ -1325,8 +1647,8 @@ declare const useGenerateSellTransaction: (params: UseGenerateSellTransactionArg
|
|
|
1325
1647
|
isPaused: boolean;
|
|
1326
1648
|
submittedAt: number;
|
|
1327
1649
|
} | {
|
|
1328
|
-
generateSellTransaction:
|
|
1329
|
-
generateSellTransactionAsync:
|
|
1650
|
+
generateSellTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1651
|
+
generateSellTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1330
1652
|
data: undefined;
|
|
1331
1653
|
error: Error;
|
|
1332
1654
|
variables: Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">;
|
|
@@ -1342,8 +1664,8 @@ declare const useGenerateSellTransaction: (params: UseGenerateSellTransactionArg
|
|
|
1342
1664
|
isPaused: boolean;
|
|
1343
1665
|
submittedAt: number;
|
|
1344
1666
|
} | {
|
|
1345
|
-
generateSellTransaction:
|
|
1346
|
-
generateSellTransactionAsync:
|
|
1667
|
+
generateSellTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1668
|
+
generateSellTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
|
|
1347
1669
|
data: Step[];
|
|
1348
1670
|
error: null;
|
|
1349
1671
|
variables: Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">;
|
|
@@ -1360,85 +1682,125 @@ declare const useGenerateSellTransaction: (params: UseGenerateSellTransactionArg
|
|
|
1360
1682
|
submittedAt: number;
|
|
1361
1683
|
};
|
|
1362
1684
|
//#endregion
|
|
1363
|
-
//#region src/react/
|
|
1364
|
-
interface
|
|
1685
|
+
//#region src/react/queries/primarySaleItems.d.ts
|
|
1686
|
+
interface FetchPrimarySaleItemsParams {
|
|
1365
1687
|
chainId: number;
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1688
|
+
primarySaleContractAddress: Address;
|
|
1689
|
+
filter?: PrimarySaleItemsFilter;
|
|
1690
|
+
page?: Page;
|
|
1691
|
+
config: SdkConfig;
|
|
1370
1692
|
}
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1693
|
+
/**
|
|
1694
|
+
* Fetches primary sale items from the marketplace API
|
|
1695
|
+
*/
|
|
1696
|
+
|
|
1697
|
+
type ListPrimarySaleItemsQueryOptions = ValuesOptional<FetchPrimarySaleItemsParams> & {
|
|
1698
|
+
query?: StandardQueryOptions;
|
|
1699
|
+
};
|
|
1700
|
+
//#endregion
|
|
1701
|
+
//#region src/react/hooks/useGetCountOfPrimarySaleItems.d.ts
|
|
1702
|
+
type UseGetCountParams = Optional<ListPrimarySaleItemsQueryOptions, 'config'>;
|
|
1703
|
+
/**
|
|
1704
|
+
* Hook to get the total count of primary sale items
|
|
1705
|
+
*
|
|
1706
|
+
* Retrieves the total count of primary sale items for a specific contract address
|
|
1707
|
+
* from the marketplace.
|
|
1708
|
+
*
|
|
1709
|
+
* @param params - Configuration parameters
|
|
1710
|
+
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
1711
|
+
* @param params.primarySaleContractAddress - The primary sale contract address
|
|
1712
|
+
* @param params.filter - Optional filter parameters for the query
|
|
1713
|
+
* @param params.query - Optional React Query configuration
|
|
1714
|
+
*
|
|
1715
|
+
* @returns Query result containing the count of primary sale items
|
|
1716
|
+
*
|
|
1717
|
+
* @example
|
|
1718
|
+
* ```typescript
|
|
1719
|
+
* const { data: count, isLoading } = useGetCountOfPrimarySaleItems({
|
|
1720
|
+
* chainId: 137,
|
|
1721
|
+
* primarySaleContractAddress: '0x...',
|
|
1722
|
+
* })
|
|
1723
|
+
* ```
|
|
1724
|
+
*/
|
|
1725
|
+
declare function useGetCountOfPrimarySaleItems(params: UseGetCountParams): _tanstack_react_query227.UseQueryResult<GetCountOfPrimarySaleItemsReturn, Error>;
|
|
1376
1726
|
//#endregion
|
|
1377
|
-
//#region src/react/queries/
|
|
1378
|
-
interface
|
|
1727
|
+
//#region src/react/queries/getTokenRanges.d.ts
|
|
1728
|
+
interface FetchGetTokenRangesParams {
|
|
1379
1729
|
chainId: number;
|
|
1380
|
-
|
|
1381
|
-
collectionAddress: string;
|
|
1730
|
+
collectionAddress: Address;
|
|
1382
1731
|
config: SdkConfig;
|
|
1383
1732
|
}
|
|
1384
1733
|
/**
|
|
1385
|
-
* Fetches token
|
|
1734
|
+
* Fetches token ID ranges for a collection from the Indexer API
|
|
1386
1735
|
*/
|
|
1387
|
-
|
|
1388
|
-
type
|
|
1736
|
+
declare function fetchGetTokenRanges(params: FetchGetTokenRangesParams): Promise<GetTokenIDRangesReturn>;
|
|
1737
|
+
type GetTokenRangesQueryOptions = ValuesOptional<FetchGetTokenRangesParams> & {
|
|
1389
1738
|
query?: StandardQueryOptions;
|
|
1390
1739
|
};
|
|
1391
|
-
declare function
|
|
1392
|
-
queryFn?:
|
|
1740
|
+
declare function getTokenRangesQueryOptions(params: GetTokenRangesQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<GetTokenIDRangesReturn, Error, GetTokenIDRangesReturn, (string | GetTokenRangesQueryOptions)[]>, "queryFn"> & {
|
|
1741
|
+
queryFn?: _tanstack_react_query227.QueryFunction<GetTokenIDRangesReturn, (string | GetTokenRangesQueryOptions)[], never> | undefined;
|
|
1393
1742
|
} & {
|
|
1394
|
-
queryKey: (string |
|
|
1395
|
-
[dataTagSymbol]:
|
|
1743
|
+
queryKey: (string | GetTokenRangesQueryOptions)[] & {
|
|
1744
|
+
[dataTagSymbol]: GetTokenIDRangesReturn;
|
|
1396
1745
|
[dataTagErrorSymbol]: Error;
|
|
1397
1746
|
};
|
|
1398
1747
|
};
|
|
1399
1748
|
//#endregion
|
|
1400
|
-
//#region src/react/hooks/
|
|
1401
|
-
type
|
|
1749
|
+
//#region src/react/hooks/useGetTokenRanges.d.ts
|
|
1750
|
+
type UseGetTokenRangesParams = Optional<GetTokenRangesQueryOptions, 'config'>;
|
|
1402
1751
|
/**
|
|
1403
|
-
* Hook to fetch token
|
|
1752
|
+
* Hook to fetch token ID ranges for a collection
|
|
1404
1753
|
*
|
|
1405
|
-
* Retrieves
|
|
1406
|
-
*
|
|
1754
|
+
* Retrieves the available token ID ranges for a specific collection,
|
|
1755
|
+
* which is useful for understanding the token distribution and
|
|
1756
|
+
* available tokens within a collection.
|
|
1407
1757
|
*
|
|
1408
1758
|
* @param params - Configuration parameters
|
|
1409
1759
|
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
1410
|
-
* @param params.collectionAddress - The collection contract address
|
|
1411
|
-
* @param params.tokenIds - Array of token IDs to fetch supplies for
|
|
1412
|
-
* @param params.config - Optional SDK configuration (defaults from context)
|
|
1760
|
+
* @param params.collectionAddress - The collection contract address to fetch ranges for
|
|
1413
1761
|
* @param params.query - Optional React Query configuration
|
|
1414
1762
|
*
|
|
1415
|
-
* @returns Query result containing token
|
|
1763
|
+
* @returns Query result containing token ID ranges for the collection
|
|
1416
1764
|
*
|
|
1417
1765
|
* @example
|
|
1418
1766
|
* Basic usage:
|
|
1419
1767
|
* ```typescript
|
|
1420
|
-
* const { data:
|
|
1768
|
+
* const { data: tokenRanges, isLoading } = useGetTokenRanges({
|
|
1421
1769
|
* chainId: 137,
|
|
1422
|
-
* collectionAddress: '
|
|
1423
|
-
* tokenIds: ['1', '2', '3']
|
|
1770
|
+
* collectionAddress: '0x1234...'
|
|
1424
1771
|
* })
|
|
1772
|
+
*
|
|
1773
|
+
* if (data) {
|
|
1774
|
+
* console.log(`Token ranges: ${JSON.stringify(data.tokenIDRanges)}`);
|
|
1775
|
+
* data.tokenIDRanges?.forEach(range => {
|
|
1776
|
+
* console.log(`Range: ${range.start} - ${range.end}`);
|
|
1777
|
+
* });
|
|
1778
|
+
* }
|
|
1425
1779
|
* ```
|
|
1426
1780
|
*
|
|
1427
1781
|
* @example
|
|
1428
|
-
* With
|
|
1782
|
+
* With conditional enabling:
|
|
1429
1783
|
* ```typescript
|
|
1430
|
-
* const { data:
|
|
1784
|
+
* const { data: tokenRanges } = useGetTokenRanges({
|
|
1431
1785
|
* chainId: 1,
|
|
1432
|
-
* collectionAddress:
|
|
1433
|
-
* tokenIds: selectedTokenIds,
|
|
1786
|
+
* collectionAddress: selectedCollection?.address,
|
|
1434
1787
|
* query: {
|
|
1435
|
-
* enabled:
|
|
1436
|
-
* staleTime:
|
|
1788
|
+
* enabled: Boolean(selectedCollection?.address),
|
|
1789
|
+
* staleTime: 300000, // Cache for 5 minutes
|
|
1790
|
+
* refetchInterval: 60000 // Refresh every minute
|
|
1437
1791
|
* }
|
|
1438
1792
|
* })
|
|
1439
1793
|
* ```
|
|
1440
1794
|
*/
|
|
1441
|
-
declare function
|
|
1795
|
+
declare function useGetTokenRanges(params: UseGetTokenRangesParams): _tanstack_react_query227.UseQueryResult<_0xsequence_indexer226.GetTokenIDRangesReturn, Error>;
|
|
1796
|
+
type UseGetTokenRangesProps = {
|
|
1797
|
+
chainId: number;
|
|
1798
|
+
collectionAddress: Address;
|
|
1799
|
+
query?: {
|
|
1800
|
+
enabled?: boolean;
|
|
1801
|
+
};
|
|
1802
|
+
};
|
|
1803
|
+
type UseGetTokenRangesReturn = Awaited<ReturnType<typeof fetchGetTokenRanges>>;
|
|
1442
1804
|
//#endregion
|
|
1443
1805
|
//#region src/react/hooks/useHighestOffer.d.ts
|
|
1444
1806
|
type UseHighestOfferParams = Optional<HighestOfferQueryOptions, 'config'>;
|
|
@@ -1480,26 +1842,28 @@ type UseHighestOfferParams = Optional<HighestOfferQueryOptions, 'config'>;
|
|
|
1480
1842
|
* })
|
|
1481
1843
|
* ```
|
|
1482
1844
|
*/
|
|
1483
|
-
declare function useHighestOffer(params: UseHighestOfferParams):
|
|
1845
|
+
declare function useHighestOffer(params: UseHighestOfferParams): _tanstack_react_query227.UseQueryResult<Order | null, Error>;
|
|
1484
1846
|
//#endregion
|
|
1485
1847
|
//#region src/react/provider.d.ts
|
|
1486
|
-
declare const MarketplaceSdkContext:
|
|
1848
|
+
declare const MarketplaceSdkContext$1: react33.Context<MarketplaceSdkContext>;
|
|
1487
1849
|
type MarketplaceSdkProviderProps = {
|
|
1488
1850
|
config: SdkConfig;
|
|
1489
1851
|
children: React.ReactNode;
|
|
1852
|
+
openConnectModal?: () => void;
|
|
1490
1853
|
};
|
|
1854
|
+
declare function MarketplaceProvider({
|
|
1855
|
+
config,
|
|
1856
|
+
children,
|
|
1857
|
+
openConnectModal
|
|
1858
|
+
}: MarketplaceSdkProviderProps): react_jsx_runtime34.JSX.Element;
|
|
1491
1859
|
declare function MarketplaceQueryClientProvider({
|
|
1492
1860
|
children
|
|
1493
1861
|
}: {
|
|
1494
1862
|
children: React.ReactNode;
|
|
1495
|
-
}):
|
|
1496
|
-
declare function MarketplaceProvider({
|
|
1497
|
-
config,
|
|
1498
|
-
children
|
|
1499
|
-
}: MarketplaceSdkProviderProps): react_jsx_runtime116.JSX.Element;
|
|
1863
|
+
}): react_jsx_runtime34.JSX.Element;
|
|
1500
1864
|
//#endregion
|
|
1501
1865
|
//#region src/react/hooks/useInventory.d.ts
|
|
1502
|
-
declare function useInventory(args: UseInventoryArgs):
|
|
1866
|
+
declare function useInventory(args: UseInventoryArgs): _tanstack_react_query227.UseInfiniteQueryResult<_tanstack_react_query227.InfiniteData<CollectiblesResponse, unknown>, Error>;
|
|
1503
1867
|
//#endregion
|
|
1504
1868
|
//#region src/react/hooks/useList721ShopCardData.d.ts
|
|
1505
1869
|
interface UseList721ShopCardDataProps {
|
|
@@ -1539,7 +1903,7 @@ declare function useList721ShopCardData({
|
|
|
1539
1903
|
saleEndsAt: string | undefined;
|
|
1540
1904
|
marketplaceType: "shop";
|
|
1541
1905
|
}[];
|
|
1542
|
-
saleDetailsError:
|
|
1906
|
+
saleDetailsError: viem255.ReadContractErrorType | null;
|
|
1543
1907
|
primarySaleItemsError: Error | null;
|
|
1544
1908
|
saleDetails: {
|
|
1545
1909
|
supplyCap: bigint;
|
|
@@ -1549,7 +1913,7 @@ declare function useList721ShopCardData({
|
|
|
1549
1913
|
endTime: bigint;
|
|
1550
1914
|
merkleRoot: `0x${string}`;
|
|
1551
1915
|
} | undefined;
|
|
1552
|
-
primarySaleItems:
|
|
1916
|
+
primarySaleItems: _tanstack_react_query227.InfiniteData<ListPrimarySaleItemsReturn, unknown> | undefined;
|
|
1553
1917
|
isLoading: boolean;
|
|
1554
1918
|
};
|
|
1555
1919
|
//#endregion
|
|
@@ -1583,6 +1947,7 @@ declare function useList1155ShopCardData({
|
|
|
1583
1947
|
quantityInitial: string | undefined;
|
|
1584
1948
|
quantityDecimals: number;
|
|
1585
1949
|
quantityRemaining: string | undefined;
|
|
1950
|
+
unlimitedSupply: boolean | undefined;
|
|
1586
1951
|
saleStartsAt: string | undefined;
|
|
1587
1952
|
saleEndsAt: string | undefined;
|
|
1588
1953
|
marketplaceType: "shop";
|
|
@@ -1612,7 +1977,7 @@ declare function useList1155ShopCardData({
|
|
|
1612
1977
|
* });
|
|
1613
1978
|
* ```
|
|
1614
1979
|
*/
|
|
1615
|
-
declare function useListBalances(args: UseListBalancesArgs):
|
|
1980
|
+
declare function useListBalances(args: UseListBalancesArgs): _tanstack_react_query227.UseInfiniteQueryResult<_tanstack_react_query227.InfiniteData<_0xsequence_indexer226.GetTokenBalancesReturn, unknown>, Error>;
|
|
1616
1981
|
//#endregion
|
|
1617
1982
|
//#region src/react/queries/listCollectibleActivities.d.ts
|
|
1618
1983
|
interface FetchListCollectibleActivitiesParams extends Omit<ListCollectibleActivitiesArgs, 'chainId' | 'contractAddress' | 'page'> {
|
|
@@ -1630,8 +1995,8 @@ declare function fetchListCollectibleActivities(params: FetchListCollectibleActi
|
|
|
1630
1995
|
type ListCollectibleActivitiesQueryOptions = ValuesOptional<FetchListCollectibleActivitiesParams> & {
|
|
1631
1996
|
query?: StandardQueryOptions;
|
|
1632
1997
|
};
|
|
1633
|
-
declare function listCollectibleActivitiesQueryOptions(params: ListCollectibleActivitiesQueryOptions):
|
|
1634
|
-
queryFn?:
|
|
1998
|
+
declare function listCollectibleActivitiesQueryOptions(params: ListCollectibleActivitiesQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<ListCollectibleActivitiesReturn, Error, ListCollectibleActivitiesReturn, ("collectable" | "collectibleActivities" | ListCollectibleActivitiesQueryOptions)[]>, "queryFn"> & {
|
|
1999
|
+
queryFn?: _tanstack_react_query227.QueryFunction<ListCollectibleActivitiesReturn, ("collectable" | "collectibleActivities" | ListCollectibleActivitiesQueryOptions)[], never> | undefined;
|
|
1635
2000
|
} & {
|
|
1636
2001
|
queryKey: ("collectable" | "collectibleActivities" | ListCollectibleActivitiesQueryOptions)[] & {
|
|
1637
2002
|
[dataTagSymbol]: ListCollectibleActivitiesReturn;
|
|
@@ -1692,7 +2057,7 @@ type UseListCollectibleActivitiesParams = Optional<ListCollectibleActivitiesQuer
|
|
|
1692
2057
|
* })
|
|
1693
2058
|
* ```
|
|
1694
2059
|
*/
|
|
1695
|
-
declare function useListCollectibleActivities(params: UseListCollectibleActivitiesParams):
|
|
2060
|
+
declare function useListCollectibleActivities(params: UseListCollectibleActivitiesParams): _tanstack_react_query227.UseQueryResult<ListCollectibleActivitiesReturn, Error>;
|
|
1696
2061
|
type UseListCollectibleActivitiesArgs = UseListCollectibleActivitiesParams;
|
|
1697
2062
|
type UseListCollectibleActivitiesReturn = Awaited<ReturnType<typeof fetchListCollectibleActivities>>;
|
|
1698
2063
|
//#endregion
|
|
@@ -1754,7 +2119,7 @@ type UseListCollectiblesParams = Optional<ListCollectiblesQueryOptions, 'config'
|
|
|
1754
2119
|
* })
|
|
1755
2120
|
* ```
|
|
1756
2121
|
*/
|
|
1757
|
-
declare function useListCollectibles(params: UseListCollectiblesParams):
|
|
2122
|
+
declare function useListCollectibles(params: UseListCollectiblesParams): _tanstack_react_query227.UseInfiniteQueryResult<_tanstack_react_query227.InfiniteData<ListCollectiblesReturn, unknown>, Error>;
|
|
1758
2123
|
type UseListCollectiblesArgs = UseListCollectiblesParams;
|
|
1759
2124
|
//#endregion
|
|
1760
2125
|
//#region src/react/queries/listCollectiblesPaginated.d.ts
|
|
@@ -1772,8 +2137,8 @@ declare function fetchListCollectiblesPaginated(params: FetchListCollectiblesPag
|
|
|
1772
2137
|
type ListCollectiblesPaginatedQueryOptions = ValuesOptional<FetchListCollectiblesPaginatedParams> & {
|
|
1773
2138
|
query?: StandardQueryOptions;
|
|
1774
2139
|
};
|
|
1775
|
-
declare function listCollectiblesPaginatedQueryOptions(params: ListCollectiblesPaginatedQueryOptions):
|
|
1776
|
-
queryFn?:
|
|
2140
|
+
declare function listCollectiblesPaginatedQueryOptions(params: ListCollectiblesPaginatedQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<ListCollectiblesReturn, Error, ListCollectiblesReturn, (string | ListCollectiblesPaginatedQueryOptions)[]>, "queryFn"> & {
|
|
2141
|
+
queryFn?: _tanstack_react_query227.QueryFunction<ListCollectiblesReturn, (string | ListCollectiblesPaginatedQueryOptions)[], never> | undefined;
|
|
1777
2142
|
} & {
|
|
1778
2143
|
queryKey: (string | ListCollectiblesPaginatedQueryOptions)[] & {
|
|
1779
2144
|
[dataTagSymbol]: ListCollectiblesReturn;
|
|
@@ -1843,7 +2208,7 @@ type UseListCollectiblesPaginatedParams = Optional<ListCollectiblesPaginatedQuer
|
|
|
1843
2208
|
* const hasMorePages = data?.page?.more;
|
|
1844
2209
|
* ```
|
|
1845
2210
|
*/
|
|
1846
|
-
declare function useListCollectiblesPaginated(params: UseListCollectiblesPaginatedParams):
|
|
2211
|
+
declare function useListCollectiblesPaginated(params: UseListCollectiblesPaginatedParams): _tanstack_react_query227.UseQueryResult<ListCollectiblesReturn, Error>;
|
|
1847
2212
|
type UseListCollectiblesPaginatedArgs = UseListCollectiblesPaginatedParams;
|
|
1848
2213
|
type UseListCollectiblesPaginatedReturn = Awaited<ReturnType<typeof fetchListCollectiblesPaginated>>;
|
|
1849
2214
|
//#endregion
|
|
@@ -1863,8 +2228,8 @@ declare function fetchListCollectionActivities(params: FetchListCollectionActivi
|
|
|
1863
2228
|
type ListCollectionActivitiesQueryOptions = ValuesOptional<FetchListCollectionActivitiesParams> & {
|
|
1864
2229
|
query?: StandardQueryOptions;
|
|
1865
2230
|
};
|
|
1866
|
-
declare function listCollectionActivitiesQueryOptions(params: ListCollectionActivitiesQueryOptions):
|
|
1867
|
-
queryFn?:
|
|
2231
|
+
declare function listCollectionActivitiesQueryOptions(params: ListCollectionActivitiesQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<ListCollectionActivitiesReturn, Error, ListCollectionActivitiesReturn, ("collections" | "collectionActivities" | ListCollectionActivitiesQueryOptions)[]>, "queryFn"> & {
|
|
2232
|
+
queryFn?: _tanstack_react_query227.QueryFunction<ListCollectionActivitiesReturn, ("collections" | "collectionActivities" | ListCollectionActivitiesQueryOptions)[], never> | undefined;
|
|
1868
2233
|
} & {
|
|
1869
2234
|
queryKey: ("collections" | "collectionActivities" | ListCollectionActivitiesQueryOptions)[] & {
|
|
1870
2235
|
[dataTagSymbol]: ListCollectionActivitiesReturn;
|
|
@@ -1921,289 +2286,52 @@ type UseListCollectionActivitiesParams = Optional<ListCollectionActivitiesQueryO
|
|
|
1921
2286
|
* })
|
|
1922
2287
|
* ```
|
|
1923
2288
|
*/
|
|
1924
|
-
declare function useListCollectionActivities(params: UseListCollectionActivitiesParams):
|
|
2289
|
+
declare function useListCollectionActivities(params: UseListCollectionActivitiesParams): _tanstack_react_query227.UseQueryResult<ListCollectionActivitiesReturn, Error>;
|
|
1925
2290
|
type UseListCollectionActivitiesArgs = UseListCollectionActivitiesParams;
|
|
1926
2291
|
type UseListCollectionActivitiesReturn = Awaited<ReturnType<typeof fetchListCollectionActivities>>;
|
|
1927
2292
|
//#endregion
|
|
1928
|
-
//#region src/react/queries/listCollections.d.ts
|
|
1929
|
-
interface FetchListCollectionsParams {
|
|
1930
|
-
marketplaceType?: MarketplaceType;
|
|
1931
|
-
marketplaceConfig: MarketplaceConfig;
|
|
1932
|
-
config: SdkConfig;
|
|
1933
|
-
}
|
|
1934
|
-
/**
|
|
1935
|
-
* Fetches list of collections from the metadata API with marketplace filtering
|
|
1936
|
-
*/
|
|
1937
|
-
|
|
1938
|
-
type ListCollectionsQueryOptions = ValuesOptional<FetchListCollectionsParams> & {
|
|
1939
|
-
query?: StandardQueryOptions;
|
|
1940
|
-
};
|
|
1941
|
-
declare function listCollectionsQueryOptions(params: ListCollectionsQueryOptions): _tanstack_react_query119.UseQueryOptions<({
|
|
1942
|
-
chainId: number;
|
|
1943
|
-
address: string;
|
|
1944
|
-
source: string;
|
|
1945
|
-
name: string;
|
|
1946
|
-
type: string;
|
|
1947
|
-
symbol: string;
|
|
1948
|
-
decimals?: number;
|
|
1949
|
-
logoURI: string;
|
|
1950
|
-
deployed: boolean;
|
|
1951
|
-
bytecodeHash: string;
|
|
1952
|
-
extensions: _0xsequence_metadata129.ContractInfoExtensions;
|
|
1953
|
-
updatedAt: string;
|
|
1954
|
-
queuedAt?: string;
|
|
1955
|
-
status: _0xsequence_metadata129.ResourceStatus;
|
|
1956
|
-
marketplaceType: MarketplaceType;
|
|
1957
|
-
contractType: ContractType;
|
|
1958
|
-
feePercentage: number;
|
|
1959
|
-
destinationMarketplace: OrderbookKind;
|
|
1960
|
-
currencyOptions: Array<string>;
|
|
1961
|
-
bannerUrl: string;
|
|
1962
|
-
itemsAddress: string;
|
|
1963
|
-
filterSettings?: CollectionFilterSettings;
|
|
1964
|
-
} | {
|
|
1965
|
-
chainId: number;
|
|
1966
|
-
address: string;
|
|
1967
|
-
source: string;
|
|
1968
|
-
name: string;
|
|
1969
|
-
type: string;
|
|
1970
|
-
symbol: string;
|
|
1971
|
-
decimals?: number;
|
|
1972
|
-
logoURI: string;
|
|
1973
|
-
deployed: boolean;
|
|
1974
|
-
bytecodeHash: string;
|
|
1975
|
-
extensions: _0xsequence_metadata129.ContractInfoExtensions;
|
|
1976
|
-
updatedAt: string;
|
|
1977
|
-
queuedAt?: string;
|
|
1978
|
-
status: _0xsequence_metadata129.ResourceStatus;
|
|
1979
|
-
marketplaceType: MarketplaceType;
|
|
1980
|
-
saleAddress: string;
|
|
1981
|
-
bannerUrl: string;
|
|
1982
|
-
itemsAddress: string;
|
|
1983
|
-
filterSettings?: CollectionFilterSettings;
|
|
1984
|
-
})[], Error, ({
|
|
1985
|
-
chainId: number;
|
|
1986
|
-
address: string;
|
|
1987
|
-
source: string;
|
|
1988
|
-
name: string;
|
|
1989
|
-
type: string;
|
|
1990
|
-
symbol: string;
|
|
1991
|
-
decimals?: number;
|
|
1992
|
-
logoURI: string;
|
|
1993
|
-
deployed: boolean;
|
|
1994
|
-
bytecodeHash: string;
|
|
1995
|
-
extensions: _0xsequence_metadata129.ContractInfoExtensions;
|
|
1996
|
-
updatedAt: string;
|
|
1997
|
-
queuedAt?: string;
|
|
1998
|
-
status: _0xsequence_metadata129.ResourceStatus;
|
|
1999
|
-
marketplaceType: MarketplaceType;
|
|
2000
|
-
contractType: ContractType;
|
|
2001
|
-
feePercentage: number;
|
|
2002
|
-
destinationMarketplace: OrderbookKind;
|
|
2003
|
-
currencyOptions: Array<string>;
|
|
2004
|
-
bannerUrl: string;
|
|
2005
|
-
itemsAddress: string;
|
|
2006
|
-
filterSettings?: CollectionFilterSettings;
|
|
2007
|
-
} | {
|
|
2008
|
-
chainId: number;
|
|
2009
|
-
address: string;
|
|
2010
|
-
source: string;
|
|
2011
|
-
name: string;
|
|
2012
|
-
type: string;
|
|
2013
|
-
symbol: string;
|
|
2014
|
-
decimals?: number;
|
|
2015
|
-
logoURI: string;
|
|
2016
|
-
deployed: boolean;
|
|
2017
|
-
bytecodeHash: string;
|
|
2018
|
-
extensions: _0xsequence_metadata129.ContractInfoExtensions;
|
|
2019
|
-
updatedAt: string;
|
|
2020
|
-
queuedAt?: string;
|
|
2021
|
-
status: _0xsequence_metadata129.ResourceStatus;
|
|
2022
|
-
marketplaceType: MarketplaceType;
|
|
2023
|
-
saleAddress: string;
|
|
2024
|
-
bannerUrl: string;
|
|
2025
|
-
itemsAddress: string;
|
|
2026
|
-
filterSettings?: CollectionFilterSettings;
|
|
2027
|
-
})[], ("collections" | "list" | ListCollectionsQueryOptions)[]> & {
|
|
2028
|
-
initialData?: ({
|
|
2029
|
-
chainId: number;
|
|
2030
|
-
address: string;
|
|
2031
|
-
source: string;
|
|
2032
|
-
name: string;
|
|
2033
|
-
type: string;
|
|
2034
|
-
symbol: string;
|
|
2035
|
-
decimals?: number;
|
|
2036
|
-
logoURI: string;
|
|
2037
|
-
deployed: boolean;
|
|
2038
|
-
bytecodeHash: string;
|
|
2039
|
-
extensions: _0xsequence_metadata129.ContractInfoExtensions;
|
|
2040
|
-
updatedAt: string;
|
|
2041
|
-
queuedAt?: string;
|
|
2042
|
-
status: _0xsequence_metadata129.ResourceStatus;
|
|
2043
|
-
marketplaceType: MarketplaceType;
|
|
2044
|
-
contractType: ContractType;
|
|
2045
|
-
feePercentage: number;
|
|
2046
|
-
destinationMarketplace: OrderbookKind;
|
|
2047
|
-
currencyOptions: Array<string>;
|
|
2048
|
-
bannerUrl: string;
|
|
2049
|
-
itemsAddress: string;
|
|
2050
|
-
filterSettings?: CollectionFilterSettings;
|
|
2051
|
-
} | {
|
|
2052
|
-
chainId: number;
|
|
2053
|
-
address: string;
|
|
2054
|
-
source: string;
|
|
2055
|
-
name: string;
|
|
2056
|
-
type: string;
|
|
2057
|
-
symbol: string;
|
|
2058
|
-
decimals?: number;
|
|
2059
|
-
logoURI: string;
|
|
2060
|
-
deployed: boolean;
|
|
2061
|
-
bytecodeHash: string;
|
|
2062
|
-
extensions: _0xsequence_metadata129.ContractInfoExtensions;
|
|
2063
|
-
updatedAt: string;
|
|
2064
|
-
queuedAt?: string;
|
|
2065
|
-
status: _0xsequence_metadata129.ResourceStatus;
|
|
2066
|
-
marketplaceType: MarketplaceType;
|
|
2067
|
-
saleAddress: string;
|
|
2068
|
-
bannerUrl: string;
|
|
2069
|
-
itemsAddress: string;
|
|
2070
|
-
filterSettings?: CollectionFilterSettings;
|
|
2071
|
-
})[] | _tanstack_react_query119.InitialDataFunction<({
|
|
2072
|
-
chainId: number;
|
|
2073
|
-
address: string;
|
|
2074
|
-
source: string;
|
|
2075
|
-
name: string;
|
|
2076
|
-
type: string;
|
|
2077
|
-
symbol: string;
|
|
2078
|
-
decimals?: number;
|
|
2079
|
-
logoURI: string;
|
|
2080
|
-
deployed: boolean;
|
|
2081
|
-
bytecodeHash: string;
|
|
2082
|
-
extensions: _0xsequence_metadata129.ContractInfoExtensions;
|
|
2083
|
-
updatedAt: string;
|
|
2084
|
-
queuedAt?: string;
|
|
2085
|
-
status: _0xsequence_metadata129.ResourceStatus;
|
|
2086
|
-
marketplaceType: MarketplaceType;
|
|
2087
|
-
contractType: ContractType;
|
|
2088
|
-
feePercentage: number;
|
|
2089
|
-
destinationMarketplace: OrderbookKind;
|
|
2090
|
-
currencyOptions: Array<string>;
|
|
2091
|
-
bannerUrl: string;
|
|
2092
|
-
itemsAddress: string;
|
|
2093
|
-
filterSettings?: CollectionFilterSettings;
|
|
2094
|
-
} | {
|
|
2095
|
-
chainId: number;
|
|
2096
|
-
address: string;
|
|
2097
|
-
source: string;
|
|
2098
|
-
name: string;
|
|
2099
|
-
type: string;
|
|
2100
|
-
symbol: string;
|
|
2101
|
-
decimals?: number;
|
|
2102
|
-
logoURI: string;
|
|
2103
|
-
deployed: boolean;
|
|
2104
|
-
bytecodeHash: string;
|
|
2105
|
-
extensions: _0xsequence_metadata129.ContractInfoExtensions;
|
|
2106
|
-
updatedAt: string;
|
|
2107
|
-
queuedAt?: string;
|
|
2108
|
-
status: _0xsequence_metadata129.ResourceStatus;
|
|
2109
|
-
marketplaceType: MarketplaceType;
|
|
2110
|
-
saleAddress: string;
|
|
2111
|
-
bannerUrl: string;
|
|
2112
|
-
itemsAddress: string;
|
|
2113
|
-
filterSettings?: CollectionFilterSettings;
|
|
2114
|
-
})[]> | undefined;
|
|
2115
|
-
} & {
|
|
2116
|
-
queryKey: ("collections" | "list" | ListCollectionsQueryOptions)[] & {
|
|
2117
|
-
[dataTagSymbol]: ({
|
|
2118
|
-
chainId: number;
|
|
2119
|
-
address: string;
|
|
2120
|
-
source: string;
|
|
2121
|
-
name: string;
|
|
2122
|
-
type: string;
|
|
2123
|
-
symbol: string;
|
|
2124
|
-
decimals?: number;
|
|
2125
|
-
logoURI: string;
|
|
2126
|
-
deployed: boolean;
|
|
2127
|
-
bytecodeHash: string;
|
|
2128
|
-
extensions: _0xsequence_metadata129.ContractInfoExtensions;
|
|
2129
|
-
updatedAt: string;
|
|
2130
|
-
queuedAt?: string;
|
|
2131
|
-
status: _0xsequence_metadata129.ResourceStatus;
|
|
2132
|
-
marketplaceType: MarketplaceType;
|
|
2133
|
-
contractType: ContractType;
|
|
2134
|
-
feePercentage: number;
|
|
2135
|
-
destinationMarketplace: OrderbookKind;
|
|
2136
|
-
currencyOptions: Array<string>;
|
|
2137
|
-
bannerUrl: string;
|
|
2138
|
-
itemsAddress: string;
|
|
2139
|
-
filterSettings?: CollectionFilterSettings;
|
|
2140
|
-
} | {
|
|
2141
|
-
chainId: number;
|
|
2142
|
-
address: string;
|
|
2143
|
-
source: string;
|
|
2144
|
-
name: string;
|
|
2145
|
-
type: string;
|
|
2146
|
-
symbol: string;
|
|
2147
|
-
decimals?: number;
|
|
2148
|
-
logoURI: string;
|
|
2149
|
-
deployed: boolean;
|
|
2150
|
-
bytecodeHash: string;
|
|
2151
|
-
extensions: _0xsequence_metadata129.ContractInfoExtensions;
|
|
2152
|
-
updatedAt: string;
|
|
2153
|
-
queuedAt?: string;
|
|
2154
|
-
status: _0xsequence_metadata129.ResourceStatus;
|
|
2155
|
-
marketplaceType: MarketplaceType;
|
|
2156
|
-
saleAddress: string;
|
|
2157
|
-
bannerUrl: string;
|
|
2158
|
-
itemsAddress: string;
|
|
2159
|
-
filterSettings?: CollectionFilterSettings;
|
|
2160
|
-
})[];
|
|
2161
|
-
[dataTagErrorSymbol]: Error;
|
|
2162
|
-
};
|
|
2163
|
-
};
|
|
2164
|
-
//#endregion
|
|
2165
2293
|
//#region src/react/hooks/useListCollections.d.ts
|
|
2166
2294
|
type UseListCollectionsParams = Optional<ListCollectionsQueryOptions, 'config' | 'marketplaceConfig'>;
|
|
2167
2295
|
/**
|
|
2168
|
-
* Hook to fetch
|
|
2296
|
+
* Hook to fetch collections from marketplace configuration
|
|
2169
2297
|
*
|
|
2170
|
-
*
|
|
2171
|
-
* metadata from the metadata API
|
|
2298
|
+
* Retrieves all collections configured in the marketplace, with optional filtering
|
|
2299
|
+
* by marketplace type. Combines metadata from the metadata API with marketplace
|
|
2300
|
+
* configuration to provide complete collection information.
|
|
2172
2301
|
*
|
|
2173
2302
|
* @param params - Configuration parameters
|
|
2174
|
-
* @param params.marketplaceType - Optional filter
|
|
2175
|
-
* @param params.marketplaceConfig - Optional marketplace configuration (defaults from context)
|
|
2176
|
-
* @param params.config - Optional SDK configuration (defaults from context)
|
|
2303
|
+
* @param params.marketplaceType - Optional filter by marketplace type
|
|
2177
2304
|
* @param params.query - Optional React Query configuration
|
|
2178
2305
|
*
|
|
2179
|
-
* @returns Query result containing
|
|
2306
|
+
* @returns Query result containing array of collections with metadata
|
|
2180
2307
|
*
|
|
2181
2308
|
* @example
|
|
2182
|
-
* Basic usage
|
|
2309
|
+
* Basic usage:
|
|
2183
2310
|
* ```typescript
|
|
2184
|
-
* const { data: collections, isLoading } = useListCollections()
|
|
2311
|
+
* const { data: collections, isLoading } = useListCollections();
|
|
2312
|
+
*
|
|
2313
|
+
* if (isLoading) return <div>Loading collections...</div>;
|
|
2314
|
+
*
|
|
2315
|
+
* return (
|
|
2316
|
+
* <div>
|
|
2317
|
+
* {collections?.map(collection => (
|
|
2318
|
+
* <div key={collection.itemsAddress}>
|
|
2319
|
+
* {collection.name}
|
|
2320
|
+
* </div>
|
|
2321
|
+
* ))}
|
|
2322
|
+
* </div>
|
|
2323
|
+
* );
|
|
2185
2324
|
* ```
|
|
2186
2325
|
*
|
|
2187
2326
|
* @example
|
|
2188
|
-
*
|
|
2327
|
+
* Filtering by marketplace type:
|
|
2189
2328
|
* ```typescript
|
|
2190
2329
|
* const { data: marketCollections } = useListCollections({
|
|
2191
2330
|
* marketplaceType: 'market'
|
|
2192
|
-
* })
|
|
2193
|
-
* ```
|
|
2194
|
-
*
|
|
2195
|
-
* @example
|
|
2196
|
-
* With custom query options:
|
|
2197
|
-
* ```typescript
|
|
2198
|
-
* const { data: collections } = useListCollections({
|
|
2199
|
-
* query: {
|
|
2200
|
-
* enabled: isReady,
|
|
2201
|
-
* staleTime: 5 * 60 * 1000 // 5 minutes
|
|
2202
|
-
* }
|
|
2203
|
-
* })
|
|
2331
|
+
* });
|
|
2204
2332
|
* ```
|
|
2205
2333
|
*/
|
|
2206
|
-
declare function useListCollections(params?: UseListCollectionsParams):
|
|
2334
|
+
declare function useListCollections(params?: UseListCollectionsParams): _tanstack_react_query227.UseQueryResult<({
|
|
2207
2335
|
chainId: number;
|
|
2208
2336
|
address: string;
|
|
2209
2337
|
source: string;
|
|
@@ -2214,10 +2342,10 @@ declare function useListCollections(params?: UseListCollectionsParams): _tanstac
|
|
|
2214
2342
|
logoURI: string;
|
|
2215
2343
|
deployed: boolean;
|
|
2216
2344
|
bytecodeHash: string;
|
|
2217
|
-
extensions:
|
|
2345
|
+
extensions: _0xsequence_metadata250.ContractInfoExtensions;
|
|
2218
2346
|
updatedAt: string;
|
|
2219
2347
|
queuedAt?: string;
|
|
2220
|
-
status:
|
|
2348
|
+
status: _0xsequence_metadata250.ResourceStatus;
|
|
2221
2349
|
marketplaceType: MarketplaceType;
|
|
2222
2350
|
contractType: ContractType;
|
|
2223
2351
|
feePercentage: number;
|
|
@@ -2237,10 +2365,10 @@ declare function useListCollections(params?: UseListCollectionsParams): _tanstac
|
|
|
2237
2365
|
logoURI: string;
|
|
2238
2366
|
deployed: boolean;
|
|
2239
2367
|
bytecodeHash: string;
|
|
2240
|
-
extensions:
|
|
2368
|
+
extensions: _0xsequence_metadata250.ContractInfoExtensions;
|
|
2241
2369
|
updatedAt: string;
|
|
2242
2370
|
queuedAt?: string;
|
|
2243
|
-
status:
|
|
2371
|
+
status: _0xsequence_metadata250.ResourceStatus;
|
|
2244
2372
|
marketplaceType: MarketplaceType;
|
|
2245
2373
|
saleAddress: string;
|
|
2246
2374
|
bannerUrl: string;
|
|
@@ -2262,8 +2390,8 @@ declare function fetchListListingsForCollectible(params: FetchListListingsForCol
|
|
|
2262
2390
|
type ListListingsForCollectibleQueryOptions = ValuesOptional<FetchListListingsForCollectibleParams> & {
|
|
2263
2391
|
query?: StandardQueryOptions;
|
|
2264
2392
|
};
|
|
2265
|
-
declare function listListingsForCollectibleQueryOptions(params: ListListingsForCollectibleQueryOptions):
|
|
2266
|
-
queryFn?:
|
|
2393
|
+
declare function listListingsForCollectibleQueryOptions(params: ListListingsForCollectibleQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<ListCollectibleListingsReturn, Error, ListCollectibleListingsReturn, ("collectable" | "listings" | ListListingsForCollectibleQueryOptions)[]>, "queryFn"> & {
|
|
2394
|
+
queryFn?: _tanstack_react_query227.QueryFunction<ListCollectibleListingsReturn, ("collectable" | "listings" | ListListingsForCollectibleQueryOptions)[], never> | undefined;
|
|
2267
2395
|
} & {
|
|
2268
2396
|
queryKey: ("collectable" | "listings" | ListListingsForCollectibleQueryOptions)[] & {
|
|
2269
2397
|
[dataTagSymbol]: ListCollectibleListingsReturn;
|
|
@@ -2327,7 +2455,7 @@ type UseListListingsForCollectibleParams = Optional<ListListingsForCollectibleQu
|
|
|
2327
2455
|
* })
|
|
2328
2456
|
* ```
|
|
2329
2457
|
*/
|
|
2330
|
-
declare function useListListingsForCollectible(params: UseListListingsForCollectibleParams):
|
|
2458
|
+
declare function useListListingsForCollectible(params: UseListListingsForCollectibleParams): _tanstack_react_query227.UseQueryResult<ListCollectibleListingsReturn, Error>;
|
|
2331
2459
|
type UseListListingsForCollectibleArgs = UseListListingsForCollectibleParams;
|
|
2332
2460
|
type UseListListingsForCollectibleReturn = Awaited<ReturnType<typeof fetchListListingsForCollectible>>;
|
|
2333
2461
|
//#endregion
|
|
@@ -2335,7 +2463,7 @@ type UseListListingsForCollectibleReturn = Awaited<ReturnType<typeof fetchListLi
|
|
|
2335
2463
|
interface UseListMarketCardDataProps {
|
|
2336
2464
|
collectionAddress: Address;
|
|
2337
2465
|
chainId: number;
|
|
2338
|
-
orderbookKind
|
|
2466
|
+
orderbookKind?: OrderbookKind;
|
|
2339
2467
|
collectionType: ContractType;
|
|
2340
2468
|
filterOptions?: PropertyFilter[];
|
|
2341
2469
|
searchText?: string;
|
|
@@ -2363,7 +2491,7 @@ declare function useListMarketCardData({
|
|
|
2363
2491
|
error: Error | null;
|
|
2364
2492
|
hasNextPage: boolean;
|
|
2365
2493
|
isFetchingNextPage: boolean;
|
|
2366
|
-
fetchNextPage: (options?:
|
|
2494
|
+
fetchNextPage: (options?: _tanstack_react_query227.FetchNextPageOptions) => Promise<_tanstack_react_query227.InfiniteQueryObserverResult<_tanstack_react_query227.InfiniteData<ListCollectiblesReturn, unknown>, Error>>;
|
|
2367
2495
|
allCollectibles: CollectibleOrder[];
|
|
2368
2496
|
};
|
|
2369
2497
|
//#endregion
|
|
@@ -2377,36 +2505,57 @@ interface UseListOffersForCollectibleArgs {
|
|
|
2377
2505
|
}
|
|
2378
2506
|
type UseListOffersForCollectibleReturn = Awaited<ReturnType<typeof fetchListOffersForCollectible>>;
|
|
2379
2507
|
declare const fetchListOffersForCollectible: (config: SdkConfig, args: UseListOffersForCollectibleArgs) => Promise<ListCollectibleOffersReturn>;
|
|
2380
|
-
declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibleArgs, config: SdkConfig) =>
|
|
2381
|
-
queryFn?:
|
|
2508
|
+
declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<ListCollectibleOffersReturn, Error, ListCollectibleOffersReturn, (SdkConfig | "collectable" | "offers" | UseListOffersForCollectibleArgs)[]>, "queryFn"> & {
|
|
2509
|
+
queryFn?: _tanstack_react_query227.QueryFunction<ListCollectibleOffersReturn, (SdkConfig | "collectable" | "offers" | UseListOffersForCollectibleArgs)[], never> | undefined;
|
|
2382
2510
|
} & {
|
|
2383
2511
|
queryKey: (SdkConfig | "collectable" | "offers" | UseListOffersForCollectibleArgs)[] & {
|
|
2384
2512
|
[dataTagSymbol]: ListCollectibleOffersReturn;
|
|
2385
2513
|
[dataTagErrorSymbol]: Error;
|
|
2386
2514
|
};
|
|
2387
2515
|
};
|
|
2388
|
-
declare const useListOffersForCollectible: (args: UseListOffersForCollectibleArgs) =>
|
|
2516
|
+
declare const useListOffersForCollectible: (args: UseListOffersForCollectibleArgs) => _tanstack_react_query227.UseQueryResult<ListCollectibleOffersReturn, Error>;
|
|
2389
2517
|
//#endregion
|
|
2390
2518
|
//#region src/react/hooks/useListPrimarySaleItems.d.ts
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2519
|
+
type UseListPrimarySaleItemsParams = Optional<ListPrimarySaleItemsQueryOptions, 'config'>;
|
|
2520
|
+
/**
|
|
2521
|
+
* Hook to fetch primary sale items with pagination support
|
|
2522
|
+
*
|
|
2523
|
+
* Retrieves a paginated list of primary sale items for a specific contract address
|
|
2524
|
+
* from the marketplace.
|
|
2525
|
+
*
|
|
2526
|
+
* @param params - Configuration parameters
|
|
2527
|
+
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
2528
|
+
* @param params.primarySaleContractAddress - The primary sale contract address
|
|
2529
|
+
* @param params.filter - Optional filter parameters for the query
|
|
2530
|
+
* @param params.page - Optional pagination parameters
|
|
2531
|
+
* @param params.query - Optional React Query configuration
|
|
2532
|
+
*
|
|
2533
|
+
* @returns Infinite query result containing the primary sale items data
|
|
2534
|
+
*
|
|
2535
|
+
* @example
|
|
2536
|
+
* Basic usage:
|
|
2537
|
+
* ```typescript
|
|
2538
|
+
* const { data, isLoading } = useListPrimarySaleItems({
|
|
2539
|
+
* chainId: 137,
|
|
2540
|
+
* primarySaleContractAddress: '0x...',
|
|
2541
|
+
* })
|
|
2542
|
+
* ```
|
|
2543
|
+
*
|
|
2544
|
+
* @example
|
|
2545
|
+
* With filters and pagination:
|
|
2546
|
+
* ```typescript
|
|
2547
|
+
* const { data, isLoading } = useListPrimarySaleItems({
|
|
2548
|
+
* chainId: 1,
|
|
2549
|
+
* primarySaleContractAddress: '0x...',
|
|
2550
|
+
* filter: { status: 'active' },
|
|
2551
|
+
* page: { page: 1, pageSize: 20 },
|
|
2552
|
+
* query: {
|
|
2553
|
+
* enabled: isReady
|
|
2554
|
+
* }
|
|
2555
|
+
* })
|
|
2556
|
+
* ```
|
|
2557
|
+
*/
|
|
2558
|
+
declare function useListPrimarySaleItems(params: UseListPrimarySaleItemsParams): _tanstack_react_query227.UseInfiniteQueryResult<_tanstack_react_query227.InfiniteData<ListPrimarySaleItemsReturn, unknown>, Error>;
|
|
2410
2559
|
//#endregion
|
|
2411
2560
|
//#region src/react/hooks/useListShopCardData.d.ts
|
|
2412
2561
|
interface UseListShopCardDataProps {
|
|
@@ -2448,7 +2597,7 @@ declare function useListShopCardData({
|
|
|
2448
2597
|
saleEndsAt: string | undefined;
|
|
2449
2598
|
marketplaceType: "shop";
|
|
2450
2599
|
}[];
|
|
2451
|
-
saleDetailsError:
|
|
2600
|
+
saleDetailsError: viem255.ReadContractErrorType | null;
|
|
2452
2601
|
primarySaleItemsError: Error | null;
|
|
2453
2602
|
saleDetails: {
|
|
2454
2603
|
supplyCap: bigint;
|
|
@@ -2458,7 +2607,7 @@ declare function useListShopCardData({
|
|
|
2458
2607
|
endTime: bigint;
|
|
2459
2608
|
merkleRoot: `0x${string}`;
|
|
2460
2609
|
} | undefined;
|
|
2461
|
-
primarySaleItems:
|
|
2610
|
+
primarySaleItems: _tanstack_react_query227.InfiniteData<ListPrimarySaleItemsReturn, unknown> | undefined;
|
|
2462
2611
|
isLoading: boolean;
|
|
2463
2612
|
} | {
|
|
2464
2613
|
collectibleCards: {
|
|
@@ -2476,6 +2625,7 @@ declare function useListShopCardData({
|
|
|
2476
2625
|
quantityInitial: string | undefined;
|
|
2477
2626
|
quantityDecimals: number;
|
|
2478
2627
|
quantityRemaining: string | undefined;
|
|
2628
|
+
unlimitedSupply: boolean | undefined;
|
|
2479
2629
|
saleStartsAt: string | undefined;
|
|
2480
2630
|
saleEndsAt: string | undefined;
|
|
2481
2631
|
marketplaceType: "shop";
|
|
@@ -2542,7 +2692,7 @@ type UseListTokenMetadataParams = Optional<ListTokenMetadataQueryOptions, 'confi
|
|
|
2542
2692
|
* })
|
|
2543
2693
|
* ```
|
|
2544
2694
|
*/
|
|
2545
|
-
declare function useListTokenMetadata(params: UseListTokenMetadataParams):
|
|
2695
|
+
declare function useListTokenMetadata(params: UseListTokenMetadataParams): _tanstack_react_query227.UseQueryResult<_0xsequence_metadata250.TokenMetadata[], Error>;
|
|
2546
2696
|
//#endregion
|
|
2547
2697
|
//#region src/react/hooks/useLowestListing.d.ts
|
|
2548
2698
|
type UseLowestListingParams = Optional<LowestListingQueryOptions, 'config'>;
|
|
@@ -2584,7 +2734,7 @@ type UseLowestListingParams = Optional<LowestListingQueryOptions, 'config'>;
|
|
|
2584
2734
|
* })
|
|
2585
2735
|
* ```
|
|
2586
2736
|
*/
|
|
2587
|
-
declare function useLowestListing(params: UseLowestListingParams):
|
|
2737
|
+
declare function useLowestListing(params: UseLowestListingParams): _tanstack_react_query227.UseQueryResult<Order | null | undefined, Error>;
|
|
2588
2738
|
//#endregion
|
|
2589
2739
|
//#region src/react/hooks/useMarketCurrencies.d.ts
|
|
2590
2740
|
type UseMarketCurrenciesParams = Optional<MarketCurrenciesQueryOptions, 'config'>;
|
|
@@ -2619,7 +2769,7 @@ type UseMarketCurrenciesParams = Optional<MarketCurrenciesQueryOptions, 'config'
|
|
|
2619
2769
|
* })
|
|
2620
2770
|
* ```
|
|
2621
2771
|
*/
|
|
2622
|
-
declare function useMarketCurrencies(params: UseMarketCurrenciesParams):
|
|
2772
|
+
declare function useMarketCurrencies(params: UseMarketCurrenciesParams): _tanstack_react_query227.UseQueryResult<{
|
|
2623
2773
|
contractAddress: string;
|
|
2624
2774
|
chainId: number;
|
|
2625
2775
|
status: CurrencyStatus;
|
|
@@ -2636,7 +2786,12 @@ declare function useMarketCurrencies(params: UseMarketCurrenciesParams): _tansta
|
|
|
2636
2786
|
}[], Error>;
|
|
2637
2787
|
//#endregion
|
|
2638
2788
|
//#region src/react/hooks/useMarketplaceConfig.d.ts
|
|
2639
|
-
declare const useMarketplaceConfig: () =>
|
|
2789
|
+
declare const useMarketplaceConfig: () => _tanstack_react_query227.UseQueryResult<MarketplaceConfig, Error>;
|
|
2790
|
+
//#endregion
|
|
2791
|
+
//#region src/react/hooks/useOpenConnectModal.d.ts
|
|
2792
|
+
declare const useOpenConnectModal: () => {
|
|
2793
|
+
openConnectModal: () => void;
|
|
2794
|
+
};
|
|
2640
2795
|
//#endregion
|
|
2641
2796
|
//#region src/react/hooks/useRoyalty.d.ts
|
|
2642
2797
|
interface UseRoyaltyArgs {
|
|
@@ -2693,7 +2848,7 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
2693
2848
|
percentage: bigint;
|
|
2694
2849
|
recipient: Address;
|
|
2695
2850
|
} | null;
|
|
2696
|
-
error:
|
|
2851
|
+
error: viem255.ReadContractErrorType;
|
|
2697
2852
|
isError: true;
|
|
2698
2853
|
isPending: false;
|
|
2699
2854
|
isLoading: false;
|
|
@@ -2705,7 +2860,7 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
2705
2860
|
dataUpdatedAt: number;
|
|
2706
2861
|
errorUpdatedAt: number;
|
|
2707
2862
|
failureCount: number;
|
|
2708
|
-
failureReason:
|
|
2863
|
+
failureReason: viem255.ReadContractErrorType | null;
|
|
2709
2864
|
errorUpdateCount: number;
|
|
2710
2865
|
isFetched: boolean;
|
|
2711
2866
|
isFetchedAfterMount: boolean;
|
|
@@ -2714,10 +2869,10 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
2714
2869
|
isPaused: boolean;
|
|
2715
2870
|
isRefetching: boolean;
|
|
2716
2871
|
isStale: boolean;
|
|
2717
|
-
refetch: (options?:
|
|
2718
|
-
fetchStatus:
|
|
2872
|
+
refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<readonly [`0x${string}`, bigint], viem255.ReadContractErrorType>>;
|
|
2873
|
+
fetchStatus: _tanstack_react_query227.FetchStatus;
|
|
2719
2874
|
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
2720
|
-
queryKey:
|
|
2875
|
+
queryKey: _tanstack_react_query227.QueryKey;
|
|
2721
2876
|
} | {
|
|
2722
2877
|
data: {
|
|
2723
2878
|
percentage: bigint;
|
|
@@ -2735,7 +2890,7 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
2735
2890
|
dataUpdatedAt: number;
|
|
2736
2891
|
errorUpdatedAt: number;
|
|
2737
2892
|
failureCount: number;
|
|
2738
|
-
failureReason:
|
|
2893
|
+
failureReason: viem255.ReadContractErrorType | null;
|
|
2739
2894
|
errorUpdateCount: number;
|
|
2740
2895
|
isFetched: boolean;
|
|
2741
2896
|
isFetchedAfterMount: boolean;
|
|
@@ -2744,16 +2899,16 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
2744
2899
|
isPaused: boolean;
|
|
2745
2900
|
isRefetching: boolean;
|
|
2746
2901
|
isStale: boolean;
|
|
2747
|
-
refetch: (options?:
|
|
2748
|
-
fetchStatus:
|
|
2902
|
+
refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<readonly [`0x${string}`, bigint], viem255.ReadContractErrorType>>;
|
|
2903
|
+
fetchStatus: _tanstack_react_query227.FetchStatus;
|
|
2749
2904
|
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
2750
|
-
queryKey:
|
|
2905
|
+
queryKey: _tanstack_react_query227.QueryKey;
|
|
2751
2906
|
} | {
|
|
2752
2907
|
data: {
|
|
2753
2908
|
percentage: bigint;
|
|
2754
2909
|
recipient: Address;
|
|
2755
2910
|
} | null;
|
|
2756
|
-
error:
|
|
2911
|
+
error: viem255.ReadContractErrorType;
|
|
2757
2912
|
isError: true;
|
|
2758
2913
|
isPending: false;
|
|
2759
2914
|
isLoading: false;
|
|
@@ -2765,7 +2920,7 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
2765
2920
|
dataUpdatedAt: number;
|
|
2766
2921
|
errorUpdatedAt: number;
|
|
2767
2922
|
failureCount: number;
|
|
2768
|
-
failureReason:
|
|
2923
|
+
failureReason: viem255.ReadContractErrorType | null;
|
|
2769
2924
|
errorUpdateCount: number;
|
|
2770
2925
|
isFetched: boolean;
|
|
2771
2926
|
isFetchedAfterMount: boolean;
|
|
@@ -2774,10 +2929,10 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
2774
2929
|
isPaused: boolean;
|
|
2775
2930
|
isRefetching: boolean;
|
|
2776
2931
|
isStale: boolean;
|
|
2777
|
-
refetch: (options?:
|
|
2778
|
-
fetchStatus:
|
|
2932
|
+
refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<readonly [`0x${string}`, bigint], viem255.ReadContractErrorType>>;
|
|
2933
|
+
fetchStatus: _tanstack_react_query227.FetchStatus;
|
|
2779
2934
|
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
2780
|
-
queryKey:
|
|
2935
|
+
queryKey: _tanstack_react_query227.QueryKey;
|
|
2781
2936
|
} | {
|
|
2782
2937
|
data: {
|
|
2783
2938
|
percentage: bigint;
|
|
@@ -2795,7 +2950,7 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
2795
2950
|
dataUpdatedAt: number;
|
|
2796
2951
|
errorUpdatedAt: number;
|
|
2797
2952
|
failureCount: number;
|
|
2798
|
-
failureReason:
|
|
2953
|
+
failureReason: viem255.ReadContractErrorType | null;
|
|
2799
2954
|
errorUpdateCount: number;
|
|
2800
2955
|
isFetched: boolean;
|
|
2801
2956
|
isFetchedAfterMount: boolean;
|
|
@@ -2804,10 +2959,10 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
2804
2959
|
isPaused: boolean;
|
|
2805
2960
|
isRefetching: boolean;
|
|
2806
2961
|
isStale: boolean;
|
|
2807
|
-
refetch: (options?:
|
|
2808
|
-
fetchStatus:
|
|
2962
|
+
refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<readonly [`0x${string}`, bigint], viem255.ReadContractErrorType>>;
|
|
2963
|
+
fetchStatus: _tanstack_react_query227.FetchStatus;
|
|
2809
2964
|
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
2810
|
-
queryKey:
|
|
2965
|
+
queryKey: _tanstack_react_query227.QueryKey;
|
|
2811
2966
|
} | {
|
|
2812
2967
|
data: {
|
|
2813
2968
|
percentage: bigint;
|
|
@@ -2824,7 +2979,7 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
2824
2979
|
dataUpdatedAt: number;
|
|
2825
2980
|
errorUpdatedAt: number;
|
|
2826
2981
|
failureCount: number;
|
|
2827
|
-
failureReason:
|
|
2982
|
+
failureReason: viem255.ReadContractErrorType | null;
|
|
2828
2983
|
errorUpdateCount: number;
|
|
2829
2984
|
isFetched: boolean;
|
|
2830
2985
|
isFetchedAfterMount: boolean;
|
|
@@ -2834,10 +2989,10 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
2834
2989
|
isPaused: boolean;
|
|
2835
2990
|
isRefetching: boolean;
|
|
2836
2991
|
isStale: boolean;
|
|
2837
|
-
refetch: (options?:
|
|
2838
|
-
fetchStatus:
|
|
2992
|
+
refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<readonly [`0x${string}`, bigint], viem255.ReadContractErrorType>>;
|
|
2993
|
+
fetchStatus: _tanstack_react_query227.FetchStatus;
|
|
2839
2994
|
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
2840
|
-
queryKey:
|
|
2995
|
+
queryKey: _tanstack_react_query227.QueryKey;
|
|
2841
2996
|
} | {
|
|
2842
2997
|
data: {
|
|
2843
2998
|
percentage: bigint;
|
|
@@ -2855,7 +3010,7 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
2855
3010
|
dataUpdatedAt: number;
|
|
2856
3011
|
errorUpdatedAt: number;
|
|
2857
3012
|
failureCount: number;
|
|
2858
|
-
failureReason:
|
|
3013
|
+
failureReason: viem255.ReadContractErrorType | null;
|
|
2859
3014
|
errorUpdateCount: number;
|
|
2860
3015
|
isFetched: boolean;
|
|
2861
3016
|
isFetchedAfterMount: boolean;
|
|
@@ -2864,10 +3019,10 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
2864
3019
|
isPaused: boolean;
|
|
2865
3020
|
isRefetching: boolean;
|
|
2866
3021
|
isStale: boolean;
|
|
2867
|
-
refetch: (options?:
|
|
2868
|
-
fetchStatus:
|
|
3022
|
+
refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<readonly [`0x${string}`, bigint], viem255.ReadContractErrorType>>;
|
|
3023
|
+
fetchStatus: _tanstack_react_query227.FetchStatus;
|
|
2869
3024
|
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
2870
|
-
queryKey:
|
|
3025
|
+
queryKey: _tanstack_react_query227.QueryKey;
|
|
2871
3026
|
};
|
|
2872
3027
|
//#endregion
|
|
2873
3028
|
//#region src/react/hooks/useShopCollectibleSaleData.d.ts
|
|
@@ -2911,10 +3066,61 @@ declare function useShopCollectibleSaleData({
|
|
|
2911
3066
|
enabled
|
|
2912
3067
|
}: UseShopCollectibleSaleDataProps): ShopCollectibleSaleData;
|
|
2913
3068
|
//#endregion
|
|
3069
|
+
//#region src/react/hooks/useTokenSupplies.d.ts
|
|
3070
|
+
type UseTokenSuppliesParams = Optional<TokenSuppliesQueryOptions, 'config'>;
|
|
3071
|
+
/**
|
|
3072
|
+
* Hook to fetch token supplies from the indexer or LAOS API
|
|
3073
|
+
*
|
|
3074
|
+
* Retrieves supply information for tokens from a specific collection.
|
|
3075
|
+
* Automatically chooses between indexer and LAOS APIs based on the isLaos721 flag.
|
|
3076
|
+
*
|
|
3077
|
+
* @param params - Configuration parameters
|
|
3078
|
+
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
3079
|
+
* @param params.collectionAddress - The collection contract address
|
|
3080
|
+
* @param params.isLaos721 - Whether to use LAOS API instead of indexer
|
|
3081
|
+
* @param params.includeMetadata - Whether to include token metadata
|
|
3082
|
+
* @param params.page - Pagination options
|
|
3083
|
+
* @param params.query - Optional React Query configuration
|
|
3084
|
+
*
|
|
3085
|
+
* @returns Query result containing token supplies
|
|
3086
|
+
*
|
|
3087
|
+
* @example
|
|
3088
|
+
* Basic usage:
|
|
3089
|
+
* ```typescript
|
|
3090
|
+
* const { data, isLoading } = useTokenSupplies({
|
|
3091
|
+
* chainId: 137,
|
|
3092
|
+
* collectionAddress: '0x...'
|
|
3093
|
+
* })
|
|
3094
|
+
* ```
|
|
3095
|
+
*
|
|
3096
|
+
* @example
|
|
3097
|
+
* With LAOS API:
|
|
3098
|
+
* ```typescript
|
|
3099
|
+
* const { data, isLoading } = useTokenSupplies({
|
|
3100
|
+
* chainId: 1,
|
|
3101
|
+
* collectionAddress: '0x...',
|
|
3102
|
+
* isLaos721: true
|
|
3103
|
+
* })
|
|
3104
|
+
* ```
|
|
3105
|
+
*
|
|
3106
|
+
* @example
|
|
3107
|
+
* With conditional fetching:
|
|
3108
|
+
* ```typescript
|
|
3109
|
+
* const { data, isLoading } = useTokenSupplies({
|
|
3110
|
+
* chainId: 1,
|
|
3111
|
+
* collectionAddress: selectedCollection,
|
|
3112
|
+
* query: {
|
|
3113
|
+
* enabled: !!selectedCollection
|
|
3114
|
+
* }
|
|
3115
|
+
* })
|
|
3116
|
+
* ```
|
|
3117
|
+
*/
|
|
3118
|
+
declare function useTokenSupplies(params: UseTokenSuppliesParams): _tanstack_react_query227.UseQueryResult<_0xsequence_indexer226.GetTokenSuppliesReturn, Error>;
|
|
3119
|
+
//#endregion
|
|
2914
3120
|
//#region src/react/hooks/useTransferTokens.d.ts
|
|
2915
3121
|
interface BaseTransferParams {
|
|
2916
3122
|
chainId: number;
|
|
2917
|
-
collectionAddress:
|
|
3123
|
+
collectionAddress: Address;
|
|
2918
3124
|
tokenId: string;
|
|
2919
3125
|
receiverAddress: Address;
|
|
2920
3126
|
}
|
|
@@ -2934,5 +3140,5 @@ declare const useTransferTokens: () => {
|
|
|
2934
3140
|
transferSuccess: boolean;
|
|
2935
3141
|
};
|
|
2936
3142
|
//#endregion
|
|
2937
|
-
export { CollectionBalanceFilter, CollectionQueryOptions, CountListingsForCollectibleQueryOptions, CountOfCollectablesQueryOptions, CountOffersForCollectibleQueryOptions, CreateReqWithDateExpiry$1 as CreateReqWithDateExpiry,
|
|
2938
|
-
//# sourceMappingURL=index-
|
|
3143
|
+
export { CheckoutOptionsSalesContractQueryOptions, CollectionBalanceDetailsQueryOptions, CollectionBalanceFilter, CollectionQueryOptions, ComparePricesQueryOptions, ComparePricesReturn, ConvertPriceToUSDQueryOptions, ConvertPriceToUSDReturn, CountListingsForCollectibleQueryOptions, CountOfCollectablesQueryOptions, CountOffersForCollectibleQueryOptions, CreateReqWithDateExpiry$1 as CreateReqWithDateExpiry, FetchCheckoutOptionsSalesContractParams, FetchCollectionBalanceDetailsParams, FetchCollectionParams, FetchComparePricesParams, FetchConvertPriceToUSDParams, FetchCountListingsForCollectibleParams, FetchCountOfCollectablesParams, FetchCountOffersForCollectibleParams, FetchFiltersParams, FetchGetTokenRangesParams, FetchListCollectibleActivitiesParams, FetchListCollectiblesPaginatedParams, FetchListCollectionActivitiesParams, FetchListListingsForCollectibleParams, FiltersQueryOptions, GenerateListingTransactionProps, GenerateOfferTransactionProps, GetTokenRangesQueryOptions, ListCollectibleActivitiesQueryOptions, ListCollectiblesPaginatedQueryOptions, ListCollectionActivitiesQueryOptions, ListListingsForCollectibleQueryOptions, ListPrimarySaleItemsQueryOptions, MarketplaceProvider, MarketplaceQueryClientProvider, MarketplaceSdkContext$1 as MarketplaceSdkContext, MarketplaceSdkProviderProps, TransactionStep, TransferTokensParams, UseCheckoutOptionsSalesContractArgs, UseCheckoutOptionsSalesContractParams, UseCheckoutOptionsSalesContractReturn, UseCollectibleParams, UseCollectionBalanceDetailsArgs, UseCollectionBalanceDetailsParams, UseCollectionBalanceDetailsReturn, UseCollectionDetailsParams, UseCollectionParams, UseComparePricesArgs, UseComparePricesParams, UseComparePricesReturn, UseConvertPriceToUSDArgs, UseConvertPriceToUSDParams, UseConvertPriceToUSDReturn, UseCountListingsForCollectibleParams, UseCountOfCollectablesParams, UseCountOffersForCollectibleParams, UseCurrencyParams, UseFilterReturn, UseFiltersArgs, UseFiltersParams, UseFloorOrderParams, UseGenerateListingTransactionArgs, UseGenerateOfferTransactionArgs, UseGetCountParams, UseGetTokenRangesParams, UseGetTokenRangesProps, UseGetTokenRangesReturn, UseHighestOfferParams, UseListCollectibleActivitiesArgs, UseListCollectibleActivitiesParams, UseListCollectibleActivitiesReturn, UseListCollectiblesArgs, UseListCollectiblesPaginatedArgs, UseListCollectiblesPaginatedParams, UseListCollectiblesPaginatedReturn, UseListCollectiblesParams, UseListCollectionActivitiesArgs, UseListCollectionActivitiesParams, UseListCollectionActivitiesReturn, UseListCollectionsParams, UseListListingsForCollectibleArgs, UseListListingsForCollectibleParams, UseListListingsForCollectibleReturn, UseListOffersForCollectibleReturn, UseListPrimarySaleItemsParams, UseListTokenMetadataParams, UseLowestListingParams, UseMarketCurrenciesParams, UseRoyaltyArgs, UseTokenSuppliesParams, checkoutOptionsSalesContractQueryOptions, collectionBalanceDetailsQueryOptions, collectionDetailsPollingOptions, collectionQueryOptions, comparePricesQueryOptions, convertPriceToUSDQueryOptions, countListingsForCollectibleQueryOptions, countOfCollectablesQueryOptions, countOffersForCollectibleQueryOptions, filtersQueryOptions, generateCancelTransaction, generateListingTransaction, generateOfferTransaction, generateSellTransaction, getTokenRangesQueryOptions, listCollectibleActivitiesQueryOptions, listCollectiblesPaginatedQueryOptions, listCollectionActivitiesQueryOptions, listListingsForCollectibleQueryOptions, listOffersForCollectibleOptions, useAutoSelectFeeOption, useBalanceOfCollectible, useCancelOrder, useCheckoutOptionsSalesContract, useCollectible, useCollection, useCollectionBalanceDetails, useCollectionDetails, useCollectionDetailsPolling, useComparePrices, useConfig, useConvertPriceToUSD, useCountListingsForCollectible, useCountOfCollectables, useCountOfPrimarySaleItems, useCountOffersForCollectible, useCurrency, useERC721SaleMintedTokens, useFilterState, useFilters, useFiltersProgressive, useFloorOrder, useGenerateCancelTransaction, useGenerateListingTransaction, useGenerateOfferTransaction, useGenerateSellTransaction, useGetCountOfPrimarySaleItems, useGetTokenRanges, useHighestOffer, useInventory, useList1155ShopCardData, useList721ShopCardData, useListBalances, useListCollectibleActivities, useListCollectibles, useListCollectiblesPaginated, useListCollectionActivities, useListCollections, useListListingsForCollectible, useListMarketCardData, useListOffersForCollectible, useListPrimarySaleItems, useListShopCardData, useListTokenMetadata, useLowestListing, useMarketCurrencies, useMarketplaceConfig, useOpenConnectModal, useRoyalty, useShopCollectibleSaleData, useTokenSupplies, useTransferTokens };
|
|
3144
|
+
//# sourceMappingURL=index-BUWB_RXp.d.ts.map
|