@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
|
@@ -0,0 +1,979 @@
|
|
|
1
|
+
import { CollectibleOrder, Collection, CollectionFilterSettings, ContractType, Currency, CurrencyStatus, GetCollectibleHighestOfferArgs, GetCollectibleLowestListingArgs, GetCollectibleLowestListingReturn, GetCollectionDetailArgs, GetCountOfPrimarySaleItemsArgs, GetFloorOrderArgs, ListCollectiblesArgs, ListCollectiblesReturn, MarketplaceConfig, MarketplaceType, Order, OrderbookKind, Page, PrimarySaleItemsFilter, SdkConfig, ValuesOptional } from "./create-config-DKJ-F0jc.js";
|
|
2
|
+
import * as _tanstack_react_query49 from "@tanstack/react-query";
|
|
3
|
+
import { UseQueryParameters } from "wagmi/query";
|
|
4
|
+
import * as _0xsequence_indexer46 from "@0xsequence/indexer";
|
|
5
|
+
import { ContractInfo, GetTokenBalancesReturn, GetTokenSuppliesArgs, Page as Page$1 } from "@0xsequence/indexer";
|
|
6
|
+
import * as _0xsequence_metadata54 from "@0xsequence/metadata";
|
|
7
|
+
import { GetTokenMetadataArgs } from "@0xsequence/metadata";
|
|
8
|
+
import { Address, Hex } from "viem";
|
|
9
|
+
|
|
10
|
+
//#region src/react/queries/balanceOfCollectible.d.ts
|
|
11
|
+
type UseBalanceOfCollectibleArgs = {
|
|
12
|
+
collectionAddress: Address;
|
|
13
|
+
collectableId: string;
|
|
14
|
+
userAddress: Address | undefined;
|
|
15
|
+
chainId: number;
|
|
16
|
+
isLaos721?: boolean;
|
|
17
|
+
query?: UseQueryParameters;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Fetches the balance of a specific collectible for a user
|
|
21
|
+
*
|
|
22
|
+
* @param args - Arguments for the API call
|
|
23
|
+
* @param config - SDK configuration
|
|
24
|
+
* @returns The balance data
|
|
25
|
+
*/
|
|
26
|
+
declare function fetchBalanceOfCollectible(args: Omit<UseBalanceOfCollectibleArgs, 'userAddress'> & {
|
|
27
|
+
userAddress: Address;
|
|
28
|
+
}, config: SdkConfig): Promise<_0xsequence_indexer46.TokenBalance>;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a tanstack query options object for the balance query
|
|
31
|
+
*
|
|
32
|
+
* @param args - The query arguments
|
|
33
|
+
* @param config - SDK configuration
|
|
34
|
+
* @returns Query options configuration
|
|
35
|
+
*/
|
|
36
|
+
declare function balanceOfCollectibleOptions(args: UseBalanceOfCollectibleArgs, config: SdkConfig): _tanstack_react_query49.UseQueryOptions<_0xsequence_indexer46.TokenBalance, Error, _0xsequence_indexer46.TokenBalance, (UseBalanceOfCollectibleArgs | "collectable" | "details" | "userBalances")[]> & {
|
|
37
|
+
initialData?: _0xsequence_indexer46.TokenBalance | _tanstack_react_query49.InitialDataFunction<_0xsequence_indexer46.TokenBalance> | undefined;
|
|
38
|
+
} & {
|
|
39
|
+
queryKey: (UseBalanceOfCollectibleArgs | "collectable" | "details" | "userBalances")[] & {
|
|
40
|
+
[dataTagSymbol]: _0xsequence_indexer46.TokenBalance;
|
|
41
|
+
[dataTagErrorSymbol]: Error;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/react/types/query.d.ts
|
|
46
|
+
/**
|
|
47
|
+
* Standard query options that can be used across all marketplace SDK hooks
|
|
48
|
+
*
|
|
49
|
+
* Based on TanStack Query v5 UseQueryOptions, but simplified, the type from TanStack is hard to modify
|
|
50
|
+
*/
|
|
51
|
+
interface StandardQueryOptions<TError = Error> {
|
|
52
|
+
/** Whether the query should be enabled/disabled */
|
|
53
|
+
enabled?: boolean;
|
|
54
|
+
/** Time in milliseconds that data is considered fresh */
|
|
55
|
+
staleTime?: number;
|
|
56
|
+
gcTime?: number;
|
|
57
|
+
refetchInterval?: number | false | ((query: any) => number | false);
|
|
58
|
+
refetchOnWindowFocus?: boolean;
|
|
59
|
+
refetchOnMount?: boolean;
|
|
60
|
+
refetchOnReconnect?: boolean;
|
|
61
|
+
retry?: boolean | number | ((failureCount: number, error: TError) => boolean);
|
|
62
|
+
retryDelay?: number | ((retryAttempt: number, error: TError) => number);
|
|
63
|
+
suspense?: boolean;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Standard infinite query options that can be used across all marketplace SDK hooks
|
|
67
|
+
* that support infinite pagination
|
|
68
|
+
*/
|
|
69
|
+
interface StandardInfiniteQueryOptions<TError = Error> extends StandardQueryOptions<TError> {
|
|
70
|
+
/** Maximum number of pages to fetch */
|
|
71
|
+
maxPages?: number;
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/react/queries/collectible.d.ts
|
|
75
|
+
interface FetchCollectibleParams extends Omit<GetTokenMetadataArgs, 'chainID' | 'contractAddress' | 'tokenIDs'> {
|
|
76
|
+
chainId: number;
|
|
77
|
+
collectionAddress: string;
|
|
78
|
+
collectibleId: string;
|
|
79
|
+
config: SdkConfig;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Fetches collectible metadata from the metadata API
|
|
83
|
+
*/
|
|
84
|
+
declare function fetchCollectible(params: FetchCollectibleParams): Promise<_0xsequence_metadata54.TokenMetadata>;
|
|
85
|
+
type CollectibleQueryOptions = ValuesOptional<FetchCollectibleParams> & {
|
|
86
|
+
query?: StandardQueryOptions;
|
|
87
|
+
};
|
|
88
|
+
declare function collectibleQueryOptions(params: CollectibleQueryOptions): _tanstack_react_query49.OmitKeyof<_tanstack_react_query49.UseQueryOptions<_0xsequence_metadata54.TokenMetadata, Error, _0xsequence_metadata54.TokenMetadata, ("collectable" | "details" | CollectibleQueryOptions)[]>, "queryFn"> & {
|
|
89
|
+
queryFn?: _tanstack_react_query49.QueryFunction<_0xsequence_metadata54.TokenMetadata, ("collectable" | "details" | CollectibleQueryOptions)[], never> | undefined;
|
|
90
|
+
} & {
|
|
91
|
+
queryKey: ("collectable" | "details" | CollectibleQueryOptions)[] & {
|
|
92
|
+
[dataTagSymbol]: _0xsequence_metadata54.TokenMetadata;
|
|
93
|
+
[dataTagErrorSymbol]: Error;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/react/queries/collectionDetails.d.ts
|
|
98
|
+
interface FetchCollectionDetailsParams extends Omit<GetCollectionDetailArgs, 'chainId' | 'contractAddress'> {
|
|
99
|
+
chainId: number;
|
|
100
|
+
collectionAddress: string;
|
|
101
|
+
config: SdkConfig;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Fetches collection details from the marketplace API
|
|
105
|
+
*/
|
|
106
|
+
declare function fetchCollectionDetails(params: FetchCollectionDetailsParams): Promise<Collection>;
|
|
107
|
+
type CollectionDetailsQueryOptions = ValuesOptional<FetchCollectionDetailsParams> & {
|
|
108
|
+
query?: StandardQueryOptions;
|
|
109
|
+
};
|
|
110
|
+
declare function collectionDetailsQueryOptions(params: CollectionDetailsQueryOptions): _tanstack_react_query49.OmitKeyof<_tanstack_react_query49.UseQueryOptions<Collection, Error, Collection, ("collections" | "detail" | CollectionDetailsQueryOptions)[]>, "queryFn"> & {
|
|
111
|
+
queryFn?: _tanstack_react_query49.QueryFunction<Collection, ("collections" | "detail" | CollectionDetailsQueryOptions)[], never> | undefined;
|
|
112
|
+
} & {
|
|
113
|
+
queryKey: ("collections" | "detail" | CollectionDetailsQueryOptions)[] & {
|
|
114
|
+
[dataTagSymbol]: Collection;
|
|
115
|
+
[dataTagErrorSymbol]: Error;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/react/queries/countOfPrimarySaleItems.d.ts
|
|
120
|
+
interface UseCountOfPrimarySaleItemsArgs extends Omit<GetCountOfPrimarySaleItemsArgs, 'chainId' | 'primarySaleContractAddress'> {
|
|
121
|
+
chainId: number;
|
|
122
|
+
primarySaleContractAddress: Address;
|
|
123
|
+
filter?: PrimarySaleItemsFilter;
|
|
124
|
+
query?: {
|
|
125
|
+
enabled?: boolean;
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
declare function fetchCountOfPrimarySaleItems(args: UseCountOfPrimarySaleItemsArgs, config: SdkConfig): Promise<number>;
|
|
129
|
+
declare function countOfPrimarySaleItemsOptions(args: UseCountOfPrimarySaleItemsArgs, config: SdkConfig): _tanstack_react_query49.OmitKeyof<_tanstack_react_query49.UseQueryOptions<number, Error, number, (string | UseCountOfPrimarySaleItemsArgs)[]>, "queryFn"> & {
|
|
130
|
+
queryFn?: _tanstack_react_query49.QueryFunction<number, (string | UseCountOfPrimarySaleItemsArgs)[], never> | undefined;
|
|
131
|
+
} & {
|
|
132
|
+
queryKey: (string | UseCountOfPrimarySaleItemsArgs)[] & {
|
|
133
|
+
[dataTagSymbol]: number;
|
|
134
|
+
[dataTagErrorSymbol]: Error;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/react/queries/currency.d.ts
|
|
139
|
+
interface FetchCurrencyParams {
|
|
140
|
+
chainId: number;
|
|
141
|
+
currencyAddress: Address;
|
|
142
|
+
config: SdkConfig;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Fetches currency details from the marketplace API
|
|
146
|
+
*/
|
|
147
|
+
declare function fetchCurrency(params: FetchCurrencyParams): Promise<Currency | undefined>;
|
|
148
|
+
type CurrencyQueryOptions = ValuesOptional<FetchCurrencyParams> & {
|
|
149
|
+
query?: StandardQueryOptions;
|
|
150
|
+
};
|
|
151
|
+
declare function currencyQueryOptions(params: CurrencyQueryOptions): _tanstack_react_query49.UseQueryOptions<Currency | undefined, Error, Currency | undefined, ("details" | "currencies" | CurrencyQueryOptions)[]> & {
|
|
152
|
+
initialData?: Currency | _tanstack_react_query49.InitialDataFunction<Currency> | undefined;
|
|
153
|
+
} & {
|
|
154
|
+
queryKey: ("details" | "currencies" | CurrencyQueryOptions)[] & {
|
|
155
|
+
[dataTagSymbol]: Currency | undefined;
|
|
156
|
+
[dataTagErrorSymbol]: Error;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region src/react/queries/floorOrder.d.ts
|
|
161
|
+
interface FetchFloorOrderParams extends Omit<GetFloorOrderArgs, 'contractAddress' | 'chainId'> {
|
|
162
|
+
collectionAddress: string;
|
|
163
|
+
chainId: number;
|
|
164
|
+
config: SdkConfig;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Fetches the floor order for a collection from the marketplace API
|
|
168
|
+
*/
|
|
169
|
+
declare function fetchFloorOrder(params: FetchFloorOrderParams): Promise<CollectibleOrder>;
|
|
170
|
+
type FloorOrderQueryOptions = ValuesOptional<FetchFloorOrderParams> & {
|
|
171
|
+
query?: StandardQueryOptions;
|
|
172
|
+
};
|
|
173
|
+
declare function floorOrderQueryOptions(params: FloorOrderQueryOptions): _tanstack_react_query49.OmitKeyof<_tanstack_react_query49.UseQueryOptions<CollectibleOrder, Error, CollectibleOrder, ("collectable" | "floorOrders" | FloorOrderQueryOptions)[]>, "queryFn"> & {
|
|
174
|
+
queryFn?: _tanstack_react_query49.QueryFunction<CollectibleOrder, ("collectable" | "floorOrders" | FloorOrderQueryOptions)[], never> | undefined;
|
|
175
|
+
} & {
|
|
176
|
+
queryKey: ("collectable" | "floorOrders" | FloorOrderQueryOptions)[] & {
|
|
177
|
+
[dataTagSymbol]: CollectibleOrder;
|
|
178
|
+
[dataTagErrorSymbol]: Error;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/react/queries/highestOffer.d.ts
|
|
183
|
+
interface FetchHighestOfferParams extends Omit<GetCollectibleHighestOfferArgs, 'contractAddress' | 'chainId'> {
|
|
184
|
+
collectionAddress: string;
|
|
185
|
+
chainId: number;
|
|
186
|
+
config: SdkConfig;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Fetches the highest offer for a collectible from the marketplace API
|
|
190
|
+
*/
|
|
191
|
+
declare function fetchHighestOffer(params: FetchHighestOfferParams): Promise<Order | null>;
|
|
192
|
+
type HighestOfferQueryOptions = ValuesOptional<FetchHighestOfferParams> & {
|
|
193
|
+
query?: StandardQueryOptions;
|
|
194
|
+
};
|
|
195
|
+
declare function highestOfferQueryOptions(params: HighestOfferQueryOptions): _tanstack_react_query49.OmitKeyof<_tanstack_react_query49.UseQueryOptions<Order | null, Error, Order | null, ("collectable" | "details" | "highestOffers" | HighestOfferQueryOptions)[]>, "queryFn"> & {
|
|
196
|
+
queryFn?: _tanstack_react_query49.QueryFunction<Order | null, ("collectable" | "details" | "highestOffers" | HighestOfferQueryOptions)[], never> | undefined;
|
|
197
|
+
} & {
|
|
198
|
+
queryKey: ("collectable" | "details" | "highestOffers" | HighestOfferQueryOptions)[] & {
|
|
199
|
+
[dataTagSymbol]: Order | null;
|
|
200
|
+
[dataTagErrorSymbol]: Error;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
//#endregion
|
|
204
|
+
//#region src/react/queries/inventory.d.ts
|
|
205
|
+
interface UseInventoryArgs {
|
|
206
|
+
accountAddress: Address;
|
|
207
|
+
collectionAddress: Address;
|
|
208
|
+
chainId: number;
|
|
209
|
+
isLaos721?: boolean;
|
|
210
|
+
query?: {
|
|
211
|
+
enabled?: boolean;
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
declare const clearInventoryState: () => void;
|
|
215
|
+
interface GetInventoryArgs extends Omit<UseInventoryArgs, 'query'> {
|
|
216
|
+
isLaos721: boolean;
|
|
217
|
+
}
|
|
218
|
+
interface CollectibleWithBalance extends CollectibleOrder {
|
|
219
|
+
balance: string;
|
|
220
|
+
contractInfo?: ContractInfo;
|
|
221
|
+
contractType: ContractType.ERC1155 | ContractType.ERC721;
|
|
222
|
+
}
|
|
223
|
+
interface CollectiblesResponse {
|
|
224
|
+
collectibles: CollectibleWithBalance[];
|
|
225
|
+
page: Page;
|
|
226
|
+
}
|
|
227
|
+
declare function fetchInventory(args: GetInventoryArgs, config: SdkConfig, page: Page): Promise<CollectiblesResponse>;
|
|
228
|
+
declare function inventoryOptions(args: UseInventoryArgs, config: SdkConfig): _tanstack_react_query49.OmitKeyof<_tanstack_react_query49.UseInfiniteQueryOptions<CollectiblesResponse, Error, _tanstack_react_query49.InfiniteData<CollectiblesResponse, unknown>, (string | number)[], Page>, "queryFn"> & {
|
|
229
|
+
queryFn?: _tanstack_react_query49.QueryFunction<CollectiblesResponse, (string | number)[], Page> | undefined;
|
|
230
|
+
} & {
|
|
231
|
+
queryKey: (string | number)[] & {
|
|
232
|
+
[dataTagSymbol]: _tanstack_react_query49.InfiniteData<CollectiblesResponse, unknown>;
|
|
233
|
+
[dataTagErrorSymbol]: Error;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region src/react/queries/listBalances.d.ts
|
|
238
|
+
type UseListBalancesArgs = {
|
|
239
|
+
chainId: number;
|
|
240
|
+
accountAddress?: Address;
|
|
241
|
+
contractAddress?: Address;
|
|
242
|
+
tokenId?: string;
|
|
243
|
+
includeMetadata?: boolean;
|
|
244
|
+
metadataOptions?: {
|
|
245
|
+
verifiedOnly?: boolean;
|
|
246
|
+
unverifiedOnly?: boolean;
|
|
247
|
+
includeContracts?: Hex[];
|
|
248
|
+
};
|
|
249
|
+
includeCollectionTokens?: boolean;
|
|
250
|
+
page?: Page$1;
|
|
251
|
+
isLaos721?: boolean;
|
|
252
|
+
query?: {
|
|
253
|
+
enabled?: boolean;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
declare function fetchBalances(args: UseListBalancesArgs, config: SdkConfig, page: Page$1): Promise<GetTokenBalancesReturn>;
|
|
257
|
+
/**
|
|
258
|
+
* Creates a tanstack infinite query options object for the balances query
|
|
259
|
+
*
|
|
260
|
+
* @param args - The query arguments
|
|
261
|
+
* @param config - SDK configuration
|
|
262
|
+
* @returns Query options configuration
|
|
263
|
+
*/
|
|
264
|
+
declare function listBalancesOptions(args: UseListBalancesArgs, config: SdkConfig): _tanstack_react_query49.OmitKeyof<_tanstack_react_query49.UseInfiniteQueryOptions<GetTokenBalancesReturn, Error, _tanstack_react_query49.InfiniteData<GetTokenBalancesReturn, unknown>, (SdkConfig | UseListBalancesArgs | "balances" | "tokenBalances")[], any>, "queryFn"> & {
|
|
265
|
+
queryFn?: _tanstack_react_query49.QueryFunction<GetTokenBalancesReturn, (SdkConfig | UseListBalancesArgs | "balances" | "tokenBalances")[], any> | undefined;
|
|
266
|
+
} & {
|
|
267
|
+
queryKey: (SdkConfig | UseListBalancesArgs | "balances" | "tokenBalances")[] & {
|
|
268
|
+
[dataTagSymbol]: _tanstack_react_query49.InfiniteData<GetTokenBalancesReturn, unknown>;
|
|
269
|
+
[dataTagErrorSymbol]: Error;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
//#endregion
|
|
273
|
+
//#region src/react/queries/listCollectibles.d.ts
|
|
274
|
+
interface FetchListCollectiblesParams extends Omit<ListCollectiblesArgs, 'chainId' | 'contractAddress'> {
|
|
275
|
+
chainId: number;
|
|
276
|
+
collectionAddress: Address;
|
|
277
|
+
isLaos721?: boolean;
|
|
278
|
+
marketplaceType?: MarketplaceType;
|
|
279
|
+
config: SdkConfig;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Fetches a list of collectibles with pagination support from the Marketplace API
|
|
283
|
+
*/
|
|
284
|
+
declare function fetchListCollectibles(params: FetchListCollectiblesParams, marketplaceConfig: MarketplaceConfig, page: Page): Promise<ListCollectiblesReturn>;
|
|
285
|
+
type ListCollectiblesQueryOptions = ValuesOptional<FetchListCollectiblesParams> & {
|
|
286
|
+
query?: StandardInfiniteQueryOptions;
|
|
287
|
+
};
|
|
288
|
+
declare function listCollectiblesQueryOptions(params: ListCollectiblesQueryOptions): _tanstack_react_query49.OmitKeyof<_tanstack_react_query49.UseInfiniteQueryOptions<ListCollectiblesReturn, Error, _tanstack_react_query49.InfiniteData<ListCollectiblesReturn, unknown>, ("collectable" | "list" | ListCollectiblesQueryOptions)[], Page>, "queryFn"> & {
|
|
289
|
+
queryFn?: _tanstack_react_query49.QueryFunction<ListCollectiblesReturn, ("collectable" | "list" | ListCollectiblesQueryOptions)[], Page> | undefined;
|
|
290
|
+
} & {
|
|
291
|
+
queryKey: ("collectable" | "list" | ListCollectiblesQueryOptions)[] & {
|
|
292
|
+
[dataTagSymbol]: _tanstack_react_query49.InfiniteData<ListCollectiblesReturn, unknown>;
|
|
293
|
+
[dataTagErrorSymbol]: Error;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
//#endregion
|
|
297
|
+
//#region src/react/queries/listCollections.d.ts
|
|
298
|
+
interface FetchListCollectionsParams {
|
|
299
|
+
marketplaceType?: MarketplaceType;
|
|
300
|
+
marketplaceConfig: MarketplaceConfig;
|
|
301
|
+
config: SdkConfig;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Fetches collections from the metadata API with marketplace config filtering
|
|
305
|
+
*/
|
|
306
|
+
declare function fetchListCollections(params: FetchListCollectionsParams): Promise<({
|
|
307
|
+
chainId: number;
|
|
308
|
+
address: string;
|
|
309
|
+
source: string;
|
|
310
|
+
name: string;
|
|
311
|
+
type: string;
|
|
312
|
+
symbol: string;
|
|
313
|
+
decimals?: number;
|
|
314
|
+
logoURI: string;
|
|
315
|
+
deployed: boolean;
|
|
316
|
+
bytecodeHash: string;
|
|
317
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
318
|
+
updatedAt: string;
|
|
319
|
+
queuedAt?: string;
|
|
320
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
321
|
+
marketplaceType: MarketplaceType;
|
|
322
|
+
contractType: ContractType;
|
|
323
|
+
feePercentage: number;
|
|
324
|
+
destinationMarketplace: OrderbookKind;
|
|
325
|
+
currencyOptions: Array<string>;
|
|
326
|
+
bannerUrl: string;
|
|
327
|
+
itemsAddress: string;
|
|
328
|
+
filterSettings?: CollectionFilterSettings;
|
|
329
|
+
} | {
|
|
330
|
+
chainId: number;
|
|
331
|
+
address: string;
|
|
332
|
+
source: string;
|
|
333
|
+
name: string;
|
|
334
|
+
type: string;
|
|
335
|
+
symbol: string;
|
|
336
|
+
decimals?: number;
|
|
337
|
+
logoURI: string;
|
|
338
|
+
deployed: boolean;
|
|
339
|
+
bytecodeHash: string;
|
|
340
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
341
|
+
updatedAt: string;
|
|
342
|
+
queuedAt?: string;
|
|
343
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
344
|
+
marketplaceType: MarketplaceType;
|
|
345
|
+
saleAddress: string;
|
|
346
|
+
bannerUrl: string;
|
|
347
|
+
itemsAddress: string;
|
|
348
|
+
filterSettings?: CollectionFilterSettings;
|
|
349
|
+
})[]>;
|
|
350
|
+
type ListCollectionsQueryOptions = ValuesOptional<FetchListCollectionsParams> & {
|
|
351
|
+
query?: StandardQueryOptions;
|
|
352
|
+
};
|
|
353
|
+
declare function listCollectionsQueryOptions(params: ListCollectionsQueryOptions): _tanstack_react_query49.UseQueryOptions<({
|
|
354
|
+
chainId: number;
|
|
355
|
+
address: string;
|
|
356
|
+
source: string;
|
|
357
|
+
name: string;
|
|
358
|
+
type: string;
|
|
359
|
+
symbol: string;
|
|
360
|
+
decimals?: number;
|
|
361
|
+
logoURI: string;
|
|
362
|
+
deployed: boolean;
|
|
363
|
+
bytecodeHash: string;
|
|
364
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
365
|
+
updatedAt: string;
|
|
366
|
+
queuedAt?: string;
|
|
367
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
368
|
+
marketplaceType: MarketplaceType;
|
|
369
|
+
contractType: ContractType;
|
|
370
|
+
feePercentage: number;
|
|
371
|
+
destinationMarketplace: OrderbookKind;
|
|
372
|
+
currencyOptions: Array<string>;
|
|
373
|
+
bannerUrl: string;
|
|
374
|
+
itemsAddress: string;
|
|
375
|
+
filterSettings?: CollectionFilterSettings;
|
|
376
|
+
} | {
|
|
377
|
+
chainId: number;
|
|
378
|
+
address: string;
|
|
379
|
+
source: string;
|
|
380
|
+
name: string;
|
|
381
|
+
type: string;
|
|
382
|
+
symbol: string;
|
|
383
|
+
decimals?: number;
|
|
384
|
+
logoURI: string;
|
|
385
|
+
deployed: boolean;
|
|
386
|
+
bytecodeHash: string;
|
|
387
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
388
|
+
updatedAt: string;
|
|
389
|
+
queuedAt?: string;
|
|
390
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
391
|
+
marketplaceType: MarketplaceType;
|
|
392
|
+
saleAddress: string;
|
|
393
|
+
bannerUrl: string;
|
|
394
|
+
itemsAddress: string;
|
|
395
|
+
filterSettings?: CollectionFilterSettings;
|
|
396
|
+
})[], Error, ({
|
|
397
|
+
chainId: number;
|
|
398
|
+
address: string;
|
|
399
|
+
source: string;
|
|
400
|
+
name: string;
|
|
401
|
+
type: string;
|
|
402
|
+
symbol: string;
|
|
403
|
+
decimals?: number;
|
|
404
|
+
logoURI: string;
|
|
405
|
+
deployed: boolean;
|
|
406
|
+
bytecodeHash: string;
|
|
407
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
408
|
+
updatedAt: string;
|
|
409
|
+
queuedAt?: string;
|
|
410
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
411
|
+
marketplaceType: MarketplaceType;
|
|
412
|
+
contractType: ContractType;
|
|
413
|
+
feePercentage: number;
|
|
414
|
+
destinationMarketplace: OrderbookKind;
|
|
415
|
+
currencyOptions: Array<string>;
|
|
416
|
+
bannerUrl: string;
|
|
417
|
+
itemsAddress: string;
|
|
418
|
+
filterSettings?: CollectionFilterSettings;
|
|
419
|
+
} | {
|
|
420
|
+
chainId: number;
|
|
421
|
+
address: string;
|
|
422
|
+
source: string;
|
|
423
|
+
name: string;
|
|
424
|
+
type: string;
|
|
425
|
+
symbol: string;
|
|
426
|
+
decimals?: number;
|
|
427
|
+
logoURI: string;
|
|
428
|
+
deployed: boolean;
|
|
429
|
+
bytecodeHash: string;
|
|
430
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
431
|
+
updatedAt: string;
|
|
432
|
+
queuedAt?: string;
|
|
433
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
434
|
+
marketplaceType: MarketplaceType;
|
|
435
|
+
saleAddress: string;
|
|
436
|
+
bannerUrl: string;
|
|
437
|
+
itemsAddress: string;
|
|
438
|
+
filterSettings?: CollectionFilterSettings;
|
|
439
|
+
})[], ("collections" | "list" | ListCollectionsQueryOptions)[]> & {
|
|
440
|
+
initialData?: ({
|
|
441
|
+
chainId: number;
|
|
442
|
+
address: string;
|
|
443
|
+
source: string;
|
|
444
|
+
name: string;
|
|
445
|
+
type: string;
|
|
446
|
+
symbol: string;
|
|
447
|
+
decimals?: number;
|
|
448
|
+
logoURI: string;
|
|
449
|
+
deployed: boolean;
|
|
450
|
+
bytecodeHash: string;
|
|
451
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
452
|
+
updatedAt: string;
|
|
453
|
+
queuedAt?: string;
|
|
454
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
455
|
+
marketplaceType: MarketplaceType;
|
|
456
|
+
contractType: ContractType;
|
|
457
|
+
feePercentage: number;
|
|
458
|
+
destinationMarketplace: OrderbookKind;
|
|
459
|
+
currencyOptions: Array<string>;
|
|
460
|
+
bannerUrl: string;
|
|
461
|
+
itemsAddress: string;
|
|
462
|
+
filterSettings?: CollectionFilterSettings;
|
|
463
|
+
} | {
|
|
464
|
+
chainId: number;
|
|
465
|
+
address: string;
|
|
466
|
+
source: string;
|
|
467
|
+
name: string;
|
|
468
|
+
type: string;
|
|
469
|
+
symbol: string;
|
|
470
|
+
decimals?: number;
|
|
471
|
+
logoURI: string;
|
|
472
|
+
deployed: boolean;
|
|
473
|
+
bytecodeHash: string;
|
|
474
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
475
|
+
updatedAt: string;
|
|
476
|
+
queuedAt?: string;
|
|
477
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
478
|
+
marketplaceType: MarketplaceType;
|
|
479
|
+
saleAddress: string;
|
|
480
|
+
bannerUrl: string;
|
|
481
|
+
itemsAddress: string;
|
|
482
|
+
filterSettings?: CollectionFilterSettings;
|
|
483
|
+
})[] | _tanstack_react_query49.InitialDataFunction<({
|
|
484
|
+
chainId: number;
|
|
485
|
+
address: string;
|
|
486
|
+
source: string;
|
|
487
|
+
name: string;
|
|
488
|
+
type: string;
|
|
489
|
+
symbol: string;
|
|
490
|
+
decimals?: number;
|
|
491
|
+
logoURI: string;
|
|
492
|
+
deployed: boolean;
|
|
493
|
+
bytecodeHash: string;
|
|
494
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
495
|
+
updatedAt: string;
|
|
496
|
+
queuedAt?: string;
|
|
497
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
498
|
+
marketplaceType: MarketplaceType;
|
|
499
|
+
contractType: ContractType;
|
|
500
|
+
feePercentage: number;
|
|
501
|
+
destinationMarketplace: OrderbookKind;
|
|
502
|
+
currencyOptions: Array<string>;
|
|
503
|
+
bannerUrl: string;
|
|
504
|
+
itemsAddress: string;
|
|
505
|
+
filterSettings?: CollectionFilterSettings;
|
|
506
|
+
} | {
|
|
507
|
+
chainId: number;
|
|
508
|
+
address: string;
|
|
509
|
+
source: string;
|
|
510
|
+
name: string;
|
|
511
|
+
type: string;
|
|
512
|
+
symbol: string;
|
|
513
|
+
decimals?: number;
|
|
514
|
+
logoURI: string;
|
|
515
|
+
deployed: boolean;
|
|
516
|
+
bytecodeHash: string;
|
|
517
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
518
|
+
updatedAt: string;
|
|
519
|
+
queuedAt?: string;
|
|
520
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
521
|
+
marketplaceType: MarketplaceType;
|
|
522
|
+
saleAddress: string;
|
|
523
|
+
bannerUrl: string;
|
|
524
|
+
itemsAddress: string;
|
|
525
|
+
filterSettings?: CollectionFilterSettings;
|
|
526
|
+
})[]> | undefined;
|
|
527
|
+
} & {
|
|
528
|
+
queryKey: ("collections" | "list" | ListCollectionsQueryOptions)[] & {
|
|
529
|
+
[dataTagSymbol]: ({
|
|
530
|
+
chainId: number;
|
|
531
|
+
address: string;
|
|
532
|
+
source: string;
|
|
533
|
+
name: string;
|
|
534
|
+
type: string;
|
|
535
|
+
symbol: string;
|
|
536
|
+
decimals?: number;
|
|
537
|
+
logoURI: string;
|
|
538
|
+
deployed: boolean;
|
|
539
|
+
bytecodeHash: string;
|
|
540
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
541
|
+
updatedAt: string;
|
|
542
|
+
queuedAt?: string;
|
|
543
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
544
|
+
marketplaceType: MarketplaceType;
|
|
545
|
+
contractType: ContractType;
|
|
546
|
+
feePercentage: number;
|
|
547
|
+
destinationMarketplace: OrderbookKind;
|
|
548
|
+
currencyOptions: Array<string>;
|
|
549
|
+
bannerUrl: string;
|
|
550
|
+
itemsAddress: string;
|
|
551
|
+
filterSettings?: CollectionFilterSettings;
|
|
552
|
+
} | {
|
|
553
|
+
chainId: number;
|
|
554
|
+
address: string;
|
|
555
|
+
source: string;
|
|
556
|
+
name: string;
|
|
557
|
+
type: string;
|
|
558
|
+
symbol: string;
|
|
559
|
+
decimals?: number;
|
|
560
|
+
logoURI: string;
|
|
561
|
+
deployed: boolean;
|
|
562
|
+
bytecodeHash: string;
|
|
563
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
564
|
+
updatedAt: string;
|
|
565
|
+
queuedAt?: string;
|
|
566
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
567
|
+
marketplaceType: MarketplaceType;
|
|
568
|
+
saleAddress: string;
|
|
569
|
+
bannerUrl: string;
|
|
570
|
+
itemsAddress: string;
|
|
571
|
+
filterSettings?: CollectionFilterSettings;
|
|
572
|
+
})[];
|
|
573
|
+
[dataTagErrorSymbol]: Error;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
declare const listCollectionsOptions: ({
|
|
577
|
+
marketplaceType,
|
|
578
|
+
marketplaceConfig,
|
|
579
|
+
config
|
|
580
|
+
}: {
|
|
581
|
+
marketplaceType?: MarketplaceType;
|
|
582
|
+
marketplaceConfig: MarketplaceConfig | undefined;
|
|
583
|
+
config: SdkConfig;
|
|
584
|
+
}) => _tanstack_react_query49.UseQueryOptions<({
|
|
585
|
+
chainId: number;
|
|
586
|
+
address: string;
|
|
587
|
+
source: string;
|
|
588
|
+
name: string;
|
|
589
|
+
type: string;
|
|
590
|
+
symbol: string;
|
|
591
|
+
decimals?: number;
|
|
592
|
+
logoURI: string;
|
|
593
|
+
deployed: boolean;
|
|
594
|
+
bytecodeHash: string;
|
|
595
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
596
|
+
updatedAt: string;
|
|
597
|
+
queuedAt?: string;
|
|
598
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
599
|
+
marketplaceType: MarketplaceType;
|
|
600
|
+
contractType: ContractType;
|
|
601
|
+
feePercentage: number;
|
|
602
|
+
destinationMarketplace: OrderbookKind;
|
|
603
|
+
currencyOptions: Array<string>;
|
|
604
|
+
bannerUrl: string;
|
|
605
|
+
itemsAddress: string;
|
|
606
|
+
filterSettings?: CollectionFilterSettings;
|
|
607
|
+
} | {
|
|
608
|
+
chainId: number;
|
|
609
|
+
address: string;
|
|
610
|
+
source: string;
|
|
611
|
+
name: string;
|
|
612
|
+
type: string;
|
|
613
|
+
symbol: string;
|
|
614
|
+
decimals?: number;
|
|
615
|
+
logoURI: string;
|
|
616
|
+
deployed: boolean;
|
|
617
|
+
bytecodeHash: string;
|
|
618
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
619
|
+
updatedAt: string;
|
|
620
|
+
queuedAt?: string;
|
|
621
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
622
|
+
marketplaceType: MarketplaceType;
|
|
623
|
+
saleAddress: string;
|
|
624
|
+
bannerUrl: string;
|
|
625
|
+
itemsAddress: string;
|
|
626
|
+
filterSettings?: CollectionFilterSettings;
|
|
627
|
+
})[], Error, ({
|
|
628
|
+
chainId: number;
|
|
629
|
+
address: string;
|
|
630
|
+
source: string;
|
|
631
|
+
name: string;
|
|
632
|
+
type: string;
|
|
633
|
+
symbol: string;
|
|
634
|
+
decimals?: number;
|
|
635
|
+
logoURI: string;
|
|
636
|
+
deployed: boolean;
|
|
637
|
+
bytecodeHash: string;
|
|
638
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
639
|
+
updatedAt: string;
|
|
640
|
+
queuedAt?: string;
|
|
641
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
642
|
+
marketplaceType: MarketplaceType;
|
|
643
|
+
contractType: ContractType;
|
|
644
|
+
feePercentage: number;
|
|
645
|
+
destinationMarketplace: OrderbookKind;
|
|
646
|
+
currencyOptions: Array<string>;
|
|
647
|
+
bannerUrl: string;
|
|
648
|
+
itemsAddress: string;
|
|
649
|
+
filterSettings?: CollectionFilterSettings;
|
|
650
|
+
} | {
|
|
651
|
+
chainId: number;
|
|
652
|
+
address: string;
|
|
653
|
+
source: string;
|
|
654
|
+
name: string;
|
|
655
|
+
type: string;
|
|
656
|
+
symbol: string;
|
|
657
|
+
decimals?: number;
|
|
658
|
+
logoURI: string;
|
|
659
|
+
deployed: boolean;
|
|
660
|
+
bytecodeHash: string;
|
|
661
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
662
|
+
updatedAt: string;
|
|
663
|
+
queuedAt?: string;
|
|
664
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
665
|
+
marketplaceType: MarketplaceType;
|
|
666
|
+
saleAddress: string;
|
|
667
|
+
bannerUrl: string;
|
|
668
|
+
itemsAddress: string;
|
|
669
|
+
filterSettings?: CollectionFilterSettings;
|
|
670
|
+
})[], ("collections" | "list" | {
|
|
671
|
+
marketplaceType: MarketplaceType | undefined;
|
|
672
|
+
marketplaceConfig: MarketplaceConfig | undefined;
|
|
673
|
+
config: SdkConfig;
|
|
674
|
+
})[]> & {
|
|
675
|
+
initialData?: ({
|
|
676
|
+
chainId: number;
|
|
677
|
+
address: string;
|
|
678
|
+
source: string;
|
|
679
|
+
name: string;
|
|
680
|
+
type: string;
|
|
681
|
+
symbol: string;
|
|
682
|
+
decimals?: number;
|
|
683
|
+
logoURI: string;
|
|
684
|
+
deployed: boolean;
|
|
685
|
+
bytecodeHash: string;
|
|
686
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
687
|
+
updatedAt: string;
|
|
688
|
+
queuedAt?: string;
|
|
689
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
690
|
+
marketplaceType: MarketplaceType;
|
|
691
|
+
contractType: ContractType;
|
|
692
|
+
feePercentage: number;
|
|
693
|
+
destinationMarketplace: OrderbookKind;
|
|
694
|
+
currencyOptions: Array<string>;
|
|
695
|
+
bannerUrl: string;
|
|
696
|
+
itemsAddress: string;
|
|
697
|
+
filterSettings?: CollectionFilterSettings;
|
|
698
|
+
} | {
|
|
699
|
+
chainId: number;
|
|
700
|
+
address: string;
|
|
701
|
+
source: string;
|
|
702
|
+
name: string;
|
|
703
|
+
type: string;
|
|
704
|
+
symbol: string;
|
|
705
|
+
decimals?: number;
|
|
706
|
+
logoURI: string;
|
|
707
|
+
deployed: boolean;
|
|
708
|
+
bytecodeHash: string;
|
|
709
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
710
|
+
updatedAt: string;
|
|
711
|
+
queuedAt?: string;
|
|
712
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
713
|
+
marketplaceType: MarketplaceType;
|
|
714
|
+
saleAddress: string;
|
|
715
|
+
bannerUrl: string;
|
|
716
|
+
itemsAddress: string;
|
|
717
|
+
filterSettings?: CollectionFilterSettings;
|
|
718
|
+
})[] | _tanstack_react_query49.InitialDataFunction<({
|
|
719
|
+
chainId: number;
|
|
720
|
+
address: string;
|
|
721
|
+
source: string;
|
|
722
|
+
name: string;
|
|
723
|
+
type: string;
|
|
724
|
+
symbol: string;
|
|
725
|
+
decimals?: number;
|
|
726
|
+
logoURI: string;
|
|
727
|
+
deployed: boolean;
|
|
728
|
+
bytecodeHash: string;
|
|
729
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
730
|
+
updatedAt: string;
|
|
731
|
+
queuedAt?: string;
|
|
732
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
733
|
+
marketplaceType: MarketplaceType;
|
|
734
|
+
contractType: ContractType;
|
|
735
|
+
feePercentage: number;
|
|
736
|
+
destinationMarketplace: OrderbookKind;
|
|
737
|
+
currencyOptions: Array<string>;
|
|
738
|
+
bannerUrl: string;
|
|
739
|
+
itemsAddress: string;
|
|
740
|
+
filterSettings?: CollectionFilterSettings;
|
|
741
|
+
} | {
|
|
742
|
+
chainId: number;
|
|
743
|
+
address: string;
|
|
744
|
+
source: string;
|
|
745
|
+
name: string;
|
|
746
|
+
type: string;
|
|
747
|
+
symbol: string;
|
|
748
|
+
decimals?: number;
|
|
749
|
+
logoURI: string;
|
|
750
|
+
deployed: boolean;
|
|
751
|
+
bytecodeHash: string;
|
|
752
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
753
|
+
updatedAt: string;
|
|
754
|
+
queuedAt?: string;
|
|
755
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
756
|
+
marketplaceType: MarketplaceType;
|
|
757
|
+
saleAddress: string;
|
|
758
|
+
bannerUrl: string;
|
|
759
|
+
itemsAddress: string;
|
|
760
|
+
filterSettings?: CollectionFilterSettings;
|
|
761
|
+
})[]> | undefined;
|
|
762
|
+
} & {
|
|
763
|
+
queryKey: ("collections" | "list" | {
|
|
764
|
+
marketplaceType: MarketplaceType | undefined;
|
|
765
|
+
marketplaceConfig: MarketplaceConfig | undefined;
|
|
766
|
+
config: SdkConfig;
|
|
767
|
+
})[] & {
|
|
768
|
+
[dataTagSymbol]: ({
|
|
769
|
+
chainId: number;
|
|
770
|
+
address: string;
|
|
771
|
+
source: string;
|
|
772
|
+
name: string;
|
|
773
|
+
type: string;
|
|
774
|
+
symbol: string;
|
|
775
|
+
decimals?: number;
|
|
776
|
+
logoURI: string;
|
|
777
|
+
deployed: boolean;
|
|
778
|
+
bytecodeHash: string;
|
|
779
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
780
|
+
updatedAt: string;
|
|
781
|
+
queuedAt?: string;
|
|
782
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
783
|
+
marketplaceType: MarketplaceType;
|
|
784
|
+
contractType: ContractType;
|
|
785
|
+
feePercentage: number;
|
|
786
|
+
destinationMarketplace: OrderbookKind;
|
|
787
|
+
currencyOptions: Array<string>;
|
|
788
|
+
bannerUrl: string;
|
|
789
|
+
itemsAddress: string;
|
|
790
|
+
filterSettings?: CollectionFilterSettings;
|
|
791
|
+
} | {
|
|
792
|
+
chainId: number;
|
|
793
|
+
address: string;
|
|
794
|
+
source: string;
|
|
795
|
+
name: string;
|
|
796
|
+
type: string;
|
|
797
|
+
symbol: string;
|
|
798
|
+
decimals?: number;
|
|
799
|
+
logoURI: string;
|
|
800
|
+
deployed: boolean;
|
|
801
|
+
bytecodeHash: string;
|
|
802
|
+
extensions: _0xsequence_metadata54.ContractInfoExtensions;
|
|
803
|
+
updatedAt: string;
|
|
804
|
+
queuedAt?: string;
|
|
805
|
+
status: _0xsequence_metadata54.ResourceStatus;
|
|
806
|
+
marketplaceType: MarketplaceType;
|
|
807
|
+
saleAddress: string;
|
|
808
|
+
bannerUrl: string;
|
|
809
|
+
itemsAddress: string;
|
|
810
|
+
filterSettings?: CollectionFilterSettings;
|
|
811
|
+
})[];
|
|
812
|
+
[dataTagErrorSymbol]: Error;
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
//#endregion
|
|
816
|
+
//#region src/react/queries/listTokenMetadata.d.ts
|
|
817
|
+
interface FetchListTokenMetadataParams {
|
|
818
|
+
chainId: number;
|
|
819
|
+
contractAddress: string;
|
|
820
|
+
tokenIds: string[];
|
|
821
|
+
config: SdkConfig;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Fetches token metadata from the metadata API
|
|
825
|
+
*/
|
|
826
|
+
declare function fetchListTokenMetadata(params: FetchListTokenMetadataParams): Promise<_0xsequence_metadata54.TokenMetadata[]>;
|
|
827
|
+
type ListTokenMetadataQueryOptions = ValuesOptional<FetchListTokenMetadataParams> & {
|
|
828
|
+
query?: StandardQueryOptions;
|
|
829
|
+
};
|
|
830
|
+
declare function listTokenMetadataQueryOptions(params: ListTokenMetadataQueryOptions): _tanstack_react_query49.OmitKeyof<_tanstack_react_query49.UseQueryOptions<_0xsequence_metadata54.TokenMetadata[], Error, _0xsequence_metadata54.TokenMetadata[], ("tokens" | "metadata" | ListTokenMetadataQueryOptions)[]>, "queryFn"> & {
|
|
831
|
+
queryFn?: _tanstack_react_query49.QueryFunction<_0xsequence_metadata54.TokenMetadata[], ("tokens" | "metadata" | ListTokenMetadataQueryOptions)[], never> | undefined;
|
|
832
|
+
} & {
|
|
833
|
+
queryKey: ("tokens" | "metadata" | ListTokenMetadataQueryOptions)[] & {
|
|
834
|
+
[dataTagSymbol]: _0xsequence_metadata54.TokenMetadata[];
|
|
835
|
+
[dataTagErrorSymbol]: Error;
|
|
836
|
+
};
|
|
837
|
+
};
|
|
838
|
+
//#endregion
|
|
839
|
+
//#region src/react/queries/lowestListing.d.ts
|
|
840
|
+
interface FetchLowestListingParams extends Omit<GetCollectibleLowestListingArgs, 'contractAddress' | 'chainId'> {
|
|
841
|
+
collectionAddress: string;
|
|
842
|
+
chainId: number;
|
|
843
|
+
config: SdkConfig;
|
|
844
|
+
}
|
|
845
|
+
/**
|
|
846
|
+
* Fetches the lowest listing for a collectible from the marketplace API
|
|
847
|
+
*/
|
|
848
|
+
declare function fetchLowestListing(params: FetchLowestListingParams): Promise<GetCollectibleLowestListingReturn['order'] | null>;
|
|
849
|
+
type LowestListingQueryOptions = ValuesOptional<FetchLowestListingParams> & {
|
|
850
|
+
query?: StandardQueryOptions;
|
|
851
|
+
};
|
|
852
|
+
declare function lowestListingQueryOptions(params: LowestListingQueryOptions): _tanstack_react_query49.OmitKeyof<_tanstack_react_query49.UseQueryOptions<Order | null | undefined, Error, Order | null | undefined, ("collectable" | "details" | "lowestListings" | LowestListingQueryOptions)[]>, "queryFn"> & {
|
|
853
|
+
queryFn?: _tanstack_react_query49.QueryFunction<Order | null | undefined, ("collectable" | "details" | "lowestListings" | LowestListingQueryOptions)[], never> | undefined;
|
|
854
|
+
} & {
|
|
855
|
+
queryKey: ("collectable" | "details" | "lowestListings" | LowestListingQueryOptions)[] & {
|
|
856
|
+
[dataTagSymbol]: Order | null | undefined;
|
|
857
|
+
[dataTagErrorSymbol]: Error;
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
//#endregion
|
|
861
|
+
//#region src/react/queries/marketCurrencies.d.ts
|
|
862
|
+
interface FetchMarketCurrenciesParams {
|
|
863
|
+
chainId: number;
|
|
864
|
+
includeNativeCurrency?: boolean;
|
|
865
|
+
collectionAddress?: Address;
|
|
866
|
+
config: SdkConfig;
|
|
867
|
+
}
|
|
868
|
+
/**
|
|
869
|
+
* Fetches supported currencies for a marketplace
|
|
870
|
+
*/
|
|
871
|
+
declare function fetchMarketCurrencies(params: FetchMarketCurrenciesParams): Promise<{
|
|
872
|
+
contractAddress: string;
|
|
873
|
+
chainId: number;
|
|
874
|
+
status: CurrencyStatus;
|
|
875
|
+
name: string;
|
|
876
|
+
symbol: string;
|
|
877
|
+
decimals: number;
|
|
878
|
+
imageUrl: string;
|
|
879
|
+
exchangeRate: number;
|
|
880
|
+
defaultChainCurrency: boolean;
|
|
881
|
+
nativeCurrency: boolean;
|
|
882
|
+
createdAt: string;
|
|
883
|
+
updatedAt: string;
|
|
884
|
+
deletedAt?: string;
|
|
885
|
+
}[]>;
|
|
886
|
+
type MarketCurrenciesQueryOptions = ValuesOptional<FetchMarketCurrenciesParams> & {
|
|
887
|
+
query?: StandardQueryOptions;
|
|
888
|
+
};
|
|
889
|
+
declare function marketCurrenciesQueryOptions(params: MarketCurrenciesQueryOptions): _tanstack_react_query49.OmitKeyof<_tanstack_react_query49.UseQueryOptions<{
|
|
890
|
+
contractAddress: string;
|
|
891
|
+
chainId: number;
|
|
892
|
+
status: CurrencyStatus;
|
|
893
|
+
name: string;
|
|
894
|
+
symbol: string;
|
|
895
|
+
decimals: number;
|
|
896
|
+
imageUrl: string;
|
|
897
|
+
exchangeRate: number;
|
|
898
|
+
defaultChainCurrency: boolean;
|
|
899
|
+
nativeCurrency: boolean;
|
|
900
|
+
createdAt: string;
|
|
901
|
+
updatedAt: string;
|
|
902
|
+
deletedAt?: string;
|
|
903
|
+
}[], Error, {
|
|
904
|
+
contractAddress: string;
|
|
905
|
+
chainId: number;
|
|
906
|
+
status: CurrencyStatus;
|
|
907
|
+
name: string;
|
|
908
|
+
symbol: string;
|
|
909
|
+
decimals: number;
|
|
910
|
+
imageUrl: string;
|
|
911
|
+
exchangeRate: number;
|
|
912
|
+
defaultChainCurrency: boolean;
|
|
913
|
+
nativeCurrency: boolean;
|
|
914
|
+
createdAt: string;
|
|
915
|
+
updatedAt: string;
|
|
916
|
+
deletedAt?: string;
|
|
917
|
+
}[], ("currencies" | "list" | MarketCurrenciesQueryOptions)[]>, "queryFn"> & {
|
|
918
|
+
queryFn?: _tanstack_react_query49.QueryFunction<{
|
|
919
|
+
contractAddress: string;
|
|
920
|
+
chainId: number;
|
|
921
|
+
status: CurrencyStatus;
|
|
922
|
+
name: string;
|
|
923
|
+
symbol: string;
|
|
924
|
+
decimals: number;
|
|
925
|
+
imageUrl: string;
|
|
926
|
+
exchangeRate: number;
|
|
927
|
+
defaultChainCurrency: boolean;
|
|
928
|
+
nativeCurrency: boolean;
|
|
929
|
+
createdAt: string;
|
|
930
|
+
updatedAt: string;
|
|
931
|
+
deletedAt?: string;
|
|
932
|
+
}[], ("currencies" | "list" | MarketCurrenciesQueryOptions)[], never> | undefined;
|
|
933
|
+
} & {
|
|
934
|
+
queryKey: ("currencies" | "list" | MarketCurrenciesQueryOptions)[] & {
|
|
935
|
+
[dataTagSymbol]: {
|
|
936
|
+
contractAddress: string;
|
|
937
|
+
chainId: number;
|
|
938
|
+
status: CurrencyStatus;
|
|
939
|
+
name: string;
|
|
940
|
+
symbol: string;
|
|
941
|
+
decimals: number;
|
|
942
|
+
imageUrl: string;
|
|
943
|
+
exchangeRate: number;
|
|
944
|
+
defaultChainCurrency: boolean;
|
|
945
|
+
nativeCurrency: boolean;
|
|
946
|
+
createdAt: string;
|
|
947
|
+
updatedAt: string;
|
|
948
|
+
deletedAt?: string;
|
|
949
|
+
}[];
|
|
950
|
+
[dataTagErrorSymbol]: Error;
|
|
951
|
+
};
|
|
952
|
+
};
|
|
953
|
+
//#endregion
|
|
954
|
+
//#region src/react/queries/tokenSupplies.d.ts
|
|
955
|
+
interface FetchTokenSuppliesParams extends Omit<GetTokenSuppliesArgs, 'contractAddress'> {
|
|
956
|
+
chainId: number;
|
|
957
|
+
collectionAddress: string;
|
|
958
|
+
config: SdkConfig;
|
|
959
|
+
isLaos721?: boolean;
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* Fetches token supplies with support for both indexer and LAOS APIs
|
|
963
|
+
* Uses the more efficient single-contract APIs from both services
|
|
964
|
+
*/
|
|
965
|
+
declare function fetchTokenSupplies(params: FetchTokenSuppliesParams): Promise<_0xsequence_indexer46.GetTokenSuppliesReturn>;
|
|
966
|
+
type TokenSuppliesQueryOptions = ValuesOptional<FetchTokenSuppliesParams> & {
|
|
967
|
+
query?: StandardQueryOptions;
|
|
968
|
+
};
|
|
969
|
+
declare function tokenSuppliesQueryOptions(params: TokenSuppliesQueryOptions): _tanstack_react_query49.OmitKeyof<_tanstack_react_query49.UseQueryOptions<_0xsequence_indexer46.GetTokenSuppliesReturn, Error, _0xsequence_indexer46.GetTokenSuppliesReturn, ("tokens" | "supplies" | TokenSuppliesQueryOptions)[]>, "queryFn"> & {
|
|
970
|
+
queryFn?: _tanstack_react_query49.QueryFunction<_0xsequence_indexer46.GetTokenSuppliesReturn, ("tokens" | "supplies" | TokenSuppliesQueryOptions)[], never> | undefined;
|
|
971
|
+
} & {
|
|
972
|
+
queryKey: ("tokens" | "supplies" | TokenSuppliesQueryOptions)[] & {
|
|
973
|
+
[dataTagSymbol]: _0xsequence_indexer46.GetTokenSuppliesReturn;
|
|
974
|
+
[dataTagErrorSymbol]: Error;
|
|
975
|
+
};
|
|
976
|
+
};
|
|
977
|
+
//#endregion
|
|
978
|
+
export { CollectibleQueryOptions, CollectiblesResponse, CollectionDetailsQueryOptions, CurrencyQueryOptions, FetchCollectibleParams, FetchCollectionDetailsParams, FetchCurrencyParams, FetchFloorOrderParams, FetchHighestOfferParams, FetchListCollectiblesParams, FetchListCollectionsParams, FetchListTokenMetadataParams, FetchLowestListingParams, FetchMarketCurrenciesParams, FetchTokenSuppliesParams, FloorOrderQueryOptions, HighestOfferQueryOptions, ListCollectiblesQueryOptions, ListCollectionsQueryOptions, ListTokenMetadataQueryOptions, LowestListingQueryOptions, MarketCurrenciesQueryOptions, StandardInfiniteQueryOptions, StandardQueryOptions, TokenSuppliesQueryOptions, UseBalanceOfCollectibleArgs, UseCountOfPrimarySaleItemsArgs, UseInventoryArgs, UseListBalancesArgs, balanceOfCollectibleOptions, clearInventoryState, collectibleQueryOptions, collectionDetailsQueryOptions, countOfPrimarySaleItemsOptions, currencyQueryOptions, fetchBalanceOfCollectible, fetchBalances, fetchCollectible, fetchCollectionDetails, fetchCountOfPrimarySaleItems, fetchCurrency, fetchFloorOrder, fetchHighestOffer, fetchInventory, fetchListCollectibles, fetchListCollections, fetchListTokenMetadata, fetchLowestListing, fetchMarketCurrencies, fetchTokenSupplies, floorOrderQueryOptions, highestOfferQueryOptions, inventoryOptions, listBalancesOptions, listCollectiblesQueryOptions, listCollectionsOptions, listCollectionsQueryOptions, listTokenMetadataQueryOptions, lowestListingQueryOptions, marketCurrenciesQueryOptions, tokenSuppliesQueryOptions };
|
|
979
|
+
//# sourceMappingURL=index-BKBin-rq.d.ts.map
|