@0xsequence/marketplace-sdk 1.1.0 → 1.1.1

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 (397) hide show
  1. package/.changeset/honest-peas-arrive.md +5 -0
  2. package/.changeset/real-tips-stick.md +8 -0
  3. package/.changeset/tall-pandas-wear.md +8 -0
  4. package/CHANGELOG.md +24 -2
  5. package/dist/{BellIcon-IpHHEy8h.js → BellIcon-ByhygxBO.js} +2 -2
  6. package/dist/{BellIcon-IpHHEy8h.js.map → BellIcon-ByhygxBO.js.map} +1 -1
  7. package/dist/{CartIcon-C8zbor8H.js → CartIcon-Bt3rQYGk.js} +3 -3
  8. package/dist/{CartIcon-C8zbor8H.js.map → CartIcon-Bt3rQYGk.js.map} +1 -1
  9. package/dist/CollectibleCard-CVpdgXA8.d.ts +8 -0
  10. package/dist/_internal-DkS2VUn5.js.map +1 -1
  11. package/dist/abi-fa-o9gH3.js +134 -0
  12. package/dist/abi-fa-o9gH3.js.map +1 -0
  13. package/dist/{alien_swap-BTJ7mSR-.js → alien_swap-DoY6XfMA.js} +1 -1
  14. package/dist/{alien_swap-BTJ7mSR-.js.map → alien_swap-DoY6XfMA.js.map} +1 -1
  15. package/dist/{api-DuLKn__v.js → api-BoO0V5aJ.js} +8 -3
  16. package/dist/api-BoO0V5aJ.js.map +1 -0
  17. package/dist/{aqua-xyz-BYJ9WSP_.js → aqua-xyz-BBDxnG14.js} +1 -1
  18. package/dist/{aqua-xyz-BYJ9WSP_.js.map → aqua-xyz-BBDxnG14.js.map} +1 -1
  19. package/dist/{aura-D7SUjgro.js → aura-DGx2zwvF.js} +1 -1
  20. package/dist/{aura-D7SUjgro.js.map → aura-DGx2zwvF.js.map} +1 -1
  21. package/dist/{blur-BcnRFCaV.js → blur-D8GKrRrq.js} +1 -1
  22. package/dist/{blur-BcnRFCaV.js.map → blur-D8GKrRrq.js.map} +1 -1
  23. package/dist/{coinbase-ChoX9Hw2.js → coinbase-DOry4PXY.js} +1 -1
  24. package/dist/{coinbase-ChoX9Hw2.js.map → coinbase-DOry4PXY.js.map} +1 -1
  25. package/dist/collectibles-C_H8jMGH.js +358 -0
  26. package/dist/collectibles-C_H8jMGH.js.map +1 -0
  27. package/dist/collections-CKummc-R.js +249 -0
  28. package/dist/collections-CKummc-R.js.map +1 -0
  29. package/dist/{components-CUv-wQr8.js → components-CosnX7F9.js} +5 -5
  30. package/dist/{components-CUv-wQr8.js.map → components-CosnX7F9.js.map} +1 -1
  31. package/dist/{contracts-D72LBOX3.js → contracts-BP_0vX48.js} +3 -3
  32. package/dist/{contracts-D72LBOX3.js.map → contracts-BP_0vX48.js.map} +1 -1
  33. package/dist/{create-config-DV_dtaLt.d.ts → create-config-ZOB7i4ZJ.d.ts} +117 -12
  34. package/dist/{element-Dbcv5qya.js → element-ciybd_VF.js} +1 -1
  35. package/dist/{element-Dbcv5qya.js.map → element-ciybd_VF.js.map} +1 -1
  36. package/dist/filters-V-V8Dn8f.d.ts +60 -0
  37. package/dist/{foundation-QPhUEUy8.js → foundation-Bq4lRz4x.js} +1 -1
  38. package/dist/{foundation-QPhUEUy8.js.map → foundation-Bq4lRz4x.js.map} +1 -1
  39. package/dist/index-BOiHR01C.d.ts +106 -0
  40. package/dist/index-BZIJTQT0.d.ts +121 -0
  41. package/dist/index-BeRV-7AX.d.ts +55 -0
  42. package/dist/{index-BaytncQc.d.ts → index-Bsx6XsC2.d.ts} +58 -55
  43. package/dist/{index-jGgfEHfQ.d.ts → index-BtWMBHeP.d.ts} +13 -9
  44. package/dist/{index-CT8ZorFd.d.ts → index-Bxzjy0d1.d.ts} +1 -1
  45. package/dist/{index-B6aSbaw2.d.ts → index-C-745li7.d.ts} +1 -1
  46. package/dist/{index-BoNNplSx.d.ts → index-C4MUKshG.d.ts} +2 -2
  47. package/dist/{index-DMBMM16q.d.ts → index-CPzvNmq9.d.ts} +35 -35
  48. package/dist/{index-D-UXGo5d.d.ts → index-CS65jqOq.d.ts} +2 -2
  49. package/dist/index-CZUtOTjh.d.ts +1 -0
  50. package/dist/index-CnEbXm_t.d.ts +130 -0
  51. package/dist/{index-CQecU53t.d.ts → index-CxA34wP1.d.ts} +32 -23
  52. package/dist/{index-C768pAfu.d.ts → index-CxpFwGvR.d.ts} +3 -3
  53. package/dist/{index-Bv5XVLjH.d.ts → index-D9LPlmbC.d.ts} +1 -1
  54. package/dist/{index-DJG0kiII.d.ts → index-DFEnA6Wa.d.ts} +28 -17
  55. package/dist/{index-B8vaT3_s.d.ts → index-DNNUeZEq.d.ts} +4 -4
  56. package/dist/{index-CXscCUg7.d.ts → index-DUXfvhxs.d.ts} +12 -12
  57. package/dist/index-DW3njUfb.d.ts +1 -0
  58. package/dist/{index-CMPUveNz.d.ts → index-DWt6yrIG.d.ts} +7 -7
  59. package/dist/index-DewGsFz5.d.ts +1 -0
  60. package/dist/{index-DLUjc7Bx.d.ts → index-DmudgrsN.d.ts} +191 -12
  61. package/dist/{index-DpeWm_vF.d.ts → index-DqXd1EeB.d.ts} +5 -5
  62. package/dist/{index-CM0ZTePs.d.ts → index-DwKr18CI.d.ts} +1 -1
  63. package/dist/{index-D6YMj82n.d.ts → index-NlPMNcqh.d.ts} +100 -100
  64. package/dist/index-Stm5u0I0.d.ts +53 -0
  65. package/dist/index-U-zp70of.d.ts +74 -0
  66. package/dist/index.d.ts +8 -8
  67. package/dist/index.js +8 -8
  68. package/dist/inventory-Dd7TazvZ.js +72 -0
  69. package/dist/inventory-Dd7TazvZ.js.map +1 -0
  70. package/dist/listBalances-BxpxBCvn.js +57 -0
  71. package/dist/listBalances-BxpxBCvn.js.map +1 -0
  72. package/dist/listCollectiblesPaginated-Cy2_qEZA.d.ts +327 -0
  73. package/dist/{listCollections-dTCq00l5.d.ts → listCollections-BB9FxKj2.d.ts} +193 -111
  74. package/dist/{looks-rare-C7cQztTR.js → looks-rare-6H--x3AM.js} +1 -1
  75. package/dist/{looks-rare-C7cQztTR.js.map → looks-rare-6H--x3AM.js.map} +1 -1
  76. package/dist/lowestListing-Cbsi6M1K.d.ts +465 -0
  77. package/dist/{magic-eden-D3r7jiBG.js → magic-eden-BoxEQ1Li.js} +1 -1
  78. package/dist/{magic-eden-D3r7jiBG.js.map → magic-eden-BoxEQ1Li.js.map} +1 -1
  79. package/dist/{manifold-DsX0CBP-.js → manifold-DycKsljb.js} +1 -1
  80. package/dist/{manifold-DsX0CBP-.js.map → manifold-DycKsljb.js.map} +1 -1
  81. package/dist/market-C3HV-awQ.js +209 -0
  82. package/dist/market-C3HV-awQ.js.map +1 -0
  83. package/dist/{marketCurrencies-Bzj8X4TL.d.ts → marketCurrencies-Bpw1bIO0.d.ts} +46 -15
  84. package/dist/marketCurrencies-sKrTX0og.js +53 -0
  85. package/dist/marketCurrencies-sKrTX0og.js.map +1 -0
  86. package/dist/{marketplace-BYY8OloA.js → marketplace-NQB-sEQL.js} +1 -1
  87. package/dist/{marketplace-BYY8OloA.js.map → marketplace-NQB-sEQL.js.map} +1 -1
  88. package/dist/{marketplace-logos-Csv2MBwf.js → marketplace-logos-D4dS1Foy.js} +21 -21
  89. package/dist/{marketplace-logos-Csv2MBwf.js.map → marketplace-logos-D4dS1Foy.js.map} +1 -1
  90. package/dist/{marketplace.gen-w2YvbEEo.js → marketplace.gen-ksUafDqS.js} +56 -5
  91. package/dist/marketplace.gen-ksUafDqS.js.map +1 -0
  92. package/dist/{marketplaceConfig-BTy75Mbf.js → marketplaceConfig-UHQMM9fq.js} +3 -3
  93. package/dist/marketplaceConfig-UHQMM9fq.js.map +1 -0
  94. package/dist/{mintify-DiOoDmO1.js → mintify-Dyqyo8jQ.js} +1 -1
  95. package/dist/{mintify-DiOoDmO1.js.map → mintify-Dyqyo8jQ.js.map} +1 -1
  96. package/dist/{nftx-CP82jNra.js → nftx-2LbFjj9Q.js} +1 -1
  97. package/dist/{nftx-CP82jNra.js.map → nftx-2LbFjj9Q.js.map} +1 -1
  98. package/dist/{okx-p9-4xRjs.js → okx-CBEWJNsR.js} +1 -1
  99. package/dist/{okx-p9-4xRjs.js.map → okx-CBEWJNsR.js.map} +1 -1
  100. package/dist/{open-sea-D2GwAmKS.js → open-sea-Dxntz_PA.js} +1 -1
  101. package/dist/{open-sea-D2GwAmKS.js.map → open-sea-Dxntz_PA.js.map} +1 -1
  102. package/dist/orders-DnFfZAXV.js +462 -0
  103. package/dist/orders-DnFfZAXV.js.map +1 -0
  104. package/dist/{primary-sale-DOmNDq2P.js → primary-sale-1u4QlPdA.js} +1 -1
  105. package/dist/{primary-sale-DOmNDq2P.js.map → primary-sale-1u4QlPdA.js.map} +1 -1
  106. package/dist/primary-sales-Dmsi6bqj.js +114 -0
  107. package/dist/primary-sales-Dmsi6bqj.js.map +1 -0
  108. package/dist/{query-BG-MA1MB.d.ts → query-BWbCsXLY.d.ts} +1 -1
  109. package/dist/{rarible-DqiiW9ki.js → rarible-CS0SupHr.js} +1 -1
  110. package/dist/{rarible-DqiiW9ki.js.map → rarible-CS0SupHr.js.map} +1 -1
  111. package/dist/react/_internal/api/index.d.ts +2 -2
  112. package/dist/react/_internal/api/index.js +3 -3
  113. package/dist/react/_internal/databeat/index.d.ts +1 -1
  114. package/dist/react/_internal/databeat/index.js +28 -17
  115. package/dist/react/_internal/index.d.ts +2 -2
  116. package/dist/react/_internal/index.js +3 -3
  117. package/dist/react/_internal/wagmi/index.d.ts +1 -1
  118. package/dist/react/hooks/config/index.d.ts +8 -8
  119. package/dist/react/hooks/config/index.js +28 -17
  120. package/dist/react/hooks/contracts/index.d.ts +6 -6
  121. package/dist/react/hooks/contracts/index.js +7 -7
  122. package/dist/react/hooks/data/collectibles/index.d.ts +10 -4
  123. package/dist/react/hooks/data/collectibles/index.js +28 -17
  124. package/dist/react/hooks/data/collections/index.d.ts +10 -10
  125. package/dist/react/hooks/data/collections/index.js +28 -17
  126. package/dist/react/hooks/data/index.d.ts +37 -29
  127. package/dist/react/hooks/data/index.js +29 -18
  128. package/dist/react/hooks/data/inventory/index.d.ts +36 -28
  129. package/dist/react/hooks/data/inventory/index.js +28 -17
  130. package/dist/react/hooks/data/market/index.d.ts +11 -5
  131. package/dist/react/hooks/data/market/index.js +28 -17
  132. package/dist/react/hooks/data/orders/index.d.ts +11 -5
  133. package/dist/react/hooks/data/orders/index.js +29 -18
  134. package/dist/react/hooks/data/primary-sales/index.d.ts +36 -28
  135. package/dist/react/hooks/data/primary-sales/index.js +28 -17
  136. package/dist/react/hooks/data/tokens/index.d.ts +4 -4
  137. package/dist/react/hooks/data/tokens/index.js +28 -17
  138. package/dist/react/hooks/index.d.ts +37 -29
  139. package/dist/react/hooks/index.js +29 -18
  140. package/dist/react/hooks/transactions/index.d.ts +2 -2
  141. package/dist/react/hooks/transactions/index.js +28 -17
  142. package/dist/react/hooks/ui/index.d.ts +4 -4
  143. package/dist/react/hooks/ui/index.js +28 -17
  144. package/dist/react/hooks/utils/index.d.ts +36 -28
  145. package/dist/react/hooks/utils/index.js +28 -17
  146. package/dist/react/index.d.ts +37 -29
  147. package/dist/react/index.js +29 -18
  148. package/dist/react/queries/collectibles/index.d.ts +11 -0
  149. package/dist/react/queries/collectibles/index.js +23 -0
  150. package/dist/react/queries/collections/index.d.ts +11 -0
  151. package/dist/react/queries/collections/index.js +20 -0
  152. package/dist/react/queries/index.d.ts +24 -16
  153. package/dist/react/queries/index.js +22 -11
  154. package/dist/react/queries/inventory/index.d.ts +3 -0
  155. package/dist/react/queries/inventory/index.js +22 -0
  156. package/dist/react/queries/market/index.d.ts +6 -0
  157. package/dist/react/queries/market/index.js +22 -0
  158. package/dist/react/queries/orders/index.d.ts +11 -0
  159. package/dist/react/queries/orders/index.js +13 -0
  160. package/dist/react/queries/primary-sales/index.d.ts +4 -0
  161. package/dist/react/queries/primary-sales/index.js +13 -0
  162. package/dist/react/queries/tokens/index.d.ts +5 -0
  163. package/dist/react/queries/tokens/index.js +14 -0
  164. package/dist/react/queries/utils/index.d.ts +4 -0
  165. package/dist/react/queries/utils/index.js +22 -0
  166. package/dist/react/ssr/index.d.ts +7 -7
  167. package/dist/react/ssr/index.js +3 -3
  168. package/dist/react/ssr/index.js.map +1 -1
  169. package/dist/react/ui/components/marketplace-collectible-card/components/footer/components/index.d.ts +2 -2
  170. package/dist/react/ui/components/marketplace-collectible-card/components/footer/components/index.js +11 -11
  171. package/dist/react/ui/components/marketplace-collectible-card/components/footer/index.d.ts +5 -5
  172. package/dist/react/ui/components/marketplace-collectible-card/components/footer/index.js +28 -17
  173. package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +4 -4
  174. package/dist/react/ui/components/marketplace-collectible-card/index.js +28 -17
  175. package/dist/react/ui/components/marketplace-collectible-card/utils/index.d.ts +2 -2
  176. package/dist/react/ui/components/marketplace-collectible-card/utils/index.js +3 -3
  177. package/dist/react/ui/components/marketplace-logos/index.d.ts +21 -21
  178. package/dist/react/ui/components/marketplace-logos/index.js +1 -1
  179. package/dist/react/ui/icons/index.js +9 -9
  180. package/dist/react/ui/index.d.ts +4 -4
  181. package/dist/react/ui/index.js +28 -17
  182. package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +2 -2
  183. package/dist/react/ui/modals/_internal/components/actionModal/index.js +28 -17
  184. package/dist/react/utils/index.d.ts +3 -3
  185. package/dist/react/utils/index.js +3 -3
  186. package/dist/{react-BLJ4DkPx.js → react-DE852KeT.js} +1365 -172
  187. package/dist/react-DE852KeT.js.map +1 -0
  188. package/dist/{sequence-Bbb-TFKg.js → sequence-paCCener.js} +1 -1
  189. package/dist/{sequence-Bbb-TFKg.js.map → sequence-paCCener.js.map} +1 -1
  190. package/dist/styles/index.css +154 -0
  191. package/dist/{sudo-swap-CEPIM3Js.js → sudo-swap-9rH2EgfT.js} +1 -1
  192. package/dist/{sudo-swap-CEPIM3Js.js.map → sudo-swap-9rH2EgfT.js.map} +1 -1
  193. package/dist/{super-rare-CMEn9PoO.js → super-rare-DHIuWtRw.js} +1 -1
  194. package/dist/{super-rare-CMEn9PoO.js.map → super-rare-DHIuWtRw.js.map} +1 -1
  195. package/dist/{token-CcyLz8Z8.js → token-Cv7l2ZaL.js} +1 -1
  196. package/dist/{token-CcyLz8Z8.js.map → token-Cv7l2ZaL.js.map} +1 -1
  197. package/dist/tokenBalances-ibDerNmM.js +63 -0
  198. package/dist/tokenBalances-ibDerNmM.js.map +1 -0
  199. package/dist/tokenSupplies-Bfe8RHzI.d.ts +272 -0
  200. package/dist/tokens-cGxMadd8.js +194 -0
  201. package/dist/tokens-cGxMadd8.js.map +1 -0
  202. package/dist/types/index.d.ts +1 -1
  203. package/dist/types/index.js +1 -1
  204. package/dist/{types-D6LkVrF0.d.ts → types-D2TJ1dwv.d.ts} +3 -2
  205. package/dist/utils/abi/index.d.ts +5 -5
  206. package/dist/utils/abi/index.js +5 -5
  207. package/dist/utils/abi/marketplace/index.d.ts +1 -1
  208. package/dist/utils/abi/marketplace/index.js +1 -1
  209. package/dist/utils/abi/primary-sale/index.d.ts +1 -1
  210. package/dist/utils/abi/primary-sale/index.js +1 -1
  211. package/dist/utils/abi/token/index.d.ts +1 -1
  212. package/dist/utils/abi/token/index.js +1 -1
  213. package/dist/utils/index.d.ts +7 -7
  214. package/dist/utils/index.js +8 -8
  215. package/dist/utils-BCgNhBFR.js +112 -0
  216. package/dist/utils-BCgNhBFR.js.map +1 -0
  217. package/dist/{utils-BZEkdqWK.js → utils-BfpDVibN.js} +3 -3
  218. package/dist/{utils-BZEkdqWK.js.map → utils-BfpDVibN.js.map} +1 -1
  219. package/dist/{utils-oVZxdK0o.js → utils-BqxcalL2.js} +2 -2
  220. package/dist/{utils-oVZxdK0o.js.map → utils-BqxcalL2.js.map} +1 -1
  221. package/dist/waitForTransactionReceipt-DieAnV52.js +25 -0
  222. package/dist/waitForTransactionReceipt-DieAnV52.js.map +1 -0
  223. package/dist/{x2y2-DNe6JgtG.js → x2y2-45WDooeh.js} +1 -1
  224. package/dist/{x2y2-DNe6JgtG.js.map → x2y2-45WDooeh.js.map} +1 -1
  225. package/dist/{zora-w0Zqxxs4.js → zora-CbeBoLvQ.js} +1 -1
  226. package/dist/{zora-w0Zqxxs4.js.map → zora-CbeBoLvQ.js.map} +1 -1
  227. package/package.json +10 -5
  228. package/src/react/_internal/api/__mocks__/marketplace.msw.ts +2 -0
  229. package/src/react/_internal/api/marketplace.gen.ts +1730 -2383
  230. package/src/react/_internal/api/query-keys.ts +14 -0
  231. package/src/react/_internal/api/services.ts +1 -1
  232. package/src/react/_internal/databeat/types.ts +1 -0
  233. package/src/react/_internal/types.ts +14 -0
  234. package/src/react/_internal/utils.ts +3 -0
  235. package/src/react/hooks/config/useMarketplaceConfig.tsx +1 -1
  236. package/src/react/hooks/data/collectibles/useBalanceOfCollectible.tsx +1 -1
  237. package/src/react/hooks/data/collectibles/useCollectible.tsx +1 -1
  238. package/src/react/hooks/data/collectibles/useCountOfCollectables.tsx +1 -1
  239. package/src/react/hooks/data/collectibles/useListCollectibleActivities.tsx +1 -1
  240. package/src/react/hooks/data/collectibles/useListCollectibles.tsx +1 -1
  241. package/src/react/hooks/data/collectibles/useListCollectiblesPaginated.tsx +1 -1
  242. package/src/react/hooks/data/collectibles/useTokenBalances.tsx +1 -1
  243. package/src/react/hooks/data/collections/useCollection.tsx +1 -1
  244. package/src/react/hooks/data/collections/useCollectionBalanceDetails.tsx +1 -1
  245. package/src/react/hooks/data/collections/useCollectionDetails.ts +1 -1
  246. package/src/react/hooks/data/collections/useListCollectionActivities.tsx +1 -1
  247. package/src/react/hooks/data/collections/useListCollections.tsx +1 -1
  248. package/src/react/hooks/data/inventory/useInventory.tsx +1 -1
  249. package/src/react/hooks/data/market/useCurrency.tsx +1 -1
  250. package/src/react/hooks/data/market/useListMarketCardData.tsx +7 -0
  251. package/src/react/hooks/data/market/useMarketCurrencies.tsx +1 -1
  252. package/src/react/hooks/data/orders/index.ts +4 -0
  253. package/src/react/hooks/data/orders/useCountItemsOrdersForCollection.tsx +90 -0
  254. package/src/react/hooks/data/orders/useCountListingsForCollectible.tsx +1 -1
  255. package/src/react/hooks/data/orders/useCountOffersForCollectible.tsx +1 -1
  256. package/src/react/hooks/data/orders/useFloorOrder.tsx +1 -1
  257. package/src/react/hooks/data/orders/useGetCountOfFilteredOrders.tsx +39 -0
  258. package/src/react/hooks/data/orders/useHighestOffer.tsx +1 -1
  259. package/src/react/hooks/data/orders/useListItemsOrdersForCollection.tsx +93 -0
  260. package/src/react/hooks/data/orders/useListItemsOrdersForCollectionPaginated.tsx +108 -0
  261. package/src/react/hooks/data/orders/useListListingsForCollectible.tsx +1 -1
  262. package/src/react/hooks/data/orders/useListOffersForCollectible.tsx +1 -1
  263. package/src/react/hooks/data/orders/useLowestListing.tsx +1 -1
  264. package/src/react/hooks/data/primary-sales/useGetCountOfPrimarySaleItems.tsx +2 -2
  265. package/src/react/hooks/data/primary-sales/useListPrimarySaleItems.tsx +1 -1
  266. package/src/react/hooks/data/tokens/useGetTokenRanges.tsx +2 -2
  267. package/src/react/hooks/data/tokens/useListBalances.tsx +2 -2
  268. package/src/react/hooks/data/tokens/useListTokenMetadata.tsx +1 -1
  269. package/src/react/hooks/data/tokens/useSearchTokenMetadata.tsx +1 -1
  270. package/src/react/hooks/data/tokens/useTokenSupplies.ts +1 -1
  271. package/src/react/hooks/transactions/useGenerateCancelTransaction.test.tsx +1 -0
  272. package/src/react/hooks/transactions/useGenerateListingTransaction.test.tsx +13 -0
  273. package/src/react/hooks/transactions/useGenerateOfferTransaction.test.tsx +1 -0
  274. package/src/react/hooks/transactions/useGenerateSellTransaction.test.tsx +6 -0
  275. package/src/react/hooks/ui/useFilterState.tsx +72 -2
  276. package/src/react/hooks/ui/useFilters.tsx +1 -1
  277. package/src/react/hooks/utils/useCheckoutOptions.tsx +2 -2
  278. package/src/react/hooks/utils/useCheckoutOptionsSalesContract.tsx +1 -1
  279. package/src/react/hooks/utils/useComparePrices.tsx +1 -1
  280. package/src/react/hooks/utils/useConvertPriceToUSD.tsx +1 -1
  281. package/src/react/providers/analytics-provider.tsx +45 -0
  282. package/src/react/providers/index.tsx +30 -41
  283. package/src/react/providers/modal-provider.tsx +13 -2
  284. package/src/react/queries/{__tests__ → collectibles/__tests__}/balanceOfCollectible.laos.test.ts +1 -1
  285. package/src/react/queries/{__tests__ → collectibles/__tests__}/tokenBalances.laos.test.ts +1 -1
  286. package/src/react/queries/{balanceOfCollectible.ts → collectibles/balanceOfCollectible.ts} +24 -3
  287. package/src/react/queries/{collectible.ts → collectibles/collectible.ts} +20 -5
  288. package/src/react/queries/{countOfCollectables.ts → collectibles/countOfCollectables.ts} +32 -6
  289. package/src/react/queries/collectibles/index.ts +7 -0
  290. package/src/react/queries/{listCollectibleActivities.ts → collectibles/listCollectibleActivities.ts} +29 -5
  291. package/src/react/queries/{listCollectibles.ts → collectibles/listCollectibles.ts} +28 -9
  292. package/src/react/queries/{listCollectiblesPaginated.ts → collectibles/listCollectiblesPaginated.ts} +22 -5
  293. package/src/react/queries/{tokenBalances.ts → collectibles/tokenBalances.ts} +21 -3
  294. package/src/react/queries/{collection.ts → collections/collection.ts} +19 -5
  295. package/src/react/queries/{collectionBalanceDetails.ts → collections/collectionBalanceDetails.ts} +19 -4
  296. package/src/react/queries/{collectionDetails.ts → collections/collectionDetails.ts} +21 -6
  297. package/src/react/queries/collections/index.ts +5 -0
  298. package/src/react/queries/{listCollectionActivities.ts → collections/listCollectionActivities.ts} +28 -6
  299. package/src/react/queries/{listCollections.ts → collections/listCollections.ts} +17 -6
  300. package/src/react/queries/index.ts +7 -34
  301. package/src/react/queries/{__tests__ → inventory/__tests__}/inventory.laos.test.ts +4 -4
  302. package/src/react/queries/inventory/index.ts +1 -0
  303. package/src/react/queries/{inventory.ts → inventory/inventory.ts} +11 -5
  304. package/src/react/queries/{checkoutOptions.ts → market/checkoutOptions.ts} +28 -6
  305. package/src/react/queries/{checkoutOptionsSalesContract.ts → market/checkoutOptionsSalesContract.ts} +24 -5
  306. package/src/react/queries/{currency.ts → market/currency.ts} +13 -4
  307. package/src/react/queries/{filters.ts → market/filters.ts} +25 -6
  308. package/src/react/queries/market/index.ts +6 -0
  309. package/src/react/queries/{marketCurrencies.ts → market/marketCurrencies.ts} +24 -5
  310. package/src/react/queries/{marketplaceConfig.ts → market/marketplaceConfig.ts} +5 -5
  311. package/src/react/queries/orders/countItemsOrdersForCollection.ts +86 -0
  312. package/src/react/queries/{countListingsForCollectible.ts → orders/countListingsForCollectible.ts} +23 -6
  313. package/src/react/queries/{countOffersForCollectible.ts → orders/countOffersForCollectible.ts} +23 -6
  314. package/src/react/queries/{floorOrder.ts → orders/floorOrder.ts} +15 -4
  315. package/src/react/queries/orders/getCountOfFilteredOrders.ts +88 -0
  316. package/src/react/queries/{highestOffer.ts → orders/highestOffer.ts} +16 -4
  317. package/src/react/queries/orders/index.ts +11 -0
  318. package/src/react/queries/orders/listItemsOrdersForCollection.ts +90 -0
  319. package/src/react/queries/orders/listItemsOrdersForCollectionPaginated.ts +90 -0
  320. package/src/react/queries/{listListingsForCollectible.ts → orders/listListingsForCollectible.ts} +20 -5
  321. package/src/react/queries/{listOffersForCollectible.ts → orders/listOffersForCollectible.ts} +20 -5
  322. package/src/react/queries/{lowestListing.ts → orders/lowestListing.ts} +16 -4
  323. package/src/react/queries/{countOfPrimarySaleItems.ts → primary-sales/countOfPrimarySaleItems.ts} +17 -3
  324. package/src/react/queries/primary-sales/index.ts +3 -0
  325. package/src/react/queries/{primarySaleItems.ts → primary-sales/primarySaleItems.ts} +18 -4
  326. package/src/react/queries/{primarySaleItemsCount.ts → primary-sales/primarySaleItemsCount.ts} +19 -4
  327. package/src/react/queries/{getTokenRanges.ts → tokens/getTokenRanges.ts} +17 -4
  328. package/src/react/queries/tokens/index.ts +5 -0
  329. package/src/react/queries/{listBalances.ts → tokens/listBalances.ts} +18 -3
  330. package/src/react/queries/{listTokenMetadata.ts → tokens/listTokenMetadata.ts} +18 -4
  331. package/src/react/queries/{searchTokenMetadata.ts → tokens/searchTokenMetadata.ts} +18 -4
  332. package/src/react/queries/{tokenSupplies.ts → tokens/tokenSupplies.ts} +16 -4
  333. package/src/react/queries/{comparePrices.ts → utils/comparePrices.ts} +16 -4
  334. package/src/react/queries/{convertPriceToUSD.ts → utils/convertPriceToUSD.ts} +18 -5
  335. package/src/react/queries/utils/index.ts +2 -0
  336. package/src/react/ssr/create-ssr-client.ts +1 -1
  337. package/src/react/ui/components/_internals/ErrorLogBox.tsx +85 -0
  338. package/src/react/ui/components/_internals/action-button/ActionButton.tsx +4 -0
  339. package/src/react/ui/components/_internals/action-button/components/NonOwnerActions.tsx +4 -0
  340. package/src/react/ui/components/marketplace-collectible-card/components/ActionButtonWrapper.tsx +3 -0
  341. package/src/react/ui/components/marketplace-collectible-card/types.ts +1 -0
  342. package/src/react/ui/components/marketplace-collectible-card/variants/MarketCard.tsx +3 -0
  343. package/src/react/ui/components/marketplace-collectible-card/variants/ShopCard.tsx +2 -0
  344. package/src/react/ui/modals/BuyModal/components/ERC1155BuyModal.tsx +65 -3
  345. package/src/react/ui/modals/BuyModal/components/ERC721BuyModal.tsx +31 -0
  346. package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC721SalePaymentParams.test.tsx +20 -1
  347. package/src/react/ui/modals/BuyModal/hooks/useERC1155Checkout.ts +7 -2
  348. package/src/react/ui/modals/BuyModal/hooks/useERC721SalePaymentParams.ts +12 -3
  349. package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +11 -2
  350. package/src/react/ui/modals/BuyModal/store.ts +3 -0
  351. package/src/react/ui/modals/CreateListingModal/Modal.tsx +63 -24
  352. package/src/react/ui/modals/CreateListingModal/__tests__/Modal.test.tsx +4 -0
  353. package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +18 -12
  354. package/src/react/ui/modals/CreateListingModal/hooks/useGetTokenApproval.ts +4 -1
  355. package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +1 -0
  356. package/src/react/ui/modals/MakeOfferModal/Modal.tsx +55 -8
  357. package/src/react/ui/modals/MakeOfferModal/__tests__/Modal.test.tsx +10 -0
  358. package/src/react/ui/modals/MakeOfferModal/hooks/useGetTokenApproval.tsx +4 -1
  359. package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +15 -26
  360. package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +1 -0
  361. package/src/react/ui/modals/SellModal/Modal.tsx +21 -3
  362. package/src/react/ui/modals/SellModal/__tests__/Modal.test.tsx +2 -0
  363. package/src/react/ui/modals/SellModal/hooks/useGetTokenApproval.tsx +3 -1
  364. package/src/react/ui/modals/SellModal/hooks/useSell.tsx +13 -7
  365. package/src/react/ui/modals/SuccessfulPurchaseModal/__tests__/Modal.test.tsx +9 -0
  366. package/src/react/ui/modals/_internal/components/calendarDropdown/TimeSelector.tsx +105 -0
  367. package/src/react/ui/modals/_internal/components/calendarDropdown/index.tsx +45 -12
  368. package/src/react/ui/modals/_internal/components/calendarDropdown/overrides.css +39 -0
  369. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +31 -10
  370. package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +18 -9
  371. package/src/react/ui/modals/_internal/components/priceInput/index.tsx +51 -1
  372. package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +58 -10
  373. package/src/react/ui/modals/_internal/constants/opensea-currencies.ts +481 -0
  374. package/src/react/utils/waitForTransactionReceipt.ts +26 -32
  375. package/src/styles/index.css +1 -0
  376. package/src/styles/styles.ts +155 -1
  377. package/src/types/index.ts +1 -1
  378. package/src/utils/abi/index.ts +1 -0
  379. package/src/utils/abi/mainModule.ts +158 -0
  380. package/dist/CollectibleCard-C2EWF0zo.d.ts +0 -8
  381. package/dist/api-DuLKn__v.js.map +0 -1
  382. package/dist/filters-zkMJaPey.d.ts +0 -31
  383. package/dist/index-Yobo6icm.d.ts +0 -234
  384. package/dist/listCollectiblesPaginated-Bq0QSOjJ.d.ts +0 -168
  385. package/dist/lowestListing-CB5Te-Q9.d.ts +0 -168
  386. package/dist/marketplace.gen-w2YvbEEo.js.map +0 -1
  387. package/dist/marketplaceConfig-BTy75Mbf.js.map +0 -1
  388. package/dist/queries-EMA5CcwY.js +0 -1399
  389. package/dist/queries-EMA5CcwY.js.map +0 -1
  390. package/dist/react-BLJ4DkPx.js.map +0 -1
  391. package/dist/react-F03jPjPk.css +0 -80
  392. package/dist/react-F03jPjPk.css.map +0 -1
  393. package/dist/tokenSupplies-C470zTT0.d.ts +0 -147
  394. package/dist/waitForTransactionReceipt-B08YZiDY.js +0 -26
  395. package/dist/waitForTransactionReceipt-B08YZiDY.js.map +0 -1
  396. /package/dist/{index-Cg5cFzs-.d.ts → index-6wsMChsg.d.ts} +0 -0
  397. /package/dist/{abi-DYsUABe6.js → queries-KOcILNJO.js} +0 -0
