@0xsequence/marketplace-sdk 0.8.10 → 0.8.12

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