@0xsequence/marketplace-sdk 0.8.12 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (487) hide show
  1. package/.storybook/main.ts +63 -0
  2. package/.storybook/preview.ts +24 -0
  3. package/.storybook/vitest.setup.ts +6 -0
  4. package/CHANGELOG.md +158 -21
  5. package/dist/{CartIcon-Bll1rbxv.js → CalendarIcon-CqsuAuCm.js} +30 -77
  6. package/dist/CalendarIcon-CqsuAuCm.js.map +1 -0
  7. package/dist/{types-BIJOaL4j.d.ts → CollectibleCard-Dd-CG6dE.d.ts} +11 -7
  8. package/dist/InfoIcon-v0w_Lu7t.js +53 -0
  9. package/dist/InfoIcon-v0w_Lu7t.js.map +1 -0
  10. package/dist/_internal-C75gOSNo.js +14 -0
  11. package/dist/_internal-C75gOSNo.js.map +1 -0
  12. package/dist/actionModal-CMUeVsFX.js +116 -0
  13. package/dist/actionModal-CMUeVsFX.js.map +1 -0
  14. package/dist/{alien_swap-B_76IMma.js → alien_swap-CYv6YlOF.js} +1 -1
  15. package/dist/{alien_swap-B_76IMma.js.map → alien_swap-CYv6YlOF.js.map} +1 -1
  16. package/dist/{api-1KFxYh7o.js → api-BiMGqWdz.js} +79 -87
  17. package/dist/api-BiMGqWdz.js.map +1 -0
  18. package/dist/{aqua-xyz-CMN_TFY5.js → aqua-xyz-Bzn5baeH.js} +1 -1
  19. package/dist/{aqua-xyz-CMN_TFY5.js.map → aqua-xyz-Bzn5baeH.js.map} +1 -1
  20. package/dist/{aura-Cye_TuHj.js → aura-DzIWh8WT.js} +1 -1
  21. package/dist/{aura-Cye_TuHj.js.map → aura-DzIWh8WT.js.map} +1 -1
  22. package/dist/base-DqaJPvfN.js +22 -0
  23. package/dist/base-DqaJPvfN.js.map +1 -0
  24. package/dist/{blur-DWDMyMpK.js → blur-DSH-Cbpj.js} +1 -1
  25. package/dist/{blur-DWDMyMpK.js.map → blur-DSH-Cbpj.js.map} +1 -1
  26. package/dist/{builder-api-BQvzykoU.js → builder-api-BFuZNOaN.js} +2 -2
  27. package/dist/{builder-api-BQvzykoU.js.map → builder-api-BFuZNOaN.js.map} +1 -1
  28. package/dist/{builder.gen-CxP9NT1p.js → builder.gen-B9wR2nvF.js} +1 -1
  29. package/dist/builder.gen-B9wR2nvF.js.map +1 -0
  30. package/dist/{coinbase-ByA_XRB0.js → coinbase-Df8URNxq.js} +1 -1
  31. package/dist/{coinbase-ByA_XRB0.js.map → coinbase-Df8URNxq.js.map} +1 -1
  32. package/dist/{sdk-config-DJzxVPld.d.ts → create-config-DKJ-F0jc.d.ts} +458 -86
  33. package/dist/{wagmi-DRctYEk6.js → create-config-fQ-jbJD1.js} +33 -16
  34. package/dist/create-config-fQ-jbJD1.js.map +1 -0
  35. package/dist/{element-b77CyXIZ.js → element-Cx6uJu5N.js} +1 -1
  36. package/dist/{element-b77CyXIZ.js.map → element-Cx6uJu5N.js.map} +1 -1
  37. package/dist/{foundation-DbOrKP9Y.js → foundation-D6U4aRLN.js} +1 -1
  38. package/dist/{foundation-DbOrKP9Y.js.map → foundation-D6U4aRLN.js.map} +1 -1
  39. package/dist/get-provider-CYYHfrlg.js +10 -0
  40. package/dist/get-provider-CYYHfrlg.js.map +1 -0
  41. package/dist/get-query-client-D19vvfJo.js +23 -0
  42. package/dist/get-query-client-D19vvfJo.js.map +1 -0
  43. package/dist/hooks-4pxIbLbM.js +4044 -0
  44. package/dist/hooks-4pxIbLbM.js.map +1 -0
  45. package/dist/{index-1bezgsFq.d.ts → index-136YrWDH.d.ts} +929 -255
  46. package/dist/{index-D5v5iluA.d.ts → index-BAhaEfqY.d.ts} +1 -1
  47. package/dist/index-BKBin-rq.d.ts +979 -0
  48. package/dist/index-BUWB_RXp.d.ts +3144 -0
  49. package/dist/{index-Cl7PQOGu.d.ts → index-BhVFc2rX.d.ts} +28 -25
  50. package/dist/{index-DXMfTZ1F.d.ts → index-C5aqo8xu.d.ts} +1 -1
  51. package/dist/{index-BIMIpDiI.d.ts → index-CKrYP7ot.d.ts} +74 -103
  52. package/dist/{index-BEYefG1G.d.ts → index-CUwMH7Ht.d.ts} +5 -5
  53. package/dist/{index-BjIwVzc4.d.ts → index-Cu70Lw-w.d.ts} +238 -238
  54. package/dist/index.css +427 -1
  55. package/dist/index.d.ts +8 -10
  56. package/dist/index.js +15 -11
  57. package/dist/{looks-rare-C1VqNcSM.js → looks-rare-ChBRBY-p.js} +1 -1
  58. package/dist/{looks-rare-C1VqNcSM.js.map → looks-rare-ChBRBY-p.js.map} +1 -1
  59. package/dist/{magic-eden-ea_AGCZr.js → magic-eden-D5U7N1xL.js} +1 -1
  60. package/dist/{magic-eden-ea_AGCZr.js.map → magic-eden-D5U7N1xL.js.map} +1 -1
  61. package/dist/{manifold-8y8J2sjT.js → manifold-CtLF52zU.js} +1 -1
  62. package/dist/{manifold-8y8J2sjT.js.map → manifold-CtLF52zU.js.map} +1 -1
  63. package/dist/{marketplace-nwnZv9Cb.js → marketplace-DmFiyBoS.js} +1 -1
  64. package/dist/{marketplace-nwnZv9Cb.js.map → marketplace-DmFiyBoS.js.map} +1 -1
  65. package/dist/{marketplace-logos-CSeGcPW4.js → marketplace-logos-Cd6W-qOq.js} +21 -21
  66. package/dist/{marketplace-logos-CSeGcPW4.js.map → marketplace-logos-Cd6W-qOq.js.map} +1 -1
  67. package/dist/{marketplace.gen-Dqk8vRmD.js → marketplace.gen-HpnpL5xU.js} +12 -3
  68. package/dist/marketplace.gen-HpnpL5xU.js.map +1 -0
  69. package/dist/{marketplaceConfig-D2MYFqll.js → marketplaceConfig-GQTTmihy.js} +3 -3
  70. package/dist/marketplaceConfig-GQTTmihy.js.map +1 -0
  71. package/dist/{mintify-LA68TzWg.js → mintify-Bi3Bce68.js} +1 -1
  72. package/dist/{mintify-LA68TzWg.js.map → mintify-Bi3Bce68.js.map} +1 -1
  73. package/dist/network-CGD0oKtS.js +15 -0
  74. package/dist/network-CGD0oKtS.js.map +1 -0
  75. package/dist/{nftx-D3Tc8nzd.js → nftx-BDQZjtkX.js} +1 -1
  76. package/dist/{nftx-D3Tc8nzd.js.map → nftx-BDQZjtkX.js.map} +1 -1
  77. package/dist/{okx-hbqg6oIJ.js → okx-D4meadLe.js} +1 -1
  78. package/dist/{okx-hbqg6oIJ.js.map → okx-D4meadLe.js.map} +1 -1
  79. package/dist/{open-sea-BccuK8-t.js → open-sea-DN0hgfVw.js} +1 -1
  80. package/dist/{open-sea-BccuK8-t.js.map → open-sea-DN0hgfVw.js.map} +1 -1
  81. package/dist/options-BBBR8u_4.js +0 -0
  82. package/dist/{primary-sale-Cw95phYC.js → primary-sale-CmWxSfFQ.js} +279 -279
  83. package/dist/primary-sale-CmWxSfFQ.js.map +1 -0
  84. package/dist/provider-DPGUA10G.js +125 -0
  85. package/dist/provider-DPGUA10G.js.map +1 -0
  86. package/dist/queries-Ce_2othB.js +757 -0
  87. package/dist/queries-Ce_2othB.js.map +1 -0
  88. package/dist/{rarible-BgTwwj9g.js → rarible-B0xlD88A.js} +1 -1
  89. package/dist/{rarible-BgTwwj9g.js.map → rarible-B0xlD88A.js.map} +1 -1
  90. package/dist/react/_internal/api/index.d.ts +2 -4
  91. package/dist/react/_internal/api/index.js +9 -6
  92. package/dist/react/_internal/databeat/index.d.ts +2 -73
  93. package/dist/react/_internal/databeat/index.js +4 -21
  94. package/dist/react/_internal/index.d.ts +2 -7
  95. package/dist/react/_internal/index.js +13 -8
  96. package/dist/react/_internal/wagmi/index.d.ts +2 -4
  97. package/dist/react/_internal/wagmi/index.js +6 -4
  98. package/dist/react/hooks/index.d.ts +13 -17
  99. package/dist/react/hooks/index.js +25 -21
  100. package/dist/react/hooks/options/index.d.ts +3 -5
  101. package/dist/react/hooks/options/index.js +15 -10
  102. package/dist/react/index.d.ts +13 -40
  103. package/dist/react/index.js +30 -21
  104. package/dist/react/queries/index.d.ts +9 -8
  105. package/dist/react/queries/index.js +22 -17
  106. package/dist/react/ssr/index.d.ts +7 -9
  107. package/dist/react/ssr/index.js +13 -8
  108. package/dist/react/ssr/index.js.map +1 -1
  109. package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +3 -9
  110. package/dist/react/ui/components/marketplace-collectible-card/index.js +29 -20
  111. package/dist/react/ui/components/marketplace-collectible-card/utils/index.d.ts +2 -7
  112. package/dist/react/ui/components/marketplace-collectible-card/utils/index.js +13 -8
  113. package/dist/react/ui/components/marketplace-logos/index.d.ts +21 -21
  114. package/dist/react/ui/components/marketplace-logos/index.js +1 -1
  115. package/dist/react/ui/icons/index.js +14 -10
  116. package/dist/react/ui/index.d.ts +3 -9
  117. package/dist/react/ui/index.js +29 -20
  118. package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +5 -5
  119. package/dist/react/ui/modals/_internal/components/actionModal/index.js +25 -20
  120. package/dist/{react-BG7o4PId.js → react-DP0M2Wfm.js} +4919 -7839
  121. package/dist/react-DP0M2Wfm.js.map +1 -0
  122. package/dist/{react-BbHBl6gg.css → react-DeDyTgo7.css} +1 -1
  123. package/dist/{react-BbHBl6gg.css.map → react-DeDyTgo7.css.map} +1 -1
  124. package/dist/{sequence-Do3kzb4J.js → sequence-BIrOVRXO.js} +1 -1
  125. package/dist/{sequence-Do3kzb4J.js.map → sequence-BIrOVRXO.js.map} +1 -1
  126. package/dist/{sudo-swap-B6vPKxBz.js → sudo-swap-BPMon-M5.js} +1 -1
  127. package/dist/{sudo-swap-B6vPKxBz.js.map → sudo-swap-BPMon-M5.js.map} +1 -1
  128. package/dist/{super-rare-eCm1SE6O.js → super-rare-kPN6Ua8i.js} +1 -1
  129. package/dist/{super-rare-eCm1SE6O.js.map → super-rare-kPN6Ua8i.js.map} +1 -1
  130. package/dist/{token-CO5llIla.js → token-CHSBPYVG.js} +1540 -761
  131. package/dist/token-CHSBPYVG.js.map +1 -0
  132. package/dist/{transaction-CcVViHEL.js → transaction-CnctdNzS.js} +3 -21
  133. package/dist/transaction-CnctdNzS.js.map +1 -0
  134. package/dist/types/index.d.ts +2 -3
  135. package/dist/types/index.js +3 -3
  136. package/dist/{types-DwWE6xOF.js → types-Yw2ywj6j.js} +1 -1
  137. package/dist/types-Yw2ywj6j.js.map +1 -0
  138. package/dist/utils/abi/index.d.ts +5 -5
  139. package/dist/utils/abi/index.js +5 -5
  140. package/dist/utils/abi/marketplace/index.d.ts +1 -1
  141. package/dist/utils/abi/marketplace/index.js +1 -1
  142. package/dist/utils/abi/primary-sale/index.d.ts +1 -1
  143. package/dist/utils/abi/primary-sale/index.js +1 -1
  144. package/dist/utils/abi/token/index.d.ts +2 -2
  145. package/dist/utils/abi/token/index.js +2 -2
  146. package/dist/utils/index.d.ts +7 -8
  147. package/dist/utils/index.js +13 -10
  148. package/dist/{utils-BFdxaToy.js → utils-9RXDgcBl.js} +86 -93
  149. package/dist/utils-9RXDgcBl.js.map +1 -0
  150. package/dist/{utils-Cat9_pef.js → utils-DjVJ9tov.js} +5 -6
  151. package/dist/utils-DjVJ9tov.js.map +1 -0
  152. package/dist/wagmi-Do_KW5ke.js +0 -0
  153. package/dist/{x2y2-DD17tT91.js → x2y2-BLz-_Q2O.js} +1 -1
  154. package/dist/{x2y2-DD17tT91.js.map → x2y2-BLz-_Q2O.js.map} +1 -1
  155. package/dist/{zora-BpSG9UzS.js → zora-UGhKs-aL.js} +1 -1
  156. package/dist/{zora-BpSG9UzS.js.map → zora-UGhKs-aL.js.map} +1 -1
  157. package/eslint/use-client.js +0 -6
  158. package/eslint.config.mjs +4 -0
  159. package/package.json +47 -35
  160. package/postcss.config.mjs +6 -0
  161. package/src/index.css +5 -4
  162. package/src/index.ts +2 -1
  163. package/src/react/__tests__/provider.test.tsx +4 -3
  164. package/src/react/_internal/api/__mocks__/builder.msw.ts +5 -3
  165. package/src/react/_internal/api/__mocks__/indexer.msw.ts +24 -8
  166. package/src/react/_internal/api/__mocks__/laos.msw.ts +387 -0
  167. package/src/react/_internal/api/__mocks__/marketplace.msw.ts +6 -6
  168. package/src/react/_internal/api/__mocks__/metadata.msw.ts +1 -1
  169. package/src/react/_internal/api/__tests__/laos-api.test.ts +756 -0
  170. package/src/react/_internal/api/builder.gen.ts +6 -6
  171. package/src/react/_internal/api/get-query-client.ts +2 -2
  172. package/src/react/_internal/api/index.ts +2 -2
  173. package/src/react/_internal/api/laos-api.ts +3 -0
  174. package/src/react/_internal/api/marketplace.gen.ts +43 -3
  175. package/src/react/_internal/api/query-keys.ts +21 -6
  176. package/src/react/_internal/api/services.ts +30 -45
  177. package/src/react/_internal/databeat/index.ts +15 -14
  178. package/src/react/_internal/databeat/types.ts +22 -0
  179. package/src/react/_internal/databeat/utils.ts +26 -0
  180. package/src/react/_internal/index.ts +1 -1
  181. package/src/react/_internal/types.ts +10 -23
  182. package/src/react/_internal/utils.ts +4 -5
  183. package/src/react/_internal/wagmi/create-config.ts +43 -19
  184. package/src/react/_internal/wagmi/get-connectors.ts +9 -7
  185. package/src/react/_internal/wallet/__tests__/wallet.test.ts +1 -1
  186. package/src/react/_internal/wallet/wallet.ts +22 -22
  187. package/src/react/hooks/__tests__/__snapshots__/useListCollections.test.tsx.snap +20 -0
  188. package/src/react/hooks/__tests__/__snapshots__/useMarketplaceConfig.test.tsx.snap +12 -2
  189. package/src/react/hooks/__tests__/useAutoSelectFeeOption.test.tsx +1 -1
  190. package/src/react/hooks/__tests__/useBalanceOfCollectible.laos.test.tsx +367 -0
  191. package/src/react/hooks/__tests__/useBalanceOfCollectible.test.tsx +1 -1
  192. package/src/react/hooks/__tests__/useCancelOrder.test.tsx +4 -4
  193. package/src/react/hooks/__tests__/useCancelTransactionSteps.test.tsx +1 -1
  194. package/src/react/hooks/__tests__/useCheckoutOptions.test.tsx +158 -0
  195. package/src/react/hooks/__tests__/useCheckoutOptionsSalesContract.test.tsx +42 -65
  196. package/src/react/hooks/__tests__/useCollectible.test.tsx +14 -16
  197. package/src/react/hooks/__tests__/useCollection.test.tsx +4 -4
  198. package/src/react/hooks/__tests__/useCollectionBalanceDetails.test.tsx +16 -25
  199. package/src/react/hooks/__tests__/useCollectionDetails.test.tsx +1 -1
  200. package/src/react/hooks/__tests__/useCollectionDetailsPolling.test.tsx +12 -4
  201. package/src/react/hooks/__tests__/useComparePrices.test.tsx +7 -6
  202. package/src/react/hooks/__tests__/useConvertPriceToUSD.test.tsx +4 -4
  203. package/src/react/hooks/__tests__/useCountListingsForCollectible.test.tsx +2 -2
  204. package/src/react/hooks/__tests__/useCountOfCollectables.test.tsx +5 -5
  205. package/src/react/hooks/__tests__/useCountOffersForCollectible.test.tsx +2 -2
  206. package/src/react/hooks/__tests__/useCurrency.test.tsx +5 -3
  207. package/src/react/hooks/__tests__/useCurrencyBalance.test.tsx +7 -3
  208. package/src/react/hooks/__tests__/useFilters.test.tsx +3 -3
  209. package/src/react/hooks/__tests__/useFloorOrder.test.tsx +4 -4
  210. package/src/react/hooks/__tests__/useGenerateCancelTransaction.test.tsx +3 -3
  211. package/src/react/hooks/__tests__/useGenerateListingTransaction.test.tsx +1 -1
  212. package/src/react/hooks/__tests__/useGenerateOfferTransaction.test.tsx +1 -1
  213. package/src/react/hooks/__tests__/useGenerateSellTransaction.test.tsx +1 -1
  214. package/src/react/hooks/__tests__/useGetTokenRanges.test.tsx +111 -0
  215. package/src/react/hooks/__tests__/useHighestOffer.test.tsx +4 -4
  216. package/src/react/hooks/__tests__/useInventory.test.tsx +1 -1
  217. package/src/react/hooks/__tests__/useListCollectibleActivities.test.tsx +11 -13
  218. package/src/react/hooks/__tests__/useListCollectibles.test.tsx +5 -5
  219. package/src/react/hooks/__tests__/useListCollectiblesPaginated.test.tsx +10 -15
  220. package/src/react/hooks/__tests__/useListCollectionActivities.test.tsx +13 -15
  221. package/src/react/hooks/__tests__/useListCollections.test.tsx +3 -3
  222. package/src/react/hooks/__tests__/useListListingsForCollectible.test.tsx +3 -2
  223. package/src/react/hooks/__tests__/useListMarketCardData.test.tsx +301 -0
  224. package/src/react/hooks/__tests__/useListOffersForCollectible.test.tsx +1 -1
  225. package/src/react/hooks/__tests__/useListTokenMetadata.test.tsx +137 -0
  226. package/src/react/hooks/__tests__/useLowestListing.test.tsx +1 -1
  227. package/src/react/hooks/__tests__/useMarketCurrencies.test.tsx +1 -1
  228. package/src/react/hooks/__tests__/useRoyalty.test.tsx +0 -23
  229. package/src/react/hooks/__tests__/useTransferTokens.test.tsx +469 -0
  230. package/src/react/hooks/index.ts +29 -24
  231. package/src/react/hooks/options/index.ts +0 -1
  232. package/src/react/hooks/useAutoSelectFeeOption.tsx +1 -1
  233. package/src/react/hooks/useBalanceOfCollectible.tsx +1 -1
  234. package/src/react/hooks/useCancelTransactionSteps.tsx +2 -2
  235. package/src/react/hooks/useCheckoutOptions.tsx +84 -54
  236. package/src/react/hooks/useCheckoutOptionsSalesContract.tsx +98 -57
  237. package/src/react/hooks/useCollectible.tsx +64 -49
  238. package/src/react/hooks/useCollection.tsx +60 -11
  239. package/src/react/hooks/useCollectionBalanceDetails.tsx +93 -73
  240. package/src/react/hooks/useCollectionDetails.ts +69 -0
  241. package/src/react/hooks/useCollectionDetailsPolling.tsx +7 -3
  242. package/src/react/hooks/useComparePrices.tsx +91 -86
  243. package/src/react/hooks/useConvertPriceToUSD.tsx +83 -86
  244. package/src/react/hooks/useCountListingsForCollectible.tsx +64 -53
  245. package/src/react/hooks/useCountOfCollectables.tsx +60 -69
  246. package/src/react/hooks/useCountOfPrimarySaleItems.tsx +13 -0
  247. package/src/react/hooks/useCountOffersForCollectible.tsx +64 -53
  248. package/src/react/hooks/useCurrency.tsx +56 -64
  249. package/src/react/hooks/useCurrencyBalance.tsx +132 -46
  250. package/src/react/hooks/useERC721SaleMintedTokens.tsx +8 -5
  251. package/src/react/hooks/useFilterState.tsx +1 -2
  252. package/src/react/hooks/useFilters.tsx +154 -111
  253. package/src/react/hooks/useFloorOrder.tsx +65 -40
  254. package/src/react/hooks/useGenerateCancelTransaction.tsx +5 -10
  255. package/src/react/hooks/useGenerateListingTransaction.tsx +1 -1
  256. package/src/react/hooks/useGenerateOfferTransaction.tsx +1 -1
  257. package/src/react/hooks/useGenerateSellTransaction.tsx +5 -10
  258. package/src/react/hooks/useGetCountOfPrimarySaleItems.tsx +48 -0
  259. package/src/react/hooks/useGetReceiptFromHash.tsx +32 -3
  260. package/src/react/hooks/useGetTokenRanges.tsx +92 -0
  261. package/src/react/hooks/useHighestOffer.tsx +68 -4
  262. package/src/react/hooks/useInventory.tsx +1 -1
  263. package/src/react/hooks/useList1155ShopCardData.tsx +57 -82
  264. package/src/react/hooks/useList721ShopCardData.tsx +98 -63
  265. package/src/react/hooks/useListBalances.tsx +1 -1
  266. package/src/react/hooks/useListCollectibleActivities.tsx +89 -50
  267. package/src/react/hooks/useListCollectibles.tsx +81 -16
  268. package/src/react/hooks/useListCollectiblesPaginated.tsx +96 -66
  269. package/src/react/hooks/useListCollectionActivities.tsx +84 -50
  270. package/src/react/hooks/useListCollections.tsx +71 -17
  271. package/src/react/hooks/useListListingsForCollectible.tsx +90 -50
  272. package/src/react/hooks/useListMarketCardData.tsx +3 -2
  273. package/src/react/hooks/useListOffersForCollectible.tsx +9 -14
  274. package/src/react/hooks/useListPrimarySaleItems.tsx +66 -0
  275. package/src/react/hooks/useListShopCardData.tsx +70 -0
  276. package/src/react/hooks/useListTokenMetadata.ts +64 -12
  277. package/src/react/hooks/useListTokenMetadata.tsx +73 -0
  278. package/src/react/hooks/useLowestListing.tsx +68 -4
  279. package/src/react/hooks/useMarketCurrencies.tsx +62 -5
  280. package/src/react/hooks/useOpenConnectModal.tsx +9 -0
  281. package/src/react/hooks/useRoyalty.tsx +57 -13
  282. package/src/react/hooks/useShopCollectibleSaleData.tsx +349 -0
  283. package/src/react/hooks/useTokenSaleDetailsBatch.tsx +3 -7
  284. package/src/react/hooks/useTokenSupplies.ts +81 -0
  285. package/src/react/hooks/useTransferTokens.tsx +2 -2
  286. package/src/react/hooks/util/optimisticCancelUpdates.ts +5 -7
  287. package/src/react/index.ts +5 -3
  288. package/src/react/provider.tsx +73 -9
  289. package/src/react/queries/__tests__/balanceOfCollectible.laos.test.ts +123 -0
  290. package/src/react/queries/__tests__/inventory.laos.test.ts +496 -0
  291. package/src/react/queries/balanceOfCollectible.ts +8 -5
  292. package/src/react/queries/checkoutOptions.ts +85 -0
  293. package/src/react/queries/checkoutOptionsSalesContract.ts +89 -0
  294. package/src/react/queries/collectible.ts +66 -0
  295. package/src/react/queries/collection.ts +55 -0
  296. package/src/react/queries/collectionBalanceDetails.ts +92 -0
  297. package/src/react/queries/collectionDetails.ts +64 -0
  298. package/src/react/queries/comparePrices.ts +108 -0
  299. package/src/react/queries/convertPriceToUSD.ts +92 -0
  300. package/src/react/queries/countListingsForCollectible.ts +73 -0
  301. package/src/react/queries/countOfCollectables.ts +83 -0
  302. package/src/react/queries/countOfPrimarySaleItems.ts +48 -0
  303. package/src/react/queries/countOffersForCollectible.ts +73 -0
  304. package/src/react/queries/currency.ts +83 -0
  305. package/src/react/queries/filters.ts +138 -0
  306. package/src/react/queries/floorOrder.ts +63 -0
  307. package/src/react/queries/getTokenRanges.ts +62 -0
  308. package/src/react/queries/highestOffer.ts +46 -40
  309. package/src/react/queries/index.ts +10 -4
  310. package/src/react/queries/inventory.ts +10 -4
  311. package/src/react/queries/listBalances.ts +5 -4
  312. package/src/react/queries/listCollectibleActivities.ts +97 -0
  313. package/src/react/queries/listCollectibles.ts +67 -50
  314. package/src/react/queries/listCollectiblesPaginated.ts +87 -0
  315. package/src/react/queries/listCollectionActivities.ts +95 -0
  316. package/src/react/queries/listCollections.ts +53 -10
  317. package/src/react/queries/listListingsForCollectible.ts +82 -0
  318. package/src/react/queries/listTokenMetadata.ts +47 -23
  319. package/src/react/queries/lowestListing.ts +46 -31
  320. package/src/react/queries/marketCurrencies.ts +42 -29
  321. package/src/react/queries/marketplaceConfig.ts +4 -4
  322. package/src/react/queries/primarySaleItems.ts +85 -0
  323. package/src/react/queries/primarySaleItemsCount.ts +64 -0
  324. package/src/react/queries/tokenSupplies.ts +93 -0
  325. package/src/react/ssr/__tests__/__snapshots__/create-ssr-client.test.ts.snap +12 -2
  326. package/src/react/ssr/create-ssr-client.ts +1 -1
  327. package/src/react/types/query.ts +34 -0
  328. package/src/react/ui/components/ModelViewer.tsx +1 -1
  329. package/src/react/ui/components/_internals/action-button/ActionButton.tsx +66 -66
  330. package/src/react/ui/components/_internals/action-button/__tests__/ActionButtonBody.test.tsx +22 -4
  331. package/src/react/ui/components/_internals/action-button/__tests__/useActionButtonLogic.test.tsx +14 -8
  332. package/src/react/ui/components/_internals/action-button/components/ActionButtonBody.tsx +5 -4
  333. package/src/react/ui/components/_internals/action-button/components/NonOwnerActions.tsx +3 -0
  334. package/src/react/ui/components/_internals/action-button/components/OwnerActions.tsx +4 -4
  335. package/src/react/ui/components/_internals/action-button/hooks/useActionButtonLogic.ts +20 -18
  336. package/src/react/ui/components/_internals/action-button/store.ts +72 -34
  337. package/src/react/ui/components/_internals/custom-select/CustomSelect.stories.tsx +582 -0
  338. package/src/react/ui/components/_internals/pill/Pill.stories.tsx +83 -0
  339. package/src/react/ui/components/marketplace-collectible-card/CollectibleCard.tsx +1 -1
  340. package/src/react/ui/components/marketplace-collectible-card/Footer.tsx +12 -5
  341. package/src/react/ui/components/marketplace-collectible-card/components/ActionButtonWrapper.tsx +7 -4
  342. package/src/react/ui/components/marketplace-collectible-card/components/BaseCard.tsx +3 -0
  343. package/src/react/ui/components/marketplace-collectible-card/index.ts +1 -1
  344. package/src/react/ui/components/marketplace-collectible-card/types.ts +11 -7
  345. package/src/react/ui/components/marketplace-collectible-card/utils/supplyStatus.ts +4 -7
  346. package/src/react/ui/components/marketplace-collectible-card/variants/MarketCard.tsx +3 -2
  347. package/src/react/ui/components/marketplace-collectible-card/variants/ShopCard.tsx +7 -6
  348. package/src/react/ui/components/marketplace-logos/marketplace-logos.stories.tsx +199 -0
  349. package/src/react/ui/components/marketplace-logos/marketplace-logos.tsx +1 -1
  350. package/src/react/ui/components/media/Media.stories.tsx +642 -0
  351. package/src/react/ui/components/media/Media.tsx +29 -20
  352. package/src/react/ui/components/media/types.ts +6 -0
  353. package/src/react/ui/index.ts +8 -10
  354. package/src/react/ui/modals/BuyModal/__tests__/BuyModalRouter.test.tsx +15 -0
  355. package/src/react/ui/modals/BuyModal/__tests__/ERC1155ShopModal.test.tsx +100 -87
  356. package/src/react/ui/modals/BuyModal/__tests__/Modal1155.test.tsx +11 -5
  357. package/src/react/ui/modals/BuyModal/__tests__/store.test.ts +10 -2
  358. package/src/react/ui/modals/BuyModal/components/ERC1155QuantityModal.tsx +17 -11
  359. package/src/react/ui/modals/BuyModal/components/ERC1155ShopModal.tsx +4 -1
  360. package/src/react/ui/modals/BuyModal/hooks/__tests__/useCheckoutOptions.test.tsx +1 -1
  361. package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC1155Checkout.test.tsx +30 -27
  362. package/src/react/ui/modals/BuyModal/hooks/useCheckoutOptions.ts +3 -3
  363. package/src/react/ui/modals/BuyModal/hooks/useERC1155Checkout.ts +11 -2
  364. package/src/react/ui/modals/BuyModal/hooks/useERC721SalePaymentParams.ts +2 -2
  365. package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +10 -3
  366. package/src/react/ui/modals/BuyModal/index.tsx +9 -1
  367. package/src/react/ui/modals/BuyModal/store.ts +26 -0
  368. package/src/react/ui/modals/CreateListingModal/Modal.tsx +28 -11
  369. package/src/react/ui/modals/CreateListingModal/__tests__/Modal.test.tsx +2 -2
  370. package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +0 -1
  371. package/src/react/ui/modals/CreateListingModal/hooks/useGetTokenApproval.ts +2 -2
  372. package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +7 -6
  373. package/src/react/ui/modals/CreateListingModal/index.tsx +1 -1
  374. package/src/react/ui/modals/CreateListingModal/store.ts +3 -3
  375. package/src/react/ui/modals/MakeOfferModal/Modal.tsx +31 -14
  376. package/src/react/ui/modals/MakeOfferModal/__tests__/Modal.test.tsx +1 -1
  377. package/src/react/ui/modals/MakeOfferModal/hooks/useGetTokenApproval.tsx +1 -1
  378. package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +0 -1
  379. package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +7 -7
  380. package/src/react/ui/modals/MakeOfferModal/index.tsx +1 -1
  381. package/src/react/ui/modals/MakeOfferModal/store.ts +3 -3
  382. package/src/react/ui/modals/SellModal/Modal.tsx +14 -11
  383. package/src/react/ui/modals/SellModal/__tests__/Modal.test.tsx +6 -4
  384. package/src/react/ui/modals/SellModal/hooks/useGetTokenApproval.tsx +1 -1
  385. package/src/react/ui/modals/SellModal/hooks/useSell.tsx +0 -1
  386. package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +6 -6
  387. package/src/react/ui/modals/SellModal/store.ts +3 -3
  388. package/src/react/ui/modals/SuccessfulPurchaseModal/__tests__/Modal.test.tsx +1 -1
  389. package/src/react/ui/modals/TransferModal/__tests__/__snapshots__/store.test.ts.snap +17 -0
  390. package/src/react/ui/modals/TransferModal/__tests__/store.test.ts +366 -0
  391. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/__tests__/useHandleTransfer.test.tsx +402 -0
  392. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TokenQuantityInput.tsx +52 -50
  393. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TransferButton.tsx +39 -47
  394. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/WalletAddressInput.tsx +9 -8
  395. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +33 -37
  396. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/useHandleTransfer.tsx +19 -10
  397. package/src/react/ui/modals/TransferModal/index.tsx +28 -31
  398. package/src/react/ui/modals/TransferModal/messages.ts +1 -1
  399. package/src/react/ui/modals/TransferModal/store.ts +122 -0
  400. package/src/react/ui/modals/_internal/components/actionModal/ActionModal.test.tsx +1 -1
  401. package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +2 -4
  402. package/src/react/ui/modals/_internal/components/calendar/index.tsx +0 -1
  403. package/src/react/ui/modals/_internal/components/currencyImage/index.tsx +10 -14
  404. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +6 -3
  405. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +23 -18
  406. package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +10 -10
  407. package/src/react/ui/modals/_internal/components/floorPriceText/__tests__/FloorPriceText.test.tsx +6 -6
  408. package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +4 -4
  409. package/src/react/ui/modals/_internal/components/priceInput/__tests__/PriceInput.test.tsx +13 -5
  410. package/src/react/ui/modals/_internal/components/priceInput/index.tsx +41 -26
  411. package/src/react/ui/modals/_internal/components/quantityInput/__tests__/index.test.tsx +68 -59
  412. package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +23 -17
  413. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/__tests__/SelectWaasFeeOptions.test.tsx +340 -41
  414. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/_components/BalanceIndicator.tsx +1 -2
  415. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/index.tsx +95 -101
  416. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/store.ts +72 -14
  417. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/useWaasFeeOptionManager.tsx +29 -14
  418. package/src/react/ui/modals/_internal/components/tokenPreview/index.tsx +2 -2
  419. package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +2 -2
  420. package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +88 -89
  421. package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/TransactionStatusModal.test.tsx +37 -11
  422. package/src/react/ui/modals/_internal/components/transactionStatusModal/hooks/useTransactionStatus.ts +0 -1
  423. package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +32 -20
  424. package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +92 -63
  425. package/src/react/ui/modals/_internal/components/waasFeeOptionsSelect/WaasFeeOptionsSelect.tsx +44 -45
  426. package/src/react/ui/modals/_internal/types.ts +2 -2
  427. package/src/react/ui/modals/modal-provider.tsx +2 -3
  428. package/src/types/api-types.ts +36 -36
  429. package/src/types/buyModalErrors.ts +1 -1
  430. package/src/types/index.ts +5 -5
  431. package/src/types/new-marketplace-types.ts +1 -1
  432. package/src/types/sdk-config.ts +8 -2
  433. package/src/types/types.ts +1 -0
  434. package/src/types/waas-types.ts +1 -1
  435. package/src/utils/abi/index.ts +1 -1
  436. package/src/utils/abi/primary-sale/index.ts +1 -1
  437. package/src/utils/abi/token/index.ts +2 -1
  438. package/src/utils/decode/erc20.ts +1 -1
  439. package/src/utils/index.ts +3 -3
  440. package/src/utils/network.ts +15 -0
  441. package/test/const.ts +3 -1
  442. package/test/mocks/wallet.ts +1 -1
  443. package/test/test-utils.tsx +5 -4
  444. package/vitest.shims.d.ts +2 -0
  445. package/vitest.storybook.config.js +33 -0
  446. package/.changeset/fluffy-jokes-lay.md +0 -5
  447. package/.changeset/wise-bugs-boil.md +0 -8
  448. package/dist/CartIcon-Bll1rbxv.js.map +0 -1
  449. package/dist/CollectibleCard-CLQTl0_6.d.ts +0 -8
  450. package/dist/_internal-69NEWNUE.js +0 -34
  451. package/dist/_internal-69NEWNUE.js.map +0 -1
  452. package/dist/api-1KFxYh7o.js.map +0 -1
  453. package/dist/builder-api-DoK3907S.d.ts +0 -12
  454. package/dist/builder.gen-CxP9NT1p.js.map +0 -1
  455. package/dist/index-4-kfOFdx.d.ts +0 -22
  456. package/dist/index-BHiSG-Yi.d.ts +0 -312
  457. package/dist/index-BQW0PUkQ.d.ts +0 -3973
  458. package/dist/index-BfH21xmk.d.ts +0 -117
  459. package/dist/index-CN8puQQJ.d.ts +0 -24
  460. package/dist/index-DafWjEb4.d.ts +0 -65
  461. package/dist/marketplace.gen-Dqk8vRmD.js.map +0 -1
  462. package/dist/marketplaceConfig-D2MYFqll.js.map +0 -1
  463. package/dist/options-DCi6_23w.js +0 -34
  464. package/dist/options-DCi6_23w.js.map +0 -1
  465. package/dist/primary-sale-Cw95phYC.js.map +0 -1
  466. package/dist/queries-DPvwtnO7.js +0 -486
  467. package/dist/queries-DPvwtnO7.js.map +0 -1
  468. package/dist/react-BG7o4PId.js.map +0 -1
  469. package/dist/token-CO5llIla.js.map +0 -1
  470. package/dist/transaction-CcVViHEL.js.map +0 -1
  471. package/dist/types-DwWE6xOF.js.map +0 -1
  472. package/dist/useCollection-C-mclKU0.d.ts +0 -66
  473. package/dist/utils-BFdxaToy.js.map +0 -1
  474. package/dist/utils-Cat9_pef.js.map +0 -1
  475. package/dist/wagmi-DRctYEk6.js.map +0 -1
  476. package/src/react/_internal/api/zod-schema.ts +0 -678
  477. package/src/react/hooks/options/collectionOptions.ts +0 -41
  478. package/src/react/hooks/useCollectionDetails.tsx +0 -50
  479. package/src/react/hooks/useGetTokenSuppliesMap.ts +0 -33
  480. package/src/react/hooks/useListPrimarySaleItems.ts +0 -42
  481. package/src/react/queries/getTokenSupplies.ts +0 -38
  482. package/src/react/ui/modals/TransferModal/_store.ts +0 -72
  483. package/src/react/ui/modals/_internal/stores/accountModal.ts +0 -3
  484. package/tsconfig.tsbuildinfo +0 -1
  485. /package/dist/{abi-BKyRjVcZ.js → abi-BMvgNbKQ.js} +0 -0
  486. /package/dist/{index-C39K_8SG.d.ts → index-CD2bj_xW.d.ts} +0 -0
  487. /package/dist/{index-ij9f8GAA.d.ts → index-DvpBZgor.d.ts} +0 -0