@@ -1,49 +1,43 @@
1
1
  import type { TransactionReceipt } from '@0xsequence/indexer';
2
- import {
3
- type Hex,
4
- TransactionReceiptNotFoundError,
5
- WaitForTransactionReceiptTimeoutError,
6
- } from 'viem';
2
+ import { type Hex, TransactionReceiptNotFoundError } from 'viem';
7
3
  import type { SdkConfig } from '../../types';
8
4
  import { getIndexerClient } from '../_internal/api';
9
5
 
10
- const ONE_MIN = 60 * 1000;
11
- const THREE_MIN = 3 * ONE_MIN;
6
+ const MAX_RETRIES = 3;
7
+ const MAX_BLOCK_WAIT = 30;
12
8
 
13
9
  export const waitForTransactionReceipt = async ({
14
10
  txHash,
15
11
  chainId,
16
12
  sdkConfig,
17
- timeout = THREE_MIN,
13
+ maxBlockWait = MAX_BLOCK_WAIT,
18
14
  }: {
19
15
  txHash: Hex;
20
16
  chainId: number;
21
17
  sdkConfig: SdkConfig;
22
- timeout?: number;
18
+ maxBlockWait?: number;
23
19
  }): Promise<TransactionReceipt> => {
24
20
  const indexer = getIndexerClient(chainId, sdkConfig);
25
- return Promise.race([
26
- new Promise<TransactionReceipt>((resolve, reject) => {
27
- indexer.subscribeReceipts(
28
- {
29
- filter: {
30
- txnHash: txHash,
31
- },
32
- },
33
- {
34
- onMessage: ({ receipt }) => {
35
- resolve(receipt);
36
- },
37
- onError: () => {
38
- reject(TransactionReceiptNotFoundError);
39
- },
40
- },
21
+ let retries = 0;
22
+
23
+ while (retries < MAX_RETRIES) {
24
+ try {
25
+ const result = await indexer.fetchTransactionReceipt({
26
+ txnHash: txHash,
27
+ maxBlockWait,
28
+ });
29
+ return result.receipt;
30
+ } catch (error) {
31
+ retries++;
32
+ console.error(
33
+ `Failed to fetch transaction receipt (attempt ${retries}/${MAX_RETRIES}):`,
34
+ error,
41
35
  );
42
- }),
43
- new Promise<TransactionReceipt>((_, reject) => {
44
- setTimeout(() => {
45
- reject(WaitForTransactionReceiptTimeoutError);
46
- }, timeout);
47
- }),
48
- ]);
36
+ if (retries >= MAX_RETRIES) {
37
+ throw TransactionReceiptNotFoundError;
38
+ }
39
+ }
40
+ }
41
+
42
+ throw TransactionReceiptNotFoundError;
49
43
  };
@@ -1,6 +1,7 @@
1
1
  @import "tailwindcss";
2
2
  @import "@0xsequence/design-system/preset";
3
3
  @import "react-day-picker/style.css";
4
+ @import "../react/ui/modals/_internal/components/calendarDropdown/overrides.css";
4
5
 
5
6
  @source "../";
6
7
 
@@ -34,7 +34,12 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
34
34
  :root, :host {
35
35
  --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
36
36
  "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
37
+ --color-red-100: oklch(93.6% 0.032 17.717);
38
+ --color-red-300: oklch(80.8% 0.114 19.571);
39
+ --color-red-400: oklch(70.4% 0.191 22.216);
37
40
  --color-red-500: oklch(63.7% 0.237 25.331);
41
+ --color-red-900: oklch(39.6% 0.141 25.723);
42
+ --color-red-950: oklch(25.8% 0.092 26.042);
38
43
  --color-green-500: oklch(72.3% 0.219 149.579);
39
44
  --color-blue-500: oklch(62.3% 0.214 259.815);
40
45
  --color-indigo-400: oklch(67.3% 0.182 276.935);
@@ -452,6 +457,9 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
452
457
  .ml-5 {
453
458
  margin-left: calc(var(--spacing) * 5);
454
459
  }
460
+ .ml-10 {
461
+ margin-left: calc(var(--spacing) * 10);
462
+ }
455
463
  .block {
456
464
  display: block;
457
465
  }
@@ -575,6 +583,9 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
575
583
  .h-px {
576
584
  height: 1px;
577
585
  }
586
+ .max-h-96 {
587
+ max-height: calc(var(--spacing) * 96);
588
+ }
578
589
  .max-h-\[240px\] {
579
590
  max-height: 240px;
580
591
  }
@@ -731,6 +742,9 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
731
742
  .flex-shrink {
732
743
  flex-shrink: 1;
733
744
  }
745
+ .flex-shrink-0 {
746
+ flex-shrink: 0;
747
+ }
734
748
  .shrink-0 {
735
749
  flex-shrink: 0;
736
750
  }
@@ -987,6 +1001,10 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
987
1001
  border-style: var(--tw-border-style);
988
1002
  border-width: 2px;
989
1003
  }
1004
+ .border-t {
1005
+ border-top-style: var(--tw-border-style);
1006
+ border-top-width: 1px;
1007
+ }
990
1008
  .border-b-2 {
991
1009
  border-bottom-style: var(--tw-border-style);
992
1010
  border-bottom-width: 2px;
@@ -1018,6 +1036,9 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
1018
1036
  .border-border-normal {
1019
1037
  border-color: var(--seq-color-border-normal);
1020
1038
  }
1039
+ .border-red-900 {
1040
+ border-color: var(--color-red-900);
1041
+ }
1021
1042
  .border-transparent {
1022
1043
  border-color: transparent;
1023
1044
  }
@@ -1030,6 +1051,9 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
1030
1051
  .border-b-transparent {
1031
1052
  border-bottom-color: transparent;
1032
1053
  }
1054
+ .bg-\[\#2b0000\] {
1055
+ background-color: #2b0000;
1056
+ }
1033
1057
  .bg-\[\#35a554\] {
1034
1058
  background-color: #35a554;
1035
1059
  }
@@ -1102,6 +1126,12 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
1102
1126
  .bg-red-500 {
1103
1127
  background-color: var(--color-red-500);
1104
1128
  }
1129
+ .bg-red-900 {
1130
+ background-color: var(--color-red-900);
1131
+ }
1132
+ .bg-red-950 {
1133
+ background-color: var(--color-red-950);
1134
+ }
1105
1135
  .bg-surface-neutral {
1106
1136
  background-color: var(--color-surface-neutral);
1107
1137
  }
@@ -1411,12 +1441,18 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
1411
1441
  --tw-tracking: var(--tracking-widest);
1412
1442
  letter-spacing: var(--tracking-widest);
1413
1443
  }
1444
+ .break-words {
1445
+ overflow-wrap: break-word;
1446
+ }
1414
1447
  .text-ellipsis {
1415
1448
  text-overflow: ellipsis;
1416
1449
  }
1417
1450
  .whitespace-nowrap {
1418
1451
  white-space: nowrap;
1419
1452
  }
1453
+ .whitespace-pre-wrap {
1454
+ white-space: pre-wrap;
1455
+ }
1420
1456
  .text-background-raised {
1421
1457
  color: var(--seq-color-background-raised);
1422
1458
  }
@@ -1453,6 +1489,15 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
1453
1489
  .text-primary {
1454
1490
  color: var(--seq-color-primary);
1455
1491
  }
1492
+ .text-red-100 {
1493
+ color: var(--color-red-100);
1494
+ }
1495
+ .text-red-300 {
1496
+ color: var(--color-red-300);
1497
+ }
1498
+ .text-red-400 {
1499
+ color: var(--color-red-400);
1500
+ }
1456
1501
  .text-red-500 {
1457
1502
  color: var(--color-red-500);
1458
1503
  }
@@ -2025,6 +2070,13 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
2025
2070
  }
