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