@0xsequence/marketplace-sdk 0.8.11 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (530) hide show
  1. package/CHANGELOG.md +236 -2
  2. package/dist/CalendarIcon-DbQ7Vxcw.js +141 -0
  3. package/dist/CalendarIcon-DbQ7Vxcw.js.map +1 -0
  4. package/dist/CollectibleCard-C8Ae64Ab.d.ts +71 -0
  5. package/dist/_internal-BgWcRIak.js +22 -0
  6. package/dist/_internal-BgWcRIak.js.map +1 -0
  7. package/dist/abi-BKyRjVcZ.js +0 -0
  8. package/dist/{alien_swap-2B65TDGT.js → alien_swap-B_76IMma.js} +5 -5
  9. package/dist/alien_swap-B_76IMma.js.map +1 -0
  10. package/dist/api-DTIan01C.js +241 -0
  11. package/dist/api-DTIan01C.js.map +1 -0
  12. package/dist/{aqua-xyz-WMYQLAIS.js → aqua-xyz-CMN_TFY5.js} +5 -5
  13. package/dist/aqua-xyz-CMN_TFY5.js.map +1 -0
  14. package/dist/{aura-V22RV5OG.js → aura-Cye_TuHj.js} +5 -5
  15. package/dist/aura-Cye_TuHj.js.map +1 -0
  16. package/dist/{blur-GE5QOMCM.js → blur-DWDMyMpK.js} +5 -5
  17. package/dist/blur-DWDMyMpK.js.map +1 -0
  18. package/dist/builder-api-BFuZNOaN.js +28 -0
  19. package/dist/builder-api-BFuZNOaN.js.map +1 -0
  20. package/dist/builder-api-C_zj5mr3.d.ts +12 -0
  21. package/dist/builder.gen-B9wR2nvF.js +303 -0
  22. package/dist/builder.gen-B9wR2nvF.js.map +1 -0
  23. package/dist/{coinbase-NLHJMGAP.js → coinbase-ByA_XRB0.js} +5 -5
  24. package/dist/coinbase-ByA_XRB0.js.map +1 -0
  25. package/dist/{element-2LGTYYSP.js → element-b77CyXIZ.js} +5 -5
  26. package/dist/element-b77CyXIZ.js.map +1 -0
  27. package/dist/{foundation-BPN66ZTN.js → foundation-DbOrKP9Y.js} +5 -5
  28. package/dist/foundation-DbOrKP9Y.js.map +1 -0
  29. package/dist/index-21LE7OhL.d.ts +102 -0
  30. package/dist/index-BL9RUSEK.d.ts +1803 -0
  31. package/dist/index-BQsgAvtX.d.ts +2938 -0
  32. package/dist/index-BUVWziLP.d.ts +60 -0
  33. package/dist/index-ByznONYE.d.ts +187 -0
  34. package/dist/index-C39K_8SG.d.ts +1 -0
  35. package/dist/index-CLy8y5hm.d.ts +1057 -0
  36. package/dist/index-COt10OgI.d.ts +24 -0
  37. package/dist/index-D5v5iluA.d.ts +809 -0
  38. package/dist/index-DPNWNa7t.d.ts +414 -0
  39. package/dist/index-DXMfTZ1F.d.ts +7 -0
  40. package/dist/index-DaE5ZNHb.d.ts +24 -0
  41. package/dist/index-DsfCs3-x.d.ts +122 -0
  42. package/dist/index-DvpBZgor.d.ts +1 -0
  43. package/dist/index-dUb6wb4Y.d.ts +22 -0
  44. package/dist/index.css +397 -371
  45. package/dist/index.d.ts +10 -29
  46. package/dist/index.js +13 -104
  47. package/dist/{looks-rare-MZRSOPT4.js → looks-rare-C1VqNcSM.js} +5 -5
  48. package/dist/looks-rare-C1VqNcSM.js.map +1 -0
  49. package/dist/{magic-eden-PUBL6KWW.js → magic-eden-ea_AGCZr.js} +5 -5
  50. package/dist/magic-eden-ea_AGCZr.js.map +1 -0
  51. package/dist/{manifold-GA445YJ6.js → manifold-8y8J2sjT.js} +5 -5
  52. package/dist/manifold-8y8J2sjT.js.map +1 -0
  53. package/dist/marketplace-logos-CSeGcPW4.js +50 -0
  54. package/dist/marketplace-logos-CSeGcPW4.js.map +1 -0
  55. package/dist/marketplace-nwnZv9Cb.js +1913 -0
  56. package/dist/marketplace-nwnZv9Cb.js.map +1 -0
  57. package/dist/marketplace.gen-BSDIX7NZ.js +1077 -0
  58. package/dist/marketplace.gen-BSDIX7NZ.js.map +1 -0
  59. package/dist/marketplaceConfig-C6X1SUik.js +71 -0
  60. package/dist/marketplaceConfig-C6X1SUik.js.map +1 -0
  61. package/dist/{mintify-UMC5PTKC.js → mintify-LA68TzWg.js} +5 -5
  62. package/dist/mintify-LA68TzWg.js.map +1 -0
  63. package/dist/new-marketplace-types-Bfis0U4J.d.ts +1546 -0
  64. package/dist/{nftx-AX3CY3IE.js → nftx-D3Tc8nzd.js} +5 -5
  65. package/dist/nftx-D3Tc8nzd.js.map +1 -0
  66. package/dist/{okx-GNVLAE2R.js → okx-hbqg6oIJ.js} +5 -5
  67. package/dist/okx-hbqg6oIJ.js.map +1 -0
  68. package/dist/{open-sea-KI43GVEB.js → open-sea-BccuK8-t.js} +5 -5
  69. package/dist/open-sea-BccuK8-t.js.map +1 -0
  70. package/dist/options-B4QN7Xou.js +0 -0
  71. package/dist/primary-sale-C55ALnfQ.js +1264 -0
  72. package/dist/primary-sale-C55ALnfQ.js.map +1 -0
  73. package/dist/queries-CUU65uYZ.js +599 -0
  74. package/dist/queries-CUU65uYZ.js.map +1 -0
  75. package/dist/{rarible-2J3MMZJ7.js → rarible-BgTwwj9g.js} +5 -5
  76. package/dist/rarible-BgTwwj9g.js.map +1 -0
  77. package/dist/react/_internal/api/index.d.ts +4 -86
  78. package/dist/react/_internal/api/index.js +7 -150
  79. package/dist/react/_internal/databeat/index.d.ts +45 -41
  80. package/dist/react/_internal/databeat/index.js +23 -27
  81. package/dist/react/_internal/index.d.ts +7 -76
  82. package/dist/react/_internal/index.js +9 -176
  83. package/dist/react/_internal/wagmi/index.d.ts +4 -17
  84. package/dist/react/_internal/wagmi/index.js +5 -14
  85. package/dist/react/hooks/index.d.ts +18 -3652
  86. package/dist/react/hooks/index.js +23 -153
  87. package/dist/react/hooks/options/index.d.ts +4 -8
  88. package/dist/react/hooks/options/index.js +11 -21
  89. package/dist/react/index.d.ts +18 -36
  90. package/dist/react/index.js +23 -193
  91. package/dist/react/queries/index.d.ts +8 -26
  92. package/dist/react/queries/index.js +18 -51
  93. package/dist/react/ssr/index.d.ts +19 -13
  94. package/dist/react/ssr/index.js +29 -28
  95. package/dist/react/ssr/index.js.map +1 -1
  96. package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +9 -0
  97. package/dist/react/ui/components/marketplace-collectible-card/index.js +23 -0
  98. package/dist/react/ui/components/marketplace-collectible-card/utils/index.d.ts +8 -0
  99. package/dist/react/ui/components/marketplace-collectible-card/utils/index.js +10 -0
  100. package/dist/react/ui/components/marketplace-logos/index.d.ts +26 -24
  101. package/dist/react/ui/components/marketplace-logos/index.js +3 -45
  102. package/dist/react/ui/icons/index.d.ts +1 -2
  103. package/dist/react/ui/icons/index.js +10 -14
  104. package/dist/react/ui/index.d.ts +9 -116
  105. package/dist/react/ui/index.js +23 -41
  106. package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +59 -33
  107. package/dist/react/ui/modals/_internal/components/actionModal/index.js +23 -31
  108. package/dist/react-BbHBl6gg.css +80 -0
  109. package/dist/react-BbHBl6gg.css.map +1 -0
  110. package/dist/react-DAIicQPT.js +8938 -0
  111. package/dist/react-DAIicQPT.js.map +1 -0
  112. package/dist/{sequence-TGLUFEPQ.js → sequence-Do3kzb4J.js} +5 -5
  113. package/dist/sequence-Do3kzb4J.js.map +1 -0
  114. package/dist/src-Dz2CfBL0.js +8 -0
  115. package/dist/src-Dz2CfBL0.js.map +1 -0
  116. package/dist/{sudo-swap-M2O6E3TE.js → sudo-swap-B6vPKxBz.js} +5 -5
  117. package/dist/sudo-swap-B6vPKxBz.js.map +1 -0
  118. package/dist/{super-rare-UU2U4LIN.js → super-rare-eCm1SE6O.js} +5 -5
  119. package/dist/super-rare-eCm1SE6O.js.map +1 -0
  120. package/dist/token-Da4TdyUk.js +2091 -0
  121. package/dist/token-Da4TdyUk.js.map +1 -0
  122. package/dist/transaction-CcVViHEL.js +97 -0
  123. package/dist/transaction-CcVViHEL.js.map +1 -0
  124. package/dist/types/index.d.ts +3 -13
  125. package/dist/types/index.js +5 -44
  126. package/dist/types-DwWE6xOF.js +13 -0
  127. package/dist/types-DwWE6xOF.js.map +1 -0
  128. package/dist/utils/abi/index.d.ts +5 -3
  129. package/dist/utils/abi/index.js +6 -26
  130. package/dist/utils/abi/marketplace/index.d.ts +2 -805
  131. package/dist/utils/abi/marketplace/index.js +3 -11
  132. package/dist/utils/abi/primary-sale/index.d.ts +2 -1054
  133. package/dist/utils/abi/primary-sale/index.js +3 -9
  134. package/dist/utils/abi/token/index.d.ts +2 -1125
  135. package/dist/utils/abi/token/index.js +3 -11
  136. package/dist/utils/index.d.ts +8 -91
  137. package/dist/utils/index.js +11 -57
  138. package/dist/utils-BPYfgDSL.js +44 -0
  139. package/dist/utils-BPYfgDSL.js.map +1 -0
  140. package/dist/utils-CW2NA5KG.js +216 -0
  141. package/dist/utils-CW2NA5KG.js.map +1 -0
  142. package/dist/wagmi-CDzEQbfk.js +166 -0
  143. package/dist/wagmi-CDzEQbfk.js.map +1 -0
  144. package/dist/{x2y2-3W5BBMZC.js → x2y2-DD17tT91.js} +5 -5
  145. package/dist/x2y2-DD17tT91.js.map +1 -0
  146. package/dist/{zora-6EY6FUH6.js → zora-BpSG9UzS.js} +5 -5
  147. package/dist/zora-BpSG9UzS.js.map +1 -0
  148. package/eslint/use-client.js +0 -6
  149. package/package.json +36 -35
  150. package/src/index.ts +1 -2
  151. package/src/react/_internal/api/__mocks__/builder.msw.ts +5 -3
  152. package/src/react/_internal/api/__mocks__/indexer.msw.ts +9 -8
  153. package/src/react/_internal/api/__mocks__/marketplace.msw.ts +4 -6
  154. package/src/react/_internal/api/__mocks__/metadata.msw.ts +1 -1
  155. package/src/react/_internal/api/builder.gen.ts +6 -7
  156. package/src/react/_internal/api/get-query-client.ts +2 -2
  157. package/src/react/_internal/api/index.ts +2 -2
  158. package/src/react/_internal/api/marketplace.gen.ts +505 -26
  159. package/src/react/_internal/api/query-keys.ts +13 -6
  160. package/src/react/_internal/api/services.ts +42 -52
  161. package/src/react/_internal/index.ts +1 -1
  162. package/src/react/_internal/types.ts +10 -23
  163. package/src/react/_internal/utils.ts +1 -2
  164. package/src/react/_internal/wagmi/__tests__/create-config.test.ts +5 -5
  165. package/src/react/_internal/wagmi/create-config.ts +23 -9
  166. package/src/react/_internal/wagmi/get-connectors.ts +10 -5
  167. package/src/react/_internal/wallet/__tests__/wallet.test.ts +1 -1
  168. package/src/react/_internal/wallet/wallet.ts +18 -18
  169. package/src/react/hooks/__tests__/__snapshots__/useListCollections.test.tsx.snap +181 -2
  170. package/src/react/hooks/__tests__/__snapshots__/useMarketplaceConfig.test.tsx.snap +54 -6
  171. package/src/react/hooks/__tests__/useAutoSelectFeeOption.test.tsx +8 -5
  172. package/src/react/hooks/__tests__/useBalanceOfCollectible.test.tsx +1 -1
  173. package/src/react/hooks/__tests__/useCancelOrder.test.tsx +4 -4
  174. package/src/react/hooks/__tests__/useCancelTransactionSteps.test.tsx +1 -1
  175. package/src/react/hooks/__tests__/useCheckoutOptionsSalesContract.test.tsx +225 -0
  176. package/src/react/hooks/__tests__/useCollectible.test.tsx +14 -16
  177. package/src/react/hooks/__tests__/useCollection.test.tsx +4 -4
  178. package/src/react/hooks/__tests__/useCollectionBalanceDetails.test.tsx +1 -27
  179. package/src/react/hooks/__tests__/useCollectionDetails.test.tsx +1 -1
  180. package/src/react/hooks/__tests__/useCollectionDetailsPolling.test.tsx +4 -4
  181. package/src/react/hooks/__tests__/useComparePrices.test.tsx +7 -6
  182. package/src/react/hooks/__tests__/useConvertPriceToUSD.test.tsx +1 -1
  183. package/src/react/hooks/__tests__/useCountListingsForCollectible.test.tsx +2 -2
  184. package/src/react/hooks/__tests__/useCountOfCollectables.test.tsx +5 -5
  185. package/src/react/hooks/__tests__/useCountOffersForCollectible.test.tsx +2 -2
  186. package/src/react/hooks/__tests__/useCurrency.test.tsx +5 -3
  187. package/src/react/hooks/__tests__/useFilters.test.tsx +1 -1
  188. package/src/react/hooks/__tests__/useFloorOrder.test.tsx +4 -4
  189. package/src/react/hooks/__tests__/useGenerateCancelTransaction.test.tsx +5 -6
  190. package/src/react/hooks/__tests__/useGenerateListingTransaction.test.tsx +1 -1
  191. package/src/react/hooks/__tests__/useGenerateOfferTransaction.test.tsx +1 -1
  192. package/src/react/hooks/__tests__/useGenerateSellTransaction.test.tsx +1 -1
  193. package/src/react/hooks/__tests__/useGetTokenSuppliesMap.test.tsx +104 -0
  194. package/src/react/hooks/__tests__/useHighestOffer.test.tsx +4 -20
  195. package/src/react/hooks/__tests__/useInventory.test.tsx +1 -37
  196. package/src/react/hooks/__tests__/useListCollectibleActivities.test.tsx +11 -13
  197. package/src/react/hooks/__tests__/useListCollectibles.test.tsx +5 -5
  198. package/src/react/hooks/__tests__/useListCollectiblesPaginated.test.tsx +10 -15
  199. package/src/react/hooks/__tests__/useListCollectionActivities.test.tsx +13 -15
  200. package/src/react/hooks/__tests__/useListCollections.test.tsx +4 -4
  201. package/src/react/hooks/__tests__/useListListingsForCollectible.test.tsx +3 -2
  202. package/src/react/hooks/__tests__/useListMarketCardData.test.tsx +301 -0
  203. package/src/react/hooks/__tests__/useListOffersForCollectible.test.tsx +1 -1
  204. package/src/react/hooks/__tests__/useListTokenMetadata.test.tsx +111 -0
  205. package/src/react/hooks/__tests__/useLowestListing.test.tsx +1 -1
  206. package/src/react/hooks/__tests__/useMarketCurrencies.test.tsx +1 -1
  207. package/src/react/hooks/__tests__/useRoyalty.test.tsx +0 -23
  208. package/src/react/hooks/index.ts +27 -17
  209. package/src/react/hooks/options/index.ts +0 -1
  210. package/src/react/hooks/useAutoSelectFeeOption.tsx +1 -1
  211. package/src/react/hooks/useBalanceOfCollectible.tsx +14 -10
  212. package/src/react/hooks/useCancelTransactionSteps.tsx +7 -3
  213. package/src/react/hooks/useCheckoutOptionsSalesContract.tsx +67 -0
  214. package/src/react/hooks/useCollectible.tsx +64 -49
  215. package/src/react/hooks/useCollection.tsx +60 -11
  216. package/src/react/hooks/useCollectionBalanceDetails.tsx +20 -27
  217. package/src/react/hooks/useCollectionDetails.ts +69 -0
  218. package/src/react/hooks/useCollectionDetailsPolling.tsx +10 -2
  219. package/src/react/hooks/useComparePrices.tsx +18 -21
  220. package/src/react/hooks/useConvertPriceToUSD.tsx +20 -37
  221. package/src/react/hooks/useCountListingsForCollectible.tsx +64 -52
  222. package/src/react/hooks/useCountOfCollectables.tsx +61 -67
  223. package/src/react/hooks/useCountOfPrimarySaleItems.tsx +13 -0
  224. package/src/react/hooks/useCountOffersForCollectible.tsx +64 -52
  225. package/src/react/hooks/useCurrency.tsx +56 -64
  226. package/src/react/hooks/useERC721SaleMintedTokens.tsx +67 -0
  227. package/src/react/hooks/useFilterState.tsx +1 -2
  228. package/src/react/hooks/useFloorOrder.tsx +65 -37
  229. package/src/react/hooks/useGenerateCancelTransaction.tsx +17 -15
  230. package/src/react/hooks/useGenerateListingTransaction.tsx +16 -6
  231. package/src/react/hooks/useGenerateOfferTransaction.tsx +16 -7
  232. package/src/react/hooks/useGenerateSellTransaction.tsx +19 -15
  233. package/src/react/hooks/useGetReceiptFromHash.tsx +32 -3
  234. package/src/react/hooks/useGetTokenRanges.tsx +31 -0
  235. package/src/react/hooks/useGetTokenSuppliesMap.tsx +73 -0
  236. package/src/react/hooks/useHighestOffer.tsx +68 -4
  237. package/src/react/hooks/useInventory.tsx +8 -6
  238. package/src/react/hooks/useList1155ShopCardData.tsx +103 -0
  239. package/src/react/hooks/useList721ShopCardData.tsx +160 -0
  240. package/src/react/hooks/useListBalances.tsx +7 -10
  241. package/src/react/hooks/useListCollectibleActivities.tsx +89 -49
  242. package/src/react/hooks/useListCollectibles.tsx +78 -26
  243. package/src/react/hooks/useListCollectiblesPaginated.tsx +96 -63
  244. package/src/react/hooks/useListCollectionActivities.tsx +84 -49
  245. package/src/react/hooks/useListCollections.tsx +72 -18
  246. package/src/react/hooks/useListListingsForCollectible.tsx +90 -49
  247. package/src/react/hooks/useListMarketCardData.tsx +157 -0
  248. package/src/react/hooks/useListOffersForCollectible.tsx +11 -15
  249. package/src/react/hooks/useListPrimarySaleItems.ts +102 -0
  250. package/src/react/hooks/useListShopCardData.tsx +70 -0
  251. package/src/react/hooks/useListTokenMetadata.tsx +73 -0
  252. package/src/react/hooks/useLowestListing.tsx +68 -4
  253. package/src/react/hooks/useMarketCurrencies.tsx +62 -5
  254. package/src/react/hooks/useRoyalty.tsx +57 -13
  255. package/src/react/hooks/useShopCollectibleSaleData.tsx +349 -0
  256. package/src/react/hooks/useTokenSaleDetailsBatch.tsx +134 -0
  257. package/src/react/hooks/useTransferTokens.tsx +1 -1
  258. package/src/react/hooks/util/optimisticCancelUpdates.ts +5 -7
  259. package/src/react/index.ts +5 -3
  260. package/src/react/queries/balanceOfCollectible.ts +1 -1
  261. package/src/react/queries/collectible.ts +66 -0
  262. package/src/react/queries/collection.ts +55 -0
  263. package/src/react/queries/collectionDetails.ts +64 -0
  264. package/src/react/queries/countListingsForCollectible.ts +73 -0
  265. package/src/react/queries/countOfCollectables.ts +83 -0
  266. package/src/react/queries/countOfPrimarySaleItems.ts +48 -0
  267. package/src/react/queries/countOffersForCollectible.ts +73 -0
  268. package/src/react/queries/currency.ts +83 -0
  269. package/src/react/queries/floorOrder.ts +63 -0
  270. package/src/react/queries/getTokenSuppliesMap.ts +77 -0
  271. package/src/react/queries/highestOffer.ts +48 -40
  272. package/src/react/queries/index.ts +7 -4
  273. package/src/react/queries/inventory.ts +38 -4
  274. package/src/react/queries/listBalances.ts +14 -30
  275. package/src/react/queries/listCollectibleActivities.ts +97 -0
  276. package/src/react/queries/listCollectibles.ts +117 -47
  277. package/src/react/queries/listCollectiblesPaginated.ts +87 -0
  278. package/src/react/queries/listCollectionActivities.ts +95 -0
  279. package/src/react/queries/listCollections.ts +55 -10
  280. package/src/react/queries/listListingsForCollectible.ts +82 -0
  281. package/src/react/queries/listTokenMetadata.ts +47 -18
  282. package/src/react/queries/lowestListing.ts +48 -31
  283. package/src/react/queries/marketCurrencies.ts +52 -35
  284. package/src/react/queries/marketplaceConfig.ts +56 -81
  285. package/src/react/ssr/__tests__/__snapshots__/create-ssr-client.test.ts.snap +54 -6
  286. package/src/react/ssr/__tests__/create-ssr-client.test.ts +0 -3
  287. package/src/react/ssr/create-ssr-client.ts +6 -11
  288. package/src/react/types/query.ts +34 -0
  289. package/src/react/ui/components/ModelViewer.tsx +1 -1
  290. package/src/react/ui/components/_internals/action-button/ActionButton.tsx +47 -13
  291. package/src/react/ui/components/_internals/action-button/__tests__/ActionButtonBody.test.tsx +1 -1
  292. package/src/react/ui/components/_internals/action-button/__tests__/NonOwnerActions.test.tsx +28 -15
  293. package/src/react/ui/components/_internals/action-button/__tests__/OwnerActions.test.tsx +1 -1
  294. package/src/react/ui/components/_internals/action-button/__tests__/useActionButtonLogic.test.tsx +15 -9
  295. package/src/react/ui/components/_internals/action-button/components/ActionButtonBody.tsx +1 -1
  296. package/src/react/ui/components/_internals/action-button/components/NonOwnerActions.tsx +78 -15
  297. package/src/react/ui/components/_internals/action-button/components/OwnerActions.tsx +1 -1
  298. package/src/react/ui/components/_internals/action-button/hooks/useActionButtonLogic.ts +13 -16
  299. package/src/react/ui/components/_internals/action-button/store.ts +46 -18
  300. package/src/react/ui/components/marketplace-collectible-card/CollectibleCard.tsx +17 -0
  301. package/src/react/ui/components/marketplace-collectible-card/CollectibleCardSkeleton.tsx +24 -0
  302. package/src/react/ui/components/marketplace-collectible-card/Footer.tsx +231 -0
  303. package/src/react/ui/components/marketplace-collectible-card/components/ActionButtonWrapper.tsx +76 -0
  304. package/src/react/ui/components/marketplace-collectible-card/components/BaseCard.tsx +58 -0
  305. package/src/react/ui/components/marketplace-collectible-card/index.ts +3 -0
  306. package/src/react/ui/components/marketplace-collectible-card/types.ts +98 -0
  307. package/src/react/ui/components/marketplace-collectible-card/utils/formatPrice.ts +45 -0
  308. package/src/react/ui/components/marketplace-collectible-card/utils/index.ts +2 -0
  309. package/src/react/ui/components/marketplace-collectible-card/utils/supplyStatus.ts +39 -0
  310. package/src/react/ui/components/marketplace-collectible-card/variants/MarketCard.tsx +125 -0
  311. package/src/react/ui/components/marketplace-collectible-card/variants/ShopCard.tsx +102 -0
  312. package/src/react/ui/components/marketplace-logos/marketplace-logos.tsx +1 -1
  313. package/src/react/ui/components/{collectible-card/media → media}/Media.tsx +47 -26
  314. package/src/react/ui/components/{collectible-card/media → media}/types.ts +3 -1
  315. package/src/react/ui/index.ts +8 -7
  316. package/src/react/ui/modals/BuyModal/__tests__/BuyModalRouter.test.tsx +554 -0
  317. package/src/react/ui/modals/BuyModal/__tests__/ERC1155ShopModal.test.tsx +392 -0
  318. package/src/react/ui/modals/BuyModal/__tests__/ERC721ShopModal.test.tsx +272 -0
  319. package/src/react/ui/modals/BuyModal/__tests__/Modal.test.tsx.bak +112 -0
  320. package/src/react/ui/modals/BuyModal/__tests__/Modal1155.test.tsx +117 -13
  321. package/src/react/ui/modals/BuyModal/__tests__/store.test.ts +10 -7
  322. package/src/react/ui/modals/BuyModal/components/BuyModalRouter.tsx +157 -0
  323. package/src/react/ui/modals/BuyModal/components/ERC1155BuyModal.tsx +136 -0
  324. package/src/react/ui/modals/BuyModal/components/ERC1155QuantityModal.tsx +183 -0
  325. package/src/react/ui/modals/BuyModal/components/ERC1155ShopModal.tsx +121 -0
  326. package/src/react/ui/modals/BuyModal/components/ERC721BuyModal.tsx +85 -0
  327. package/src/react/ui/modals/BuyModal/components/ERC721ShopModal.tsx +86 -0
  328. package/src/react/ui/modals/BuyModal/components/Modal.tsx +14 -0
  329. package/src/react/ui/modals/BuyModal/components/types.ts +8 -0
  330. package/src/react/ui/modals/BuyModal/hooks/__tests__/useCheckoutOptions.test.tsx +5 -5
  331. package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC1155Checkout.test.tsx +379 -0
  332. package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC721SalePaymentParams.test.tsx +253 -0
  333. package/src/react/ui/modals/BuyModal/hooks/__tests__/{useFees.test.tsx → useMarketPlatformFee.test.tsx} +10 -11
  334. package/src/react/ui/modals/BuyModal/hooks/useCheckoutOptions.ts +63 -45
  335. package/src/react/ui/modals/BuyModal/hooks/useERC1155Checkout.ts +73 -0
  336. package/src/react/ui/modals/BuyModal/hooks/useERC721SalePaymentParams.ts +196 -0
  337. package/src/react/ui/modals/BuyModal/hooks/useLoadData.ts +74 -18
  338. package/src/react/ui/modals/BuyModal/hooks/useMarketPlatformFee.ts +53 -0
  339. package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +30 -15
  340. package/src/react/ui/modals/BuyModal/store.ts +147 -13
  341. package/src/react/ui/modals/CreateListingModal/Modal.tsx +1 -1
  342. package/src/react/ui/modals/CreateListingModal/__tests__/Modal.test.tsx +2 -2
  343. package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +0 -1
  344. package/src/react/ui/modals/CreateListingModal/hooks/useGetTokenApproval.ts +4 -3
  345. package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +12 -9
  346. package/src/react/ui/modals/CreateListingModal/index.tsx +1 -1
  347. package/src/react/ui/modals/MakeOfferModal/Modal.tsx +2 -2
  348. package/src/react/ui/modals/MakeOfferModal/__tests__/Modal.test.tsx +1 -1
  349. package/src/react/ui/modals/MakeOfferModal/hooks/useGetTokenApproval.tsx +3 -2
  350. package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +0 -1
  351. package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +12 -10
  352. package/src/react/ui/modals/MakeOfferModal/index.tsx +1 -1
  353. package/src/react/ui/modals/SellModal/Modal.tsx +3 -3
  354. package/src/react/ui/modals/SellModal/__tests__/Modal.test.tsx +6 -4
  355. package/src/react/ui/modals/SellModal/hooks/useGetTokenApproval.tsx +5 -4
  356. package/src/react/ui/modals/SellModal/hooks/useSell.tsx +0 -1
  357. package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +11 -8
  358. package/src/react/ui/modals/SuccessfulPurchaseModal/__tests__/Modal.test.tsx +12 -8
  359. package/src/react/ui/modals/SuccessfulPurchaseModal/index.tsx +34 -28
  360. package/src/react/ui/modals/SuccessfulPurchaseModal/store.ts +71 -0
  361. package/src/react/ui/modals/TransferModal/_store.ts +1 -7
  362. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TokenQuantityInput.tsx +2 -3
  363. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +2 -2
  364. package/src/react/ui/modals/_internal/components/actionModal/ActionModal.test.tsx +1 -2
  365. package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +107 -112
  366. package/src/react/ui/modals/_internal/components/actionModal/store.ts +45 -12
  367. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +1 -1
  368. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +0 -1
  369. package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +4 -4
  370. package/src/react/ui/modals/_internal/components/quantityInput/QuantityInputBase.tsx +166 -0
  371. package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +12 -141
  372. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/__tests__/SelectWaasFeeOptions.test.tsx +1 -1
  373. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/_components/BalanceIndicator.tsx +1 -2
  374. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/useWaasFeeOptionManager.tsx +0 -1
  375. package/src/react/ui/modals/_internal/components/switchChainModal/__tests__/SwitchChainModal.test.tsx +12 -8
  376. package/src/react/ui/modals/_internal/components/switchChainModal/index.tsx +35 -33
  377. package/src/react/ui/modals/_internal/components/switchChainModal/store.ts +61 -32
  378. package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +1 -1
  379. package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/TransactionStatusModal.test.tsx +1 -1
  380. package/src/react/ui/modals/_internal/components/transactionStatusModal/hooks/useTransactionStatus.ts +0 -1
  381. package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +1 -1
  382. package/src/react/ui/modals/_internal/components/waasFeeOptionsSelect/WaasFeeOptionsSelect.tsx +1 -1
  383. package/src/react/ui/modals/modal-provider.tsx +3 -4
  384. package/src/types/api-types.ts +36 -36
  385. package/src/types/buyModalErrors.ts +438 -0
  386. package/src/types/index.ts +5 -2
  387. package/src/types/new-marketplace-types.ts +6 -21
  388. package/src/types/sdk-config.ts +19 -24
  389. package/src/types/types.ts +17 -0
  390. package/src/types/waas-types.ts +1 -1
  391. package/src/utils/_internal/error/transaction.ts +36 -1
  392. package/src/utils/abi/index.ts +1 -1
  393. package/src/utils/abi/primary-sale/index.ts +1 -1
  394. package/src/utils/abi/token/index.ts +2 -1
  395. package/src/utils/decode/erc20.ts +1 -1
  396. package/src/utils/index.ts +3 -3
  397. package/test/const.ts +3 -1
  398. package/test/mocks/wallet.ts +1 -1
  399. package/test/test-utils.tsx +3 -4
  400. package/tsconfig.json +1 -1
  401. package/tsdown.config.ts +25 -0
  402. package/.changeset/fluffy-jokes-lay.md +0 -5
  403. package/.changeset/wise-bugs-boil.md +0 -8
  404. package/.ctirc +0 -32
  405. package/dist/alien_swap-2B65TDGT.js.map +0 -1
  406. package/dist/aqua-xyz-WMYQLAIS.js.map +0 -1
  407. package/dist/aura-V22RV5OG.js.map +0 -1
  408. package/dist/blur-GE5QOMCM.js.map +0 -1
  409. package/dist/chunk-2PSNAIAT.js +0 -1
  410. package/dist/chunk-2PSNAIAT.js.map +0 -1
  411. package/dist/chunk-5C6ZZ6WX.js +0 -130
  412. package/dist/chunk-5C6ZZ6WX.js.map +0 -1
  413. package/dist/chunk-5O44EPXZ.js +0 -207
  414. package/dist/chunk-5O44EPXZ.js.map +0 -1
  415. package/dist/chunk-6CTFVBKU.js +0 -1
  416. package/dist/chunk-6CTFVBKU.js.map +0 -1
  417. package/dist/chunk-6OPMUCGX.js +0 -42
  418. package/dist/chunk-6OPMUCGX.js.map +0 -1
  419. package/dist/chunk-FUM4OGOQ.js +0 -1027
  420. package/dist/chunk-FUM4OGOQ.js.map +0 -1
  421. package/dist/chunk-L6KWLCER.js +0 -32
  422. package/dist/chunk-L6KWLCER.js.map +0 -1
  423. package/dist/chunk-LAP2CKLN.js +0 -485
  424. package/dist/chunk-LAP2CKLN.js.map +0 -1
  425. package/dist/chunk-LECCEZAO.js +0 -11
  426. package/dist/chunk-LECCEZAO.js.map +0 -1
  427. package/dist/chunk-N7SQWS2R.js +0 -38
  428. package/dist/chunk-N7SQWS2R.js.map +0 -1
  429. package/dist/chunk-NX52D7NX.js +0 -135
  430. package/dist/chunk-NX52D7NX.js.map +0 -1
  431. package/dist/chunk-OAOONM4S.js +0 -1787
  432. package/dist/chunk-OAOONM4S.js.map +0 -1
  433. package/dist/chunk-Q3ECVC4F.js +0 -811
  434. package/dist/chunk-Q3ECVC4F.js.map +0 -1
  435. package/dist/chunk-QY52UADF.js +0 -107
  436. package/dist/chunk-QY52UADF.js.map +0 -1
  437. package/dist/chunk-TNAR3XEF.js +0 -8729
  438. package/dist/chunk-TNAR3XEF.js.map +0 -1
  439. package/dist/chunk-XABYNWXO.js +0 -549
  440. package/dist/chunk-XABYNWXO.js.map +0 -1
  441. package/dist/chunk-XX4EVWBF.js +0 -1292
  442. package/dist/chunk-XX4EVWBF.js.map +0 -1
  443. package/dist/chunk-YB5UUF2G.js +0 -11
  444. package/dist/chunk-YB5UUF2G.js.map +0 -1
  445. package/dist/chunk-YWGFI4PN.js +0 -217
  446. package/dist/chunk-YWGFI4PN.js.map +0 -1
  447. package/dist/coinbase-NLHJMGAP.js.map +0 -1
  448. package/dist/create-config-DLMvMTkZ.d.ts +0 -8
  449. package/dist/element-2LGTYYSP.js.map +0 -1
  450. package/dist/foundation-BPN66ZTN.js.map +0 -1
  451. package/dist/get-query-client-D46hbjk6.d.ts +0 -5
  452. package/dist/index.css.map +0 -1
  453. package/dist/index.js.map +0 -1
  454. package/dist/looks-rare-MZRSOPT4.js.map +0 -1
  455. package/dist/magic-eden-PUBL6KWW.js.map +0 -1
  456. package/dist/manifold-GA445YJ6.js.map +0 -1
  457. package/dist/marketCurrencies-enNVYwBk.d.ts +0 -277
  458. package/dist/marketplace.gen-D24veUQs.d.ts +0 -1073
  459. package/dist/marketplaceConfig-BwNAbLPw.d.ts +0 -21
  460. package/dist/mintify-UMC5PTKC.js.map +0 -1
  461. package/dist/new-marketplace-types-BCw19X9S.d.ts +0 -102
  462. package/dist/nftx-AX3CY3IE.js.map +0 -1
  463. package/dist/okx-GNVLAE2R.js.map +0 -1
  464. package/dist/open-sea-KI43GVEB.js.map +0 -1
  465. package/dist/rarible-2J3MMZJ7.js.map +0 -1
  466. package/dist/react/_internal/api/index.js.map +0 -1
  467. package/dist/react/_internal/databeat/index.css +0 -2764
  468. package/dist/react/_internal/databeat/index.css.map +0 -1
  469. package/dist/react/_internal/databeat/index.js.map +0 -1
  470. package/dist/react/_internal/index.js.map +0 -1
  471. package/dist/react/_internal/wagmi/index.js.map +0 -1
  472. package/dist/react/hooks/index.css +0 -2764
  473. package/dist/react/hooks/index.css.map +0 -1
  474. package/dist/react/hooks/index.js.map +0 -1
  475. package/dist/react/hooks/options/index.js.map +0 -1
  476. package/dist/react/index.css +0 -2764
  477. package/dist/react/index.css.map +0 -1
  478. package/dist/react/index.js.map +0 -1
  479. package/dist/react/queries/index.js.map +0 -1
  480. package/dist/react/ui/components/collectible-card/index.css +0 -2764
  481. package/dist/react/ui/components/collectible-card/index.css.map +0 -1
  482. package/dist/react/ui/components/collectible-card/index.d.ts +0 -71
  483. package/dist/react/ui/components/collectible-card/index.js +0 -27
  484. package/dist/react/ui/components/collectible-card/index.js.map +0 -1
  485. package/dist/react/ui/components/marketplace-logos/index.js.map +0 -1
  486. package/dist/react/ui/icons/index.js.map +0 -1
  487. package/dist/react/ui/index.css +0 -2764
  488. package/dist/react/ui/index.css.map +0 -1
  489. package/dist/react/ui/index.js.map +0 -1
  490. package/dist/react/ui/modals/_internal/components/actionModal/index.css +0 -2764
  491. package/dist/react/ui/modals/_internal/components/actionModal/index.css.map +0 -1
  492. package/dist/react/ui/modals/_internal/components/actionModal/index.js.map +0 -1
  493. package/dist/sdk-config-qorA0TgF.d.ts +0 -165
  494. package/dist/sequence-TGLUFEPQ.js.map +0 -1
  495. package/dist/services-WrshxCqc.d.ts +0 -23
  496. package/dist/sudo-swap-M2O6E3TE.js.map +0 -1
  497. package/dist/super-rare-UU2U4LIN.js.map +0 -1
  498. package/dist/types/index.js.map +0 -1
  499. package/dist/useCollection-YAdXfVO7.d.ts +0 -61
  500. package/dist/utils/abi/index.js.map +0 -1
  501. package/dist/utils/abi/marketplace/index.js.map +0 -1
  502. package/dist/utils/abi/primary-sale/index.js.map +0 -1
  503. package/dist/utils/abi/token/index.js.map +0 -1
  504. package/dist/utils/index.js.map +0 -1
  505. package/dist/x2y2-3W5BBMZC.js.map +0 -1
  506. package/dist/zora-6EY6FUH6.js.map +0 -1
  507. package/postcss.config.mjs +0 -5
  508. package/src/react/_internal/api/zod-schema.ts +0 -678
  509. package/src/react/hooks/__tests__/__snapshots__/useRoyaltyPercentage.test.tsx.snap +0 -8
  510. package/src/react/hooks/options/collectionOptions.ts +0 -41
  511. package/src/react/hooks/useCheckoutOptions.tsx +0 -65
  512. package/src/react/hooks/useCollectionDetails.tsx +0 -35
  513. package/src/react/hooks/useGetTokenSuppliesMap.ts +0 -28
  514. package/src/react/hooks/useListTokenMetadata.ts +0 -19
  515. package/src/react/queries/getTokenSupplies.ts +0 -38
  516. package/src/react/ui/components/collectible-card/CollectibleCard.tsx +0 -170
  517. package/src/react/ui/components/collectible-card/Footer.tsx +0 -157
  518. package/src/react/ui/components/collectible-card/__tests__/CollectibleCard.test.tsx +0 -94
  519. package/src/react/ui/components/collectible-card/__tests__/Footer.test.tsx +0 -136
  520. package/src/react/ui/components/collectible-card/__tests__/Media.test.tsx +0 -264
  521. package/src/react/ui/components/collectible-card/index.ts +0 -2
  522. package/src/react/ui/modals/BuyModal/ERC1155QuantityModal.tsx +0 -130
  523. package/src/react/ui/modals/BuyModal/Modal.tsx +0 -124
  524. package/src/react/ui/modals/BuyModal/__tests__/Modal.test.tsx +0 -104
  525. package/src/react/ui/modals/BuyModal/hooks/useFees.ts +0 -39
  526. package/src/react/ui/modals/SuccessfulPurchaseModal/_store.ts +0 -72
  527. package/tsconfig.tsbuildinfo +0 -1
  528. package/tsup.config.ts +0 -23
  529. /package/src/react/ui/components/{collectible-card/media → media}/MediaSkeleton.tsx +0 -0
  530. /package/src/react/ui/components/{collectible-card/media → media}/utils.ts +0 -0