2026
2071
  }
2027
2072
  }
2073
+ .hover\:text-red-300 {
2074
+ &:hover {
2075
+ @media (hover: hover) {
2076
+ color: var(--color-red-300);
2077
+ }
2078
+ }
2079
+ }
2028
2080
  .hover\:text-text-80 {
2029
2081
  &:hover {
2030
2082
  @media (hover: hover) {
@@ -2416,6 +2468,11 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
2416
2468
  display: flex;
2417
2469
  }
2418
2470
  }
2471
+ .\[\&\>label\]\:w-16 {
2472
+ &>label {
2473
+ width: calc(var(--spacing) * 16);
2474
+ }
2475
+ }
2419
2476
  .\[\&\>label\]\:w-full {
2420
2477
  &>label {
2421
2478
  width: 100%;
@@ -3004,6 +3061,103 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
3004
3061
  .rdp-caption_before_exit {
3005
3062
  animation: rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
3006
3063
  }
3064
+ .rdp-root {
3065
+ width: 100% !important;
3066
+ padding: 0 !important;
3067
+ user-select: none;
3068
+ }
3069
+ .rdp-nav {
3070
+ position: absolute;
3071
+ width: 100%;
3072
+ height: fit-content !important;
3073
+ display: flex;
3074
+ align-items: center;
3075
+ justify-content: space-between;
3076
+ }
3077
+ .rdp-caption_label {
3078
+ color: var(--color-text-100) !important;
3079
+ }
3080
+ .rdp-months {
3081
+ width: 100%;
3082
+ max-width: unset !important;
3083
+ }
3084
+ .rdp-month_caption {
3085
+ text-align: center;
3086
+ width: 100%;
3087
+ height: 36px !important;
3088
+ display: block !important;
3089
+ font-size: 14px !important;
3090
+ }
3091
+ .rdp-month_grid {
3092
+ width: 100%;
3093
+ }
3094
+ .rdp-month {
3095
+ width: 100%;
3096
+ }
3097
+ .rdp-button_previous {
3098
+ background-color: var(--color-overlay-light) !important;
3099
+ border-radius: 50%;
3100
+ }
3101
+ .rdp-button_previous:hover {
3102
+ background-color: var(--color-overlay-glass) !important;
3103
+ }
3104
+ .rdp-button_previous > svg {
3105
+ fill: var(--color-text-100) !important;
3106
+ width: 16px !important;
3107
+ height: 16px !important;
3108
+ }
3109
+ .rdp-button_next {
3110
+ background-color: var(--color-overlay-light) !important;
3111
+ border-radius: 50%;
3112
+ }
3113
+ .rdp-button_next:hover {
3114
+ background-color: var(--color-overlay-glass) !important;
3115
+ }
3116
+ .rdp-button_next > svg {
3117
+ fill: var(--color-text-100) !important;
3118
+ width: 16px !important;
3119
+ height: 16px !important;
3120
+ }
3121
+ .rdp-weekdays {
3122
+ display: flex;
3123
+ justify-content: space-between;
3124
+ }
3125
+ .rdp-weekday {
3126
+ padding: 16px 0 !important;
3127
+ font-size: 14px !important;
3128
+ font-weight: var(--font-weight-medium) !important;
3129
+ color: var(--color-text-80) !important;
3130
+ }
3131
+ .rdp-weeks {
3132
+ display: flex;
3133
+ flex-direction: column;
3134
+ gap: 4px;
3135
+ }
3136
+ .rdp-week {
3137
+ display: flex;
3138
+ justify-content: space-between;
3139
+ }
3140
+ .rdp-day {
3141
+ width: 24px !important;
3142
+ height: 24px !important;
3143
+ }
3144
+ .rdp-day_button {
3145
+ width: 24px !important;
3146
+ height: 24px !important;
3147
+ font-size: var(--text-xs) !important;
3148
+ color: var(--color-text-80) !important;
3149
+ }
3150
+ .rdp-day_button:disabled {
3151
+ color: var(--color-text-50) !important;
3152
+ }
3153
+ .rdp-day.rdp-today {
3154
+ outline: 1px solid var(--color-violet-700) !important;
3155
+ border-radius: 50% !important;
3156
+ }
3157
+ .rdp-day.rdp-selected {
3158
+ background: var(--seq-color-gradient-primary) !important;
3159
+ border-radius: 50% !important;
3160
+ }
3007
3161
  @keyframes fadeIn {
3008
3162
  0% {
3009
3163
  opacity: 0;
@@ -3294,4 +3448,4 @@ video::-webkit-media-controls {
3294
3448
  }
3295
3449
  }
3296
3450
  }
3297
- `;
3451
+ `;
@@ -2,7 +2,7 @@ export {
2
2
  FilterCondition,
3
3
  type MarketplaceWallet,
4
4
  } from '../react/_internal/api/builder.gen';
5
- export type * from './../react/queries/marketplaceConfig';
5
+ export type * from '../react/queries/market/marketplaceConfig';
6
6
  export * from './api-types';
7
7
  export * from './sdk-config';
8
8
  export * from './types';
@@ -1,3 +1,4 @@
1
+ export * from './mainModule';
1
2
  export * from './marketplace';
2
3
  export * from './primary-sale';
3
4
  export * from './token';
@@ -0,0 +1,158 @@
1
+ export const MAIN_MODULE_ABI = [
2
+ {
3
+ type: 'function',
4
+ name: 'nonce',
5
+ constant: true,
6
+ inputs: [],
7
+ outputs: [
8
+ {
9
+ type: 'uint256',
10
+ },
11
+ ],
12
+ payable: false,
13
+ stateMutability: 'view',
14
+ },
15
+ {
16
+ type: 'function',
17
+ name: 'readNonce',
18
+ constant: true,
19
+ inputs: [
20
+ {
21
+ type: 'uint256',
22
+ },
23
+ ],
24
+ outputs: [
25
+ {
26
+ type: 'uint256',
27
+ },
28
+ ],
29
+ payable: false,
30
+ stateMutability: 'view',
31
+ },
32
+ {
33
+ type: 'function',
34
+ name: 'updateImplementation',
35
+ constant: false,
36
+ inputs: [
37
+ {
38
+ type: 'address',
39
+ },
40
+ ],
41
+ outputs: [],
42
+ payable: false,
43
+ stateMutability: 'nonpayable',
44
+ },
45
+ {
46
+ type: 'function',
47
+ name: 'selfExecute',
48
+ constant: false,
49
+ inputs: [
50
+ {
51
+ components: [
52
+ {
53
+ type: 'bool',
54
+ name: 'delegateCall',
55
+ },
56
+ {
57
+ type: 'bool',
58
+ name: 'revertOnError',
59
+ },
60
+ {
61
+ type: 'uint256',
62
+ name: 'gasLimit',
63
+ },
64
+ {
65
+ type: 'address',
66
+ name: 'target',
67
+ },
68
+ {
69
+ type: 'uint256',
70
+ name: 'value',
71
+ },
72
+ {
73
+ type: 'bytes',
74
+ name: 'data',
75
+ },
76
+ ],
77
+ type: 'tuple[]',
78
+ },
79
+ ],
80
+ outputs: [],
81
+ payable: false,
82
+ stateMutability: 'nonpayable',
83
+ },
84
+ {
85
+ type: 'function',
86
+ name: 'execute',
87
+ constant: false,
88
+ inputs: [
89
+ {
90
+ components: [
91
+ {
92
+ type: 'bool',
93
+ name: 'delegateCall',
94
+ },
95
+ {
96
+ type: 'bool',
97
+ name: 'revertOnError',
98
+ },
99
+ {
100
+ type: 'uint256',
101
+ name: 'gasLimit',
102
+ },
103
+ {
104
+ type: 'address',
105
+ name: 'target',
106
+ },
107
+ {
108
+ type: 'uint256',
109
+ name: 'value',
110
+ },
111
+ {
112
+ type: 'bytes',
113
+ name: 'data',
114
+ },
115
+ ],
116
+ type: 'tuple[]',
117
+ },
118
+ {
119
+ type: 'uint256',
120
+ },
121
+ {
122
+ type: 'bytes',
123
+ },
124
+ ],
125
+ outputs: [],
126
+ payable: false,
127
+ stateMutability: 'nonpayable',
128
+ },
129
+ {
130
+ type: 'function',
131
+ name: 'createContract',
132
+ inputs: [
133
+ {
134
+ type: 'bytes',
135
+ },
136
+ ],
137
+ payable: true,
138
+ stateMutability: 'payable',
139
+ },
140
+ {
141
+ type: 'function',
142
+ name: 'setExtraImageHash',
143
+ constant: false,
144
+ inputs: [
145
+ {
146
+ type: 'bytes32',
147
+ name: 'imageHash',
148
+ },
149
+ {
150
+ type: 'uint256',
151
+ name: 'expiration',
152
+ },
153
+ ],
154
+ outputs: [],
155
+ payable: false,
156
+ stateMutability: 'nonpayable',
157
+ },
158
+ ];
@@ -1,8 +0,0 @@
1
- import { CollectibleCardProps } from "./types-D6LkVrF0.js";
2
- import * as react_jsx_runtime20 from "react/jsx-runtime";
3
-
4
- //#region src/react/ui/components/marketplace-collectible-card/CollectibleCard.d.ts
5
- declare function CollectibleCard(props: CollectibleCardProps): react_jsx_runtime20.JSX.Element | undefined;
6
- //#endregion
7
- export { CollectibleCard };
8
- //# sourceMappingURL=CollectibleCard-C2EWF0zo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-DuLKn__v.js","names":["browserQueryClient: QueryClient | undefined","projectAccessKey: string","jwtAuth?: string","headers: Record<string, string>"],"sources":["../src/react/_internal/api/get-query-client.ts","../src/react/_internal/api/laos-api.ts","../src/react/_internal/api/marketplace-api.ts","../src/react/_internal/api/query-keys.ts","../src/react/_internal/api/services.ts"],"sourcesContent":["import {\n\tdefaultShouldDehydrateQuery,\n\tQueryClient,\n} from '@tanstack/react-query';\nimport { hashFn } from 'wagmi/query';\n\nfunction makeQueryClient() {\n\treturn new QueryClient({\n\t\tdefaultOptions: {\n\t\t\tqueries: {\n\t\t\t\tstaleTime: 60 * 1000,\n\t\t\t\tqueryKeyHashFn: hashFn,\n\t\t\t},\n\t\t\tdehydrate: {\n\t\t\t\tshouldDehydrateQuery: (query) =>\n\t\t\t\t\tdefaultShouldDehydrateQuery(query) ||\n\t\t\t\t\tquery.state.status === 'pending',\n\t\t\t},\n\t\t},\n\t});\n}\n\nlet browserQueryClient: QueryClient | undefined;\n\nexport function getQueryClient() {\n\tif (typeof globalThis.document === 'undefined') {\n\t\treturn makeQueryClient();\n\t}\n\n\tif (!browserQueryClient) browserQueryClient = makeQueryClient();\n\treturn browserQueryClient;\n}\n","import type {\n\tGetTokenBalancesReturn,\n\tGetTokenSuppliesReturn,\n} from '@0xsequence/indexer';\n\nexport type SortOption = {\n\tcolumn: string;\n\torder: 'ASC' | 'DESC';\n};\n\nexport type PaginationOptions = {\n\tsort: SortOption[];\n};\n\nexport type TokenSuppliesParams = {\n\tchainId: string;\n\tcontractAddress: string;\n\tincludeMetadata?: boolean;\n\tpage?: PaginationOptions;\n};\n\nexport type TokenBalancesParams = {\n\tchainId: string;\n\taccountAddress: string;\n\tcontractAddress: string;\n\tincludeMetadata?: boolean;\n\tpage?: PaginationOptions;\n};\n\nexport class LaosAPI {\n\tprivate baseUrl = 'https://extensions.api.laosnetwork.io';\n\n\tconstructor(baseUrl?: string) {\n\t\tif (baseUrl) {\n\t\t\tthis.baseUrl = baseUrl;\n\t\t}\n\t}\n\n\tasync getTokenSupplies({\n\t\tchainId,\n\t\tcontractAddress,\n\t\tincludeMetadata = true,\n\t\tpage = {\n\t\t\tsort: [\n\t\t\t\t{\n\t\t\t\t\tcolumn: 'CREATED_AT',\n\t\t\t\t\torder: 'DESC',\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t}: TokenSuppliesParams): Promise<GetTokenSuppliesReturn> {\n\t\tconst response = await fetch(`${this.baseUrl}/token/GetTokenSupplies`, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: {\n\t\t\t\t'Content-Type': 'application/json',\n\t\t\t},\n\t\t\tbody: JSON.stringify({\n\t\t\t\tchainId,\n\t\t\t\tcontractAddress,\n\t\t\t\tincludeMetadata,\n\t\t\t\tpage,\n\t\t\t}),\n\t\t});\n\n\t\tif (!response.ok) {\n\t\t\tthrow new Error(`Failed to get token supplies: ${response.statusText}`);\n\t\t}\n\n\t\treturn await response.json();\n\t}\n\n\tasync getTokenBalances({\n\t\tchainId,\n\t\taccountAddress,\n\t\tcontractAddress,\n\t\tincludeMetadata = true,\n\t\tpage = {\n\t\t\tsort: [\n\t\t\t\t{\n\t\t\t\t\tcolumn: 'CREATED_AT',\n\t\t\t\t\torder: 'DESC',\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t}: TokenBalancesParams): Promise<GetTokenBalancesReturn> {\n\t\tconst response = await fetch(`${this.baseUrl}/token/GetTokenBalances`, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: {\n\t\t\t\t'Content-Type': 'application/json',\n\t\t\t},\n\t\t\tbody: JSON.stringify({\n\t\t\t\tchainId,\n\t\t\t\taccountAddress,\n\t\t\t\tcontractAddress,\n\t\t\t\tincludeMetadata,\n\t\t\t\tpage,\n\t\t\t}),\n\t\t});\n\n\t\tif (!response.ok) {\n\t\t\tthrow new Error(`Failed to get token balances: ${response.statusText}`);\n\t\t}\n\n\t\treturn await response.json();\n\t}\n}\n","import { Marketplace } from './marketplace.gen';\n\nexport class SequenceMarketplace extends Marketplace {\n\tconstructor(\n\t\thostname: string,\n\t\tpublic projectAccessKey: string,\n\t\tpublic jwtAuth?: string,\n\t) {\n\t\tsuper(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);\n\t\tthis.fetch = this._fetch;\n\t}\n\n\t_fetch = (input: RequestInfo, init?: RequestInit): Promise<Response> => {\n\t\tconst headers: Record<string, string> = {};\n\n\t\tconst jwtAuth = this.jwtAuth;\n\t\tconst projectAccessKey = this.projectAccessKey;\n\n\t\tif (jwtAuth && jwtAuth.length > 0) {\n\t\t\theaders.Authorization = `BEARER ${jwtAuth}`;\n\t\t}\n\n\t\tif (projectAccessKey && projectAccessKey.length > 0) {\n\t\t\theaders['X-Access-Key'] = projectAccessKey;\n\t\t}\n\n\t\tconst requestInit = init || {};\n\t\trequestInit.headers = { ...init?.headers, ...headers };\n\n\t\treturn fetch(input, requestInit);\n\t};\n}\n","// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass CollectableKeys {\n\tstatic all = ['collectable'] as const;\n\tstatic details = [...CollectableKeys.all, 'details'] as const;\n\tstatic lists = [...CollectableKeys.all, 'list'] as const;\n\tstatic floorOrders = [...CollectableKeys.all, 'floorOrders'] as const;\n\tstatic userBalances = [\n\t\t...CollectableKeys.all,\n\t\t...CollectableKeys.details,\n\t\t'userBalances',\n\t] as const;\n\tstatic royaltyPercentage = [\n\t\t...CollectableKeys.all,\n\t\t'royaltyPercentage',\n\t] as const;\n\tstatic highestOffers = [\n\t\t...CollectableKeys.all,\n\t\t...CollectableKeys.details,\n\t\t'highestOffers',\n\t] as const;\n\tstatic lowestListings = [\n\t\t...CollectableKeys.all,\n\t\t...CollectableKeys.details,\n\t\t'lowestListings',\n\t] as const;\n\tstatic offers = [...CollectableKeys.all, 'offers'] as const;\n\tstatic offersCount = [...CollectableKeys.all, 'offersCount'] as const;\n\tstatic listings = [...CollectableKeys.all, 'listings'] as const;\n\tstatic listingsCount = [...CollectableKeys.all, 'listingsCount'] as const;\n\tstatic listPrimarySaleItems = ['listPrimarySaleItems'] as const;\n\tstatic filter = [...CollectableKeys.all, 'filter'] as const;\n\tstatic counts = [...CollectableKeys.all, 'counts'] as const;\n\tstatic collectibleActivities = [\n\t\t...CollectableKeys.all,\n\t\t'collectibleActivities',\n\t] as const;\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass CollectionKeys {\n\tstatic all = ['collections'] as const;\n\tstatic list = [...CollectionKeys.all, 'list'] as const;\n\tstatic detail = [...CollectionKeys.all, 'detail'] as const;\n\tstatic collectionActivities = [\n\t\t...CollectionKeys.all,\n\t\t'collectionActivities',\n\t] as const;\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass BalanceQueries {\n\tstatic all = ['balances'] as const;\n\tstatic lists = [...BalanceQueries.all, 'tokenBalances'] as const;\n\tstatic collectionBalanceDetails = [\n\t\t...BalanceQueries.all,\n\t\t'collectionBalanceDetails',\n\t] as const;\n\tstatic inventory = ['inventory'] as const;\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass CheckoutKeys {\n\tstatic all = ['checkouts'] as const;\n\tstatic options = [...CheckoutKeys.all, 'options'] as const;\n\tstatic cartItems = [...CheckoutKeys.all, 'cartItems'] as const;\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass CurrencyKeys {\n\tstatic all = ['currencies'] as const;\n\tstatic lists = [...CurrencyKeys.all, 'list'] as const;\n\tstatic details = [...CurrencyKeys.all, 'details'] as const;\n\tstatic conversion = [...CurrencyKeys.all, 'conversion'] as const;\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass ConfigKeys {\n\tstatic all = ['configs'] as const;\n\tstatic marketplace = [...ConfigKeys.all, 'marketplace'] as const;\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass TokenKeys {\n\tstatic all = ['tokens'] as const;\n\tstatic metadata = [...TokenKeys.all, 'metadata'] as const;\n\tstatic supplies = [...TokenKeys.all, 'supplies'] as const;\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass TokenSuppliesKeys {\n\tstatic all = ['tokenSupplies'] as const;\n\tstatic maps = [...TokenSuppliesKeys.all, 'map'] as const;\n}\nexport const collectableKeys = CollectableKeys;\nexport const collectionKeys = CollectionKeys;\nexport const balanceQueries = BalanceQueries;\nexport const checkoutKeys = CheckoutKeys;\nexport const currencyKeys = CurrencyKeys;\nexport const configKeys = ConfigKeys;\nexport const tokenKeys = TokenKeys;\nexport const tokenSuppliesKeys = TokenSuppliesKeys;\n","import { SequenceAPIClient } from '@0xsequence/api';\nimport { SequenceIndexer } from '@0xsequence/indexer';\nimport { SequenceMetadata } from '@0xsequence/metadata';\nimport { stringTemplate } from '@0xsequence/network';\nimport type { ApiConfig, Env, SdkConfig } from '../../../types/sdk-config';\nimport { getNetwork } from '../../../utils/network';\nimport { BuilderAPI } from './builder-api';\nimport { SequenceMarketplace } from './marketplace-api';\n\nconst SERVICES = {\n\t// biome-ignore lint/suspicious/noTemplateCurlyInString: template placeholder for stringTemplate function\n\tsequenceApi: 'https://${prefix}api.sequence.app',\n\t// biome-ignore lint/suspicious/noTemplateCurlyInString: template placeholder for stringTemplate function\n\tmetadata: 'https://${prefix}metadata.sequence.app',\n\t// biome-ignore lint/suspicious/noTemplateCurlyInString: template placeholder for stringTemplate function\n\tindexer: 'https://${prefix}${network}-indexer.sequence.app',\n\t// biome-ignore lint/suspicious/noTemplateCurlyInString: template placeholder for stringTemplate function\n\tmarketplaceApi: 'https://${prefix}marketplace-api.sequence.app',\n\t// biome-ignore lint/suspicious/noTemplateCurlyInString: template placeholder for stringTemplate function\n\tbuilderRpcApi: 'https://${prefix}api.sequence.build',\n};\n\ntype ChainNameOrId = string | number;\n\nconst metadataURL = (env: Env = 'production') => {\n\tconst prefix = getPrefix(env);\n\treturn stringTemplate(SERVICES.metadata, { prefix });\n};\n\nconst indexerURL = (chain: ChainNameOrId, env: Env = 'production') => {\n\tconst prefix = getPrefix(env);\n\tconst network = getNetwork(chain).name;\n\treturn stringTemplate(SERVICES.indexer, { network: network, prefix });\n};\n\nconst marketplaceApiURL = (env: Env = 'production') => {\n\tconst prefix = getPrefix(env);\n\treturn stringTemplate(SERVICES.marketplaceApi, { prefix });\n};\n\nconst builderRpcApiURL = (env: Env = 'production') => {\n\tconst prefix = getPrefix(env);\n\treturn stringTemplate(SERVICES.builderRpcApi, { prefix });\n};\n\nexport const sequenceApiUrl = (env: Env = 'production') => {\n\tconst prefix = getPrefix(env);\n\treturn stringTemplate(SERVICES.sequenceApi, { prefix });\n};\n\nexport const getBuilderClient = (config: SdkConfig) => {\n\tconst overrides = config._internal?.overrides?.api?.builder;\n\tconst url =\n\t\toverrides?.url || builderRpcApiURL(overrides?.env || 'production');\n\tconst projectAccessKey = overrides?.accessKey || config.projectAccessKey;\n\treturn new BuilderAPI(url, projectAccessKey);\n};\n\nexport const getMetadataClient = (config: SdkConfig) => {\n\tconst overrides = config._internal?.overrides?.api?.metadata;\n\tconst url = overrides?.url || metadataURL(overrides?.env || 'production');\n\tconst projectAccessKey = overrides?.accessKey || config.projectAccessKey;\n\treturn new SequenceMetadata(url, projectAccessKey);\n};\n\nexport const getIndexerClient = (chain: ChainNameOrId, config: SdkConfig) => {\n\tconst overrides = config._internal?.overrides?.api?.indexer;\n\tconst url =\n\t\toverrides?.url || indexerURL(chain, overrides?.env || 'production');\n\tconst projectAccessKey = overrides?.accessKey || config.projectAccessKey;\n\treturn new SequenceIndexer(url, projectAccessKey);\n};\n\nexport const getMarketplaceClient = (config: SdkConfig) => {\n\tconst overrides = config._internal?.overrides?.api?.marketplace;\n\tconst url =\n\t\toverrides?.url || marketplaceApiURL(overrides?.env || 'production');\n\tconst projectAccessKey = overrides?.accessKey || config.projectAccessKey;\n\treturn new SequenceMarketplace(url, projectAccessKey);\n};\n\nexport const getSequenceApiClient = (config: SdkConfig) => {\n\tconst overrides = config._internal?.overrides?.api?.sequenceApi;\n\tconst url = overrides?.url || sequenceApiUrl(overrides?.env || 'production');\n\tconst projectAccessKey = overrides?.accessKey || config.projectAccessKey;\n\treturn new SequenceAPIClient(url, projectAccessKey);\n};\n\nconst getPrefix = (env: ApiConfig['env']) => {\n\tswitch (env) {\n\t\tcase 'development':\n\t\t\treturn 'dev-';\n\t\tcase 'production':\n\t\t\treturn '';\n\t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Aa,OAAO;AACxD,QAAO,IAAI,WAAW,KAAK,iBAAiB;;AAG7C,MAAa,qBAAqB,WAAsB;CACvD,MAAM,YAAY,OAAO,WAAW,WAAW,KAAK;CACpD,MAAM,MAAM,WAAW,OAAO,YAAY,WAAW,OAAO,aAAa;CACzE,MAAM,mBAAmB,WAAW,aAAa,OAAO;AACxD,QAAO,IAAI,iBAAiB,KAAK,iBAAiB;;AAGnD,MAAa,oBAAoB,OAAsB,WAAsB;CAC5E,MAAM,YAAY,OAAO,WAAW,WAAW,KAAK;CACpD,MAAM,MACL,WAAW,OAAO,WAAW,OAAO,WAAW,OAAO,aAAa;CACpE,MAAM,mBAAmB,WAAW,aAAa,OAAO;AACxD,QAAO,IAAI,gBAAgB,KAAK,iBAAiB;;AAGlD,MAAa,wBAAwB,WAAsB;CAC1D,MAAM,YAAY,OAAO,WAAW,WAAW,KAAK;CACpD,MAAM,MACL,WAAW,OAAO,kBAAkB,WAAW,OAAO,aAAa;CACpE,MAAM,mBAAmB,WAAW,aAAa,OAAO;AACxD,QAAO,IAAI,oBAAoB,KAAK,iBAAiB;;AAGtD,MAAa,wBAAwB,WAAsB;CAC1D,MAAM,YAAY,OAAO,WAAW,WAAW,KAAK;CACpD,MAAM,MAAM,WAAW,OAAO,eAAe,WAAW,OAAO,aAAa;CAC5E,MAAM,mBAAmB,WAAW,aAAa,OAAO;AACxD,QAAO,IAAI,kBAAkB,KAAK,iBAAiB;;AAGpD,MAAM,aAAa,QAA0B;AAC5C,SAAQ,KAAR;EACC,KAAK,cACJ,QAAO;EACR,KAAK,aACJ,QAAO;EACR,KAAK,OACJ,QAAO"}
@@ -1,31 +0,0 @@
1
- import { SdkConfig, ValuesOptional } from "./create-config-DV_dtaLt.js";
2
- import { StandardQueryOptions } from "./query-BG-MA1MB.js";
3
- import * as _tanstack_react_query290 from "@tanstack/react-query";
4
- import { PropertyFilter } from "@0xsequence/metadata";
5
-
6
- //#region src/react/queries/filters.d.ts
7
- interface FetchFiltersParams {
8
- chainId: number;
9
- collectionAddress: string;
10
- showAllFilters?: boolean;
11
- excludePropertyValues?: boolean;
12
- config: SdkConfig;
13
- }
14
- /**
15
- * Fetches collection filters from the Metadata API with optional marketplace filtering
16
- */
17
- declare function fetchFilters(params: FetchFiltersParams): Promise<PropertyFilter[]>;
18
- type FiltersQueryOptions = ValuesOptional<FetchFiltersParams> & {
19
- query?: StandardQueryOptions;
20
- };
21
- declare function filtersQueryOptions(params: FiltersQueryOptions): _tanstack_react_query290.OmitKeyof<_tanstack_react_query290.UseQueryOptions<PropertyFilter[], Error, PropertyFilter[], (string | FiltersQueryOptions)[]>, "queryFn"> & {
22
- queryFn?: _tanstack_react_query290.QueryFunction<PropertyFilter[], (string | FiltersQueryOptions)[], never> | undefined;
23
- } & {
24
- queryKey: (string | FiltersQueryOptions)[] & {
25
- [dataTagSymbol]: PropertyFilter[];
26
- [dataTagErrorSymbol]: Error;
27
- };
28
- };
29
- //#endregion
30
- export { FetchFiltersParams, FiltersQueryOptions, fetchFilters, filtersQueryOptions };
31
- //# sourceMappingURL=filters-zkMJaPey.d.ts.map