@0xsequence/marketplace-sdk 0.8.11 → 0.9.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/CHANGELOG.md +236 -2
- package/dist/CalendarIcon-DbQ7Vxcw.js +141 -0
- package/dist/CalendarIcon-DbQ7Vxcw.js.map +1 -0
- package/dist/CollectibleCard-C8Ae64Ab.d.ts +71 -0
- package/dist/_internal-BgWcRIak.js +22 -0
- package/dist/_internal-BgWcRIak.js.map +1 -0
- package/dist/abi-BKyRjVcZ.js +0 -0
- package/dist/{alien_swap-2B65TDGT.js → alien_swap-B_76IMma.js} +5 -5
- package/dist/alien_swap-B_76IMma.js.map +1 -0
- package/dist/api-DTIan01C.js +241 -0
- package/dist/api-DTIan01C.js.map +1 -0
- package/dist/{aqua-xyz-WMYQLAIS.js → aqua-xyz-CMN_TFY5.js} +5 -5
- package/dist/aqua-xyz-CMN_TFY5.js.map +1 -0
- package/dist/{aura-V22RV5OG.js → aura-Cye_TuHj.js} +5 -5
- package/dist/aura-Cye_TuHj.js.map +1 -0
- package/dist/{blur-GE5QOMCM.js → blur-DWDMyMpK.js} +5 -5
- package/dist/blur-DWDMyMpK.js.map +1 -0
- package/dist/builder-api-BFuZNOaN.js +28 -0
- package/dist/builder-api-BFuZNOaN.js.map +1 -0
- package/dist/builder-api-C_zj5mr3.d.ts +12 -0
- package/dist/builder.gen-B9wR2nvF.js +303 -0
- package/dist/builder.gen-B9wR2nvF.js.map +1 -0
- package/dist/{coinbase-NLHJMGAP.js → coinbase-ByA_XRB0.js} +5 -5
- package/dist/coinbase-ByA_XRB0.js.map +1 -0
- package/dist/{element-2LGTYYSP.js → element-b77CyXIZ.js} +5 -5
- package/dist/element-b77CyXIZ.js.map +1 -0
- package/dist/{foundation-BPN66ZTN.js → foundation-DbOrKP9Y.js} +5 -5
- package/dist/foundation-DbOrKP9Y.js.map +1 -0
- package/dist/index-21LE7OhL.d.ts +102 -0
- package/dist/index-BL9RUSEK.d.ts +1803 -0
- package/dist/index-BQsgAvtX.d.ts +2938 -0
- package/dist/index-BUVWziLP.d.ts +60 -0
- package/dist/index-ByznONYE.d.ts +187 -0
- package/dist/index-C39K_8SG.d.ts +1 -0
- package/dist/index-CLy8y5hm.d.ts +1057 -0
- package/dist/index-COt10OgI.d.ts +24 -0
- package/dist/index-D5v5iluA.d.ts +809 -0
- package/dist/index-DPNWNa7t.d.ts +414 -0
- package/dist/index-DXMfTZ1F.d.ts +7 -0
- package/dist/index-DaE5ZNHb.d.ts +24 -0
- package/dist/index-DsfCs3-x.d.ts +122 -0
- package/dist/index-DvpBZgor.d.ts +1 -0
- package/dist/index-dUb6wb4Y.d.ts +22 -0
- package/dist/index.css +397 -371
- package/dist/index.d.ts +10 -29
- package/dist/index.js +13 -104
- package/dist/{looks-rare-MZRSOPT4.js → looks-rare-C1VqNcSM.js} +5 -5
- package/dist/looks-rare-C1VqNcSM.js.map +1 -0
- package/dist/{magic-eden-PUBL6KWW.js → magic-eden-ea_AGCZr.js} +5 -5
- package/dist/magic-eden-ea_AGCZr.js.map +1 -0
- package/dist/{manifold-GA445YJ6.js → manifold-8y8J2sjT.js} +5 -5
- package/dist/manifold-8y8J2sjT.js.map +1 -0
- package/dist/marketplace-logos-CSeGcPW4.js +50 -0
- package/dist/marketplace-logos-CSeGcPW4.js.map +1 -0
- package/dist/marketplace-nwnZv9Cb.js +1913 -0
- package/dist/marketplace-nwnZv9Cb.js.map +1 -0
- package/dist/marketplace.gen-BSDIX7NZ.js +1077 -0
- package/dist/marketplace.gen-BSDIX7NZ.js.map +1 -0
- package/dist/marketplaceConfig-C6X1SUik.js +71 -0
- package/dist/marketplaceConfig-C6X1SUik.js.map +1 -0
- package/dist/{mintify-UMC5PTKC.js → mintify-LA68TzWg.js} +5 -5
- package/dist/mintify-LA68TzWg.js.map +1 -0
- package/dist/new-marketplace-types-Bfis0U4J.d.ts +1546 -0
- package/dist/{nftx-AX3CY3IE.js → nftx-D3Tc8nzd.js} +5 -5
- package/dist/nftx-D3Tc8nzd.js.map +1 -0
- package/dist/{okx-GNVLAE2R.js → okx-hbqg6oIJ.js} +5 -5
- package/dist/okx-hbqg6oIJ.js.map +1 -0
- package/dist/{open-sea-KI43GVEB.js → open-sea-BccuK8-t.js} +5 -5
- package/dist/open-sea-BccuK8-t.js.map +1 -0
- package/dist/options-B4QN7Xou.js +0 -0
- package/dist/primary-sale-C55ALnfQ.js +1264 -0
- package/dist/primary-sale-C55ALnfQ.js.map +1 -0
- package/dist/queries-CUU65uYZ.js +599 -0
- package/dist/queries-CUU65uYZ.js.map +1 -0
- package/dist/{rarible-2J3MMZJ7.js → rarible-BgTwwj9g.js} +5 -5
- package/dist/rarible-BgTwwj9g.js.map +1 -0
- package/dist/react/_internal/api/index.d.ts +4 -86
- package/dist/react/_internal/api/index.js +7 -150
- package/dist/react/_internal/databeat/index.d.ts +45 -41
- package/dist/react/_internal/databeat/index.js +23 -27
- package/dist/react/_internal/index.d.ts +7 -76
- package/dist/react/_internal/index.js +9 -176
- package/dist/react/_internal/wagmi/index.d.ts +4 -17
- package/dist/react/_internal/wagmi/index.js +5 -14
- package/dist/react/hooks/index.d.ts +18 -3652
- package/dist/react/hooks/index.js +23 -153
- package/dist/react/hooks/options/index.d.ts +4 -8
- package/dist/react/hooks/options/index.js +11 -21
- package/dist/react/index.d.ts +18 -36
- package/dist/react/index.js +23 -193
- package/dist/react/queries/index.d.ts +8 -26
- package/dist/react/queries/index.js +18 -51
- package/dist/react/ssr/index.d.ts +19 -13
- package/dist/react/ssr/index.js +29 -28
- package/dist/react/ssr/index.js.map +1 -1
- package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +9 -0
- package/dist/react/ui/components/marketplace-collectible-card/index.js +23 -0
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.d.ts +8 -0
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.js +10 -0
- package/dist/react/ui/components/marketplace-logos/index.d.ts +26 -24
- package/dist/react/ui/components/marketplace-logos/index.js +3 -45
- package/dist/react/ui/icons/index.d.ts +1 -2
- package/dist/react/ui/icons/index.js +10 -14
- package/dist/react/ui/index.d.ts +9 -116
- package/dist/react/ui/index.js +23 -41
- package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +59 -33
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +23 -31
- package/dist/react-BbHBl6gg.css +80 -0
- package/dist/react-BbHBl6gg.css.map +1 -0
- package/dist/react-DAIicQPT.js +8938 -0
- package/dist/react-DAIicQPT.js.map +1 -0
- package/dist/{sequence-TGLUFEPQ.js → sequence-Do3kzb4J.js} +5 -5
- package/dist/sequence-Do3kzb4J.js.map +1 -0
- package/dist/src-Dz2CfBL0.js +8 -0
- package/dist/src-Dz2CfBL0.js.map +1 -0
- package/dist/{sudo-swap-M2O6E3TE.js → sudo-swap-B6vPKxBz.js} +5 -5
- package/dist/sudo-swap-B6vPKxBz.js.map +1 -0
- package/dist/{super-rare-UU2U4LIN.js → super-rare-eCm1SE6O.js} +5 -5
- package/dist/super-rare-eCm1SE6O.js.map +1 -0
- package/dist/token-Da4TdyUk.js +2091 -0
- package/dist/token-Da4TdyUk.js.map +1 -0
- package/dist/transaction-CcVViHEL.js +97 -0
- package/dist/transaction-CcVViHEL.js.map +1 -0
- package/dist/types/index.d.ts +3 -13
- package/dist/types/index.js +5 -44
- package/dist/types-DwWE6xOF.js +13 -0
- package/dist/types-DwWE6xOF.js.map +1 -0
- package/dist/utils/abi/index.d.ts +5 -3
- package/dist/utils/abi/index.js +6 -26
- package/dist/utils/abi/marketplace/index.d.ts +2 -805
- package/dist/utils/abi/marketplace/index.js +3 -11
- package/dist/utils/abi/primary-sale/index.d.ts +2 -1054
- package/dist/utils/abi/primary-sale/index.js +3 -9
- package/dist/utils/abi/token/index.d.ts +2 -1125
- package/dist/utils/abi/token/index.js +3 -11
- package/dist/utils/index.d.ts +8 -91
- package/dist/utils/index.js +11 -57
- package/dist/utils-BPYfgDSL.js +44 -0
- package/dist/utils-BPYfgDSL.js.map +1 -0
- package/dist/utils-CW2NA5KG.js +216 -0
- package/dist/utils-CW2NA5KG.js.map +1 -0
- package/dist/wagmi-CDzEQbfk.js +166 -0
- package/dist/wagmi-CDzEQbfk.js.map +1 -0
- package/dist/{x2y2-3W5BBMZC.js → x2y2-DD17tT91.js} +5 -5
- package/dist/x2y2-DD17tT91.js.map +1 -0
- package/dist/{zora-6EY6FUH6.js → zora-BpSG9UzS.js} +5 -5
- package/dist/zora-BpSG9UzS.js.map +1 -0
- package/eslint/use-client.js +0 -6
- package/package.json +36 -35
- package/src/index.ts +1 -2
- package/src/react/_internal/api/__mocks__/builder.msw.ts +5 -3
- package/src/react/_internal/api/__mocks__/indexer.msw.ts +9 -8
- package/src/react/_internal/api/__mocks__/marketplace.msw.ts +4 -6
- package/src/react/_internal/api/__mocks__/metadata.msw.ts +1 -1
- package/src/react/_internal/api/builder.gen.ts +6 -7
- package/src/react/_internal/api/get-query-client.ts +2 -2
- package/src/react/_internal/api/index.ts +2 -2
- package/src/react/_internal/api/marketplace.gen.ts +505 -26
- package/src/react/_internal/api/query-keys.ts +13 -6
- package/src/react/_internal/api/services.ts +42 -52
- package/src/react/_internal/index.ts +1 -1
- package/src/react/_internal/types.ts +10 -23
- package/src/react/_internal/utils.ts +1 -2
- package/src/react/_internal/wagmi/__tests__/create-config.test.ts +5 -5
- package/src/react/_internal/wagmi/create-config.ts +23 -9
- package/src/react/_internal/wagmi/get-connectors.ts +10 -5
- package/src/react/_internal/wallet/__tests__/wallet.test.ts +1 -1
- package/src/react/_internal/wallet/wallet.ts +18 -18
- package/src/react/hooks/__tests__/__snapshots__/useListCollections.test.tsx.snap +181 -2
- package/src/react/hooks/__tests__/__snapshots__/useMarketplaceConfig.test.tsx.snap +54 -6
- package/src/react/hooks/__tests__/useAutoSelectFeeOption.test.tsx +8 -5
- package/src/react/hooks/__tests__/useBalanceOfCollectible.test.tsx +1 -1
- package/src/react/hooks/__tests__/useCancelOrder.test.tsx +4 -4
- package/src/react/hooks/__tests__/useCancelTransactionSteps.test.tsx +1 -1
- package/src/react/hooks/__tests__/useCheckoutOptionsSalesContract.test.tsx +225 -0
- package/src/react/hooks/__tests__/useCollectible.test.tsx +14 -16
- package/src/react/hooks/__tests__/useCollection.test.tsx +4 -4
- package/src/react/hooks/__tests__/useCollectionBalanceDetails.test.tsx +1 -27
- package/src/react/hooks/__tests__/useCollectionDetails.test.tsx +1 -1
- package/src/react/hooks/__tests__/useCollectionDetailsPolling.test.tsx +4 -4
- package/src/react/hooks/__tests__/useComparePrices.test.tsx +7 -6
- package/src/react/hooks/__tests__/useConvertPriceToUSD.test.tsx +1 -1
- package/src/react/hooks/__tests__/useCountListingsForCollectible.test.tsx +2 -2
- package/src/react/hooks/__tests__/useCountOfCollectables.test.tsx +5 -5
- package/src/react/hooks/__tests__/useCountOffersForCollectible.test.tsx +2 -2
- package/src/react/hooks/__tests__/useCurrency.test.tsx +5 -3
- package/src/react/hooks/__tests__/useFilters.test.tsx +1 -1
- package/src/react/hooks/__tests__/useFloorOrder.test.tsx +4 -4
- package/src/react/hooks/__tests__/useGenerateCancelTransaction.test.tsx +5 -6
- package/src/react/hooks/__tests__/useGenerateListingTransaction.test.tsx +1 -1
- package/src/react/hooks/__tests__/useGenerateOfferTransaction.test.tsx +1 -1
- package/src/react/hooks/__tests__/useGenerateSellTransaction.test.tsx +1 -1
- package/src/react/hooks/__tests__/useGetTokenSuppliesMap.test.tsx +104 -0
- package/src/react/hooks/__tests__/useHighestOffer.test.tsx +4 -20
- package/src/react/hooks/__tests__/useInventory.test.tsx +1 -37
- package/src/react/hooks/__tests__/useListCollectibleActivities.test.tsx +11 -13
- package/src/react/hooks/__tests__/useListCollectibles.test.tsx +5 -5
- package/src/react/hooks/__tests__/useListCollectiblesPaginated.test.tsx +10 -15
- package/src/react/hooks/__tests__/useListCollectionActivities.test.tsx +13 -15
- package/src/react/hooks/__tests__/useListCollections.test.tsx +4 -4
- package/src/react/hooks/__tests__/useListListingsForCollectible.test.tsx +3 -2
- package/src/react/hooks/__tests__/useListMarketCardData.test.tsx +301 -0
- package/src/react/hooks/__tests__/useListOffersForCollectible.test.tsx +1 -1
- package/src/react/hooks/__tests__/useListTokenMetadata.test.tsx +111 -0
- package/src/react/hooks/__tests__/useLowestListing.test.tsx +1 -1
- package/src/react/hooks/__tests__/useMarketCurrencies.test.tsx +1 -1
- package/src/react/hooks/__tests__/useRoyalty.test.tsx +0 -23
- package/src/react/hooks/index.ts +27 -17
- package/src/react/hooks/options/index.ts +0 -1
- package/src/react/hooks/useAutoSelectFeeOption.tsx +1 -1
- package/src/react/hooks/useBalanceOfCollectible.tsx +14 -10
- package/src/react/hooks/useCancelTransactionSteps.tsx +7 -3
- package/src/react/hooks/useCheckoutOptionsSalesContract.tsx +67 -0
- package/src/react/hooks/useCollectible.tsx +64 -49
- package/src/react/hooks/useCollection.tsx +60 -11
- package/src/react/hooks/useCollectionBalanceDetails.tsx +20 -27
- package/src/react/hooks/useCollectionDetails.ts +69 -0
- package/src/react/hooks/useCollectionDetailsPolling.tsx +10 -2
- package/src/react/hooks/useComparePrices.tsx +18 -21
- package/src/react/hooks/useConvertPriceToUSD.tsx +20 -37
- package/src/react/hooks/useCountListingsForCollectible.tsx +64 -52
- package/src/react/hooks/useCountOfCollectables.tsx +61 -67
- package/src/react/hooks/useCountOfPrimarySaleItems.tsx +13 -0
- package/src/react/hooks/useCountOffersForCollectible.tsx +64 -52
- package/src/react/hooks/useCurrency.tsx +56 -64
- package/src/react/hooks/useERC721SaleMintedTokens.tsx +67 -0
- package/src/react/hooks/useFilterState.tsx +1 -2
- package/src/react/hooks/useFloorOrder.tsx +65 -37
- package/src/react/hooks/useGenerateCancelTransaction.tsx +17 -15
- package/src/react/hooks/useGenerateListingTransaction.tsx +16 -6
- package/src/react/hooks/useGenerateOfferTransaction.tsx +16 -7
- package/src/react/hooks/useGenerateSellTransaction.tsx +19 -15
- package/src/react/hooks/useGetReceiptFromHash.tsx +32 -3
- package/src/react/hooks/useGetTokenRanges.tsx +31 -0
- package/src/react/hooks/useGetTokenSuppliesMap.tsx +73 -0
- package/src/react/hooks/useHighestOffer.tsx +68 -4
- package/src/react/hooks/useInventory.tsx +8 -6
- package/src/react/hooks/useList1155ShopCardData.tsx +103 -0
- package/src/react/hooks/useList721ShopCardData.tsx +160 -0
- package/src/react/hooks/useListBalances.tsx +7 -10
- package/src/react/hooks/useListCollectibleActivities.tsx +89 -49
- package/src/react/hooks/useListCollectibles.tsx +78 -26
- package/src/react/hooks/useListCollectiblesPaginated.tsx +96 -63
- package/src/react/hooks/useListCollectionActivities.tsx +84 -49
- package/src/react/hooks/useListCollections.tsx +72 -18
- package/src/react/hooks/useListListingsForCollectible.tsx +90 -49
- package/src/react/hooks/useListMarketCardData.tsx +157 -0
- package/src/react/hooks/useListOffersForCollectible.tsx +11 -15
- package/src/react/hooks/useListPrimarySaleItems.ts +102 -0
- package/src/react/hooks/useListShopCardData.tsx +70 -0
- package/src/react/hooks/useListTokenMetadata.tsx +73 -0
- package/src/react/hooks/useLowestListing.tsx +68 -4
- package/src/react/hooks/useMarketCurrencies.tsx +62 -5
- package/src/react/hooks/useRoyalty.tsx +57 -13
- package/src/react/hooks/useShopCollectibleSaleData.tsx +349 -0
- package/src/react/hooks/useTokenSaleDetailsBatch.tsx +134 -0
- package/src/react/hooks/useTransferTokens.tsx +1 -1
- package/src/react/hooks/util/optimisticCancelUpdates.ts +5 -7
- package/src/react/index.ts +5 -3
- package/src/react/queries/balanceOfCollectible.ts +1 -1
- package/src/react/queries/collectible.ts +66 -0
- package/src/react/queries/collection.ts +55 -0
- package/src/react/queries/collectionDetails.ts +64 -0
- package/src/react/queries/countListingsForCollectible.ts +73 -0
- package/src/react/queries/countOfCollectables.ts +83 -0
- package/src/react/queries/countOfPrimarySaleItems.ts +48 -0
- package/src/react/queries/countOffersForCollectible.ts +73 -0
- package/src/react/queries/currency.ts +83 -0
- package/src/react/queries/floorOrder.ts +63 -0
- package/src/react/queries/getTokenSuppliesMap.ts +77 -0
- package/src/react/queries/highestOffer.ts +48 -40
- package/src/react/queries/index.ts +7 -4
- package/src/react/queries/inventory.ts +38 -4
- package/src/react/queries/listBalances.ts +14 -30
- package/src/react/queries/listCollectibleActivities.ts +97 -0
- package/src/react/queries/listCollectibles.ts +117 -47
- package/src/react/queries/listCollectiblesPaginated.ts +87 -0
- package/src/react/queries/listCollectionActivities.ts +95 -0
- package/src/react/queries/listCollections.ts +55 -10
- package/src/react/queries/listListingsForCollectible.ts +82 -0
- package/src/react/queries/listTokenMetadata.ts +47 -18
- package/src/react/queries/lowestListing.ts +48 -31
- package/src/react/queries/marketCurrencies.ts +52 -35
- package/src/react/queries/marketplaceConfig.ts +56 -81
- package/src/react/ssr/__tests__/__snapshots__/create-ssr-client.test.ts.snap +54 -6
- package/src/react/ssr/__tests__/create-ssr-client.test.ts +0 -3
- package/src/react/ssr/create-ssr-client.ts +6 -11
- package/src/react/types/query.ts +34 -0
- package/src/react/ui/components/ModelViewer.tsx +1 -1
- package/src/react/ui/components/_internals/action-button/ActionButton.tsx +47 -13
- package/src/react/ui/components/_internals/action-button/__tests__/ActionButtonBody.test.tsx +1 -1
- package/src/react/ui/components/_internals/action-button/__tests__/NonOwnerActions.test.tsx +28 -15
- package/src/react/ui/components/_internals/action-button/__tests__/OwnerActions.test.tsx +1 -1
- package/src/react/ui/components/_internals/action-button/__tests__/useActionButtonLogic.test.tsx +15 -9
- package/src/react/ui/components/_internals/action-button/components/ActionButtonBody.tsx +1 -1
- package/src/react/ui/components/_internals/action-button/components/NonOwnerActions.tsx +78 -15
- package/src/react/ui/components/_internals/action-button/components/OwnerActions.tsx +1 -1
- package/src/react/ui/components/_internals/action-button/hooks/useActionButtonLogic.ts +13 -16
- package/src/react/ui/components/_internals/action-button/store.ts +46 -18
- package/src/react/ui/components/marketplace-collectible-card/CollectibleCard.tsx +17 -0
- package/src/react/ui/components/marketplace-collectible-card/CollectibleCardSkeleton.tsx +24 -0
- package/src/react/ui/components/marketplace-collectible-card/Footer.tsx +231 -0
- package/src/react/ui/components/marketplace-collectible-card/components/ActionButtonWrapper.tsx +76 -0
- package/src/react/ui/components/marketplace-collectible-card/components/BaseCard.tsx +58 -0
- package/src/react/ui/components/marketplace-collectible-card/index.ts +3 -0
- package/src/react/ui/components/marketplace-collectible-card/types.ts +98 -0
- package/src/react/ui/components/marketplace-collectible-card/utils/formatPrice.ts +45 -0
- package/src/react/ui/components/marketplace-collectible-card/utils/index.ts +2 -0
- package/src/react/ui/components/marketplace-collectible-card/utils/supplyStatus.ts +39 -0
- package/src/react/ui/components/marketplace-collectible-card/variants/MarketCard.tsx +125 -0
- package/src/react/ui/components/marketplace-collectible-card/variants/ShopCard.tsx +102 -0
- package/src/react/ui/components/marketplace-logos/marketplace-logos.tsx +1 -1
- package/src/react/ui/components/{collectible-card/media → media}/Media.tsx +47 -26
- package/src/react/ui/components/{collectible-card/media → media}/types.ts +3 -1
- package/src/react/ui/index.ts +8 -7
- package/src/react/ui/modals/BuyModal/__tests__/BuyModalRouter.test.tsx +554 -0
- package/src/react/ui/modals/BuyModal/__tests__/ERC1155ShopModal.test.tsx +392 -0
- package/src/react/ui/modals/BuyModal/__tests__/ERC721ShopModal.test.tsx +272 -0
- package/src/react/ui/modals/BuyModal/__tests__/Modal.test.tsx.bak +112 -0
- package/src/react/ui/modals/BuyModal/__tests__/Modal1155.test.tsx +117 -13
- package/src/react/ui/modals/BuyModal/__tests__/store.test.ts +10 -7
- package/src/react/ui/modals/BuyModal/components/BuyModalRouter.tsx +157 -0
- package/src/react/ui/modals/BuyModal/components/ERC1155BuyModal.tsx +136 -0
- package/src/react/ui/modals/BuyModal/components/ERC1155QuantityModal.tsx +183 -0
- package/src/react/ui/modals/BuyModal/components/ERC1155ShopModal.tsx +121 -0
- package/src/react/ui/modals/BuyModal/components/ERC721BuyModal.tsx +85 -0
- package/src/react/ui/modals/BuyModal/components/ERC721ShopModal.tsx +86 -0
- package/src/react/ui/modals/BuyModal/components/Modal.tsx +14 -0
- package/src/react/ui/modals/BuyModal/components/types.ts +8 -0
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useCheckoutOptions.test.tsx +5 -5
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC1155Checkout.test.tsx +379 -0
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC721SalePaymentParams.test.tsx +253 -0
- package/src/react/ui/modals/BuyModal/hooks/__tests__/{useFees.test.tsx → useMarketPlatformFee.test.tsx} +10 -11
- package/src/react/ui/modals/BuyModal/hooks/useCheckoutOptions.ts +63 -45
- package/src/react/ui/modals/BuyModal/hooks/useERC1155Checkout.ts +73 -0
- package/src/react/ui/modals/BuyModal/hooks/useERC721SalePaymentParams.ts +196 -0
- package/src/react/ui/modals/BuyModal/hooks/useLoadData.ts +74 -18
- package/src/react/ui/modals/BuyModal/hooks/useMarketPlatformFee.ts +53 -0
- package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +30 -15
- package/src/react/ui/modals/BuyModal/store.ts +147 -13
- package/src/react/ui/modals/CreateListingModal/Modal.tsx +1 -1
- package/src/react/ui/modals/CreateListingModal/__tests__/Modal.test.tsx +2 -2
- package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +0 -1
- package/src/react/ui/modals/CreateListingModal/hooks/useGetTokenApproval.ts +4 -3
- package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +12 -9
- package/src/react/ui/modals/CreateListingModal/index.tsx +1 -1
- package/src/react/ui/modals/MakeOfferModal/Modal.tsx +2 -2
- package/src/react/ui/modals/MakeOfferModal/__tests__/Modal.test.tsx +1 -1
- package/src/react/ui/modals/MakeOfferModal/hooks/useGetTokenApproval.tsx +3 -2
- package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +0 -1
- package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +12 -10
- package/src/react/ui/modals/MakeOfferModal/index.tsx +1 -1
- package/src/react/ui/modals/SellModal/Modal.tsx +3 -3
- package/src/react/ui/modals/SellModal/__tests__/Modal.test.tsx +6 -4
- package/src/react/ui/modals/SellModal/hooks/useGetTokenApproval.tsx +5 -4
- package/src/react/ui/modals/SellModal/hooks/useSell.tsx +0 -1
- package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +11 -8
- package/src/react/ui/modals/SuccessfulPurchaseModal/__tests__/Modal.test.tsx +12 -8
- package/src/react/ui/modals/SuccessfulPurchaseModal/index.tsx +34 -28
- package/src/react/ui/modals/SuccessfulPurchaseModal/store.ts +71 -0
- package/src/react/ui/modals/TransferModal/_store.ts +1 -7
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TokenQuantityInput.tsx +2 -3
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +2 -2
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.test.tsx +1 -2
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +107 -112
- package/src/react/ui/modals/_internal/components/actionModal/store.ts +45 -12
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +1 -1
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +0 -1
- package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +4 -4
- package/src/react/ui/modals/_internal/components/quantityInput/QuantityInputBase.tsx +166 -0
- package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +12 -141
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/__tests__/SelectWaasFeeOptions.test.tsx +1 -1
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/_components/BalanceIndicator.tsx +1 -2
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/useWaasFeeOptionManager.tsx +0 -1
- package/src/react/ui/modals/_internal/components/switchChainModal/__tests__/SwitchChainModal.test.tsx +12 -8
- package/src/react/ui/modals/_internal/components/switchChainModal/index.tsx +35 -33
- package/src/react/ui/modals/_internal/components/switchChainModal/store.ts +61 -32
- package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +1 -1
- package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/TransactionStatusModal.test.tsx +1 -1
- package/src/react/ui/modals/_internal/components/transactionStatusModal/hooks/useTransactionStatus.ts +0 -1
- package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +1 -1
- package/src/react/ui/modals/_internal/components/waasFeeOptionsSelect/WaasFeeOptionsSelect.tsx +1 -1
- package/src/react/ui/modals/modal-provider.tsx +3 -4
- package/src/types/api-types.ts +36 -36
- package/src/types/buyModalErrors.ts +438 -0
- package/src/types/index.ts +5 -2
- package/src/types/new-marketplace-types.ts +6 -21
- package/src/types/sdk-config.ts +19 -24
- package/src/types/types.ts +17 -0
- package/src/types/waas-types.ts +1 -1
- package/src/utils/_internal/error/transaction.ts +36 -1
- package/src/utils/abi/index.ts +1 -1
- package/src/utils/abi/primary-sale/index.ts +1 -1
- package/src/utils/abi/token/index.ts +2 -1
- package/src/utils/decode/erc20.ts +1 -1
- package/src/utils/index.ts +3 -3
- package/test/const.ts +3 -1
- package/test/mocks/wallet.ts +1 -1
- package/test/test-utils.tsx +3 -4
- package/tsconfig.json +1 -1
- package/tsdown.config.ts +25 -0
- package/.changeset/fluffy-jokes-lay.md +0 -5
- package/.changeset/wise-bugs-boil.md +0 -8
- package/.ctirc +0 -32
- package/dist/alien_swap-2B65TDGT.js.map +0 -1
- package/dist/aqua-xyz-WMYQLAIS.js.map +0 -1
- package/dist/aura-V22RV5OG.js.map +0 -1
- package/dist/blur-GE5QOMCM.js.map +0 -1
- package/dist/chunk-2PSNAIAT.js +0 -1
- package/dist/chunk-2PSNAIAT.js.map +0 -1
- package/dist/chunk-5C6ZZ6WX.js +0 -130
- package/dist/chunk-5C6ZZ6WX.js.map +0 -1
- package/dist/chunk-5O44EPXZ.js +0 -207
- package/dist/chunk-5O44EPXZ.js.map +0 -1
- package/dist/chunk-6CTFVBKU.js +0 -1
- package/dist/chunk-6CTFVBKU.js.map +0 -1
- package/dist/chunk-6OPMUCGX.js +0 -42
- package/dist/chunk-6OPMUCGX.js.map +0 -1
- package/dist/chunk-FUM4OGOQ.js +0 -1027
- package/dist/chunk-FUM4OGOQ.js.map +0 -1
- package/dist/chunk-L6KWLCER.js +0 -32
- package/dist/chunk-L6KWLCER.js.map +0 -1
- package/dist/chunk-LAP2CKLN.js +0 -485
- package/dist/chunk-LAP2CKLN.js.map +0 -1
- package/dist/chunk-LECCEZAO.js +0 -11
- package/dist/chunk-LECCEZAO.js.map +0 -1
- package/dist/chunk-N7SQWS2R.js +0 -38
- package/dist/chunk-N7SQWS2R.js.map +0 -1
- package/dist/chunk-NX52D7NX.js +0 -135
- package/dist/chunk-NX52D7NX.js.map +0 -1
- package/dist/chunk-OAOONM4S.js +0 -1787
- package/dist/chunk-OAOONM4S.js.map +0 -1
- package/dist/chunk-Q3ECVC4F.js +0 -811
- package/dist/chunk-Q3ECVC4F.js.map +0 -1
- package/dist/chunk-QY52UADF.js +0 -107
- package/dist/chunk-QY52UADF.js.map +0 -1
- package/dist/chunk-TNAR3XEF.js +0 -8729
- package/dist/chunk-TNAR3XEF.js.map +0 -1
- package/dist/chunk-XABYNWXO.js +0 -549
- package/dist/chunk-XABYNWXO.js.map +0 -1
- package/dist/chunk-XX4EVWBF.js +0 -1292
- package/dist/chunk-XX4EVWBF.js.map +0 -1
- package/dist/chunk-YB5UUF2G.js +0 -11
- package/dist/chunk-YB5UUF2G.js.map +0 -1
- package/dist/chunk-YWGFI4PN.js +0 -217
- package/dist/chunk-YWGFI4PN.js.map +0 -1
- package/dist/coinbase-NLHJMGAP.js.map +0 -1
- package/dist/create-config-DLMvMTkZ.d.ts +0 -8
- package/dist/element-2LGTYYSP.js.map +0 -1
- package/dist/foundation-BPN66ZTN.js.map +0 -1
- package/dist/get-query-client-D46hbjk6.d.ts +0 -5
- package/dist/index.css.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/looks-rare-MZRSOPT4.js.map +0 -1
- package/dist/magic-eden-PUBL6KWW.js.map +0 -1
- package/dist/manifold-GA445YJ6.js.map +0 -1
- package/dist/marketCurrencies-enNVYwBk.d.ts +0 -277
- package/dist/marketplace.gen-D24veUQs.d.ts +0 -1073
- package/dist/marketplaceConfig-BwNAbLPw.d.ts +0 -21
- package/dist/mintify-UMC5PTKC.js.map +0 -1
- package/dist/new-marketplace-types-BCw19X9S.d.ts +0 -102
- package/dist/nftx-AX3CY3IE.js.map +0 -1
- package/dist/okx-GNVLAE2R.js.map +0 -1
- package/dist/open-sea-KI43GVEB.js.map +0 -1
- package/dist/rarible-2J3MMZJ7.js.map +0 -1
- package/dist/react/_internal/api/index.js.map +0 -1
- package/dist/react/_internal/databeat/index.css +0 -2764
- package/dist/react/_internal/databeat/index.css.map +0 -1
- package/dist/react/_internal/databeat/index.js.map +0 -1
- package/dist/react/_internal/index.js.map +0 -1
- package/dist/react/_internal/wagmi/index.js.map +0 -1
- package/dist/react/hooks/index.css +0 -2764
- package/dist/react/hooks/index.css.map +0 -1
- package/dist/react/hooks/index.js.map +0 -1
- package/dist/react/hooks/options/index.js.map +0 -1
- package/dist/react/index.css +0 -2764
- package/dist/react/index.css.map +0 -1
- package/dist/react/index.js.map +0 -1
- package/dist/react/queries/index.js.map +0 -1
- package/dist/react/ui/components/collectible-card/index.css +0 -2764
- package/dist/react/ui/components/collectible-card/index.css.map +0 -1
- package/dist/react/ui/components/collectible-card/index.d.ts +0 -71
- package/dist/react/ui/components/collectible-card/index.js +0 -27
- package/dist/react/ui/components/collectible-card/index.js.map +0 -1
- package/dist/react/ui/components/marketplace-logos/index.js.map +0 -1
- package/dist/react/ui/icons/index.js.map +0 -1
- package/dist/react/ui/index.css +0 -2764
- package/dist/react/ui/index.css.map +0 -1
- package/dist/react/ui/index.js.map +0 -1
- package/dist/react/ui/modals/_internal/components/actionModal/index.css +0 -2764
- package/dist/react/ui/modals/_internal/components/actionModal/index.css.map +0 -1
- package/dist/react/ui/modals/_internal/components/actionModal/index.js.map +0 -1
- package/dist/sdk-config-qorA0TgF.d.ts +0 -165
- package/dist/sequence-TGLUFEPQ.js.map +0 -1
- package/dist/services-WrshxCqc.d.ts +0 -23
- package/dist/sudo-swap-M2O6E3TE.js.map +0 -1
- package/dist/super-rare-UU2U4LIN.js.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/useCollection-YAdXfVO7.d.ts +0 -61
- package/dist/utils/abi/index.js.map +0 -1
- package/dist/utils/abi/marketplace/index.js.map +0 -1
- package/dist/utils/abi/primary-sale/index.js.map +0 -1
- package/dist/utils/abi/token/index.js.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/dist/x2y2-3W5BBMZC.js.map +0 -1
- package/dist/zora-6EY6FUH6.js.map +0 -1
- package/postcss.config.mjs +0 -5
- package/src/react/_internal/api/zod-schema.ts +0 -678
- package/src/react/hooks/__tests__/__snapshots__/useRoyaltyPercentage.test.tsx.snap +0 -8
- package/src/react/hooks/options/collectionOptions.ts +0 -41
- package/src/react/hooks/useCheckoutOptions.tsx +0 -65
- package/src/react/hooks/useCollectionDetails.tsx +0 -35
- package/src/react/hooks/useGetTokenSuppliesMap.ts +0 -28
- package/src/react/hooks/useListTokenMetadata.ts +0 -19
- package/src/react/queries/getTokenSupplies.ts +0 -38
- package/src/react/ui/components/collectible-card/CollectibleCard.tsx +0 -170
- package/src/react/ui/components/collectible-card/Footer.tsx +0 -157
- package/src/react/ui/components/collectible-card/__tests__/CollectibleCard.test.tsx +0 -94
- package/src/react/ui/components/collectible-card/__tests__/Footer.test.tsx +0 -136
- package/src/react/ui/components/collectible-card/__tests__/Media.test.tsx +0 -264
- package/src/react/ui/components/collectible-card/index.ts +0 -2
- package/src/react/ui/modals/BuyModal/ERC1155QuantityModal.tsx +0 -130
- package/src/react/ui/modals/BuyModal/Modal.tsx +0 -124
- package/src/react/ui/modals/BuyModal/__tests__/Modal.test.tsx +0 -104
- package/src/react/ui/modals/BuyModal/hooks/useFees.ts +0 -39
- package/src/react/ui/modals/SuccessfulPurchaseModal/_store.ts +0 -72
- package/tsconfig.tsbuildinfo +0 -1
- package/tsup.config.ts +0 -23
- /package/src/react/ui/components/{collectible-card/media → media}/MediaSkeleton.tsx +0 -0
- /package/src/react/ui/components/{collectible-card/media → media}/utils.ts +0 -0
|
@@ -1,3652 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
type FeeOption = {
|
|
20
|
-
gasLimit: number;
|
|
21
|
-
to: string;
|
|
22
|
-
token: {
|
|
23
|
-
chainId: number;
|
|
24
|
-
contractAddress: string | null;
|
|
25
|
-
decimals: number;
|
|
26
|
-
logoURL: string;
|
|
27
|
-
name: string;
|
|
28
|
-
symbol: string;
|
|
29
|
-
tokenID: string | null;
|
|
30
|
-
type: string;
|
|
31
|
-
};
|
|
32
|
-
value: string;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
declare enum AutoSelectFeeOptionError {
|
|
36
|
-
UserNotConnected = "User not connected",
|
|
37
|
-
NoOptionsProvided = "No options provided",
|
|
38
|
-
FailedToCheckBalances = "Failed to check balances",
|
|
39
|
-
InsufficientBalanceForAnyFeeOption = "Insufficient balance for any fee option"
|
|
40
|
-
}
|
|
41
|
-
type UseAutoSelectFeeOptionArgs = {
|
|
42
|
-
pendingFeeOptionConfirmation: {
|
|
43
|
-
id: string;
|
|
44
|
-
options: FeeOption[] | undefined;
|
|
45
|
-
chainId: number;
|
|
46
|
-
};
|
|
47
|
-
enabled?: boolean;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* A React hook that automatically selects the first fee option for which the user has sufficient balance.
|
|
51
|
-
*
|
|
52
|
-
* @param {Object} params.pendingFeeOptionConfirmation - Configuration for fee option selection
|
|
53
|
-
*
|
|
54
|
-
* @returns {Promise<{
|
|
55
|
-
* selectedOption: FeeOption | null,
|
|
56
|
-
* error: AutoSelectFeeOptionError | null,
|
|
57
|
-
* isLoading?: boolean
|
|
58
|
-
* }>} A promise that resolves to an object containing:
|
|
59
|
-
* - selectedOption: The first fee option with sufficient balance, or null if none found
|
|
60
|
-
* - error: Error message if selection fails, null otherwise
|
|
61
|
-
* - isLoading: True while checking balances
|
|
62
|
-
*
|
|
63
|
-
* @throws {AutoSelectFeeOptionError} Possible errors:
|
|
64
|
-
* - UserNotConnected: When no wallet is connected
|
|
65
|
-
* - NoOptionsProvided: When fee options array is undefined
|
|
66
|
-
* - FailedToCheckBalances: When balance checking fails
|
|
67
|
-
* - InsufficientBalanceForAnyFeeOption: When user has insufficient balance for all options
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* ```tsx
|
|
71
|
-
* function MyComponent() {
|
|
72
|
-
* const [pendingFeeOptionConfirmation, confirmPendingFeeOption] = useWaasFeeOptions();
|
|
73
|
-
*
|
|
74
|
-
* const autoSelectOptionPromise = useAutoSelectFeeOption({
|
|
75
|
-
* pendingFeeOptionConfirmation: pendingFeeOptionConfirmation
|
|
76
|
-
* ? {
|
|
77
|
-
* id: pendingFeeOptionConfirmation.id,
|
|
78
|
-
* options: pendingFeeOptionConfirmation.options,
|
|
79
|
-
* chainId: 1
|
|
80
|
-
* }
|
|
81
|
-
* : {
|
|
82
|
-
* id: '',
|
|
83
|
-
* options: undefined,
|
|
84
|
-
* chainId: 1
|
|
85
|
-
* }
|
|
86
|
-
* });
|
|
87
|
-
*
|
|
88
|
-
* useEffect(() => {
|
|
89
|
-
* autoSelectOptionPromise.then((result) => {
|
|
90
|
-
* if (result.isLoading) {
|
|
91
|
-
* console.log('Checking balances...');
|
|
92
|
-
* return;
|
|
93
|
-
* }
|
|
94
|
-
*
|
|
95
|
-
* if (result.error) {
|
|
96
|
-
* console.error('Failed to select fee option:', result.error);
|
|
97
|
-
* return;
|
|
98
|
-
* }
|
|
99
|
-
*
|
|
100
|
-
* if (pendingFeeOptionConfirmation?.id && result.selectedOption) {
|
|
101
|
-
* confirmPendingFeeOption(
|
|
102
|
-
* pendingFeeOptionConfirmation.id,
|
|
103
|
-
* result.selectedOption.token.contractAddress
|
|
104
|
-
* );
|
|
105
|
-
* }
|
|
106
|
-
* });
|
|
107
|
-
* }, [autoSelectOptionPromise, confirmPendingFeeOption, pendingFeeOptionConfirmation]);
|
|
108
|
-
*
|
|
109
|
-
* return <div>...</div>;
|
|
110
|
-
* }
|
|
111
|
-
* ```
|
|
112
|
-
*/
|
|
113
|
-
declare function useAutoSelectFeeOption({ pendingFeeOptionConfirmation, enabled, }: UseAutoSelectFeeOptionArgs): Promise<{
|
|
114
|
-
selectedOption: null;
|
|
115
|
-
error: AutoSelectFeeOptionError;
|
|
116
|
-
isLoading?: undefined;
|
|
117
|
-
} | {
|
|
118
|
-
selectedOption: null;
|
|
119
|
-
error: null;
|
|
120
|
-
isLoading: boolean;
|
|
121
|
-
} | {
|
|
122
|
-
selectedOption: FeeOption;
|
|
123
|
-
error: null;
|
|
124
|
-
isLoading?: undefined;
|
|
125
|
-
}>;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Hook to fetch the balance of a specific collectible for a user
|
|
129
|
-
*
|
|
130
|
-
* @param args - The arguments for fetching the balance
|
|
131
|
-
* @returns Query result containing the balance data
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* ```tsx
|
|
135
|
-
* const { data, isLoading, error } = useBalanceOfCollectible({
|
|
136
|
-
* collectionAddress: '0x123...',
|
|
137
|
-
* collectableId: '1',
|
|
138
|
-
* userAddress: '0x456...',
|
|
139
|
-
* chainId: 1,
|
|
140
|
-
* query: {
|
|
141
|
-
* enabled: true,
|
|
142
|
-
* refetchInterval: 10000,
|
|
143
|
-
* }
|
|
144
|
-
* });
|
|
145
|
-
* ```
|
|
146
|
-
*/
|
|
147
|
-
declare function useBalanceOfCollectible(args: UseBalanceOfCollectibleArgs): _tanstack_react_query.UseQueryResult<_0xsequence_indexer.TokenBalance, Error>;
|
|
148
|
-
|
|
149
|
-
declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<{
|
|
150
|
-
chainId: z.ZodNumber;
|
|
151
|
-
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
152
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
153
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
-
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
enabled?: boolean | undefined;
|
|
156
|
-
}, {
|
|
157
|
-
enabled?: boolean | undefined;
|
|
158
|
-
}>>;
|
|
159
|
-
} & {
|
|
160
|
-
filter: z.ZodObject<{
|
|
161
|
-
includeEmpty: z.ZodBoolean;
|
|
162
|
-
searchText: z.ZodOptional<z.ZodString>;
|
|
163
|
-
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
164
|
-
name: z.ZodString;
|
|
165
|
-
type: z.ZodNativeEnum<typeof PropertyType>;
|
|
166
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
167
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
168
|
-
values: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
169
|
-
}, "strip", z.ZodTypeAny, {
|
|
170
|
-
type: PropertyType;
|
|
171
|
-
name: string;
|
|
172
|
-
values?: any[] | undefined;
|
|
173
|
-
min?: number | undefined;
|
|
174
|
-
max?: number | undefined;
|
|
175
|
-
}, {
|
|
176
|
-
type: PropertyType;
|
|
177
|
-
name: string;
|
|
178
|
-
values?: any[] | undefined;
|
|
179
|
-
min?: number | undefined;
|
|
180
|
-
max?: number | undefined;
|
|
181
|
-
}>, "many">>;
|
|
182
|
-
marketplaces: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
|
|
183
|
-
inAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
184
|
-
notInAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
185
|
-
ordersCreatedBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
186
|
-
ordersNotCreatedBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
187
|
-
}, "strip", z.ZodTypeAny, {
|
|
188
|
-
includeEmpty: boolean;
|
|
189
|
-
searchText?: string | undefined;
|
|
190
|
-
properties?: {
|
|
191
|
-
type: PropertyType;
|
|
192
|
-
name: string;
|
|
193
|
-
values?: any[] | undefined;
|
|
194
|
-
min?: number | undefined;
|
|
195
|
-
max?: number | undefined;
|
|
196
|
-
}[] | undefined;
|
|
197
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
198
|
-
inAccounts?: string[] | undefined;
|
|
199
|
-
notInAccounts?: string[] | undefined;
|
|
200
|
-
ordersCreatedBy?: string[] | undefined;
|
|
201
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
202
|
-
}, {
|
|
203
|
-
includeEmpty: boolean;
|
|
204
|
-
searchText?: string | undefined;
|
|
205
|
-
properties?: {
|
|
206
|
-
type: PropertyType;
|
|
207
|
-
name: string;
|
|
208
|
-
values?: any[] | undefined;
|
|
209
|
-
min?: number | undefined;
|
|
210
|
-
max?: number | undefined;
|
|
211
|
-
}[] | undefined;
|
|
212
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
213
|
-
inAccounts?: string[] | undefined;
|
|
214
|
-
notInAccounts?: string[] | undefined;
|
|
215
|
-
ordersCreatedBy?: string[] | undefined;
|
|
216
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
217
|
-
}>;
|
|
218
|
-
side: z.ZodNativeEnum<typeof OrderSide>;
|
|
219
|
-
}, "strip", z.ZodTypeAny, {
|
|
220
|
-
filter: {
|
|
221
|
-
includeEmpty: boolean;
|
|
222
|
-
searchText?: string | undefined;
|
|
223
|
-
properties?: {
|
|
224
|
-
type: PropertyType;
|
|
225
|
-
name: string;
|
|
226
|
-
values?: any[] | undefined;
|
|
227
|
-
min?: number | undefined;
|
|
228
|
-
max?: number | undefined;
|
|
229
|
-
}[] | undefined;
|
|
230
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
231
|
-
inAccounts?: string[] | undefined;
|
|
232
|
-
notInAccounts?: string[] | undefined;
|
|
233
|
-
ordersCreatedBy?: string[] | undefined;
|
|
234
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
235
|
-
};
|
|
236
|
-
chainId: number;
|
|
237
|
-
collectionAddress: `0x${string}`;
|
|
238
|
-
side: OrderSide;
|
|
239
|
-
query?: {
|
|
240
|
-
enabled?: boolean | undefined;
|
|
241
|
-
} | undefined;
|
|
242
|
-
}, {
|
|
243
|
-
filter: {
|
|
244
|
-
includeEmpty: boolean;
|
|
245
|
-
searchText?: string | undefined;
|
|
246
|
-
properties?: {
|
|
247
|
-
type: PropertyType;
|
|
248
|
-
name: string;
|
|
249
|
-
values?: any[] | undefined;
|
|
250
|
-
min?: number | undefined;
|
|
251
|
-
max?: number | undefined;
|
|
252
|
-
}[] | undefined;
|
|
253
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
254
|
-
inAccounts?: string[] | undefined;
|
|
255
|
-
notInAccounts?: string[] | undefined;
|
|
256
|
-
ordersCreatedBy?: string[] | undefined;
|
|
257
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
258
|
-
};
|
|
259
|
-
chainId: number;
|
|
260
|
-
collectionAddress: string;
|
|
261
|
-
side: OrderSide;
|
|
262
|
-
query?: {
|
|
263
|
-
enabled?: boolean | undefined;
|
|
264
|
-
} | undefined;
|
|
265
|
-
}>, z.ZodObject<{
|
|
266
|
-
chainId: z.ZodNumber;
|
|
267
|
-
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
268
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
269
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
-
}, "strip", z.ZodTypeAny, {
|
|
271
|
-
enabled?: boolean | undefined;
|
|
272
|
-
}, {
|
|
273
|
-
enabled?: boolean | undefined;
|
|
274
|
-
}>>;
|
|
275
|
-
} & {
|
|
276
|
-
filter: z.ZodUndefined;
|
|
277
|
-
side: z.ZodUndefined;
|
|
278
|
-
}, "strip", z.ZodTypeAny, {
|
|
279
|
-
chainId: number;
|
|
280
|
-
collectionAddress: `0x${string}`;
|
|
281
|
-
filter?: undefined;
|
|
282
|
-
query?: {
|
|
283
|
-
enabled?: boolean | undefined;
|
|
284
|
-
} | undefined;
|
|
285
|
-
side?: undefined;
|
|
286
|
-
}, {
|
|
287
|
-
chainId: number;
|
|
288
|
-
collectionAddress: string;
|
|
289
|
-
filter?: undefined;
|
|
290
|
-
query?: {
|
|
291
|
-
enabled?: boolean | undefined;
|
|
292
|
-
} | undefined;
|
|
293
|
-
side?: undefined;
|
|
294
|
-
}>]>;
|
|
295
|
-
type UseCountOfCollectablesArgs = z.infer<typeof UseCountOfCollectableSchema>;
|
|
296
|
-
type UseContOfCollectableReturn = Awaited<ReturnType<typeof fetchCountOfCollectables>>;
|
|
297
|
-
declare const fetchCountOfCollectables: (args: UseCountOfCollectablesArgs, config: SdkConfig) => Promise<number>;
|
|
298
|
-
declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<number, Error, number, ("collectable" | "counts" | {
|
|
299
|
-
filter: {
|
|
300
|
-
includeEmpty: boolean;
|
|
301
|
-
searchText?: string | undefined;
|
|
302
|
-
properties?: {
|
|
303
|
-
type: PropertyType;
|
|
304
|
-
name: string;
|
|
305
|
-
values?: any[] | undefined;
|
|
306
|
-
min?: number | undefined;
|
|
307
|
-
max?: number | undefined;
|
|
308
|
-
}[] | undefined;
|
|
309
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
310
|
-
inAccounts?: string[] | undefined;
|
|
311
|
-
notInAccounts?: string[] | undefined;
|
|
312
|
-
ordersCreatedBy?: string[] | undefined;
|
|
313
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
314
|
-
};
|
|
315
|
-
chainId: number;
|
|
316
|
-
collectionAddress: `0x${string}`;
|
|
317
|
-
side: OrderSide;
|
|
318
|
-
query?: {
|
|
319
|
-
enabled?: boolean | undefined;
|
|
320
|
-
} | undefined;
|
|
321
|
-
} | {
|
|
322
|
-
chainId: number;
|
|
323
|
-
collectionAddress: `0x${string}`;
|
|
324
|
-
filter?: undefined;
|
|
325
|
-
query?: {
|
|
326
|
-
enabled?: boolean | undefined;
|
|
327
|
-
} | undefined;
|
|
328
|
-
side?: undefined;
|
|
329
|
-
})[]>, "queryFn"> & {
|
|
330
|
-
queryFn?: _tanstack_react_query.QueryFunction<number, ("collectable" | "counts" | {
|
|
331
|
-
filter: {
|
|
332
|
-
includeEmpty: boolean;
|
|
333
|
-
searchText?: string | undefined;
|
|
334
|
-
properties?: {
|
|
335
|
-
type: PropertyType;
|
|
336
|
-
name: string;
|
|
337
|
-
values?: any[] | undefined;
|
|
338
|
-
min?: number | undefined;
|
|
339
|
-
max?: number | undefined;
|
|
340
|
-
}[] | undefined;
|
|
341
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
342
|
-
inAccounts?: string[] | undefined;
|
|
343
|
-
notInAccounts?: string[] | undefined;
|
|
344
|
-
ordersCreatedBy?: string[] | undefined;
|
|
345
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
346
|
-
};
|
|
347
|
-
chainId: number;
|
|
348
|
-
collectionAddress: `0x${string}`;
|
|
349
|
-
side: OrderSide;
|
|
350
|
-
query?: {
|
|
351
|
-
enabled?: boolean | undefined;
|
|
352
|
-
} | undefined;
|
|
353
|
-
} | {
|
|
354
|
-
chainId: number;
|
|
355
|
-
collectionAddress: `0x${string}`;
|
|
356
|
-
filter?: undefined;
|
|
357
|
-
query?: {
|
|
358
|
-
enabled?: boolean | undefined;
|
|
359
|
-
} | undefined;
|
|
360
|
-
side?: undefined;
|
|
361
|
-
})[], never> | undefined;
|
|
362
|
-
} & {
|
|
363
|
-
queryKey: ("collectable" | "counts" | {
|
|
364
|
-
filter: {
|
|
365
|
-
includeEmpty: boolean;
|
|
366
|
-
searchText?: string | undefined;
|
|
367
|
-
properties?: {
|
|
368
|
-
type: PropertyType;
|
|
369
|
-
name: string;
|
|
370
|
-
values?: any[] | undefined;
|
|
371
|
-
min?: number | undefined;
|
|
372
|
-
max?: number | undefined;
|
|
373
|
-
}[] | undefined;
|
|
374
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
375
|
-
inAccounts?: string[] | undefined;
|
|
376
|
-
notInAccounts?: string[] | undefined;
|
|
377
|
-
ordersCreatedBy?: string[] | undefined;
|
|
378
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
379
|
-
};
|
|
380
|
-
chainId: number;
|
|
381
|
-
collectionAddress: `0x${string}`;
|
|
382
|
-
side: OrderSide;
|
|
383
|
-
query?: {
|
|
384
|
-
enabled?: boolean | undefined;
|
|
385
|
-
} | undefined;
|
|
386
|
-
} | {
|
|
387
|
-
chainId: number;
|
|
388
|
-
collectionAddress: `0x${string}`;
|
|
389
|
-
filter?: undefined;
|
|
390
|
-
query?: {
|
|
391
|
-
enabled?: boolean | undefined;
|
|
392
|
-
} | undefined;
|
|
393
|
-
side?: undefined;
|
|
394
|
-
})[] & {
|
|
395
|
-
[dataTagSymbol]: number;
|
|
396
|
-
[dataTagErrorSymbol]: Error;
|
|
397
|
-
};
|
|
398
|
-
};
|
|
399
|
-
declare const useCountOfCollectables: (args: UseCountOfCollectablesArgs) => _tanstack_react_query.UseQueryResult<number, Error>;
|
|
400
|
-
|
|
401
|
-
declare const UseCollectibleSchema: z.ZodObject<{
|
|
402
|
-
chainId: z.ZodNumber;
|
|
403
|
-
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
404
|
-
collectibleId: z.ZodOptional<z.ZodString>;
|
|
405
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
406
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
407
|
-
}, "strip", z.ZodTypeAny, {
|
|
408
|
-
enabled?: boolean | undefined;
|
|
409
|
-
}, {
|
|
410
|
-
enabled?: boolean | undefined;
|
|
411
|
-
}>>;
|
|
412
|
-
}, "strip", z.ZodTypeAny, {
|
|
413
|
-
chainId: number;
|
|
414
|
-
collectionAddress: `0x${string}`;
|
|
415
|
-
query?: {
|
|
416
|
-
enabled?: boolean | undefined;
|
|
417
|
-
} | undefined;
|
|
418
|
-
collectibleId?: string | undefined;
|
|
419
|
-
}, {
|
|
420
|
-
chainId: number;
|
|
421
|
-
collectionAddress: string;
|
|
422
|
-
query?: {
|
|
423
|
-
enabled?: boolean | undefined;
|
|
424
|
-
} | undefined;
|
|
425
|
-
collectibleId?: string | undefined;
|
|
426
|
-
}>;
|
|
427
|
-
type UseCollectibleArgs = z.infer<typeof UseCollectibleSchema>;
|
|
428
|
-
type UseCollectibleReturn = Awaited<ReturnType<typeof fetchCollectible>>;
|
|
429
|
-
declare const fetchCollectible: (args: UseCollectibleArgs, config: SdkConfig) => Promise<_0xsequence_metadata.TokenMetadata>;
|
|
430
|
-
declare const collectibleOptions: (args: UseCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_metadata.TokenMetadata, Error, _0xsequence_metadata.TokenMetadata, ("collectable" | "details" | SdkConfig | {
|
|
431
|
-
chainId: number;
|
|
432
|
-
collectionAddress: `0x${string}`;
|
|
433
|
-
query?: {
|
|
434
|
-
enabled?: boolean | undefined;
|
|
435
|
-
} | undefined;
|
|
436
|
-
collectibleId?: string | undefined;
|
|
437
|
-
})[]>, "queryFn"> & {
|
|
438
|
-
queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.TokenMetadata, ("collectable" | "details" | SdkConfig | {
|
|
439
|
-
chainId: number;
|
|
440
|
-
collectionAddress: `0x${string}`;
|
|
441
|
-
query?: {
|
|
442
|
-
enabled?: boolean | undefined;
|
|
443
|
-
} | undefined;
|
|
444
|
-
collectibleId?: string | undefined;
|
|
445
|
-
})[], never> | undefined;
|
|
446
|
-
} & {
|
|
447
|
-
queryKey: ("collectable" | "details" | SdkConfig | {
|
|
448
|
-
chainId: number;
|
|
449
|
-
collectionAddress: `0x${string}`;
|
|
450
|
-
query?: {
|
|
451
|
-
enabled?: boolean | undefined;
|
|
452
|
-
} | undefined;
|
|
453
|
-
collectibleId?: string | undefined;
|
|
454
|
-
})[] & {
|
|
455
|
-
[dataTagSymbol]: _0xsequence_metadata.TokenMetadata;
|
|
456
|
-
[dataTagErrorSymbol]: Error;
|
|
457
|
-
};
|
|
458
|
-
};
|
|
459
|
-
declare const useCollectible: (args: UseCollectibleArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.TokenMetadata, Error>;
|
|
460
|
-
|
|
461
|
-
declare const filterSchema: z.ZodObject<{
|
|
462
|
-
accountAddresses: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
463
|
-
contractWhitelist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">>;
|
|
464
|
-
omitNativeBalances: z.ZodBoolean;
|
|
465
|
-
}, "strip", z.ZodTypeAny, {
|
|
466
|
-
accountAddresses: `0x${string}`[];
|
|
467
|
-
omitNativeBalances: boolean;
|
|
468
|
-
contractWhitelist?: `0x${string}`[] | undefined;
|
|
469
|
-
}, {
|
|
470
|
-
accountAddresses: string[];
|
|
471
|
-
omitNativeBalances: boolean;
|
|
472
|
-
contractWhitelist?: string[] | undefined;
|
|
473
|
-
}>;
|
|
474
|
-
declare const useCollectionBalanceDetailsArgsSchema: z.ZodObject<{
|
|
475
|
-
chainId: z.ZodNumber;
|
|
476
|
-
filter: z.ZodObject<{
|
|
477
|
-
accountAddresses: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
478
|
-
contractWhitelist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">>;
|
|
479
|
-
omitNativeBalances: z.ZodBoolean;
|
|
480
|
-
}, "strip", z.ZodTypeAny, {
|
|
481
|
-
accountAddresses: `0x${string}`[];
|
|
482
|
-
omitNativeBalances: boolean;
|
|
483
|
-
contractWhitelist?: `0x${string}`[] | undefined;
|
|
484
|
-
}, {
|
|
485
|
-
accountAddresses: string[];
|
|
486
|
-
omitNativeBalances: boolean;
|
|
487
|
-
contractWhitelist?: string[] | undefined;
|
|
488
|
-
}>;
|
|
489
|
-
query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
490
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
491
|
-
}, "strip", z.ZodTypeAny, {
|
|
492
|
-
enabled?: boolean | undefined;
|
|
493
|
-
}, {
|
|
494
|
-
enabled?: boolean | undefined;
|
|
495
|
-
}>>>;
|
|
496
|
-
}, "strip", z.ZodTypeAny, {
|
|
497
|
-
filter: {
|
|
498
|
-
accountAddresses: `0x${string}`[];
|
|
499
|
-
omitNativeBalances: boolean;
|
|
500
|
-
contractWhitelist?: `0x${string}`[] | undefined;
|
|
501
|
-
};
|
|
502
|
-
chainId: number;
|
|
503
|
-
query?: {
|
|
504
|
-
enabled?: boolean | undefined;
|
|
505
|
-
} | undefined;
|
|
506
|
-
}, {
|
|
507
|
-
filter: {
|
|
508
|
-
accountAddresses: string[];
|
|
509
|
-
omitNativeBalances: boolean;
|
|
510
|
-
contractWhitelist?: string[] | undefined;
|
|
511
|
-
};
|
|
512
|
-
chainId: number;
|
|
513
|
-
query?: {
|
|
514
|
-
enabled?: boolean | undefined;
|
|
515
|
-
} | undefined;
|
|
516
|
-
}>;
|
|
517
|
-
type CollectionBalanceFilter = z.infer<typeof filterSchema>;
|
|
518
|
-
type UseCollectionBalanceDetailsArgs = z.input<typeof useCollectionBalanceDetailsArgsSchema>;
|
|
519
|
-
declare const collectionBalanceDetailsOptions: (args: UseCollectionBalanceDetailsArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetTokenBalancesDetailsReturn, Error, GetTokenBalancesDetailsReturn, ("balances" | "collectionBalanceDetails" | SdkConfig | {
|
|
520
|
-
filter: {
|
|
521
|
-
accountAddresses: string[];
|
|
522
|
-
omitNativeBalances: boolean;
|
|
523
|
-
contractWhitelist?: string[] | undefined;
|
|
524
|
-
};
|
|
525
|
-
chainId: number;
|
|
526
|
-
query?: {
|
|
527
|
-
enabled?: boolean | undefined;
|
|
528
|
-
} | undefined;
|
|
529
|
-
})[]>, "queryFn"> & {
|
|
530
|
-
queryFn?: _tanstack_react_query.QueryFunction<GetTokenBalancesDetailsReturn, ("balances" | "collectionBalanceDetails" | SdkConfig | {
|
|
531
|
-
filter: {
|
|
532
|
-
accountAddresses: string[];
|
|
533
|
-
omitNativeBalances: boolean;
|
|
534
|
-
contractWhitelist?: string[] | undefined;
|
|
535
|
-
};
|
|
536
|
-
chainId: number;
|
|
537
|
-
query?: {
|
|
538
|
-
enabled?: boolean | undefined;
|
|
539
|
-
} | undefined;
|
|
540
|
-
})[], never> | undefined;
|
|
541
|
-
} & {
|
|
542
|
-
queryKey: ("balances" | "collectionBalanceDetails" | SdkConfig | {
|
|
543
|
-
filter: {
|
|
544
|
-
accountAddresses: string[];
|
|
545
|
-
omitNativeBalances: boolean;
|
|
546
|
-
contractWhitelist?: string[] | undefined;
|
|
547
|
-
};
|
|
548
|
-
chainId: number;
|
|
549
|
-
query?: {
|
|
550
|
-
enabled?: boolean | undefined;
|
|
551
|
-
} | undefined;
|
|
552
|
-
})[] & {
|
|
553
|
-
[dataTagSymbol]: GetTokenBalancesDetailsReturn;
|
|
554
|
-
[dataTagErrorSymbol]: Error;
|
|
555
|
-
};
|
|
556
|
-
};
|
|
557
|
-
declare const useCollectionBalanceDetails: (args: UseCollectionBalanceDetailsArgs) => _tanstack_react_query.UseQueryResult<GetTokenBalancesDetailsReturn, Error>;
|
|
558
|
-
|
|
559
|
-
declare const UseComparePricesArgsSchema: z.ZodObject<{
|
|
560
|
-
chainId: z.ZodNumber;
|
|
561
|
-
priceAmountRaw: z.ZodString;
|
|
562
|
-
priceCurrencyAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
563
|
-
compareToPriceAmountRaw: z.ZodString;
|
|
564
|
-
compareToPriceCurrencyAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
565
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
566
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
567
|
-
}, "strip", z.ZodTypeAny, {
|
|
568
|
-
enabled?: boolean | undefined;
|
|
569
|
-
}, {
|
|
570
|
-
enabled?: boolean | undefined;
|
|
571
|
-
}>>;
|
|
572
|
-
}, "strip", z.ZodTypeAny, {
|
|
573
|
-
chainId: number;
|
|
574
|
-
priceCurrencyAddress: `0x${string}`;
|
|
575
|
-
priceAmountRaw: string;
|
|
576
|
-
compareToPriceAmountRaw: string;
|
|
577
|
-
compareToPriceCurrencyAddress: `0x${string}`;
|
|
578
|
-
query?: {
|
|
579
|
-
enabled?: boolean | undefined;
|
|
580
|
-
} | undefined;
|
|
581
|
-
}, {
|
|
582
|
-
chainId: number;
|
|
583
|
-
priceCurrencyAddress: string;
|
|
584
|
-
priceAmountRaw: string;
|
|
585
|
-
compareToPriceAmountRaw: string;
|
|
586
|
-
compareToPriceCurrencyAddress: string;
|
|
587
|
-
query?: {
|
|
588
|
-
enabled?: boolean | undefined;
|
|
589
|
-
} | undefined;
|
|
590
|
-
}>;
|
|
591
|
-
type UseComparePricesArgs = z.input<typeof UseComparePricesArgsSchema>;
|
|
592
|
-
type UseComparePricesReturn = {
|
|
593
|
-
percentageDifference: number;
|
|
594
|
-
percentageDifferenceFormatted: string;
|
|
595
|
-
status: 'above' | 'same' | 'below';
|
|
596
|
-
};
|
|
597
|
-
declare const comparePricesOptions: (args: UseComparePricesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<UseComparePricesReturn, Error, UseComparePricesReturn, (string | {
|
|
598
|
-
chainId: number;
|
|
599
|
-
priceCurrencyAddress: string;
|
|
600
|
-
priceAmountRaw: string;
|
|
601
|
-
compareToPriceAmountRaw: string;
|
|
602
|
-
compareToPriceCurrencyAddress: string;
|
|
603
|
-
query?: {
|
|
604
|
-
enabled?: boolean | undefined;
|
|
605
|
-
} | undefined;
|
|
606
|
-
})[]>, "queryFn"> & {
|
|
607
|
-
queryFn?: _tanstack_react_query.QueryFunction<UseComparePricesReturn, (string | {
|
|
608
|
-
chainId: number;
|
|
609
|
-
priceCurrencyAddress: string;
|
|
610
|
-
priceAmountRaw: string;
|
|
611
|
-
compareToPriceAmountRaw: string;
|
|
612
|
-
compareToPriceCurrencyAddress: string;
|
|
613
|
-
query?: {
|
|
614
|
-
enabled?: boolean | undefined;
|
|
615
|
-
} | undefined;
|
|
616
|
-
})[], never> | undefined;
|
|
617
|
-
} & {
|
|
618
|
-
queryKey: (string | {
|
|
619
|
-
chainId: number;
|
|
620
|
-
priceCurrencyAddress: string;
|
|
621
|
-
priceAmountRaw: string;
|
|
622
|
-
compareToPriceAmountRaw: string;
|
|
623
|
-
compareToPriceCurrencyAddress: string;
|
|
624
|
-
query?: {
|
|
625
|
-
enabled?: boolean | undefined;
|
|
626
|
-
} | undefined;
|
|
627
|
-
})[] & {
|
|
628
|
-
[dataTagSymbol]: UseComparePricesReturn;
|
|
629
|
-
[dataTagErrorSymbol]: Error;
|
|
630
|
-
};
|
|
631
|
-
};
|
|
632
|
-
/**
|
|
633
|
-
* Hook to compare prices between different currencies by converting both to USD
|
|
634
|
-
* @param args - The arguments for the hook
|
|
635
|
-
* @returns The percentage difference between the two prices
|
|
636
|
-
* @example
|
|
637
|
-
* ```ts
|
|
638
|
-
* const { data } = useComparePrices({
|
|
639
|
-
* chainId: 1,
|
|
640
|
-
* priceAmountRaw: "1000000000000000000",
|
|
641
|
-
* priceCurrencyAddress: "0x0000000000000000000000000000000000000000",
|
|
642
|
-
* });
|
|
643
|
-
*
|
|
644
|
-
* console.log(data);
|
|
645
|
-
* // { percentageDifference: 10, percentageDifferenceFormatted: "10.00", isAbove: true, isSame: false, isBelow: false }
|
|
646
|
-
* ```
|
|
647
|
-
*/
|
|
648
|
-
declare const useComparePrices: (args: UseComparePricesArgs) => _tanstack_react_query.UseQueryResult<UseComparePricesReturn, Error>;
|
|
649
|
-
|
|
650
|
-
declare function useConfig(): SdkConfig;
|
|
651
|
-
|
|
652
|
-
declare const UseConvertPriceToUSDArgsSchema: z.ZodObject<{
|
|
653
|
-
chainId: z.ZodNumber;
|
|
654
|
-
currencyAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
655
|
-
amountRaw: z.ZodString;
|
|
656
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
657
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
658
|
-
}, "strip", z.ZodTypeAny, {
|
|
659
|
-
enabled?: boolean | undefined;
|
|
660
|
-
}, {
|
|
661
|
-
enabled?: boolean | undefined;
|
|
662
|
-
}>>;
|
|
663
|
-
}, "strip", z.ZodTypeAny, {
|
|
664
|
-
chainId: number;
|
|
665
|
-
currencyAddress: `0x${string}`;
|
|
666
|
-
amountRaw: string;
|
|
667
|
-
query?: {
|
|
668
|
-
enabled?: boolean | undefined;
|
|
669
|
-
} | undefined;
|
|
670
|
-
}, {
|
|
671
|
-
chainId: number;
|
|
672
|
-
currencyAddress: string;
|
|
673
|
-
amountRaw: string;
|
|
674
|
-
query?: {
|
|
675
|
-
enabled?: boolean | undefined;
|
|
676
|
-
} | undefined;
|
|
677
|
-
}>;
|
|
678
|
-
type UseConvertPriceToUSDArgs = z.input<typeof UseConvertPriceToUSDArgsSchema>;
|
|
679
|
-
type UseConvertPriceToUSDReturn = {
|
|
680
|
-
usdAmount: number;
|
|
681
|
-
usdAmountFormatted: string;
|
|
682
|
-
};
|
|
683
|
-
declare const convertPriceToUSD: (args: UseConvertPriceToUSDArgs, config: SdkConfig) => Promise<UseConvertPriceToUSDReturn>;
|
|
684
|
-
declare const convertPriceToUSDOptions: (args: UseConvertPriceToUSDArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<UseConvertPriceToUSDReturn, Error, UseConvertPriceToUSDReturn, (string | number)[]>, "queryFn"> & {
|
|
685
|
-
queryFn?: _tanstack_react_query.QueryFunction<UseConvertPriceToUSDReturn, (string | number)[], never> | undefined;
|
|
686
|
-
} & {
|
|
687
|
-
queryKey: (string | number)[] & {
|
|
688
|
-
[dataTagSymbol]: UseConvertPriceToUSDReturn;
|
|
689
|
-
[dataTagErrorSymbol]: Error;
|
|
690
|
-
};
|
|
691
|
-
};
|
|
692
|
-
/**
|
|
693
|
-
* Hook to convert a price amount from a specific currency to USD
|
|
694
|
-
* @returns The price amount in USD and formatted USD amount
|
|
695
|
-
* @example
|
|
696
|
-
* ```ts
|
|
697
|
-
* const { data } = useConvertPriceToUSD({
|
|
698
|
-
* chainId: 1,
|
|
699
|
-
* currencyAddress: "0x0000000000000000000000000000000000000000",
|
|
700
|
-
* amountRaw: "1000000000000000000",
|
|
701
|
-
* });
|
|
702
|
-
*
|
|
703
|
-
* console.log(data);
|
|
704
|
-
* // { usdAmount: 1000, usdAmountFormatted: "1000.00" }
|
|
705
|
-
* ```
|
|
706
|
-
*/
|
|
707
|
-
declare const useConvertPriceToUSD: (args: UseConvertPriceToUSDArgs) => _tanstack_react_query.UseQueryResult<UseConvertPriceToUSDReturn, Error>;
|
|
708
|
-
|
|
709
|
-
declare const useMarketCurrencies: (args: UseMarketCurrenciesArgs) => _tanstack_react_query.UseQueryResult<{
|
|
710
|
-
contractAddress: string;
|
|
711
|
-
chainId: number;
|
|
712
|
-
status: CurrencyStatus;
|
|
713
|
-
name: string;
|
|
714
|
-
symbol: string;
|
|
715
|
-
decimals: number;
|
|
716
|
-
imageUrl: string;
|
|
717
|
-
exchangeRate: number;
|
|
718
|
-
defaultChainCurrency: boolean;
|
|
719
|
-
nativeCurrency: boolean;
|
|
720
|
-
createdAt: string;
|
|
721
|
-
updatedAt: string;
|
|
722
|
-
deletedAt?: string;
|
|
723
|
-
}[], Error>;
|
|
724
|
-
|
|
725
|
-
declare const UseCurrencyArgsSchema: z.ZodObject<{
|
|
726
|
-
chainId: z.ZodNumber;
|
|
727
|
-
currencyAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
|
|
728
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
729
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
730
|
-
}, "strip", z.ZodTypeAny, {
|
|
731
|
-
enabled?: boolean | undefined;
|
|
732
|
-
}, {
|
|
733
|
-
enabled?: boolean | undefined;
|
|
734
|
-
}>>;
|
|
735
|
-
}, "strip", z.ZodTypeAny, {
|
|
736
|
-
chainId: number;
|
|
737
|
-
query?: {
|
|
738
|
-
enabled?: boolean | undefined;
|
|
739
|
-
} | undefined;
|
|
740
|
-
currencyAddress?: `0x${string}` | undefined;
|
|
741
|
-
}, {
|
|
742
|
-
chainId: number;
|
|
743
|
-
query?: {
|
|
744
|
-
enabled?: boolean | undefined;
|
|
745
|
-
} | undefined;
|
|
746
|
-
currencyAddress?: string | undefined;
|
|
747
|
-
}>;
|
|
748
|
-
type UseCurrencyArgs = z.input<typeof UseCurrencyArgsSchema>;
|
|
749
|
-
type UseCurrencyReturn = Currency | undefined;
|
|
750
|
-
declare const currencyOptions: (args: UseCurrencyArgs, config: SdkConfig) => _tanstack_react_query.UseQueryOptions<Currency | undefined, Error, Currency | undefined, (string | number | undefined)[]> & {
|
|
751
|
-
initialData?: Currency | _tanstack_react_query.InitialDataFunction<Currency> | undefined;
|
|
752
|
-
} & {
|
|
753
|
-
queryKey: (string | number | undefined)[] & {
|
|
754
|
-
[dataTagSymbol]: Currency | undefined;
|
|
755
|
-
[dataTagErrorSymbol]: Error;
|
|
756
|
-
};
|
|
757
|
-
};
|
|
758
|
-
declare const useCurrency: (args: UseCurrencyArgs) => _tanstack_react_query.UseQueryResult<Currency | undefined, Error>;
|
|
759
|
-
|
|
760
|
-
type UseFiltersArgs = {
|
|
761
|
-
chainId: number;
|
|
762
|
-
collectionAddress: string;
|
|
763
|
-
showAllFilters?: boolean;
|
|
764
|
-
excludePropertyValues?: boolean;
|
|
765
|
-
query?: {
|
|
766
|
-
enabled?: boolean;
|
|
767
|
-
};
|
|
768
|
-
};
|
|
769
|
-
type UseFilterReturn = Awaited<ReturnType<typeof fetchFilters>>;
|
|
770
|
-
declare const fetchFilters: (args: UseFiltersArgs, config: SdkConfig) => Promise<PropertyFilter[]>;
|
|
771
|
-
declare const filtersOptions: (args: UseFiltersArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<PropertyFilter[], Error, PropertyFilter[], ("filter" | "collectable" | SdkConfig | UseFiltersArgs)[]>, "queryFn"> & {
|
|
772
|
-
queryFn?: _tanstack_react_query.QueryFunction<PropertyFilter[], ("filter" | "collectable" | SdkConfig | UseFiltersArgs)[], never> | undefined;
|
|
773
|
-
} & {
|
|
774
|
-
queryKey: ("filter" | "collectable" | SdkConfig | UseFiltersArgs)[] & {
|
|
775
|
-
[dataTagSymbol]: PropertyFilter[];
|
|
776
|
-
[dataTagErrorSymbol]: Error;
|
|
777
|
-
};
|
|
778
|
-
};
|
|
779
|
-
declare const useFilters: (args: UseFiltersArgs) => _tanstack_react_query.UseQueryResult<PropertyFilter[], Error>;
|
|
780
|
-
declare const useFiltersProgressive: (args: UseFiltersArgs) => {
|
|
781
|
-
isFetchingValues: boolean;
|
|
782
|
-
isLoadingNames: boolean;
|
|
783
|
-
data: PropertyFilter[];
|
|
784
|
-
error: Error;
|
|
785
|
-
isError: true;
|
|
786
|
-
isPending: false;
|
|
787
|
-
isLoading: false;
|
|
788
|
-
isLoadingError: false;
|
|
789
|
-
isRefetchError: true;
|
|
790
|
-
isSuccess: false;
|
|
791
|
-
isPlaceholderData: false;
|
|
792
|
-
status: "error";
|
|
793
|
-
dataUpdatedAt: number;
|
|
794
|
-
errorUpdatedAt: number;
|
|
795
|
-
failureCount: number;
|
|
796
|
-
failureReason: Error | null;
|
|
797
|
-
errorUpdateCount: number;
|
|
798
|
-
isFetched: boolean;
|
|
799
|
-
isFetchedAfterMount: boolean;
|
|
800
|
-
isFetching: boolean;
|
|
801
|
-
isInitialLoading: boolean;
|
|
802
|
-
isPaused: boolean;
|
|
803
|
-
isRefetching: boolean;
|
|
804
|
-
isStale: boolean;
|
|
805
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PropertyFilter[], Error>>;
|
|
806
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
807
|
-
promise: Promise<PropertyFilter[]>;
|
|
808
|
-
} | {
|
|
809
|
-
isFetchingValues: boolean;
|
|
810
|
-
isLoadingNames: boolean;
|
|
811
|
-
data: PropertyFilter[];
|
|
812
|
-
error: null;
|
|
813
|
-
isError: false;
|
|
814
|
-
isPending: false;
|
|
815
|
-
isLoading: false;
|
|
816
|
-
isLoadingError: false;
|
|
817
|
-
isRefetchError: false;
|
|
818
|
-
isSuccess: true;
|
|
819
|
-
isPlaceholderData: false;
|
|
820
|
-
status: "success";
|
|
821
|
-
dataUpdatedAt: number;
|
|
822
|
-
errorUpdatedAt: number;
|
|
823
|
-
failureCount: number;
|
|
824
|
-
failureReason: Error | null;
|
|
825
|
-
errorUpdateCount: number;
|
|
826
|
-
isFetched: boolean;
|
|
827
|
-
isFetchedAfterMount: boolean;
|
|
828
|
-
isFetching: boolean;
|
|
829
|
-
isInitialLoading: boolean;
|
|
830
|
-
isPaused: boolean;
|
|
831
|
-
isRefetching: boolean;
|
|
832
|
-
isStale: boolean;
|
|
833
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PropertyFilter[], Error>>;
|
|
834
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
835
|
-
promise: Promise<PropertyFilter[]>;
|
|
836
|
-
} | {
|
|
837
|
-
isFetchingValues: boolean;
|
|
838
|
-
isLoadingNames: boolean;
|
|
839
|
-
data: undefined;
|
|
840
|
-
error: Error;
|
|
841
|
-
isError: true;
|
|
842
|
-
isPending: false;
|
|
843
|
-
isLoading: false;
|
|
844
|
-
isLoadingError: true;
|
|
845
|
-
isRefetchError: false;
|
|
846
|
-
isSuccess: false;
|
|
847
|
-
isPlaceholderData: false;
|
|
848
|
-
status: "error";
|
|
849
|
-
dataUpdatedAt: number;
|
|
850
|
-
errorUpdatedAt: number;
|
|
851
|
-
failureCount: number;
|
|
852
|
-
failureReason: Error | null;
|
|
853
|
-
errorUpdateCount: number;
|
|
854
|
-
isFetched: boolean;
|
|
855
|
-
isFetchedAfterMount: boolean;
|
|
856
|
-
isFetching: boolean;
|
|
857
|
-
isInitialLoading: boolean;
|
|
858
|
-
isPaused: boolean;
|
|
859
|
-
isRefetching: boolean;
|
|
860
|
-
isStale: boolean;
|
|
861
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PropertyFilter[], Error>>;
|
|
862
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
863
|
-
promise: Promise<PropertyFilter[]>;
|
|
864
|
-
} | {
|
|
865
|
-
isFetchingValues: boolean;
|
|
866
|
-
isLoadingNames: boolean;
|
|
867
|
-
data: undefined;
|
|
868
|
-
error: null;
|
|
869
|
-
isError: false;
|
|
870
|
-
isPending: true;
|
|
871
|
-
isLoading: true;
|
|
872
|
-
isLoadingError: false;
|
|
873
|
-
isRefetchError: false;
|
|
874
|
-
isSuccess: false;
|
|
875
|
-
isPlaceholderData: false;
|
|
876
|
-
status: "pending";
|
|
877
|
-
dataUpdatedAt: number;
|
|
878
|
-
errorUpdatedAt: number;
|
|
879
|
-
failureCount: number;
|
|
880
|
-
failureReason: Error | null;
|
|
881
|
-
errorUpdateCount: number;
|
|
882
|
-
isFetched: boolean;
|
|
883
|
-
isFetchedAfterMount: boolean;
|
|
884
|
-
isFetching: boolean;
|
|
885
|
-
isInitialLoading: boolean;
|
|
886
|
-
isPaused: boolean;
|
|
887
|
-
isRefetching: boolean;
|
|
888
|
-
isStale: boolean;
|
|
889
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PropertyFilter[], Error>>;
|
|
890
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
891
|
-
promise: Promise<PropertyFilter[]>;
|
|
892
|
-
} | {
|
|
893
|
-
isFetchingValues: boolean;
|
|
894
|
-
isLoadingNames: boolean;
|
|
895
|
-
data: undefined;
|
|
896
|
-
error: null;
|
|
897
|
-
isError: false;
|
|
898
|
-
isPending: true;
|
|
899
|
-
isLoadingError: false;
|
|
900
|
-
isRefetchError: false;
|
|
901
|
-
isSuccess: false;
|
|
902
|
-
isPlaceholderData: false;
|
|
903
|
-
status: "pending";
|
|
904
|
-
dataUpdatedAt: number;
|
|
905
|
-
errorUpdatedAt: number;
|
|
906
|
-
failureCount: number;
|
|
907
|
-
failureReason: Error | null;
|
|
908
|
-
errorUpdateCount: number;
|
|
909
|
-
isFetched: boolean;
|
|
910
|
-
isFetchedAfterMount: boolean;
|
|
911
|
-
isFetching: boolean;
|
|
912
|
-
isLoading: boolean;
|
|
913
|
-
isInitialLoading: boolean;
|
|
914
|
-
isPaused: boolean;
|
|
915
|
-
isRefetching: boolean;
|
|
916
|
-
isStale: boolean;
|
|
917
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PropertyFilter[], Error>>;
|
|
918
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
919
|
-
promise: Promise<PropertyFilter[]>;
|
|
920
|
-
} | {
|
|
921
|
-
isFetchingValues: boolean;
|
|
922
|
-
isLoadingNames: boolean;
|
|
923
|
-
data: PropertyFilter[];
|
|
924
|
-
isError: false;
|
|
925
|
-
error: null;
|
|
926
|
-
isPending: false;
|
|
927
|
-
isLoading: false;
|
|
928
|
-
isLoadingError: false;
|
|
929
|
-
isRefetchError: false;
|
|
930
|
-
isSuccess: true;
|
|
931
|
-
isPlaceholderData: true;
|
|
932
|
-
status: "success";
|
|
933
|
-
dataUpdatedAt: number;
|
|
934
|
-
errorUpdatedAt: number;
|
|
935
|
-
failureCount: number;
|
|
936
|
-
failureReason: Error | null;
|
|
937
|
-
errorUpdateCount: number;
|
|
938
|
-
isFetched: boolean;
|
|
939
|
-
isFetchedAfterMount: boolean;
|
|
940
|
-
isFetching: boolean;
|
|
941
|
-
isInitialLoading: boolean;
|
|
942
|
-
isPaused: boolean;
|
|
943
|
-
isRefetching: boolean;
|
|
944
|
-
isStale: boolean;
|
|
945
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<PropertyFilter[], Error>>;
|
|
946
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
947
|
-
promise: Promise<PropertyFilter[]>;
|
|
948
|
-
};
|
|
949
|
-
|
|
950
|
-
interface StringFilterValues {
|
|
951
|
-
type: PropertyType.STRING;
|
|
952
|
-
values: string[];
|
|
953
|
-
}
|
|
954
|
-
interface IntFilterValues {
|
|
955
|
-
type: PropertyType.INT;
|
|
956
|
-
min: number;
|
|
957
|
-
max: number;
|
|
958
|
-
}
|
|
959
|
-
type FilterValues = StringFilterValues | IntFilterValues;
|
|
960
|
-
declare function useFilterState(): {
|
|
961
|
-
serialize: {
|
|
962
|
-
(values: Partial<{
|
|
963
|
-
filters: PropertyFilter$1[] | null;
|
|
964
|
-
search: string | null;
|
|
965
|
-
listedOnly: boolean | null;
|
|
966
|
-
}>): string;
|
|
967
|
-
(base: string | URL | URLSearchParams, values: Partial<{
|
|
968
|
-
filters: PropertyFilter$1[] | null;
|
|
969
|
-
search: string | null;
|
|
970
|
-
listedOnly: boolean | null;
|
|
971
|
-
}> | null): string;
|
|
972
|
-
};
|
|
973
|
-
getFilter: (name: string) => PropertyFilter$1 | undefined;
|
|
974
|
-
getFilterValues: (name: string) => FilterValues | undefined;
|
|
975
|
-
isFilterActive: (name: string) => boolean;
|
|
976
|
-
isStringValueSelected: (name: string, value: string) => boolean;
|
|
977
|
-
isIntFilterActive: (name: string) => boolean;
|
|
978
|
-
getIntFilterRange: (name: string) => [number, number] | undefined;
|
|
979
|
-
deleteFilter: (name: string) => void;
|
|
980
|
-
toggleStringFilterValue: (name: string, value: string) => void;
|
|
981
|
-
setIntFilterValue: (name: string, min: number, max: number) => void;
|
|
982
|
-
clearAllFilters: () => void;
|
|
983
|
-
filterOptions: PropertyFilter$1[];
|
|
984
|
-
searchText: string;
|
|
985
|
-
showListedOnly: boolean;
|
|
986
|
-
setFilterOptions: (value: PropertyFilter$1[] | ((old: PropertyFilter$1[]) => PropertyFilter$1[] | null) | null, options?: nuqs.Options) => Promise<URLSearchParams>;
|
|
987
|
-
setSearchText: (value: string | ((old: string) => string | null) | null, options?: nuqs.Options) => Promise<URLSearchParams>;
|
|
988
|
-
setShowListedOnly: (value: boolean | ((old: boolean) => boolean | null) | null, options?: nuqs.Options) => Promise<URLSearchParams>;
|
|
989
|
-
};
|
|
990
|
-
|
|
991
|
-
declare const UseFloorOrderSchema: z.ZodObject<{
|
|
992
|
-
chainId: z.ZodNumber;
|
|
993
|
-
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
994
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
995
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
996
|
-
}, "strip", z.ZodTypeAny, {
|
|
997
|
-
enabled?: boolean | undefined;
|
|
998
|
-
}, {
|
|
999
|
-
enabled?: boolean | undefined;
|
|
1000
|
-
}>>;
|
|
1001
|
-
}, "strip", z.ZodTypeAny, {
|
|
1002
|
-
chainId: number;
|
|
1003
|
-
collectionAddress: `0x${string}`;
|
|
1004
|
-
query?: {
|
|
1005
|
-
enabled?: boolean | undefined;
|
|
1006
|
-
} | undefined;
|
|
1007
|
-
}, {
|
|
1008
|
-
chainId: number;
|
|
1009
|
-
collectionAddress: string;
|
|
1010
|
-
query?: {
|
|
1011
|
-
enabled?: boolean | undefined;
|
|
1012
|
-
} | undefined;
|
|
1013
|
-
}>;
|
|
1014
|
-
type UseFloorOrderArgs = z.infer<typeof UseFloorOrderSchema>;
|
|
1015
|
-
type UseFloorOrderReturn = Awaited<ReturnType<typeof fetchFloorOrder>>;
|
|
1016
|
-
declare const fetchFloorOrder: (args: UseFloorOrderArgs, config: SdkConfig) => Promise<CollectibleOrder>;
|
|
1017
|
-
declare const floorOrderOptions: (args: UseFloorOrderArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CollectibleOrder, Error, CollectibleOrder, ("collectable" | "floorOrders" | SdkConfig | {
|
|
1018
|
-
chainId: number;
|
|
1019
|
-
collectionAddress: `0x${string}`;
|
|
1020
|
-
query?: {
|
|
1021
|
-
enabled?: boolean | undefined;
|
|
1022
|
-
} | undefined;
|
|
1023
|
-
})[]>, "queryFn"> & {
|
|
1024
|
-
queryFn?: _tanstack_react_query.QueryFunction<CollectibleOrder, ("collectable" | "floorOrders" | SdkConfig | {
|
|
1025
|
-
chainId: number;
|
|
1026
|
-
collectionAddress: `0x${string}`;
|
|
1027
|
-
query?: {
|
|
1028
|
-
enabled?: boolean | undefined;
|
|
1029
|
-
} | undefined;
|
|
1030
|
-
})[], never> | undefined;
|
|
1031
|
-
} & {
|
|
1032
|
-
queryKey: ("collectable" | "floorOrders" | SdkConfig | {
|
|
1033
|
-
chainId: number;
|
|
1034
|
-
collectionAddress: `0x${string}`;
|
|
1035
|
-
query?: {
|
|
1036
|
-
enabled?: boolean | undefined;
|
|
1037
|
-
} | undefined;
|
|
1038
|
-
})[] & {
|
|
1039
|
-
[dataTagSymbol]: CollectibleOrder;
|
|
1040
|
-
[dataTagErrorSymbol]: Error;
|
|
1041
|
-
};
|
|
1042
|
-
};
|
|
1043
|
-
declare const useFloorOrder: (args: UseFloorOrderArgs) => _tanstack_react_query.UseQueryResult<CollectibleOrder, Error>;
|
|
1044
|
-
|
|
1045
|
-
declare function useHighestOffer(args: UseHighestOfferArgs): _tanstack_react_query.UseQueryResult<Order | null, Error>;
|
|
1046
|
-
|
|
1047
|
-
declare function useInventory(args: UseInventoryArgs): _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<CollectiblesResponse, unknown>, Error>;
|
|
1048
|
-
|
|
1049
|
-
/**
|
|
1050
|
-
* Hook to fetch a list of token balances with pagination support
|
|
1051
|
-
*
|
|
1052
|
-
* @param args - The arguments for fetching the balances
|
|
1053
|
-
* @returns Infinite query result containing the balances data
|
|
1054
|
-
*
|
|
1055
|
-
* @example
|
|
1056
|
-
* ```tsx
|
|
1057
|
-
* const { data, isLoading, error, fetchNextPage } = useListBalances({
|
|
1058
|
-
* chainId: 1,
|
|
1059
|
-
* accountAddress: '0x123...',
|
|
1060
|
-
* includeMetadata: true,
|
|
1061
|
-
* query: {
|
|
1062
|
-
* enabled: true,
|
|
1063
|
-
* refetchInterval: 10000,
|
|
1064
|
-
* }
|
|
1065
|
-
* });
|
|
1066
|
-
* ```
|
|
1067
|
-
*/
|
|
1068
|
-
declare function useListBalances(args: UseListBalancesArgs): _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<_0xsequence_indexer.GetTokenBalancesReturn, unknown>, Error>;
|
|
1069
|
-
|
|
1070
|
-
declare const getListCollectibleActivitiesArgsSchema: z.ZodObject<{
|
|
1071
|
-
chainId: z.ZodNumber;
|
|
1072
|
-
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
1073
|
-
tokenId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodString>;
|
|
1074
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
1075
|
-
page: z.ZodNumber;
|
|
1076
|
-
pageSize: z.ZodNumber;
|
|
1077
|
-
more: z.ZodOptional<z.ZodBoolean>;
|
|
1078
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1079
|
-
column: z.ZodString;
|
|
1080
|
-
order: z.ZodNativeEnum<typeof SortOrder>;
|
|
1081
|
-
}, "strip", z.ZodTypeAny, {
|
|
1082
|
-
order: SortOrder;
|
|
1083
|
-
column: string;
|
|
1084
|
-
}, {
|
|
1085
|
-
order: SortOrder;
|
|
1086
|
-
column: string;
|
|
1087
|
-
}>, "many">>;
|
|
1088
|
-
} & {
|
|
1089
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1090
|
-
}, "strip", z.ZodTypeAny, {
|
|
1091
|
-
page: number;
|
|
1092
|
-
pageSize: number;
|
|
1093
|
-
enabled?: boolean | undefined;
|
|
1094
|
-
sort?: {
|
|
1095
|
-
order: SortOrder;
|
|
1096
|
-
column: string;
|
|
1097
|
-
}[] | undefined;
|
|
1098
|
-
more?: boolean | undefined;
|
|
1099
|
-
}, {
|
|
1100
|
-
page: number;
|
|
1101
|
-
pageSize: number;
|
|
1102
|
-
enabled?: boolean | undefined;
|
|
1103
|
-
sort?: {
|
|
1104
|
-
order: SortOrder;
|
|
1105
|
-
column: string;
|
|
1106
|
-
}[] | undefined;
|
|
1107
|
-
more?: boolean | undefined;
|
|
1108
|
-
}>>;
|
|
1109
|
-
}, "strip", z.ZodTypeAny, {
|
|
1110
|
-
chainId: number;
|
|
1111
|
-
collectionAddress: `0x${string}`;
|
|
1112
|
-
tokenId: string;
|
|
1113
|
-
query?: {
|
|
1114
|
-
page: number;
|
|
1115
|
-
pageSize: number;
|
|
1116
|
-
enabled?: boolean | undefined;
|
|
1117
|
-
sort?: {
|
|
1118
|
-
order: SortOrder;
|
|
1119
|
-
column: string;
|
|
1120
|
-
}[] | undefined;
|
|
1121
|
-
more?: boolean | undefined;
|
|
1122
|
-
} | undefined;
|
|
1123
|
-
}, {
|
|
1124
|
-
chainId: number;
|
|
1125
|
-
collectionAddress: string;
|
|
1126
|
-
tokenId: string | number;
|
|
1127
|
-
query?: {
|
|
1128
|
-
page: number;
|
|
1129
|
-
pageSize: number;
|
|
1130
|
-
enabled?: boolean | undefined;
|
|
1131
|
-
sort?: {
|
|
1132
|
-
order: SortOrder;
|
|
1133
|
-
column: string;
|
|
1134
|
-
}[] | undefined;
|
|
1135
|
-
more?: boolean | undefined;
|
|
1136
|
-
} | undefined;
|
|
1137
|
-
}>;
|
|
1138
|
-
declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
1139
|
-
activities: z.ZodArray<z.ZodObject<{
|
|
1140
|
-
type: z.ZodString;
|
|
1141
|
-
fromAddress: z.ZodString;
|
|
1142
|
-
toAddress: z.ZodString;
|
|
1143
|
-
txHash: z.ZodString;
|
|
1144
|
-
timestamp: z.ZodNumber;
|
|
1145
|
-
tokenId: z.ZodString;
|
|
1146
|
-
tokenImage: z.ZodString;
|
|
1147
|
-
tokenName: z.ZodString;
|
|
1148
|
-
currency: z.ZodOptional<z.ZodObject<{
|
|
1149
|
-
chainId: z.ZodNumber;
|
|
1150
|
-
contractAddress: z.ZodString;
|
|
1151
|
-
name: z.ZodString;
|
|
1152
|
-
symbol: z.ZodString;
|
|
1153
|
-
decimals: z.ZodNumber;
|
|
1154
|
-
imageUrl: z.ZodString;
|
|
1155
|
-
exchangeRate: z.ZodNumber;
|
|
1156
|
-
defaultChainCurrency: z.ZodBoolean;
|
|
1157
|
-
nativeCurrency: z.ZodBoolean;
|
|
1158
|
-
createdAt: z.ZodString;
|
|
1159
|
-
updatedAt: z.ZodString;
|
|
1160
|
-
deletedAt: z.ZodOptional<z.ZodString>;
|
|
1161
|
-
}, "strip", z.ZodTypeAny, {
|
|
1162
|
-
symbol: string;
|
|
1163
|
-
chainId: number;
|
|
1164
|
-
contractAddress: string;
|
|
1165
|
-
name: string;
|
|
1166
|
-
nativeCurrency: boolean;
|
|
1167
|
-
updatedAt: string;
|
|
1168
|
-
createdAt: string;
|
|
1169
|
-
decimals: number;
|
|
1170
|
-
imageUrl: string;
|
|
1171
|
-
exchangeRate: number;
|
|
1172
|
-
defaultChainCurrency: boolean;
|
|
1173
|
-
deletedAt?: string | undefined;
|
|
1174
|
-
}, {
|
|
1175
|
-
symbol: string;
|
|
1176
|
-
chainId: number;
|
|
1177
|
-
contractAddress: string;
|
|
1178
|
-
name: string;
|
|
1179
|
-
nativeCurrency: boolean;
|
|
1180
|
-
updatedAt: string;
|
|
1181
|
-
createdAt: string;
|
|
1182
|
-
decimals: number;
|
|
1183
|
-
imageUrl: string;
|
|
1184
|
-
exchangeRate: number;
|
|
1185
|
-
defaultChainCurrency: boolean;
|
|
1186
|
-
deletedAt?: string | undefined;
|
|
1187
|
-
}>>;
|
|
1188
|
-
}, "strip", z.ZodTypeAny, {
|
|
1189
|
-
type: string;
|
|
1190
|
-
timestamp: number;
|
|
1191
|
-
tokenId: string;
|
|
1192
|
-
fromAddress: string;
|
|
1193
|
-
toAddress: string;
|
|
1194
|
-
txHash: string;
|
|
1195
|
-
tokenImage: string;
|
|
1196
|
-
tokenName: string;
|
|
1197
|
-
currency?: {
|
|
1198
|
-
symbol: string;
|
|
1199
|
-
chainId: number;
|
|
1200
|
-
contractAddress: string;
|
|
1201
|
-
name: string;
|
|
1202
|
-
nativeCurrency: boolean;
|
|
1203
|
-
updatedAt: string;
|
|
1204
|
-
createdAt: string;
|
|
1205
|
-
decimals: number;
|
|
1206
|
-
imageUrl: string;
|
|
1207
|
-
exchangeRate: number;
|
|
1208
|
-
defaultChainCurrency: boolean;
|
|
1209
|
-
deletedAt?: string | undefined;
|
|
1210
|
-
} | undefined;
|
|
1211
|
-
}, {
|
|
1212
|
-
type: string;
|
|
1213
|
-
timestamp: number;
|
|
1214
|
-
tokenId: string;
|
|
1215
|
-
fromAddress: string;
|
|
1216
|
-
toAddress: string;
|
|
1217
|
-
txHash: string;
|
|
1218
|
-
tokenImage: string;
|
|
1219
|
-
tokenName: string;
|
|
1220
|
-
currency?: {
|
|
1221
|
-
symbol: string;
|
|
1222
|
-
chainId: number;
|
|
1223
|
-
contractAddress: string;
|
|
1224
|
-
name: string;
|
|
1225
|
-
nativeCurrency: boolean;
|
|
1226
|
-
updatedAt: string;
|
|
1227
|
-
createdAt: string;
|
|
1228
|
-
decimals: number;
|
|
1229
|
-
imageUrl: string;
|
|
1230
|
-
exchangeRate: number;
|
|
1231
|
-
defaultChainCurrency: boolean;
|
|
1232
|
-
deletedAt?: string | undefined;
|
|
1233
|
-
} | undefined;
|
|
1234
|
-
}>, "many">;
|
|
1235
|
-
page: z.ZodOptional<z.ZodObject<{
|
|
1236
|
-
page: z.ZodNumber;
|
|
1237
|
-
pageSize: z.ZodNumber;
|
|
1238
|
-
more: z.ZodOptional<z.ZodBoolean>;
|
|
1239
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1240
|
-
column: z.ZodString;
|
|
1241
|
-
order: z.ZodNativeEnum<typeof SortOrder>;
|
|
1242
|
-
}, "strip", z.ZodTypeAny, {
|
|
1243
|
-
order: SortOrder;
|
|
1244
|
-
column: string;
|
|
1245
|
-
}, {
|
|
1246
|
-
order: SortOrder;
|
|
1247
|
-
column: string;
|
|
1248
|
-
}>, "many">>;
|
|
1249
|
-
}, "strip", z.ZodTypeAny, {
|
|
1250
|
-
page: number;
|
|
1251
|
-
pageSize: number;
|
|
1252
|
-
sort?: {
|
|
1253
|
-
order: SortOrder;
|
|
1254
|
-
column: string;
|
|
1255
|
-
}[] | undefined;
|
|
1256
|
-
more?: boolean | undefined;
|
|
1257
|
-
}, {
|
|
1258
|
-
page: number;
|
|
1259
|
-
pageSize: number;
|
|
1260
|
-
sort?: {
|
|
1261
|
-
order: SortOrder;
|
|
1262
|
-
column: string;
|
|
1263
|
-
}[] | undefined;
|
|
1264
|
-
more?: boolean | undefined;
|
|
1265
|
-
}>>;
|
|
1266
|
-
}, "strip", z.ZodTypeAny, {
|
|
1267
|
-
activities: {
|
|
1268
|
-
type: string;
|
|
1269
|
-
timestamp: number;
|
|
1270
|
-
tokenId: string;
|
|
1271
|
-
fromAddress: string;
|
|
1272
|
-
toAddress: string;
|
|
1273
|
-
txHash: string;
|
|
1274
|
-
tokenImage: string;
|
|
1275
|
-
tokenName: string;
|
|
1276
|
-
currency?: {
|
|
1277
|
-
symbol: string;
|
|
1278
|
-
chainId: number;
|
|
1279
|
-
contractAddress: string;
|
|
1280
|
-
name: string;
|
|
1281
|
-
nativeCurrency: boolean;
|
|
1282
|
-
updatedAt: string;
|
|
1283
|
-
createdAt: string;
|
|
1284
|
-
decimals: number;
|
|
1285
|
-
imageUrl: string;
|
|
1286
|
-
exchangeRate: number;
|
|
1287
|
-
defaultChainCurrency: boolean;
|
|
1288
|
-
deletedAt?: string | undefined;
|
|
1289
|
-
} | undefined;
|
|
1290
|
-
}[];
|
|
1291
|
-
page?: {
|
|
1292
|
-
page: number;
|
|
1293
|
-
pageSize: number;
|
|
1294
|
-
sort?: {
|
|
1295
|
-
order: SortOrder;
|
|
1296
|
-
column: string;
|
|
1297
|
-
}[] | undefined;
|
|
1298
|
-
more?: boolean | undefined;
|
|
1299
|
-
} | undefined;
|
|
1300
|
-
}, {
|
|
1301
|
-
activities: {
|
|
1302
|
-
type: string;
|
|
1303
|
-
timestamp: number;
|
|
1304
|
-
tokenId: string;
|
|
1305
|
-
fromAddress: string;
|
|
1306
|
-
toAddress: string;
|
|
1307
|
-
txHash: string;
|
|
1308
|
-
tokenImage: string;
|
|
1309
|
-
tokenName: string;
|
|
1310
|
-
currency?: {
|
|
1311
|
-
symbol: string;
|
|
1312
|
-
chainId: number;
|
|
1313
|
-
contractAddress: string;
|
|
1314
|
-
name: string;
|
|
1315
|
-
nativeCurrency: boolean;
|
|
1316
|
-
updatedAt: string;
|
|
1317
|
-
createdAt: string;
|
|
1318
|
-
decimals: number;
|
|
1319
|
-
imageUrl: string;
|
|
1320
|
-
exchangeRate: number;
|
|
1321
|
-
defaultChainCurrency: boolean;
|
|
1322
|
-
deletedAt?: string | undefined;
|
|
1323
|
-
} | undefined;
|
|
1324
|
-
}[];
|
|
1325
|
-
page?: {
|
|
1326
|
-
page: number;
|
|
1327
|
-
pageSize: number;
|
|
1328
|
-
sort?: {
|
|
1329
|
-
order: SortOrder;
|
|
1330
|
-
column: string;
|
|
1331
|
-
}[] | undefined;
|
|
1332
|
-
more?: boolean | undefined;
|
|
1333
|
-
} | undefined;
|
|
1334
|
-
}>;
|
|
1335
|
-
declare const getListCollectionActivitiesArgsSchema: z.ZodObject<{
|
|
1336
|
-
chainId: z.ZodNumber;
|
|
1337
|
-
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
1338
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
1339
|
-
page: z.ZodNumber;
|
|
1340
|
-
pageSize: z.ZodNumber;
|
|
1341
|
-
more: z.ZodOptional<z.ZodBoolean>;
|
|
1342
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1343
|
-
column: z.ZodString;
|
|
1344
|
-
order: z.ZodNativeEnum<typeof SortOrder>;
|
|
1345
|
-
}, "strip", z.ZodTypeAny, {
|
|
1346
|
-
order: SortOrder;
|
|
1347
|
-
column: string;
|
|
1348
|
-
}, {
|
|
1349
|
-
order: SortOrder;
|
|
1350
|
-
column: string;
|
|
1351
|
-
}>, "many">>;
|
|
1352
|
-
} & {
|
|
1353
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1354
|
-
}, "strip", z.ZodTypeAny, {
|
|
1355
|
-
page: number;
|
|
1356
|
-
pageSize: number;
|
|
1357
|
-
enabled?: boolean | undefined;
|
|
1358
|
-
sort?: {
|
|
1359
|
-
order: SortOrder;
|
|
1360
|
-
column: string;
|
|
1361
|
-
}[] | undefined;
|
|
1362
|
-
more?: boolean | undefined;
|
|
1363
|
-
}, {
|
|
1364
|
-
page: number;
|
|
1365
|
-
pageSize: number;
|
|
1366
|
-
enabled?: boolean | undefined;
|
|
1367
|
-
sort?: {
|
|
1368
|
-
order: SortOrder;
|
|
1369
|
-
column: string;
|
|
1370
|
-
}[] | undefined;
|
|
1371
|
-
more?: boolean | undefined;
|
|
1372
|
-
}>>;
|
|
1373
|
-
}, "strip", z.ZodTypeAny, {
|
|
1374
|
-
chainId: number;
|
|
1375
|
-
collectionAddress: `0x${string}`;
|
|
1376
|
-
query?: {
|
|
1377
|
-
page: number;
|
|
1378
|
-
pageSize: number;
|
|
1379
|
-
enabled?: boolean | undefined;
|
|
1380
|
-
sort?: {
|
|
1381
|
-
order: SortOrder;
|
|
1382
|
-
column: string;
|
|
1383
|
-
}[] | undefined;
|
|
1384
|
-
more?: boolean | undefined;
|
|
1385
|
-
} | undefined;
|
|
1386
|
-
}, {
|
|
1387
|
-
chainId: number;
|
|
1388
|
-
collectionAddress: string;
|
|
1389
|
-
query?: {
|
|
1390
|
-
page: number;
|
|
1391
|
-
pageSize: number;
|
|
1392
|
-
enabled?: boolean | undefined;
|
|
1393
|
-
sort?: {
|
|
1394
|
-
order: SortOrder;
|
|
1395
|
-
column: string;
|
|
1396
|
-
}[] | undefined;
|
|
1397
|
-
more?: boolean | undefined;
|
|
1398
|
-
} | undefined;
|
|
1399
|
-
}>;
|
|
1400
|
-
declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
1401
|
-
activities: z.ZodArray<z.ZodObject<{
|
|
1402
|
-
type: z.ZodString;
|
|
1403
|
-
fromAddress: z.ZodString;
|
|
1404
|
-
toAddress: z.ZodString;
|
|
1405
|
-
txHash: z.ZodString;
|
|
1406
|
-
timestamp: z.ZodNumber;
|
|
1407
|
-
tokenId: z.ZodString;
|
|
1408
|
-
tokenImage: z.ZodString;
|
|
1409
|
-
tokenName: z.ZodString;
|
|
1410
|
-
currency: z.ZodOptional<z.ZodObject<{
|
|
1411
|
-
chainId: z.ZodNumber;
|
|
1412
|
-
contractAddress: z.ZodString;
|
|
1413
|
-
name: z.ZodString;
|
|
1414
|
-
symbol: z.ZodString;
|
|
1415
|
-
decimals: z.ZodNumber;
|
|
1416
|
-
imageUrl: z.ZodString;
|
|
1417
|
-
exchangeRate: z.ZodNumber;
|
|
1418
|
-
defaultChainCurrency: z.ZodBoolean;
|
|
1419
|
-
nativeCurrency: z.ZodBoolean;
|
|
1420
|
-
createdAt: z.ZodString;
|
|
1421
|
-
updatedAt: z.ZodString;
|
|
1422
|
-
deletedAt: z.ZodOptional<z.ZodString>;
|
|
1423
|
-
}, "strip", z.ZodTypeAny, {
|
|
1424
|
-
symbol: string;
|
|
1425
|
-
chainId: number;
|
|
1426
|
-
contractAddress: string;
|
|
1427
|
-
name: string;
|
|
1428
|
-
nativeCurrency: boolean;
|
|
1429
|
-
updatedAt: string;
|
|
1430
|
-
createdAt: string;
|
|
1431
|
-
decimals: number;
|
|
1432
|
-
imageUrl: string;
|
|
1433
|
-
exchangeRate: number;
|
|
1434
|
-
defaultChainCurrency: boolean;
|
|
1435
|
-
deletedAt?: string | undefined;
|
|
1436
|
-
}, {
|
|
1437
|
-
symbol: string;
|
|
1438
|
-
chainId: number;
|
|
1439
|
-
contractAddress: string;
|
|
1440
|
-
name: string;
|
|
1441
|
-
nativeCurrency: boolean;
|
|
1442
|
-
updatedAt: string;
|
|
1443
|
-
createdAt: string;
|
|
1444
|
-
decimals: number;
|
|
1445
|
-
imageUrl: string;
|
|
1446
|
-
exchangeRate: number;
|
|
1447
|
-
defaultChainCurrency: boolean;
|
|
1448
|
-
deletedAt?: string | undefined;
|
|
1449
|
-
}>>;
|
|
1450
|
-
}, "strip", z.ZodTypeAny, {
|
|
1451
|
-
type: string;
|
|
1452
|
-
timestamp: number;
|
|
1453
|
-
tokenId: string;
|
|
1454
|
-
fromAddress: string;
|
|
1455
|
-
toAddress: string;
|
|
1456
|
-
txHash: string;
|
|
1457
|
-
tokenImage: string;
|
|
1458
|
-
tokenName: string;
|
|
1459
|
-
currency?: {
|
|
1460
|
-
symbol: string;
|
|
1461
|
-
chainId: number;
|
|
1462
|
-
contractAddress: string;
|
|
1463
|
-
name: string;
|
|
1464
|
-
nativeCurrency: boolean;
|
|
1465
|
-
updatedAt: string;
|
|
1466
|
-
createdAt: string;
|
|
1467
|
-
decimals: number;
|
|
1468
|
-
imageUrl: string;
|
|
1469
|
-
exchangeRate: number;
|
|
1470
|
-
defaultChainCurrency: boolean;
|
|
1471
|
-
deletedAt?: string | undefined;
|
|
1472
|
-
} | undefined;
|
|
1473
|
-
}, {
|
|
1474
|
-
type: string;
|
|
1475
|
-
timestamp: number;
|
|
1476
|
-
tokenId: string;
|
|
1477
|
-
fromAddress: string;
|
|
1478
|
-
toAddress: string;
|
|
1479
|
-
txHash: string;
|
|
1480
|
-
tokenImage: string;
|
|
1481
|
-
tokenName: string;
|
|
1482
|
-
currency?: {
|
|
1483
|
-
symbol: string;
|
|
1484
|
-
chainId: number;
|
|
1485
|
-
contractAddress: string;
|
|
1486
|
-
name: string;
|
|
1487
|
-
nativeCurrency: boolean;
|
|
1488
|
-
updatedAt: string;
|
|
1489
|
-
createdAt: string;
|
|
1490
|
-
decimals: number;
|
|
1491
|
-
imageUrl: string;
|
|
1492
|
-
exchangeRate: number;
|
|
1493
|
-
defaultChainCurrency: boolean;
|
|
1494
|
-
deletedAt?: string | undefined;
|
|
1495
|
-
} | undefined;
|
|
1496
|
-
}>, "many">;
|
|
1497
|
-
page: z.ZodOptional<z.ZodObject<{
|
|
1498
|
-
page: z.ZodNumber;
|
|
1499
|
-
pageSize: z.ZodNumber;
|
|
1500
|
-
more: z.ZodOptional<z.ZodBoolean>;
|
|
1501
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1502
|
-
column: z.ZodString;
|
|
1503
|
-
order: z.ZodNativeEnum<typeof SortOrder>;
|
|
1504
|
-
}, "strip", z.ZodTypeAny, {
|
|
1505
|
-
order: SortOrder;
|
|
1506
|
-
column: string;
|
|
1507
|
-
}, {
|
|
1508
|
-
order: SortOrder;
|
|
1509
|
-
column: string;
|
|
1510
|
-
}>, "many">>;
|
|
1511
|
-
}, "strip", z.ZodTypeAny, {
|
|
1512
|
-
page: number;
|
|
1513
|
-
pageSize: number;
|
|
1514
|
-
sort?: {
|
|
1515
|
-
order: SortOrder;
|
|
1516
|
-
column: string;
|
|
1517
|
-
}[] | undefined;
|
|
1518
|
-
more?: boolean | undefined;
|
|
1519
|
-
}, {
|
|
1520
|
-
page: number;
|
|
1521
|
-
pageSize: number;
|
|
1522
|
-
sort?: {
|
|
1523
|
-
order: SortOrder;
|
|
1524
|
-
column: string;
|
|
1525
|
-
}[] | undefined;
|
|
1526
|
-
more?: boolean | undefined;
|
|
1527
|
-
}>>;
|
|
1528
|
-
}, "strip", z.ZodTypeAny, {
|
|
1529
|
-
activities: {
|
|
1530
|
-
type: string;
|
|
1531
|
-
timestamp: number;
|
|
1532
|
-
tokenId: string;
|
|
1533
|
-
fromAddress: string;
|
|
1534
|
-
toAddress: string;
|
|
1535
|
-
txHash: string;
|
|
1536
|
-
tokenImage: string;
|
|
1537
|
-
tokenName: string;
|
|
1538
|
-
currency?: {
|
|
1539
|
-
symbol: string;
|
|
1540
|
-
chainId: number;
|
|
1541
|
-
contractAddress: string;
|
|
1542
|
-
name: string;
|
|
1543
|
-
nativeCurrency: boolean;
|
|
1544
|
-
updatedAt: string;
|
|
1545
|
-
createdAt: string;
|
|
1546
|
-
decimals: number;
|
|
1547
|
-
imageUrl: string;
|
|
1548
|
-
exchangeRate: number;
|
|
1549
|
-
defaultChainCurrency: boolean;
|
|
1550
|
-
deletedAt?: string | undefined;
|
|
1551
|
-
} | undefined;
|
|
1552
|
-
}[];
|
|
1553
|
-
page?: {
|
|
1554
|
-
page: number;
|
|
1555
|
-
pageSize: number;
|
|
1556
|
-
sort?: {
|
|
1557
|
-
order: SortOrder;
|
|
1558
|
-
column: string;
|
|
1559
|
-
}[] | undefined;
|
|
1560
|
-
more?: boolean | undefined;
|
|
1561
|
-
} | undefined;
|
|
1562
|
-
}, {
|
|
1563
|
-
activities: {
|
|
1564
|
-
type: string;
|
|
1565
|
-
timestamp: number;
|
|
1566
|
-
tokenId: string;
|
|
1567
|
-
fromAddress: string;
|
|
1568
|
-
toAddress: string;
|
|
1569
|
-
txHash: string;
|
|
1570
|
-
tokenImage: string;
|
|
1571
|
-
tokenName: string;
|
|
1572
|
-
currency?: {
|
|
1573
|
-
symbol: string;
|
|
1574
|
-
chainId: number;
|
|
1575
|
-
contractAddress: string;
|
|
1576
|
-
name: string;
|
|
1577
|
-
nativeCurrency: boolean;
|
|
1578
|
-
updatedAt: string;
|
|
1579
|
-
createdAt: string;
|
|
1580
|
-
decimals: number;
|
|
1581
|
-
imageUrl: string;
|
|
1582
|
-
exchangeRate: number;
|
|
1583
|
-
defaultChainCurrency: boolean;
|
|
1584
|
-
deletedAt?: string | undefined;
|
|
1585
|
-
} | undefined;
|
|
1586
|
-
}[];
|
|
1587
|
-
page?: {
|
|
1588
|
-
page: number;
|
|
1589
|
-
pageSize: number;
|
|
1590
|
-
sort?: {
|
|
1591
|
-
order: SortOrder;
|
|
1592
|
-
column: string;
|
|
1593
|
-
}[] | undefined;
|
|
1594
|
-
more?: boolean | undefined;
|
|
1595
|
-
} | undefined;
|
|
1596
|
-
}>;
|
|
1597
|
-
|
|
1598
|
-
type UseListCollectibleActivitiesArgs = z.infer<typeof getListCollectibleActivitiesArgsSchema>;
|
|
1599
|
-
type UseListCollectibleActivitiesReturn = z.infer<typeof getListCollectibleActivitiesReturnSchema>;
|
|
1600
|
-
declare const listCollectibleActivitiesOptions: (args: UseListCollectibleActivitiesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
1601
|
-
activities: Activity[];
|
|
1602
|
-
page: Page | undefined;
|
|
1603
|
-
}, Error, {
|
|
1604
|
-
activities: Activity[];
|
|
1605
|
-
page: Page | undefined;
|
|
1606
|
-
}, ("collectable" | "collectibleActivities" | SdkConfig | {
|
|
1607
|
-
chainId: number;
|
|
1608
|
-
collectionAddress: `0x${string}`;
|
|
1609
|
-
tokenId: string;
|
|
1610
|
-
query?: {
|
|
1611
|
-
page: number;
|
|
1612
|
-
pageSize: number;
|
|
1613
|
-
enabled?: boolean | undefined;
|
|
1614
|
-
sort?: {
|
|
1615
|
-
order: SortOrder;
|
|
1616
|
-
column: string;
|
|
1617
|
-
}[] | undefined;
|
|
1618
|
-
more?: boolean | undefined;
|
|
1619
|
-
} | undefined;
|
|
1620
|
-
})[]>, "queryFn"> & {
|
|
1621
|
-
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
1622
|
-
activities: Activity[];
|
|
1623
|
-
page: Page | undefined;
|
|
1624
|
-
}, ("collectable" | "collectibleActivities" | SdkConfig | {
|
|
1625
|
-
chainId: number;
|
|
1626
|
-
collectionAddress: `0x${string}`;
|
|
1627
|
-
tokenId: string;
|
|
1628
|
-
query?: {
|
|
1629
|
-
page: number;
|
|
1630
|
-
pageSize: number;
|
|
1631
|
-
enabled?: boolean | undefined;
|
|
1632
|
-
sort?: {
|
|
1633
|
-
order: SortOrder;
|
|
1634
|
-
column: string;
|
|
1635
|
-
}[] | undefined;
|
|
1636
|
-
more?: boolean | undefined;
|
|
1637
|
-
} | undefined;
|
|
1638
|
-
})[], never> | undefined;
|
|
1639
|
-
} & {
|
|
1640
|
-
queryKey: ("collectable" | "collectibleActivities" | SdkConfig | {
|
|
1641
|
-
chainId: number;
|
|
1642
|
-
collectionAddress: `0x${string}`;
|
|
1643
|
-
tokenId: string;
|
|
1644
|
-
query?: {
|
|
1645
|
-
page: number;
|
|
1646
|
-
pageSize: number;
|
|
1647
|
-
enabled?: boolean | undefined;
|
|
1648
|
-
sort?: {
|
|
1649
|
-
order: SortOrder;
|
|
1650
|
-
column: string;
|
|
1651
|
-
}[] | undefined;
|
|
1652
|
-
more?: boolean | undefined;
|
|
1653
|
-
} | undefined;
|
|
1654
|
-
})[] & {
|
|
1655
|
-
[dataTagSymbol]: {
|
|
1656
|
-
activities: Activity[];
|
|
1657
|
-
page: Page | undefined;
|
|
1658
|
-
};
|
|
1659
|
-
[dataTagErrorSymbol]: Error;
|
|
1660
|
-
};
|
|
1661
|
-
};
|
|
1662
|
-
declare const useListCollectibleActivities: (args: UseListCollectibleActivitiesArgs) => _tanstack_react_query.UseQueryResult<{
|
|
1663
|
-
activities: Activity[];
|
|
1664
|
-
page: Page | undefined;
|
|
1665
|
-
}, Error>;
|
|
1666
|
-
|
|
1667
|
-
/**
|
|
1668
|
-
* Hook to fetch a list of collectibles with pagination support
|
|
1669
|
-
*
|
|
1670
|
-
* @param args - The arguments for fetching the collectibles
|
|
1671
|
-
* @returns Infinite query result containing the collectibles data including orders
|
|
1672
|
-
*
|
|
1673
|
-
* @example
|
|
1674
|
-
* ```tsx
|
|
1675
|
-
* const { data, isLoading, error, fetchNextPage } = useListCollectibles({
|
|
1676
|
-
* chainId: 1,
|
|
1677
|
-
* collectionAddress: '0x123...',
|
|
1678
|
-
* includeMetadata: true,
|
|
1679
|
-
* query: {
|
|
1680
|
-
* enabled: true,
|
|
1681
|
-
* refetchInterval: 10000,
|
|
1682
|
-
* }
|
|
1683
|
-
* });
|
|
1684
|
-
* ```
|
|
1685
|
-
*/
|
|
1686
|
-
declare function useListCollectibles(args: UseListCollectiblesArgs): _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>, Error>;
|
|
1687
|
-
|
|
1688
|
-
declare const UseListCollectiblesPaginatedArgsSchema: z.ZodObject<Omit<{
|
|
1689
|
-
side: z.ZodNativeEnum<typeof OrderSide>;
|
|
1690
|
-
contractAddress: z.ZodString;
|
|
1691
|
-
filter: z.ZodOptional<z.ZodObject<{
|
|
1692
|
-
includeEmpty: z.ZodBoolean;
|
|
1693
|
-
searchText: z.ZodOptional<z.ZodString>;
|
|
1694
|
-
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1695
|
-
name: z.ZodString;
|
|
1696
|
-
type: z.ZodNativeEnum<typeof PropertyType>;
|
|
1697
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
1698
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
1699
|
-
values: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
1700
|
-
}, "strip", z.ZodTypeAny, {
|
|
1701
|
-
type: PropertyType;
|
|
1702
|
-
name: string;
|
|
1703
|
-
values?: any[] | undefined;
|
|
1704
|
-
min?: number | undefined;
|
|
1705
|
-
max?: number | undefined;
|
|
1706
|
-
}, {
|
|
1707
|
-
type: PropertyType;
|
|
1708
|
-
name: string;
|
|
1709
|
-
values?: any[] | undefined;
|
|
1710
|
-
min?: number | undefined;
|
|
1711
|
-
max?: number | undefined;
|
|
1712
|
-
}>, "many">>;
|
|
1713
|
-
marketplaces: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
|
|
1714
|
-
inAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1715
|
-
notInAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1716
|
-
ordersCreatedBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1717
|
-
ordersNotCreatedBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1718
|
-
}, "strip", z.ZodTypeAny, {
|
|
1719
|
-
includeEmpty: boolean;
|
|
1720
|
-
searchText?: string | undefined;
|
|
1721
|
-
properties?: {
|
|
1722
|
-
type: PropertyType;
|
|
1723
|
-
name: string;
|
|
1724
|
-
values?: any[] | undefined;
|
|
1725
|
-
min?: number | undefined;
|
|
1726
|
-
max?: number | undefined;
|
|
1727
|
-
}[] | undefined;
|
|
1728
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
1729
|
-
inAccounts?: string[] | undefined;
|
|
1730
|
-
notInAccounts?: string[] | undefined;
|
|
1731
|
-
ordersCreatedBy?: string[] | undefined;
|
|
1732
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
1733
|
-
}, {
|
|
1734
|
-
includeEmpty: boolean;
|
|
1735
|
-
searchText?: string | undefined;
|
|
1736
|
-
properties?: {
|
|
1737
|
-
type: PropertyType;
|
|
1738
|
-
name: string;
|
|
1739
|
-
values?: any[] | undefined;
|
|
1740
|
-
min?: number | undefined;
|
|
1741
|
-
max?: number | undefined;
|
|
1742
|
-
}[] | undefined;
|
|
1743
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
1744
|
-
inAccounts?: string[] | undefined;
|
|
1745
|
-
notInAccounts?: string[] | undefined;
|
|
1746
|
-
ordersCreatedBy?: string[] | undefined;
|
|
1747
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
1748
|
-
}>>;
|
|
1749
|
-
page: z.ZodOptional<z.ZodObject<{
|
|
1750
|
-
page: z.ZodNumber;
|
|
1751
|
-
pageSize: z.ZodNumber;
|
|
1752
|
-
more: z.ZodOptional<z.ZodBoolean>;
|
|
1753
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1754
|
-
column: z.ZodString;
|
|
1755
|
-
order: z.ZodNativeEnum<typeof SortOrder>;
|
|
1756
|
-
}, "strip", z.ZodTypeAny, {
|
|
1757
|
-
order: SortOrder;
|
|
1758
|
-
column: string;
|
|
1759
|
-
}, {
|
|
1760
|
-
order: SortOrder;
|
|
1761
|
-
column: string;
|
|
1762
|
-
}>, "many">>;
|
|
1763
|
-
}, "strip", z.ZodTypeAny, {
|
|
1764
|
-
page: number;
|
|
1765
|
-
pageSize: number;
|
|
1766
|
-
sort?: {
|
|
1767
|
-
order: SortOrder;
|
|
1768
|
-
column: string;
|
|
1769
|
-
}[] | undefined;
|
|
1770
|
-
more?: boolean | undefined;
|
|
1771
|
-
}, {
|
|
1772
|
-
page: number;
|
|
1773
|
-
pageSize: number;
|
|
1774
|
-
sort?: {
|
|
1775
|
-
order: SortOrder;
|
|
1776
|
-
column: string;
|
|
1777
|
-
}[] | undefined;
|
|
1778
|
-
more?: boolean | undefined;
|
|
1779
|
-
}>>;
|
|
1780
|
-
}, "contractAddress"> & {
|
|
1781
|
-
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
1782
|
-
chainId: z.ZodNumber;
|
|
1783
|
-
query: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1784
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1785
|
-
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1786
|
-
pageSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1787
|
-
}, "strip", z.ZodTypeAny, {
|
|
1788
|
-
page: number;
|
|
1789
|
-
pageSize: number;
|
|
1790
|
-
enabled?: boolean | undefined;
|
|
1791
|
-
}, {
|
|
1792
|
-
enabled?: boolean | undefined;
|
|
1793
|
-
page?: number | undefined;
|
|
1794
|
-
pageSize?: number | undefined;
|
|
1795
|
-
}>>>;
|
|
1796
|
-
}, "strip", z.ZodTypeAny, {
|
|
1797
|
-
chainId: number;
|
|
1798
|
-
query: {
|
|
1799
|
-
page: number;
|
|
1800
|
-
pageSize: number;
|
|
1801
|
-
enabled?: boolean | undefined;
|
|
1802
|
-
};
|
|
1803
|
-
collectionAddress: `0x${string}`;
|
|
1804
|
-
side: OrderSide;
|
|
1805
|
-
page?: {
|
|
1806
|
-
page: number;
|
|
1807
|
-
pageSize: number;
|
|
1808
|
-
sort?: {
|
|
1809
|
-
order: SortOrder;
|
|
1810
|
-
column: string;
|
|
1811
|
-
}[] | undefined;
|
|
1812
|
-
more?: boolean | undefined;
|
|
1813
|
-
} | undefined;
|
|
1814
|
-
filter?: {
|
|
1815
|
-
includeEmpty: boolean;
|
|
1816
|
-
searchText?: string | undefined;
|
|
1817
|
-
properties?: {
|
|
1818
|
-
type: PropertyType;
|
|
1819
|
-
name: string;
|
|
1820
|
-
values?: any[] | undefined;
|
|
1821
|
-
min?: number | undefined;
|
|
1822
|
-
max?: number | undefined;
|
|
1823
|
-
}[] | undefined;
|
|
1824
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
1825
|
-
inAccounts?: string[] | undefined;
|
|
1826
|
-
notInAccounts?: string[] | undefined;
|
|
1827
|
-
ordersCreatedBy?: string[] | undefined;
|
|
1828
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
1829
|
-
} | undefined;
|
|
1830
|
-
}, {
|
|
1831
|
-
chainId: number;
|
|
1832
|
-
collectionAddress: string;
|
|
1833
|
-
side: OrderSide;
|
|
1834
|
-
page?: {
|
|
1835
|
-
page: number;
|
|
1836
|
-
pageSize: number;
|
|
1837
|
-
sort?: {
|
|
1838
|
-
order: SortOrder;
|
|
1839
|
-
column: string;
|
|
1840
|
-
}[] | undefined;
|
|
1841
|
-
more?: boolean | undefined;
|
|
1842
|
-
} | undefined;
|
|
1843
|
-
filter?: {
|
|
1844
|
-
includeEmpty: boolean;
|
|
1845
|
-
searchText?: string | undefined;
|
|
1846
|
-
properties?: {
|
|
1847
|
-
type: PropertyType;
|
|
1848
|
-
name: string;
|
|
1849
|
-
values?: any[] | undefined;
|
|
1850
|
-
min?: number | undefined;
|
|
1851
|
-
max?: number | undefined;
|
|
1852
|
-
}[] | undefined;
|
|
1853
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
1854
|
-
inAccounts?: string[] | undefined;
|
|
1855
|
-
notInAccounts?: string[] | undefined;
|
|
1856
|
-
ordersCreatedBy?: string[] | undefined;
|
|
1857
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
1858
|
-
} | undefined;
|
|
1859
|
-
query?: {
|
|
1860
|
-
enabled?: boolean | undefined;
|
|
1861
|
-
page?: number | undefined;
|
|
1862
|
-
pageSize?: number | undefined;
|
|
1863
|
-
} | undefined;
|
|
1864
|
-
}>;
|
|
1865
|
-
type UseListCollectiblesPaginatedArgs = z.infer<typeof UseListCollectiblesPaginatedArgsSchema>;
|
|
1866
|
-
type UseListCollectiblesPaginatedReturn = Awaited<ReturnType<typeof fetchCollectiblesPaginated>>;
|
|
1867
|
-
declare const fetchCollectiblesPaginated: (args: UseListCollectiblesPaginatedArgs, marketplaceClient: Awaited<ReturnType<typeof getMarketplaceClient>>) => Promise<ListCollectiblesReturn>;
|
|
1868
|
-
declare const listCollectiblesPaginatedOptions: (args: UseListCollectiblesPaginatedArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectiblesReturn, Error, ListCollectiblesReturn, (string | {
|
|
1869
|
-
chainId: number;
|
|
1870
|
-
query: {
|
|
1871
|
-
page: number;
|
|
1872
|
-
pageSize: number;
|
|
1873
|
-
enabled?: boolean | undefined;
|
|
1874
|
-
};
|
|
1875
|
-
collectionAddress: `0x${string}`;
|
|
1876
|
-
side: OrderSide;
|
|
1877
|
-
page?: {
|
|
1878
|
-
page: number;
|
|
1879
|
-
pageSize: number;
|
|
1880
|
-
sort?: {
|
|
1881
|
-
order: SortOrder;
|
|
1882
|
-
column: string;
|
|
1883
|
-
}[] | undefined;
|
|
1884
|
-
more?: boolean | undefined;
|
|
1885
|
-
} | undefined;
|
|
1886
|
-
filter?: {
|
|
1887
|
-
includeEmpty: boolean;
|
|
1888
|
-
searchText?: string | undefined;
|
|
1889
|
-
properties?: {
|
|
1890
|
-
type: PropertyType;
|
|
1891
|
-
name: string;
|
|
1892
|
-
values?: any[] | undefined;
|
|
1893
|
-
min?: number | undefined;
|
|
1894
|
-
max?: number | undefined;
|
|
1895
|
-
}[] | undefined;
|
|
1896
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
1897
|
-
inAccounts?: string[] | undefined;
|
|
1898
|
-
notInAccounts?: string[] | undefined;
|
|
1899
|
-
ordersCreatedBy?: string[] | undefined;
|
|
1900
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
1901
|
-
} | undefined;
|
|
1902
|
-
})[]>, "queryFn"> & {
|
|
1903
|
-
queryFn?: _tanstack_react_query.QueryFunction<ListCollectiblesReturn, (string | {
|
|
1904
|
-
chainId: number;
|
|
1905
|
-
query: {
|
|
1906
|
-
page: number;
|
|
1907
|
-
pageSize: number;
|
|
1908
|
-
enabled?: boolean | undefined;
|
|
1909
|
-
};
|
|
1910
|
-
collectionAddress: `0x${string}`;
|
|
1911
|
-
side: OrderSide;
|
|
1912
|
-
page?: {
|
|
1913
|
-
page: number;
|
|
1914
|
-
pageSize: number;
|
|
1915
|
-
sort?: {
|
|
1916
|
-
order: SortOrder;
|
|
1917
|
-
column: string;
|
|
1918
|
-
}[] | undefined;
|
|
1919
|
-
more?: boolean | undefined;
|
|
1920
|
-
} | undefined;
|
|
1921
|
-
filter?: {
|
|
1922
|
-
includeEmpty: boolean;
|
|
1923
|
-
searchText?: string | undefined;
|
|
1924
|
-
properties?: {
|
|
1925
|
-
type: PropertyType;
|
|
1926
|
-
name: string;
|
|
1927
|
-
values?: any[] | undefined;
|
|
1928
|
-
min?: number | undefined;
|
|
1929
|
-
max?: number | undefined;
|
|
1930
|
-
}[] | undefined;
|
|
1931
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
1932
|
-
inAccounts?: string[] | undefined;
|
|
1933
|
-
notInAccounts?: string[] | undefined;
|
|
1934
|
-
ordersCreatedBy?: string[] | undefined;
|
|
1935
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
1936
|
-
} | undefined;
|
|
1937
|
-
})[], never> | undefined;
|
|
1938
|
-
} & {
|
|
1939
|
-
queryKey: (string | {
|
|
1940
|
-
chainId: number;
|
|
1941
|
-
query: {
|
|
1942
|
-
page: number;
|
|
1943
|
-
pageSize: number;
|
|
1944
|
-
enabled?: boolean | undefined;
|
|
1945
|
-
};
|
|
1946
|
-
collectionAddress: `0x${string}`;
|
|
1947
|
-
side: OrderSide;
|
|
1948
|
-
page?: {
|
|
1949
|
-
page: number;
|
|
1950
|
-
pageSize: number;
|
|
1951
|
-
sort?: {
|
|
1952
|
-
order: SortOrder;
|
|
1953
|
-
column: string;
|
|
1954
|
-
}[] | undefined;
|
|
1955
|
-
more?: boolean | undefined;
|
|
1956
|
-
} | undefined;
|
|
1957
|
-
filter?: {
|
|
1958
|
-
includeEmpty: boolean;
|
|
1959
|
-
searchText?: string | undefined;
|
|
1960
|
-
properties?: {
|
|
1961
|
-
type: PropertyType;
|
|
1962
|
-
name: string;
|
|
1963
|
-
values?: any[] | undefined;
|
|
1964
|
-
min?: number | undefined;
|
|
1965
|
-
max?: number | undefined;
|
|
1966
|
-
}[] | undefined;
|
|
1967
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
1968
|
-
inAccounts?: string[] | undefined;
|
|
1969
|
-
notInAccounts?: string[] | undefined;
|
|
1970
|
-
ordersCreatedBy?: string[] | undefined;
|
|
1971
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
1972
|
-
} | undefined;
|
|
1973
|
-
})[] & {
|
|
1974
|
-
[dataTagSymbol]: ListCollectiblesReturn;
|
|
1975
|
-
[dataTagErrorSymbol]: Error;
|
|
1976
|
-
};
|
|
1977
|
-
};
|
|
1978
|
-
declare const useListCollectiblesPaginated: (args: UseListCollectiblesPaginatedArgs) => _tanstack_react_query.UseQueryResult<ListCollectiblesReturn, Error>;
|
|
1979
|
-
|
|
1980
|
-
type UseListCollectionActivitiesArgs = z.infer<typeof getListCollectionActivitiesArgsSchema>;
|
|
1981
|
-
type UseListCollectionActivitiesReturn = z.infer<typeof getListCollectionActivitiesReturnSchema>;
|
|
1982
|
-
declare const listCollectionActivitiesOptions: (args: UseListCollectionActivitiesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
1983
|
-
activities: Activity[];
|
|
1984
|
-
page: Page | undefined;
|
|
1985
|
-
}, Error, {
|
|
1986
|
-
activities: Activity[];
|
|
1987
|
-
page: Page | undefined;
|
|
1988
|
-
}, ("collections" | "collectionActivities" | SdkConfig | {
|
|
1989
|
-
chainId: number;
|
|
1990
|
-
collectionAddress: `0x${string}`;
|
|
1991
|
-
query?: {
|
|
1992
|
-
page: number;
|
|
1993
|
-
pageSize: number;
|
|
1994
|
-
enabled?: boolean | undefined;
|
|
1995
|
-
sort?: {
|
|
1996
|
-
order: SortOrder;
|
|
1997
|
-
column: string;
|
|
1998
|
-
}[] | undefined;
|
|
1999
|
-
more?: boolean | undefined;
|
|
2000
|
-
} | undefined;
|
|
2001
|
-
})[]>, "queryFn"> & {
|
|
2002
|
-
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
2003
|
-
activities: Activity[];
|
|
2004
|
-
page: Page | undefined;
|
|
2005
|
-
}, ("collections" | "collectionActivities" | SdkConfig | {
|
|
2006
|
-
chainId: number;
|
|
2007
|
-
collectionAddress: `0x${string}`;
|
|
2008
|
-
query?: {
|
|
2009
|
-
page: number;
|
|
2010
|
-
pageSize: number;
|
|
2011
|
-
enabled?: boolean | undefined;
|
|
2012
|
-
sort?: {
|
|
2013
|
-
order: SortOrder;
|
|
2014
|
-
column: string;
|
|
2015
|
-
}[] | undefined;
|
|
2016
|
-
more?: boolean | undefined;
|
|
2017
|
-
} | undefined;
|
|
2018
|
-
})[], never> | undefined;
|
|
2019
|
-
} & {
|
|
2020
|
-
queryKey: ("collections" | "collectionActivities" | SdkConfig | {
|
|
2021
|
-
chainId: number;
|
|
2022
|
-
collectionAddress: `0x${string}`;
|
|
2023
|
-
query?: {
|
|
2024
|
-
page: number;
|
|
2025
|
-
pageSize: number;
|
|
2026
|
-
enabled?: boolean | undefined;
|
|
2027
|
-
sort?: {
|
|
2028
|
-
order: SortOrder;
|
|
2029
|
-
column: string;
|
|
2030
|
-
}[] | undefined;
|
|
2031
|
-
more?: boolean | undefined;
|
|
2032
|
-
} | undefined;
|
|
2033
|
-
})[] & {
|
|
2034
|
-
[dataTagSymbol]: {
|
|
2035
|
-
activities: Activity[];
|
|
2036
|
-
page: Page | undefined;
|
|
2037
|
-
};
|
|
2038
|
-
[dataTagErrorSymbol]: Error;
|
|
2039
|
-
};
|
|
2040
|
-
};
|
|
2041
|
-
declare const useListCollectionActivities: (args: UseListCollectionActivitiesArgs) => _tanstack_react_query.UseQueryResult<{
|
|
2042
|
-
activities: Activity[];
|
|
2043
|
-
page: Page | undefined;
|
|
2044
|
-
}, Error>;
|
|
2045
|
-
|
|
2046
|
-
declare const UseListOffersForCollectibleArgsSchema: z.ZodObject<Omit<{
|
|
2047
|
-
contractAddress: z.ZodString;
|
|
2048
|
-
tokenId: z.ZodString;
|
|
2049
|
-
filter: z.ZodOptional<z.ZodObject<{
|
|
2050
|
-
createdBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2051
|
-
marketplace: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
|
|
2052
|
-
currencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2053
|
-
}, "strip", z.ZodTypeAny, {
|
|
2054
|
-
currencies?: string[] | undefined;
|
|
2055
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2056
|
-
createdBy?: string[] | undefined;
|
|
2057
|
-
}, {
|
|
2058
|
-
currencies?: string[] | undefined;
|
|
2059
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2060
|
-
createdBy?: string[] | undefined;
|
|
2061
|
-
}>>;
|
|
2062
|
-
page: z.ZodOptional<z.ZodObject<{
|
|
2063
|
-
page: z.ZodNumber;
|
|
2064
|
-
pageSize: z.ZodNumber;
|
|
2065
|
-
more: z.ZodOptional<z.ZodBoolean>;
|
|
2066
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2067
|
-
column: z.ZodString;
|
|
2068
|
-
order: z.ZodNativeEnum<typeof SortOrder>;
|
|
2069
|
-
}, "strip", z.ZodTypeAny, {
|
|
2070
|
-
order: SortOrder;
|
|
2071
|
-
column: string;
|
|
2072
|
-
}, {
|
|
2073
|
-
order: SortOrder;
|
|
2074
|
-
column: string;
|
|
2075
|
-
}>, "many">>;
|
|
2076
|
-
}, "strip", z.ZodTypeAny, {
|
|
2077
|
-
page: number;
|
|
2078
|
-
pageSize: number;
|
|
2079
|
-
sort?: {
|
|
2080
|
-
order: SortOrder;
|
|
2081
|
-
column: string;
|
|
2082
|
-
}[] | undefined;
|
|
2083
|
-
more?: boolean | undefined;
|
|
2084
|
-
}, {
|
|
2085
|
-
page: number;
|
|
2086
|
-
pageSize: number;
|
|
2087
|
-
sort?: {
|
|
2088
|
-
order: SortOrder;
|
|
2089
|
-
column: string;
|
|
2090
|
-
}[] | undefined;
|
|
2091
|
-
more?: boolean | undefined;
|
|
2092
|
-
}>>;
|
|
2093
|
-
} & {
|
|
2094
|
-
chainId: z.ZodNumber;
|
|
2095
|
-
collectionAddress: z.ZodString;
|
|
2096
|
-
collectibleId: z.ZodString;
|
|
2097
|
-
}, "contractAddress" | "tokenId">, "strip", z.ZodTypeAny, {
|
|
2098
|
-
chainId: number;
|
|
2099
|
-
collectionAddress: string;
|
|
2100
|
-
collectibleId: string;
|
|
2101
|
-
page?: {
|
|
2102
|
-
page: number;
|
|
2103
|
-
pageSize: number;
|
|
2104
|
-
sort?: {
|
|
2105
|
-
order: SortOrder;
|
|
2106
|
-
column: string;
|
|
2107
|
-
}[] | undefined;
|
|
2108
|
-
more?: boolean | undefined;
|
|
2109
|
-
} | undefined;
|
|
2110
|
-
filter?: {
|
|
2111
|
-
currencies?: string[] | undefined;
|
|
2112
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2113
|
-
createdBy?: string[] | undefined;
|
|
2114
|
-
} | undefined;
|
|
2115
|
-
}, {
|
|
2116
|
-
chainId: number;
|
|
2117
|
-
collectionAddress: string;
|
|
2118
|
-
collectibleId: string;
|
|
2119
|
-
page?: {
|
|
2120
|
-
page: number;
|
|
2121
|
-
pageSize: number;
|
|
2122
|
-
sort?: {
|
|
2123
|
-
order: SortOrder;
|
|
2124
|
-
column: string;
|
|
2125
|
-
}[] | undefined;
|
|
2126
|
-
more?: boolean | undefined;
|
|
2127
|
-
} | undefined;
|
|
2128
|
-
filter?: {
|
|
2129
|
-
currencies?: string[] | undefined;
|
|
2130
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2131
|
-
createdBy?: string[] | undefined;
|
|
2132
|
-
} | undefined;
|
|
2133
|
-
}>;
|
|
2134
|
-
type UseListOffersForCollectibleArgs = z.infer<typeof UseListOffersForCollectibleArgsSchema>;
|
|
2135
|
-
type UseListOffersForCollectibleReturn = Awaited<ReturnType<typeof fetchListOffersForCollectible>>;
|
|
2136
|
-
declare const fetchListOffersForCollectible: (config: SdkConfig, args: UseListOffersForCollectibleArgs) => Promise<ListCollectibleOffersReturn>;
|
|
2137
|
-
declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectibleOffersReturn, Error, ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | {
|
|
2138
|
-
chainId: number;
|
|
2139
|
-
collectionAddress: string;
|
|
2140
|
-
collectibleId: string;
|
|
2141
|
-
page?: {
|
|
2142
|
-
page: number;
|
|
2143
|
-
pageSize: number;
|
|
2144
|
-
sort?: {
|
|
2145
|
-
order: SortOrder;
|
|
2146
|
-
column: string;
|
|
2147
|
-
}[] | undefined;
|
|
2148
|
-
more?: boolean | undefined;
|
|
2149
|
-
} | undefined;
|
|
2150
|
-
filter?: {
|
|
2151
|
-
currencies?: string[] | undefined;
|
|
2152
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2153
|
-
createdBy?: string[] | undefined;
|
|
2154
|
-
} | undefined;
|
|
2155
|
-
})[]>, "queryFn"> & {
|
|
2156
|
-
queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | {
|
|
2157
|
-
chainId: number;
|
|
2158
|
-
collectionAddress: string;
|
|
2159
|
-
collectibleId: string;
|
|
2160
|
-
page?: {
|
|
2161
|
-
page: number;
|
|
2162
|
-
pageSize: number;
|
|
2163
|
-
sort?: {
|
|
2164
|
-
order: SortOrder;
|
|
2165
|
-
column: string;
|
|
2166
|
-
}[] | undefined;
|
|
2167
|
-
more?: boolean | undefined;
|
|
2168
|
-
} | undefined;
|
|
2169
|
-
filter?: {
|
|
2170
|
-
currencies?: string[] | undefined;
|
|
2171
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2172
|
-
createdBy?: string[] | undefined;
|
|
2173
|
-
} | undefined;
|
|
2174
|
-
})[], never> | undefined;
|
|
2175
|
-
} & {
|
|
2176
|
-
queryKey: ("offers" | "collectable" | SdkConfig | {
|
|
2177
|
-
chainId: number;
|
|
2178
|
-
collectionAddress: string;
|
|
2179
|
-
collectibleId: string;
|
|
2180
|
-
page?: {
|
|
2181
|
-
page: number;
|
|
2182
|
-
pageSize: number;
|
|
2183
|
-
sort?: {
|
|
2184
|
-
order: SortOrder;
|
|
2185
|
-
column: string;
|
|
2186
|
-
}[] | undefined;
|
|
2187
|
-
more?: boolean | undefined;
|
|
2188
|
-
} | undefined;
|
|
2189
|
-
filter?: {
|
|
2190
|
-
currencies?: string[] | undefined;
|
|
2191
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2192
|
-
createdBy?: string[] | undefined;
|
|
2193
|
-
} | undefined;
|
|
2194
|
-
})[] & {
|
|
2195
|
-
[dataTagSymbol]: ListCollectibleOffersReturn;
|
|
2196
|
-
[dataTagErrorSymbol]: Error;
|
|
2197
|
-
};
|
|
2198
|
-
};
|
|
2199
|
-
declare const useListOffersForCollectible: (args: UseListOffersForCollectibleArgs) => _tanstack_react_query.UseQueryResult<ListCollectibleOffersReturn, Error>;
|
|
2200
|
-
|
|
2201
|
-
declare const UseCountOffersForCollectibleArgsSchema: z.ZodObject<Omit<{
|
|
2202
|
-
contractAddress: z.ZodString;
|
|
2203
|
-
tokenId: z.ZodString;
|
|
2204
|
-
filter: z.ZodOptional<z.ZodObject<{
|
|
2205
|
-
createdBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2206
|
-
marketplace: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
|
|
2207
|
-
currencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2208
|
-
}, "strip", z.ZodTypeAny, {
|
|
2209
|
-
currencies?: string[] | undefined;
|
|
2210
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2211
|
-
createdBy?: string[] | undefined;
|
|
2212
|
-
}, {
|
|
2213
|
-
currencies?: string[] | undefined;
|
|
2214
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2215
|
-
createdBy?: string[] | undefined;
|
|
2216
|
-
}>>;
|
|
2217
|
-
}, "contractAddress" | "tokenId"> & {
|
|
2218
|
-
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2219
|
-
collectibleId: z.ZodString;
|
|
2220
|
-
chainId: z.ZodNumber;
|
|
2221
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
2222
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2223
|
-
}, "strip", z.ZodTypeAny, {
|
|
2224
|
-
enabled?: boolean | undefined;
|
|
2225
|
-
}, {
|
|
2226
|
-
enabled?: boolean | undefined;
|
|
2227
|
-
}>>;
|
|
2228
|
-
}, "strip", z.ZodTypeAny, {
|
|
2229
|
-
chainId: number;
|
|
2230
|
-
collectionAddress: `0x${string}`;
|
|
2231
|
-
collectibleId: string;
|
|
2232
|
-
filter?: {
|
|
2233
|
-
currencies?: string[] | undefined;
|
|
2234
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2235
|
-
createdBy?: string[] | undefined;
|
|
2236
|
-
} | undefined;
|
|
2237
|
-
query?: {
|
|
2238
|
-
enabled?: boolean | undefined;
|
|
2239
|
-
} | undefined;
|
|
2240
|
-
}, {
|
|
2241
|
-
chainId: number;
|
|
2242
|
-
collectionAddress: string;
|
|
2243
|
-
collectibleId: string;
|
|
2244
|
-
filter?: {
|
|
2245
|
-
currencies?: string[] | undefined;
|
|
2246
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2247
|
-
createdBy?: string[] | undefined;
|
|
2248
|
-
} | undefined;
|
|
2249
|
-
query?: {
|
|
2250
|
-
enabled?: boolean | undefined;
|
|
2251
|
-
} | undefined;
|
|
2252
|
-
}>;
|
|
2253
|
-
type UseCountOffersForCollectibleArgs = z.infer<typeof UseCountOffersForCollectibleArgsSchema>;
|
|
2254
|
-
type UseCountOffersForCollectibleReturn = Awaited<ReturnType<typeof fetchCountOffersForCollectible>>;
|
|
2255
|
-
declare const fetchCountOffersForCollectible: (args: UseCountOffersForCollectibleArgs, config: SdkConfig) => Promise<GetCountOfOffersForCollectibleReturn>;
|
|
2256
|
-
declare const countOffersForCollectibleOptions: (args: UseCountOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCountOfOffersForCollectibleReturn, Error, GetCountOfOffersForCollectibleReturn, ("collectable" | "offersCount" | SdkConfig | {
|
|
2257
|
-
chainId: number;
|
|
2258
|
-
collectionAddress: `0x${string}`;
|
|
2259
|
-
collectibleId: string;
|
|
2260
|
-
filter?: {
|
|
2261
|
-
currencies?: string[] | undefined;
|
|
2262
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2263
|
-
createdBy?: string[] | undefined;
|
|
2264
|
-
} | undefined;
|
|
2265
|
-
query?: {
|
|
2266
|
-
enabled?: boolean | undefined;
|
|
2267
|
-
} | undefined;
|
|
2268
|
-
})[]>, "queryFn"> & {
|
|
2269
|
-
queryFn?: _tanstack_react_query.QueryFunction<GetCountOfOffersForCollectibleReturn, ("collectable" | "offersCount" | SdkConfig | {
|
|
2270
|
-
chainId: number;
|
|
2271
|
-
collectionAddress: `0x${string}`;
|
|
2272
|
-
collectibleId: string;
|
|
2273
|
-
filter?: {
|
|
2274
|
-
currencies?: string[] | undefined;
|
|
2275
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2276
|
-
createdBy?: string[] | undefined;
|
|
2277
|
-
} | undefined;
|
|
2278
|
-
query?: {
|
|
2279
|
-
enabled?: boolean | undefined;
|
|
2280
|
-
} | undefined;
|
|
2281
|
-
})[], never> | undefined;
|
|
2282
|
-
} & {
|
|
2283
|
-
queryKey: ("collectable" | "offersCount" | SdkConfig | {
|
|
2284
|
-
chainId: number;
|
|
2285
|
-
collectionAddress: `0x${string}`;
|
|
2286
|
-
collectibleId: string;
|
|
2287
|
-
filter?: {
|
|
2288
|
-
currencies?: string[] | undefined;
|
|
2289
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2290
|
-
createdBy?: string[] | undefined;
|
|
2291
|
-
} | undefined;
|
|
2292
|
-
query?: {
|
|
2293
|
-
enabled?: boolean | undefined;
|
|
2294
|
-
} | undefined;
|
|
2295
|
-
})[] & {
|
|
2296
|
-
[dataTagSymbol]: GetCountOfOffersForCollectibleReturn;
|
|
2297
|
-
[dataTagErrorSymbol]: Error;
|
|
2298
|
-
};
|
|
2299
|
-
};
|
|
2300
|
-
declare const useCountOffersForCollectible: (args: UseCountOffersForCollectibleArgs) => _tanstack_react_query.UseQueryResult<GetCountOfOffersForCollectibleReturn, Error>;
|
|
2301
|
-
|
|
2302
|
-
declare const UseListListingsForCollectibleArgsSchema: z.ZodObject<Omit<{
|
|
2303
|
-
contractAddress: z.ZodString;
|
|
2304
|
-
tokenId: z.ZodString;
|
|
2305
|
-
filter: z.ZodOptional<z.ZodObject<{
|
|
2306
|
-
createdBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2307
|
-
marketplace: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
|
|
2308
|
-
currencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2309
|
-
}, "strip", z.ZodTypeAny, {
|
|
2310
|
-
currencies?: string[] | undefined;
|
|
2311
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2312
|
-
createdBy?: string[] | undefined;
|
|
2313
|
-
}, {
|
|
2314
|
-
currencies?: string[] | undefined;
|
|
2315
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2316
|
-
createdBy?: string[] | undefined;
|
|
2317
|
-
}>>;
|
|
2318
|
-
page: z.ZodOptional<z.ZodObject<{
|
|
2319
|
-
page: z.ZodNumber;
|
|
2320
|
-
pageSize: z.ZodNumber;
|
|
2321
|
-
more: z.ZodOptional<z.ZodBoolean>;
|
|
2322
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2323
|
-
column: z.ZodString;
|
|
2324
|
-
order: z.ZodNativeEnum<typeof SortOrder>;
|
|
2325
|
-
}, "strip", z.ZodTypeAny, {
|
|
2326
|
-
order: SortOrder;
|
|
2327
|
-
column: string;
|
|
2328
|
-
}, {
|
|
2329
|
-
order: SortOrder;
|
|
2330
|
-
column: string;
|
|
2331
|
-
}>, "many">>;
|
|
2332
|
-
}, "strip", z.ZodTypeAny, {
|
|
2333
|
-
page: number;
|
|
2334
|
-
pageSize: number;
|
|
2335
|
-
sort?: {
|
|
2336
|
-
order: SortOrder;
|
|
2337
|
-
column: string;
|
|
2338
|
-
}[] | undefined;
|
|
2339
|
-
more?: boolean | undefined;
|
|
2340
|
-
}, {
|
|
2341
|
-
page: number;
|
|
2342
|
-
pageSize: number;
|
|
2343
|
-
sort?: {
|
|
2344
|
-
order: SortOrder;
|
|
2345
|
-
column: string;
|
|
2346
|
-
}[] | undefined;
|
|
2347
|
-
more?: boolean | undefined;
|
|
2348
|
-
}>>;
|
|
2349
|
-
} & {
|
|
2350
|
-
chainId: z.ZodNumber;
|
|
2351
|
-
collectionAddress: z.ZodString;
|
|
2352
|
-
collectibleId: z.ZodString;
|
|
2353
|
-
}, "contractAddress" | "tokenId">, "strip", z.ZodTypeAny, {
|
|
2354
|
-
chainId: number;
|
|
2355
|
-
collectionAddress: string;
|
|
2356
|
-
collectibleId: string;
|
|
2357
|
-
page?: {
|
|
2358
|
-
page: number;
|
|
2359
|
-
pageSize: number;
|
|
2360
|
-
sort?: {
|
|
2361
|
-
order: SortOrder;
|
|
2362
|
-
column: string;
|
|
2363
|
-
}[] | undefined;
|
|
2364
|
-
more?: boolean | undefined;
|
|
2365
|
-
} | undefined;
|
|
2366
|
-
filter?: {
|
|
2367
|
-
currencies?: string[] | undefined;
|
|
2368
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2369
|
-
createdBy?: string[] | undefined;
|
|
2370
|
-
} | undefined;
|
|
2371
|
-
}, {
|
|
2372
|
-
chainId: number;
|
|
2373
|
-
collectionAddress: string;
|
|
2374
|
-
collectibleId: string;
|
|
2375
|
-
page?: {
|
|
2376
|
-
page: number;
|
|
2377
|
-
pageSize: number;
|
|
2378
|
-
sort?: {
|
|
2379
|
-
order: SortOrder;
|
|
2380
|
-
column: string;
|
|
2381
|
-
}[] | undefined;
|
|
2382
|
-
more?: boolean | undefined;
|
|
2383
|
-
} | undefined;
|
|
2384
|
-
filter?: {
|
|
2385
|
-
currencies?: string[] | undefined;
|
|
2386
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2387
|
-
createdBy?: string[] | undefined;
|
|
2388
|
-
} | undefined;
|
|
2389
|
-
}>;
|
|
2390
|
-
type UseListListingsForCollectibleArgs = z.infer<typeof UseListListingsForCollectibleArgsSchema>;
|
|
2391
|
-
type UseListListingsForCollectibleReturn = Awaited<ReturnType<typeof fetchListListingsForCollectible>>;
|
|
2392
|
-
declare const fetchListListingsForCollectible: (config: SdkConfig, args: UseListListingsForCollectibleArgs) => Promise<ListCollectibleListingsReturn>;
|
|
2393
|
-
declare const listListingsForCollectibleOptions: (args: UseListListingsForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectibleListingsReturn, Error, ListCollectibleListingsReturn, ("listings" | "collectable" | SdkConfig | {
|
|
2394
|
-
chainId: number;
|
|
2395
|
-
collectionAddress: string;
|
|
2396
|
-
collectibleId: string;
|
|
2397
|
-
page?: {
|
|
2398
|
-
page: number;
|
|
2399
|
-
pageSize: number;
|
|
2400
|
-
sort?: {
|
|
2401
|
-
order: SortOrder;
|
|
2402
|
-
column: string;
|
|
2403
|
-
}[] | undefined;
|
|
2404
|
-
more?: boolean | undefined;
|
|
2405
|
-
} | undefined;
|
|
2406
|
-
filter?: {
|
|
2407
|
-
currencies?: string[] | undefined;
|
|
2408
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2409
|
-
createdBy?: string[] | undefined;
|
|
2410
|
-
} | undefined;
|
|
2411
|
-
})[]>, "queryFn"> & {
|
|
2412
|
-
queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleListingsReturn, ("listings" | "collectable" | SdkConfig | {
|
|
2413
|
-
chainId: number;
|
|
2414
|
-
collectionAddress: string;
|
|
2415
|
-
collectibleId: string;
|
|
2416
|
-
page?: {
|
|
2417
|
-
page: number;
|
|
2418
|
-
pageSize: number;
|
|
2419
|
-
sort?: {
|
|
2420
|
-
order: SortOrder;
|
|
2421
|
-
column: string;
|
|
2422
|
-
}[] | undefined;
|
|
2423
|
-
more?: boolean | undefined;
|
|
2424
|
-
} | undefined;
|
|
2425
|
-
filter?: {
|
|
2426
|
-
currencies?: string[] | undefined;
|
|
2427
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2428
|
-
createdBy?: string[] | undefined;
|
|
2429
|
-
} | undefined;
|
|
2430
|
-
})[], never> | undefined;
|
|
2431
|
-
} & {
|
|
2432
|
-
queryKey: ("listings" | "collectable" | SdkConfig | {
|
|
2433
|
-
chainId: number;
|
|
2434
|
-
collectionAddress: string;
|
|
2435
|
-
collectibleId: string;
|
|
2436
|
-
page?: {
|
|
2437
|
-
page: number;
|
|
2438
|
-
pageSize: number;
|
|
2439
|
-
sort?: {
|
|
2440
|
-
order: SortOrder;
|
|
2441
|
-
column: string;
|
|
2442
|
-
}[] | undefined;
|
|
2443
|
-
more?: boolean | undefined;
|
|
2444
|
-
} | undefined;
|
|
2445
|
-
filter?: {
|
|
2446
|
-
currencies?: string[] | undefined;
|
|
2447
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2448
|
-
createdBy?: string[] | undefined;
|
|
2449
|
-
} | undefined;
|
|
2450
|
-
})[] & {
|
|
2451
|
-
[dataTagSymbol]: ListCollectibleListingsReturn;
|
|
2452
|
-
[dataTagErrorSymbol]: Error;
|
|
2453
|
-
};
|
|
2454
|
-
};
|
|
2455
|
-
declare const useListListingsForCollectible: (args: UseListListingsForCollectibleArgs) => _tanstack_react_query.UseQueryResult<ListCollectibleListingsReturn, Error>;
|
|
2456
|
-
|
|
2457
|
-
declare const UseCountListingsForCollectibleArgsSchema: z.ZodObject<Omit<{
|
|
2458
|
-
contractAddress: z.ZodString;
|
|
2459
|
-
tokenId: z.ZodString;
|
|
2460
|
-
filter: z.ZodOptional<z.ZodObject<{
|
|
2461
|
-
createdBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2462
|
-
marketplace: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
|
|
2463
|
-
currencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2464
|
-
}, "strip", z.ZodTypeAny, {
|
|
2465
|
-
currencies?: string[] | undefined;
|
|
2466
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2467
|
-
createdBy?: string[] | undefined;
|
|
2468
|
-
}, {
|
|
2469
|
-
currencies?: string[] | undefined;
|
|
2470
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2471
|
-
createdBy?: string[] | undefined;
|
|
2472
|
-
}>>;
|
|
2473
|
-
}, "contractAddress" | "tokenId"> & {
|
|
2474
|
-
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2475
|
-
collectibleId: z.ZodString;
|
|
2476
|
-
chainId: z.ZodNumber;
|
|
2477
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
2478
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2479
|
-
}, "strip", z.ZodTypeAny, {
|
|
2480
|
-
enabled?: boolean | undefined;
|
|
2481
|
-
}, {
|
|
2482
|
-
enabled?: boolean | undefined;
|
|
2483
|
-
}>>;
|
|
2484
|
-
}, "strip", z.ZodTypeAny, {
|
|
2485
|
-
chainId: number;
|
|
2486
|
-
collectionAddress: `0x${string}`;
|
|
2487
|
-
collectibleId: string;
|
|
2488
|
-
filter?: {
|
|
2489
|
-
currencies?: string[] | undefined;
|
|
2490
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2491
|
-
createdBy?: string[] | undefined;
|
|
2492
|
-
} | undefined;
|
|
2493
|
-
query?: {
|
|
2494
|
-
enabled?: boolean | undefined;
|
|
2495
|
-
} | undefined;
|
|
2496
|
-
}, {
|
|
2497
|
-
chainId: number;
|
|
2498
|
-
collectionAddress: string;
|
|
2499
|
-
collectibleId: string;
|
|
2500
|
-
filter?: {
|
|
2501
|
-
currencies?: string[] | undefined;
|
|
2502
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2503
|
-
createdBy?: string[] | undefined;
|
|
2504
|
-
} | undefined;
|
|
2505
|
-
query?: {
|
|
2506
|
-
enabled?: boolean | undefined;
|
|
2507
|
-
} | undefined;
|
|
2508
|
-
}>;
|
|
2509
|
-
type UseCountListingsForCollectibleArgs = z.infer<typeof UseCountListingsForCollectibleArgsSchema>;
|
|
2510
|
-
type UseCountListingsForCollectibleReturn = Awaited<ReturnType<typeof fetchCountListingsForCollectible>>;
|
|
2511
|
-
declare const fetchCountListingsForCollectible: (args: UseCountListingsForCollectibleArgs, config: SdkConfig) => Promise<GetCountOfListingsForCollectibleReturn>;
|
|
2512
|
-
declare const countListingsForCollectibleOptions: (args: UseCountListingsForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCountOfListingsForCollectibleReturn, Error, GetCountOfListingsForCollectibleReturn, ("collectable" | "listingsCount" | SdkConfig | {
|
|
2513
|
-
chainId: number;
|
|
2514
|
-
collectionAddress: `0x${string}`;
|
|
2515
|
-
collectibleId: string;
|
|
2516
|
-
filter?: {
|
|
2517
|
-
currencies?: string[] | undefined;
|
|
2518
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2519
|
-
createdBy?: string[] | undefined;
|
|
2520
|
-
} | undefined;
|
|
2521
|
-
query?: {
|
|
2522
|
-
enabled?: boolean | undefined;
|
|
2523
|
-
} | undefined;
|
|
2524
|
-
})[]>, "queryFn"> & {
|
|
2525
|
-
queryFn?: _tanstack_react_query.QueryFunction<GetCountOfListingsForCollectibleReturn, ("collectable" | "listingsCount" | SdkConfig | {
|
|
2526
|
-
chainId: number;
|
|
2527
|
-
collectionAddress: `0x${string}`;
|
|
2528
|
-
collectibleId: string;
|
|
2529
|
-
filter?: {
|
|
2530
|
-
currencies?: string[] | undefined;
|
|
2531
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2532
|
-
createdBy?: string[] | undefined;
|
|
2533
|
-
} | undefined;
|
|
2534
|
-
query?: {
|
|
2535
|
-
enabled?: boolean | undefined;
|
|
2536
|
-
} | undefined;
|
|
2537
|
-
})[], never> | undefined;
|
|
2538
|
-
} & {
|
|
2539
|
-
queryKey: ("collectable" | "listingsCount" | SdkConfig | {
|
|
2540
|
-
chainId: number;
|
|
2541
|
-
collectionAddress: `0x${string}`;
|
|
2542
|
-
collectibleId: string;
|
|
2543
|
-
filter?: {
|
|
2544
|
-
currencies?: string[] | undefined;
|
|
2545
|
-
marketplace?: MarketplaceKind[] | undefined;
|
|
2546
|
-
createdBy?: string[] | undefined;
|
|
2547
|
-
} | undefined;
|
|
2548
|
-
query?: {
|
|
2549
|
-
enabled?: boolean | undefined;
|
|
2550
|
-
} | undefined;
|
|
2551
|
-
})[] & {
|
|
2552
|
-
[dataTagSymbol]: GetCountOfListingsForCollectibleReturn;
|
|
2553
|
-
[dataTagErrorSymbol]: Error;
|
|
2554
|
-
};
|
|
2555
|
-
};
|
|
2556
|
-
declare const useCountListingsForCollectible: (args: UseCountListingsForCollectibleArgs) => _tanstack_react_query.UseQueryResult<GetCountOfListingsForCollectibleReturn, Error>;
|
|
2557
|
-
|
|
2558
|
-
declare function useLowestListing(args: UseLowestListingArgs): _tanstack_react_query.UseQueryResult<Order | null | undefined, Error>;
|
|
2559
|
-
|
|
2560
|
-
declare const useMarketplaceConfig: () => _tanstack_react_query.UseQueryResult<MarketplaceConfig, Error>;
|
|
2561
|
-
|
|
2562
|
-
declare const UseRoyaltySchema: z.ZodObject<{
|
|
2563
|
-
chainId: z.ZodNumber;
|
|
2564
|
-
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2565
|
-
collectibleId: z.ZodString;
|
|
2566
|
-
query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2567
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2568
|
-
}, "strip", z.ZodTypeAny, {
|
|
2569
|
-
enabled?: boolean | undefined;
|
|
2570
|
-
}, {
|
|
2571
|
-
enabled?: boolean | undefined;
|
|
2572
|
-
}>>>;
|
|
2573
|
-
}, "strip", z.ZodTypeAny, {
|
|
2574
|
-
chainId: number;
|
|
2575
|
-
collectionAddress: `0x${string}`;
|
|
2576
|
-
collectibleId: string;
|
|
2577
|
-
query?: {
|
|
2578
|
-
enabled?: boolean | undefined;
|
|
2579
|
-
} | undefined;
|
|
2580
|
-
}, {
|
|
2581
|
-
chainId: number;
|
|
2582
|
-
collectionAddress: string;
|
|
2583
|
-
collectibleId: string;
|
|
2584
|
-
query?: {
|
|
2585
|
-
enabled?: boolean | undefined;
|
|
2586
|
-
} | undefined;
|
|
2587
|
-
}>;
|
|
2588
|
-
type UseRoyaltyArgs = z.infer<typeof UseRoyaltySchema>;
|
|
2589
|
-
declare const useRoyalty: (args: UseRoyaltyArgs) => {
|
|
2590
|
-
data: {
|
|
2591
|
-
percentage: bigint;
|
|
2592
|
-
recipient: `0x${string}`;
|
|
2593
|
-
} | null;
|
|
2594
|
-
error: viem.ReadContractErrorType;
|
|
2595
|
-
isError: true;
|
|
2596
|
-
isPending: false;
|
|
2597
|
-
isLoading: false;
|
|
2598
|
-
isLoadingError: false;
|
|
2599
|
-
isRefetchError: true;
|
|
2600
|
-
isSuccess: false;
|
|
2601
|
-
isPlaceholderData: false;
|
|
2602
|
-
status: "error";
|
|
2603
|
-
dataUpdatedAt: number;
|
|
2604
|
-
errorUpdatedAt: number;
|
|
2605
|
-
failureCount: number;
|
|
2606
|
-
failureReason: viem.ReadContractErrorType | null;
|
|
2607
|
-
errorUpdateCount: number;
|
|
2608
|
-
isFetched: boolean;
|
|
2609
|
-
isFetchedAfterMount: boolean;
|
|
2610
|
-
isFetching: boolean;
|
|
2611
|
-
isInitialLoading: boolean;
|
|
2612
|
-
isPaused: boolean;
|
|
2613
|
-
isRefetching: boolean;
|
|
2614
|
-
isStale: boolean;
|
|
2615
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<readonly [`0x${string}`, bigint], viem.ReadContractErrorType>>;
|
|
2616
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2617
|
-
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
2618
|
-
queryKey: _tanstack_react_query.QueryKey;
|
|
2619
|
-
} | {
|
|
2620
|
-
data: {
|
|
2621
|
-
percentage: bigint;
|
|
2622
|
-
recipient: `0x${string}`;
|
|
2623
|
-
} | null;
|
|
2624
|
-
error: null;
|
|
2625
|
-
isError: false;
|
|
2626
|
-
isPending: false;
|
|
2627
|
-
isLoading: false;
|
|
2628
|
-
isLoadingError: false;
|
|
2629
|
-
isRefetchError: false;
|
|
2630
|
-
isSuccess: true;
|
|
2631
|
-
isPlaceholderData: false;
|
|
2632
|
-
status: "success";
|
|
2633
|
-
dataUpdatedAt: number;
|
|
2634
|
-
errorUpdatedAt: number;
|
|
2635
|
-
failureCount: number;
|
|
2636
|
-
failureReason: viem.ReadContractErrorType | null;
|
|
2637
|
-
errorUpdateCount: number;
|
|
2638
|
-
isFetched: boolean;
|
|
2639
|
-
isFetchedAfterMount: boolean;
|
|
2640
|
-
isFetching: boolean;
|
|
2641
|
-
isInitialLoading: boolean;
|
|
2642
|
-
isPaused: boolean;
|
|
2643
|
-
isRefetching: boolean;
|
|
2644
|
-
isStale: boolean;
|
|
2645
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<readonly [`0x${string}`, bigint], viem.ReadContractErrorType>>;
|
|
2646
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2647
|
-
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
2648
|
-
queryKey: _tanstack_react_query.QueryKey;
|
|
2649
|
-
} | {
|
|
2650
|
-
data: {
|
|
2651
|
-
percentage: bigint;
|
|
2652
|
-
recipient: `0x${string}`;
|
|
2653
|
-
} | null;
|
|
2654
|
-
error: viem.ReadContractErrorType;
|
|
2655
|
-
isError: true;
|
|
2656
|
-
isPending: false;
|
|
2657
|
-
isLoading: false;
|
|
2658
|
-
isLoadingError: true;
|
|
2659
|
-
isRefetchError: false;
|
|
2660
|
-
isSuccess: false;
|
|
2661
|
-
isPlaceholderData: false;
|
|
2662
|
-
status: "error";
|
|
2663
|
-
dataUpdatedAt: number;
|
|
2664
|
-
errorUpdatedAt: number;
|
|
2665
|
-
failureCount: number;
|
|
2666
|
-
failureReason: viem.ReadContractErrorType | null;
|
|
2667
|
-
errorUpdateCount: number;
|
|
2668
|
-
isFetched: boolean;
|
|
2669
|
-
isFetchedAfterMount: boolean;
|
|
2670
|
-
isFetching: boolean;
|
|
2671
|
-
isInitialLoading: boolean;
|
|
2672
|
-
isPaused: boolean;
|
|
2673
|
-
isRefetching: boolean;
|
|
2674
|
-
isStale: boolean;
|
|
2675
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<readonly [`0x${string}`, bigint], viem.ReadContractErrorType>>;
|
|
2676
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2677
|
-
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
2678
|
-
queryKey: _tanstack_react_query.QueryKey;
|
|
2679
|
-
} | {
|
|
2680
|
-
data: {
|
|
2681
|
-
percentage: bigint;
|
|
2682
|
-
recipient: `0x${string}`;
|
|
2683
|
-
} | null;
|
|
2684
|
-
error: null;
|
|
2685
|
-
isError: false;
|
|
2686
|
-
isPending: true;
|
|
2687
|
-
isLoading: true;
|
|
2688
|
-
isLoadingError: false;
|
|
2689
|
-
isRefetchError: false;
|
|
2690
|
-
isSuccess: false;
|
|
2691
|
-
isPlaceholderData: false;
|
|
2692
|
-
status: "pending";
|
|
2693
|
-
dataUpdatedAt: number;
|
|
2694
|
-
errorUpdatedAt: number;
|
|
2695
|
-
failureCount: number;
|
|
2696
|
-
failureReason: viem.ReadContractErrorType | null;
|
|
2697
|
-
errorUpdateCount: number;
|
|
2698
|
-
isFetched: boolean;
|
|
2699
|
-
isFetchedAfterMount: boolean;
|
|
2700
|
-
isFetching: boolean;
|
|
2701
|
-
isInitialLoading: boolean;
|
|
2702
|
-
isPaused: boolean;
|
|
2703
|
-
isRefetching: boolean;
|
|
2704
|
-
isStale: boolean;
|
|
2705
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<readonly [`0x${string}`, bigint], viem.ReadContractErrorType>>;
|
|
2706
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2707
|
-
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
2708
|
-
queryKey: _tanstack_react_query.QueryKey;
|
|
2709
|
-
} | {
|
|
2710
|
-
data: {
|
|
2711
|
-
percentage: bigint;
|
|
2712
|
-
recipient: `0x${string}`;
|
|
2713
|
-
} | null;
|
|
2714
|
-
error: null;
|
|
2715
|
-
isError: false;
|
|
2716
|
-
isPending: true;
|
|
2717
|
-
isLoadingError: false;
|
|
2718
|
-
isRefetchError: false;
|
|
2719
|
-
isSuccess: false;
|
|
2720
|
-
isPlaceholderData: false;
|
|
2721
|
-
status: "pending";
|
|
2722
|
-
dataUpdatedAt: number;
|
|
2723
|
-
errorUpdatedAt: number;
|
|
2724
|
-
failureCount: number;
|
|
2725
|
-
failureReason: viem.ReadContractErrorType | null;
|
|
2726
|
-
errorUpdateCount: number;
|
|
2727
|
-
isFetched: boolean;
|
|
2728
|
-
isFetchedAfterMount: boolean;
|
|
2729
|
-
isFetching: boolean;
|
|
2730
|
-
isLoading: boolean;
|
|
2731
|
-
isInitialLoading: boolean;
|
|
2732
|
-
isPaused: boolean;
|
|
2733
|
-
isRefetching: boolean;
|
|
2734
|
-
isStale: boolean;
|
|
2735
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<readonly [`0x${string}`, bigint], viem.ReadContractErrorType>>;
|
|
2736
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2737
|
-
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
2738
|
-
queryKey: _tanstack_react_query.QueryKey;
|
|
2739
|
-
} | {
|
|
2740
|
-
data: {
|
|
2741
|
-
percentage: bigint;
|
|
2742
|
-
recipient: `0x${string}`;
|
|
2743
|
-
} | null;
|
|
2744
|
-
isError: false;
|
|
2745
|
-
error: null;
|
|
2746
|
-
isPending: false;
|
|
2747
|
-
isLoading: false;
|
|
2748
|
-
isLoadingError: false;
|
|
2749
|
-
isRefetchError: false;
|
|
2750
|
-
isSuccess: true;
|
|
2751
|
-
isPlaceholderData: true;
|
|
2752
|
-
status: "success";
|
|
2753
|
-
dataUpdatedAt: number;
|
|
2754
|
-
errorUpdatedAt: number;
|
|
2755
|
-
failureCount: number;
|
|
2756
|
-
failureReason: viem.ReadContractErrorType | null;
|
|
2757
|
-
errorUpdateCount: number;
|
|
2758
|
-
isFetched: boolean;
|
|
2759
|
-
isFetchedAfterMount: boolean;
|
|
2760
|
-
isFetching: boolean;
|
|
2761
|
-
isInitialLoading: boolean;
|
|
2762
|
-
isPaused: boolean;
|
|
2763
|
-
isRefetching: boolean;
|
|
2764
|
-
isStale: boolean;
|
|
2765
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<readonly [`0x${string}`, bigint], viem.ReadContractErrorType>>;
|
|
2766
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2767
|
-
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
2768
|
-
queryKey: _tanstack_react_query.QueryKey;
|
|
2769
|
-
};
|
|
2770
|
-
|
|
2771
|
-
type UseGenerateListingTransactionArgs = {
|
|
2772
|
-
chainId: number;
|
|
2773
|
-
onSuccess?: (data?: Step[]) => void;
|
|
2774
|
-
};
|
|
2775
|
-
|
|
2776
|
-
type CreateReqWithDateExpiry$1 = Omit<CreateReq, 'expiry'> & {
|
|
2777
|
-
expiry: Date;
|
|
2778
|
-
};
|
|
2779
|
-
type GenerateListingTransactionProps = Omit<GenerateListingTransactionArgs, 'listing'> & {
|
|
2780
|
-
listing: CreateReqWithDateExpiry$1;
|
|
2781
|
-
};
|
|
2782
|
-
declare const generateListingTransaction: (params: GenerateListingTransactionProps, config: SdkConfig, chainId: number) => Promise<Step[]>;
|
|
2783
|
-
declare const useGenerateListingTransaction: (params: UseGenerateListingTransactionArgs) => {
|
|
2784
|
-
generateListingTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
2785
|
-
generateListingTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
2786
|
-
data: undefined;
|
|
2787
|
-
variables: undefined;
|
|
2788
|
-
error: null;
|
|
2789
|
-
isError: false;
|
|
2790
|
-
isIdle: true;
|
|
2791
|
-
isPending: false;
|
|
2792
|
-
isSuccess: false;
|
|
2793
|
-
status: "idle";
|
|
2794
|
-
reset: () => void;
|
|
2795
|
-
context: unknown;
|
|
2796
|
-
failureCount: number;
|
|
2797
|
-
failureReason: Error | null;
|
|
2798
|
-
isPaused: boolean;
|
|
2799
|
-
submittedAt: number;
|
|
2800
|
-
} | {
|
|
2801
|
-
generateListingTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
2802
|
-
generateListingTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
2803
|
-
data: undefined;
|
|
2804
|
-
variables: GenerateListingTransactionProps;
|
|
2805
|
-
error: null;
|
|
2806
|
-
isError: false;
|
|
2807
|
-
isIdle: false;
|
|
2808
|
-
isPending: true;
|
|
2809
|
-
isSuccess: false;
|
|
2810
|
-
status: "pending";
|
|
2811
|
-
reset: () => void;
|
|
2812
|
-
context: unknown;
|
|
2813
|
-
failureCount: number;
|
|
2814
|
-
failureReason: Error | null;
|
|
2815
|
-
isPaused: boolean;
|
|
2816
|
-
submittedAt: number;
|
|
2817
|
-
} | {
|
|
2818
|
-
generateListingTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
2819
|
-
generateListingTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
2820
|
-
data: undefined;
|
|
2821
|
-
error: Error;
|
|
2822
|
-
variables: GenerateListingTransactionProps;
|
|
2823
|
-
isError: true;
|
|
2824
|
-
isIdle: false;
|
|
2825
|
-
isPending: false;
|
|
2826
|
-
isSuccess: false;
|
|
2827
|
-
status: "error";
|
|
2828
|
-
reset: () => void;
|
|
2829
|
-
context: unknown;
|
|
2830
|
-
failureCount: number;
|
|
2831
|
-
failureReason: Error | null;
|
|
2832
|
-
isPaused: boolean;
|
|
2833
|
-
submittedAt: number;
|
|
2834
|
-
} | {
|
|
2835
|
-
generateListingTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
2836
|
-
generateListingTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
2837
|
-
data: Step[];
|
|
2838
|
-
error: null;
|
|
2839
|
-
variables: GenerateListingTransactionProps;
|
|
2840
|
-
isError: false;
|
|
2841
|
-
isIdle: false;
|
|
2842
|
-
isPending: false;
|
|
2843
|
-
isSuccess: true;
|
|
2844
|
-
status: "success";
|
|
2845
|
-
reset: () => void;
|
|
2846
|
-
context: unknown;
|
|
2847
|
-
failureCount: number;
|
|
2848
|
-
failureReason: Error | null;
|
|
2849
|
-
isPaused: boolean;
|
|
2850
|
-
submittedAt: number;
|
|
2851
|
-
};
|
|
2852
|
-
|
|
2853
|
-
type UseGenerateOfferTransactionArgs = {
|
|
2854
|
-
chainId: number;
|
|
2855
|
-
onSuccess?: (data?: Step[]) => void;
|
|
2856
|
-
};
|
|
2857
|
-
type CreateReqWithDateExpiry = Omit<CreateReq, 'expiry'> & {
|
|
2858
|
-
expiry: Date;
|
|
2859
|
-
};
|
|
2860
|
-
type GenerateOfferTransactionProps = Omit<GenerateOfferTransactionArgs, 'offer'> & {
|
|
2861
|
-
offer: CreateReqWithDateExpiry;
|
|
2862
|
-
};
|
|
2863
|
-
declare const generateOfferTransaction: (params: GenerateOfferTransactionProps, config: SdkConfig, chainId: number, walletKind?: WalletKind) => Promise<Step[]>;
|
|
2864
|
-
declare const useGenerateOfferTransaction: (params: UseGenerateOfferTransactionArgs) => {
|
|
2865
|
-
generateOfferTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
2866
|
-
generateOfferTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
2867
|
-
data: undefined;
|
|
2868
|
-
variables: undefined;
|
|
2869
|
-
error: null;
|
|
2870
|
-
isError: false;
|
|
2871
|
-
isIdle: true;
|
|
2872
|
-
isPending: false;
|
|
2873
|
-
isSuccess: false;
|
|
2874
|
-
status: "idle";
|
|
2875
|
-
reset: () => void;
|
|
2876
|
-
context: unknown;
|
|
2877
|
-
failureCount: number;
|
|
2878
|
-
failureReason: Error | null;
|
|
2879
|
-
isPaused: boolean;
|
|
2880
|
-
submittedAt: number;
|
|
2881
|
-
} | {
|
|
2882
|
-
generateOfferTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
2883
|
-
generateOfferTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
2884
|
-
data: undefined;
|
|
2885
|
-
variables: GenerateOfferTransactionProps;
|
|
2886
|
-
error: null;
|
|
2887
|
-
isError: false;
|
|
2888
|
-
isIdle: false;
|
|
2889
|
-
isPending: true;
|
|
2890
|
-
isSuccess: false;
|
|
2891
|
-
status: "pending";
|
|
2892
|
-
reset: () => void;
|
|
2893
|
-
context: unknown;
|
|
2894
|
-
failureCount: number;
|
|
2895
|
-
failureReason: Error | null;
|
|
2896
|
-
isPaused: boolean;
|
|
2897
|
-
submittedAt: number;
|
|
2898
|
-
} | {
|
|
2899
|
-
generateOfferTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
2900
|
-
generateOfferTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
2901
|
-
data: undefined;
|
|
2902
|
-
error: Error;
|
|
2903
|
-
variables: GenerateOfferTransactionProps;
|
|
2904
|
-
isError: true;
|
|
2905
|
-
isIdle: false;
|
|
2906
|
-
isPending: false;
|
|
2907
|
-
isSuccess: false;
|
|
2908
|
-
status: "error";
|
|
2909
|
-
reset: () => void;
|
|
2910
|
-
context: unknown;
|
|
2911
|
-
failureCount: number;
|
|
2912
|
-
failureReason: Error | null;
|
|
2913
|
-
isPaused: boolean;
|
|
2914
|
-
submittedAt: number;
|
|
2915
|
-
} | {
|
|
2916
|
-
generateOfferTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
2917
|
-
generateOfferTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
2918
|
-
data: Step[];
|
|
2919
|
-
error: null;
|
|
2920
|
-
variables: GenerateOfferTransactionProps;
|
|
2921
|
-
isError: false;
|
|
2922
|
-
isIdle: false;
|
|
2923
|
-
isPending: false;
|
|
2924
|
-
isSuccess: true;
|
|
2925
|
-
status: "success";
|
|
2926
|
-
reset: () => void;
|
|
2927
|
-
context: unknown;
|
|
2928
|
-
failureCount: number;
|
|
2929
|
-
failureReason: Error | null;
|
|
2930
|
-
isPaused: boolean;
|
|
2931
|
-
submittedAt: number;
|
|
2932
|
-
};
|
|
2933
|
-
|
|
2934
|
-
declare const UserGeneratSellTransactionArgsSchema: z.ZodObject<{
|
|
2935
|
-
chainId: z.ZodNumber;
|
|
2936
|
-
onSuccess: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2937
|
-
id: z.ZodNativeEnum<typeof StepType>;
|
|
2938
|
-
data: z.ZodOptional<z.ZodString>;
|
|
2939
|
-
to: z.ZodOptional<z.ZodString>;
|
|
2940
|
-
value: z.ZodOptional<z.ZodString>;
|
|
2941
|
-
price: z.ZodOptional<z.ZodString>;
|
|
2942
|
-
signature: z.ZodOptional<z.ZodObject<{
|
|
2943
|
-
domain: z.ZodObject<{
|
|
2944
|
-
name: z.ZodString;
|
|
2945
|
-
version: z.ZodString;
|
|
2946
|
-
chainId: z.ZodNumber;
|
|
2947
|
-
verifyingContract: z.ZodString;
|
|
2948
|
-
}, "strip", z.ZodTypeAny, {
|
|
2949
|
-
chainId: number;
|
|
2950
|
-
version: string;
|
|
2951
|
-
name: string;
|
|
2952
|
-
verifyingContract: string;
|
|
2953
|
-
}, {
|
|
2954
|
-
chainId: number;
|
|
2955
|
-
version: string;
|
|
2956
|
-
name: string;
|
|
2957
|
-
verifyingContract: string;
|
|
2958
|
-
}>;
|
|
2959
|
-
types: z.ZodAny;
|
|
2960
|
-
primaryType: z.ZodString;
|
|
2961
|
-
value: z.ZodAny;
|
|
2962
|
-
}, "strip", z.ZodTypeAny, {
|
|
2963
|
-
domain: {
|
|
2964
|
-
chainId: number;
|
|
2965
|
-
version: string;
|
|
2966
|
-
name: string;
|
|
2967
|
-
verifyingContract: string;
|
|
2968
|
-
};
|
|
2969
|
-
primaryType: string;
|
|
2970
|
-
value?: any;
|
|
2971
|
-
types?: any;
|
|
2972
|
-
}, {
|
|
2973
|
-
domain: {
|
|
2974
|
-
chainId: number;
|
|
2975
|
-
version: string;
|
|
2976
|
-
name: string;
|
|
2977
|
-
verifyingContract: string;
|
|
2978
|
-
};
|
|
2979
|
-
primaryType: string;
|
|
2980
|
-
value?: any;
|
|
2981
|
-
types?: any;
|
|
2982
|
-
}>>;
|
|
2983
|
-
post: z.ZodOptional<z.ZodObject<{
|
|
2984
|
-
endpoint: z.ZodString;
|
|
2985
|
-
method: z.ZodString;
|
|
2986
|
-
body: z.ZodAny;
|
|
2987
|
-
}, "strip", z.ZodTypeAny, {
|
|
2988
|
-
method: string;
|
|
2989
|
-
endpoint: string;
|
|
2990
|
-
body?: any;
|
|
2991
|
-
}, {
|
|
2992
|
-
method: string;
|
|
2993
|
-
endpoint: string;
|
|
2994
|
-
body?: any;
|
|
2995
|
-
}>>;
|
|
2996
|
-
method: z.ZodOptional<z.ZodString>;
|
|
2997
|
-
endpoint: z.ZodOptional<z.ZodString>;
|
|
2998
|
-
}, "strip", z.ZodTypeAny, {
|
|
2999
|
-
id: StepType;
|
|
3000
|
-
method?: string | undefined;
|
|
3001
|
-
value?: string | undefined;
|
|
3002
|
-
data?: string | undefined;
|
|
3003
|
-
to?: string | undefined;
|
|
3004
|
-
endpoint?: string | undefined;
|
|
3005
|
-
price?: string | undefined;
|
|
3006
|
-
signature?: {
|
|
3007
|
-
domain: {
|
|
3008
|
-
chainId: number;
|
|
3009
|
-
version: string;
|
|
3010
|
-
name: string;
|
|
3011
|
-
verifyingContract: string;
|
|
3012
|
-
};
|
|
3013
|
-
primaryType: string;
|
|
3014
|
-
value?: any;
|
|
3015
|
-
types?: any;
|
|
3016
|
-
} | undefined;
|
|
3017
|
-
post?: {
|
|
3018
|
-
method: string;
|
|
3019
|
-
endpoint: string;
|
|
3020
|
-
body?: any;
|
|
3021
|
-
} | undefined;
|
|
3022
|
-
}, {
|
|
3023
|
-
id: StepType;
|
|
3024
|
-
method?: string | undefined;
|
|
3025
|
-
value?: string | undefined;
|
|
3026
|
-
data?: string | undefined;
|
|
3027
|
-
to?: string | undefined;
|
|
3028
|
-
endpoint?: string | undefined;
|
|
3029
|
-
price?: string | undefined;
|
|
3030
|
-
signature?: {
|
|
3031
|
-
domain: {
|
|
3032
|
-
chainId: number;
|
|
3033
|
-
version: string;
|
|
3034
|
-
name: string;
|
|
3035
|
-
verifyingContract: string;
|
|
3036
|
-
};
|
|
3037
|
-
primaryType: string;
|
|
3038
|
-
value?: any;
|
|
3039
|
-
types?: any;
|
|
3040
|
-
} | undefined;
|
|
3041
|
-
post?: {
|
|
3042
|
-
method: string;
|
|
3043
|
-
endpoint: string;
|
|
3044
|
-
body?: any;
|
|
3045
|
-
} | undefined;
|
|
3046
|
-
}>, "many">>], z.ZodUnknown>, z.ZodUnknown>>;
|
|
3047
|
-
}, "strip", z.ZodTypeAny, {
|
|
3048
|
-
chainId: number;
|
|
3049
|
-
onSuccess?: ((args_0: {
|
|
3050
|
-
id: StepType;
|
|
3051
|
-
method?: string | undefined;
|
|
3052
|
-
value?: string | undefined;
|
|
3053
|
-
data?: string | undefined;
|
|
3054
|
-
to?: string | undefined;
|
|
3055
|
-
endpoint?: string | undefined;
|
|
3056
|
-
price?: string | undefined;
|
|
3057
|
-
signature?: {
|
|
3058
|
-
domain: {
|
|
3059
|
-
chainId: number;
|
|
3060
|
-
version: string;
|
|
3061
|
-
name: string;
|
|
3062
|
-
verifyingContract: string;
|
|
3063
|
-
};
|
|
3064
|
-
primaryType: string;
|
|
3065
|
-
value?: any;
|
|
3066
|
-
types?: any;
|
|
3067
|
-
} | undefined;
|
|
3068
|
-
post?: {
|
|
3069
|
-
method: string;
|
|
3070
|
-
endpoint: string;
|
|
3071
|
-
body?: any;
|
|
3072
|
-
} | undefined;
|
|
3073
|
-
}[] | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
3074
|
-
}, {
|
|
3075
|
-
chainId: number;
|
|
3076
|
-
onSuccess?: ((args_0: {
|
|
3077
|
-
id: StepType;
|
|
3078
|
-
method?: string | undefined;
|
|
3079
|
-
value?: string | undefined;
|
|
3080
|
-
data?: string | undefined;
|
|
3081
|
-
to?: string | undefined;
|
|
3082
|
-
endpoint?: string | undefined;
|
|
3083
|
-
price?: string | undefined;
|
|
3084
|
-
signature?: {
|
|
3085
|
-
domain: {
|
|
3086
|
-
chainId: number;
|
|
3087
|
-
version: string;
|
|
3088
|
-
name: string;
|
|
3089
|
-
verifyingContract: string;
|
|
3090
|
-
};
|
|
3091
|
-
primaryType: string;
|
|
3092
|
-
value?: any;
|
|
3093
|
-
types?: any;
|
|
3094
|
-
} | undefined;
|
|
3095
|
-
post?: {
|
|
3096
|
-
method: string;
|
|
3097
|
-
endpoint: string;
|
|
3098
|
-
body?: any;
|
|
3099
|
-
} | undefined;
|
|
3100
|
-
}[] | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
3101
|
-
}>;
|
|
3102
|
-
type UseGenerateSellTransactionArgs = z.infer<typeof UserGeneratSellTransactionArgsSchema>;
|
|
3103
|
-
declare const generateSellTransaction: (args: GenerateSellTransactionArgs, config: SdkConfig, chainId: number) => Promise<Step[]>;
|
|
3104
|
-
declare const useGenerateSellTransaction: (params: UseGenerateSellTransactionArgs) => {
|
|
3105
|
-
generateSellTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
3106
|
-
generateSellTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
3107
|
-
data: undefined;
|
|
3108
|
-
variables: undefined;
|
|
3109
|
-
error: null;
|
|
3110
|
-
isError: false;
|
|
3111
|
-
isIdle: true;
|
|
3112
|
-
isPending: false;
|
|
3113
|
-
isSuccess: false;
|
|
3114
|
-
status: "idle";
|
|
3115
|
-
reset: () => void;
|
|
3116
|
-
context: unknown;
|
|
3117
|
-
failureCount: number;
|
|
3118
|
-
failureReason: Error | null;
|
|
3119
|
-
isPaused: boolean;
|
|
3120
|
-
submittedAt: number;
|
|
3121
|
-
} | {
|
|
3122
|
-
generateSellTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
3123
|
-
generateSellTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
3124
|
-
data: undefined;
|
|
3125
|
-
variables: GenerateSellTransactionArgs;
|
|
3126
|
-
error: null;
|
|
3127
|
-
isError: false;
|
|
3128
|
-
isIdle: false;
|
|
3129
|
-
isPending: true;
|
|
3130
|
-
isSuccess: false;
|
|
3131
|
-
status: "pending";
|
|
3132
|
-
reset: () => void;
|
|
3133
|
-
context: unknown;
|
|
3134
|
-
failureCount: number;
|
|
3135
|
-
failureReason: Error | null;
|
|
3136
|
-
isPaused: boolean;
|
|
3137
|
-
submittedAt: number;
|
|
3138
|
-
} | {
|
|
3139
|
-
generateSellTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
3140
|
-
generateSellTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
3141
|
-
data: undefined;
|
|
3142
|
-
error: Error;
|
|
3143
|
-
variables: GenerateSellTransactionArgs;
|
|
3144
|
-
isError: true;
|
|
3145
|
-
isIdle: false;
|
|
3146
|
-
isPending: false;
|
|
3147
|
-
isSuccess: false;
|
|
3148
|
-
status: "error";
|
|
3149
|
-
reset: () => void;
|
|
3150
|
-
context: unknown;
|
|
3151
|
-
failureCount: number;
|
|
3152
|
-
failureReason: Error | null;
|
|
3153
|
-
isPaused: boolean;
|
|
3154
|
-
submittedAt: number;
|
|
3155
|
-
} | {
|
|
3156
|
-
generateSellTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
3157
|
-
generateSellTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
3158
|
-
data: Step[];
|
|
3159
|
-
error: null;
|
|
3160
|
-
variables: GenerateSellTransactionArgs;
|
|
3161
|
-
isError: false;
|
|
3162
|
-
isIdle: false;
|
|
3163
|
-
isPending: false;
|
|
3164
|
-
isSuccess: true;
|
|
3165
|
-
status: "success";
|
|
3166
|
-
reset: () => void;
|
|
3167
|
-
context: unknown;
|
|
3168
|
-
failureCount: number;
|
|
3169
|
-
failureReason: Error | null;
|
|
3170
|
-
isPaused: boolean;
|
|
3171
|
-
submittedAt: number;
|
|
3172
|
-
};
|
|
3173
|
-
|
|
3174
|
-
declare const UserGenerateCancelTransactionArgsSchema: z.ZodObject<{
|
|
3175
|
-
chainId: z.ZodNumber;
|
|
3176
|
-
onSuccess: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3177
|
-
id: z.ZodNativeEnum<typeof StepType>;
|
|
3178
|
-
data: z.ZodOptional<z.ZodString>;
|
|
3179
|
-
to: z.ZodOptional<z.ZodString>;
|
|
3180
|
-
value: z.ZodOptional<z.ZodString>;
|
|
3181
|
-
price: z.ZodOptional<z.ZodString>;
|
|
3182
|
-
signature: z.ZodOptional<z.ZodObject<{
|
|
3183
|
-
domain: z.ZodObject<{
|
|
3184
|
-
name: z.ZodString;
|
|
3185
|
-
version: z.ZodString;
|
|
3186
|
-
chainId: z.ZodNumber;
|
|
3187
|
-
verifyingContract: z.ZodString;
|
|
3188
|
-
}, "strip", z.ZodTypeAny, {
|
|
3189
|
-
chainId: number;
|
|
3190
|
-
version: string;
|
|
3191
|
-
name: string;
|
|
3192
|
-
verifyingContract: string;
|
|
3193
|
-
}, {
|
|
3194
|
-
chainId: number;
|
|
3195
|
-
version: string;
|
|
3196
|
-
name: string;
|
|
3197
|
-
verifyingContract: string;
|
|
3198
|
-
}>;
|
|
3199
|
-
types: z.ZodAny;
|
|
3200
|
-
primaryType: z.ZodString;
|
|
3201
|
-
value: z.ZodAny;
|
|
3202
|
-
}, "strip", z.ZodTypeAny, {
|
|
3203
|
-
domain: {
|
|
3204
|
-
chainId: number;
|
|
3205
|
-
version: string;
|
|
3206
|
-
name: string;
|
|
3207
|
-
verifyingContract: string;
|
|
3208
|
-
};
|
|
3209
|
-
primaryType: string;
|
|
3210
|
-
value?: any;
|
|
3211
|
-
types?: any;
|
|
3212
|
-
}, {
|
|
3213
|
-
domain: {
|
|
3214
|
-
chainId: number;
|
|
3215
|
-
version: string;
|
|
3216
|
-
name: string;
|
|
3217
|
-
verifyingContract: string;
|
|
3218
|
-
};
|
|
3219
|
-
primaryType: string;
|
|
3220
|
-
value?: any;
|
|
3221
|
-
types?: any;
|
|
3222
|
-
}>>;
|
|
3223
|
-
post: z.ZodOptional<z.ZodObject<{
|
|
3224
|
-
endpoint: z.ZodString;
|
|
3225
|
-
method: z.ZodString;
|
|
3226
|
-
body: z.ZodAny;
|
|
3227
|
-
}, "strip", z.ZodTypeAny, {
|
|
3228
|
-
method: string;
|
|
3229
|
-
endpoint: string;
|
|
3230
|
-
body?: any;
|
|
3231
|
-
}, {
|
|
3232
|
-
method: string;
|
|
3233
|
-
endpoint: string;
|
|
3234
|
-
body?: any;
|
|
3235
|
-
}>>;
|
|
3236
|
-
method: z.ZodOptional<z.ZodString>;
|
|
3237
|
-
endpoint: z.ZodOptional<z.ZodString>;
|
|
3238
|
-
}, "strip", z.ZodTypeAny, {
|
|
3239
|
-
id: StepType;
|
|
3240
|
-
method?: string | undefined;
|
|
3241
|
-
value?: string | undefined;
|
|
3242
|
-
data?: string | undefined;
|
|
3243
|
-
to?: string | undefined;
|
|
3244
|
-
endpoint?: string | undefined;
|
|
3245
|
-
price?: string | undefined;
|
|
3246
|
-
signature?: {
|
|
3247
|
-
domain: {
|
|
3248
|
-
chainId: number;
|
|
3249
|
-
version: string;
|
|
3250
|
-
name: string;
|
|
3251
|
-
verifyingContract: string;
|
|
3252
|
-
};
|
|
3253
|
-
primaryType: string;
|
|
3254
|
-
value?: any;
|
|
3255
|
-
types?: any;
|
|
3256
|
-
} | undefined;
|
|
3257
|
-
post?: {
|
|
3258
|
-
method: string;
|
|
3259
|
-
endpoint: string;
|
|
3260
|
-
body?: any;
|
|
3261
|
-
} | undefined;
|
|
3262
|
-
}, {
|
|
3263
|
-
id: StepType;
|
|
3264
|
-
method?: string | undefined;
|
|
3265
|
-
value?: string | undefined;
|
|
3266
|
-
data?: string | undefined;
|
|
3267
|
-
to?: string | undefined;
|
|
3268
|
-
endpoint?: string | undefined;
|
|
3269
|
-
price?: string | undefined;
|
|
3270
|
-
signature?: {
|
|
3271
|
-
domain: {
|
|
3272
|
-
chainId: number;
|
|
3273
|
-
version: string;
|
|
3274
|
-
name: string;
|
|
3275
|
-
verifyingContract: string;
|
|
3276
|
-
};
|
|
3277
|
-
primaryType: string;
|
|
3278
|
-
value?: any;
|
|
3279
|
-
types?: any;
|
|
3280
|
-
} | undefined;
|
|
3281
|
-
post?: {
|
|
3282
|
-
method: string;
|
|
3283
|
-
endpoint: string;
|
|
3284
|
-
body?: any;
|
|
3285
|
-
} | undefined;
|
|
3286
|
-
}>, "many">>], z.ZodUnknown>, z.ZodUnknown>>;
|
|
3287
|
-
}, "strip", z.ZodTypeAny, {
|
|
3288
|
-
chainId: number;
|
|
3289
|
-
onSuccess?: ((args_0: {
|
|
3290
|
-
id: StepType;
|
|
3291
|
-
method?: string | undefined;
|
|
3292
|
-
value?: string | undefined;
|
|
3293
|
-
data?: string | undefined;
|
|
3294
|
-
to?: string | undefined;
|
|
3295
|
-
endpoint?: string | undefined;
|
|
3296
|
-
price?: string | undefined;
|
|
3297
|
-
signature?: {
|
|
3298
|
-
domain: {
|
|
3299
|
-
chainId: number;
|
|
3300
|
-
version: string;
|
|
3301
|
-
name: string;
|
|
3302
|
-
verifyingContract: string;
|
|
3303
|
-
};
|
|
3304
|
-
primaryType: string;
|
|
3305
|
-
value?: any;
|
|
3306
|
-
types?: any;
|
|
3307
|
-
} | undefined;
|
|
3308
|
-
post?: {
|
|
3309
|
-
method: string;
|
|
3310
|
-
endpoint: string;
|
|
3311
|
-
body?: any;
|
|
3312
|
-
} | undefined;
|
|
3313
|
-
}[] | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
3314
|
-
}, {
|
|
3315
|
-
chainId: number;
|
|
3316
|
-
onSuccess?: ((args_0: {
|
|
3317
|
-
id: StepType;
|
|
3318
|
-
method?: string | undefined;
|
|
3319
|
-
value?: string | undefined;
|
|
3320
|
-
data?: string | undefined;
|
|
3321
|
-
to?: string | undefined;
|
|
3322
|
-
endpoint?: string | undefined;
|
|
3323
|
-
price?: string | undefined;
|
|
3324
|
-
signature?: {
|
|
3325
|
-
domain: {
|
|
3326
|
-
chainId: number;
|
|
3327
|
-
version: string;
|
|
3328
|
-
name: string;
|
|
3329
|
-
verifyingContract: string;
|
|
3330
|
-
};
|
|
3331
|
-
primaryType: string;
|
|
3332
|
-
value?: any;
|
|
3333
|
-
types?: any;
|
|
3334
|
-
} | undefined;
|
|
3335
|
-
post?: {
|
|
3336
|
-
method: string;
|
|
3337
|
-
endpoint: string;
|
|
3338
|
-
body?: any;
|
|
3339
|
-
} | undefined;
|
|
3340
|
-
}[] | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
3341
|
-
}>;
|
|
3342
|
-
type UseGenerateCancelTransactionArgs = z.infer<typeof UserGenerateCancelTransactionArgsSchema>;
|
|
3343
|
-
declare const generateCancelTransaction: (args: GenerateCancelTransactionArgs, config: SdkConfig, chainId: number) => Promise<Step[]>;
|
|
3344
|
-
declare const useGenerateCancelTransaction: (params: UseGenerateCancelTransactionArgs) => {
|
|
3345
|
-
generateCancelTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
|
|
3346
|
-
generateCancelTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
|
|
3347
|
-
data: undefined;
|
|
3348
|
-
variables: undefined;
|
|
3349
|
-
error: null;
|
|
3350
|
-
isError: false;
|
|
3351
|
-
isIdle: true;
|
|
3352
|
-
isPending: false;
|
|
3353
|
-
isSuccess: false;
|
|
3354
|
-
status: "idle";
|
|
3355
|
-
reset: () => void;
|
|
3356
|
-
context: unknown;
|
|
3357
|
-
failureCount: number;
|
|
3358
|
-
failureReason: Error | null;
|
|
3359
|
-
isPaused: boolean;
|
|
3360
|
-
submittedAt: number;
|
|
3361
|
-
} | {
|
|
3362
|
-
generateCancelTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
|
|
3363
|
-
generateCancelTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
|
|
3364
|
-
data: undefined;
|
|
3365
|
-
variables: GenerateCancelTransactionArgs;
|
|
3366
|
-
error: null;
|
|
3367
|
-
isError: false;
|
|
3368
|
-
isIdle: false;
|
|
3369
|
-
isPending: true;
|
|
3370
|
-
isSuccess: false;
|
|
3371
|
-
status: "pending";
|
|
3372
|
-
reset: () => void;
|
|
3373
|
-
context: unknown;
|
|
3374
|
-
failureCount: number;
|
|
3375
|
-
failureReason: Error | null;
|
|
3376
|
-
isPaused: boolean;
|
|
3377
|
-
submittedAt: number;
|
|
3378
|
-
} | {
|
|
3379
|
-
generateCancelTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
|
|
3380
|
-
generateCancelTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
|
|
3381
|
-
data: undefined;
|
|
3382
|
-
error: Error;
|
|
3383
|
-
variables: GenerateCancelTransactionArgs;
|
|
3384
|
-
isError: true;
|
|
3385
|
-
isIdle: false;
|
|
3386
|
-
isPending: false;
|
|
3387
|
-
isSuccess: false;
|
|
3388
|
-
status: "error";
|
|
3389
|
-
reset: () => void;
|
|
3390
|
-
context: unknown;
|
|
3391
|
-
failureCount: number;
|
|
3392
|
-
failureReason: Error | null;
|
|
3393
|
-
isPaused: boolean;
|
|
3394
|
-
submittedAt: number;
|
|
3395
|
-
} | {
|
|
3396
|
-
generateCancelTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
|
|
3397
|
-
generateCancelTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
|
|
3398
|
-
data: Step[];
|
|
3399
|
-
error: null;
|
|
3400
|
-
variables: GenerateCancelTransactionArgs;
|
|
3401
|
-
isError: false;
|
|
3402
|
-
isIdle: false;
|
|
3403
|
-
isPending: false;
|
|
3404
|
-
isSuccess: true;
|
|
3405
|
-
status: "success";
|
|
3406
|
-
reset: () => void;
|
|
3407
|
-
context: unknown;
|
|
3408
|
-
failureCount: number;
|
|
3409
|
-
failureReason: Error | null;
|
|
3410
|
-
isPaused: boolean;
|
|
3411
|
-
submittedAt: number;
|
|
3412
|
-
};
|
|
3413
|
-
|
|
3414
|
-
interface BaseTransferParams {
|
|
3415
|
-
chainId: number;
|
|
3416
|
-
collectionAddress: Hex;
|
|
3417
|
-
tokenId: string;
|
|
3418
|
-
receiverAddress: Address;
|
|
3419
|
-
}
|
|
3420
|
-
interface ERC721TransferParams extends BaseTransferParams {
|
|
3421
|
-
contractType: ContractType.ERC721;
|
|
3422
|
-
}
|
|
3423
|
-
interface ERC1155TransferParams extends BaseTransferParams {
|
|
3424
|
-
contractType: ContractType.ERC1155;
|
|
3425
|
-
quantity: string;
|
|
3426
|
-
}
|
|
3427
|
-
type TransferTokensParams = ERC721TransferParams | ERC1155TransferParams;
|
|
3428
|
-
declare const useTransferTokens: () => {
|
|
3429
|
-
transferTokensAsync: (params: TransferTokensParams) => Promise<`0x${string}`>;
|
|
3430
|
-
hash: `0x${string}` | undefined;
|
|
3431
|
-
transferring: boolean;
|
|
3432
|
-
transferFailed: boolean;
|
|
3433
|
-
transferSuccess: boolean;
|
|
3434
|
-
};
|
|
3435
|
-
|
|
3436
|
-
declare const UseCheckoutOptionsSchema: z.ZodObject<{
|
|
3437
|
-
chainId: z.ZodNumber;
|
|
3438
|
-
orders: z.ZodArray<z.ZodObject<{
|
|
3439
|
-
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
3440
|
-
orderId: z.ZodString;
|
|
3441
|
-
marketplace: z.ZodNativeEnum<typeof MarketplaceKind>;
|
|
3442
|
-
}, "strip", z.ZodTypeAny, {
|
|
3443
|
-
orderId: string;
|
|
3444
|
-
marketplace: MarketplaceKind;
|
|
3445
|
-
collectionAddress: `0x${string}`;
|
|
3446
|
-
}, {
|
|
3447
|
-
orderId: string;
|
|
3448
|
-
marketplace: MarketplaceKind;
|
|
3449
|
-
collectionAddress: string;
|
|
3450
|
-
}>, "many">;
|
|
3451
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
3452
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3453
|
-
}, "strip", z.ZodTypeAny, {
|
|
3454
|
-
enabled?: boolean | undefined;
|
|
3455
|
-
}, {
|
|
3456
|
-
enabled?: boolean | undefined;
|
|
3457
|
-
}>>;
|
|
3458
|
-
}, "strip", z.ZodTypeAny, {
|
|
3459
|
-
orders: {
|
|
3460
|
-
orderId: string;
|
|
3461
|
-
marketplace: MarketplaceKind;
|
|
3462
|
-
collectionAddress: `0x${string}`;
|
|
3463
|
-
}[];
|
|
3464
|
-
chainId: number;
|
|
3465
|
-
query?: {
|
|
3466
|
-
enabled?: boolean | undefined;
|
|
3467
|
-
} | undefined;
|
|
3468
|
-
}, {
|
|
3469
|
-
orders: {
|
|
3470
|
-
orderId: string;
|
|
3471
|
-
marketplace: MarketplaceKind;
|
|
3472
|
-
collectionAddress: string;
|
|
3473
|
-
}[];
|
|
3474
|
-
chainId: number;
|
|
3475
|
-
query?: {
|
|
3476
|
-
enabled?: boolean | undefined;
|
|
3477
|
-
} | undefined;
|
|
3478
|
-
}>;
|
|
3479
|
-
type UseCheckoutOptionsArgs = z.infer<typeof UseCheckoutOptionsSchema>;
|
|
3480
|
-
type UseCheckoutOptionsReturn = Awaited<ReturnType<typeof fetchCheckoutOptions>>;
|
|
3481
|
-
declare const fetchCheckoutOptions: (args: UseCheckoutOptionsArgs & {
|
|
3482
|
-
walletAddress: Hex;
|
|
3483
|
-
}, config: SdkConfig) => Promise<CheckoutOptionsMarketplaceReturn>;
|
|
3484
|
-
declare const checkoutOptionsOptions: (args: UseCheckoutOptionsArgs & {
|
|
3485
|
-
walletAddress: Hex;
|
|
3486
|
-
}, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CheckoutOptionsMarketplaceReturn, Error, CheckoutOptionsMarketplaceReturn, (string | ({
|
|
3487
|
-
orders: {
|
|
3488
|
-
orderId: string;
|
|
3489
|
-
marketplace: MarketplaceKind;
|
|
3490
|
-
collectionAddress: `0x${string}`;
|
|
3491
|
-
}[];
|
|
3492
|
-
chainId: number;
|
|
3493
|
-
query?: {
|
|
3494
|
-
enabled?: boolean | undefined;
|
|
3495
|
-
} | undefined;
|
|
3496
|
-
} & {
|
|
3497
|
-
walletAddress: Hex;
|
|
3498
|
-
}))[]>, "queryFn"> & {
|
|
3499
|
-
queryFn?: _tanstack_react_query.QueryFunction<CheckoutOptionsMarketplaceReturn, (string | ({
|
|
3500
|
-
orders: {
|
|
3501
|
-
orderId: string;
|
|
3502
|
-
marketplace: MarketplaceKind;
|
|
3503
|
-
collectionAddress: `0x${string}`;
|
|
3504
|
-
}[];
|
|
3505
|
-
chainId: number;
|
|
3506
|
-
query?: {
|
|
3507
|
-
enabled?: boolean | undefined;
|
|
3508
|
-
} | undefined;
|
|
3509
|
-
} & {
|
|
3510
|
-
walletAddress: Hex;
|
|
3511
|
-
}))[], never> | undefined;
|
|
3512
|
-
} & {
|
|
3513
|
-
queryKey: (string | ({
|
|
3514
|
-
orders: {
|
|
3515
|
-
orderId: string;
|
|
3516
|
-
marketplace: MarketplaceKind;
|
|
3517
|
-
collectionAddress: `0x${string}`;
|
|
3518
|
-
}[];
|
|
3519
|
-
chainId: number;
|
|
3520
|
-
query?: {
|
|
3521
|
-
enabled?: boolean | undefined;
|
|
3522
|
-
} | undefined;
|
|
3523
|
-
} & {
|
|
3524
|
-
walletAddress: Hex;
|
|
3525
|
-
}))[] & {
|
|
3526
|
-
[dataTagSymbol]: CheckoutOptionsMarketplaceReturn;
|
|
3527
|
-
[dataTagErrorSymbol]: Error;
|
|
3528
|
-
};
|
|
3529
|
-
};
|
|
3530
|
-
declare const useCheckoutOptions: (args: UseCheckoutOptionsArgs) => _tanstack_react_query.UseQueryResult<CheckoutOptionsMarketplaceReturn, Error>;
|
|
3531
|
-
|
|
3532
|
-
type UseListCollectionsArgs = {
|
|
3533
|
-
marketplaceType?: MarketplaceType;
|
|
3534
|
-
query?: {
|
|
3535
|
-
enabled?: boolean;
|
|
3536
|
-
};
|
|
3537
|
-
};
|
|
3538
|
-
declare const useListCollections: (args?: UseListCollectionsArgs) => _tanstack_react_query.UseQueryResult<({
|
|
3539
|
-
chainId: number;
|
|
3540
|
-
address: string;
|
|
3541
|
-
source: string;
|
|
3542
|
-
name: string;
|
|
3543
|
-
type: string;
|
|
3544
|
-
symbol: string;
|
|
3545
|
-
decimals?: number;
|
|
3546
|
-
logoURI: string;
|
|
3547
|
-
deployed: boolean;
|
|
3548
|
-
bytecodeHash: string;
|
|
3549
|
-
extensions: _0xsequence_metadata.ContractInfoExtensions;
|
|
3550
|
-
updatedAt: string;
|
|
3551
|
-
queuedAt?: string;
|
|
3552
|
-
status: _0xsequence_metadata.ResourceStatus;
|
|
3553
|
-
marketplaceType: MarketplaceType.MARKET;
|
|
3554
|
-
feePercentage: number;
|
|
3555
|
-
destinationMarketplace: OrderbookKind;
|
|
3556
|
-
currencyOptions: Array<string>;
|
|
3557
|
-
contractType: ContractType;
|
|
3558
|
-
bannerUrl: string;
|
|
3559
|
-
itemsAddress: string;
|
|
3560
|
-
filterSettings?: CollectionFilterSettings;
|
|
3561
|
-
} | {
|
|
3562
|
-
chainId: number;
|
|
3563
|
-
address: string;
|
|
3564
|
-
source: string;
|
|
3565
|
-
name: string;
|
|
3566
|
-
type: string;
|
|
3567
|
-
symbol: string;
|
|
3568
|
-
decimals?: number;
|
|
3569
|
-
logoURI: string;
|
|
3570
|
-
deployed: boolean;
|
|
3571
|
-
bytecodeHash: string;
|
|
3572
|
-
extensions: _0xsequence_metadata.ContractInfoExtensions;
|
|
3573
|
-
updatedAt: string;
|
|
3574
|
-
queuedAt?: string;
|
|
3575
|
-
status: _0xsequence_metadata.ResourceStatus;
|
|
3576
|
-
marketplaceType: MarketplaceType.SHOP;
|
|
3577
|
-
saleAddress: string;
|
|
3578
|
-
contractType: ContractType;
|
|
3579
|
-
bannerUrl: string;
|
|
3580
|
-
itemsAddress: string;
|
|
3581
|
-
filterSettings?: CollectionFilterSettings;
|
|
3582
|
-
})[], Error>;
|
|
3583
|
-
|
|
3584
|
-
interface UseCancelOrderArgs {
|
|
3585
|
-
collectionAddress: string;
|
|
3586
|
-
chainId: number;
|
|
3587
|
-
onSuccess?: ({ hash, orderId }: {
|
|
3588
|
-
hash?: string;
|
|
3589
|
-
orderId?: string;
|
|
3590
|
-
}) => void;
|
|
3591
|
-
onError?: (error: Error) => void;
|
|
3592
|
-
}
|
|
3593
|
-
type TransactionStep = {
|
|
3594
|
-
exist: boolean;
|
|
3595
|
-
isExecuting: boolean;
|
|
3596
|
-
execute: () => Promise<void>;
|
|
3597
|
-
};
|
|
3598
|
-
declare const useCancelOrder: ({ collectionAddress, chainId, onSuccess, onError, }: UseCancelOrderArgs) => {
|
|
3599
|
-
cancelOrder: (params: {
|
|
3600
|
-
orderId: string;
|
|
3601
|
-
marketplace: MarketplaceKind;
|
|
3602
|
-
}) => Promise<void>;
|
|
3603
|
-
isExecuting: boolean;
|
|
3604
|
-
cancellingOrderId: string | null;
|
|
3605
|
-
};
|
|
3606
|
-
|
|
3607
|
-
type UseCollectionDetails = {
|
|
3608
|
-
collectionAddress: string;
|
|
3609
|
-
chainId: number;
|
|
3610
|
-
};
|
|
3611
|
-
declare const collectionDetailsOptions: (args: UseCollectionDetails, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Collection, Error, Collection, (string | UseCollectionDetails)[]>, "queryFn"> & {
|
|
3612
|
-
queryFn?: _tanstack_react_query.QueryFunction<Collection, (string | UseCollectionDetails)[], never> | undefined;
|
|
3613
|
-
} & {
|
|
3614
|
-
queryKey: (string | UseCollectionDetails)[] & {
|
|
3615
|
-
[dataTagSymbol]: Collection;
|
|
3616
|
-
[dataTagErrorSymbol]: Error;
|
|
3617
|
-
};
|
|
3618
|
-
};
|
|
3619
|
-
declare const useCollectionDetails: (args: UseCollectionDetails) => _tanstack_react_query.UseQueryResult<Collection, Error>;
|
|
3620
|
-
|
|
3621
|
-
type UseCollectionDetailsPolling = {
|
|
3622
|
-
collectionAddress: string;
|
|
3623
|
-
chainId: number;
|
|
3624
|
-
};
|
|
3625
|
-
declare const collectionDetailsPollingOptions: (args: UseCollectionDetailsPolling, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Collection, Error, Collection, (string | {
|
|
3626
|
-
collectionAddress: string;
|
|
3627
|
-
chainId: number;
|
|
3628
|
-
})[]>, "queryFn"> & {
|
|
3629
|
-
queryFn?: _tanstack_react_query.QueryFunction<Collection, (string | {
|
|
3630
|
-
collectionAddress: string;
|
|
3631
|
-
chainId: number;
|
|
3632
|
-
})[], never> | undefined;
|
|
3633
|
-
} & {
|
|
3634
|
-
queryKey: (string | {
|
|
3635
|
-
collectionAddress: string;
|
|
3636
|
-
chainId: number;
|
|
3637
|
-
})[] & {
|
|
3638
|
-
[dataTagSymbol]: Collection;
|
|
3639
|
-
[dataTagErrorSymbol]: Error;
|
|
3640
|
-
};
|
|
3641
|
-
};
|
|
3642
|
-
declare const useCollectionDetailsPolling: (args: UseCollectionDetailsPolling) => _tanstack_react_query.UseQueryResult<Collection, Error>;
|
|
3643
|
-
|
|
3644
|
-
declare const useListTokenMetadata: (args: FetchTokenMetadataArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.TokenMetadata[], Error>;
|
|
3645
|
-
|
|
3646
|
-
declare const useGetTokenSuppliesMap: ({ chainId, tokenIds, collectionAddress, }: {
|
|
3647
|
-
chainId: number;
|
|
3648
|
-
tokenIds: string[];
|
|
3649
|
-
collectionAddress: string;
|
|
3650
|
-
}) => _tanstack_react_query.UseQueryResult<_0xsequence_indexer.GetTokenSuppliesMapReturn, Error>;
|
|
3651
|
-
|
|
3652
|
-
export { type CollectionBalanceFilter, type CreateReqWithDateExpiry$1 as CreateReqWithDateExpiry, type GenerateListingTransactionProps, type GenerateOfferTransactionProps, type TransactionStep, type TransferTokensParams, type UseCheckoutOptionsArgs, type UseCheckoutOptionsReturn, type UseCollectibleArgs, type UseCollectibleReturn, type UseCollectionBalanceDetailsArgs, type UseComparePricesReturn, type UseContOfCollectableReturn, type UseConvertPriceToUSDArgs, type UseConvertPriceToUSDReturn, type UseCountListingsForCollectibleArgs, type UseCountListingsForCollectibleReturn, type UseCountOfCollectablesArgs, type UseCountOffersForCollectibleArgs, type UseCountOffersForCollectibleReturn, type UseCurrencyReturn, type UseFilterReturn, type UseFiltersArgs, type UseFloorOrderArgs, type UseFloorOrderReturn, type UseGenerateListingTransactionArgs, type UseGenerateOfferTransactionArgs, type UseListCollectibleActivitiesArgs, type UseListCollectibleActivitiesReturn, type UseListCollectiblesPaginatedArgs, type UseListCollectiblesPaginatedReturn, type UseListCollectionActivitiesArgs, type UseListCollectionActivitiesReturn, type UseListListingsForCollectibleReturn, type UseListOffersForCollectibleReturn, checkoutOptionsOptions, collectibleOptions, collectionBalanceDetailsOptions, collectionDetailsOptions, collectionDetailsPollingOptions, comparePricesOptions, convertPriceToUSD, convertPriceToUSDOptions, countListingsForCollectibleOptions, countOfCollectablesOptions, countOffersForCollectibleOptions, currencyOptions, fetchFilters, filtersOptions, floorOrderOptions, generateCancelTransaction, generateListingTransaction, generateOfferTransaction, generateSellTransaction, listCollectibleActivitiesOptions, listCollectiblesPaginatedOptions, listCollectionActivitiesOptions, listListingsForCollectibleOptions, listOffersForCollectibleOptions, useAutoSelectFeeOption, useBalanceOfCollectible, useCancelOrder, useCheckoutOptions, useCollectible, useCollectionBalanceDetails, useCollectionDetails, useCollectionDetailsPolling, useComparePrices, useConfig, useConvertPriceToUSD, useCountListingsForCollectible, useCountOfCollectables, useCountOffersForCollectible, useCurrency, useFilterState, useFilters, useFiltersProgressive, useFloorOrder, useGenerateCancelTransaction, useGenerateListingTransaction, useGenerateOfferTransaction, useGenerateSellTransaction, useGetTokenSuppliesMap, useHighestOffer, useInventory, useListBalances, useListCollectibleActivities, useListCollectibles, useListCollectiblesPaginated, useListCollectionActivities, useListCollections, useListListingsForCollectible, useListOffersForCollectible, useListTokenMetadata, useLowestListing, useMarketCurrencies, useMarketplaceConfig, useRoyalty, useTransferTokens };
|
|
1
|
+
import "../../index-DXMfTZ1F.js";
|
|
2
|
+
import "../../new-marketplace-types-Bfis0U4J.js";
|
|
3
|
+
import "../../builder-api-C_zj5mr3.js";
|
|
4
|
+
import "../../index-DsfCs3-x.js";
|
|
5
|
+
import "../../index-BUVWziLP.js";
|
|
6
|
+
import "../../index-COt10OgI.js";
|
|
7
|
+
import "../../index-dUb6wb4Y.js";
|
|
8
|
+
import "../../index-D5v5iluA.js";
|
|
9
|
+
import "../../index-CLy8y5hm.js";
|
|
10
|
+
import "../../index-BL9RUSEK.js";
|
|
11
|
+
import "../../index-C39K_8SG.js";
|
|
12
|
+
import "../../index-21LE7OhL.js";
|
|
13
|
+
import { CollectionBalanceFilter, CollectionQueryOptions, CountListingsForCollectibleQueryOptions, CountOfCollectablesQueryOptions, CountOffersForCollectibleQueryOptions, CreateReqWithDateExpiry, CurrencyQueryOptions, FetchCollectionParams, FetchCountListingsForCollectibleParams, FetchCountOfCollectablesParams, FetchCountOffersForCollectibleParams, FetchCurrencyParams, FetchGetTokenSuppliesMapParams, FetchListCollectibleActivitiesParams, FetchListCollectiblesPaginatedParams, FetchListCollectionActivitiesParams, FetchListCollectionsParams, FetchListListingsForCollectibleParams, GenerateListingTransactionProps, GenerateOfferTransactionProps, GetTokenSuppliesMapQueryOptions, ListCollectibleActivitiesQueryOptions, ListCollectiblesPaginatedQueryOptions, ListCollectionActivitiesQueryOptions, ListCollectionsQueryOptions, ListListingsForCollectibleQueryOptions, TransactionStep, TransferTokensParams, UseCollectibleParams, UseCollectionBalanceDetailsArgs, UseCollectionDetailsParams, UseCollectionParams, UseComparePricesArgs, UseComparePricesReturn, UseConvertPriceToUSDArgs, UseConvertPriceToUSDReturn, UseCountListingsForCollectibleParams, UseCountOfCollectablesParams, UseCountOffersForCollectibleParams, UseCurrencyParams, UseFilterReturn, UseFiltersArgs, UseFloorOrderParams, UseGenerateListingTransactionArgs, UseGenerateOfferTransactionArgs, UseGetTokenSuppliesMapParams, UseHighestOfferParams, UseListCollectibleActivitiesArgs, UseListCollectibleActivitiesParams, UseListCollectibleActivitiesReturn, UseListCollectiblesArgs, UseListCollectiblesPaginatedArgs, UseListCollectiblesPaginatedParams, UseListCollectiblesPaginatedReturn, UseListCollectiblesParams, UseListCollectionActivitiesArgs, UseListCollectionActivitiesParams, UseListCollectionActivitiesReturn, UseListCollectionsParams, UseListListingsForCollectibleArgs, UseListListingsForCollectibleParams, UseListListingsForCollectibleReturn, UseListOffersForCollectibleReturn, UseListTokenMetadataParams, UseLowestListingParams, UseMarketCurrenciesParams, UseRoyaltyArgs, checkoutOptionsSalesContractOptions, collectionBalanceDetailsOptions, collectionDetailsPollingOptions, collectionQueryOptions, comparePricesOptions, convertPriceToUSD, convertPriceToUSDOptions, countListingsForCollectibleQueryOptions, countOfCollectablesQueryOptions, countOffersForCollectibleQueryOptions, currencyQueryOptions, fetchFilters, filtersOptions, generateCancelTransaction, generateListingTransaction, generateOfferTransaction, generateSellTransaction, getTokenSuppliesMapQueryOptions, listCollectibleActivitiesQueryOptions, listCollectiblesPaginatedQueryOptions, listCollectionActivitiesQueryOptions, listCollectionsQueryOptions, 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, useGetTokenSuppliesMap, useHighestOffer, useInventory, useList1155ShopCardData, useList721ShopCardData, useListBalances, useListCollectibleActivities, useListCollectibles, useListCollectiblesPaginated, useListCollectionActivities, useListCollections, useListListingsForCollectible, useListMarketCardData, useListOffersForCollectible, useListPrimarySaleItems, useListShopCardData, useListTokenMetadata, useLowestListing, useMarketCurrencies, useMarketplaceConfig, useRoyalty, useShopCollectibleSaleData, useTransferTokens } from "../../index-BQsgAvtX.js";
|
|
14
|
+
import { CollectibleQueryOptions, CollectionDetailsQueryOptions, FetchCollectibleParams, FetchCollectionDetailsParams, FetchFloorOrderParams, FetchHighestOfferParams, FetchListCollectiblesParams, FetchListTokenMetadataParams, FetchLowestListingParams, FetchMarketCurrenciesParams, FloorOrderQueryOptions, HighestOfferQueryOptions, ListCollectiblesQueryOptions, ListTokenMetadataQueryOptions, LowestListingQueryOptions, MarketCurrenciesQueryOptions, collectibleQueryOptions, collectionDetailsQueryOptions, floorOrderQueryOptions, highestOfferQueryOptions, listCollectiblesQueryOptions, listTokenMetadataQueryOptions, lowestListingQueryOptions, marketCurrenciesQueryOptions } from "../../index-DPNWNa7t.js";
|
|
15
|
+
import "../../index-DvpBZgor.js";
|
|
16
|
+
import "../../CollectibleCard-C8Ae64Ab.js";
|
|
17
|
+
import "../../index-ByznONYE.js";
|
|
18
|
+
export { CollectibleQueryOptions, CollectionBalanceFilter, CollectionDetailsQueryOptions, CollectionQueryOptions, CountListingsForCollectibleQueryOptions, CountOfCollectablesQueryOptions, CountOffersForCollectibleQueryOptions, CreateReqWithDateExpiry, CurrencyQueryOptions, FetchCollectibleParams, FetchCollectionDetailsParams, FetchCollectionParams, FetchCountListingsForCollectibleParams, FetchCountOfCollectablesParams, FetchCountOffersForCollectibleParams, FetchCurrencyParams, FetchFloorOrderParams, FetchGetTokenSuppliesMapParams, FetchHighestOfferParams, FetchListCollectibleActivitiesParams, FetchListCollectiblesPaginatedParams, FetchListCollectiblesParams, FetchListCollectionActivitiesParams, FetchListCollectionsParams, FetchListListingsForCollectibleParams, FetchListTokenMetadataParams, FetchLowestListingParams, FetchMarketCurrenciesParams, FloorOrderQueryOptions, GenerateListingTransactionProps, GenerateOfferTransactionProps, GetTokenSuppliesMapQueryOptions, HighestOfferQueryOptions, ListCollectibleActivitiesQueryOptions, ListCollectiblesPaginatedQueryOptions, ListCollectiblesQueryOptions, ListCollectionActivitiesQueryOptions, ListCollectionsQueryOptions, ListListingsForCollectibleQueryOptions, ListTokenMetadataQueryOptions, LowestListingQueryOptions, MarketCurrenciesQueryOptions, TransactionStep, TransferTokensParams, UseCollectibleParams, UseCollectionBalanceDetailsArgs, UseCollectionDetailsParams, UseCollectionParams, UseComparePricesArgs, UseComparePricesReturn, UseConvertPriceToUSDArgs, UseConvertPriceToUSDReturn, UseCountListingsForCollectibleParams, UseCountOfCollectablesParams, UseCountOffersForCollectibleParams, UseCurrencyParams, UseFilterReturn, UseFiltersArgs, UseFloorOrderParams, UseGenerateListingTransactionArgs, UseGenerateOfferTransactionArgs, UseGetTokenSuppliesMapParams, UseHighestOfferParams, UseListCollectibleActivitiesArgs, UseListCollectibleActivitiesParams, UseListCollectibleActivitiesReturn, UseListCollectiblesArgs, UseListCollectiblesPaginatedArgs, UseListCollectiblesPaginatedParams, UseListCollectiblesPaginatedReturn, UseListCollectiblesParams, UseListCollectionActivitiesArgs, UseListCollectionActivitiesParams, UseListCollectionActivitiesReturn, UseListCollectionsParams, UseListListingsForCollectibleArgs, UseListListingsForCollectibleParams, UseListListingsForCollectibleReturn, UseListOffersForCollectibleReturn, UseListTokenMetadataParams, UseLowestListingParams, UseMarketCurrenciesParams, UseRoyaltyArgs, checkoutOptionsSalesContractOptions, collectibleQueryOptions, collectionBalanceDetailsOptions, collectionDetailsPollingOptions, collectionDetailsQueryOptions, collectionQueryOptions, comparePricesOptions, convertPriceToUSD, convertPriceToUSDOptions, countListingsForCollectibleQueryOptions, countOfCollectablesQueryOptions, countOffersForCollectibleQueryOptions, currencyQueryOptions, fetchFilters, filtersOptions, floorOrderQueryOptions, generateCancelTransaction, generateListingTransaction, generateOfferTransaction, generateSellTransaction, getTokenSuppliesMapQueryOptions, highestOfferQueryOptions, listCollectibleActivitiesQueryOptions, listCollectiblesPaginatedQueryOptions, listCollectiblesQueryOptions, listCollectionActivitiesQueryOptions, listCollectionsQueryOptions, listListingsForCollectibleQueryOptions, listOffersForCollectibleOptions, listTokenMetadataQueryOptions, lowestListingQueryOptions, marketCurrenciesQueryOptions, 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, useGetTokenSuppliesMap, useHighestOffer, useInventory, useList1155ShopCardData, useList721ShopCardData, useListBalances, useListCollectibleActivities, useListCollectibles, useListCollectiblesPaginated, useListCollectionActivities, useListCollections, useListListingsForCollectible, useListMarketCardData, useListOffersForCollectible, useListPrimarySaleItems, useListShopCardData, useListTokenMetadata, useLowestListing, useMarketCurrencies, useMarketplaceConfig, useRoyalty, useShopCollectibleSaleData, useTransferTokens };
|