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