@@ -0,0 +1,3144 @@
1
+ import { CheckoutOptionsItem, CheckoutOptionsSalesContractArgs, CheckoutOptionsSalesContractReturn, CollectibleCardAction, CollectibleOrder, CollectiblesFilter, Collection, CollectionFilterSettings, ContractType, CreateReq, Currency, CurrencyStatus, GenerateCancelTransactionArgs, GenerateListingTransactionArgs, GenerateOfferTransactionArgs, GenerateSellTransactionArgs, GetCountOfPrimarySaleItemsReturn, ListCollectibleActivitiesArgs, ListCollectibleActivitiesReturn, ListCollectibleListingsArgs, ListCollectibleListingsReturn, ListCollectibleOffersReturn, ListCollectiblesArgs, ListCollectiblesReturn, ListCollectionActivitiesArgs, ListCollectionActivitiesReturn, ListPrimarySaleItemsReturn, MarketplaceConfig, MarketplaceKind, MarketplaceSdkContext, MarketplaceType, Optional, Order, OrderFilter, OrderSide, OrderbookKind, Page, PrimarySaleItemsFilter, PropertyFilter, PropertyType, QueryArg, SdkConfig, SortBy, Step, TokenMetadata, ValuesOptional, WalletKind } from "./create-config-DKJ-F0jc.js";
2
+ import { CollectibleQueryOptions, CollectiblesResponse, CollectionDetailsQueryOptions, CurrencyQueryOptions, FloorOrderQueryOptions, HighestOfferQueryOptions, ListCollectiblesQueryOptions, ListCollectionsQueryOptions, ListTokenMetadataQueryOptions, LowestListingQueryOptions, MarketCurrenciesQueryOptions, StandardQueryOptions, TokenSuppliesQueryOptions, UseBalanceOfCollectibleArgs, UseCountOfPrimarySaleItemsArgs, UseInventoryArgs, UseListBalancesArgs } from "./index-BKBin-rq.js";
3
+ import { MarketCollectibleCardProps } from "./CollectibleCard-Dd-CG6dE.js";
4
+ import * as react33 from "react";
5
+ import * as _tanstack_react_query227 from "@tanstack/react-query";
6
+ import { skipToken } from "@tanstack/react-query";
7
+ import * as _0xsequence_indexer226 from "@0xsequence/indexer";
8
+ import { GetTokenBalancesDetailsReturn, GetTokenIDRangesReturn } from "@0xsequence/indexer";
9
+ import * as _0xsequence_metadata250 from "@0xsequence/metadata";
10
+ import { PropertyFilter as PropertyFilter$1 } from "@0xsequence/metadata";
11
+ import * as react_jsx_runtime34 from "react/jsx-runtime";
12
+ import * as viem255 from "viem";
13
+ import { Address } from "viem";
14
+ import * as nuqs258 from "nuqs";
15
+
16
+ //#region src/types/waas-types.d.ts
17
+ type FeeOption = {
18
+ gasLimit: number;
19
+ to: string;
20
+ token: {
21
+ chainId: number;
22
+ contractAddress: string | null;
23
+ decimals: number;
24
+ logoURL: string;
25
+ name: string;
26
+ symbol: string;
27
+ tokenID: string | null;
28
+ type: string;
29
+ };
30
+ value: string;
31
+ };
32
+ //#endregion
33
+ //#region src/react/hooks/useAutoSelectFeeOption.d.ts
34
+ declare enum AutoSelectFeeOptionError {
35
+ UserNotConnected = "User not connected",
36
+ NoOptionsProvided = "No options provided",
37
+ FailedToCheckBalances = "Failed to check balances",
38
+ InsufficientBalanceForAnyFeeOption = "Insufficient balance for any fee option",
39
+ }
40
+ type UseAutoSelectFeeOptionArgs = {
41
+ pendingFeeOptionConfirmation: {
42
+ id: string;
43
+ options: FeeOption[] | undefined;
44
+ chainId: number;
45
+ };
46
+ enabled?: boolean;
47
+ };
48
+ /**
49
+ * A React hook that automatically selects the first fee option for which the user has sufficient balance.
50
+ *
51
+ * @param {Object} params.pendingFeeOptionConfirmation - Configuration for fee option selection
52
+ *
53
+ * @returns {Promise<{
54
+ * selectedOption: FeeOption | null,
55
+ * error: AutoSelectFeeOptionError | null,
56
+ * isLoading?: boolean
57
+ * }>} A promise that resolves to an object containing:
58
+ * - selectedOption: The first fee option with sufficient balance, or null if none found
59
+ * - error: Error message if selection fails, null otherwise
60
+ * - isLoading: True while checking balances
61
+ *
62
+ * @throws {AutoSelectFeeOptionError} Possible errors:
63
+ * - UserNotConnected: When no wallet is connected
64
+ * - NoOptionsProvided: When fee options array is undefined
65
+ * - FailedToCheckBalances: When balance checking fails
66
+ * - InsufficientBalanceForAnyFeeOption: When user has insufficient balance for all options
67
+ *
68
+ * @example
69
+ * ```tsx
70
+ * function MyComponent() {
71
+ * const [pendingFeeOptionConfirmation, confirmPendingFeeOption] = useWaasFeeOptions();
72
+ *
73
+ * const autoSelectOptionPromise = useAutoSelectFeeOption({
74
+ * pendingFeeOptionConfirmation: pendingFeeOptionConfirmation
75
+ * ? {
76
+ * id: pendingFeeOptionConfirmation.id,
77
+ * options: pendingFeeOptionConfirmation.options,
78
+ * chainId: 1
79
+ * }
80
+ * : {
81
+ * id: '',
82
+ * options: undefined,
83
+ * chainId: 1
84
+ * }
85
+ * });
86
+ *
87
+ * useEffect(() => {
88
+ * autoSelectOptionPromise.then((result) => {
89
+ * if (result.isLoading) {
90
+ * console.log('Checking balances...');
91
+ * return;
92
+ * }
93
+ *
94
+ * if (result.error) {
95
+ * console.error('Failed to select fee option:', result.error);
96
+ * return;
97
+ * }
98
+ *
99
+ * if (pendingFeeOptionConfirmation?.id && result.selectedOption) {
100
+ * confirmPendingFeeOption(
101
+ * pendingFeeOptionConfirmation.id,
102
+ * result.selectedOption.token.contractAddress
103
+ * );
104
+ * }
105
+ * });
106
+ * }, [autoSelectOptionPromise, confirmPendingFeeOption, pendingFeeOptionConfirmation]);
107
+ *
108
+ * return <div>...</div>;
109
+ * }
110
+ * ```
111
+ */
112
+ declare function useAutoSelectFeeOption({
113
+ pendingFeeOptionConfirmation,
114
+ enabled
115
+ }: 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
+ //#endregion
129
+ //#region src/react/hooks/useBalanceOfCollectible.d.ts
130
+ /**
131
+ * Hook to fetch the balance of a specific collectible for a user
132
+ *
133
+ * @param args - The arguments for fetching the balance
134
+ * @returns Query result containing the balance data
135
+ *
136
+ * @example
137
+ * ```tsx
138
+ * const { data, isLoading, error } = useBalanceOfCollectible({
139
+ * collectionAddress: '0x123...',
140
+ * collectableId: '1',
141
+ * userAddress: '0x456...',
142
+ * chainId: 1,
143
+ * query: {
144
+ * enabled: true,
145
+ * refetchInterval: 10000,
146
+ * }
147
+ * });
148
+ * ```
149
+ */
150
+ declare function useBalanceOfCollectible(args: UseBalanceOfCollectibleArgs): _tanstack_react_query227.UseQueryResult<_0xsequence_indexer226.TokenBalance, Error>;
151
+ //#endregion
152
+ //#region src/react/hooks/useCancelOrder.d.ts
153
+ interface UseCancelOrderArgs {
154
+ collectionAddress: string;
155
+ chainId: number;
156
+ onSuccess?: ({
157
+ hash,
158
+ orderId
159
+ }: {
160
+ hash?: string;
161
+ orderId?: string;
162
+ }) => void;
163
+ onError?: (error: Error) => void;
164
+ }
165
+ type TransactionStep = {
166
+ exist: boolean;
167
+ isExecuting: boolean;
168
+ execute: () => Promise<void>;
169
+ };
170
+ declare const useCancelOrder: ({
171
+ collectionAddress,
172
+ chainId,
173
+ onSuccess,
174
+ onError
175
+ }: UseCancelOrderArgs) => {
176
+ cancelOrder: (params: {
177
+ orderId: string;
178
+ marketplace: MarketplaceKind;
179
+ }) => Promise<void>;
180
+ isExecuting: boolean;
181
+ cancellingOrderId: string | null;
182
+ };
183
+ //#endregion
184
+ //#region src/react/queries/checkoutOptionsSalesContract.d.ts
185
+ interface FetchCheckoutOptionsSalesContractParams extends Omit<CheckoutOptionsSalesContractArgs, 'chainId' | 'wallet'> {
186
+ chainId: number;
187
+ walletAddress: Address;
188
+ contractAddress: string;
189
+ collectionAddress: string;
190
+ items: Array<CheckoutOptionsItem>;
191
+ config: SdkConfig;
192
+ }
193
+ /**
194
+ * Fetches checkout options for sales contract from the Marketplace API
195
+ */
196
+ declare function fetchCheckoutOptionsSalesContract(params: FetchCheckoutOptionsSalesContractParams): Promise<CheckoutOptionsSalesContractReturn>;
197
+ type CheckoutOptionsSalesContractQueryOptions = ValuesOptional<FetchCheckoutOptionsSalesContractParams> & {
198
+ query?: StandardQueryOptions;
199
+ };
200
+ declare function checkoutOptionsSalesContractQueryOptions(params: CheckoutOptionsSalesContractQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<CheckoutOptionsSalesContractReturn, Error, CheckoutOptionsSalesContractReturn, (string | CheckoutOptionsSalesContractQueryOptions)[]>, "queryFn"> & {
201
+ queryFn?: _tanstack_react_query227.QueryFunction<CheckoutOptionsSalesContractReturn, (string | CheckoutOptionsSalesContractQueryOptions)[], never> | undefined;
202
+ } & {
203
+ queryKey: (string | CheckoutOptionsSalesContractQueryOptions)[] & {
204
+ [dataTagSymbol]: CheckoutOptionsSalesContractReturn;
205
+ [dataTagErrorSymbol]: Error;
206
+ };
207
+ };
208
+ //#endregion
209
+ //#region src/react/hooks/useCheckoutOptionsSalesContract.d.ts
210
+ type UseCheckoutOptionsSalesContractParams = Optional<CheckoutOptionsSalesContractQueryOptions, 'config' | 'walletAddress'>;
211
+ /**
212
+ * Hook to fetch checkout options for sales contract items
213
+ *
214
+ * Retrieves checkout options including available payment methods, fees, and transaction details
215
+ * for items from a sales contract. Requires a connected wallet to calculate wallet-specific options.
216
+ *
217
+ * @param params - Configuration parameters or skipToken to skip the query
218
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
219
+ * @param params.contractAddress - The sales contract address
220
+ * @param params.collectionAddress - The collection contract address
221
+ * @param params.items - Array of items to purchase with tokenId and quantity
222
+ * @param params.query - Optional React Query configuration
223
+ *
224
+ * @returns Query result containing checkout options with payment methods and fees
225
+ *
226
+ * @example
227
+ * Basic usage:
228
+ * ```typescript
229
+ * const { data: checkoutOptions, isLoading } = useCheckoutOptionsSalesContract({
230
+ * chainId: 137,
231
+ * contractAddress: '0x1234...',
232
+ * collectionAddress: '0x5678...',
233
+ * items: [{
234
+ * tokenId: '1',
235
+ * quantity: '1'
236
+ * }]
237
+ * })
238
+ * ```
239
+ *
240
+ * @example
241
+ * With skipToken to conditionally skip:
242
+ * ```typescript
243
+ * const { data: checkoutOptions } = useCheckoutOptionsSalesContract(
244
+ * items.length > 0 ? {
245
+ * chainId: 1,
246
+ * contractAddress: contractAddress,
247
+ * collectionAddress: collectionAddress,
248
+ * items: items
249
+ * } : skipToken
250
+ * )
251
+ * ```
252
+ */
253
+ declare function useCheckoutOptionsSalesContract(params: UseCheckoutOptionsSalesContractParams | typeof skipToken): _tanstack_react_query227.UseQueryResult<CheckoutOptionsSalesContractReturn, Error>;
254
+ type UseCheckoutOptionsSalesContractArgs = {
255
+ chainId: number;
256
+ contractAddress: string;
257
+ collectionAddress: string;
258
+ items: Array<CheckoutOptionsItem>;
259
+ };
260
+ type UseCheckoutOptionsSalesContractReturn = Awaited<ReturnType<typeof fetchCheckoutOptionsSalesContract>>;
261
+ //#endregion
262
+ //#region src/react/hooks/useCollectible.d.ts
263
+ type UseCollectibleParams = Optional<CollectibleQueryOptions, 'config'>;
264
+ /**
265
+ * Hook to fetch metadata for a specific collectible
266
+ *
267
+ * This hook retrieves metadata for an individual NFT from a collection,
268
+ * including properties like name, description, image, attributes, etc.
269
+ *
270
+ * @param params - Configuration parameters
271
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
272
+ * @param params.collectionAddress - The collection contract address
273
+ * @param params.collectibleId - The token ID of the collectible
274
+ * @param params.query - Optional React Query configuration
275
+ *
276
+ * @returns Query result containing the collectible metadata
277
+ *
278
+ * @example
279
+ * Basic usage:
280
+ * ```typescript
281
+ * const { data: collectible, isLoading } = useCollectible({
282
+ * chainId: 137,
283
+ * collectionAddress: '0x631998e91476da5b870d741192fc5cbc55f5a52e',
284
+ * collectibleId: '12345'
285
+ * })
286
+ * ```
287
+ *
288
+ * @example
289
+ * With custom query options:
290
+ * ```typescript
291
+ * const { data } = useCollectible({
292
+ * chainId: 137,
293
+ * collectionAddress: '0x631998e91476da5b870d741192fc5cbc55f5a52e',
294
+ * collectibleId: '12345',
295
+ * query: {
296
+ * enabled: Boolean(collectionAddress && tokenId),
297
+ * staleTime: 30_000
298
+ * }
299
+ * })
300
+ * ```
301
+ */
302
+ declare function useCollectible(params: UseCollectibleParams): _tanstack_react_query227.UseQueryResult<_0xsequence_metadata250.TokenMetadata, Error>;
303
+ //#endregion
304
+ //#region src/react/queries/collection.d.ts
305
+ interface FetchCollectionParams {
306
+ chainId: number;
307
+ collectionAddress: string;
308
+ config: SdkConfig;
309
+ }
310
+ /**
311
+ * Fetches collection information from the metadata API
312
+ */
313
+
314
+ type CollectionQueryOptions = ValuesOptional<FetchCollectionParams> & {
315
+ query?: StandardQueryOptions;
316
+ };
317
+ declare function collectionQueryOptions(params: CollectionQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<_0xsequence_metadata250.ContractInfo, Error, _0xsequence_metadata250.ContractInfo, ("collections" | "detail" | CollectionQueryOptions)[]>, "queryFn"> & {
318
+ queryFn?: _tanstack_react_query227.QueryFunction<_0xsequence_metadata250.ContractInfo, ("collections" | "detail" | CollectionQueryOptions)[], never> | undefined;
319
+ } & {
320
+ queryKey: ("collections" | "detail" | CollectionQueryOptions)[] & {
321
+ [dataTagSymbol]: _0xsequence_metadata250.ContractInfo;
322
+ [dataTagErrorSymbol]: Error;
323
+ };
324
+ };
325
+ //#endregion
326
+ //#region src/react/hooks/useCollection.d.ts
327
+ type UseCollectionParams = Optional<CollectionQueryOptions, 'config'>;
328
+ /**
329
+ * Hook to fetch collection information from the metadata API
330
+ *
331
+ * Retrieves basic contract information including name, symbol, type,
332
+ * and extension data for a given collection contract.
333
+ *
334
+ * @param params - Configuration parameters
335
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
336
+ * @param params.collectionAddress - The collection contract address
337
+ * @param params.query - Optional React Query configuration
338
+ *
339
+ * @returns Query result containing contract information
340
+ *
341
+ * @example
342
+ * Basic usage:
343
+ * ```typescript
344
+ * const { data, isLoading } = useCollection({
345
+ * chainId: 137,
346
+ * collectionAddress: '0x...'
347
+ * })
348
+ * ```
349
+ *
350
+ * @example
351
+ * With custom query options:
352
+ * ```typescript
353
+ * const { data, isLoading } = useCollection({
354
+ * chainId: 1,
355
+ * collectionAddress: '0x...',
356
+ * query: {
357
+ * refetchInterval: 30000,
358
+ * enabled: userWantsToFetch
359
+ * }
360
+ * })
361
+ * ```
362
+ */
363
+ declare function useCollection(params: UseCollectionParams): _tanstack_react_query227.UseQueryResult<_0xsequence_metadata250.ContractInfo, Error>;
364
+ //#endregion
365
+ //#region src/react/queries/collectionBalanceDetails.d.ts
366
+ interface CollectionBalanceFilter {
367
+ accountAddresses: Array<Address>;
368
+ contractWhitelist?: Array<Address>;
369
+ omitNativeBalances: boolean;
370
+ }
371
+ interface FetchCollectionBalanceDetailsParams {
372
+ chainId: number;
373
+ filter: CollectionBalanceFilter;
374
+ config: SdkConfig;
375
+ }
376
+ /**
377
+ * Fetches detailed balance information for multiple accounts from the Indexer API
378
+ */
379
+ declare function fetchCollectionBalanceDetails(params: FetchCollectionBalanceDetailsParams): Promise<GetTokenBalancesDetailsReturn>;
380
+ type CollectionBalanceDetailsQueryOptions = ValuesOptional<FetchCollectionBalanceDetailsParams> & {
381
+ query?: StandardQueryOptions;
382
+ };
383
+ declare function collectionBalanceDetailsQueryOptions(params: CollectionBalanceDetailsQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<GetTokenBalancesDetailsReturn, Error, GetTokenBalancesDetailsReturn, (string | CollectionBalanceDetailsQueryOptions)[]>, "queryFn"> & {
384
+ queryFn?: _tanstack_react_query227.QueryFunction<GetTokenBalancesDetailsReturn, (string | CollectionBalanceDetailsQueryOptions)[], never> | undefined;
385
+ } & {
386
+ queryKey: (string | CollectionBalanceDetailsQueryOptions)[] & {
387
+ [dataTagSymbol]: GetTokenBalancesDetailsReturn;
388
+ [dataTagErrorSymbol]: Error;
389
+ };
390
+ };
391
+ //#endregion
392
+ //#region src/react/hooks/useCollectionBalanceDetails.d.ts
393
+ type UseCollectionBalanceDetailsParams = Optional<CollectionBalanceDetailsQueryOptions, 'config'>;
394
+ /**
395
+ * Hook to fetch detailed balance information for multiple accounts
396
+ *
397
+ * Retrieves token balances and native balances for multiple account addresses,
398
+ * with support for contract whitelisting and optional native balance exclusion.
399
+ * Aggregates results from multiple account addresses into a single response.
400
+ *
401
+ * @param params - Configuration parameters
402
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
403
+ * @param params.filter - Filter configuration for balance queries
404
+ * @param params.filter.accountAddresses - Array of account addresses to query balances for
405
+ * @param params.filter.contractWhitelist - Optional array of contract addresses to filter by
406
+ * @param params.filter.omitNativeBalances - Whether to exclude native token balances
407
+ * @param params.query - Optional React Query configuration
408
+ *
409
+ * @returns Query result containing aggregated balance details for all accounts
410
+ *
411
+ * @example
412
+ * Basic usage:
413
+ * ```typescript
414
+ * const { data: balanceDetails, isLoading } = useCollectionBalanceDetails({
415
+ * chainId: 137,
416
+ * filter: {
417
+ * accountAddresses: ['0x1234...', '0x5678...'],
418
+ * omitNativeBalances: false
419
+ * }
420
+ * })
421
+ *
422
+ * if (data) {
423
+ * console.log(`Found ${data.balances.length} token balances`);
424
+ * console.log(`Found ${data.nativeBalances.length} native balances`);
425
+ * }
426
+ * ```
427
+ *
428
+ * @example
429
+ * With contract whitelist:
430
+ * ```typescript
431
+ * const { data: balanceDetails } = useCollectionBalanceDetails({
432
+ * chainId: 1,
433
+ * filter: {
434
+ * accountAddresses: [userAddress],
435
+ * contractWhitelist: ['0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'], // USDC only
436
+ * omitNativeBalances: true
437
+ * },
438
+ * query: {
439
+ * enabled: Boolean(userAddress),
440
+ * refetchInterval: 60000 // Refresh every minute
441
+ * }
442
+ * })
443
+ * ```
444
+ */
445
+ declare function useCollectionBalanceDetails(params: UseCollectionBalanceDetailsParams): _tanstack_react_query227.UseQueryResult<_0xsequence_indexer226.GetTokenBalancesDetailsReturn, Error>;
446
+ type UseCollectionBalanceDetailsArgs = {
447
+ chainId: number;
448
+ filter: CollectionBalanceFilter;
449
+ query?: {
450
+ enabled?: boolean;
451
+ };
452
+ };
453
+ type UseCollectionBalanceDetailsReturn = Awaited<ReturnType<typeof fetchCollectionBalanceDetails>>;
454
+ //#endregion
455
+ //#region src/react/hooks/useCollectionDetails.d.ts
456
+ type UseCollectionDetailsParams = Optional<CollectionDetailsQueryOptions, 'config'>;
457
+ /**
458
+ * Hook to fetch detailed information about a collection
459
+ *
460
+ * This hook retrieves comprehensive metadata and details for an NFT collection,
461
+ * including collection name, description, banner, avatar, social links, stats, etc.
462
+ *
463
+ * @param params - Configuration parameters
464
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
465
+ * @param params.collectionAddress - The collection contract address
466
+ * @param params.query - Optional React Query configuration
467
+ *
468
+ * @returns Query result containing the collection details
469
+ *
470
+ * @example
471
+ * Basic usage:
472
+ * ```typescript
473
+ * const { data: collection, isLoading } = useCollectionDetails({
474
+ * chainId: 137,
475
+ * collectionAddress: '0x631998e91476da5b870d741192fc5cbc55f5a52e'
476
+ * })
477
+ * ```
478
+ *
479
+ * @example
480
+ * With custom query options:
481
+ * ```typescript
482
+ * const { data } = useCollectionDetails({
483
+ * chainId: 137,
484
+ * collectionAddress: '0x631998e91476da5b870d741192fc5cbc55f5a52e',
485
+ * query: {
486
+ * enabled: Boolean(collectionAddress),
487
+ * staleTime: 60_000
488
+ * }
489
+ * })
490
+ * ```
491
+ */
492
+ declare function useCollectionDetails(params: UseCollectionDetailsParams): _tanstack_react_query227.UseQueryResult<Collection, Error>;
493
+ //#endregion
494
+ //#region src/react/hooks/useCollectionDetailsPolling.d.ts
495
+ type UseCollectionDetailsPolling = {
496
+ collectionAddress: string;
497
+ chainId: number;
498
+ query?: {
499
+ enabled?: boolean;
500
+ };
501
+ };
502
+ declare const collectionDetailsPollingOptions: (args: UseCollectionDetailsPolling, config: SdkConfig) => _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<Collection, Error, Collection, ("collections" | "detail" | CollectionDetailsQueryOptions)[]>, "queryFn"> & {
503
+ queryFn?: _tanstack_react_query227.QueryFunction<Collection, ("collections" | "detail" | CollectionDetailsQueryOptions)[], never> | undefined;
504
+ } & {
505
+ queryKey: ("collections" | "detail" | CollectionDetailsQueryOptions)[] & {
506
+ [dataTagSymbol]: Collection;
507
+ [dataTagErrorSymbol]: Error;
508
+ };
509
+ };
510
+ declare const useCollectionDetailsPolling: (args: UseCollectionDetailsPolling) => _tanstack_react_query227.UseQueryResult<Collection, Error>;
511
+ //#endregion
512
+ //#region src/react/queries/comparePrices.d.ts
513
+ interface FetchComparePricesParams {
514
+ chainId: number;
515
+ priceAmountRaw: string;
516
+ priceCurrencyAddress: Address;
517
+ compareToPriceAmountRaw: string;
518
+ compareToPriceCurrencyAddress: Address;
519
+ config: SdkConfig;
520
+ }
521
+ type ComparePricesReturn$1 = {
522
+ percentageDifference: number;
523
+ percentageDifferenceFormatted: string;
524
+ status: 'above' | 'same' | 'below';
525
+ };
526
+ /**
527
+ * Compares prices between different currencies by converting both to USD
528
+ */
529
+
530
+ type ComparePricesQueryOptions = ValuesOptional<FetchComparePricesParams> & {
531
+ query?: StandardQueryOptions;
532
+ };
533
+ declare function comparePricesQueryOptions(params: ComparePricesQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<ComparePricesReturn$1, Error, ComparePricesReturn$1, (string | ComparePricesQueryOptions)[]>, "queryFn"> & {
534
+ queryFn?: _tanstack_react_query227.QueryFunction<ComparePricesReturn$1, (string | ComparePricesQueryOptions)[], never> | undefined;
535
+ } & {
536
+ queryKey: (string | ComparePricesQueryOptions)[] & {
537
+ [dataTagSymbol]: ComparePricesReturn$1;
538
+ [dataTagErrorSymbol]: Error;
539
+ };
540
+ };
541
+ //#endregion
542
+ //#region src/react/hooks/useComparePrices.d.ts
543
+ type UseComparePricesParams = Optional<ComparePricesQueryOptions, 'config'>;
544
+ /**
545
+ * Hook to compare prices between different currencies by converting both to USD
546
+ *
547
+ * Compares two prices by converting both to USD using real-time exchange rates
548
+ * and returns the percentage difference with comparison status.
549
+ *
550
+ * @param params - Configuration parameters
551
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
552
+ * @param params.priceAmountRaw - The raw amount of the first price (wei format)
553
+ * @param params.priceCurrencyAddress - The currency address of the first price
554
+ * @param params.compareToPriceAmountRaw - The raw amount of the second price to compare against (wei format)
555
+ * @param params.compareToPriceCurrencyAddress - The currency address of the second price
556
+ * @param params.query - Optional React Query configuration
557
+ *
558
+ * @returns Query result containing percentage difference and comparison status
559
+ *
560
+ * @example
561
+ * Basic usage:
562
+ * ```typescript
563
+ * const { data: comparison, isLoading } = useComparePrices({
564
+ * chainId: 1,
565
+ * priceAmountRaw: '1000000000000000000', // 1 ETH in wei
566
+ * priceCurrencyAddress: '0x0000000000000000000000000000000000000000', // ETH
567
+ * compareToPriceAmountRaw: '2000000000', // 2000 USDC in wei (6 decimals)
568
+ * compareToPriceCurrencyAddress: '0xA0b86a33E6B8DbF5E71Eaa9bfD3F6fD8e8Be3F69' // USDC
569
+ * })
570
+ *
571
+ * if (data) {
572
+ * console.log(`${data.percentageDifferenceFormatted}% ${data.status}`);
573
+ * // e.g., "25.50% above" or "10.25% below"
574
+ * }
575
+ * ```
576
+ *
577
+ * @example
578
+ * With custom query options:
579
+ * ```typescript
580
+ * const { data: comparison } = useComparePrices({
581
+ * chainId: 137,
582
+ * priceAmountRaw: price1,
583
+ * priceCurrencyAddress: currency1Address,
584
+ * compareToPriceAmountRaw: price2,
585
+ * compareToPriceCurrencyAddress: currency2Address,
586
+ * query: {
587
+ * enabled: Boolean(price1 && price2),
588
+ * refetchInterval: 30000 // Refresh every 30 seconds
589
+ * }
590
+ * })
591
+ * ```
592
+ */
593
+ declare function useComparePrices(params: UseComparePricesParams): _tanstack_react_query227.UseQueryResult<ComparePricesReturn$1, Error>;
594
+ type UseComparePricesArgs = {
595
+ chainId: number;
596
+ priceAmountRaw: string;
597
+ priceCurrencyAddress: Address;
598
+ compareToPriceAmountRaw: string;
599
+ compareToPriceCurrencyAddress: Address;
600
+ query?: {
601
+ enabled?: boolean;
602
+ };
603
+ };
604
+ type UseComparePricesReturn = {
605
+ percentageDifference: number;
606
+ percentageDifferenceFormatted: string;
607
+ status: 'above' | 'same' | 'below';
608
+ };
609
+ type ComparePricesReturn = UseComparePricesReturn;
610
+ //#endregion
611
+ //#region src/react/hooks/useConfig.d.ts
612
+ declare function useConfig(): MarketplaceSdkContext;
613
+ //#endregion
614
+ //#region src/react/queries/convertPriceToUSD.d.ts
615
+ interface FetchConvertPriceToUSDParams {
616
+ chainId: number;
617
+ currencyAddress: Address;
618
+ amountRaw: string;
619
+ config: SdkConfig;
620
+ }
621
+ interface ConvertPriceToUSDReturn {
622
+ usdAmount: number;
623
+ usdAmountFormatted: string;
624
+ }
625
+ /**
626
+ * Converts a price amount from a specific currency to USD using exchange rates
627
+ */
628
+
629
+ type ConvertPriceToUSDQueryOptions = ValuesOptional<FetchConvertPriceToUSDParams> & {
630
+ query?: StandardQueryOptions;
631
+ };
632
+ declare function convertPriceToUSDQueryOptions(params: ConvertPriceToUSDQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<ConvertPriceToUSDReturn, Error, ConvertPriceToUSDReturn, (string | ConvertPriceToUSDQueryOptions)[]>, "queryFn"> & {
633
+ queryFn?: _tanstack_react_query227.QueryFunction<ConvertPriceToUSDReturn, (string | ConvertPriceToUSDQueryOptions)[], never> | undefined;
634
+ } & {
635
+ queryKey: (string | ConvertPriceToUSDQueryOptions)[] & {
636
+ [dataTagSymbol]: ConvertPriceToUSDReturn;
637
+ [dataTagErrorSymbol]: Error;
638
+ };
639
+ };
640
+ //#endregion
641
+ //#region src/react/hooks/useConvertPriceToUSD.d.ts
642
+ type UseConvertPriceToUSDParams = Optional<ConvertPriceToUSDQueryOptions, 'config'>;
643
+ /**
644
+ * Hook to convert a price amount from a specific currency to USD
645
+ *
646
+ * Converts cryptocurrency amounts to their USD equivalent using current exchange rates.
647
+ * Fetches currency data and calculates the USD value based on the provided amount
648
+ * and currency address.
649
+ *
650
+ * @param params - Configuration parameters
651
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
652
+ * @param params.currencyAddress - The currency contract address to convert from
653
+ * @param params.amountRaw - The raw amount in smallest units (e.g., wei for ETH)
654
+ * @param params.query - Optional React Query configuration
655
+ *
656
+ * @returns Query result containing USD amount and formatted USD amount
657
+ *
658
+ * @example
659
+ * Basic ETH to USD conversion:
660
+ * ```typescript
661
+ * const { data: conversion, isLoading } = useConvertPriceToUSD({
662
+ * chainId: 1,
663
+ * currencyAddress: '0x0000000000000000000000000000000000000000', // ETH
664
+ * amountRaw: '1000000000000000000' // 1 ETH in wei
665
+ * })
666
+ *
667
+ * if (data) {
668
+ * console.log(`$${data.usdAmountFormatted}`); // e.g., "$2000.00"
669
+ * console.log(data.usdAmount); // e.g., 2000
670
+ * }
671
+ * ```
672
+ *
673
+ * @example
674
+ * ERC-20 token conversion with conditional enabling:
675
+ * ```typescript
676
+ * const { data: conversion } = useConvertPriceToUSD({
677
+ * chainId: 137,
678
+ * currencyAddress: '0x2791bca1f2de4661ed88a30c99a7a9449aa84174', // USDC on Polygon
679
+ * amountRaw: '1000000', // 1 USDC (6 decimals)
680
+ * query: {
681
+ * enabled: Boolean(userHasTokens),
682
+ * refetchInterval: 30000 // Update price every 30 seconds
683
+ * }
684
+ * })
685
+ * ```
686
+ */
687
+ declare function useConvertPriceToUSD(params: UseConvertPriceToUSDParams): _tanstack_react_query227.UseQueryResult<ConvertPriceToUSDReturn, Error>;
688
+ type UseConvertPriceToUSDArgs = {
689
+ chainId: number;
690
+ currencyAddress: Address;
691
+ amountRaw: string;
692
+ query?: {
693
+ enabled?: boolean;
694
+ };
695
+ };
696
+ type UseConvertPriceToUSDReturn = ConvertPriceToUSDReturn;
697
+ //#endregion
698
+ //#region src/react/queries/countListingsForCollectible.d.ts
699
+ interface FetchCountListingsForCollectibleParams {
700
+ chainId: number;
701
+ collectionAddress: string;
702
+ collectibleId: string;
703
+ config: SdkConfig;
704
+ filter?: OrderFilter;
705
+ }
706
+ /**
707
+ * Fetches count of listings for a collectible from the marketplace API
708
+ */
709
+
710
+ type CountListingsForCollectibleQueryOptions = ValuesOptional<FetchCountListingsForCollectibleParams> & {
711
+ query?: StandardQueryOptions;
712
+ };
713
+ declare function countListingsForCollectibleQueryOptions(params: CountListingsForCollectibleQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<number, Error, number, ("collectable" | "listingsCount" | CountListingsForCollectibleQueryOptions)[]>, "queryFn"> & {
714
+ queryFn?: _tanstack_react_query227.QueryFunction<number, ("collectable" | "listingsCount" | CountListingsForCollectibleQueryOptions)[], never> | undefined;
715
+ } & {
716
+ queryKey: ("collectable" | "listingsCount" | CountListingsForCollectibleQueryOptions)[] & {
717
+ [dataTagSymbol]: number;
718
+ [dataTagErrorSymbol]: Error;
719
+ };
720
+ };
721
+ //#endregion
722
+ //#region src/react/hooks/useCountListingsForCollectible.d.ts
723
+ type UseCountListingsForCollectibleParams = Optional<CountListingsForCollectibleQueryOptions, 'config'>;
724
+ /**
725
+ * Hook to get the count of listings for a specific collectible
726
+ *
727
+ * Counts the number of active listings for a given collectible in the marketplace.
728
+ * Useful for displaying listing counts in UI components.
729
+ *
730
+ * @param params - Configuration parameters
731
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
732
+ * @param params.collectionAddress - The collection contract address
733
+ * @param params.collectibleId - The specific collectible/token ID
734
+ * @param params.filter - Optional filter criteria for listings
735
+ * @param params.query - Optional React Query configuration
736
+ *
737
+ * @returns Query result containing the count of listings
738
+ *
739
+ * @example
740
+ * Basic usage:
741
+ * ```typescript
742
+ * const { data: listingCount, isLoading } = useCountListingsForCollectible({
743
+ * chainId: 137,
744
+ * collectionAddress: '0x...',
745
+ * collectibleId: '123'
746
+ * })
747
+ * ```
748
+ *
749
+ * @example
750
+ * With filter:
751
+ * ```typescript
752
+ * const { data: filteredCount } = useCountListingsForCollectible({
753
+ * chainId: 137,
754
+ * collectionAddress: '0x...',
755
+ * collectibleId: '123',
756
+ * filter: { priceRange: { min: '1000000000000000000' } }
757
+ * })
758
+ * ```
759
+ */
760
+ declare function useCountListingsForCollectible(params: UseCountListingsForCollectibleParams): _tanstack_react_query227.UseQueryResult<number, Error>;
761
+ //#endregion
762
+ //#region src/react/queries/countOfCollectables.d.ts
763
+ interface FetchCountOfCollectablesParams {
764
+ chainId: number;
765
+ collectionAddress: string;
766
+ config: SdkConfig;
767
+ filter?: CollectiblesFilter;
768
+ side?: OrderSide;
769
+ }
770
+ /**
771
+ * Fetches count of collectibles from the marketplace API
772
+ */
773
+
774
+ type CountOfCollectablesQueryOptions = ValuesOptional<FetchCountOfCollectablesParams> & {
775
+ query?: StandardQueryOptions;
776
+ };
777
+ declare function countOfCollectablesQueryOptions(params: CountOfCollectablesQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<number, Error, number, ("collectable" | "counts" | CountOfCollectablesQueryOptions)[]>, "queryFn"> & {
778
+ queryFn?: _tanstack_react_query227.QueryFunction<number, ("collectable" | "counts" | CountOfCollectablesQueryOptions)[], never> | undefined;
779
+ } & {
780
+ queryKey: ("collectable" | "counts" | CountOfCollectablesQueryOptions)[] & {
781
+ [dataTagSymbol]: number;
782
+ [dataTagErrorSymbol]: Error;
783
+ };
784
+ };
785
+ //#endregion
786
+ //#region src/react/hooks/useCountOfCollectables.d.ts
787
+ type UseCountOfCollectablesParams = Optional<CountOfCollectablesQueryOptions, 'config'>;
788
+ /**
789
+ * Hook to get the count of collectibles in a market collection
790
+ *
791
+ * Counts either all collectibles or filtered collectibles based on provided parameters.
792
+ * When filter and side parameters are provided, returns count of filtered collectibles.
793
+ * Otherwise returns count of all collectibles in the collection.
794
+ *
795
+ * @param params - Configuration parameters
796
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
797
+ * @param params.collectionAddress - The collection contract address
798
+ * @param params.filter - Optional filter criteria for collectibles
799
+ * @param params.side - Optional order side (BUY/SELL) when using filters
800
+ * @param params.query - Optional React Query configuration
801
+ *
802
+ * @returns Query result containing the count of collectibles
803
+ *
804
+ * @example
805
+ * Basic usage (count all collectibles):
806
+ * ```typescript
807
+ * const { data: totalCount, isLoading } = useCountOfCollectables({
808
+ * chainId: 137,
809
+ * collectionAddress: '0x...'
810
+ * })
811
+ * ```
812
+ *
813
+ * @example
814
+ * With filters (count filtered collectibles):
815
+ * ```typescript
816
+ * const { data: filteredCount } = useCountOfCollectables({
817
+ * chainId: 137,
818
+ * collectionAddress: '0x...',
819
+ * filter: { priceRange: { min: '1000000000000000000' } },
820
+ * side: OrderSide.SELL
821
+ * })
822
+ * ```
823
+ */
824
+ declare function useCountOfCollectables(params: UseCountOfCollectablesParams): _tanstack_react_query227.UseQueryResult<number, Error>;
825
+ //#endregion
826
+ //#region src/react/queries/countOffersForCollectible.d.ts
827
+ interface FetchCountOffersForCollectibleParams {
828
+ chainId: number;
829
+ collectionAddress: string;
830
+ collectibleId: string;
831
+ config: SdkConfig;
832
+ filter?: OrderFilter;
833
+ }
834
+ /**
835
+ * Fetches count of offers for a collectible from the marketplace API
836
+ */
837
+
838
+ type CountOffersForCollectibleQueryOptions = ValuesOptional<FetchCountOffersForCollectibleParams> & {
839
+ query?: StandardQueryOptions;
840
+ };
841
+ declare function countOffersForCollectibleQueryOptions(params: CountOffersForCollectibleQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<number, Error, number, ("collectable" | "offersCount" | CountOffersForCollectibleQueryOptions)[]>, "queryFn"> & {
842
+ queryFn?: _tanstack_react_query227.QueryFunction<number, ("collectable" | "offersCount" | CountOffersForCollectibleQueryOptions)[], never> | undefined;
843
+ } & {
844
+ queryKey: ("collectable" | "offersCount" | CountOffersForCollectibleQueryOptions)[] & {
845
+ [dataTagSymbol]: number;
846
+ [dataTagErrorSymbol]: Error;
847
+ };
848
+ };
849
+ //#endregion
850
+ //#region src/react/hooks/useCountOffersForCollectible.d.ts
851
+ type UseCountOffersForCollectibleParams = Optional<CountOffersForCollectibleQueryOptions, 'config'>;
852
+ /**
853
+ * Hook to get the count of offers for a specific collectible
854
+ *
855
+ * Counts the number of active offers for a given collectible in the marketplace.
856
+ * Useful for displaying offer counts in UI components.
857
+ *
858
+ * @param params - Configuration parameters
859
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
860
+ * @param params.collectionAddress - The collection contract address
861
+ * @param params.collectibleId - The specific collectible/token ID
862
+ * @param params.filter - Optional filter criteria for offers
863
+ * @param params.query - Optional React Query configuration
864
+ *
865
+ * @returns Query result containing the count of offers
866
+ *
867
+ * @example
868
+ * Basic usage:
869
+ * ```typescript
870
+ * const { data: offerCount, isLoading } = useCountOffersForCollectible({
871
+ * chainId: 137,
872
+ * collectionAddress: '0x...',
873
+ * collectibleId: '123'
874
+ * })
875
+ * ```
876
+ *
877
+ * @example
878
+ * With filter:
879
+ * ```typescript
880
+ * const { data: filteredCount } = useCountOffersForCollectible({
881
+ * chainId: 137,
882
+ * collectionAddress: '0x...',
883
+ * collectibleId: '123',
884
+ * filter: { priceRange: { min: '1000000000000000000' } }
885
+ * })
886
+ * ```
887
+ */
888
+ declare function useCountOffersForCollectible(params: UseCountOffersForCollectibleParams): _tanstack_react_query227.UseQueryResult<number, Error>;
889
+ //#endregion
890
+ //#region src/react/hooks/useCountOfPrimarySaleItems.d.ts
891
+ declare function useCountOfPrimarySaleItems(args: UseCountOfPrimarySaleItemsArgs): _tanstack_react_query227.UseQueryResult<number, Error>;
892
+ //#endregion
893
+ //#region src/react/hooks/useCurrency.d.ts
894
+ type UseCurrencyParams = Optional<CurrencyQueryOptions, 'config'>;
895
+ /**
896
+ * Hook to fetch currency details from the marketplace
897
+ *
898
+ * Retrieves detailed information about a specific currency by its contract address.
899
+ * The currency data is cached from previous currency list calls when possible.
900
+ *
901
+ * @param params - Configuration parameters
902
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
903
+ * @param params.currencyAddress - The currency contract address
904
+ * @param params.query - Optional React Query configuration
905
+ *
906
+ * @returns Query result containing currency details
907
+ *
908
+ * @example
909
+ * Basic usage:
910
+ * ```typescript
911
+ * const { data, isLoading } = useCurrency({
912
+ * chainId: 137,
913
+ * currencyAddress: '0x...'
914
+ * })
915
+ * ```
916
+ *
917
+ * @example
918
+ * With custom query options:
919
+ * ```typescript
920
+ * const { data, isLoading } = useCurrency({
921
+ * chainId: 1,
922
+ * currencyAddress: '0x...',
923
+ * query: {
924
+ * enabled: Boolean(selectedCurrency)
925
+ * }
926
+ * })
927
+ * ```
928
+ */
929
+ declare function useCurrency(params: UseCurrencyParams): _tanstack_react_query227.UseQueryResult<Currency | undefined, Error>;
930
+ //#endregion
931
+ //#region src/react/hooks/useERC721SaleMintedTokens.d.ts
932
+ interface UseERC721SaleMintedTokensProps {
933
+ chainId: number;
934
+ contractAddress: Address;
935
+ salesContractAddress: Address;
936
+ enabled?: boolean;
937
+ tokenIds: string[];
938
+ }
939
+ declare function useERC721SaleMintedTokens({
940
+ chainId,
941
+ contractAddress,
942
+ salesContractAddress,
943
+ tokenIds,
944
+ enabled
945
+ }: UseERC721SaleMintedTokensProps): {
946
+ ownedCount: number;
947
+ totalSupplyCap: number;
948
+ remainingCount: number;
949
+ isLoading: boolean;
950
+ error: viem255.ReadContractErrorType | null;
951
+ saleDetails: {
952
+ supplyCap: bigint;
953
+ cost: bigint;
954
+ paymentToken: `0x${string}`;
955
+ startTime: bigint;
956
+ endTime: bigint;
957
+ merkleRoot: `0x${string}`;
958
+ } | undefined;
959
+ };
960
+ //#endregion
961
+ //#region src/react/hooks/useFilterState.d.ts
962
+ interface StringFilterValues {
963
+ type: PropertyType.STRING;
964
+ values: string[];
965
+ }
966
+ interface IntFilterValues {
967
+ type: PropertyType.INT;
968
+ min: number;
969
+ max: number;
970
+ }
971
+ type FilterValues = StringFilterValues | IntFilterValues;
972
+ declare function useFilterState(): {
973
+ serialize: {
974
+ (values: Partial<{
975
+ filters: PropertyFilter[] | null;
976
+ search: string | null;
977
+ listedOnly: boolean | null;
978
+ }>): string;
979
+ (base: string | URLSearchParams | URL, values: Partial<{
980
+ filters: PropertyFilter[] | null;
981
+ search: string | null;
982
+ listedOnly: boolean | null;
983
+ }> | null): string;
984
+ };
985
+ getFilter: (name: string) => PropertyFilter | undefined;
986
+ getFilterValues: (name: string) => FilterValues | undefined;
987
+ isFilterActive: (name: string) => boolean;
988
+ isStringValueSelected: (name: string, value: string) => boolean;
989
+ isIntFilterActive: (name: string) => boolean;
990
+ getIntFilterRange: (name: string) => [number, number] | undefined;
991
+ deleteFilter: (name: string) => void;
992
+ toggleStringFilterValue: (name: string, value: string) => void;
993
+ setIntFilterValue: (name: string, min: number, max: number) => void;
994
+ clearAllFilters: () => void;
995
+ filterOptions: PropertyFilter[];
996
+ searchText: string;
997
+ showListedOnly: boolean;
998
+ setFilterOptions: (value: PropertyFilter[] | ((old: PropertyFilter[]) => PropertyFilter[] | null) | null, options?: nuqs258.Options) => Promise<URLSearchParams>;
999
+ setSearchText: (value: string | ((old: string) => string | null) | null, options?: nuqs258.Options) => Promise<URLSearchParams>;
1000
+ setShowListedOnly: (value: boolean | ((old: boolean) => boolean | null) | null, options?: nuqs258.Options) => Promise<URLSearchParams>;
1001
+ };
1002
+ //#endregion
1003
+ //#region src/react/queries/filters.d.ts
1004
+ interface FetchFiltersParams {
1005
+ chainId: number;
1006
+ collectionAddress: string;
1007
+ showAllFilters?: boolean;
1008
+ excludePropertyValues?: boolean;
1009
+ config: SdkConfig;
1010
+ }
1011
+ /**
1012
+ * Fetches collection filters from the Metadata API with optional marketplace filtering
1013
+ */
1014
+
1015
+ type FiltersQueryOptions = ValuesOptional<FetchFiltersParams> & {
1016
+ query?: StandardQueryOptions;
1017
+ };
1018
+ declare function filtersQueryOptions(params: FiltersQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<PropertyFilter$1[], Error, PropertyFilter$1[], (string | FiltersQueryOptions)[]>, "queryFn"> & {
1019
+ queryFn?: _tanstack_react_query227.QueryFunction<PropertyFilter$1[], (string | FiltersQueryOptions)[], never> | undefined;
1020
+ } & {
1021
+ queryKey: (string | FiltersQueryOptions)[] & {
1022
+ [dataTagSymbol]: PropertyFilter$1[];
1023
+ [dataTagErrorSymbol]: Error;
1024
+ };
1025
+ };
1026
+ //#endregion
1027
+ //#region src/react/hooks/useFilters.d.ts
1028
+ type UseFiltersParams = Optional<FiltersQueryOptions, 'config'>;
1029
+ /**
1030
+ * Hook to fetch metadata filters for a collection
1031
+ *
1032
+ * Retrieves property filters for a collection from the metadata service,
1033
+ * with support for marketplace-specific filter configuration including
1034
+ * exclusion rules and custom ordering.
1035
+ *
1036
+ * @param params - Configuration parameters
1037
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
1038
+ * @param params.collectionAddress - The collection contract address to fetch filters for
1039
+ * @param params.showAllFilters - Whether to show all filters or apply marketplace filtering
1040
+ * @param params.excludePropertyValues - Whether to exclude property values from the response
1041
+ * @param params.query - Optional React Query configuration
1042
+ *
1043
+ * @returns Query result containing property filters for the collection
1044
+ *
1045
+ * @example
1046
+ * Basic usage:
1047
+ * ```typescript
1048
+ * const { data: filters, isLoading } = useFilters({
1049
+ * chainId: 137,
1050
+ * collectionAddress: '0x1234...'
1051
+ * })
1052
+ *
1053
+ * if (data) {
1054
+ * console.log(`Found ${data.length} filters`);
1055
+ * data.forEach(filter => {
1056
+ * console.log(`${filter.name}: ${filter.values?.join(', ')}`);
1057
+ * });
1058
+ * }
1059
+ * ```
1060
+ *
1061
+ * @example
1062
+ * With marketplace filtering disabled:
1063
+ * ```typescript
1064
+ * const { data: allFilters } = useFilters({
1065
+ * chainId: 1,
1066
+ * collectionAddress: '0x5678...',
1067
+ * showAllFilters: true, // Bypass marketplace filter rules
1068
+ * query: {
1069
+ * enabled: Boolean(selectedCollection),
1070
+ * staleTime: 300000 // Cache for 5 minutes
1071
+ * }
1072
+ * })
1073
+ * ```
1074
+ *
1075
+ * @example
1076
+ * Exclude property values for faster loading:
1077
+ * ```typescript
1078
+ * const { data: filterNames } = useFilters({
1079
+ * chainId: 137,
1080
+ * collectionAddress: collectionAddress,
1081
+ * excludePropertyValues: true, // Only get filter names, not values
1082
+ * query: {
1083
+ * enabled: Boolean(collectionAddress)
1084
+ * }
1085
+ * })
1086
+ * ```
1087
+ */
1088
+ declare function useFilters(params: UseFiltersParams): _tanstack_react_query227.UseQueryResult<PropertyFilter$1[], Error>;
1089
+ /**
1090
+ * Hook to progressively load collection filters
1091
+ *
1092
+ * First loads filter names only for fast initial display, then loads full filter
1093
+ * data with values. Uses placeholder data to provide immediate feedback while
1094
+ * full data loads in the background.
1095
+ *
1096
+ * @param params - Configuration parameters (same as useFilters)
1097
+ *
1098
+ * @returns Query result with additional loading states
1099
+ * @returns result.isLoadingNames - Whether filter names are still loading
1100
+ * @returns result.isFetchingValues - Whether filter values are being fetched
1101
+ *
1102
+ * @example
1103
+ * Progressive filter loading:
1104
+ * ```typescript
1105
+ * const {
1106
+ * data: filters,
1107
+ * isLoadingNames,
1108
+ * isFetchingValues,
1109
+ * isLoading
1110
+ * } = useFiltersProgressive({
1111
+ * chainId: 137,
1112
+ * collectionAddress: '0x1234...'
1113
+ * })
1114
+ *
1115
+ * if (isLoadingNames) {
1116
+ * return <div>Loading filters...</div>;
1117
+ * }
1118
+ *
1119
+ * return (
1120
+ * <div>
1121
+ * {filters?.map(filter => (
1122
+ * <FilterComponent
1123
+ * key={filter.name}
1124
+ * filter={filter}
1125
+ * isLoadingValues={isFetchingValues}
1126
+ * />
1127
+ * ))}
1128
+ * </div>
1129
+ * );
1130
+ * ```
1131
+ */
1132
+ declare function useFiltersProgressive(params: UseFiltersParams): {
1133
+ isFetchingValues: boolean;
1134
+ isLoadingNames: boolean;
1135
+ data: PropertyFilter$1[];
1136
+ error: Error;
1137
+ isError: true;
1138
+ isPending: false;
1139
+ isLoading: false;
1140
+ isLoadingError: false;
1141
+ isRefetchError: true;
1142
+ isSuccess: false;
1143
+ isPlaceholderData: false;
1144
+ status: "error";
1145
+ dataUpdatedAt: number;
1146
+ errorUpdatedAt: number;
1147
+ failureCount: number;
1148
+ failureReason: Error | null;
1149
+ errorUpdateCount: number;
1150
+ isFetched: boolean;
1151
+ isFetchedAfterMount: boolean;
1152
+ isFetching: boolean;
1153
+ isInitialLoading: boolean;
1154
+ isPaused: boolean;
1155
+ isRefetching: boolean;
1156
+ isStale: boolean;
1157
+ refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<PropertyFilter$1[], Error>>;
1158
+ fetchStatus: _tanstack_react_query227.FetchStatus;
1159
+ promise: Promise<PropertyFilter$1[]>;
1160
+ } | {
1161
+ isFetchingValues: boolean;
1162
+ isLoadingNames: boolean;
1163
+ data: PropertyFilter$1[];
1164
+ error: null;
1165
+ isError: false;
1166
+ isPending: false;
1167
+ isLoading: false;
1168
+ isLoadingError: false;
1169
+ isRefetchError: false;
1170
+ isSuccess: true;
1171
+ isPlaceholderData: false;
1172
+ status: "success";
1173
+ dataUpdatedAt: number;
1174
+ errorUpdatedAt: number;
1175
+ failureCount: number;
1176
+ failureReason: Error | null;
1177
+ errorUpdateCount: number;
1178
+ isFetched: boolean;
1179
+ isFetchedAfterMount: boolean;
1180
+ isFetching: boolean;
1181
+ isInitialLoading: boolean;
1182
+ isPaused: boolean;
1183
+ isRefetching: boolean;
1184
+ isStale: boolean;
1185
+ refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<PropertyFilter$1[], Error>>;
1186
+ fetchStatus: _tanstack_react_query227.FetchStatus;
1187
+ promise: Promise<PropertyFilter$1[]>;
1188
+ } | {
1189
+ isFetchingValues: boolean;
1190
+ isLoadingNames: boolean;
1191
+ data: undefined;
1192
+ error: Error;
1193
+ isError: true;
1194
+ isPending: false;
1195
+ isLoading: false;
1196
+ isLoadingError: true;
1197
+ isRefetchError: false;
1198
+ isSuccess: false;
1199
+ isPlaceholderData: false;
1200
+ status: "error";
1201
+ dataUpdatedAt: number;
1202
+ errorUpdatedAt: number;
1203
+ failureCount: number;
1204
+ failureReason: Error | null;
1205
+ errorUpdateCount: number;
1206
+ isFetched: boolean;
1207
+ isFetchedAfterMount: boolean;
1208
+ isFetching: boolean;
1209
+ isInitialLoading: boolean;
1210
+ isPaused: boolean;
1211
+ isRefetching: boolean;
1212
+ isStale: boolean;
1213
+ refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<PropertyFilter$1[], Error>>;
1214
+ fetchStatus: _tanstack_react_query227.FetchStatus;
1215
+ promise: Promise<PropertyFilter$1[]>;
1216
+ } | {
1217
+ isFetchingValues: boolean;
1218
+ isLoadingNames: boolean;
1219
+ data: undefined;
1220
+ error: null;
1221
+ isError: false;
1222
+ isPending: true;
1223
+ isLoading: true;
1224
+ isLoadingError: false;
1225
+ isRefetchError: false;
1226
+ isSuccess: false;
1227
+ isPlaceholderData: false;
1228
+ status: "pending";
1229
+ dataUpdatedAt: number;
1230
+ errorUpdatedAt: number;
1231
+ failureCount: number;
1232
+ failureReason: Error | null;
1233
+ errorUpdateCount: number;
1234
+ isFetched: boolean;
1235
+ isFetchedAfterMount: boolean;
1236
+ isFetching: boolean;
1237
+ isInitialLoading: boolean;
1238
+ isPaused: boolean;
1239
+ isRefetching: boolean;
1240
+ isStale: boolean;
1241
+ refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<PropertyFilter$1[], Error>>;
1242
+ fetchStatus: _tanstack_react_query227.FetchStatus;
1243
+ promise: Promise<PropertyFilter$1[]>;
1244
+ } | {
1245
+ isFetchingValues: boolean;
1246
+ isLoadingNames: boolean;
1247
+ data: undefined;
1248
+ error: null;
1249
+ isError: false;
1250
+ isPending: true;
1251
+ isLoadingError: false;
1252
+ isRefetchError: false;
1253
+ isSuccess: false;
1254
+ isPlaceholderData: false;
1255
+ status: "pending";
1256
+ dataUpdatedAt: number;
1257
+ errorUpdatedAt: number;
1258
+ failureCount: number;
1259
+ failureReason: Error | null;
1260
+ errorUpdateCount: number;
1261
+ isFetched: boolean;
1262
+ isFetchedAfterMount: boolean;
1263
+ isFetching: boolean;
1264
+ isLoading: boolean;
1265
+ isInitialLoading: boolean;
1266
+ isPaused: boolean;
1267
+ isRefetching: boolean;
1268
+ isStale: boolean;
1269
+ refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<PropertyFilter$1[], Error>>;
1270
+ fetchStatus: _tanstack_react_query227.FetchStatus;
1271
+ promise: Promise<PropertyFilter$1[]>;
1272
+ } | {
1273
+ isFetchingValues: boolean;
1274
+ isLoadingNames: boolean;
1275
+ data: PropertyFilter$1[];
1276
+ isError: false;
1277
+ error: null;
1278
+ isPending: false;
1279
+ isLoading: false;
1280
+ isLoadingError: false;
1281
+ isRefetchError: false;
1282
+ isSuccess: true;
1283
+ isPlaceholderData: true;
1284
+ status: "success";
1285
+ dataUpdatedAt: number;
1286
+ errorUpdatedAt: number;
1287
+ failureCount: number;
1288
+ failureReason: Error | null;
1289
+ errorUpdateCount: number;
1290
+ isFetched: boolean;
1291
+ isFetchedAfterMount: boolean;
1292
+ isFetching: boolean;
1293
+ isInitialLoading: boolean;
1294
+ isPaused: boolean;
1295
+ isRefetching: boolean;
1296
+ isStale: boolean;
1297
+ refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<PropertyFilter$1[], Error>>;
1298
+ fetchStatus: _tanstack_react_query227.FetchStatus;
1299
+ promise: Promise<PropertyFilter$1[]>;
1300
+ };
1301
+ type UseFiltersArgs = {
1302
+ chainId: number;
1303
+ collectionAddress: string;
1304
+ showAllFilters?: boolean;
1305
+ excludePropertyValues?: boolean;
1306
+ query?: {
1307
+ enabled?: boolean;
1308
+ };
1309
+ };
1310
+ type UseFilterReturn = PropertyFilter$1[];
1311
+ //#endregion
1312
+ //#region src/react/hooks/useFloorOrder.d.ts
1313
+ type UseFloorOrderParams = Optional<FloorOrderQueryOptions, 'config'>;
1314
+ /**
1315
+ * Hook to fetch the floor order for a collection
1316
+ *
1317
+ * Retrieves the lowest priced order (listing) currently available for any token
1318
+ * in the specified collection from the marketplace.
1319
+ *
1320
+ * @param params - Configuration parameters
1321
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
1322
+ * @param params.collectionAddress - The collection contract address
1323
+ * @param params.filter - Optional filter criteria for collectibles
1324
+ * @param params.query - Optional React Query configuration
1325
+ *
1326
+ * @returns Query result containing the floor order data for the collection
1327
+ *
1328
+ * @example
1329
+ * Basic usage:
1330
+ * ```typescript
1331
+ * const { data, isLoading } = useFloorOrder({
1332
+ * chainId: 137,
1333
+ * collectionAddress: '0x...'
1334
+ * })
1335
+ * ```
1336
+ *
1337
+ * @example
1338
+ * With filters and custom query options:
1339
+ * ```typescript
1340
+ * const { data, isLoading } = useFloorOrder({
1341
+ * chainId: 1,
1342
+ * collectionAddress: '0x...',
1343
+ * filter: {
1344
+ * minPrice: '1000000000000000000' // 1 ETH in wei
1345
+ * },
1346
+ * query: {
1347
+ * refetchInterval: 30000,
1348
+ * enabled: hasCollectionAddress
1349
+ * }
1350
+ * })
1351
+ * ```
1352
+ */
1353
+ declare function useFloorOrder(params: UseFloorOrderParams): _tanstack_react_query227.UseQueryResult<CollectibleOrder, Error>;
1354
+ //#endregion
1355
+ //#region src/react/hooks/useGenerateCancelTransaction.d.ts
1356
+ type GenerateCancelTransactionArgsWithNumberChainId = Omit<GenerateCancelTransactionArgs, 'chainId'> & {
1357
+ chainId: number;
1358
+ };
1359
+ interface UseGenerateCancelTransactionArgs {
1360
+ chainId: number;
1361
+ onSuccess?: (steps?: Step[]) => void;
1362
+ }
1363
+ declare const generateCancelTransaction: (args: GenerateCancelTransactionArgsWithNumberChainId, config: SdkConfig) => Promise<Step[]>;
1364
+ declare const useGenerateCancelTransaction: (params: UseGenerateCancelTransactionArgs) => {
1365
+ generateCancelTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
1366
+ generateCancelTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
1367
+ data: undefined;
1368
+ variables: undefined;
1369
+ error: null;
1370
+ isError: false;
1371
+ isIdle: true;
1372
+ isPending: false;
1373
+ isSuccess: false;
1374
+ status: "idle";
1375
+ reset: () => void;
1376
+ context: unknown;
1377
+ failureCount: number;
1378
+ failureReason: Error | null;
1379
+ isPaused: boolean;
1380
+ submittedAt: number;
1381
+ } | {
1382
+ generateCancelTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
1383
+ generateCancelTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
1384
+ data: undefined;
1385
+ variables: GenerateCancelTransactionArgsWithNumberChainId;
1386
+ error: null;
1387
+ isError: false;
1388
+ isIdle: false;
1389
+ isPending: true;
1390
+ isSuccess: false;
1391
+ status: "pending";
1392
+ reset: () => void;
1393
+ context: unknown;
1394
+ failureCount: number;
1395
+ failureReason: Error | null;
1396
+ isPaused: boolean;
1397
+ submittedAt: number;
1398
+ } | {
1399
+ generateCancelTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
1400
+ generateCancelTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
1401
+ data: undefined;
1402
+ error: Error;
1403
+ variables: GenerateCancelTransactionArgsWithNumberChainId;
1404
+ isError: true;
1405
+ isIdle: false;
1406
+ isPending: false;
1407
+ isSuccess: false;
1408
+ status: "error";
1409
+ reset: () => void;
1410
+ context: unknown;
1411
+ failureCount: number;
1412
+ failureReason: Error | null;
1413
+ isPaused: boolean;
1414
+ submittedAt: number;
1415
+ } | {
1416
+ generateCancelTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
1417
+ generateCancelTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgsWithNumberChainId, unknown>;
1418
+ data: Step[];
1419
+ error: null;
1420
+ variables: GenerateCancelTransactionArgsWithNumberChainId;
1421
+ isError: false;
1422
+ isIdle: false;
1423
+ isPending: false;
1424
+ isSuccess: true;
1425
+ status: "success";
1426
+ reset: () => void;
1427
+ context: unknown;
1428
+ failureCount: number;
1429
+ failureReason: Error | null;
1430
+ isPaused: boolean;
1431
+ submittedAt: number;
1432
+ };
1433
+ //#endregion
1434
+ //#region src/react/hooks/useGenerateListingTransaction.d.ts
1435
+ type UseGenerateListingTransactionArgs = {
1436
+ chainId: number;
1437
+ onSuccess?: (data?: Step[]) => void;
1438
+ };
1439
+ type CreateReqWithDateExpiry$1 = Omit<CreateReq, 'expiry'> & {
1440
+ expiry: Date;
1441
+ };
1442
+ type GenerateListingTransactionProps = Omit<GenerateListingTransactionArgs, 'listing'> & {
1443
+ listing: CreateReqWithDateExpiry$1;
1444
+ };
1445
+ type GenerateListingTransactionArgsWithNumberChainId = Omit<GenerateListingTransactionArgs, 'chainId' | 'listing'> & {
1446
+ chainId: number;
1447
+ listing: CreateReqWithDateExpiry$1;
1448
+ };
1449
+ declare const generateListingTransaction: (params: GenerateListingTransactionArgsWithNumberChainId, config: SdkConfig) => Promise<Step[]>;
1450
+ declare const useGenerateListingTransaction: (params: UseGenerateListingTransactionArgs) => {
1451
+ generateListingTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
1452
+ generateListingTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
1453
+ data: undefined;
1454
+ variables: undefined;
1455
+ error: null;
1456
+ isError: false;
1457
+ isIdle: true;
1458
+ isPending: false;
1459
+ isSuccess: false;
1460
+ status: "idle";
1461
+ reset: () => void;
1462
+ context: unknown;
1463
+ failureCount: number;
1464
+ failureReason: Error | null;
1465
+ isPaused: boolean;
1466
+ submittedAt: number;
1467
+ } | {
1468
+ generateListingTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
1469
+ generateListingTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
1470
+ data: undefined;
1471
+ variables: Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">;
1472
+ error: null;
1473
+ isError: false;
1474
+ isIdle: false;
1475
+ isPending: true;
1476
+ isSuccess: false;
1477
+ status: "pending";
1478
+ reset: () => void;
1479
+ context: unknown;
1480
+ failureCount: number;
1481
+ failureReason: Error | null;
1482
+ isPaused: boolean;
1483
+ submittedAt: number;
1484
+ } | {
1485
+ generateListingTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
1486
+ generateListingTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
1487
+ data: undefined;
1488
+ error: Error;
1489
+ variables: Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">;
1490
+ isError: true;
1491
+ isIdle: false;
1492
+ isPending: false;
1493
+ isSuccess: false;
1494
+ status: "error";
1495
+ reset: () => void;
1496
+ context: unknown;
1497
+ failureCount: number;
1498
+ failureReason: Error | null;
1499
+ isPaused: boolean;
1500
+ submittedAt: number;
1501
+ } | {
1502
+ generateListingTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
1503
+ generateListingTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">, unknown>;
1504
+ data: Step[];
1505
+ error: null;
1506
+ variables: Omit<GenerateListingTransactionArgsWithNumberChainId, "chainId">;
1507
+ isError: false;
1508
+ isIdle: false;
1509
+ isPending: false;
1510
+ isSuccess: true;
1511
+ status: "success";
1512
+ reset: () => void;
1513
+ context: unknown;
1514
+ failureCount: number;
1515
+ failureReason: Error | null;
1516
+ isPaused: boolean;
1517
+ submittedAt: number;
1518
+ };
1519
+ //#endregion
1520
+ //#region src/react/hooks/useGenerateOfferTransaction.d.ts
1521
+ type UseGenerateOfferTransactionArgs = {
1522
+ chainId: number;
1523
+ onSuccess?: (data?: Step[]) => void;
1524
+ };
1525
+ type CreateReqWithDateExpiry = Omit<CreateReq, 'expiry'> & {
1526
+ expiry: Date;
1527
+ };
1528
+ type GenerateOfferTransactionProps = Omit<GenerateOfferTransactionArgs, 'offer'> & {
1529
+ offer: CreateReqWithDateExpiry;
1530
+ };
1531
+ type GenerateOfferTransactionArgsWithNumberChainId = Omit<GenerateOfferTransactionArgs, 'chainId' | 'offer'> & {
1532
+ chainId: number;
1533
+ offer: CreateReqWithDateExpiry;
1534
+ };
1535
+ declare const generateOfferTransaction: (params: GenerateOfferTransactionArgsWithNumberChainId, config: SdkConfig, walletKind?: WalletKind) => Promise<Step[]>;
1536
+ declare const useGenerateOfferTransaction: (params: UseGenerateOfferTransactionArgs) => {
1537
+ generateOfferTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
1538
+ generateOfferTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
1539
+ data: undefined;
1540
+ variables: undefined;
1541
+ error: null;
1542
+ isError: false;
1543
+ isIdle: true;
1544
+ isPending: false;
1545
+ isSuccess: false;
1546
+ status: "idle";
1547
+ reset: () => void;
1548
+ context: unknown;
1549
+ failureCount: number;
1550
+ failureReason: Error | null;
1551
+ isPaused: boolean;
1552
+ submittedAt: number;
1553
+ } | {
1554
+ generateOfferTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
1555
+ generateOfferTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
1556
+ data: undefined;
1557
+ variables: Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">;
1558
+ error: null;
1559
+ isError: false;
1560
+ isIdle: false;
1561
+ isPending: true;
1562
+ isSuccess: false;
1563
+ status: "pending";
1564
+ reset: () => void;
1565
+ context: unknown;
1566
+ failureCount: number;
1567
+ failureReason: Error | null;
1568
+ isPaused: boolean;
1569
+ submittedAt: number;
1570
+ } | {
1571
+ generateOfferTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
1572
+ generateOfferTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
1573
+ data: undefined;
1574
+ error: Error;
1575
+ variables: Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">;
1576
+ isError: true;
1577
+ isIdle: false;
1578
+ isPending: false;
1579
+ isSuccess: false;
1580
+ status: "error";
1581
+ reset: () => void;
1582
+ context: unknown;
1583
+ failureCount: number;
1584
+ failureReason: Error | null;
1585
+ isPaused: boolean;
1586
+ submittedAt: number;
1587
+ } | {
1588
+ generateOfferTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
1589
+ generateOfferTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">, unknown>;
1590
+ data: Step[];
1591
+ error: null;
1592
+ variables: Omit<GenerateOfferTransactionArgsWithNumberChainId, "chainId">;
1593
+ isError: false;
1594
+ isIdle: false;
1595
+ isPending: false;
1596
+ isSuccess: true;
1597
+ status: "success";
1598
+ reset: () => void;
1599
+ context: unknown;
1600
+ failureCount: number;
1601
+ failureReason: Error | null;
1602
+ isPaused: boolean;
1603
+ submittedAt: number;
1604
+ };
1605
+ //#endregion
1606
+ //#region src/react/hooks/useGenerateSellTransaction.d.ts
1607
+ interface UseGenerateSellTransactionArgs {
1608
+ chainId: number;
1609
+ onSuccess?: (steps?: Step[]) => void;
1610
+ }
1611
+ type GenerateSellTransactionArgsWithNumberChainId = Omit<GenerateSellTransactionArgs, 'chainId'> & {
1612
+ chainId: number;
1613
+ };
1614
+ declare const generateSellTransaction: (args: GenerateSellTransactionArgsWithNumberChainId, config: SdkConfig) => Promise<Step[]>;
1615
+ declare const useGenerateSellTransaction: (params: UseGenerateSellTransactionArgs) => {
1616
+ generateSellTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
1617
+ generateSellTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
1618
+ data: undefined;
1619
+ variables: undefined;
1620
+ error: null;
1621
+ isError: false;
1622
+ isIdle: true;
1623
+ isPending: false;
1624
+ isSuccess: false;
1625
+ status: "idle";
1626
+ reset: () => void;
1627
+ context: unknown;
1628
+ failureCount: number;
1629
+ failureReason: Error | null;
1630
+ isPaused: boolean;
1631
+ submittedAt: number;
1632
+ } | {
1633
+ generateSellTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
1634
+ generateSellTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
1635
+ data: undefined;
1636
+ variables: Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">;
1637
+ error: null;
1638
+ isError: false;
1639
+ isIdle: false;
1640
+ isPending: true;
1641
+ isSuccess: false;
1642
+ status: "pending";
1643
+ reset: () => void;
1644
+ context: unknown;
1645
+ failureCount: number;
1646
+ failureReason: Error | null;
1647
+ isPaused: boolean;
1648
+ submittedAt: number;
1649
+ } | {
1650
+ generateSellTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
1651
+ generateSellTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
1652
+ data: undefined;
1653
+ error: Error;
1654
+ variables: Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">;
1655
+ isError: true;
1656
+ isIdle: false;
1657
+ isPending: false;
1658
+ isSuccess: false;
1659
+ status: "error";
1660
+ reset: () => void;
1661
+ context: unknown;
1662
+ failureCount: number;
1663
+ failureReason: Error | null;
1664
+ isPaused: boolean;
1665
+ submittedAt: number;
1666
+ } | {
1667
+ generateSellTransaction: _tanstack_react_query227.UseMutateFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
1668
+ generateSellTransactionAsync: _tanstack_react_query227.UseMutateAsyncFunction<Step[], Error, Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">, unknown>;
1669
+ data: Step[];
1670
+ error: null;
1671
+ variables: Omit<GenerateSellTransactionArgsWithNumberChainId, "chainId">;
1672
+ isError: false;
1673
+ isIdle: false;
1674
+ isPending: false;
1675
+ isSuccess: true;
1676
+ status: "success";
1677
+ reset: () => void;
1678
+ context: unknown;
1679
+ failureCount: number;
1680
+ failureReason: Error | null;
1681
+ isPaused: boolean;
1682
+ submittedAt: number;
1683
+ };
1684
+ //#endregion
1685
+ //#region src/react/queries/primarySaleItems.d.ts
1686
+ interface FetchPrimarySaleItemsParams {
1687
+ chainId: number;
1688
+ primarySaleContractAddress: Address;
1689
+ filter?: PrimarySaleItemsFilter;
1690
+ page?: Page;
1691
+ config: SdkConfig;
1692
+ }
1693
+ /**
1694
+ * Fetches primary sale items from the marketplace API
1695
+ */
1696
+
1697
+ type ListPrimarySaleItemsQueryOptions = ValuesOptional<FetchPrimarySaleItemsParams> & {
1698
+ query?: StandardQueryOptions;
1699
+ };
1700
+ //#endregion
1701
+ //#region src/react/hooks/useGetCountOfPrimarySaleItems.d.ts
1702
+ type UseGetCountParams = Optional<ListPrimarySaleItemsQueryOptions, 'config'>;
1703
+ /**
1704
+ * Hook to get the total count of primary sale items
1705
+ *
1706
+ * Retrieves the total count of primary sale items for a specific contract address
1707
+ * from the marketplace.
1708
+ *
1709
+ * @param params - Configuration parameters
1710
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
1711
+ * @param params.primarySaleContractAddress - The primary sale contract address
1712
+ * @param params.filter - Optional filter parameters for the query
1713
+ * @param params.query - Optional React Query configuration
1714
+ *
1715
+ * @returns Query result containing the count of primary sale items
1716
+ *
1717
+ * @example
1718
+ * ```typescript
1719
+ * const { data: count, isLoading } = useGetCountOfPrimarySaleItems({
1720
+ * chainId: 137,
1721
+ * primarySaleContractAddress: '0x...',
1722
+ * })
1723
+ * ```
1724
+ */
1725
+ declare function useGetCountOfPrimarySaleItems(params: UseGetCountParams): _tanstack_react_query227.UseQueryResult<GetCountOfPrimarySaleItemsReturn, Error>;
1726
+ //#endregion
1727
+ //#region src/react/queries/getTokenRanges.d.ts
1728
+ interface FetchGetTokenRangesParams {
1729
+ chainId: number;
1730
+ collectionAddress: Address;
1731
+ config: SdkConfig;
1732
+ }
1733
+ /**
1734
+ * Fetches token ID ranges for a collection from the Indexer API
1735
+ */
1736
+ declare function fetchGetTokenRanges(params: FetchGetTokenRangesParams): Promise<GetTokenIDRangesReturn>;
1737
+ type GetTokenRangesQueryOptions = ValuesOptional<FetchGetTokenRangesParams> & {
1738
+ query?: StandardQueryOptions;
1739
+ };
1740
+ declare function getTokenRangesQueryOptions(params: GetTokenRangesQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<GetTokenIDRangesReturn, Error, GetTokenIDRangesReturn, (string | GetTokenRangesQueryOptions)[]>, "queryFn"> & {
1741
+ queryFn?: _tanstack_react_query227.QueryFunction<GetTokenIDRangesReturn, (string | GetTokenRangesQueryOptions)[], never> | undefined;
1742
+ } & {
1743
+ queryKey: (string | GetTokenRangesQueryOptions)[] & {
1744
+ [dataTagSymbol]: GetTokenIDRangesReturn;
1745
+ [dataTagErrorSymbol]: Error;
1746
+ };
1747
+ };
1748
+ //#endregion
1749
+ //#region src/react/hooks/useGetTokenRanges.d.ts
1750
+ type UseGetTokenRangesParams = Optional<GetTokenRangesQueryOptions, 'config'>;
1751
+ /**
1752
+ * Hook to fetch token ID ranges for a collection
1753
+ *
1754
+ * Retrieves the available token ID ranges for a specific collection,
1755
+ * which is useful for understanding the token distribution and
1756
+ * available tokens within a collection.
1757
+ *
1758
+ * @param params - Configuration parameters
1759
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
1760
+ * @param params.collectionAddress - The collection contract address to fetch ranges for
1761
+ * @param params.query - Optional React Query configuration
1762
+ *
1763
+ * @returns Query result containing token ID ranges for the collection
1764
+ *
1765
+ * @example
1766
+ * Basic usage:
1767
+ * ```typescript
1768
+ * const { data: tokenRanges, isLoading } = useGetTokenRanges({
1769
+ * chainId: 137,
1770
+ * collectionAddress: '0x1234...'
1771
+ * })
1772
+ *
1773
+ * if (data) {
1774
+ * console.log(`Token ranges: ${JSON.stringify(data.tokenIDRanges)}`);
1775
+ * data.tokenIDRanges?.forEach(range => {
1776
+ * console.log(`Range: ${range.start} - ${range.end}`);
1777
+ * });
1778
+ * }
1779
+ * ```
1780
+ *
1781
+ * @example
1782
+ * With conditional enabling:
1783
+ * ```typescript
1784
+ * const { data: tokenRanges } = useGetTokenRanges({
1785
+ * chainId: 1,
1786
+ * collectionAddress: selectedCollection?.address,
1787
+ * query: {
1788
+ * enabled: Boolean(selectedCollection?.address),
1789
+ * staleTime: 300000, // Cache for 5 minutes
1790
+ * refetchInterval: 60000 // Refresh every minute
1791
+ * }
1792
+ * })
1793
+ * ```
1794
+ */
1795
+ declare function useGetTokenRanges(params: UseGetTokenRangesParams): _tanstack_react_query227.UseQueryResult<_0xsequence_indexer226.GetTokenIDRangesReturn, Error>;
1796
+ type UseGetTokenRangesProps = {
1797
+ chainId: number;
1798
+ collectionAddress: Address;
1799
+ query?: {
1800
+ enabled?: boolean;
1801
+ };
1802
+ };
1803
+ type UseGetTokenRangesReturn = Awaited<ReturnType<typeof fetchGetTokenRanges>>;
1804
+ //#endregion
1805
+ //#region src/react/hooks/useHighestOffer.d.ts
1806
+ type UseHighestOfferParams = Optional<HighestOfferQueryOptions, 'config'>;
1807
+ /**
1808
+ * Hook to fetch the highest offer for a collectible
1809
+ *
1810
+ * Retrieves the highest offer currently available for a specific token
1811
+ * in a collection from the marketplace.
1812
+ *
1813
+ * @param params - Configuration parameters
1814
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
1815
+ * @param params.collectionAddress - The collection contract address
1816
+ * @param params.tokenId - The token ID within the collection
1817
+ * @param params.query - Optional React Query configuration
1818
+ *
1819
+ * @returns Query result containing the highest offer data or null if no offers exist
1820
+ *
1821
+ * @example
1822
+ * Basic usage:
1823
+ * ```typescript
1824
+ * const { data, isLoading } = useHighestOffer({
1825
+ * chainId: 137,
1826
+ * collectionAddress: '0x...',
1827
+ * tokenId: '1'
1828
+ * })
1829
+ * ```
1830
+ *
1831
+ * @example
1832
+ * With custom query options:
1833
+ * ```typescript
1834
+ * const { data, isLoading } = useHighestOffer({
1835
+ * chainId: 1,
1836
+ * collectionAddress: '0x...',
1837
+ * tokenId: '42',
1838
+ * query: {
1839
+ * refetchInterval: 15000,
1840
+ * enabled: hasTokenId
1841
+ * }
1842
+ * })
1843
+ * ```
1844
+ */
1845
+ declare function useHighestOffer(params: UseHighestOfferParams): _tanstack_react_query227.UseQueryResult<Order | null, Error>;
1846
+ //#endregion
1847
+ //#region src/react/provider.d.ts
1848
+ declare const MarketplaceSdkContext$1: react33.Context<MarketplaceSdkContext>;
1849
+ type MarketplaceSdkProviderProps = {
1850
+ config: SdkConfig;
1851
+ children: React.ReactNode;
1852
+ openConnectModal?: () => void;
1853
+ };
1854
+ declare function MarketplaceProvider({
1855
+ config,
1856
+ children,
1857
+ openConnectModal
1858
+ }: MarketplaceSdkProviderProps): react_jsx_runtime34.JSX.Element;
1859
+ declare function MarketplaceQueryClientProvider({
1860
+ children
1861
+ }: {
1862
+ children: React.ReactNode;
1863
+ }): react_jsx_runtime34.JSX.Element;
1864
+ //#endregion
1865
+ //#region src/react/hooks/useInventory.d.ts
1866
+ declare function useInventory(args: UseInventoryArgs): _tanstack_react_query227.UseInfiniteQueryResult<_tanstack_react_query227.InfiniteData<CollectiblesResponse, unknown>, Error>;
1867
+ //#endregion
1868
+ //#region src/react/hooks/useList721ShopCardData.d.ts
1869
+ interface UseList721ShopCardDataProps {
1870
+ tokenIds: string[];
1871
+ chainId: number;
1872
+ contractAddress: Address;
1873
+ salesContractAddress: Address;
1874
+ enabled?: boolean;
1875
+ }
1876
+ declare function useList721ShopCardData({
1877
+ tokenIds,
1878
+ chainId,
1879
+ contractAddress,
1880
+ salesContractAddress,
1881
+ enabled
1882
+ }: UseList721ShopCardDataProps): {
1883
+ salePrice: {
1884
+ amount: string;
1885
+ currencyAddress: Address;
1886
+ };
1887
+ collectibleCards: {
1888
+ collectibleId: string;
1889
+ chainId: number;
1890
+ collectionAddress: `0x${string}`;
1891
+ collectionType: ContractType.ERC721;
1892
+ tokenMetadata: TokenMetadata;
1893
+ cardLoading: boolean;
1894
+ salesContractAddress: `0x${string}`;
1895
+ salePrice: {
1896
+ amount: string;
1897
+ currencyAddress: Address;
1898
+ };
1899
+ quantityInitial: string | undefined;
1900
+ quantityRemaining: string | undefined;
1901
+ quantityDecimals: number;
1902
+ saleStartsAt: string | undefined;
1903
+ saleEndsAt: string | undefined;
1904
+ marketplaceType: "shop";
1905
+ }[];
1906
+ saleDetailsError: viem255.ReadContractErrorType | null;
1907
+ primarySaleItemsError: Error | null;
1908
+ saleDetails: {
1909
+ supplyCap: bigint;
1910
+ cost: bigint;
1911
+ paymentToken: `0x${string}`;
1912
+ startTime: bigint;
1913
+ endTime: bigint;
1914
+ merkleRoot: `0x${string}`;
1915
+ } | undefined;
1916
+ primarySaleItems: _tanstack_react_query227.InfiniteData<ListPrimarySaleItemsReturn, unknown> | undefined;
1917
+ isLoading: boolean;
1918
+ };
1919
+ //#endregion
1920
+ //#region src/react/hooks/useList1155ShopCardData.d.ts
1921
+ interface UseList1155ShopCardDataProps {
1922
+ tokenIds: string[];
1923
+ chainId: number;
1924
+ contractAddress: Address;
1925
+ salesContractAddress: Address;
1926
+ enabled?: boolean;
1927
+ }
1928
+ declare function useList1155ShopCardData({
1929
+ tokenIds,
1930
+ chainId,
1931
+ contractAddress,
1932
+ salesContractAddress,
1933
+ enabled
1934
+ }: UseList1155ShopCardDataProps): {
1935
+ collectibleCards: {
1936
+ collectibleId: string;
1937
+ chainId: number;
1938
+ collectionAddress: `0x${string}`;
1939
+ collectionType: ContractType.ERC1155;
1940
+ tokenMetadata: TokenMetadata;
1941
+ cardLoading: boolean;
1942
+ salesContractAddress: `0x${string}`;
1943
+ salePrice: {
1944
+ amount: string;
1945
+ currencyAddress: Address;
1946
+ };
1947
+ quantityInitial: string | undefined;
1948
+ quantityDecimals: number;
1949
+ quantityRemaining: string | undefined;
1950
+ unlimitedSupply: boolean | undefined;
1951
+ saleStartsAt: string | undefined;
1952
+ saleEndsAt: string | undefined;
1953
+ marketplaceType: "shop";
1954
+ }[];
1955
+ tokenMetadataError: Error | null;
1956
+ tokenSaleDetailsError: null;
1957
+ isLoading: boolean;
1958
+ };
1959
+ //#endregion
1960
+ //#region src/react/hooks/useListBalances.d.ts
1961
+ /**
1962
+ * Hook to fetch a list of token balances with pagination support
1963
+ *
1964
+ * @param args - The arguments for fetching the balances
1965
+ * @returns Infinite query result containing the balances data
1966
+ *
1967
+ * @example
1968
+ * ```tsx
1969
+ * const { data, isLoading, error, fetchNextPage } = useListBalances({
1970
+ * chainId: 1,
1971
+ * accountAddress: '0x123...',
1972
+ * includeMetadata: true,
1973
+ * query: {
1974
+ * enabled: true,
1975
+ * refetchInterval: 10000,
1976
+ * }
1977
+ * });
1978
+ * ```
1979
+ */
1980
+ declare function useListBalances(args: UseListBalancesArgs): _tanstack_react_query227.UseInfiniteQueryResult<_tanstack_react_query227.InfiniteData<_0xsequence_indexer226.GetTokenBalancesReturn, unknown>, Error>;
1981
+ //#endregion
1982
+ //#region src/react/queries/listCollectibleActivities.d.ts
1983
+ interface FetchListCollectibleActivitiesParams extends Omit<ListCollectibleActivitiesArgs, 'chainId' | 'contractAddress' | 'page'> {
1984
+ chainId: number;
1985
+ collectionAddress: Address;
1986
+ page?: number;
1987
+ pageSize?: number;
1988
+ sort?: SortBy[];
1989
+ config: SdkConfig;
1990
+ }
1991
+ /**
1992
+ * Fetches collectible activities from the Marketplace API
1993
+ */
1994
+ declare function fetchListCollectibleActivities(params: FetchListCollectibleActivitiesParams): Promise<ListCollectibleActivitiesReturn>;
1995
+ type ListCollectibleActivitiesQueryOptions = ValuesOptional<FetchListCollectibleActivitiesParams> & {
1996
+ query?: StandardQueryOptions;
1997
+ };
1998
+ declare function listCollectibleActivitiesQueryOptions(params: ListCollectibleActivitiesQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<ListCollectibleActivitiesReturn, Error, ListCollectibleActivitiesReturn, ("collectable" | "collectibleActivities" | ListCollectibleActivitiesQueryOptions)[]>, "queryFn"> & {
1999
+ queryFn?: _tanstack_react_query227.QueryFunction<ListCollectibleActivitiesReturn, ("collectable" | "collectibleActivities" | ListCollectibleActivitiesQueryOptions)[], never> | undefined;
2000
+ } & {
2001
+ queryKey: ("collectable" | "collectibleActivities" | ListCollectibleActivitiesQueryOptions)[] & {
2002
+ [dataTagSymbol]: ListCollectibleActivitiesReturn;
2003
+ [dataTagErrorSymbol]: Error;
2004
+ };
2005
+ };
2006
+ //#endregion
2007
+ //#region src/react/hooks/useListCollectibleActivities.d.ts
2008
+ type UseListCollectibleActivitiesParams = Optional<ListCollectibleActivitiesQueryOptions, 'config'>;
2009
+ /**
2010
+ * Hook to fetch a list of activities for a specific collectible
2011
+ *
2012
+ * Fetches activities (transfers, sales, offers, etc.) for a specific token
2013
+ * from the marketplace with support for pagination and sorting.
2014
+ *
2015
+ * @param params - Configuration parameters
2016
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
2017
+ * @param params.collectionAddress - The collection contract address
2018
+ * @param params.tokenId - The specific token ID to fetch activities for
2019
+ * @param params.page - Page number to fetch (default: 1)
2020
+ * @param params.pageSize - Number of activities per page (default: 10)
2021
+ * @param params.sort - Sort order for activities
2022
+ * @param params.query - Optional React Query configuration
2023
+ *
2024
+ * @returns Query result containing activities data
2025
+ *
2026
+ * @example
2027
+ * Basic usage:
2028
+ * ```typescript
2029
+ * const { data, isLoading } = useListCollectibleActivities({
2030
+ * chainId: 137,
2031
+ * collectionAddress: '0x...',
2032
+ * tokenId: '123'
2033
+ * })
2034
+ * ```
2035
+ *
2036
+ * @example
2037
+ * With pagination:
2038
+ * ```typescript
2039
+ * const { data } = useListCollectibleActivities({
2040
+ * chainId: 1,
2041
+ * collectionAddress: '0x...',
2042
+ * tokenId: '456',
2043
+ * page: 2,
2044
+ * pageSize: 20
2045
+ * })
2046
+ * ```
2047
+ *
2048
+ * @example
2049
+ * With sorting:
2050
+ * ```typescript
2051
+ * const { data } = useListCollectibleActivities({
2052
+ * chainId: 137,
2053
+ * collectionAddress: '0x...',
2054
+ * tokenId: '789',
2055
+ * sort: 'timestamp_desc',
2056
+ * pageSize: 50
2057
+ * })
2058
+ * ```
2059
+ */
2060
+ declare function useListCollectibleActivities(params: UseListCollectibleActivitiesParams): _tanstack_react_query227.UseQueryResult<ListCollectibleActivitiesReturn, Error>;
2061
+ type UseListCollectibleActivitiesArgs = UseListCollectibleActivitiesParams;
2062
+ type UseListCollectibleActivitiesReturn = Awaited<ReturnType<typeof fetchListCollectibleActivities>>;
2063
+ //#endregion
2064
+ //#region src/react/hooks/useListCollectibles.d.ts
2065
+ type UseListCollectiblesParams = Optional<ListCollectiblesQueryOptions, 'config'>;
2066
+ /**
2067
+ * Hook to fetch a list of collectibles with infinite pagination support
2068
+ *
2069
+ * Fetches collectibles from the marketplace with support for filtering, pagination,
2070
+ * and special handling for shop marketplace types and LAOS721 contracts.
2071
+ *
2072
+ * @param params - Configuration parameters
2073
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
2074
+ * @param params.collectionAddress - The collection contract address
2075
+ * @param params.side - Order side (listing or bid)
2076
+ * @param params.filter - Optional filtering parameters
2077
+ * @param params.isLaos721 - Whether the collection is a LAOS721 contract
2078
+ * @param params.marketplaceType - Type of marketplace (shop, etc.)
2079
+ * @param params.query - Optional React Query configuration
2080
+ *
2081
+ * @returns Infinite query result containing collectibles data with pagination
2082
+ *
2083
+ * @example
2084
+ * Basic usage:
2085
+ * ```typescript
2086
+ * const { data, isLoading, fetchNextPage, hasNextPage } = useListCollectibles({
2087
+ * chainId: 137,
2088
+ * collectionAddress: '0x...',
2089
+ * side: OrderSide.listing
2090
+ * })
2091
+ * ```
2092
+ *
2093
+ * @example
2094
+ * With filtering:
2095
+ * ```typescript
2096
+ * const { data, fetchNextPage } = useListCollectibles({
2097
+ * chainId: 1,
2098
+ * collectionAddress: '0x...',
2099
+ * side: OrderSide.listing,
2100
+ * filter: {
2101
+ * searchText: 'dragon',
2102
+ * includeEmpty: false,
2103
+ * marketplaces: [MarketplaceKind.sequence_marketplace_v2]
2104
+ * }
2105
+ * })
2106
+ * ```
2107
+ *
2108
+ * @example
2109
+ * For LAOS721 collections:
2110
+ * ```typescript
2111
+ * const { data } = useListCollectibles({
2112
+ * chainId: 137,
2113
+ * collectionAddress: '0x...',
2114
+ * side: OrderSide.listing,
2115
+ * isLaos721: true,
2116
+ * filter: {
2117
+ * inAccounts: ['0x...']
2118
+ * }
2119
+ * })
2120
+ * ```
2121
+ */
2122
+ declare function useListCollectibles(params: UseListCollectiblesParams): _tanstack_react_query227.UseInfiniteQueryResult<_tanstack_react_query227.InfiniteData<ListCollectiblesReturn, unknown>, Error>;
2123
+ type UseListCollectiblesArgs = UseListCollectiblesParams;
2124
+ //#endregion
2125
+ //#region src/react/queries/listCollectiblesPaginated.d.ts
2126
+ interface FetchListCollectiblesPaginatedParams extends Omit<ListCollectiblesArgs, 'chainId' | 'contractAddress' | 'page'> {
2127
+ chainId: number;
2128
+ collectionAddress: Address;
2129
+ page?: number;
2130
+ pageSize?: number;
2131
+ config: SdkConfig;
2132
+ }
2133
+ /**
2134
+ * Fetches a list of collectibles with pagination support from the Marketplace API
2135
+ */
2136
+ declare function fetchListCollectiblesPaginated(params: FetchListCollectiblesPaginatedParams): Promise<ListCollectiblesReturn>;
2137
+ type ListCollectiblesPaginatedQueryOptions = ValuesOptional<FetchListCollectiblesPaginatedParams> & {
2138
+ query?: StandardQueryOptions;
2139
+ };
2140
+ declare function listCollectiblesPaginatedQueryOptions(params: ListCollectiblesPaginatedQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<ListCollectiblesReturn, Error, ListCollectiblesReturn, (string | ListCollectiblesPaginatedQueryOptions)[]>, "queryFn"> & {
2141
+ queryFn?: _tanstack_react_query227.QueryFunction<ListCollectiblesReturn, (string | ListCollectiblesPaginatedQueryOptions)[], never> | undefined;
2142
+ } & {
2143
+ queryKey: (string | ListCollectiblesPaginatedQueryOptions)[] & {
2144
+ [dataTagSymbol]: ListCollectiblesReturn;
2145
+ [dataTagErrorSymbol]: Error;
2146
+ };
2147
+ };
2148
+ //#endregion
2149
+ //#region src/react/hooks/useListCollectiblesPaginated.d.ts
2150
+ type UseListCollectiblesPaginatedParams = Optional<ListCollectiblesPaginatedQueryOptions, 'config'>;
2151
+ /**
2152
+ * Hook to fetch a list of collectibles with pagination support
2153
+ *
2154
+ * Fetches collectibles from the marketplace with support for filtering and pagination.
2155
+ * Unlike the infinite query version, this hook fetches a specific page of results.
2156
+ *
2157
+ * @param params - Configuration parameters
2158
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
2159
+ * @param params.collectionAddress - The collection contract address
2160
+ * @param params.side - Order side (listing or bid)
2161
+ * @param params.filter - Optional filtering parameters
2162
+ * @param params.page - Page number to fetch (default: 1)
2163
+ * @param params.pageSize - Number of items per page (default: 30)
2164
+ * @param params.query - Optional React Query configuration
2165
+ *
2166
+ * @returns Query result containing collectibles data for the specific page
2167
+ *
2168
+ * @example
2169
+ * Basic usage:
2170
+ * ```typescript
2171
+ * const { data, isLoading } = useListCollectiblesPaginated({
2172
+ * chainId: 137,
2173
+ * collectionAddress: '0x...',
2174
+ * side: OrderSide.listing,
2175
+ * page: 1,
2176
+ * pageSize: 20
2177
+ * })
2178
+ * ```
2179
+ *
2180
+ * @example
2181
+ * With filtering:
2182
+ * ```typescript
2183
+ * const { data } = useListCollectiblesPaginated({
2184
+ * chainId: 1,
2185
+ * collectionAddress: '0x...',
2186
+ * side: OrderSide.listing,
2187
+ * page: 2,
2188
+ * pageSize: 50,
2189
+ * filter: {
2190
+ * searchText: 'rare',
2191
+ * includeEmpty: false
2192
+ * }
2193
+ * })
2194
+ * ```
2195
+ *
2196
+ * @example
2197
+ * Controlled pagination:
2198
+ * ```typescript
2199
+ * const [currentPage, setCurrentPage] = useState(1);
2200
+ * const { data, isLoading } = useListCollectiblesPaginated({
2201
+ * chainId: 137,
2202
+ * collectionAddress: '0x...',
2203
+ * side: OrderSide.listing,
2204
+ * page: currentPage,
2205
+ * pageSize: 25
2206
+ * });
2207
+ *
2208
+ * const hasMorePages = data?.page?.more;
2209
+ * ```
2210
+ */
2211
+ declare function useListCollectiblesPaginated(params: UseListCollectiblesPaginatedParams): _tanstack_react_query227.UseQueryResult<ListCollectiblesReturn, Error>;
2212
+ type UseListCollectiblesPaginatedArgs = UseListCollectiblesPaginatedParams;
2213
+ type UseListCollectiblesPaginatedReturn = Awaited<ReturnType<typeof fetchListCollectiblesPaginated>>;
2214
+ //#endregion
2215
+ //#region src/react/queries/listCollectionActivities.d.ts
2216
+ interface FetchListCollectionActivitiesParams extends Omit<ListCollectionActivitiesArgs, 'chainId' | 'contractAddress' | 'page'> {
2217
+ chainId: number;
2218
+ collectionAddress: Address;
2219
+ page?: number;
2220
+ pageSize?: number;
2221
+ sort?: SortBy[];
2222
+ config: SdkConfig;
2223
+ }
2224
+ /**
2225
+ * Fetches collection activities from the Marketplace API
2226
+ */
2227
+ declare function fetchListCollectionActivities(params: FetchListCollectionActivitiesParams): Promise<ListCollectionActivitiesReturn>;
2228
+ type ListCollectionActivitiesQueryOptions = ValuesOptional<FetchListCollectionActivitiesParams> & {
2229
+ query?: StandardQueryOptions;
2230
+ };
2231
+ declare function listCollectionActivitiesQueryOptions(params: ListCollectionActivitiesQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<ListCollectionActivitiesReturn, Error, ListCollectionActivitiesReturn, ("collections" | "collectionActivities" | ListCollectionActivitiesQueryOptions)[]>, "queryFn"> & {
2232
+ queryFn?: _tanstack_react_query227.QueryFunction<ListCollectionActivitiesReturn, ("collections" | "collectionActivities" | ListCollectionActivitiesQueryOptions)[], never> | undefined;
2233
+ } & {
2234
+ queryKey: ("collections" | "collectionActivities" | ListCollectionActivitiesQueryOptions)[] & {
2235
+ [dataTagSymbol]: ListCollectionActivitiesReturn;
2236
+ [dataTagErrorSymbol]: Error;
2237
+ };
2238
+ };
2239
+ //#endregion
2240
+ //#region src/react/hooks/useListCollectionActivities.d.ts
2241
+ type UseListCollectionActivitiesParams = Optional<ListCollectionActivitiesQueryOptions, 'config'>;
2242
+ /**
2243
+ * Hook to fetch a list of activities for an entire collection
2244
+ *
2245
+ * Fetches activities (transfers, sales, offers, etc.) for all tokens
2246
+ * in a collection from the marketplace with support for pagination and sorting.
2247
+ *
2248
+ * @param params - Configuration parameters
2249
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
2250
+ * @param params.collectionAddress - The collection contract address
2251
+ * @param params.page - Page number to fetch (default: 1)
2252
+ * @param params.pageSize - Number of activities per page (default: 10)
2253
+ * @param params.sort - Sort order for activities
2254
+ * @param params.query - Optional React Query configuration
2255
+ *
2256
+ * @returns Query result containing activities data for the collection
2257
+ *
2258
+ * @example
2259
+ * Basic usage:
2260
+ * ```typescript
2261
+ * const { data, isLoading } = useListCollectionActivities({
2262
+ * chainId: 137,
2263
+ * collectionAddress: '0x...'
2264
+ * })
2265
+ * ```
2266
+ *
2267
+ * @example
2268
+ * With pagination:
2269
+ * ```typescript
2270
+ * const { data } = useListCollectionActivities({
2271
+ * chainId: 1,
2272
+ * collectionAddress: '0x...',
2273
+ * page: 2,
2274
+ * pageSize: 20
2275
+ * })
2276
+ * ```
2277
+ *
2278
+ * @example
2279
+ * With sorting:
2280
+ * ```typescript
2281
+ * const { data } = useListCollectionActivities({
2282
+ * chainId: 137,
2283
+ * collectionAddress: '0x...',
2284
+ * sort: [{ column: 'createdAt', order: SortOrder.DESC }],
2285
+ * pageSize: 50
2286
+ * })
2287
+ * ```
2288
+ */
2289
+ declare function useListCollectionActivities(params: UseListCollectionActivitiesParams): _tanstack_react_query227.UseQueryResult<ListCollectionActivitiesReturn, Error>;
2290
+ type UseListCollectionActivitiesArgs = UseListCollectionActivitiesParams;
2291
+ type UseListCollectionActivitiesReturn = Awaited<ReturnType<typeof fetchListCollectionActivities>>;
2292
+ //#endregion
2293
+ //#region src/react/hooks/useListCollections.d.ts
2294
+ type UseListCollectionsParams = Optional<ListCollectionsQueryOptions, 'config' | 'marketplaceConfig'>;
2295
+ /**
2296
+ * Hook to fetch collections from marketplace configuration
2297
+ *
2298
+ * Retrieves all collections configured in the marketplace, with optional filtering
2299
+ * by marketplace type. Combines metadata from the metadata API with marketplace
2300
+ * configuration to provide complete collection information.
2301
+ *
2302
+ * @param params - Configuration parameters
2303
+ * @param params.marketplaceType - Optional filter by marketplace type
2304
+ * @param params.query - Optional React Query configuration
2305
+ *
2306
+ * @returns Query result containing array of collections with metadata
2307
+ *
2308
+ * @example
2309
+ * Basic usage:
2310
+ * ```typescript
2311
+ * const { data: collections, isLoading } = useListCollections();
2312
+ *
2313
+ * if (isLoading) return <div>Loading collections...</div>;
2314
+ *
2315
+ * return (
2316
+ * <div>
2317
+ * {collections?.map(collection => (
2318
+ * <div key={collection.itemsAddress}>
2319
+ * {collection.name}
2320
+ * </div>
2321
+ * ))}
2322
+ * </div>
2323
+ * );
2324
+ * ```
2325
+ *
2326
+ * @example
2327
+ * Filtering by marketplace type:
2328
+ * ```typescript
2329
+ * const { data: marketCollections } = useListCollections({
2330
+ * marketplaceType: 'market'
2331
+ * });
2332
+ * ```
2333
+ */
2334
+ declare function useListCollections(params?: UseListCollectionsParams): _tanstack_react_query227.UseQueryResult<({
2335
+ chainId: number;
2336
+ address: string;
2337
+ source: string;
2338
+ name: string;
2339
+ type: string;
2340
+ symbol: string;
2341
+ decimals?: number;
2342
+ logoURI: string;
2343
+ deployed: boolean;
2344
+ bytecodeHash: string;
2345
+ extensions: _0xsequence_metadata250.ContractInfoExtensions;
2346
+ updatedAt: string;
2347
+ queuedAt?: string;
2348
+ status: _0xsequence_metadata250.ResourceStatus;
2349
+ marketplaceType: MarketplaceType;
2350
+ contractType: ContractType;
2351
+ feePercentage: number;
2352
+ destinationMarketplace: OrderbookKind;
2353
+ currencyOptions: Array<string>;
2354
+ bannerUrl: string;
2355
+ itemsAddress: string;
2356
+ filterSettings?: CollectionFilterSettings;
2357
+ } | {
2358
+ chainId: number;
2359
+ address: string;
2360
+ source: string;
2361
+ name: string;
2362
+ type: string;
2363
+ symbol: string;
2364
+ decimals?: number;
2365
+ logoURI: string;
2366
+ deployed: boolean;
2367
+ bytecodeHash: string;
2368
+ extensions: _0xsequence_metadata250.ContractInfoExtensions;
2369
+ updatedAt: string;
2370
+ queuedAt?: string;
2371
+ status: _0xsequence_metadata250.ResourceStatus;
2372
+ marketplaceType: MarketplaceType;
2373
+ saleAddress: string;
2374
+ bannerUrl: string;
2375
+ itemsAddress: string;
2376
+ filterSettings?: CollectionFilterSettings;
2377
+ })[], Error>;
2378
+ //#endregion
2379
+ //#region src/react/queries/listListingsForCollectible.d.ts
2380
+ interface FetchListListingsForCollectibleParams extends Omit<ListCollectibleListingsArgs, 'chainId' | 'contractAddress' | 'tokenId'> {
2381
+ chainId: number;
2382
+ collectionAddress: Address;
2383
+ collectibleId: string;
2384
+ config: SdkConfig;
2385
+ }
2386
+ /**
2387
+ * Fetches listings for a specific collectible from the Marketplace API
2388
+ */
2389
+ declare function fetchListListingsForCollectible(params: FetchListListingsForCollectibleParams): Promise<ListCollectibleListingsReturn>;
2390
+ type ListListingsForCollectibleQueryOptions = ValuesOptional<FetchListListingsForCollectibleParams> & {
2391
+ query?: StandardQueryOptions;
2392
+ };
2393
+ declare function listListingsForCollectibleQueryOptions(params: ListListingsForCollectibleQueryOptions): _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<ListCollectibleListingsReturn, Error, ListCollectibleListingsReturn, ("collectable" | "listings" | ListListingsForCollectibleQueryOptions)[]>, "queryFn"> & {
2394
+ queryFn?: _tanstack_react_query227.QueryFunction<ListCollectibleListingsReturn, ("collectable" | "listings" | ListListingsForCollectibleQueryOptions)[], never> | undefined;
2395
+ } & {
2396
+ queryKey: ("collectable" | "listings" | ListListingsForCollectibleQueryOptions)[] & {
2397
+ [dataTagSymbol]: ListCollectibleListingsReturn;
2398
+ [dataTagErrorSymbol]: Error;
2399
+ };
2400
+ };
2401
+ //#endregion
2402
+ //#region src/react/hooks/useListListingsForCollectible.d.ts
2403
+ type UseListListingsForCollectibleParams = Optional<ListListingsForCollectibleQueryOptions, 'config'>;
2404
+ /**
2405
+ * Hook to fetch listings for a specific collectible
2406
+ *
2407
+ * Fetches active listings (sales) for a specific token from the marketplace
2408
+ * with support for filtering and pagination.
2409
+ *
2410
+ * @param params - Configuration parameters
2411
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
2412
+ * @param params.collectionAddress - The collection contract address
2413
+ * @param params.collectibleId - The specific token ID to fetch listings for
2414
+ * @param params.filter - Optional filtering parameters (marketplace, currencies, etc.)
2415
+ * @param params.page - Optional pagination parameters
2416
+ * @param params.query - Optional React Query configuration
2417
+ *
2418
+ * @returns Query result containing listings data for the collectible
2419
+ *
2420
+ * @example
2421
+ * Basic usage:
2422
+ * ```typescript
2423
+ * const { data, isLoading } = useListListingsForCollectible({
2424
+ * chainId: 137,
2425
+ * collectionAddress: '0x...',
2426
+ * collectibleId: '123'
2427
+ * })
2428
+ * ```
2429
+ *
2430
+ * @example
2431
+ * With pagination:
2432
+ * ```typescript
2433
+ * const { data } = useListListingsForCollectible({
2434
+ * chainId: 1,
2435
+ * collectionAddress: '0x...',
2436
+ * collectibleId: '456',
2437
+ * page: {
2438
+ * page: 2,
2439
+ * pageSize: 20
2440
+ * }
2441
+ * })
2442
+ * ```
2443
+ *
2444
+ * @example
2445
+ * With filtering:
2446
+ * ```typescript
2447
+ * const { data } = useListListingsForCollectible({
2448
+ * chainId: 137,
2449
+ * collectionAddress: '0x...',
2450
+ * collectibleId: '789',
2451
+ * filter: {
2452
+ * marketplace: [MarketplaceKind.sequence_marketplace_v2],
2453
+ * currencies: ['0x...'] // Specific currency addresses
2454
+ * }
2455
+ * })
2456
+ * ```
2457
+ */
2458
+ declare function useListListingsForCollectible(params: UseListListingsForCollectibleParams): _tanstack_react_query227.UseQueryResult<ListCollectibleListingsReturn, Error>;
2459
+ type UseListListingsForCollectibleArgs = UseListListingsForCollectibleParams;
2460
+ type UseListListingsForCollectibleReturn = Awaited<ReturnType<typeof fetchListListingsForCollectible>>;
2461
+ //#endregion
2462
+ //#region src/react/hooks/useListMarketCardData.d.ts
2463
+ interface UseListMarketCardDataProps {
2464
+ collectionAddress: Address;
2465
+ chainId: number;
2466
+ orderbookKind?: OrderbookKind;
2467
+ collectionType: ContractType;
2468
+ filterOptions?: PropertyFilter[];
2469
+ searchText?: string;
2470
+ showListedOnly?: boolean;
2471
+ onCollectibleClick?: (tokenId: string) => void;
2472
+ onCannotPerformAction?: (action: CollectibleCardAction) => void;
2473
+ prioritizeOwnerActions?: boolean;
2474
+ assetSrcPrefixUrl?: string;
2475
+ }
2476
+ declare function useListMarketCardData({
2477
+ collectionAddress,
2478
+ chainId,
2479
+ orderbookKind,
2480
+ collectionType,
2481
+ filterOptions,
2482
+ searchText,
2483
+ showListedOnly,
2484
+ onCollectibleClick,
2485
+ onCannotPerformAction,
2486
+ prioritizeOwnerActions,
2487
+ assetSrcPrefixUrl
2488
+ }: UseListMarketCardDataProps): {
2489
+ collectibleCards: MarketCollectibleCardProps[];
2490
+ isLoading: boolean;
2491
+ error: Error | null;
2492
+ hasNextPage: boolean;
2493
+ isFetchingNextPage: boolean;
2494
+ fetchNextPage: (options?: _tanstack_react_query227.FetchNextPageOptions) => Promise<_tanstack_react_query227.InfiniteQueryObserverResult<_tanstack_react_query227.InfiniteData<ListCollectiblesReturn, unknown>, Error>>;
2495
+ allCollectibles: CollectibleOrder[];
2496
+ };
2497
+ //#endregion
2498
+ //#region src/react/hooks/useListOffersForCollectible.d.ts
2499
+ interface UseListOffersForCollectibleArgs {
2500
+ chainId: number;
2501
+ collectionAddress: string;
2502
+ collectibleId: string;
2503
+ filter?: OrderFilter;
2504
+ page?: Page;
2505
+ }
2506
+ type UseListOffersForCollectibleReturn = Awaited<ReturnType<typeof fetchListOffersForCollectible>>;
2507
+ declare const fetchListOffersForCollectible: (config: SdkConfig, args: UseListOffersForCollectibleArgs) => Promise<ListCollectibleOffersReturn>;
2508
+ declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query227.OmitKeyof<_tanstack_react_query227.UseQueryOptions<ListCollectibleOffersReturn, Error, ListCollectibleOffersReturn, (SdkConfig | "collectable" | "offers" | UseListOffersForCollectibleArgs)[]>, "queryFn"> & {
2509
+ queryFn?: _tanstack_react_query227.QueryFunction<ListCollectibleOffersReturn, (SdkConfig | "collectable" | "offers" | UseListOffersForCollectibleArgs)[], never> | undefined;
2510
+ } & {
2511
+ queryKey: (SdkConfig | "collectable" | "offers" | UseListOffersForCollectibleArgs)[] & {
2512
+ [dataTagSymbol]: ListCollectibleOffersReturn;
2513
+ [dataTagErrorSymbol]: Error;
2514
+ };
2515
+ };
2516
+ declare const useListOffersForCollectible: (args: UseListOffersForCollectibleArgs) => _tanstack_react_query227.UseQueryResult<ListCollectibleOffersReturn, Error>;
2517
+ //#endregion
2518
+ //#region src/react/hooks/useListPrimarySaleItems.d.ts
2519
+ type UseListPrimarySaleItemsParams = Optional<ListPrimarySaleItemsQueryOptions, 'config'>;
2520
+ /**
2521
+ * Hook to fetch primary sale items with pagination support
2522
+ *
2523
+ * Retrieves a paginated list of primary sale items for a specific contract address
2524
+ * from the marketplace.
2525
+ *
2526
+ * @param params - Configuration parameters
2527
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
2528
+ * @param params.primarySaleContractAddress - The primary sale contract address
2529
+ * @param params.filter - Optional filter parameters for the query
2530
+ * @param params.page - Optional pagination parameters
2531
+ * @param params.query - Optional React Query configuration
2532
+ *
2533
+ * @returns Infinite query result containing the primary sale items data
2534
+ *
2535
+ * @example
2536
+ * Basic usage:
2537
+ * ```typescript
2538
+ * const { data, isLoading } = useListPrimarySaleItems({
2539
+ * chainId: 137,
2540
+ * primarySaleContractAddress: '0x...',
2541
+ * })
2542
+ * ```
2543
+ *
2544
+ * @example
2545
+ * With filters and pagination:
2546
+ * ```typescript
2547
+ * const { data, isLoading } = useListPrimarySaleItems({
2548
+ * chainId: 1,
2549
+ * primarySaleContractAddress: '0x...',
2550
+ * filter: { status: 'active' },
2551
+ * page: { page: 1, pageSize: 20 },
2552
+ * query: {
2553
+ * enabled: isReady
2554
+ * }
2555
+ * })
2556
+ * ```
2557
+ */
2558
+ declare function useListPrimarySaleItems(params: UseListPrimarySaleItemsParams): _tanstack_react_query227.UseInfiniteQueryResult<_tanstack_react_query227.InfiniteData<ListPrimarySaleItemsReturn, unknown>, Error>;
2559
+ //#endregion
2560
+ //#region src/react/hooks/useListShopCardData.d.ts
2561
+ interface UseListShopCardDataProps {
2562
+ tokenIds: string[];
2563
+ chainId: number;
2564
+ contractAddress: Address;
2565
+ salesContractAddress: Address;
2566
+ contractType: ContractType | undefined;
2567
+ enabled?: boolean;
2568
+ }
2569
+ declare function useListShopCardData({
2570
+ tokenIds,
2571
+ chainId,
2572
+ contractAddress,
2573
+ salesContractAddress,
2574
+ contractType,
2575
+ enabled
2576
+ }: UseListShopCardDataProps): {
2577
+ salePrice: {
2578
+ amount: string;
2579
+ currencyAddress: Address;
2580
+ };
2581
+ collectibleCards: {
2582
+ collectibleId: string;
2583
+ chainId: number;
2584
+ collectionAddress: `0x${string}`;
2585
+ collectionType: ContractType.ERC721;
2586
+ tokenMetadata: TokenMetadata;
2587
+ cardLoading: boolean;
2588
+ salesContractAddress: `0x${string}`;
2589
+ salePrice: {
2590
+ amount: string;
2591
+ currencyAddress: Address;
2592
+ };
2593
+ quantityInitial: string | undefined;
2594
+ quantityRemaining: string | undefined;
2595
+ quantityDecimals: number;
2596
+ saleStartsAt: string | undefined;
2597
+ saleEndsAt: string | undefined;
2598
+ marketplaceType: "shop";
2599
+ }[];
2600
+ saleDetailsError: viem255.ReadContractErrorType | null;
2601
+ primarySaleItemsError: Error | null;
2602
+ saleDetails: {
2603
+ supplyCap: bigint;
2604
+ cost: bigint;
2605
+ paymentToken: `0x${string}`;
2606
+ startTime: bigint;
2607
+ endTime: bigint;
2608
+ merkleRoot: `0x${string}`;
2609
+ } | undefined;
2610
+ primarySaleItems: _tanstack_react_query227.InfiniteData<ListPrimarySaleItemsReturn, unknown> | undefined;
2611
+ isLoading: boolean;
2612
+ } | {
2613
+ collectibleCards: {
2614
+ collectibleId: string;
2615
+ chainId: number;
2616
+ collectionAddress: `0x${string}`;
2617
+ collectionType: ContractType.ERC1155;
2618
+ tokenMetadata: TokenMetadata;
2619
+ cardLoading: boolean;
2620
+ salesContractAddress: `0x${string}`;
2621
+ salePrice: {
2622
+ amount: string;
2623
+ currencyAddress: Address;
2624
+ };
2625
+ quantityInitial: string | undefined;
2626
+ quantityDecimals: number;
2627
+ quantityRemaining: string | undefined;
2628
+ unlimitedSupply: boolean | undefined;
2629
+ saleStartsAt: string | undefined;
2630
+ saleEndsAt: string | undefined;
2631
+ marketplaceType: "shop";
2632
+ }[];
2633
+ isLoading: boolean;
2634
+ saleDetailsError: null;
2635
+ primarySaleItemsError: Error | null;
2636
+ saleDetails: undefined;
2637
+ primarySaleItems: undefined;
2638
+ salePrice: {
2639
+ amount: string;
2640
+ currencyAddress: Address;
2641
+ };
2642
+ collectionDetailsError?: undefined;
2643
+ } | {
2644
+ collectibleCards: never[];
2645
+ isLoading: boolean;
2646
+ collectionDetailsError: null;
2647
+ saleDetailsError: null;
2648
+ primarySaleItemsError: null;
2649
+ saleDetails: undefined;
2650
+ primarySaleItems: undefined;
2651
+ salePrice: undefined;
2652
+ };
2653
+ //#endregion
2654
+ //#region src/react/hooks/useListTokenMetadata.d.ts
2655
+ type UseListTokenMetadataParams = Optional<ListTokenMetadataQueryOptions, 'config'>;
2656
+ /**
2657
+ * Hook to fetch metadata for multiple tokens
2658
+ *
2659
+ * Retrieves metadata for a batch of tokens from a specific contract using the metadata API.
2660
+ * This hook is optimized for fetching multiple token metadata in a single request.
2661
+ *
2662
+ * @param params - Configuration parameters
2663
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
2664
+ * @param params.contractAddress - The contract address containing the tokens
2665
+ * @param params.tokenIds - Array of token IDs to fetch metadata for
2666
+ * @param params.config - Optional SDK configuration (defaults from context)
2667
+ * @param params.query - Optional React Query configuration
2668
+ *
2669
+ * @returns Query result containing an array of token metadata
2670
+ *
2671
+ * @example
2672
+ * Basic usage:
2673
+ * ```typescript
2674
+ * const { data: metadata, isLoading } = useListTokenMetadata({
2675
+ * chainId: 137,
2676
+ * contractAddress: '0x...',
2677
+ * tokenIds: ['1', '2', '3']
2678
+ * })
2679
+ * ```
2680
+ *
2681
+ * @example
2682
+ * With query options:
2683
+ * ```typescript
2684
+ * const { data: metadata } = useListTokenMetadata({
2685
+ * chainId: 1,
2686
+ * contractAddress: '0x...',
2687
+ * tokenIds: selectedTokenIds,
2688
+ * query: {
2689
+ * enabled: selectedTokenIds.length > 0,
2690
+ * staleTime: 10 * 60 * 1000 // 10 minutes
2691
+ * }
2692
+ * })
2693
+ * ```
2694
+ */
2695
+ declare function useListTokenMetadata(params: UseListTokenMetadataParams): _tanstack_react_query227.UseQueryResult<_0xsequence_metadata250.TokenMetadata[], Error>;
2696
+ //#endregion
2697
+ //#region src/react/hooks/useLowestListing.d.ts
2698
+ type UseLowestListingParams = Optional<LowestListingQueryOptions, 'config'>;
2699
+ /**
2700
+ * Hook to fetch the lowest listing for a collectible
2701
+ *
2702
+ * Retrieves the lowest priced listing currently available for a specific token
2703
+ * in a collection from the marketplace.
2704
+ *
2705
+ * @param params - Configuration parameters
2706
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
2707
+ * @param params.collectionAddress - The collection contract address
2708
+ * @param params.tokenId - The token ID within the collection
2709
+ * @param params.query - Optional React Query configuration
2710
+ *
2711
+ * @returns Query result containing the lowest listing data or null if no listings exist
2712
+ *
2713
+ * @example
2714
+ * Basic usage:
2715
+ * ```typescript
2716
+ * const { data, isLoading } = useLowestListing({
2717
+ * chainId: 137,
2718
+ * collectionAddress: '0x...',
2719
+ * tokenId: '1'
2720
+ * })
2721
+ * ```
2722
+ *
2723
+ * @example
2724
+ * With custom query options:
2725
+ * ```typescript
2726
+ * const { data, isLoading } = useLowestListing({
2727
+ * chainId: 1,
2728
+ * collectionAddress: '0x...',
2729
+ * tokenId: '42',
2730
+ * query: {
2731
+ * refetchInterval: 15000,
2732
+ * enabled: hasTokenId
2733
+ * }
2734
+ * })
2735
+ * ```
2736
+ */
2737
+ declare function useLowestListing(params: UseLowestListingParams): _tanstack_react_query227.UseQueryResult<Order | null | undefined, Error>;
2738
+ //#endregion
2739
+ //#region src/react/hooks/useMarketCurrencies.d.ts
2740
+ type UseMarketCurrenciesParams = Optional<MarketCurrenciesQueryOptions, 'config'>;
2741
+ /**
2742
+ * Hook to fetch supported currencies for a marketplace
2743
+ *
2744
+ * Retrieves the list of currencies supported by the marketplace for a specific chain.
2745
+ * Can optionally filter to exclude native currency or filter by collection.
2746
+ *
2747
+ * @param params - Configuration parameters
2748
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
2749
+ * @param params.includeNativeCurrency - Whether to include native currency (default: true)
2750
+ * @param params.collectionAddress - Optional collection address to filter currencies
2751
+ * @param params.query - Optional React Query configuration
2752
+ *
2753
+ * @returns Query result containing supported currencies
2754
+ *
2755
+ * @example
2756
+ * Basic usage:
2757
+ * ```typescript
2758
+ * const { data, isLoading } = useMarketCurrencies({
2759
+ * chainId: 137
2760
+ * })
2761
+ * ```
2762
+ *
2763
+ * @example
2764
+ * Exclude native currency:
2765
+ * ```typescript
2766
+ * const { data, isLoading } = useMarketCurrencies({
2767
+ * chainId: 1,
2768
+ * includeNativeCurrency: false
2769
+ * })
2770
+ * ```
2771
+ */
2772
+ declare function useMarketCurrencies(params: UseMarketCurrenciesParams): _tanstack_react_query227.UseQueryResult<{
2773
+ contractAddress: string;
2774
+ chainId: number;
2775
+ status: CurrencyStatus;
2776
+ name: string;
2777
+ symbol: string;
2778
+ decimals: number;
2779
+ imageUrl: string;
2780
+ exchangeRate: number;
2781
+ defaultChainCurrency: boolean;
2782
+ nativeCurrency: boolean;
2783
+ createdAt: string;
2784
+ updatedAt: string;
2785
+ deletedAt?: string;
2786
+ }[], Error>;
2787
+ //#endregion
2788
+ //#region src/react/hooks/useMarketplaceConfig.d.ts
2789
+ declare const useMarketplaceConfig: () => _tanstack_react_query227.UseQueryResult<MarketplaceConfig, Error>;
2790
+ //#endregion
2791
+ //#region src/react/hooks/useOpenConnectModal.d.ts
2792
+ declare const useOpenConnectModal: () => {
2793
+ openConnectModal: () => void;
2794
+ };
2795
+ //#endregion
2796
+ //#region src/react/hooks/useRoyalty.d.ts
2797
+ interface UseRoyaltyArgs {
2798
+ chainId: number;
2799
+ collectionAddress: Address;
2800
+ collectibleId: string;
2801
+ query?: QueryArg;
2802
+ }
2803
+ /**
2804
+ * Hook to fetch royalty information for a collectible
2805
+ *
2806
+ * Reads royalty information from the blockchain using the EIP-2981 standard.
2807
+ * This hook queries the contract directly to get royalty percentage and recipient
2808
+ * address for a specific token.
2809
+ *
2810
+ * @param args - Configuration parameters
2811
+ * @param args.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
2812
+ * @param args.collectionAddress - The collection contract address
2813
+ * @param args.collectibleId - The token ID within the collection
2814
+ * @param args.query - Optional React Query configuration
2815
+ *
2816
+ * @returns Query result containing royalty information (percentage and recipient) or null
2817
+ *
2818
+ * @example
2819
+ * Basic usage:
2820
+ * ```typescript
2821
+ * const { data, isLoading } = useRoyalty({
2822
+ * chainId: 137,
2823
+ * collectionAddress: '0x...',
2824
+ * collectibleId: '1'
2825
+ * })
2826
+ *
2827
+ * if (data) {
2828
+ * console.log('Royalty:', data.percentage, 'Recipient:', data.recipient)
2829
+ * }
2830
+ * ```
2831
+ *
2832
+ * @example
2833
+ * With custom query options:
2834
+ * ```typescript
2835
+ * const { data, isLoading } = useRoyalty({
2836
+ * chainId: 1,
2837
+ * collectionAddress: '0x...',
2838
+ * collectibleId: '42',
2839
+ * query: {
2840
+ * refetchInterval: 60000,
2841
+ * enabled: hasTokenId
2842
+ * }
2843
+ * })
2844
+ * ```
2845
+ */
2846
+ declare function useRoyalty(args: UseRoyaltyArgs): {
2847
+ data: {
2848
+ percentage: bigint;
2849
+ recipient: Address;
2850
+ } | null;
2851
+ error: viem255.ReadContractErrorType;
2852
+ isError: true;
2853
+ isPending: false;
2854
+ isLoading: false;
2855
+ isLoadingError: false;
2856
+ isRefetchError: true;
2857
+ isSuccess: false;
2858
+ isPlaceholderData: false;
2859
+ status: "error";
2860
+ dataUpdatedAt: number;
2861
+ errorUpdatedAt: number;
2862
+ failureCount: number;
2863
+ failureReason: viem255.ReadContractErrorType | null;
2864
+ errorUpdateCount: number;
2865
+ isFetched: boolean;
2866
+ isFetchedAfterMount: boolean;
2867
+ isFetching: boolean;
2868
+ isInitialLoading: boolean;
2869
+ isPaused: boolean;
2870
+ isRefetching: boolean;
2871
+ isStale: boolean;
2872
+ refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<readonly [`0x${string}`, bigint], viem255.ReadContractErrorType>>;
2873
+ fetchStatus: _tanstack_react_query227.FetchStatus;
2874
+ promise: Promise<readonly [`0x${string}`, bigint]>;
2875
+ queryKey: _tanstack_react_query227.QueryKey;
2876
+ } | {
2877
+ data: {
2878
+ percentage: bigint;
2879
+ recipient: Address;
2880
+ } | null;
2881
+ error: null;
2882
+ isError: false;
2883
+ isPending: false;
2884
+ isLoading: false;
2885
+ isLoadingError: false;
2886
+ isRefetchError: false;
2887
+ isSuccess: true;
2888
+ isPlaceholderData: false;
2889
+ status: "success";
2890
+ dataUpdatedAt: number;
2891
+ errorUpdatedAt: number;
2892
+ failureCount: number;
2893
+ failureReason: viem255.ReadContractErrorType | null;
2894
+ errorUpdateCount: number;
2895
+ isFetched: boolean;
2896
+ isFetchedAfterMount: boolean;
2897
+ isFetching: boolean;
2898
+ isInitialLoading: boolean;
2899
+ isPaused: boolean;
2900
+ isRefetching: boolean;
2901
+ isStale: boolean;
2902
+ refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<readonly [`0x${string}`, bigint], viem255.ReadContractErrorType>>;
2903
+ fetchStatus: _tanstack_react_query227.FetchStatus;
2904
+ promise: Promise<readonly [`0x${string}`, bigint]>;
2905
+ queryKey: _tanstack_react_query227.QueryKey;
2906
+ } | {
2907
+ data: {
2908
+ percentage: bigint;
2909
+ recipient: Address;
2910
+ } | null;
2911
+ error: viem255.ReadContractErrorType;
2912
+ isError: true;
2913
+ isPending: false;
2914
+ isLoading: false;
2915
+ isLoadingError: true;
2916
+ isRefetchError: false;
2917
+ isSuccess: false;
2918
+ isPlaceholderData: false;
2919
+ status: "error";
2920
+ dataUpdatedAt: number;
2921
+ errorUpdatedAt: number;
2922
+ failureCount: number;
2923
+ failureReason: viem255.ReadContractErrorType | null;
2924
+ errorUpdateCount: number;
2925
+ isFetched: boolean;
2926
+ isFetchedAfterMount: boolean;
2927
+ isFetching: boolean;
2928
+ isInitialLoading: boolean;
2929
+ isPaused: boolean;
2930
+ isRefetching: boolean;
2931
+ isStale: boolean;
2932
+ refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<readonly [`0x${string}`, bigint], viem255.ReadContractErrorType>>;
2933
+ fetchStatus: _tanstack_react_query227.FetchStatus;
2934
+ promise: Promise<readonly [`0x${string}`, bigint]>;
2935
+ queryKey: _tanstack_react_query227.QueryKey;
2936
+ } | {
2937
+ data: {
2938
+ percentage: bigint;
2939
+ recipient: Address;
2940
+ } | null;
2941
+ error: null;
2942
+ isError: false;
2943
+ isPending: true;
2944
+ isLoading: true;
2945
+ isLoadingError: false;
2946
+ isRefetchError: false;
2947
+ isSuccess: false;
2948
+ isPlaceholderData: false;
2949
+ status: "pending";
2950
+ dataUpdatedAt: number;
2951
+ errorUpdatedAt: number;
2952
+ failureCount: number;
2953
+ failureReason: viem255.ReadContractErrorType | null;
2954
+ errorUpdateCount: number;
2955
+ isFetched: boolean;
2956
+ isFetchedAfterMount: boolean;
2957
+ isFetching: boolean;
2958
+ isInitialLoading: boolean;
2959
+ isPaused: boolean;
2960
+ isRefetching: boolean;
2961
+ isStale: boolean;
2962
+ refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<readonly [`0x${string}`, bigint], viem255.ReadContractErrorType>>;
2963
+ fetchStatus: _tanstack_react_query227.FetchStatus;
2964
+ promise: Promise<readonly [`0x${string}`, bigint]>;
2965
+ queryKey: _tanstack_react_query227.QueryKey;
2966
+ } | {
2967
+ data: {
2968
+ percentage: bigint;
2969
+ recipient: Address;
2970
+ } | null;
2971
+ error: null;
2972
+ isError: false;
2973
+ isPending: true;
2974
+ isLoadingError: false;
2975
+ isRefetchError: false;
2976
+ isSuccess: false;
2977
+ isPlaceholderData: false;
2978
+ status: "pending";
2979
+ dataUpdatedAt: number;
2980
+ errorUpdatedAt: number;
2981
+ failureCount: number;
2982
+ failureReason: viem255.ReadContractErrorType | null;
2983
+ errorUpdateCount: number;
2984
+ isFetched: boolean;
2985
+ isFetchedAfterMount: boolean;
2986
+ isFetching: boolean;
2987
+ isLoading: boolean;
2988
+ isInitialLoading: boolean;
2989
+ isPaused: boolean;
2990
+ isRefetching: boolean;
2991
+ isStale: boolean;
2992
+ refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<readonly [`0x${string}`, bigint], viem255.ReadContractErrorType>>;
2993
+ fetchStatus: _tanstack_react_query227.FetchStatus;
2994
+ promise: Promise<readonly [`0x${string}`, bigint]>;
2995
+ queryKey: _tanstack_react_query227.QueryKey;
2996
+ } | {
2997
+ data: {
2998
+ percentage: bigint;
2999
+ recipient: Address;
3000
+ } | null;
3001
+ isError: false;
3002
+ error: null;
3003
+ isPending: false;
3004
+ isLoading: false;
3005
+ isLoadingError: false;
3006
+ isRefetchError: false;
3007
+ isSuccess: true;
3008
+ isPlaceholderData: true;
3009
+ status: "success";
3010
+ dataUpdatedAt: number;
3011
+ errorUpdatedAt: number;
3012
+ failureCount: number;
3013
+ failureReason: viem255.ReadContractErrorType | null;
3014
+ errorUpdateCount: number;
3015
+ isFetched: boolean;
3016
+ isFetchedAfterMount: boolean;
3017
+ isFetching: boolean;
3018
+ isInitialLoading: boolean;
3019
+ isPaused: boolean;
3020
+ isRefetching: boolean;
3021
+ isStale: boolean;
3022
+ refetch: (options?: _tanstack_react_query227.RefetchOptions) => Promise<_tanstack_react_query227.QueryObserverResult<readonly [`0x${string}`, bigint], viem255.ReadContractErrorType>>;
3023
+ fetchStatus: _tanstack_react_query227.FetchStatus;
3024
+ promise: Promise<readonly [`0x${string}`, bigint]>;
3025
+ queryKey: _tanstack_react_query227.QueryKey;
3026
+ };
3027
+ //#endregion
3028
+ //#region src/react/hooks/useShopCollectibleSaleData.d.ts
3029
+ interface ShopCollectibleSaleData {
3030
+ salePrice: {
3031
+ amount: string;
3032
+ currencyAddress: Address;
3033
+ } | null;
3034
+ paymentToken: Address | null;
3035
+ supplyCap: string;
3036
+ totalMinted: string;
3037
+ quantityRemaining: string;
3038
+ startTime: number | null;
3039
+ endTime: number | null;
3040
+ isActive: boolean;
3041
+ isLoading: boolean;
3042
+ error: Error | null;
3043
+ isAvailable: boolean;
3044
+ }
3045
+ interface BaseShopCollectibleSaleDataProps {
3046
+ chainId: number;
3047
+ salesContractAddress: Address;
3048
+ itemsContractAddress: Address;
3049
+ enabled?: boolean;
3050
+ }
3051
+ interface ERC721ShopCollectibleSaleDataProps extends BaseShopCollectibleSaleDataProps {
3052
+ collectionType: ContractType.ERC721;
3053
+ tokenId?: string;
3054
+ }
3055
+ interface ERC1155ShopCollectibleSaleDataProps extends BaseShopCollectibleSaleDataProps {
3056
+ collectionType: ContractType.ERC1155;
3057
+ tokenId: string;
3058
+ }
3059
+ type UseShopCollectibleSaleDataProps = ERC721ShopCollectibleSaleDataProps | ERC1155ShopCollectibleSaleDataProps;
3060
+ declare function useShopCollectibleSaleData({
3061
+ chainId,
3062
+ salesContractAddress,
3063
+ itemsContractAddress,
3064
+ tokenId,
3065
+ collectionType,
3066
+ enabled
3067
+ }: UseShopCollectibleSaleDataProps): ShopCollectibleSaleData;
3068
+ //#endregion
3069
+ //#region src/react/hooks/useTokenSupplies.d.ts
3070
+ type UseTokenSuppliesParams = Optional<TokenSuppliesQueryOptions, 'config'>;
3071
+ /**
3072
+ * Hook to fetch token supplies from the indexer or LAOS API
3073
+ *
3074
+ * Retrieves supply information for tokens from a specific collection.
3075
+ * Automatically chooses between indexer and LAOS APIs based on the isLaos721 flag.
3076
+ *
3077
+ * @param params - Configuration parameters
3078
+ * @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
3079
+ * @param params.collectionAddress - The collection contract address
3080
+ * @param params.isLaos721 - Whether to use LAOS API instead of indexer
3081
+ * @param params.includeMetadata - Whether to include token metadata
3082
+ * @param params.page - Pagination options
3083
+ * @param params.query - Optional React Query configuration
3084
+ *
3085
+ * @returns Query result containing token supplies
3086
+ *
3087
+ * @example
3088
+ * Basic usage:
3089
+ * ```typescript
3090
+ * const { data, isLoading } = useTokenSupplies({
3091
+ * chainId: 137,
3092
+ * collectionAddress: '0x...'
3093
+ * })
3094
+ * ```
3095
+ *
3096
+ * @example
3097
+ * With LAOS API:
3098
+ * ```typescript
3099
+ * const { data, isLoading } = useTokenSupplies({
3100
+ * chainId: 1,
3101
+ * collectionAddress: '0x...',
3102
+ * isLaos721: true
3103
+ * })
3104
+ * ```
3105
+ *
3106
+ * @example
3107
+ * With conditional fetching:
3108
+ * ```typescript
3109
+ * const { data, isLoading } = useTokenSupplies({
3110
+ * chainId: 1,
3111
+ * collectionAddress: selectedCollection,
3112
+ * query: {
3113
+ * enabled: !!selectedCollection
3114
+ * }
3115
+ * })
3116
+ * ```
3117
+ */
3118
+ declare function useTokenSupplies(params: UseTokenSuppliesParams): _tanstack_react_query227.UseQueryResult<_0xsequence_indexer226.GetTokenSuppliesReturn, Error>;
3119
+ //#endregion
3120
+ //#region src/react/hooks/useTransferTokens.d.ts
3121
+ interface BaseTransferParams {
3122
+ chainId: number;
3123
+ collectionAddress: Address;
3124
+ tokenId: string;
3125
+ receiverAddress: Address;
3126
+ }
3127
+ interface ERC721TransferParams extends BaseTransferParams {
3128
+ contractType: ContractType.ERC721;
3129
+ }
3130
+ interface ERC1155TransferParams extends BaseTransferParams {
3131
+ contractType: ContractType.ERC1155;
3132
+ quantity: string;
3133
+ }
3134
+ type TransferTokensParams = ERC721TransferParams | ERC1155TransferParams;
3135
+ declare const useTransferTokens: () => {
3136
+ transferTokensAsync: (params: TransferTokensParams) => Promise<`0x${string}`>;
3137
+ hash: `0x${string}` | undefined;
3138
+ transferring: boolean;
3139
+ transferFailed: boolean;
3140
+ transferSuccess: boolean;
3141
+ };
3142
+ //#endregion
3143
+ export { CheckoutOptionsSalesContractQueryOptions, CollectionBalanceDetailsQueryOptions, CollectionBalanceFilter, CollectionQueryOptions, ComparePricesQueryOptions, ComparePricesReturn, ConvertPriceToUSDQueryOptions, ConvertPriceToUSDReturn, CountListingsForCollectibleQueryOptions, CountOfCollectablesQueryOptions, CountOffersForCollectibleQueryOptions, CreateReqWithDateExpiry$1 as CreateReqWithDateExpiry, FetchCheckoutOptionsSalesContractParams, FetchCollectionBalanceDetailsParams, FetchCollectionParams, FetchComparePricesParams, FetchConvertPriceToUSDParams, FetchCountListingsForCollectibleParams, FetchCountOfCollectablesParams, FetchCountOffersForCollectibleParams, FetchFiltersParams, FetchGetTokenRangesParams, FetchListCollectibleActivitiesParams, FetchListCollectiblesPaginatedParams, FetchListCollectionActivitiesParams, FetchListListingsForCollectibleParams, FiltersQueryOptions, GenerateListingTransactionProps, GenerateOfferTransactionProps, GetTokenRangesQueryOptions, ListCollectibleActivitiesQueryOptions, ListCollectiblesPaginatedQueryOptions, ListCollectionActivitiesQueryOptions, ListListingsForCollectibleQueryOptions, ListPrimarySaleItemsQueryOptions, MarketplaceProvider, MarketplaceQueryClientProvider, MarketplaceSdkContext$1 as MarketplaceSdkContext, MarketplaceSdkProviderProps, TransactionStep, TransferTokensParams, UseCheckoutOptionsSalesContractArgs, UseCheckoutOptionsSalesContractParams, UseCheckoutOptionsSalesContractReturn, UseCollectibleParams, UseCollectionBalanceDetailsArgs, UseCollectionBalanceDetailsParams, UseCollectionBalanceDetailsReturn, UseCollectionDetailsParams, UseCollectionParams, UseComparePricesArgs, UseComparePricesParams, UseComparePricesReturn, UseConvertPriceToUSDArgs, UseConvertPriceToUSDParams, UseConvertPriceToUSDReturn, UseCountListingsForCollectibleParams, UseCountOfCollectablesParams, UseCountOffersForCollectibleParams, UseCurrencyParams, UseFilterReturn, UseFiltersArgs, UseFiltersParams, UseFloorOrderParams, UseGenerateListingTransactionArgs, UseGenerateOfferTransactionArgs, UseGetCountParams, UseGetTokenRangesParams, UseGetTokenRangesProps, UseGetTokenRangesReturn, UseHighestOfferParams, UseListCollectibleActivitiesArgs, UseListCollectibleActivitiesParams, UseListCollectibleActivitiesReturn, UseListCollectiblesArgs, UseListCollectiblesPaginatedArgs, UseListCollectiblesPaginatedParams, UseListCollectiblesPaginatedReturn, UseListCollectiblesParams, UseListCollectionActivitiesArgs, UseListCollectionActivitiesParams, UseListCollectionActivitiesReturn, UseListCollectionsParams, UseListListingsForCollectibleArgs, UseListListingsForCollectibleParams, UseListListingsForCollectibleReturn, UseListOffersForCollectibleReturn, UseListPrimarySaleItemsParams, UseListTokenMetadataParams, UseLowestListingParams, UseMarketCurrenciesParams, UseRoyaltyArgs, UseTokenSuppliesParams, checkoutOptionsSalesContractQueryOptions, collectionBalanceDetailsQueryOptions, collectionDetailsPollingOptions, collectionQueryOptions, comparePricesQueryOptions, convertPriceToUSDQueryOptions, countListingsForCollectibleQueryOptions, countOfCollectablesQueryOptions, countOffersForCollectibleQueryOptions, filtersQueryOptions, generateCancelTransaction, generateListingTransaction, generateOfferTransaction, generateSellTransaction, getTokenRangesQueryOptions, listCollectibleActivitiesQueryOptions, listCollectiblesPaginatedQueryOptions, listCollectionActivitiesQueryOptions, listListingsForCollectibleQueryOptions, listOffersForCollectibleOptions, useAutoSelectFeeOption, useBalanceOfCollectible, useCancelOrder, useCheckoutOptionsSalesContract, useCollectible, useCollection, useCollectionBalanceDetails, useCollectionDetails, useCollectionDetailsPolling, useComparePrices, useConfig, useConvertPriceToUSD, useCountListingsForCollectible, useCountOfCollectables, useCountOfPrimarySaleItems, useCountOffersForCollectible, useCurrency, useERC721SaleMintedTokens, useFilterState, useFilters, useFiltersProgressive, useFloorOrder, useGenerateCancelTransaction, useGenerateListingTransaction, useGenerateOfferTransaction, useGenerateSellTransaction, useGetCountOfPrimarySaleItems, useGetTokenRanges, useHighestOffer, useInventory, useList1155ShopCardData, useList721ShopCardData, useListBalances, useListCollectibleActivities, useListCollectibles, useListCollectiblesPaginated, useListCollectionActivities, useListCollections, useListListingsForCollectible, useListMarketCardData, useListOffersForCollectible, useListPrimarySaleItems, useListShopCardData, useListTokenMetadata, useLowestListing, useMarketCurrencies, useMarketplaceConfig, useOpenConnectModal, useRoyalty, useShopCollectibleSaleData, useTokenSupplies, useTransferTokens };
3144
+ //# sourceMappingURL=index-BUWB_RXp.d.ts.map