@0xsequence/marketplace-sdk 0.8.10 → 0.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (436) hide show
  1. package/.changeset/fluffy-jokes-lay.md +5 -0
  2. package/.changeset/wise-bugs-boil.md +8 -0
  3. package/CHANGELOG.md +182 -3
  4. package/dist/CartIcon-Bll1rbxv.js +141 -0
  5. package/dist/CartIcon-Bll1rbxv.js.map +1 -0
  6. package/dist/CollectibleCard-CLQTl0_6.d.ts +8 -0
  7. package/dist/_internal-69NEWNUE.js +34 -0
  8. package/dist/_internal-69NEWNUE.js.map +1 -0
  9. package/dist/abi-BKyRjVcZ.js +0 -0
  10. package/dist/{alien_swap-2B65TDGT.js → alien_swap-B_76IMma.js} +5 -5
  11. package/dist/alien_swap-B_76IMma.js.map +1 -0
  12. package/dist/api-1KFxYh7o.js +232 -0
  13. package/dist/api-1KFxYh7o.js.map +1 -0
  14. package/dist/{aqua-xyz-WMYQLAIS.js → aqua-xyz-CMN_TFY5.js} +5 -5
  15. package/dist/aqua-xyz-CMN_TFY5.js.map +1 -0
  16. package/dist/{aura-V22RV5OG.js → aura-Cye_TuHj.js} +5 -5
  17. package/dist/aura-Cye_TuHj.js.map +1 -0
  18. package/dist/{blur-GE5QOMCM.js → blur-DWDMyMpK.js} +5 -5
  19. package/dist/blur-DWDMyMpK.js.map +1 -0
  20. package/dist/builder-api-BQvzykoU.js +28 -0
  21. package/dist/builder-api-BQvzykoU.js.map +1 -0
  22. package/dist/builder-api-DoK3907S.d.ts +12 -0
  23. package/dist/builder.gen-CxP9NT1p.js +303 -0
  24. package/dist/builder.gen-CxP9NT1p.js.map +1 -0
  25. package/dist/{coinbase-NLHJMGAP.js → coinbase-ByA_XRB0.js} +5 -5
  26. package/dist/coinbase-ByA_XRB0.js.map +1 -0
  27. package/dist/{element-2LGTYYSP.js → element-b77CyXIZ.js} +5 -5
  28. package/dist/element-b77CyXIZ.js.map +1 -0
  29. package/dist/{foundation-BPN66ZTN.js → foundation-DbOrKP9Y.js} +5 -5
  30. package/dist/foundation-DbOrKP9Y.js.map +1 -0
  31. package/dist/index-1bezgsFq.d.ts +1129 -0
  32. package/dist/index-4-kfOFdx.d.ts +22 -0
  33. package/dist/index-BEYefG1G.d.ts +24 -0
  34. package/dist/index-BHiSG-Yi.d.ts +312 -0
  35. package/dist/index-BIMIpDiI.d.ts +188 -0
  36. package/dist/index-BQW0PUkQ.d.ts +3973 -0
  37. package/dist/index-BfH21xmk.d.ts +117 -0
  38. package/dist/index-BjIwVzc4.d.ts +1057 -0
  39. package/dist/index-C39K_8SG.d.ts +1 -0
  40. package/dist/index-CN8puQQJ.d.ts +24 -0
  41. package/dist/index-Cl7PQOGu.d.ts +102 -0
  42. package/dist/index-D5v5iluA.d.ts +809 -0
  43. package/dist/index-DXMfTZ1F.d.ts +7 -0
  44. package/dist/index-DafWjEb4.d.ts +65 -0
  45. package/dist/index-ij9f8GAA.d.ts +1 -0
  46. package/dist/index.css +384 -371
  47. package/dist/index.d.ts +10 -28
  48. package/dist/index.js +13 -105
  49. package/dist/{looks-rare-MZRSOPT4.js → looks-rare-C1VqNcSM.js} +5 -5
  50. package/dist/looks-rare-C1VqNcSM.js.map +1 -0
  51. package/dist/{magic-eden-PUBL6KWW.js → magic-eden-ea_AGCZr.js} +5 -5
  52. package/dist/magic-eden-ea_AGCZr.js.map +1 -0
  53. package/dist/{manifold-GA445YJ6.js → manifold-8y8J2sjT.js} +5 -5
  54. package/dist/manifold-8y8J2sjT.js.map +1 -0
  55. package/dist/marketplace-logos-CSeGcPW4.js +50 -0
  56. package/dist/marketplace-logos-CSeGcPW4.js.map +1 -0
  57. package/dist/marketplace-nwnZv9Cb.js +1913 -0
  58. package/dist/marketplace-nwnZv9Cb.js.map +1 -0
  59. package/dist/marketplace.gen-Dqk8vRmD.js +1068 -0
  60. package/dist/marketplace.gen-Dqk8vRmD.js.map +1 -0
  61. package/dist/marketplaceConfig-D2MYFqll.js +71 -0
  62. package/dist/marketplaceConfig-D2MYFqll.js.map +1 -0
  63. package/dist/{mintify-UMC5PTKC.js → mintify-LA68TzWg.js} +5 -5
  64. package/dist/mintify-LA68TzWg.js.map +1 -0
  65. package/dist/{nftx-AX3CY3IE.js → nftx-D3Tc8nzd.js} +5 -5
  66. package/dist/nftx-D3Tc8nzd.js.map +1 -0
  67. package/dist/{okx-GNVLAE2R.js → okx-hbqg6oIJ.js} +5 -5
  68. package/dist/okx-hbqg6oIJ.js.map +1 -0
  69. package/dist/{open-sea-KI43GVEB.js → open-sea-BccuK8-t.js} +5 -5
  70. package/dist/open-sea-BccuK8-t.js.map +1 -0
  71. package/dist/options-DCi6_23w.js +34 -0
  72. package/dist/options-DCi6_23w.js.map +1 -0
  73. package/dist/primary-sale-Cw95phYC.js +1264 -0
  74. package/dist/primary-sale-Cw95phYC.js.map +1 -0
  75. package/dist/queries-DPvwtnO7.js +486 -0
  76. package/dist/queries-DPvwtnO7.js.map +1 -0
  77. package/dist/{rarible-2J3MMZJ7.js → rarible-BgTwwj9g.js} +5 -5
  78. package/dist/rarible-BgTwwj9g.js.map +1 -0
  79. package/dist/react/_internal/api/index.d.ts +4 -86
  80. package/dist/react/_internal/api/index.js +7 -150
  81. package/dist/react/_internal/databeat/index.d.ts +45 -41
  82. package/dist/react/_internal/databeat/index.js +23 -27
  83. package/dist/react/_internal/index.d.ts +7 -24
  84. package/dist/react/_internal/index.js +9 -176
  85. package/dist/react/_internal/wagmi/index.d.ts +4 -18
  86. package/dist/react/_internal/wagmi/index.js +5 -14
  87. package/dist/react/hooks/index.d.ts +17 -3803
  88. package/dist/react/hooks/index.js +23 -157
  89. package/dist/react/hooks/options/index.d.ts +5 -7
  90. package/dist/react/hooks/options/index.js +11 -19
  91. package/dist/react/index.d.ts +37 -33
  92. package/dist/react/index.js +23 -199
  93. package/dist/react/queries/index.d.ts +8 -26
  94. package/dist/react/queries/index.js +18 -40
  95. package/dist/react/ssr/index.d.ts +19 -13
  96. package/dist/react/ssr/index.js +29 -27
  97. package/dist/react/ssr/index.js.map +1 -1
  98. package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +10 -0
  99. package/dist/react/ui/components/marketplace-collectible-card/index.js +23 -0
  100. package/dist/react/ui/components/marketplace-collectible-card/utils/index.d.ts +8 -0
  101. package/dist/react/ui/components/marketplace-collectible-card/utils/index.js +10 -0
  102. package/dist/react/ui/components/marketplace-logos/index.d.ts +26 -24
  103. package/dist/react/ui/components/marketplace-logos/index.js +3 -45
  104. package/dist/react/ui/icons/index.d.ts +1 -2
  105. package/dist/react/ui/icons/index.js +10 -14
  106. package/dist/react/ui/index.d.ts +10 -116
  107. package/dist/react/ui/index.js +23 -46
  108. package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +59 -33
  109. package/dist/react/ui/modals/_internal/components/actionModal/index.js +23 -31
  110. package/dist/react-BG7o4PId.js +8351 -0
  111. package/dist/react-BG7o4PId.js.map +1 -0
  112. package/dist/react-BbHBl6gg.css +80 -0
  113. package/dist/react-BbHBl6gg.css.map +1 -0
  114. package/dist/sdk-config-DJzxVPld.d.ts +1535 -0
  115. package/dist/{sequence-TGLUFEPQ.js → sequence-Do3kzb4J.js} +5 -5
  116. package/dist/sequence-Do3kzb4J.js.map +1 -0
  117. package/dist/src-Dz2CfBL0.js +8 -0
  118. package/dist/src-Dz2CfBL0.js.map +1 -0
  119. package/dist/{sudo-swap-M2O6E3TE.js → sudo-swap-B6vPKxBz.js} +5 -5
  120. package/dist/sudo-swap-B6vPKxBz.js.map +1 -0
  121. package/dist/{super-rare-UU2U4LIN.js → super-rare-eCm1SE6O.js} +5 -5
  122. package/dist/super-rare-eCm1SE6O.js.map +1 -0
  123. package/dist/token-CO5llIla.js +1312 -0
  124. package/dist/token-CO5llIla.js.map +1 -0
  125. package/dist/transaction-CcVViHEL.js +97 -0
  126. package/dist/transaction-CcVViHEL.js.map +1 -0
  127. package/dist/types/index.d.ts +3 -12
  128. package/dist/types/index.js +5 -44
  129. package/dist/types-BIJOaL4j.d.ts +68 -0
  130. package/dist/types-DwWE6xOF.js +13 -0
  131. package/dist/types-DwWE6xOF.js.map +1 -0
  132. package/dist/useCollection-C-mclKU0.d.ts +66 -0
  133. package/dist/utils/abi/index.d.ts +5 -3
  134. package/dist/utils/abi/index.js +6 -26
  135. package/dist/utils/abi/marketplace/index.d.ts +2 -805
  136. package/dist/utils/abi/marketplace/index.js +3 -11
  137. package/dist/utils/abi/primary-sale/index.d.ts +2 -1054
  138. package/dist/utils/abi/primary-sale/index.js +3 -9
  139. package/dist/utils/abi/token/index.d.ts +2 -1125
  140. package/dist/utils/abi/token/index.js +3 -11
  141. package/dist/utils/index.d.ts +8 -91
  142. package/dist/utils/index.js +11 -56
  143. package/dist/utils-BFdxaToy.js +216 -0
  144. package/dist/utils-BFdxaToy.js.map +1 -0
  145. package/dist/utils-Cat9_pef.js +44 -0
  146. package/dist/utils-Cat9_pef.js.map +1 -0
  147. package/dist/wagmi-DRctYEk6.js +159 -0
  148. package/dist/wagmi-DRctYEk6.js.map +1 -0
  149. package/dist/{x2y2-3W5BBMZC.js → x2y2-DD17tT91.js} +5 -5
  150. package/dist/x2y2-DD17tT91.js.map +1 -0
  151. package/dist/{zora-6EY6FUH6.js → zora-BpSG9UzS.js} +5 -5
  152. package/dist/zora-BpSG9UzS.js.map +1 -0
  153. package/package.json +21 -19
  154. package/src/index.ts +0 -1
  155. package/src/react/_internal/api/__mocks__/builder.msw.ts +157 -80
  156. package/src/react/_internal/api/__mocks__/indexer.msw.ts +1 -0
  157. package/src/react/_internal/api/builder-api.ts +2 -2
  158. package/src/react/_internal/api/builder.gen.ts +666 -112
  159. package/src/react/_internal/api/marketplace.gen.ts +2421 -1315
  160. package/src/react/_internal/api/services.ts +42 -49
  161. package/src/react/_internal/types.ts +1 -13
  162. package/src/react/_internal/wagmi/__tests__/create-config.test.ts +102 -87
  163. package/src/react/_internal/wagmi/create-config.ts +15 -6
  164. package/src/react/_internal/wagmi/get-connectors.ts +29 -21
  165. package/src/react/hooks/__tests__/__snapshots__/useListCollections.test.tsx.snap +273 -0
  166. package/src/react/hooks/__tests__/__snapshots__/useMarketplaceConfig.test.tsx.snap +122 -82
  167. package/src/react/hooks/__tests__/useAutoSelectFeeOption.test.tsx +7 -4
  168. package/src/react/hooks/__tests__/useCheckoutOptionsSalesContract.test.tsx +225 -0
  169. package/src/react/hooks/__tests__/useCollectionDetailsPolling.test.tsx +3 -3
  170. package/src/react/hooks/__tests__/useFilters.test.tsx +0 -16
  171. package/src/react/hooks/__tests__/useGenerateCancelTransaction.test.tsx +2 -3
  172. package/src/react/hooks/__tests__/useHighestOffer.test.tsx +0 -16
  173. package/src/react/hooks/__tests__/useInventory.test.tsx +6 -42
  174. package/src/react/hooks/__tests__/useListCollections.test.tsx +24 -57
  175. package/src/react/hooks/__tests__/{useCurrencies.test.tsx → useMarketCurrencies.test.tsx} +21 -15
  176. package/src/react/hooks/__tests__/useMarketplaceConfig.test.tsx +2 -59
  177. package/src/react/hooks/index.ts +9 -1
  178. package/src/react/hooks/useBalanceOfCollectible.tsx +14 -8
  179. package/src/react/hooks/useCancelTransactionSteps.tsx +5 -1
  180. package/src/react/hooks/useCheckoutOptions.tsx +2 -1
  181. package/src/react/hooks/useCheckoutOptionsSalesContract.tsx +67 -0
  182. package/src/react/hooks/useCollectionDetails.tsx +22 -7
  183. package/src/react/hooks/useConvertPriceToUSD.tsx +1 -1
  184. package/src/react/hooks/useCountListingsForCollectible.tsx +5 -4
  185. package/src/react/hooks/useCountOfCollectables.tsx +10 -7
  186. package/src/react/hooks/useCountOffersForCollectible.tsx +5 -4
  187. package/src/react/hooks/useCurrency.tsx +2 -2
  188. package/src/react/hooks/useERC721SaleMintedTokens.tsx +67 -0
  189. package/src/react/hooks/useFilters.tsx +14 -22
  190. package/src/react/hooks/useFloorOrder.tsx +5 -2
  191. package/src/react/hooks/useGenerateCancelTransaction.tsx +13 -6
  192. package/src/react/hooks/useGenerateListingTransaction.tsx +15 -5
  193. package/src/react/hooks/useGenerateOfferTransaction.tsx +15 -6
  194. package/src/react/hooks/useGenerateSellTransaction.tsx +15 -6
  195. package/src/react/hooks/useGetTokenSuppliesMap.ts +33 -0
  196. package/src/react/hooks/useInventory.tsx +7 -4
  197. package/src/react/hooks/useList1155ShopCardData.tsx +130 -0
  198. package/src/react/hooks/useList721ShopCardData.tsx +130 -0
  199. package/src/react/hooks/useListBalances.tsx +7 -8
  200. package/src/react/hooks/useListCollectibleActivities.tsx +2 -1
  201. package/src/react/hooks/useListCollectibles.tsx +1 -12
  202. package/src/react/hooks/useListCollectiblesPaginated.tsx +8 -5
  203. package/src/react/hooks/useListCollectionActivities.tsx +2 -1
  204. package/src/react/hooks/useListCollections.tsx +14 -76
  205. package/src/react/hooks/useListListingsForCollectible.tsx +2 -1
  206. package/src/react/hooks/useListMarketCardData.tsx +157 -0
  207. package/src/react/hooks/useListOffersForCollectible.tsx +2 -1
  208. package/src/react/hooks/useListPrimarySaleItems.ts +42 -0
  209. package/src/react/hooks/useMarketCurrencies.tsx +8 -0
  210. package/src/react/hooks/useMarketplaceConfig.tsx +0 -2
  211. package/src/react/hooks/useTokenSaleDetailsBatch.tsx +134 -0
  212. package/src/react/queries/highestOffer.ts +6 -4
  213. package/src/react/queries/index.ts +1 -0
  214. package/src/react/queries/inventory.ts +36 -2
  215. package/src/react/queries/listBalances.ts +14 -30
  216. package/src/react/queries/listCollectibles.ts +60 -7
  217. package/src/react/queries/listCollections.ts +124 -0
  218. package/src/react/queries/listTokenMetadata.ts +6 -1
  219. package/src/react/queries/lowestListing.ts +6 -4
  220. package/src/react/queries/marketCurrencies.ts +81 -0
  221. package/src/react/queries/marketplaceConfig.ts +82 -79
  222. package/src/react/ssr/__tests__/__snapshots__/create-ssr-client.test.ts.snap +122 -82
  223. package/src/react/ssr/__tests__/create-ssr-client.test.ts +0 -3
  224. package/src/react/ssr/create-ssr-client.ts +5 -10
  225. package/src/react/ui/components/_internals/action-button/ActionButton.tsx +47 -13
  226. package/src/react/ui/components/_internals/action-button/__tests__/ActionButtonBody.test.tsx +1 -1
  227. package/src/react/ui/components/_internals/action-button/__tests__/NonOwnerActions.test.tsx +28 -15
  228. package/src/react/ui/components/_internals/action-button/__tests__/OwnerActions.test.tsx +1 -1
  229. package/src/react/ui/components/_internals/action-button/__tests__/useActionButtonLogic.test.tsx +1 -1
  230. package/src/react/ui/components/_internals/action-button/components/ActionButtonBody.tsx +1 -1
  231. package/src/react/ui/components/_internals/action-button/components/NonOwnerActions.tsx +78 -15
  232. package/src/react/ui/components/_internals/action-button/components/OwnerActions.tsx +1 -1
  233. package/src/react/ui/components/_internals/action-button/hooks/useActionButtonLogic.ts +1 -1
  234. package/src/react/ui/components/marketplace-collectible-card/CollectibleCard.tsx +17 -0
  235. package/src/react/ui/components/marketplace-collectible-card/CollectibleCardSkeleton.tsx +24 -0
  236. package/src/react/ui/components/marketplace-collectible-card/Footer.tsx +231 -0
  237. package/src/react/ui/components/marketplace-collectible-card/components/ActionButtonWrapper.tsx +76 -0
  238. package/src/react/ui/components/marketplace-collectible-card/components/BaseCard.tsx +55 -0
  239. package/src/react/ui/components/marketplace-collectible-card/index.ts +3 -0
  240. package/src/react/ui/components/marketplace-collectible-card/types.ts +95 -0
  241. package/src/react/ui/components/marketplace-collectible-card/utils/formatPrice.ts +45 -0
  242. package/src/react/ui/components/marketplace-collectible-card/utils/index.ts +2 -0
  243. package/src/react/ui/components/marketplace-collectible-card/utils/supplyStatus.ts +39 -0
  244. package/src/react/ui/components/marketplace-collectible-card/variants/MarketCard.tsx +124 -0
  245. package/src/react/ui/components/marketplace-collectible-card/variants/ShopCard.tsx +105 -0
  246. package/src/react/ui/components/{collectible-card/media → media}/Media.tsx +52 -30
  247. package/src/react/ui/components/{collectible-card/media → media}/MediaSkeleton.tsx +1 -1
  248. package/src/react/ui/components/{collectible-card/media → media}/types.ts +4 -1
  249. package/src/react/ui/index.ts +5 -2
  250. package/src/react/ui/modals/BuyModal/__tests__/BuyModalRouter.test.tsx +554 -0
  251. package/src/react/ui/modals/BuyModal/__tests__/ERC1155ShopModal.test.tsx +385 -0
  252. package/src/react/ui/modals/BuyModal/__tests__/ERC721ShopModal.test.tsx +272 -0
  253. package/src/react/ui/modals/BuyModal/__tests__/Modal.test.tsx.bak +112 -0
  254. package/src/react/ui/modals/BuyModal/__tests__/Modal1155.test.tsx +117 -13
  255. package/src/react/ui/modals/BuyModal/__tests__/store.test.ts +10 -7
  256. package/src/react/ui/modals/BuyModal/components/BuyModalRouter.tsx +157 -0
  257. package/src/react/ui/modals/BuyModal/components/ERC1155BuyModal.tsx +136 -0
  258. package/src/react/ui/modals/BuyModal/components/ERC1155QuantityModal.tsx +184 -0
  259. package/src/react/ui/modals/BuyModal/components/ERC1155ShopModal.tsx +121 -0
  260. package/src/react/ui/modals/BuyModal/components/ERC721BuyModal.tsx +85 -0
  261. package/src/react/ui/modals/BuyModal/components/ERC721ShopModal.tsx +86 -0
  262. package/src/react/ui/modals/BuyModal/components/Modal.tsx +14 -0
  263. package/src/react/ui/modals/BuyModal/components/types.ts +8 -0
  264. package/src/react/ui/modals/BuyModal/hooks/__tests__/useCheckoutOptions.test.tsx +4 -4
  265. package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC1155Checkout.test.tsx +379 -0
  266. package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC721SalePaymentParams.test.tsx +253 -0
  267. package/src/react/ui/modals/BuyModal/hooks/__tests__/{useFees.test.tsx → useMarketPlatformFee.test.tsx} +37 -28
  268. package/src/react/ui/modals/BuyModal/hooks/useCheckoutOptions.ts +62 -44
  269. package/src/react/ui/modals/BuyModal/hooks/useERC1155Checkout.ts +73 -0
  270. package/src/react/ui/modals/BuyModal/hooks/useERC721SalePaymentParams.ts +196 -0
  271. package/src/react/ui/modals/BuyModal/hooks/useLoadData.ts +74 -18
  272. package/src/react/ui/modals/BuyModal/hooks/useMarketPlatformFee.ts +53 -0
  273. package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +27 -12
  274. package/src/react/ui/modals/BuyModal/store.ts +147 -13
  275. package/src/react/ui/modals/CreateListingModal/Modal.tsx +3 -5
  276. package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +5 -3
  277. package/src/react/ui/modals/CreateListingModal/hooks/useGetTokenApproval.ts +2 -1
  278. package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +7 -5
  279. package/src/react/ui/modals/MakeOfferModal/Modal.tsx +2 -3
  280. package/src/react/ui/modals/MakeOfferModal/hooks/useGetTokenApproval.tsx +2 -1
  281. package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +4 -3
  282. package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +5 -3
  283. package/src/react/ui/modals/SellModal/Modal.tsx +0 -1
  284. package/src/react/ui/modals/SellModal/hooks/useGetTokenApproval.tsx +4 -3
  285. package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +8 -5
  286. package/src/react/ui/modals/SuccessfulPurchaseModal/__tests__/Modal.test.tsx +11 -7
  287. package/src/react/ui/modals/SuccessfulPurchaseModal/index.tsx +34 -28
  288. package/src/react/ui/modals/SuccessfulPurchaseModal/store.ts +71 -0
  289. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +0 -1
  290. package/src/react/ui/modals/TransferModal/index.tsx +0 -1
  291. package/src/react/ui/modals/_internal/components/actionModal/ActionModal.test.tsx +0 -1
  292. package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +105 -108
  293. package/src/react/ui/modals/_internal/components/actionModal/store.ts +45 -12
  294. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +2 -2
  295. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +7 -6
  296. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/__tests__/SelectWaasFeeOptions.test.tsx +13 -7
  297. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/index.tsx +3 -5
  298. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/useWaasFeeOptionManager.tsx +5 -3
  299. package/src/react/ui/modals/_internal/components/switchChainModal/__tests__/SwitchChainModal.test.tsx +12 -8
  300. package/src/react/ui/modals/_internal/components/switchChainModal/index.tsx +35 -33
  301. package/src/react/ui/modals/_internal/components/switchChainModal/store.ts +61 -32
  302. package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +2 -2
  303. package/src/react/ui/modals/_internal/hooks/useSelectWaasFeeOptions.ts +2 -12
  304. package/src/react/ui/modals/modal-provider.tsx +1 -1
  305. package/src/types/buyModalErrors.ts +438 -0
  306. package/src/types/index.ts +1 -3
  307. package/src/types/new-marketplace-types.ts +104 -0
  308. package/src/types/sdk-config.ts +22 -12
  309. package/src/types/types.ts +17 -0
  310. package/src/utils/_internal/error/transaction.ts +36 -1
  311. package/tsconfig.json +1 -1
  312. package/tsconfig.tsbuildinfo +1 -1
  313. package/tsdown.config.ts +25 -0
  314. package/.ctirc +0 -32
  315. package/dist/alien_swap-2B65TDGT.js.map +0 -1
  316. package/dist/aqua-xyz-WMYQLAIS.js.map +0 -1
  317. package/dist/aura-V22RV5OG.js.map +0 -1
  318. package/dist/blur-GE5QOMCM.js.map +0 -1
  319. package/dist/chunk-2PSNAIAT.js +0 -1
  320. package/dist/chunk-2PSNAIAT.js.map +0 -1
  321. package/dist/chunk-5C6ZZ6WX.js +0 -130
  322. package/dist/chunk-5C6ZZ6WX.js.map +0 -1
  323. package/dist/chunk-5O44EPXZ.js +0 -207
  324. package/dist/chunk-5O44EPXZ.js.map +0 -1
  325. package/dist/chunk-6CTFVBKU.js +0 -1
  326. package/dist/chunk-6CTFVBKU.js.map +0 -1
  327. package/dist/chunk-7F27CJZW.js +0 -1544
  328. package/dist/chunk-7F27CJZW.js.map +0 -1
  329. package/dist/chunk-A7BVFBWB.js +0 -81
  330. package/dist/chunk-A7BVFBWB.js.map +0 -1
  331. package/dist/chunk-D7RVSZAQ.js +0 -332
  332. package/dist/chunk-D7RVSZAQ.js.map +0 -1
  333. package/dist/chunk-DWTLVJAW.js +0 -42
  334. package/dist/chunk-DWTLVJAW.js.map +0 -1
  335. package/dist/chunk-FGM57QUU.js +0 -128
  336. package/dist/chunk-FGM57QUU.js.map +0 -1
  337. package/dist/chunk-FUM4OGOQ.js +0 -1027
  338. package/dist/chunk-FUM4OGOQ.js.map +0 -1
  339. package/dist/chunk-JKCF7HEA.js +0 -1
  340. package/dist/chunk-JKCF7HEA.js.map +0 -1
  341. package/dist/chunk-KTST7ORH.js +0 -53
  342. package/dist/chunk-KTST7ORH.js.map +0 -1
  343. package/dist/chunk-M6NJ73Y5.js +0 -154
  344. package/dist/chunk-M6NJ73Y5.js.map +0 -1
  345. package/dist/chunk-N7BPFK46.js +0 -1
  346. package/dist/chunk-N7BPFK46.js.map +0 -1
  347. package/dist/chunk-NX52D7NX.js +0 -135
  348. package/dist/chunk-NX52D7NX.js.map +0 -1
  349. package/dist/chunk-O34GCB47.js +0 -32
  350. package/dist/chunk-O34GCB47.js.map +0 -1
  351. package/dist/chunk-Q3ECVC4F.js +0 -811
  352. package/dist/chunk-Q3ECVC4F.js.map +0 -1
  353. package/dist/chunk-RVIUUJTP.js +0 -76
  354. package/dist/chunk-RVIUUJTP.js.map +0 -1
  355. package/dist/chunk-SXVUTSMT.js +0 -2895
  356. package/dist/chunk-SXVUTSMT.js.map +0 -1
  357. package/dist/chunk-UJSF7PSC.js +0 -5728
  358. package/dist/chunk-UJSF7PSC.js.map +0 -1
  359. package/dist/chunk-WH5BZC7W.js +0 -38
  360. package/dist/chunk-WH5BZC7W.js.map +0 -1
  361. package/dist/chunk-XX4EVWBF.js +0 -1292
  362. package/dist/chunk-XX4EVWBF.js.map +0 -1
  363. package/dist/chunk-Y2HJO2VY.js +0 -432
  364. package/dist/chunk-Y2HJO2VY.js.map +0 -1
  365. package/dist/chunk-Y63BOO6M.js +0 -11
  366. package/dist/chunk-Y63BOO6M.js.map +0 -1
  367. package/dist/coinbase-NLHJMGAP.js.map +0 -1
  368. package/dist/create-config-CAQcvjl6.d.ts +0 -8
  369. package/dist/element-2LGTYYSP.js.map +0 -1
  370. package/dist/foundation-BPN66ZTN.js.map +0 -1
  371. package/dist/get-query-client-D46hbjk6.d.ts +0 -5
  372. package/dist/index-MlUK9AQE.d.ts +0 -62
  373. package/dist/index.css.map +0 -1
  374. package/dist/index.js.map +0 -1
  375. package/dist/listTokenMetadata-DO4ChDjn.d.ts +0 -203
  376. package/dist/looks-rare-MZRSOPT4.js.map +0 -1
  377. package/dist/magic-eden-PUBL6KWW.js.map +0 -1
  378. package/dist/manifold-GA445YJ6.js.map +0 -1
  379. package/dist/marketplace.gen-DQzWciwC.d.ts +0 -1072
  380. package/dist/marketplaceConfig-D0MXemEl.d.ts +0 -17
  381. package/dist/mintify-UMC5PTKC.js.map +0 -1
  382. package/dist/nftx-AX3CY3IE.js.map +0 -1
  383. package/dist/okx-GNVLAE2R.js.map +0 -1
  384. package/dist/open-sea-KI43GVEB.js.map +0 -1
  385. package/dist/rarible-2J3MMZJ7.js.map +0 -1
  386. package/dist/react/_internal/api/index.js.map +0 -1
  387. package/dist/react/_internal/databeat/index.js.map +0 -1
  388. package/dist/react/_internal/index.js.map +0 -1
  389. package/dist/react/_internal/wagmi/index.js.map +0 -1
  390. package/dist/react/hooks/index.js.map +0 -1
  391. package/dist/react/hooks/options/index.js.map +0 -1
  392. package/dist/react/index.css +0 -2764
  393. package/dist/react/index.css.map +0 -1
  394. package/dist/react/index.js.map +0 -1
  395. package/dist/react/queries/index.js.map +0 -1
  396. package/dist/react/ui/components/collectible-card/index.css +0 -2764
  397. package/dist/react/ui/components/collectible-card/index.css.map +0 -1
  398. package/dist/react/ui/components/collectible-card/index.d.ts +0 -70
  399. package/dist/react/ui/components/collectible-card/index.js +0 -32
  400. package/dist/react/ui/components/collectible-card/index.js.map +0 -1
  401. package/dist/react/ui/components/marketplace-logos/index.js.map +0 -1
  402. package/dist/react/ui/icons/index.js.map +0 -1
  403. package/dist/react/ui/index.css +0 -2764
  404. package/dist/react/ui/index.css.map +0 -1
  405. package/dist/react/ui/index.js.map +0 -1
  406. package/dist/react/ui/modals/_internal/components/actionModal/index.js.map +0 -1
  407. package/dist/sdk-config-onSPBxJj.d.ts +0 -134
  408. package/dist/sequence-TGLUFEPQ.js.map +0 -1
  409. package/dist/services-CMSb9ipU.d.ts +0 -23
  410. package/dist/sudo-swap-M2O6E3TE.js.map +0 -1
  411. package/dist/super-rare-UU2U4LIN.js.map +0 -1
  412. package/dist/types/index.js.map +0 -1
  413. package/dist/types-B8xzPEKX.d.ts +0 -68
  414. package/dist/utils/abi/index.js.map +0 -1
  415. package/dist/utils/abi/marketplace/index.js.map +0 -1
  416. package/dist/utils/abi/primary-sale/index.js.map +0 -1
  417. package/dist/utils/abi/token/index.js.map +0 -1
  418. package/dist/utils/index.js.map +0 -1
  419. package/dist/x2y2-3W5BBMZC.js.map +0 -1
  420. package/dist/zora-6EY6FUH6.js.map +0 -1
  421. package/postcss.config.mjs +0 -5
  422. package/src/react/hooks/__tests__/__snapshots__/useRoyaltyPercentage.test.tsx.snap +0 -8
  423. package/src/react/hooks/useCurrencies.tsx +0 -77
  424. package/src/react/ui/components/collectible-card/CollectibleCard.tsx +0 -170
  425. package/src/react/ui/components/collectible-card/Footer.tsx +0 -157
  426. package/src/react/ui/components/collectible-card/__tests__/CollectibleCard.test.tsx +0 -94
  427. package/src/react/ui/components/collectible-card/__tests__/Footer.test.tsx +0 -136
  428. package/src/react/ui/components/collectible-card/__tests__/Media.test.tsx +0 -224
  429. package/src/react/ui/components/collectible-card/index.ts +0 -2
  430. package/src/react/ui/modals/BuyModal/ERC1155QuantityModal.tsx +0 -124
  431. package/src/react/ui/modals/BuyModal/Modal.tsx +0 -124
  432. package/src/react/ui/modals/BuyModal/__tests__/Modal.test.tsx +0 -104
  433. package/src/react/ui/modals/BuyModal/hooks/useFees.ts +0 -38
  434. package/src/react/ui/modals/SuccessfulPurchaseModal/_store.ts +0 -72
  435. package/tsup.config.ts +0 -23
  436. /package/src/react/ui/components/{collectible-card/media → media}/utils.ts +0 -0