@@ -0,0 +1,1913 @@
1
+ //#region src/utils/abi/marketplace/EIP2981.ts
2
+ const EIP2981_ABI = [{
3
+ inputs: [{
4
+ internalType: "uint256",
5
+ name: "",
6
+ type: "uint256"
7
+ }, {
8
+ internalType: "uint256",
9
+ name: "_saleCost",
10
+ type: "uint256"
11
+ }],
12
+ name: "royaltyInfo",
13
+ outputs: [{
14
+ internalType: "address",
15
+ name: "receiver",
16
+ type: "address"
17
+ }, {
18
+ internalType: "uint256",
19
+ name: "royaltyAmount",
20
+ type: "uint256"
21
+ }],
22
+ stateMutability: "view",
23
+ type: "function"
24
+ }];
25
+
26
+ //#endregion
27
+ //#region src/utils/abi/marketplace/sequence-marketplace-v1.ts
28
+ const SequenceMarketplaceV1_ABI = [
29
+ {
30
+ inputs: [{
31
+ internalType: "address",
32
+ name: "_owner",
33
+ type: "address"
34
+ }],
35
+ stateMutability: "nonpayable",
36
+ type: "constructor"
37
+ },
38
+ {
39
+ inputs: [],
40
+ name: "InvalidAdditionalFees",
41
+ type: "error"
42
+ },
43
+ {
44
+ inputs: [],
45
+ name: "InvalidBatchRequest",
46
+ type: "error"
47
+ },
48
+ {
49
+ inputs: [],
50
+ name: "InvalidCurrency",
51
+ type: "error"
52
+ },
53
+ {
54
+ inputs: [
55
+ {
56
+ internalType: "address",
57
+ name: "currency",
58
+ type: "address"
59
+ },
60
+ {
61
+ internalType: "uint256",
62
+ name: "quantity",
63
+ type: "uint256"
64
+ },
65
+ {
66
+ internalType: "address",
67
+ name: "owner",
68
+ type: "address"
69
+ }
70
+ ],
71
+ name: "InvalidCurrencyApproval",
72
+ type: "error"
73
+ },
74
+ {
75
+ inputs: [],
76
+ name: "InvalidExpiry",
77
+ type: "error"
78
+ },
79
+ {
80
+ inputs: [],
81
+ name: "InvalidPrice",
82
+ type: "error"
83
+ },
84
+ {
85
+ inputs: [],
86
+ name: "InvalidQuantity",
87
+ type: "error"
88
+ },
89
+ {
90
+ inputs: [{
91
+ internalType: "uint256",
92
+ name: "requestId",
93
+ type: "uint256"
94
+ }],
95
+ name: "InvalidRequestId",
96
+ type: "error"
97
+ },
98
+ {
99
+ inputs: [],
100
+ name: "InvalidRoyalty",
101
+ type: "error"
102
+ },
103
+ {
104
+ inputs: [
105
+ {
106
+ internalType: "address",
107
+ name: "tokenContract",
108
+ type: "address"
109
+ },
110
+ {
111
+ internalType: "uint256",
112
+ name: "tokenId",
113
+ type: "uint256"
114
+ },
115
+ {
116
+ internalType: "uint256",
117
+ name: "quantity",
118
+ type: "uint256"
119
+ },
120
+ {
121
+ internalType: "address",
122
+ name: "owner",
123
+ type: "address"
124
+ }
125
+ ],
126
+ name: "InvalidTokenApproval",
127
+ type: "error"
128
+ },
129
+ {
130
+ inputs: [{
131
+ internalType: "address",
132
+ name: "contractAddress",
133
+ type: "address"
134
+ }, {
135
+ internalType: "bytes4",
136
+ name: "interfaceId",
137
+ type: "bytes4"
138
+ }],
139
+ name: "UnsupportedContractInterface",
140
+ type: "error"
141
+ },
142
+ {
143
+ anonymous: false,
144
+ inputs: [
145
+ {
146
+ indexed: true,
147
+ internalType: "address",
148
+ name: "tokenContract",
149
+ type: "address"
150
+ },
151
+ {
152
+ indexed: false,
153
+ internalType: "address",
154
+ name: "recipient",
155
+ type: "address"
156
+ },
157
+ {
158
+ indexed: false,
159
+ internalType: "uint96",
160
+ name: "fee",
161
+ type: "uint96"
162
+ }
163
+ ],
164
+ name: "CustomRoyaltyChanged",
165
+ type: "event"
166
+ },
167
+ {
168
+ anonymous: false,
169
+ inputs: [{
170
+ indexed: true,
171
+ internalType: "address",
172
+ name: "previousOwner",
173
+ type: "address"
174
+ }, {
175
+ indexed: true,
176
+ internalType: "address",
177
+ name: "newOwner",
178
+ type: "address"
179
+ }],
180
+ name: "OwnershipTransferred",
181
+ type: "event"
182
+ },
183
+ {
184
+ anonymous: false,
185
+ inputs: [
186
+ {
187
+ indexed: true,
188
+ internalType: "uint256",
189
+ name: "requestId",
190
+ type: "uint256"
191
+ },
192
+ {
193
+ indexed: true,
194
+ internalType: "address",
195
+ name: "buyer",
196
+ type: "address"
197
+ },
198
+ {
199
+ indexed: true,
200
+ internalType: "address",
201
+ name: "tokenContract",
202
+ type: "address"
203
+ },
204
+ {
205
+ indexed: false,
206
+ internalType: "address",
207
+ name: "receiver",
208
+ type: "address"
209
+ },
210
+ {
211
+ indexed: false,
212
+ internalType: "uint256",
213
+ name: "quantity",
214
+ type: "uint256"
215
+ },
216
+ {
217
+ indexed: false,
218
+ internalType: "uint256",
219
+ name: "quantityRemaining",
220
+ type: "uint256"
221
+ }
222
+ ],
223
+ name: "RequestAccepted",
224
+ type: "event"
225
+ },
226
+ {
227
+ anonymous: false,
228
+ inputs: [{
229
+ indexed: true,
230
+ internalType: "uint256",
231
+ name: "requestId",
232
+ type: "uint256"
233
+ }, {
234
+ indexed: true,
235
+ internalType: "address",
236
+ name: "tokenContract",
237
+ type: "address"
238
+ }],
239
+ name: "RequestCancelled",
240
+ type: "event"
241
+ },
242
+ {
243
+ anonymous: false,
244
+ inputs: [
245
+ {
246
+ indexed: true,
247
+ internalType: "uint256",
248
+ name: "requestId",
249
+ type: "uint256"
250
+ },
251
+ {
252
+ indexed: true,
253
+ internalType: "address",
254
+ name: "creator",
255
+ type: "address"
256
+ },
257
+ {
258
+ indexed: true,
259
+ internalType: "address",
260
+ name: "tokenContract",
261
+ type: "address"
262
+ },
263
+ {
264
+ indexed: false,
265
+ internalType: "uint256",
266
+ name: "tokenId",
267
+ type: "uint256"
268
+ },
269
+ {
270
+ indexed: false,
271
+ internalType: "bool",
272
+ name: "isListing",
273
+ type: "bool"
274
+ },
275
+ {
276
+ indexed: false,
277
+ internalType: "uint256",
278
+ name: "quantity",
279
+ type: "uint256"
280
+ },
281
+ {
282
+ indexed: false,
283
+ internalType: "address",
284
+ name: "currency",
285
+ type: "address"
286
+ },
287
+ {
288
+ indexed: false,
289
+ internalType: "uint256",
290
+ name: "pricePerToken",
291
+ type: "uint256"
292
+ },
293
+ {
294
+ indexed: false,
295
+ internalType: "uint256",
296
+ name: "expiry",
297
+ type: "uint256"
298
+ }
299
+ ],
300
+ name: "RequestCreated",
301
+ type: "event"
302
+ },
303
+ {
304
+ inputs: [
305
+ {
306
+ internalType: "uint256",
307
+ name: "requestId",
308
+ type: "uint256"
309
+ },
310
+ {
311
+ internalType: "uint256",
312
+ name: "quantity",
313
+ type: "uint256"
314
+ },
315
+ {
316
+ internalType: "address",
317
+ name: "receiver",
318
+ type: "address"
319
+ },
320
+ {
321
+ internalType: "uint256[]",
322
+ name: "additionalFees",
323
+ type: "uint256[]"
324
+ },
325
+ {
326
+ internalType: "address[]",
327
+ name: "additionalFeeReceivers",
328
+ type: "address[]"
329
+ }
330
+ ],
331
+ name: "acceptRequest",
332
+ outputs: [],
333
+ stateMutability: "nonpayable",
334
+ type: "function"
335
+ },
336
+ {
337
+ inputs: [
338
+ {
339
+ internalType: "uint256[]",
340
+ name: "requestIds",
341
+ type: "uint256[]"
342
+ },
343
+ {
344
+ internalType: "uint256[]",
345
+ name: "quantities",
346
+ type: "uint256[]"
347
+ },
348
+ {
349
+ internalType: "address[]",
350
+ name: "receivers",
351
+ type: "address[]"
352
+ },
353
+ {
354
+ internalType: "uint256[]",
355
+ name: "additionalFees",
356
+ type: "uint256[]"
357
+ },
358
+ {
359
+ internalType: "address[]",
360
+ name: "additionalFeeReceivers",
361
+ type: "address[]"
362
+ }
363
+ ],
364
+ name: "acceptRequestBatch",
365
+ outputs: [],
366
+ stateMutability: "nonpayable",
367
+ type: "function"
368
+ },
369
+ {
370
+ inputs: [{
371
+ internalType: "uint256",
372
+ name: "requestId",
373
+ type: "uint256"
374
+ }],
375
+ name: "cancelRequest",
376
+ outputs: [],
377
+ stateMutability: "nonpayable",
378
+ type: "function"
379
+ },
380
+ {
381
+ inputs: [{
382
+ internalType: "uint256[]",
383
+ name: "requestIds",
384
+ type: "uint256[]"
385
+ }],
386
+ name: "cancelRequestBatch",
387
+ outputs: [],
388
+ stateMutability: "nonpayable",
389
+ type: "function"
390
+ },
391
+ {
392
+ inputs: [{
393
+ components: [
394
+ {
395
+ internalType: "bool",
396
+ name: "isListing",
397
+ type: "bool"
398
+ },
399
+ {
400
+ internalType: "bool",
401
+ name: "isERC1155",
402
+ type: "bool"
403
+ },
404
+ {
405
+ internalType: "address",
406
+ name: "tokenContract",
407
+ type: "address"
408
+ },
409
+ {
410
+ internalType: "uint256",
411
+ name: "tokenId",
412
+ type: "uint256"
413
+ },
414
+ {
415
+ internalType: "uint256",
416
+ name: "quantity",
417
+ type: "uint256"
418
+ },
419
+ {
420
+ internalType: "uint96",
421
+ name: "expiry",
422
+ type: "uint96"
423
+ },
424
+ {
425
+ internalType: "address",
426
+ name: "currency",
427
+ type: "address"
428
+ },
429
+ {
430
+ internalType: "uint256",
431
+ name: "pricePerToken",
432
+ type: "uint256"
433
+ }
434
+ ],
435
+ internalType: "struct ISequenceMarketStorage.RequestParams",
436
+ name: "request",
437
+ type: "tuple"
438
+ }],
439
+ name: "createRequest",
440
+ outputs: [{
441
+ internalType: "uint256",
442
+ name: "requestId",
443
+ type: "uint256"
444
+ }],
445
+ stateMutability: "nonpayable",
446
+ type: "function"
447
+ },
448
+ {
449
+ inputs: [{
450
+ components: [
451
+ {
452
+ internalType: "bool",
453
+ name: "isListing",
454
+ type: "bool"
455
+ },
456
+ {
457
+ internalType: "bool",
458
+ name: "isERC1155",
459
+ type: "bool"
460
+ },
461
+ {
462
+ internalType: "address",
463
+ name: "tokenContract",
464
+ type: "address"
465
+ },
466
+ {
467
+ internalType: "uint256",
468
+ name: "tokenId",
469
+ type: "uint256"
470
+ },
471
+ {
472
+ internalType: "uint256",
473
+ name: "quantity",
474
+ type: "uint256"
475
+ },
476
+ {
477
+ internalType: "uint96",
478
+ name: "expiry",
479
+ type: "uint96"
480
+ },
481
+ {
482
+ internalType: "address",
483
+ name: "currency",
484
+ type: "address"
485
+ },
486
+ {
487
+ internalType: "uint256",
488
+ name: "pricePerToken",
489
+ type: "uint256"
490
+ }
491
+ ],
492
+ internalType: "struct ISequenceMarketStorage.RequestParams[]",
493
+ name: "requests",
494
+ type: "tuple[]"
495
+ }],
496
+ name: "createRequestBatch",
497
+ outputs: [{
498
+ internalType: "uint256[]",
499
+ name: "requestIds",
500
+ type: "uint256[]"
501
+ }],
502
+ stateMutability: "nonpayable",
503
+ type: "function"
504
+ },
505
+ {
506
+ inputs: [{
507
+ internalType: "address",
508
+ name: "",
509
+ type: "address"
510
+ }],
511
+ name: "customRoyalties",
512
+ outputs: [{
513
+ internalType: "address",
514
+ name: "recipient",
515
+ type: "address"
516
+ }, {
517
+ internalType: "uint96",
518
+ name: "fee",
519
+ type: "uint96"
520
+ }],
521
+ stateMutability: "view",
522
+ type: "function"
523
+ },
524
+ {
525
+ inputs: [{
526
+ internalType: "uint256",
527
+ name: "requestId",
528
+ type: "uint256"
529
+ }],
530
+ name: "getRequest",
531
+ outputs: [{
532
+ components: [
533
+ {
534
+ internalType: "address",
535
+ name: "creator",
536
+ type: "address"
537
+ },
538
+ {
539
+ internalType: "bool",
540
+ name: "isListing",
541
+ type: "bool"
542
+ },
543
+ {
544
+ internalType: "bool",
545
+ name: "isERC1155",
546
+ type: "bool"
547
+ },
548
+ {
549
+ internalType: "address",
550
+ name: "tokenContract",
551
+ type: "address"
552
+ },
553
+ {
554
+ internalType: "uint256",
555
+ name: "tokenId",
556
+ type: "uint256"
557
+ },
558
+ {
559
+ internalType: "uint256",
560
+ name: "quantity",
561
+ type: "uint256"
562
+ },
563
+ {
564
+ internalType: "uint96",
565
+ name: "expiry",
566
+ type: "uint96"
567
+ },
568
+ {
569
+ internalType: "address",
570
+ name: "currency",
571
+ type: "address"
572
+ },
573
+ {
574
+ internalType: "uint256",
575
+ name: "pricePerToken",
576
+ type: "uint256"
577
+ }
578
+ ],
579
+ internalType: "struct ISequenceMarketStorage.Request",
580
+ name: "request",
581
+ type: "tuple"
582
+ }],
583
+ stateMutability: "view",
584
+ type: "function"
585
+ },
586
+ {
587
+ inputs: [{
588
+ internalType: "uint256[]",
589
+ name: "requestIds",
590
+ type: "uint256[]"
591
+ }],
592
+ name: "getRequestBatch",
593
+ outputs: [{
594
+ components: [
595
+ {
596
+ internalType: "address",
597
+ name: "creator",
598
+ type: "address"
599
+ },
600
+ {
601
+ internalType: "bool",
602
+ name: "isListing",
603
+ type: "bool"
604
+ },
605
+ {
606
+ internalType: "bool",
607
+ name: "isERC1155",
608
+ type: "bool"
609
+ },
610
+ {
611
+ internalType: "address",
612
+ name: "tokenContract",
613
+ type: "address"
614
+ },
615
+ {
616
+ internalType: "uint256",
617
+ name: "tokenId",
618
+ type: "uint256"
619
+ },
620
+ {
621
+ internalType: "uint256",
622
+ name: "quantity",
623
+ type: "uint256"
624
+ },
625
+ {
626
+ internalType: "uint96",
627
+ name: "expiry",
628
+ type: "uint96"
629
+ },
630
+ {
631
+ internalType: "address",
632
+ name: "currency",
633
+ type: "address"
634
+ },
635
+ {
636
+ internalType: "uint256",
637
+ name: "pricePerToken",
638
+ type: "uint256"
639
+ }
640
+ ],
641
+ internalType: "struct ISequenceMarketStorage.Request[]",
642
+ name: "requests",
643
+ type: "tuple[]"
644
+ }],
645
+ stateMutability: "view",
646
+ type: "function"
647
+ },
648
+ {
649
+ inputs: [
650
+ {
651
+ internalType: "address",
652
+ name: "tokenContract",
653
+ type: "address"
654
+ },
655
+ {
656
+ internalType: "uint256",
657
+ name: "tokenId",
658
+ type: "uint256"
659
+ },
660
+ {
661
+ internalType: "uint256",
662
+ name: "cost",
663
+ type: "uint256"
664
+ }
665
+ ],
666
+ name: "getRoyaltyInfo",
667
+ outputs: [{
668
+ internalType: "address",
669
+ name: "recipient",
670
+ type: "address"
671
+ }, {
672
+ internalType: "uint256",
673
+ name: "royalty",
674
+ type: "uint256"
675
+ }],
676
+ stateMutability: "view",
677
+ type: "function"
678
+ },
679
+ {
680
+ inputs: [{
681
+ internalType: "uint256",
682
+ name: "requestId",
683
+ type: "uint256"
684
+ }, {
685
+ internalType: "uint256",
686
+ name: "quantity",
687
+ type: "uint256"
688
+ }],
689
+ name: "isRequestValid",
690
+ outputs: [{
691
+ internalType: "bool",
692
+ name: "valid",
693
+ type: "bool"
694
+ }, {
695
+ components: [
696
+ {
697
+ internalType: "address",
698
+ name: "creator",
699
+ type: "address"
700
+ },
701
+ {
702
+ internalType: "bool",
703
+ name: "isListing",
704
+ type: "bool"
705
+ },
706
+ {
707
+ internalType: "bool",
708
+ name: "isERC1155",
709
+ type: "bool"
710
+ },
711
+ {
712
+ internalType: "address",
713
+ name: "tokenContract",
714
+ type: "address"
715
+ },
716
+ {
717
+ internalType: "uint256",
718
+ name: "tokenId",
719
+ type: "uint256"
720
+ },
721
+ {
722
+ internalType: "uint256",
723
+ name: "quantity",
724
+ type: "uint256"
725
+ },
726
+ {
727
+ internalType: "uint96",
728
+ name: "expiry",
729
+ type: "uint96"
730
+ },
731
+ {
732
+ internalType: "address",
733
+ name: "currency",
734
+ type: "address"
735
+ },
736
+ {
737
+ internalType: "uint256",
738
+ name: "pricePerToken",
739
+ type: "uint256"
740
+ }
741
+ ],
742
+ internalType: "struct ISequenceMarketStorage.Request",
743
+ name: "request",
744
+ type: "tuple"
745
+ }],
746
+ stateMutability: "view",
747
+ type: "function"
748
+ },
749
+ {
750
+ inputs: [{
751
+ internalType: "uint256[]",
752
+ name: "requestIds",
753
+ type: "uint256[]"
754
+ }, {
755
+ internalType: "uint256[]",
756
+ name: "quantities",
757
+ type: "uint256[]"
758
+ }],
759
+ name: "isRequestValidBatch",
760
+ outputs: [{
761
+ internalType: "bool[]",
762
+ name: "valid",
763
+ type: "bool[]"
764
+ }, {
765
+ components: [
766
+ {
767
+ internalType: "address",
768
+ name: "creator",
769
+ type: "address"
770
+ },
771
+ {
772
+ internalType: "bool",
773
+ name: "isListing",
774
+ type: "bool"
775
+ },
776
+ {
777
+ internalType: "bool",
778
+ name: "isERC1155",
779
+ type: "bool"
780
+ },
781
+ {
782
+ internalType: "address",
783
+ name: "tokenContract",
784
+ type: "address"
785
+ },
786
+ {
787
+ internalType: "uint256",
788
+ name: "tokenId",
789
+ type: "uint256"
790
+ },
791
+ {
792
+ internalType: "uint256",
793
+ name: "quantity",
794
+ type: "uint256"
795
+ },
796
+ {
797
+ internalType: "uint96",
798
+ name: "expiry",
799
+ type: "uint96"
800
+ },
801
+ {
802
+ internalType: "address",
803
+ name: "currency",
804
+ type: "address"
805
+ },
806
+ {
807
+ internalType: "uint256",
808
+ name: "pricePerToken",
809
+ type: "uint256"
810
+ }
811
+ ],
812
+ internalType: "struct ISequenceMarketStorage.Request[]",
813
+ name: "requests",
814
+ type: "tuple[]"
815
+ }],
816
+ stateMutability: "view",
817
+ type: "function"
818
+ },
819
+ {
820
+ inputs: [],
821
+ name: "owner",
822
+ outputs: [{
823
+ internalType: "address",
824
+ name: "",
825
+ type: "address"
826
+ }],
827
+ stateMutability: "view",
828
+ type: "function"
829
+ },
830
+ {
831
+ inputs: [],
832
+ name: "renounceOwnership",
833
+ outputs: [],
834
+ stateMutability: "nonpayable",
835
+ type: "function"
836
+ },
837
+ {
838
+ inputs: [
839
+ {
840
+ internalType: "address",
841
+ name: "tokenContract",
842
+ type: "address"
843
+ },
844
+ {
845
+ internalType: "address",
846
+ name: "recipient",
847
+ type: "address"
848
+ },
849
+ {
850
+ internalType: "uint96",
851
+ name: "fee",
852
+ type: "uint96"
853
+ }
854
+ ],
855
+ name: "setRoyaltyInfo",
856
+ outputs: [],
857
+ stateMutability: "nonpayable",
858
+ type: "function"
859
+ },
860
+ {
861
+ inputs: [{
862
+ internalType: "address",
863
+ name: "newOwner",
864
+ type: "address"
865
+ }],
866
+ name: "transferOwnership",
867
+ outputs: [],
868
+ stateMutability: "nonpayable",
869
+ type: "function"
870
+ }
871
+ ];
872
+
873
+ //#endregion
874
+ //#region src/utils/abi/marketplace/sequence-marketplace-v2.ts
875
+ const SequenceMarketplaceV2_ABI = [
876
+ {
877
+ type: "constructor",
878
+ inputs: [],
879
+ stateMutability: "nonpayable"
880
+ },
881
+ {
882
+ type: "function",
883
+ name: "acceptRequest",
884
+ inputs: [
885
+ {
886
+ name: "requestId",
887
+ type: "uint256",
888
+ internalType: "uint256"
889
+ },
890
+ {
891
+ name: "quantity",
892
+ type: "uint256",
893
+ internalType: "uint256"
894
+ },
895
+ {
896
+ name: "recipient",
897
+ type: "address",
898
+ internalType: "address"
899
+ },
900
+ {
901
+ name: "additionalFees",
902
+ type: "uint256[]",
903
+ internalType: "uint256[]"
904
+ },
905
+ {
906
+ name: "additionalFeeRecipients",
907
+ type: "address[]",
908
+ internalType: "address[]"
909
+ }
910
+ ],
911
+ outputs: [],
912
+ stateMutability: "payable"
913
+ },
914
+ {
915
+ type: "function",
916
+ name: "acceptRequestBatch",
917
+ inputs: [
918
+ {
919
+ name: "requestIds",
920
+ type: "uint256[]",
921
+ internalType: "uint256[]"
922
+ },
923
+ {
924
+ name: "quantities",
925
+ type: "uint256[]",
926
+ internalType: "uint256[]"
927
+ },
928
+ {
929
+ name: "recipients",
930
+ type: "address[]",
931
+ internalType: "address[]"
932
+ },
933
+ {
934
+ name: "additionalFees",
935
+ type: "uint256[]",
936
+ internalType: "uint256[]"
937
+ },
938
+ {
939
+ name: "additionalFeeRecipients",
940
+ type: "address[]",
941
+ internalType: "address[]"
942
+ }
943
+ ],
944
+ outputs: [],
945
+ stateMutability: "nonpayable"
946
+ },
947
+ {
948
+ type: "function",
949
+ name: "cancelRequest",
950
+ inputs: [{
951
+ name: "requestId",
952
+ type: "uint256",
953
+ internalType: "uint256"
954
+ }],
955
+ outputs: [],
956
+ stateMutability: "nonpayable"
957
+ },
958
+ {
959
+ type: "function",
960
+ name: "cancelRequestBatch",
961
+ inputs: [{
962
+ name: "requestIds",
963
+ type: "uint256[]",
964
+ internalType: "uint256[]"
965
+ }],
966
+ outputs: [],
967
+ stateMutability: "nonpayable"
968
+ },
969
+ {
970
+ type: "function",
971
+ name: "createRequest",
972
+ inputs: [{
973
+ name: "request",
974
+ type: "tuple",
975
+ internalType: "struct ISequenceMarketStorage.RequestParams",
976
+ components: [
977
+ {
978
+ name: "isListing",
979
+ type: "bool",
980
+ internalType: "bool"
981
+ },
982
+ {
983
+ name: "isERC1155",
984
+ type: "bool",
985
+ internalType: "bool"
986
+ },
987
+ {
988
+ name: "tokenContract",
989
+ type: "address",
990
+ internalType: "address"
991
+ },
992
+ {
993
+ name: "tokenId",
994
+ type: "uint256",
995
+ internalType: "uint256"
996
+ },
997
+ {
998
+ name: "quantity",
999
+ type: "uint256",
1000
+ internalType: "uint256"
1001
+ },
1002
+ {
1003
+ name: "expiry",
1004
+ type: "uint96",
1005
+ internalType: "uint96"
1006
+ },
1007
+ {
1008
+ name: "currency",
1009
+ type: "address",
1010
+ internalType: "address"
1011
+ },
1012
+ {
1013
+ name: "pricePerToken",
1014
+ type: "uint256",
1015
+ internalType: "uint256"
1016
+ }
1017
+ ]
1018
+ }],
1019
+ outputs: [{
1020
+ name: "requestId",
1021
+ type: "uint256",
1022
+ internalType: "uint256"
1023
+ }],
1024
+ stateMutability: "nonpayable"
1025
+ },
1026
+ {
1027
+ type: "function",
1028
+ name: "createRequestBatch",
1029
+ inputs: [{
1030
+ name: "requests",
1031
+ type: "tuple[]",
1032
+ internalType: "struct ISequenceMarketStorage.RequestParams[]",
1033
+ components: [
1034
+ {
1035
+ name: "isListing",
1036
+ type: "bool",
1037
+ internalType: "bool"
1038
+ },
1039
+ {
1040
+ name: "isERC1155",
1041
+ type: "bool",
1042
+ internalType: "bool"
1043
+ },
1044
+ {
1045
+ name: "tokenContract",
1046
+ type: "address",
1047
+ internalType: "address"
1048
+ },
1049
+ {
1050
+ name: "tokenId",
1051
+ type: "uint256",
1052
+ internalType: "uint256"
1053
+ },
1054
+ {
1055
+ name: "quantity",
1056
+ type: "uint256",
1057
+ internalType: "uint256"
1058
+ },
1059
+ {
1060
+ name: "expiry",
1061
+ type: "uint96",
1062
+ internalType: "uint96"
1063
+ },
1064
+ {
1065
+ name: "currency",
1066
+ type: "address",
1067
+ internalType: "address"
1068
+ },
1069
+ {
1070
+ name: "pricePerToken",
1071
+ type: "uint256",
1072
+ internalType: "uint256"
1073
+ }
1074
+ ]
1075
+ }],
1076
+ outputs: [{
1077
+ name: "requestIds",
1078
+ type: "uint256[]",
1079
+ internalType: "uint256[]"
1080
+ }],
1081
+ stateMutability: "nonpayable"
1082
+ },
1083
+ {
1084
+ type: "function",
1085
+ name: "customRoyalties",
1086
+ inputs: [{
1087
+ name: "",
1088
+ type: "address",
1089
+ internalType: "address"
1090
+ }],
1091
+ outputs: [{
1092
+ name: "recipient",
1093
+ type: "address",
1094
+ internalType: "address"
1095
+ }, {
1096
+ name: "fee",
1097
+ type: "uint96",
1098
+ internalType: "uint96"
1099
+ }],
1100
+ stateMutability: "view"
1101
+ },
1102
+ {
1103
+ type: "function",
1104
+ name: "getRequest",
1105
+ inputs: [{
1106
+ name: "requestId",
1107
+ type: "uint256",
1108
+ internalType: "uint256"
1109
+ }],
1110
+ outputs: [{
1111
+ name: "request",
1112
+ type: "tuple",
1113
+ internalType: "struct ISequenceMarketStorage.Request",
1114
+ components: [
1115
+ {
1116
+ name: "creator",
1117
+ type: "address",
1118
+ internalType: "address"
1119
+ },
1120
+ {
1121
+ name: "isListing",
1122
+ type: "bool",
1123
+ internalType: "bool"
1124
+ },
1125
+ {
1126
+ name: "isERC1155",
1127
+ type: "bool",
1128
+ internalType: "bool"
1129
+ },
1130
+ {
1131
+ name: "tokenContract",
1132
+ type: "address",
1133
+ internalType: "address"
1134
+ },
1135
+ {
1136
+ name: "tokenId",
1137
+ type: "uint256",
1138
+ internalType: "uint256"
1139
+ },
1140
+ {
1141
+ name: "quantity",
1142
+ type: "uint256",
1143
+ internalType: "uint256"
1144
+ },
1145
+ {
1146
+ name: "expiry",
1147
+ type: "uint96",
1148
+ internalType: "uint96"
1149
+ },
1150
+ {
1151
+ name: "currency",
1152
+ type: "address",
1153
+ internalType: "address"
1154
+ },
1155
+ {
1156
+ name: "pricePerToken",
1157
+ type: "uint256",
1158
+ internalType: "uint256"
1159
+ }
1160
+ ]
1161
+ }],
1162
+ stateMutability: "view"
1163
+ },
1164
+ {
1165
+ type: "function",
1166
+ name: "getRequestBatch",
1167
+ inputs: [{
1168
+ name: "requestIds",
1169
+ type: "uint256[]",
1170
+ internalType: "uint256[]"
1171
+ }],
1172
+ outputs: [{
1173
+ name: "requests",
1174
+ type: "tuple[]",
1175
+ internalType: "struct ISequenceMarketStorage.Request[]",
1176
+ components: [
1177
+ {
1178
+ name: "creator",
1179
+ type: "address",
1180
+ internalType: "address"
1181
+ },
1182
+ {
1183
+ name: "isListing",
1184
+ type: "bool",
1185
+ internalType: "bool"
1186
+ },
1187
+ {
1188
+ name: "isERC1155",
1189
+ type: "bool",
1190
+ internalType: "bool"
1191
+ },
1192
+ {
1193
+ name: "tokenContract",
1194
+ type: "address",
1195
+ internalType: "address"
1196
+ },
1197
+ {
1198
+ name: "tokenId",
1199
+ type: "uint256",
1200
+ internalType: "uint256"
1201
+ },
1202
+ {
1203
+ name: "quantity",
1204
+ type: "uint256",
1205
+ internalType: "uint256"
1206
+ },
1207
+ {
1208
+ name: "expiry",
1209
+ type: "uint96",
1210
+ internalType: "uint96"
1211
+ },
1212
+ {
1213
+ name: "currency",
1214
+ type: "address",
1215
+ internalType: "address"
1216
+ },
1217
+ {
1218
+ name: "pricePerToken",
1219
+ type: "uint256",
1220
+ internalType: "uint256"
1221
+ }
1222
+ ]
1223
+ }],
1224
+ stateMutability: "view"
1225
+ },
1226
+ {
1227
+ type: "function",
1228
+ name: "getRoyaltyInfo",
1229
+ inputs: [
1230
+ {
1231
+ name: "tokenContract",
1232
+ type: "address",
1233
+ internalType: "address"
1234
+ },
1235
+ {
1236
+ name: "tokenId",
1237
+ type: "uint256",
1238
+ internalType: "uint256"
1239
+ },
1240
+ {
1241
+ name: "cost",
1242
+ type: "uint256",
1243
+ internalType: "uint256"
1244
+ }
1245
+ ],
1246
+ outputs: [{
1247
+ name: "recipient",
1248
+ type: "address",
1249
+ internalType: "address"
1250
+ }, {
1251
+ name: "royalty",
1252
+ type: "uint256",
1253
+ internalType: "uint256"
1254
+ }],
1255
+ stateMutability: "view"
1256
+ },
1257
+ {
1258
+ type: "function",
1259
+ name: "initialize",
1260
+ inputs: [{
1261
+ name: "_owner",
1262
+ type: "address",
1263
+ internalType: "address"
1264
+ }],
1265
+ outputs: [],
1266
+ stateMutability: "nonpayable"
1267
+ },
1268
+ {
1269
+ type: "function",
1270
+ name: "invalidBeforeId",
1271
+ inputs: [{
1272
+ name: "",
1273
+ type: "address",
1274
+ internalType: "address"
1275
+ }],
1276
+ outputs: [{
1277
+ name: "",
1278
+ type: "uint256",
1279
+ internalType: "uint256"
1280
+ }],
1281
+ stateMutability: "view"
1282
+ },
1283
+ {
1284
+ type: "function",
1285
+ name: "invalidTokenBeforeId",
1286
+ inputs: [{
1287
+ name: "",
1288
+ type: "address",
1289
+ internalType: "address"
1290
+ }, {
1291
+ name: "",
1292
+ type: "address",
1293
+ internalType: "address"
1294
+ }],
1295
+ outputs: [{
1296
+ name: "",
1297
+ type: "uint256",
1298
+ internalType: "uint256"
1299
+ }],
1300
+ stateMutability: "view"
1301
+ },
1302
+ {
1303
+ type: "function",
1304
+ name: "invalidateRequests",
1305
+ inputs: [],
1306
+ outputs: [],
1307
+ stateMutability: "nonpayable"
1308
+ },
1309
+ {
1310
+ type: "function",
1311
+ name: "invalidateRequests",
1312
+ inputs: [{
1313
+ name: "tokenContract",
1314
+ type: "address",
1315
+ internalType: "address"
1316
+ }],
1317
+ outputs: [],
1318
+ stateMutability: "nonpayable"
1319
+ },
1320
+ {
1321
+ type: "function",
1322
+ name: "isRequestValid",
1323
+ inputs: [{
1324
+ name: "requestId",
1325
+ type: "uint256",
1326
+ internalType: "uint256"
1327
+ }, {
1328
+ name: "quantity",
1329
+ type: "uint256",
1330
+ internalType: "uint256"
1331
+ }],
1332
+ outputs: [{
1333
+ name: "valid",
1334
+ type: "bool",
1335
+ internalType: "bool"
1336
+ }, {
1337
+ name: "request",
1338
+ type: "tuple",
1339
+ internalType: "struct ISequenceMarketStorage.Request",
1340
+ components: [
1341
+ {
1342
+ name: "creator",
1343
+ type: "address",
1344
+ internalType: "address"
1345
+ },
1346
+ {
1347
+ name: "isListing",
1348
+ type: "bool",
1349
+ internalType: "bool"
1350
+ },
1351
+ {
1352
+ name: "isERC1155",
1353
+ type: "bool",
1354
+ internalType: "bool"
1355
+ },
1356
+ {
1357
+ name: "tokenContract",
1358
+ type: "address",
1359
+ internalType: "address"
1360
+ },
1361
+ {
1362
+ name: "tokenId",
1363
+ type: "uint256",
1364
+ internalType: "uint256"
1365
+ },
1366
+ {
1367
+ name: "quantity",
1368
+ type: "uint256",
1369
+ internalType: "uint256"
1370
+ },
1371
+ {
1372
+ name: "expiry",
1373
+ type: "uint96",
1374
+ internalType: "uint96"
1375
+ },
1376
+ {
1377
+ name: "currency",
1378
+ type: "address",
1379
+ internalType: "address"
1380
+ },
1381
+ {
1382
+ name: "pricePerToken",
1383
+ type: "uint256",
1384
+ internalType: "uint256"
1385
+ }
1386
+ ]
1387
+ }],
1388
+ stateMutability: "view"
1389
+ },
1390
+ {
1391
+ type: "function",
1392
+ name: "isRequestValidBatch",
1393
+ inputs: [{
1394
+ name: "requestIds",
1395
+ type: "uint256[]",
1396
+ internalType: "uint256[]"
1397
+ }, {
1398
+ name: "quantities",
1399
+ type: "uint256[]",
1400
+ internalType: "uint256[]"
1401
+ }],
1402
+ outputs: [{
1403
+ name: "valid",
1404
+ type: "bool[]",
1405
+ internalType: "bool[]"
1406
+ }, {
1407
+ name: "requests",
1408
+ type: "tuple[]",
1409
+ internalType: "struct ISequenceMarketStorage.Request[]",
1410
+ components: [
1411
+ {
1412
+ name: "creator",
1413
+ type: "address",
1414
+ internalType: "address"
1415
+ },
1416
+ {
1417
+ name: "isListing",
1418
+ type: "bool",
1419
+ internalType: "bool"
1420
+ },
1421
+ {
1422
+ name: "isERC1155",
1423
+ type: "bool",
1424
+ internalType: "bool"
1425
+ },
1426
+ {
1427
+ name: "tokenContract",
1428
+ type: "address",
1429
+ internalType: "address"
1430
+ },
1431
+ {
1432
+ name: "tokenId",
1433
+ type: "uint256",
1434
+ internalType: "uint256"
1435
+ },
1436
+ {
1437
+ name: "quantity",
1438
+ type: "uint256",
1439
+ internalType: "uint256"
1440
+ },
1441
+ {
1442
+ name: "expiry",
1443
+ type: "uint96",
1444
+ internalType: "uint96"
1445
+ },
1446
+ {
1447
+ name: "currency",
1448
+ type: "address",
1449
+ internalType: "address"
1450
+ },
1451
+ {
1452
+ name: "pricePerToken",
1453
+ type: "uint256",
1454
+ internalType: "uint256"
1455
+ }
1456
+ ]
1457
+ }],
1458
+ stateMutability: "view"
1459
+ },
1460
+ {
1461
+ type: "function",
1462
+ name: "owner",
1463
+ inputs: [],
1464
+ outputs: [{
1465
+ name: "",
1466
+ type: "address",
1467
+ internalType: "address"
1468
+ }],
1469
+ stateMutability: "view"
1470
+ },
1471
+ {
1472
+ type: "function",
1473
+ name: "proxiableUUID",
1474
+ inputs: [],
1475
+ outputs: [{
1476
+ name: "",
1477
+ type: "bytes32",
1478
+ internalType: "bytes32"
1479
+ }],
1480
+ stateMutability: "view"
1481
+ },
1482
+ {
1483
+ type: "function",
1484
+ name: "renounceOwnership",
1485
+ inputs: [],
1486
+ outputs: [],
1487
+ stateMutability: "nonpayable"
1488
+ },
1489
+ {
1490
+ type: "function",
1491
+ name: "setRoyaltyInfo",
1492
+ inputs: [
1493
+ {
1494
+ name: "tokenContract",
1495
+ type: "address",
1496
+ internalType: "address"
1497
+ },
1498
+ {
1499
+ name: "recipient",
1500
+ type: "address",
1501
+ internalType: "address"
1502
+ },
1503
+ {
1504
+ name: "fee",
1505
+ type: "uint96",
1506
+ internalType: "uint96"
1507
+ }
1508
+ ],
1509
+ outputs: [],
1510
+ stateMutability: "nonpayable"
1511
+ },
1512
+ {
1513
+ type: "function",
1514
+ name: "transferOwnership",
1515
+ inputs: [{
1516
+ name: "newOwner",
1517
+ type: "address",
1518
+ internalType: "address"
1519
+ }],
1520
+ outputs: [],
1521
+ stateMutability: "nonpayable"
1522
+ },
1523
+ {
1524
+ type: "function",
1525
+ name: "upgradeTo",
1526
+ inputs: [{
1527
+ name: "newImplementation",
1528
+ type: "address",
1529
+ internalType: "address"
1530
+ }],
1531
+ outputs: [],
1532
+ stateMutability: "nonpayable"
1533
+ },
1534
+ {
1535
+ type: "function",
1536
+ name: "upgradeToAndCall",
1537
+ inputs: [{
1538
+ name: "newImplementation",
1539
+ type: "address",
1540
+ internalType: "address"
1541
+ }, {
1542
+ name: "data",
1543
+ type: "bytes",
1544
+ internalType: "bytes"
1545
+ }],
1546
+ outputs: [],
1547
+ stateMutability: "payable"
1548
+ },
1549
+ {
1550
+ type: "event",
1551
+ name: "AdminChanged",
1552
+ inputs: [{
1553
+ name: "previousAdmin",
1554
+ type: "address",
1555
+ indexed: false,
1556
+ internalType: "address"
1557
+ }, {
1558
+ name: "newAdmin",
1559
+ type: "address",
1560
+ indexed: false,
1561
+ internalType: "address"
1562
+ }],
1563
+ anonymous: false
1564
+ },
1565
+ {
1566
+ type: "event",
1567
+ name: "BeaconUpgraded",
1568
+ inputs: [{
1569
+ name: "beacon",
1570
+ type: "address",
1571
+ indexed: true,
1572
+ internalType: "address"
1573
+ }],
1574
+ anonymous: false
1575
+ },
1576
+ {
1577
+ type: "event",
1578
+ name: "CustomRoyaltyChanged",
1579
+ inputs: [
1580
+ {
1581
+ name: "tokenContract",
1582
+ type: "address",
1583
+ indexed: true,
1584
+ internalType: "address"
1585
+ },
1586
+ {
1587
+ name: "recipient",
1588
+ type: "address",
1589
+ indexed: false,
1590
+ internalType: "address"
1591
+ },
1592
+ {
1593
+ name: "fee",
1594
+ type: "uint96",
1595
+ indexed: false,
1596
+ internalType: "uint96"
1597
+ }
1598
+ ],
1599
+ anonymous: false
1600
+ },
1601
+ {
1602
+ type: "event",
1603
+ name: "Initialized",
1604
+ inputs: [{
1605
+ name: "version",
1606
+ type: "uint8",
1607
+ indexed: false,
1608
+ internalType: "uint8"
1609
+ }],
1610
+ anonymous: false
1611
+ },
1612
+ {
1613
+ type: "event",
1614
+ name: "OwnershipTransferred",
1615
+ inputs: [{
1616
+ name: "previousOwner",
1617
+ type: "address",
1618
+ indexed: true,
1619
+ internalType: "address"
1620
+ }, {
1621
+ name: "newOwner",
1622
+ type: "address",
1623
+ indexed: true,
1624
+ internalType: "address"
1625
+ }],
1626
+ anonymous: false
1627
+ },
1628
+ {
1629
+ type: "event",
1630
+ name: "RequestAccepted",
1631
+ inputs: [
1632
+ {
1633
+ name: "requestId",
1634
+ type: "uint256",
1635
+ indexed: true,
1636
+ internalType: "uint256"
1637
+ },
1638
+ {
1639
+ name: "buyer",
1640
+ type: "address",
1641
+ indexed: true,
1642
+ internalType: "address"
1643
+ },
1644
+ {
1645
+ name: "tokenContract",
1646
+ type: "address",
1647
+ indexed: true,
1648
+ internalType: "address"
1649
+ },
1650
+ {
1651
+ name: "recipient",
1652
+ type: "address",
1653
+ indexed: false,
1654
+ internalType: "address"
1655
+ },
1656
+ {
1657
+ name: "quantity",
1658
+ type: "uint256",
1659
+ indexed: false,
1660
+ internalType: "uint256"
1661
+ },
1662
+ {
1663
+ name: "quantityRemaining",
1664
+ type: "uint256",
1665
+ indexed: false,
1666
+ internalType: "uint256"
1667
+ }
1668
+ ],
1669
+ anonymous: false
1670
+ },
1671
+ {
1672
+ type: "event",
1673
+ name: "RequestCancelled",
1674
+ inputs: [{
1675
+ name: "requestId",
1676
+ type: "uint256",
1677
+ indexed: true,
1678
+ internalType: "uint256"
1679
+ }, {
1680
+ name: "tokenContract",
1681
+ type: "address",
1682
+ indexed: true,
1683
+ internalType: "address"
1684
+ }],
1685
+ anonymous: false
1686
+ },
1687
+ {
1688
+ type: "event",
1689
+ name: "RequestCreated",
1690
+ inputs: [
1691
+ {
1692
+ name: "requestId",
1693
+ type: "uint256",
1694
+ indexed: true,
1695
+ internalType: "uint256"
1696
+ },
1697
+ {
1698
+ name: "creator",
1699
+ type: "address",
1700
+ indexed: true,
1701
+ internalType: "address"
1702
+ },
1703
+ {
1704
+ name: "tokenContract",
1705
+ type: "address",
1706
+ indexed: true,
1707
+ internalType: "address"
1708
+ },
1709
+ {
1710
+ name: "tokenId",
1711
+ type: "uint256",
1712
+ indexed: false,
1713
+ internalType: "uint256"
1714
+ },
1715
+ {
1716
+ name: "isListing",
1717
+ type: "bool",
1718
+ indexed: false,
1719
+ internalType: "bool"
1720
+ },
1721
+ {
1722
+ name: "quantity",
1723
+ type: "uint256",
1724
+ indexed: false,
1725
+ internalType: "uint256"
1726
+ },
1727
+ {
1728
+ name: "currency",
1729
+ type: "address",
1730
+ indexed: false,
1731
+ internalType: "address"
1732
+ },
1733
+ {
1734
+ name: "pricePerToken",
1735
+ type: "uint256",
1736
+ indexed: false,
1737
+ internalType: "uint256"
1738
+ },
1739
+ {
1740
+ name: "expiry",
1741
+ type: "uint256",
1742
+ indexed: false,
1743
+ internalType: "uint256"
1744
+ }
1745
+ ],
1746
+ anonymous: false
1747
+ },
1748
+ {
1749
+ type: "event",
1750
+ name: "RequestsInvalidated",
1751
+ inputs: [{
1752
+ name: "creator",
1753
+ type: "address",
1754
+ indexed: true,
1755
+ internalType: "address"
1756
+ }, {
1757
+ name: "invalidatedBefore",
1758
+ type: "uint256",
1759
+ indexed: true,
1760
+ internalType: "uint256"
1761
+ }],
1762
+ anonymous: false
1763
+ },
1764
+ {
1765
+ type: "event",
1766
+ name: "RequestsInvalidated",
1767
+ inputs: [
1768
+ {
1769
+ name: "creator",
1770
+ type: "address",
1771
+ indexed: true,
1772
+ internalType: "address"
1773
+ },
1774
+ {
1775
+ name: "tokenContract",
1776
+ type: "address",
1777
+ indexed: true,
1778
+ internalType: "address"
1779
+ },
1780
+ {
1781
+ name: "invalidatedBefore",
1782
+ type: "uint256",
1783
+ indexed: true,
1784
+ internalType: "uint256"
1785
+ }
1786
+ ],
1787
+ anonymous: false
1788
+ },
1789
+ {
1790
+ type: "event",
1791
+ name: "Upgraded",
1792
+ inputs: [{
1793
+ name: "implementation",
1794
+ type: "address",
1795
+ indexed: true,
1796
+ internalType: "address"
1797
+ }],
1798
+ anonymous: false
1799
+ },
1800
+ {
1801
+ type: "error",
1802
+ name: "InvalidAdditionalFees",
1803
+ inputs: []
1804
+ },
1805
+ {
1806
+ type: "error",
1807
+ name: "InvalidBatchRequest",
1808
+ inputs: []
1809
+ },
1810
+ {
1811
+ type: "error",
1812
+ name: "InvalidCurrency",
1813
+ inputs: []
1814
+ },
1815
+ {
1816
+ type: "error",
1817
+ name: "InvalidCurrencyApproval",
1818
+ inputs: [
1819
+ {
1820
+ name: "currency",
1821
+ type: "address",
1822
+ internalType: "address"
1823
+ },
1824
+ {
1825
+ name: "quantity",
1826
+ type: "uint256",
1827
+ internalType: "uint256"
1828
+ },
1829
+ {
1830
+ name: "owner",
1831
+ type: "address",
1832
+ internalType: "address"
1833
+ }
1834
+ ]
1835
+ },
1836
+ {
1837
+ type: "error",
1838
+ name: "InvalidExpiry",
1839
+ inputs: []
1840
+ },
1841
+ {
1842
+ type: "error",
1843
+ name: "InvalidPrice",
1844
+ inputs: []
1845
+ },
1846
+ {
1847
+ type: "error",
1848
+ name: "InvalidQuantity",
1849
+ inputs: []
1850
+ },
1851
+ {
1852
+ type: "error",
1853
+ name: "InvalidRequestId",
1854
+ inputs: [{
1855
+ name: "requestId",
1856
+ type: "uint256",
1857
+ internalType: "uint256"
1858
+ }]
1859
+ },
1860
+ {
1861
+ type: "error",
1862
+ name: "InvalidRoyalty",
1863
+ inputs: []
1864
+ },
1865
+ {
1866
+ type: "error",
1867
+ name: "InvalidTokenApproval",
1868
+ inputs: [
1869
+ {
1870
+ name: "tokenContract",
1871
+ type: "address",
1872
+ internalType: "address"
1873
+ },
1874
+ {
1875
+ name: "tokenId",
1876
+ type: "uint256",
1877
+ internalType: "uint256"
1878
+ },
1879
+ {
1880
+ name: "quantity",
1881
+ type: "uint256",
1882
+ internalType: "uint256"
1883
+ },
1884
+ {
1885
+ name: "owner",
1886
+ type: "address",
1887
+ internalType: "address"
1888
+ }
1889
+ ]
1890
+ },
1891
+ {
1892
+ type: "error",
1893
+ name: "Invalidated",
1894
+ inputs: []
1895
+ },
1896
+ {
1897
+ type: "error",
1898
+ name: "UnsupportedContractInterface",
1899
+ inputs: [{
1900
+ name: "contractAddress",
1901
+ type: "address",
1902
+ internalType: "address"
1903
+ }, {
1904
+ name: "interfaceId",
1905
+ type: "bytes4",
1906
+ internalType: "bytes4"
1907
+ }]
1908
+ }
1909
+ ];
1910
+
1911
+ //#endregion
1912
+ export { EIP2981_ABI, SequenceMarketplaceV1_ABI, SequenceMarketplaceV2_ABI };
1913
+ //# sourceMappingURL=marketplace-nwnZv9Cb.js.map