@@ -1,1544 +0,0 @@
1
- import {
2
- MissingConfigError
3
- } from "./chunk-NX52D7NX.js";
4
-
5
- // src/react/_internal/api/get-query-client.ts
6
- import {
7
- QueryClient,
8
- defaultShouldDehydrateQuery
9
- } from "@tanstack/react-query";
10
- import { hashFn } from "wagmi/query";
11
- function makeQueryClient() {
12
- return new QueryClient({
13
- defaultOptions: {
14
- queries: {
15
- staleTime: 60 * 1e3,
16
- queryKeyHashFn: hashFn
17
- },
18
- dehydrate: {
19
- shouldDehydrateQuery: (query) => defaultShouldDehydrateQuery(query) || query.state.status === "pending"
20
- }
21
- }
22
- });
23
- }
24
- var browserQueryClient = void 0;
25
- function getQueryClient() {
26
- if (typeof globalThis.document === "undefined") {
27
- return makeQueryClient();
28
- }
29
- if (!browserQueryClient) browserQueryClient = makeQueryClient();
30
- return browserQueryClient;
31
- }
32
-
33
- // src/react/_internal/api/marketplace.gen.ts
34
- var WebrpcHeader = "Webrpc";
35
- var WebrpcHeaderValue = "webrpc@v0.25.1;gen-typescript@v0.17.0;marketplace-api@v0.0.0-27c5a642f4eb523c04af2f1a45e4a2ab1f370fcd";
36
- var WebRPCVersion = "v1";
37
- var WebRPCSchemaVersion = "";
38
- var WebRPCSchemaHash = "27c5a642f4eb523c04af2f1a45e4a2ab1f370fcd";
39
- function VersionFromHeader(headers) {
40
- const headerValue = headers.get(WebrpcHeader);
41
- if (!headerValue) {
42
- return {
43
- webrpcGenVersion: "",
44
- codeGenName: "",
45
- codeGenVersion: "",
46
- schemaName: "",
47
- schemaVersion: ""
48
- };
49
- }
50
- return parseWebrpcGenVersions(headerValue);
51
- }
52
- function parseWebrpcGenVersions(header) {
53
- const versions = header.split(";");
54
- if (versions.length < 3) {
55
- return {
56
- webrpcGenVersion: "",
57
- codeGenName: "",
58
- codeGenVersion: "",
59
- schemaName: "",
60
- schemaVersion: ""
61
- };
62
- }
63
- const [_, webrpcGenVersion] = versions[0].split("@");
64
- const [codeGenName, codeGenVersion] = versions[1].split("@");
65
- const [schemaName, schemaVersion] = versions[2].split("@");
66
- return {
67
- webrpcGenVersion: webrpcGenVersion ?? "",
68
- codeGenName: codeGenName ?? "",
69
- codeGenVersion: codeGenVersion ?? "",
70
- schemaName: schemaName ?? "",
71
- schemaVersion: schemaVersion ?? ""
72
- };
73
- }
74
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
75
- SortOrder2["DESC"] = "DESC";
76
- SortOrder2["ASC"] = "ASC";
77
- return SortOrder2;
78
- })(SortOrder || {});
79
- var PropertyType = /* @__PURE__ */ ((PropertyType2) => {
80
- PropertyType2["INT"] = "INT";
81
- PropertyType2["STRING"] = "STRING";
82
- PropertyType2["ARRAY"] = "ARRAY";
83
- PropertyType2["GENERIC"] = "GENERIC";
84
- return PropertyType2;
85
- })(PropertyType || {});
86
- var MarketplaceKind = /* @__PURE__ */ ((MarketplaceKind2) => {
87
- MarketplaceKind2["unknown"] = "unknown";
88
- MarketplaceKind2["sequence_marketplace_v1"] = "sequence_marketplace_v1";
89
- MarketplaceKind2["sequence_marketplace_v2"] = "sequence_marketplace_v2";
90
- MarketplaceKind2["blur"] = "blur";
91
- MarketplaceKind2["zerox"] = "zerox";
92
- MarketplaceKind2["opensea"] = "opensea";
93
- MarketplaceKind2["looks_rare"] = "looks_rare";
94
- MarketplaceKind2["x2y2"] = "x2y2";
95
- MarketplaceKind2["alienswap"] = "alienswap";
96
- MarketplaceKind2["payment_processor"] = "payment_processor";
97
- MarketplaceKind2["mintify"] = "mintify";
98
- MarketplaceKind2["magic_eden"] = "magic_eden";
99
- return MarketplaceKind2;
100
- })(MarketplaceKind || {});
101
- var OrderbookKind = /* @__PURE__ */ ((OrderbookKind2) => {
102
- OrderbookKind2["unknown"] = "unknown";
103
- OrderbookKind2["sequence_marketplace_v1"] = "sequence_marketplace_v1";
104
- OrderbookKind2["sequence_marketplace_v2"] = "sequence_marketplace_v2";
105
- OrderbookKind2["blur"] = "blur";
106
- OrderbookKind2["opensea"] = "opensea";
107
- OrderbookKind2["looks_rare"] = "looks_rare";
108
- OrderbookKind2["reservoir"] = "reservoir";
109
- OrderbookKind2["x2y2"] = "x2y2";
110
- return OrderbookKind2;
111
- })(OrderbookKind || {});
112
- var SourceKind = /* @__PURE__ */ ((SourceKind2) => {
113
- SourceKind2["unknown"] = "unknown";
114
- SourceKind2["external"] = "external";
115
- SourceKind2["sequence_marketplace_v1"] = "sequence_marketplace_v1";
116
- SourceKind2["sequence_marketplace_v2"] = "sequence_marketplace_v2";
117
- return SourceKind2;
118
- })(SourceKind || {});
119
- var OrderSide = /* @__PURE__ */ ((OrderSide2) => {
120
- OrderSide2["unknown"] = "unknown";
121
- OrderSide2["listing"] = "listing";
122
- OrderSide2["offer"] = "offer";
123
- return OrderSide2;
124
- })(OrderSide || {});
125
- var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
126
- OrderStatus2["unknown"] = "unknown";
127
- OrderStatus2["active"] = "active";
128
- OrderStatus2["inactive"] = "inactive";
129
- OrderStatus2["expired"] = "expired";
130
- OrderStatus2["cancelled"] = "cancelled";
131
- OrderStatus2["filled"] = "filled";
132
- OrderStatus2["decimals_missing"] = "decimals_missing";
133
- return OrderStatus2;
134
- })(OrderStatus || {});
135
- var ContractType = /* @__PURE__ */ ((ContractType2) => {
136
- ContractType2["UNKNOWN"] = "UNKNOWN";
137
- ContractType2["ERC20"] = "ERC20";
138
- ContractType2["ERC721"] = "ERC721";
139
- ContractType2["ERC1155"] = "ERC1155";
140
- return ContractType2;
141
- })(ContractType || {});
142
- var CollectionPriority = /* @__PURE__ */ ((CollectionPriority2) => {
143
- CollectionPriority2["unknown"] = "unknown";
144
- CollectionPriority2["low"] = "low";
145
- CollectionPriority2["normal"] = "normal";
146
- CollectionPriority2["high"] = "high";
147
- return CollectionPriority2;
148
- })(CollectionPriority || {});
149
- var CollectionStatus = /* @__PURE__ */ ((CollectionStatus2) => {
150
- CollectionStatus2["unknown"] = "unknown";
151
- CollectionStatus2["created"] = "created";
152
- CollectionStatus2["syncing_contract_metadata"] = "syncing_contract_metadata";
153
- CollectionStatus2["synced_contract_metadata"] = "synced_contract_metadata";
154
- CollectionStatus2["syncing_metadata"] = "syncing_metadata";
155
- CollectionStatus2["synced_metadata"] = "synced_metadata";
156
- CollectionStatus2["syncing_tokens"] = "syncing_tokens";
157
- CollectionStatus2["synced_tokens"] = "synced_tokens";
158
- CollectionStatus2["syncing_orders"] = "syncing_orders";
159
- CollectionStatus2["active"] = "active";
160
- CollectionStatus2["failed"] = "failed";
161
- CollectionStatus2["inactive"] = "inactive";
162
- CollectionStatus2["incompatible_type"] = "incompatible_type";
163
- return CollectionStatus2;
164
- })(CollectionStatus || {});
165
- var ProjectStatus = /* @__PURE__ */ ((ProjectStatus2) => {
166
- ProjectStatus2["unknown"] = "unknown";
167
- ProjectStatus2["active"] = "active";
168
- ProjectStatus2["inactive"] = "inactive";
169
- return ProjectStatus2;
170
- })(ProjectStatus || {});
171
- var CollectibleStatus = /* @__PURE__ */ ((CollectibleStatus2) => {
172
- CollectibleStatus2["unknown"] = "unknown";
173
- CollectibleStatus2["active"] = "active";
174
- CollectibleStatus2["inactive"] = "inactive";
175
- return CollectibleStatus2;
176
- })(CollectibleStatus || {});
177
- var CurrencyStatus = /* @__PURE__ */ ((CurrencyStatus2) => {
178
- CurrencyStatus2["unknown"] = "unknown";
179
- CurrencyStatus2["created"] = "created";
180
- CurrencyStatus2["syncing_metadata"] = "syncing_metadata";
181
- CurrencyStatus2["active"] = "active";
182
- CurrencyStatus2["failed"] = "failed";
183
- return CurrencyStatus2;
184
- })(CurrencyStatus || {});
185
- var WalletKind = /* @__PURE__ */ ((WalletKind2) => {
186
- WalletKind2["unknown"] = "unknown";
187
- WalletKind2["sequence"] = "sequence";
188
- return WalletKind2;
189
- })(WalletKind || {});
190
- var StepType = /* @__PURE__ */ ((StepType2) => {
191
- StepType2["unknown"] = "unknown";
192
- StepType2["tokenApproval"] = "tokenApproval";
193
- StepType2["buy"] = "buy";
194
- StepType2["sell"] = "sell";
195
- StepType2["createListing"] = "createListing";
196
- StepType2["createOffer"] = "createOffer";
197
- StepType2["signEIP712"] = "signEIP712";
198
- StepType2["signEIP191"] = "signEIP191";
199
- StepType2["cancel"] = "cancel";
200
- return StepType2;
201
- })(StepType || {});
202
- var TransactionCrypto = /* @__PURE__ */ ((TransactionCrypto2) => {
203
- TransactionCrypto2["none"] = "none";
204
- TransactionCrypto2["partially"] = "partially";
205
- TransactionCrypto2["all"] = "all";
206
- return TransactionCrypto2;
207
- })(TransactionCrypto || {});
208
- var TransactionNFTCheckoutProvider = /* @__PURE__ */ ((TransactionNFTCheckoutProvider2) => {
209
- TransactionNFTCheckoutProvider2["unknown"] = "unknown";
210
- TransactionNFTCheckoutProvider2["sardine"] = "sardine";
211
- TransactionNFTCheckoutProvider2["transak"] = "transak";
212
- return TransactionNFTCheckoutProvider2;
213
- })(TransactionNFTCheckoutProvider || {});
214
- var TransactionOnRampProvider = /* @__PURE__ */ ((TransactionOnRampProvider2) => {
215
- TransactionOnRampProvider2["unknown"] = "unknown";
216
- TransactionOnRampProvider2["sardine"] = "sardine";
217
- TransactionOnRampProvider2["transak"] = "transak";
218
- return TransactionOnRampProvider2;
219
- })(TransactionOnRampProvider || {});
220
- var TransactionSwapProvider = /* @__PURE__ */ ((TransactionSwapProvider2) => {
221
- TransactionSwapProvider2["unknown"] = "unknown";
222
- TransactionSwapProvider2["zerox"] = "zerox";
223
- return TransactionSwapProvider2;
224
- })(TransactionSwapProvider || {});
225
- var ExecuteType = /* @__PURE__ */ ((ExecuteType2) => {
226
- ExecuteType2["unknown"] = "unknown";
227
- ExecuteType2["order"] = "order";
228
- return ExecuteType2;
229
- })(ExecuteType || {});
230
- var ActivityAction = /* @__PURE__ */ ((ActivityAction2) => {
231
- ActivityAction2["unknown"] = "unknown";
232
- ActivityAction2["listing"] = "listing";
233
- ActivityAction2["offer"] = "offer";
234
- ActivityAction2["mint"] = "mint";
235
- ActivityAction2["sale"] = "sale";
236
- ActivityAction2["listingCancel"] = "listingCancel";
237
- ActivityAction2["offerCancel"] = "offerCancel";
238
- ActivityAction2["transfer"] = "transfer";
239
- return ActivityAction2;
240
- })(ActivityAction || {});
241
- var Admin = class {
242
- hostname;
243
- fetch;
244
- path = "/rpc/Admin/";
245
- constructor(hostname, fetch2) {
246
- this.hostname = hostname.replace(/\/*$/, "");
247
- this.fetch = (input, init) => fetch2(input, init);
248
- }
249
- url(name) {
250
- return this.hostname + this.path + name;
251
- }
252
- createCollection = (args, headers, signal) => {
253
- return this.fetch(
254
- this.url("CreateCollection"),
255
- createHTTPRequest(args, headers, signal)
256
- ).then((res) => {
257
- return buildResponse(res).then((_data) => {
258
- return {
259
- collection: _data.collection
260
- };
261
- });
262
- }, (error) => {
263
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
264
- });
265
- };
266
- getCollection = (args, headers, signal) => {
267
- return this.fetch(
268
- this.url("GetCollection"),
269
- createHTTPRequest(args, headers, signal)
270
- ).then((res) => {
271
- return buildResponse(res).then((_data) => {
272
- return {
273
- collection: _data.collection
274
- };
275
- });
276
- }, (error) => {
277
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
278
- });
279
- };
280
- updateCollection = (args, headers, signal) => {
281
- return this.fetch(
282
- this.url("UpdateCollection"),
283
- createHTTPRequest(args, headers, signal)
284
- ).then((res) => {
285
- return buildResponse(res).then((_data) => {
286
- return {
287
- collection: _data.collection
288
- };
289
- });
290
- }, (error) => {
291
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
292
- });
293
- };
294
- listCollections = (args, headers, signal) => {
295
- return this.fetch(
296
- this.url("ListCollections"),
297
- createHTTPRequest(args, headers, signal)
298
- ).then((res) => {
299
- return buildResponse(res).then((_data) => {
300
- return {
301
- collections: _data.collections,
302
- page: _data.page
303
- };
304
- });
305
- }, (error) => {
306
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
307
- });
308
- };
309
- deleteCollection = (args, headers, signal) => {
310
- return this.fetch(
311
- this.url("DeleteCollection"),
312
- createHTTPRequest(args, headers, signal)
313
- ).then((res) => {
314
- return buildResponse(res).then((_data) => {
315
- return {
316
- collection: _data.collection
317
- };
318
- });
319
- }, (error) => {
320
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
321
- });
322
- };
323
- syncCollection = (args, headers, signal) => {
324
- return this.fetch(
325
- this.url("SyncCollection"),
326
- createHTTPRequest(args, headers, signal)
327
- ).then((res) => {
328
- return buildResponse(res).then((_data) => {
329
- return {
330
- collection: _data.collection
331
- };
332
- });
333
- }, (error) => {
334
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
335
- });
336
- };
337
- createCurrency = (args, headers, signal) => {
338
- return this.fetch(
339
- this.url("CreateCurrency"),
340
- createHTTPRequest(args, headers, signal)
341
- ).then((res) => {
342
- return buildResponse(res).then((_data) => {
343
- return {
344
- currency: _data.currency
345
- };
346
- });
347
- }, (error) => {
348
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
349
- });
350
- };
351
- createCurrencies = (args, headers, signal) => {
352
- return this.fetch(
353
- this.url("CreateCurrencies"),
354
- createHTTPRequest(args, headers, signal)
355
- ).then((res) => {
356
- return buildResponse(res).then((_data) => {
357
- return {
358
- currency: _data.currency
359
- };
360
- });
361
- }, (error) => {
362
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
363
- });
364
- };
365
- updateCurrency = (args, headers, signal) => {
366
- return this.fetch(
367
- this.url("UpdateCurrency"),
368
- createHTTPRequest(args, headers, signal)
369
- ).then((res) => {
370
- return buildResponse(res).then((_data) => {
371
- return {
372
- currency: _data.currency
373
- };
374
- });
375
- }, (error) => {
376
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
377
- });
378
- };
379
- listCurrencies = (headers, signal) => {
380
- return this.fetch(
381
- this.url("ListCurrencies"),
382
- createHTTPRequest({}, headers, signal)
383
- ).then((res) => {
384
- return buildResponse(res).then((_data) => {
385
- return {
386
- currencies: _data.currencies
387
- };
388
- });
389
- }, (error) => {
390
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
391
- });
392
- };
393
- deleteCurrency = (args, headers, signal) => {
394
- return this.fetch(
395
- this.url("DeleteCurrency"),
396
- createHTTPRequest(args, headers, signal)
397
- ).then((res) => {
398
- return buildResponse(res).then((_data) => {
399
- return {
400
- currency: _data.currency
401
- };
402
- });
403
- }, (error) => {
404
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
405
- });
406
- };
407
- };
408
- var Marketplace = class {
409
- hostname;
410
- fetch;
411
- path = "/rpc/Marketplace/";
412
- constructor(hostname, fetch2) {
413
- this.hostname = hostname.replace(/\/*$/, "");
414
- this.fetch = (input, init) => fetch2(input, init);
415
- }
416
- url(name) {
417
- return this.hostname + this.path + name;
418
- }
419
- listCurrencies = (headers, signal) => {
420
- return this.fetch(
421
- this.url("ListCurrencies"),
422
- createHTTPRequest({}, headers, signal)
423
- ).then((res) => {
424
- return buildResponse(res).then((_data) => {
425
- return {
426
- currencies: _data.currencies
427
- };
428
- });
429
- }, (error) => {
430
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
431
- });
432
- };
433
- getCollectionDetail = (args, headers, signal) => {
434
- return this.fetch(
435
- this.url("GetCollectionDetail"),
436
- createHTTPRequest(args, headers, signal)
437
- ).then((res) => {
438
- return buildResponse(res).then((_data) => {
439
- return {
440
- collection: _data.collection
441
- };
442
- });
443
- }, (error) => {
444
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
445
- });
446
- };
447
- getCollectible = (args, headers, signal) => {
448
- return this.fetch(
449
- this.url("GetCollectible"),
450
- createHTTPRequest(args, headers, signal)
451
- ).then((res) => {
452
- return buildResponse(res).then((_data) => {
453
- return {
454
- metadata: _data.metadata
455
- };
456
- });
457
- }, (error) => {
458
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
459
- });
460
- };
461
- getLowestPriceOfferForCollectible = (args, headers, signal) => {
462
- return this.fetch(
463
- this.url("GetLowestPriceOfferForCollectible"),
464
- createHTTPRequest(args, headers, signal)
465
- ).then((res) => {
466
- return buildResponse(res).then((_data) => {
467
- return {
468
- order: _data.order
469
- };
470
- });
471
- }, (error) => {
472
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
473
- });
474
- };
475
- getHighestPriceOfferForCollectible = (args, headers, signal) => {
476
- return this.fetch(
477
- this.url("GetHighestPriceOfferForCollectible"),
478
- createHTTPRequest(args, headers, signal)
479
- ).then((res) => {
480
- return buildResponse(res).then((_data) => {
481
- return {
482
- order: _data.order
483
- };
484
- });
485
- }, (error) => {
486
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
487
- });
488
- };
489
- getLowestPriceListingForCollectible = (args, headers, signal) => {
490
- return this.fetch(
491
- this.url("GetLowestPriceListingForCollectible"),
492
- createHTTPRequest(args, headers, signal)
493
- ).then((res) => {
494
- return buildResponse(res).then((_data) => {
495
- return {
496
- order: _data.order
497
- };
498
- });
499
- }, (error) => {
500
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
501
- });
502
- };
503
- getHighestPriceListingForCollectible = (args, headers, signal) => {
504
- return this.fetch(
505
- this.url("GetHighestPriceListingForCollectible"),
506
- createHTTPRequest(args, headers, signal)
507
- ).then((res) => {
508
- return buildResponse(res).then((_data) => {
509
- return {
510
- order: _data.order
511
- };
512
- });
513
- }, (error) => {
514
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
515
- });
516
- };
517
- listListingsForCollectible = (args, headers, signal) => {
518
- return this.fetch(
519
- this.url("ListListingsForCollectible"),
520
- createHTTPRequest(args, headers, signal)
521
- ).then((res) => {
522
- return buildResponse(res).then((_data) => {
523
- return {
524
- listings: _data.listings,
525
- page: _data.page
526
- };
527
- });
528
- }, (error) => {
529
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
530
- });
531
- };
532
- listOffersForCollectible = (args, headers, signal) => {
533
- return this.fetch(
534
- this.url("ListOffersForCollectible"),
535
- createHTTPRequest(args, headers, signal)
536
- ).then((res) => {
537
- return buildResponse(res).then((_data) => {
538
- return {
539
- offers: _data.offers,
540
- page: _data.page
541
- };
542
- });
543
- }, (error) => {
544
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
545
- });
546
- };
547
- getCountOfListingsForCollectible = (args, headers, signal) => {
548
- return this.fetch(
549
- this.url("GetCountOfListingsForCollectible"),
550
- createHTTPRequest(args, headers, signal)
551
- ).then((res) => {
552
- return buildResponse(res).then((_data) => {
553
- return {
554
- count: _data.count
555
- };
556
- });
557
- }, (error) => {
558
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
559
- });
560
- };
561
- getCountOfOffersForCollectible = (args, headers, signal) => {
562
- return this.fetch(
563
- this.url("GetCountOfOffersForCollectible"),
564
- createHTTPRequest(args, headers, signal)
565
- ).then((res) => {
566
- return buildResponse(res).then((_data) => {
567
- return {
568
- count: _data.count
569
- };
570
- });
571
- }, (error) => {
572
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
573
- });
574
- };
575
- getCollectibleLowestOffer = (args, headers, signal) => {
576
- return this.fetch(
577
- this.url("GetCollectibleLowestOffer"),
578
- createHTTPRequest(args, headers, signal)
579
- ).then((res) => {
580
- return buildResponse(res).then((_data) => {
581
- return {
582
- order: _data.order
583
- };
584
- });
585
- }, (error) => {
586
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
587
- });
588
- };
589
- getCollectibleHighestOffer = (args, headers, signal) => {
590
- return this.fetch(
591
- this.url("GetCollectibleHighestOffer"),
592
- createHTTPRequest(args, headers, signal)
593
- ).then((res) => {
594
- return buildResponse(res).then((_data) => {
595
- return {
596
- order: _data.order
597
- };
598
- });
599
- }, (error) => {
600
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
601
- });
602
- };
603
- getCollectibleLowestListing = (args, headers, signal) => {
604
- return this.fetch(
605
- this.url("GetCollectibleLowestListing"),
606
- createHTTPRequest(args, headers, signal)
607
- ).then((res) => {
608
- return buildResponse(res).then((_data) => {
609
- return {
610
- order: _data.order
611
- };
612
- });
613
- }, (error) => {
614
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
615
- });
616
- };
617
- getCollectibleHighestListing = (args, headers, signal) => {
618
- return this.fetch(
619
- this.url("GetCollectibleHighestListing"),
620
- createHTTPRequest(args, headers, signal)
621
- ).then((res) => {
622
- return buildResponse(res).then((_data) => {
623
- return {
624
- order: _data.order
625
- };
626
- });
627
- }, (error) => {
628
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
629
- });
630
- };
631
- listCollectibleListings = (args, headers, signal) => {
632
- return this.fetch(
633
- this.url("ListCollectibleListings"),
634
- createHTTPRequest(args, headers, signal)
635
- ).then((res) => {
636
- return buildResponse(res).then((_data) => {
637
- return {
638
- listings: _data.listings,
639
- page: _data.page
640
- };
641
- });
642
- }, (error) => {
643
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
644
- });
645
- };
646
- listCollectibleOffers = (args, headers, signal) => {
647
- return this.fetch(
648
- this.url("ListCollectibleOffers"),
649
- createHTTPRequest(args, headers, signal)
650
- ).then((res) => {
651
- return buildResponse(res).then((_data) => {
652
- return {
653
- offers: _data.offers,
654
- page: _data.page
655
- };
656
- });
657
- }, (error) => {
658
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
659
- });
660
- };
661
- generateBuyTransaction = (args, headers, signal) => {
662
- return this.fetch(
663
- this.url("GenerateBuyTransaction"),
664
- createHTTPRequest(args, headers, signal)
665
- ).then((res) => {
666
- return buildResponse(res).then((_data) => {
667
- return {
668
- steps: _data.steps
669
- };
670
- });
671
- }, (error) => {
672
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
673
- });
674
- };
675
- generateSellTransaction = (args, headers, signal) => {
676
- return this.fetch(
677
- this.url("GenerateSellTransaction"),
678
- createHTTPRequest(args, headers, signal)
679
- ).then((res) => {
680
- return buildResponse(res).then((_data) => {
681
- return {
682
- steps: _data.steps
683
- };
684
- });
685
- }, (error) => {
686
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
687
- });
688
- };
689
- generateListingTransaction = (args, headers, signal) => {
690
- return this.fetch(
691
- this.url("GenerateListingTransaction"),
692
- createHTTPRequest(args, headers, signal)
693
- ).then((res) => {
694
- return buildResponse(res).then((_data) => {
695
- return {
696
- steps: _data.steps
697
- };
698
- });
699
- }, (error) => {
700
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
701
- });
702
- };
703
- generateOfferTransaction = (args, headers, signal) => {
704
- return this.fetch(
705
- this.url("GenerateOfferTransaction"),
706
- createHTTPRequest(args, headers, signal)
707
- ).then((res) => {
708
- return buildResponse(res).then((_data) => {
709
- return {
710
- steps: _data.steps
711
- };
712
- });
713
- }, (error) => {
714
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
715
- });
716
- };
717
- generateCancelTransaction = (args, headers, signal) => {
718
- return this.fetch(
719
- this.url("GenerateCancelTransaction"),
720
- createHTTPRequest(args, headers, signal)
721
- ).then((res) => {
722
- return buildResponse(res).then((_data) => {
723
- return {
724
- steps: _data.steps
725
- };
726
- });
727
- }, (error) => {
728
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
729
- });
730
- };
731
- execute = (args, headers, signal) => {
732
- return this.fetch(
733
- this.url("Execute"),
734
- createHTTPRequest(args, headers, signal)
735
- ).then((res) => {
736
- return buildResponse(res).then((_data) => {
737
- return {
738
- orderId: _data.orderId
739
- };
740
- });
741
- }, (error) => {
742
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
743
- });
744
- };
745
- listCollectibles = (args, headers, signal) => {
746
- return this.fetch(
747
- this.url("ListCollectibles"),
748
- createHTTPRequest(args, headers, signal)
749
- ).then((res) => {
750
- return buildResponse(res).then((_data) => {
751
- return {
752
- collectibles: _data.collectibles,
753
- page: _data.page
754
- };
755
- });
756
- }, (error) => {
757
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
758
- });
759
- };
760
- getCountOfAllCollectibles = (args, headers, signal) => {
761
- return this.fetch(
762
- this.url("GetCountOfAllCollectibles"),
763
- createHTTPRequest(args, headers, signal)
764
- ).then((res) => {
765
- return buildResponse(res).then((_data) => {
766
- return {
767
- count: _data.count
768
- };
769
- });
770
- }, (error) => {
771
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
772
- });
773
- };
774
- getCountOfFilteredCollectibles = (args, headers, signal) => {
775
- return this.fetch(
776
- this.url("GetCountOfFilteredCollectibles"),
777
- createHTTPRequest(args, headers, signal)
778
- ).then((res) => {
779
- return buildResponse(res).then((_data) => {
780
- return {
781
- count: _data.count
782
- };
783
- });
784
- }, (error) => {
785
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
786
- });
787
- };
788
- getFloorOrder = (args, headers, signal) => {
789
- return this.fetch(
790
- this.url("GetFloorOrder"),
791
- createHTTPRequest(args, headers, signal)
792
- ).then((res) => {
793
- return buildResponse(res).then((_data) => {
794
- return {
795
- collectible: _data.collectible
796
- };
797
- });
798
- }, (error) => {
799
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
800
- });
801
- };
802
- listCollectionActivities = (args, headers, signal) => {
803
- return this.fetch(
804
- this.url("ListCollectionActivities"),
805
- createHTTPRequest(args, headers, signal)
806
- ).then((res) => {
807
- return buildResponse(res).then((_data) => {
808
- return {
809
- activities: _data.activities,
810
- page: _data.page
811
- };
812
- });
813
- }, (error) => {
814
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
815
- });
816
- };
817
- listCollectibleActivities = (args, headers, signal) => {
818
- return this.fetch(
819
- this.url("ListCollectibleActivities"),
820
- createHTTPRequest(args, headers, signal)
821
- ).then((res) => {
822
- return buildResponse(res).then((_data) => {
823
- return {
824
- activities: _data.activities,
825
- page: _data.page
826
- };
827
- });
828
- }, (error) => {
829
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
830
- });
831
- };
832
- listCollectiblesWithLowestListing = (args, headers, signal) => {
833
- return this.fetch(
834
- this.url("ListCollectiblesWithLowestListing"),
835
- createHTTPRequest(args, headers, signal)
836
- ).then((res) => {
837
- return buildResponse(res).then((_data) => {
838
- return {
839
- collectibles: _data.collectibles,
840
- page: _data.page
841
- };
842
- });
843
- }, (error) => {
844
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
845
- });
846
- };
847
- listCollectiblesWithHighestOffer = (args, headers, signal) => {
848
- return this.fetch(
849
- this.url("ListCollectiblesWithHighestOffer"),
850
- createHTTPRequest(args, headers, signal)
851
- ).then((res) => {
852
- return buildResponse(res).then((_data) => {
853
- return {
854
- collectibles: _data.collectibles,
855
- page: _data.page
856
- };
857
- });
858
- }, (error) => {
859
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
860
- });
861
- };
862
- syncOrder = (args, headers, signal) => {
863
- return this.fetch(
864
- this.url("SyncOrder"),
865
- createHTTPRequest(args, headers, signal)
866
- ).then((res) => {
867
- return buildResponse(res).then((_data) => {
868
- return {};
869
- });
870
- }, (error) => {
871
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
872
- });
873
- };
874
- syncOrders = (args, headers, signal) => {
875
- return this.fetch(
876
- this.url("SyncOrders"),
877
- createHTTPRequest(args, headers, signal)
878
- ).then((res) => {
879
- return buildResponse(res).then((_data) => {
880
- return {};
881
- });
882
- }, (error) => {
883
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
884
- });
885
- };
886
- getOrders = (args, headers, signal) => {
887
- return this.fetch(
888
- this.url("GetOrders"),
889
- createHTTPRequest(args, headers, signal)
890
- ).then((res) => {
891
- return buildResponse(res).then((_data) => {
892
- return {
893
- orders: _data.orders,
894
- page: _data.page
895
- };
896
- });
897
- }, (error) => {
898
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
899
- });
900
- };
901
- checkoutOptionsMarketplace = (args, headers, signal) => {
902
- return this.fetch(
903
- this.url("CheckoutOptionsMarketplace"),
904
- createHTTPRequest(args, headers, signal)
905
- ).then((res) => {
906
- return buildResponse(res).then((_data) => {
907
- return {
908
- options: _data.options
909
- };
910
- });
911
- }, (error) => {
912
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
913
- });
914
- };
915
- checkoutOptionsSalesContract = (args, headers, signal) => {
916
- return this.fetch(
917
- this.url("CheckoutOptionsSalesContract"),
918
- createHTTPRequest(args, headers, signal)
919
- ).then((res) => {
920
- return buildResponse(res).then((_data) => {
921
- return {
922
- options: _data.options
923
- };
924
- });
925
- }, (error) => {
926
- throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ""}` });
927
- });
928
- };
929
- };
930
- var createHTTPRequest = (body = {}, headers = {}, signal = null) => {
931
- const reqHeaders = { ...headers, "Content-Type": "application/json" };
932
- reqHeaders[WebrpcHeader] = WebrpcHeaderValue;
933
- return {
934
- method: "POST",
935
- headers: reqHeaders,
936
- body: JSON.stringify(body || {}),
937
- signal
938
- };
939
- };
940
- var buildResponse = (res) => {
941
- return res.text().then((text) => {
942
- let data;
943
- try {
944
- data = JSON.parse(text);
945
- } catch (error) {
946
- let message = "";
947
- if (error instanceof Error) {
948
- message = error.message;
949
- }
950
- throw WebrpcBadResponseError.new(
951
- {
952
- status: res.status,
953
- cause: `JSON.parse(): ${message}: response text: ${text}`
954
- }
955
- );
956
- }
957
- if (!res.ok) {
958
- const code = typeof data.code === "number" ? data.code : 0;
959
- throw (webrpcErrorByCode[code] || WebrpcError).new(data);
960
- }
961
- return data;
962
- });
963
- };
964
- var WebrpcError = class _WebrpcError extends Error {
965
- name;
966
- code;
967
- message;
968
- status;
969
- cause;
970
- /** @deprecated Use message instead of msg. Deprecated in webrpc v0.11.0. */
971
- msg;
972
- constructor(name, code, message, status, cause) {
973
- super(message);
974
- this.name = name || "WebrpcError";
975
- this.code = typeof code === "number" ? code : 0;
976
- this.message = message || `endpoint error ${this.code}`;
977
- this.msg = this.message;
978
- this.status = typeof status === "number" ? status : 0;
979
- this.cause = cause;
980
- Object.setPrototypeOf(this, _WebrpcError.prototype);
981
- }
982
- static new(payload) {
983
- return new this(payload.error, payload.code, payload.message || payload.msg, payload.status, payload.cause);
984
- }
985
- };
986
- var WebrpcEndpointError = class _WebrpcEndpointError extends WebrpcError {
987
- constructor(name = "WebrpcEndpoint", code = 0, message = `endpoint error`, status = 0, cause) {
988
- super(name, code, message, status, cause);
989
- Object.setPrototypeOf(this, _WebrpcEndpointError.prototype);
990
- }
991
- };
992
- var WebrpcRequestFailedError = class _WebrpcRequestFailedError extends WebrpcError {
993
- constructor(name = "WebrpcRequestFailed", code = -1, message = `request failed`, status = 0, cause) {
994
- super(name, code, message, status, cause);
995
- Object.setPrototypeOf(this, _WebrpcRequestFailedError.prototype);
996
- }
997
- };
998
- var WebrpcBadRouteError = class _WebrpcBadRouteError extends WebrpcError {
999
- constructor(name = "WebrpcBadRoute", code = -2, message = `bad route`, status = 0, cause) {
1000
- super(name, code, message, status, cause);
1001
- Object.setPrototypeOf(this, _WebrpcBadRouteError.prototype);
1002
- }
1003
- };
1004
- var WebrpcBadMethodError = class _WebrpcBadMethodError extends WebrpcError {
1005
- constructor(name = "WebrpcBadMethod", code = -3, message = `bad method`, status = 0, cause) {
1006
- super(name, code, message, status, cause);
1007
- Object.setPrototypeOf(this, _WebrpcBadMethodError.prototype);
1008
- }
1009
- };
1010
- var WebrpcBadRequestError = class _WebrpcBadRequestError extends WebrpcError {
1011
- constructor(name = "WebrpcBadRequest", code = -4, message = `bad request`, status = 0, cause) {
1012
- super(name, code, message, status, cause);
1013
- Object.setPrototypeOf(this, _WebrpcBadRequestError.prototype);
1014
- }
1015
- };
1016
- var WebrpcBadResponseError = class _WebrpcBadResponseError extends WebrpcError {
1017
- constructor(name = "WebrpcBadResponse", code = -5, message = `bad response`, status = 0, cause) {
1018
- super(name, code, message, status, cause);
1019
- Object.setPrototypeOf(this, _WebrpcBadResponseError.prototype);
1020
- }
1021
- };
1022
- var WebrpcServerPanicError = class _WebrpcServerPanicError extends WebrpcError {
1023
- constructor(name = "WebrpcServerPanic", code = -6, message = `server panic`, status = 0, cause) {
1024
- super(name, code, message, status, cause);
1025
- Object.setPrototypeOf(this, _WebrpcServerPanicError.prototype);
1026
- }
1027
- };
1028
- var WebrpcInternalErrorError = class _WebrpcInternalErrorError extends WebrpcError {
1029
- constructor(name = "WebrpcInternalError", code = -7, message = `internal error`, status = 0, cause) {
1030
- super(name, code, message, status, cause);
1031
- Object.setPrototypeOf(this, _WebrpcInternalErrorError.prototype);
1032
- }
1033
- };
1034
- var WebrpcClientDisconnectedError = class _WebrpcClientDisconnectedError extends WebrpcError {
1035
- constructor(name = "WebrpcClientDisconnected", code = -8, message = `client disconnected`, status = 0, cause) {
1036
- super(name, code, message, status, cause);
1037
- Object.setPrototypeOf(this, _WebrpcClientDisconnectedError.prototype);
1038
- }
1039
- };
1040
- var WebrpcStreamLostError = class _WebrpcStreamLostError extends WebrpcError {
1041
- constructor(name = "WebrpcStreamLost", code = -9, message = `stream lost`, status = 0, cause) {
1042
- super(name, code, message, status, cause);
1043
- Object.setPrototypeOf(this, _WebrpcStreamLostError.prototype);
1044
- }
1045
- };
1046
- var WebrpcStreamFinishedError = class _WebrpcStreamFinishedError extends WebrpcError {
1047
- constructor(name = "WebrpcStreamFinished", code = -10, message = `stream finished`, status = 0, cause) {
1048
- super(name, code, message, status, cause);
1049
- Object.setPrototypeOf(this, _WebrpcStreamFinishedError.prototype);
1050
- }
1051
- };
1052
- var UnauthorizedError = class _UnauthorizedError extends WebrpcError {
1053
- constructor(name = "Unauthorized", code = 1e3, message = `Unauthorized access`, status = 0, cause) {
1054
- super(name, code, message, status, cause);
1055
- Object.setPrototypeOf(this, _UnauthorizedError.prototype);
1056
- }
1057
- };
1058
- var PermissionDeniedError = class _PermissionDeniedError extends WebrpcError {
1059
- constructor(name = "PermissionDenied", code = 1001, message = `Permission denied`, status = 0, cause) {
1060
- super(name, code, message, status, cause);
1061
- Object.setPrototypeOf(this, _PermissionDeniedError.prototype);
1062
- }
1063
- };
1064
- var SessionExpiredError = class _SessionExpiredError extends WebrpcError {
1065
- constructor(name = "SessionExpired", code = 1002, message = `Session expired`, status = 0, cause) {
1066
- super(name, code, message, status, cause);
1067
- Object.setPrototypeOf(this, _SessionExpiredError.prototype);
1068
- }
1069
- };
1070
- var MethodNotFoundError = class _MethodNotFoundError extends WebrpcError {
1071
- constructor(name = "MethodNotFound", code = 1003, message = `Method not found`, status = 0, cause) {
1072
- super(name, code, message, status, cause);
1073
- Object.setPrototypeOf(this, _MethodNotFoundError.prototype);
1074
- }
1075
- };
1076
- var TimeoutError = class _TimeoutError extends WebrpcError {
1077
- constructor(name = "Timeout", code = 2e3, message = `Request timed out`, status = 0, cause) {
1078
- super(name, code, message, status, cause);
1079
- Object.setPrototypeOf(this, _TimeoutError.prototype);
1080
- }
1081
- };
1082
- var InvalidArgumentError = class _InvalidArgumentError extends WebrpcError {
1083
- constructor(name = "InvalidArgument", code = 2001, message = `Invalid argument`, status = 0, cause) {
1084
- super(name, code, message, status, cause);
1085
- Object.setPrototypeOf(this, _InvalidArgumentError.prototype);
1086
- }
1087
- };
1088
- var NotFoundError = class _NotFoundError extends WebrpcError {
1089
- constructor(name = "NotFound", code = 3e3, message = `Resource not found`, status = 0, cause) {
1090
- super(name, code, message, status, cause);
1091
- Object.setPrototypeOf(this, _NotFoundError.prototype);
1092
- }
1093
- };
1094
- var UserNotFoundError = class _UserNotFoundError extends WebrpcError {
1095
- constructor(name = "UserNotFound", code = 3001, message = `User not found`, status = 0, cause) {
1096
- super(name, code, message, status, cause);
1097
- Object.setPrototypeOf(this, _UserNotFoundError.prototype);
1098
- }
1099
- };
1100
- var ProjectNotFoundError = class _ProjectNotFoundError extends WebrpcError {
1101
- constructor(name = "ProjectNotFound", code = 3002, message = `Project not found`, status = 0, cause) {
1102
- super(name, code, message, status, cause);
1103
- Object.setPrototypeOf(this, _ProjectNotFoundError.prototype);
1104
- }
1105
- };
1106
- var InvalidTierError = class _InvalidTierError extends WebrpcError {
1107
- constructor(name = "InvalidTier", code = 3003, message = `Invalid subscription tier`, status = 0, cause) {
1108
- super(name, code, message, status, cause);
1109
- Object.setPrototypeOf(this, _InvalidTierError.prototype);
1110
- }
1111
- };
1112
- var ProjectLimitReachedError = class _ProjectLimitReachedError extends WebrpcError {
1113
- constructor(name = "ProjectLimitReached", code = 3005, message = `Project limit reached`, status = 0, cause) {
1114
- super(name, code, message, status, cause);
1115
- Object.setPrototypeOf(this, _ProjectLimitReachedError.prototype);
1116
- }
1117
- };
1118
- var NotImplementedError = class _NotImplementedError extends WebrpcError {
1119
- constructor(name = "NotImplemented", code = 9999, message = `Not Implemented`, status = 0, cause) {
1120
- super(name, code, message, status, cause);
1121
- Object.setPrototypeOf(this, _NotImplementedError.prototype);
1122
- }
1123
- };
1124
- var errors = /* @__PURE__ */ ((errors2) => {
1125
- errors2["WebrpcEndpoint"] = "WebrpcEndpoint";
1126
- errors2["WebrpcRequestFailed"] = "WebrpcRequestFailed";
1127
- errors2["WebrpcBadRoute"] = "WebrpcBadRoute";
1128
- errors2["WebrpcBadMethod"] = "WebrpcBadMethod";
1129
- errors2["WebrpcBadRequest"] = "WebrpcBadRequest";
1130
- errors2["WebrpcBadResponse"] = "WebrpcBadResponse";
1131
- errors2["WebrpcServerPanic"] = "WebrpcServerPanic";
1132
- errors2["WebrpcInternalError"] = "WebrpcInternalError";
1133
- errors2["WebrpcClientDisconnected"] = "WebrpcClientDisconnected";
1134
- errors2["WebrpcStreamLost"] = "WebrpcStreamLost";
1135
- errors2["WebrpcStreamFinished"] = "WebrpcStreamFinished";
1136
- errors2["Unauthorized"] = "Unauthorized";
1137
- errors2["PermissionDenied"] = "PermissionDenied";
1138
- errors2["SessionExpired"] = "SessionExpired";
1139
- errors2["MethodNotFound"] = "MethodNotFound";
1140
- errors2["Timeout"] = "Timeout";
1141
- errors2["InvalidArgument"] = "InvalidArgument";
1142
- errors2["NotFound"] = "NotFound";
1143
- errors2["UserNotFound"] = "UserNotFound";
1144
- errors2["ProjectNotFound"] = "ProjectNotFound";
1145
- errors2["InvalidTier"] = "InvalidTier";
1146
- errors2["ProjectLimitReached"] = "ProjectLimitReached";
1147
- errors2["NotImplemented"] = "NotImplemented";
1148
- return errors2;
1149
- })(errors || {});
1150
- var WebrpcErrorCodes = /* @__PURE__ */ ((WebrpcErrorCodes2) => {
1151
- WebrpcErrorCodes2[WebrpcErrorCodes2["WebrpcEndpoint"] = 0] = "WebrpcEndpoint";
1152
- WebrpcErrorCodes2[WebrpcErrorCodes2["WebrpcRequestFailed"] = -1] = "WebrpcRequestFailed";
1153
- WebrpcErrorCodes2[WebrpcErrorCodes2["WebrpcBadRoute"] = -2] = "WebrpcBadRoute";
1154
- WebrpcErrorCodes2[WebrpcErrorCodes2["WebrpcBadMethod"] = -3] = "WebrpcBadMethod";
1155
- WebrpcErrorCodes2[WebrpcErrorCodes2["WebrpcBadRequest"] = -4] = "WebrpcBadRequest";
1156
- WebrpcErrorCodes2[WebrpcErrorCodes2["WebrpcBadResponse"] = -5] = "WebrpcBadResponse";
1157
- WebrpcErrorCodes2[WebrpcErrorCodes2["WebrpcServerPanic"] = -6] = "WebrpcServerPanic";
1158
- WebrpcErrorCodes2[WebrpcErrorCodes2["WebrpcInternalError"] = -7] = "WebrpcInternalError";
1159
- WebrpcErrorCodes2[WebrpcErrorCodes2["WebrpcClientDisconnected"] = -8] = "WebrpcClientDisconnected";
1160
- WebrpcErrorCodes2[WebrpcErrorCodes2["WebrpcStreamLost"] = -9] = "WebrpcStreamLost";
1161
- WebrpcErrorCodes2[WebrpcErrorCodes2["WebrpcStreamFinished"] = -10] = "WebrpcStreamFinished";
1162
- WebrpcErrorCodes2[WebrpcErrorCodes2["Unauthorized"] = 1e3] = "Unauthorized";
1163
- WebrpcErrorCodes2[WebrpcErrorCodes2["PermissionDenied"] = 1001] = "PermissionDenied";
1164
- WebrpcErrorCodes2[WebrpcErrorCodes2["SessionExpired"] = 1002] = "SessionExpired";
1165
- WebrpcErrorCodes2[WebrpcErrorCodes2["MethodNotFound"] = 1003] = "MethodNotFound";
1166
- WebrpcErrorCodes2[WebrpcErrorCodes2["Timeout"] = 2e3] = "Timeout";
1167
- WebrpcErrorCodes2[WebrpcErrorCodes2["InvalidArgument"] = 2001] = "InvalidArgument";
1168
- WebrpcErrorCodes2[WebrpcErrorCodes2["NotFound"] = 3e3] = "NotFound";
1169
- WebrpcErrorCodes2[WebrpcErrorCodes2["UserNotFound"] = 3001] = "UserNotFound";
1170
- WebrpcErrorCodes2[WebrpcErrorCodes2["ProjectNotFound"] = 3002] = "ProjectNotFound";
1171
- WebrpcErrorCodes2[WebrpcErrorCodes2["InvalidTier"] = 3003] = "InvalidTier";
1172
- WebrpcErrorCodes2[WebrpcErrorCodes2["ProjectLimitReached"] = 3005] = "ProjectLimitReached";
1173
- WebrpcErrorCodes2[WebrpcErrorCodes2["NotImplemented"] = 9999] = "NotImplemented";
1174
- return WebrpcErrorCodes2;
1175
- })(WebrpcErrorCodes || {});
1176
- var webrpcErrorByCode = {
1177
- [0]: WebrpcEndpointError,
1178
- [-1]: WebrpcRequestFailedError,
1179
- [-2]: WebrpcBadRouteError,
1180
- [-3]: WebrpcBadMethodError,
1181
- [-4]: WebrpcBadRequestError,
1182
- [-5]: WebrpcBadResponseError,
1183
- [-6]: WebrpcServerPanicError,
1184
- [-7]: WebrpcInternalErrorError,
1185
- [-8]: WebrpcClientDisconnectedError,
1186
- [-9]: WebrpcStreamLostError,
1187
- [-10]: WebrpcStreamFinishedError,
1188
- [1e3]: UnauthorizedError,
1189
- [1001]: PermissionDeniedError,
1190
- [1002]: SessionExpiredError,
1191
- [1003]: MethodNotFoundError,
1192
- [2e3]: TimeoutError,
1193
- [2001]: InvalidArgumentError,
1194
- [3e3]: NotFoundError,
1195
- [3001]: UserNotFoundError,
1196
- [3002]: ProjectNotFoundError,
1197
- [3003]: InvalidTierError,
1198
- [3005]: ProjectLimitReachedError,
1199
- [9999]: NotImplementedError
1200
- };
1201
-
1202
- // src/react/_internal/api/marketplace-api.ts
1203
- var SequenceMarketplace = class extends Marketplace {
1204
- constructor(hostname, projectAccessKey, jwtAuth) {
1205
- super(hostname.endsWith("/") ? hostname.slice(0, -1) : hostname, fetch);
1206
- this.projectAccessKey = projectAccessKey;
1207
- this.jwtAuth = jwtAuth;
1208
- this.fetch = this._fetch;
1209
- }
1210
- _fetch = (input, init) => {
1211
- const headers = {};
1212
- const jwtAuth = this.jwtAuth;
1213
- const projectAccessKey = this.projectAccessKey;
1214
- if (jwtAuth && jwtAuth.length > 0) {
1215
- headers.Authorization = `BEARER ${jwtAuth}`;
1216
- }
1217
- if (projectAccessKey && projectAccessKey.length > 0) {
1218
- headers["X-Access-Key"] = projectAccessKey;
1219
- }
1220
- const requestInit = init || {};
1221
- requestInit.headers = { ...init?.headers, ...headers };
1222
- return fetch(input, requestInit);
1223
- };
1224
- };
1225
-
1226
- // src/react/_internal/api/query-keys.ts
1227
- var CollectableKeys = class _CollectableKeys {
1228
- static all = ["collectable"];
1229
- static details = [..._CollectableKeys.all, "details"];
1230
- static lists = [..._CollectableKeys.all, "list"];
1231
- static floorOrders = [..._CollectableKeys.all, "floorOrders"];
1232
- static userBalances = [
1233
- ..._CollectableKeys.all,
1234
- ..._CollectableKeys.details,
1235
- "userBalances"
1236
- ];
1237
- static royaltyPercentage = [
1238
- ..._CollectableKeys.all,
1239
- "royaltyPercentage"
1240
- ];
1241
- static highestOffers = [
1242
- ..._CollectableKeys.all,
1243
- ..._CollectableKeys.details,
1244
- "highestOffers"
1245
- ];
1246
- static lowestListings = [
1247
- ..._CollectableKeys.all,
1248
- ..._CollectableKeys.details,
1249
- "lowestListings"
1250
- ];
1251
- static offers = [..._CollectableKeys.all, "offers"];
1252
- static offersCount = [..._CollectableKeys.all, "offersCount"];
1253
- static listings = [..._CollectableKeys.all, "listings"];
1254
- static listingsCount = [..._CollectableKeys.all, "listingsCount"];
1255
- static filter = [..._CollectableKeys.all, "filter"];
1256
- static counts = [..._CollectableKeys.all, "counts"];
1257
- static collectibleActivities = [
1258
- ..._CollectableKeys.all,
1259
- "collectibleActivities"
1260
- ];
1261
- };
1262
- var CollectionKeys = class _CollectionKeys {
1263
- static all = ["collections"];
1264
- static list = [..._CollectionKeys.all, "list"];
1265
- static detail = [..._CollectionKeys.all, "detail"];
1266
- static collectionActivities = [
1267
- ..._CollectionKeys.all,
1268
- "collectionActivities"
1269
- ];
1270
- };
1271
- var BalanceQueries = class _BalanceQueries {
1272
- static all = ["balances"];
1273
- static lists = [..._BalanceQueries.all, "tokenBalances"];
1274
- static collectionBalanceDetails = [
1275
- ..._BalanceQueries.all,
1276
- "collectionBalanceDetails"
1277
- ];
1278
- };
1279
- var CheckoutKeys = class _CheckoutKeys {
1280
- static all = ["checkouts"];
1281
- static options = [..._CheckoutKeys.all, "options"];
1282
- static cartItems = [..._CheckoutKeys.all, "cartItems"];
1283
- };
1284
- var CurrencyKeys = class _CurrencyKeys {
1285
- static all = ["currencies"];
1286
- static lists = [..._CurrencyKeys.all, "list"];
1287
- static details = [..._CurrencyKeys.all, "details"];
1288
- static conversion = [..._CurrencyKeys.all, "conversion"];
1289
- };
1290
- var ConfigKeys = class _ConfigKeys {
1291
- static all = ["configs"];
1292
- static marketplace = [..._ConfigKeys.all, "marketplace"];
1293
- };
1294
- var collectableKeys = CollectableKeys;
1295
- var collectionKeys = CollectionKeys;
1296
- var balanceQueries = BalanceQueries;
1297
- var checkoutKeys = CheckoutKeys;
1298
- var currencyKeys = CurrencyKeys;
1299
- var configKeys = ConfigKeys;
1300
-
1301
- // src/react/_internal/api/services.ts
1302
- import { SequenceAPIClient } from "@0xsequence/api";
1303
- import { SequenceIndexer } from "@0xsequence/indexer";
1304
- import { SequenceMetadata } from "@0xsequence/metadata";
1305
- import { networks, stringTemplate } from "@0xsequence/network";
1306
- var SERVICES = {
1307
- sequenceApi: "https://${prefix}api.sequence.app",
1308
- metadata: "https://${prefix}metadata.sequence.app",
1309
- indexer: "https://${prefix}${network}-indexer.sequence.app",
1310
- marketplaceApi: "https://${prefix}marketplace-api.sequence.app/${network}",
1311
- builderRpcApi: "https://${prefix}api.sequence.build",
1312
- //Used for fetching css and manifest
1313
- builderMarketplaceApi: "https://${prefix}api.sequence.build/marketplace/${projectId}"
1314
- };
1315
- var getNetwork = (nameOrId) => {
1316
- for (const network of Object.values(networks)) {
1317
- if (network.name === String(nameOrId).toLowerCase() || network.chainId === Number(nameOrId)) {
1318
- return network;
1319
- }
1320
- }
1321
- throw new MissingConfigError(`Network configuration for chain ${nameOrId}`);
1322
- };
1323
- var metadataURL = (env = "production") => {
1324
- const prefix = getPrefix(env);
1325
- return stringTemplate(SERVICES.metadata, { prefix });
1326
- };
1327
- var indexerURL = (chain, env = "production") => {
1328
- const prefix = getPrefix(env);
1329
- const network = getNetwork(chain).name;
1330
- return stringTemplate(SERVICES.indexer, { network, prefix });
1331
- };
1332
- var marketplaceApiURL = (chain, env = "production") => {
1333
- const prefix = getPrefix(env);
1334
- const network = getNetwork(chain).name;
1335
- return stringTemplate(SERVICES.marketplaceApi, { network, prefix });
1336
- };
1337
- var builderRpcApi = (env = "production") => {
1338
- const prefix = getPrefix(env);
1339
- return stringTemplate(SERVICES.builderRpcApi, { prefix });
1340
- };
1341
- var sequenceApiUrl = (env = "production") => {
1342
- const prefix = getPrefix(env);
1343
- return stringTemplate(SERVICES.sequenceApi, { prefix });
1344
- };
1345
- var builderMarketplaceApi = (projectId, env = "production") => {
1346
- const prefix = getPrefix(env);
1347
- return stringTemplate(SERVICES.builderMarketplaceApi, {
1348
- projectId,
1349
- prefix
1350
- });
1351
- };
1352
- var getMetadataClient = (config) => {
1353
- const env = config._internal?.metadataEnv || "production";
1354
- const projectAccessKey = getAccessKey({ env, config });
1355
- return new SequenceMetadata(metadataURL(env), projectAccessKey);
1356
- };
1357
- var getIndexerClient = (chain, config) => {
1358
- const env = config._internal?.indexerEnv || "production";
1359
- const projectAccessKey = getAccessKey({ env, config });
1360
- return new SequenceIndexer(indexerURL(chain, env), projectAccessKey);
1361
- };
1362
- var getMarketplaceClient = (chain, config) => {
1363
- const env = config._internal?.marketplaceEnv || "production";
1364
- const projectAccessKey = getAccessKey({ env, config });
1365
- return new SequenceMarketplace(
1366
- marketplaceApiURL(chain, env),
1367
- projectAccessKey
1368
- );
1369
- };
1370
- var getSequenceApiClient = (config) => {
1371
- const env = config._internal?.sequenceApiEnv || "production";
1372
- const projectAccessKey = getAccessKey({ env, config });
1373
- return new SequenceAPIClient(sequenceApiUrl(env), projectAccessKey);
1374
- };
1375
- var getAccessKey = ({ env, config }) => {
1376
- switch (env) {
1377
- case "development":
1378
- if (!config._internal?.devAccessKey)
1379
- throw new MissingConfigError("devAccessKey for development env");
1380
- return config._internal?.devAccessKey;
1381
- case "production":
1382
- return config.projectAccessKey;
1383
- case "next":
1384
- if (!config._internal?.nextAccessKey)
1385
- throw new MissingConfigError("nextAccessKey for next env");
1386
- return config._internal?.nextAccessKey;
1387
- }
1388
- };
1389
- var getPrefix = (env) => {
1390
- switch (env) {
1391
- case "development":
1392
- return "dev-";
1393
- case "production":
1394
- return "";
1395
- case "next":
1396
- return "next-";
1397
- }
1398
- };
1399
-
1400
- // src/react/_internal/api/laos-api.ts
1401
- var LaosAPI = class {
1402
- baseUrl = "https://extensions.api.laosnetwork.io";
1403
- constructor(baseUrl) {
1404
- if (baseUrl) {
1405
- this.baseUrl = baseUrl;
1406
- }
1407
- }
1408
- async getTokenSupplies({
1409
- chainId,
1410
- contractAddress,
1411
- includeMetadata = true,
1412
- page = {
1413
- sort: [
1414
- {
1415
- column: "CREATED_AT",
1416
- order: "DESC"
1417
- }
1418
- ]
1419
- }
1420
- }) {
1421
- const response = await fetch(`${this.baseUrl}/token/GetTokenSupplies`, {
1422
- method: "POST",
1423
- headers: {
1424
- "Content-Type": "application/json"
1425
- },
1426
- body: JSON.stringify({
1427
- chainId,
1428
- contractAddress,
1429
- includeMetadata,
1430
- page
1431
- })
1432
- });
1433
- if (!response.ok) {
1434
- throw new Error(`Failed to get token supplies: ${response.statusText}`);
1435
- }
1436
- return await response.json();
1437
- }
1438
- async getTokenBalances({
1439
- chainId,
1440
- accountAddress,
1441
- includeMetadata = true,
1442
- page = {
1443
- sort: [
1444
- {
1445
- column: "CREATED_AT",
1446
- order: "DESC"
1447
- }
1448
- ]
1449
- }
1450
- }) {
1451
- const response = await fetch(`${this.baseUrl}/token/GetTokenBalances`, {
1452
- method: "POST",
1453
- headers: {
1454
- "Content-Type": "application/json"
1455
- },
1456
- body: JSON.stringify({
1457
- chainId,
1458
- accountAddress,
1459
- includeMetadata,
1460
- page
1461
- })
1462
- });
1463
- if (!response.ok) {
1464
- throw new Error(`Failed to get token balances: ${response.statusText}`);
1465
- }
1466
- return await response.json();
1467
- }
1468
- };
1469
-
1470
- export {
1471
- getQueryClient,
1472
- WebrpcHeader,
1473
- WebrpcHeaderValue,
1474
- WebRPCVersion,
1475
- WebRPCSchemaVersion,
1476
- WebRPCSchemaHash,
1477
- VersionFromHeader,
1478
- SortOrder,
1479
- PropertyType,
1480
- MarketplaceKind,
1481
- OrderbookKind,
1482
- SourceKind,
1483
- OrderSide,
1484
- OrderStatus,
1485
- ContractType,
1486
- CollectionPriority,
1487
- CollectionStatus,
1488
- ProjectStatus,
1489
- CollectibleStatus,
1490
- CurrencyStatus,
1491
- WalletKind,
1492
- StepType,
1493
- TransactionCrypto,
1494
- TransactionNFTCheckoutProvider,
1495
- TransactionOnRampProvider,
1496
- TransactionSwapProvider,
1497
- ExecuteType,
1498
- ActivityAction,
1499
- Admin,
1500
- Marketplace,
1501
- WebrpcError,
1502
- WebrpcEndpointError,
1503
- WebrpcRequestFailedError,
1504
- WebrpcBadRouteError,
1505
- WebrpcBadMethodError,
1506
- WebrpcBadRequestError,
1507
- WebrpcBadResponseError,
1508
- WebrpcServerPanicError,
1509
- WebrpcInternalErrorError,
1510
- WebrpcClientDisconnectedError,
1511
- WebrpcStreamLostError,
1512
- WebrpcStreamFinishedError,
1513
- UnauthorizedError,
1514
- PermissionDeniedError,
1515
- SessionExpiredError,
1516
- MethodNotFoundError,
1517
- TimeoutError,
1518
- InvalidArgumentError,
1519
- NotFoundError,
1520
- UserNotFoundError,
1521
- ProjectNotFoundError,
1522
- InvalidTierError,
1523
- ProjectLimitReachedError,
1524
- NotImplementedError,
1525
- errors,
1526
- WebrpcErrorCodes,
1527
- webrpcErrorByCode,
1528
- SequenceMarketplace,
1529
- collectableKeys,
1530
- collectionKeys,
1531
- balanceQueries,
1532
- checkoutKeys,
1533
- currencyKeys,
1534
- configKeys,
1535
- builderRpcApi,
1536
- sequenceApiUrl,
1537
- builderMarketplaceApi,
1538
- getMetadataClient,
1539
- getIndexerClient,
1540
- getMarketplaceClient,
1541
- getSequenceApiClient,
1542
- LaosAPI
1543
- };
1544
- //# sourceMappingURL=chunk-7F27CJZW.js.map