@0xsequence/marketplace-sdk 1.2.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1151) hide show
  1. package/.storybook/preview.tsx +4 -7
  2. package/CHANGELOG.md +192 -1
  3. package/compile-tailwind.js +1 -1
  4. package/dist/BellIcon.js +48 -0
  5. package/dist/BellIcon.js.map +1 -0
  6. package/dist/Card.js +831 -0
  7. package/dist/Card.js.map +1 -0
  8. package/dist/ShopCard.d.ts +83 -0
  9. package/dist/_internal.js +78 -0
  10. package/dist/_internal.js.map +1 -0
  11. package/dist/abi.js +157 -0
  12. package/dist/abi.js.map +1 -0
  13. package/dist/alertMessage.js +29 -0
  14. package/dist/alertMessage.js.map +1 -0
  15. package/dist/alien_swap.js +6 -0
  16. package/dist/alien_swap.js.map +1 -0
  17. package/dist/api.js +187 -0
  18. package/dist/api.js.map +1 -0
  19. package/dist/aqua-xyz.js +6 -0
  20. package/dist/aqua-xyz.js.map +1 -0
  21. package/dist/aura.js +6 -0
  22. package/dist/aura.js.map +1 -0
  23. package/dist/blur.js +6 -0
  24. package/dist/blur.js.map +1 -0
  25. package/dist/builder-api.js +41 -0
  26. package/dist/builder-api.js.map +1 -0
  27. package/dist/calendar.js +51 -0
  28. package/dist/calendar.js.map +1 -0
  29. package/dist/checkout.js +52 -0
  30. package/dist/checkout.js.map +1 -0
  31. package/dist/coinbase.js +6 -0
  32. package/dist/coinbase.js.map +1 -0
  33. package/dist/collectible.js +620 -0
  34. package/dist/collectible.js.map +1 -0
  35. package/dist/collection.js +396 -0
  36. package/dist/collection.js.map +1 -0
  37. package/dist/config.js +75 -0
  38. package/dist/config.js.map +1 -0
  39. package/dist/consts.d.ts +7 -0
  40. package/dist/consts.js +8 -0
  41. package/dist/consts.js.map +1 -0
  42. package/dist/contracts.js +116 -0
  43. package/dist/contracts.js.map +1 -0
  44. package/dist/create-config.d.ts +12255 -0
  45. package/dist/create-config.js +170 -0
  46. package/dist/create-config.js.map +1 -0
  47. package/dist/currency.js +186 -0
  48. package/dist/currency.js.map +1 -0
  49. package/dist/currencyImage.js +28 -0
  50. package/dist/currencyImage.js.map +1 -0
  51. package/dist/dist.js +2771 -0
  52. package/dist/dist.js.map +1 -0
  53. package/dist/element.js +6 -0
  54. package/dist/element.js.map +1 -0
  55. package/dist/expirationDateSelect.js +245 -0
  56. package/dist/expirationDateSelect.js.map +1 -0
  57. package/dist/filter-state.d.ts +153 -0
  58. package/dist/filters.d.ts +29 -0
  59. package/dist/foundation.js +6 -0
  60. package/dist/foundation.js.map +1 -0
  61. package/dist/hooks.js +26 -0
  62. package/dist/hooks.js.map +1 -0
  63. package/dist/hooks2.js +24 -0
  64. package/dist/hooks2.js.map +1 -0
  65. package/dist/index.d.ts +12 -8
  66. package/dist/index.js +13 -16
  67. package/dist/index10.d.ts +61 -0
  68. package/dist/index11.d.ts +639 -0
  69. package/dist/index12.d.ts +563 -0
  70. package/dist/index13.d.ts +19 -0
  71. package/dist/index14.d.ts +19 -0
  72. package/dist/index15.d.ts +25 -0
  73. package/dist/index16.d.ts +8 -0
  74. package/dist/index17.d.ts +853 -0
  75. package/dist/index18.d.ts +552 -0
  76. package/dist/index19.d.ts +338 -0
  77. package/dist/index2.d.ts +2174 -0
  78. package/dist/index21.d.ts +319 -0
  79. package/dist/index22.d.ts +230 -0
  80. package/dist/index23.d.ts +516 -0
  81. package/dist/index24.d.ts +24 -0
  82. package/dist/index26.d.ts +27 -0
  83. package/dist/index27.d.ts +25 -0
  84. package/dist/index28.d.ts +115 -0
  85. package/dist/index3.d.ts +2216 -0
  86. package/dist/index31.d.ts +48 -0
  87. package/dist/index32.d.ts +1 -0
  88. package/dist/index33.d.ts +56 -0
  89. package/dist/index34.d.ts +99 -0
  90. package/dist/index35.d.ts +171 -0
  91. package/dist/index36.d.ts +131 -0
  92. package/dist/index37.d.ts +135 -0
  93. package/dist/index38.d.ts +85 -0
  94. package/dist/index39.d.ts +91 -0
  95. package/dist/index4.d.ts +3426 -0
  96. package/dist/index40.d.ts +46 -0
  97. package/dist/index5.d.ts +809 -0
  98. package/dist/index6.d.ts +2541 -0
  99. package/dist/index7.d.ts +1803 -0
  100. package/dist/index8.d.ts +121 -0
  101. package/dist/index9.d.ts +47 -0
  102. package/dist/inventory.d.ts +46 -0
  103. package/dist/inventory.js +91 -0
  104. package/dist/inventory.js.map +1 -0
  105. package/dist/looks-rare.js +6 -0
  106. package/dist/looks-rare.js.map +1 -0
  107. package/dist/magic-eden.js +6 -0
  108. package/dist/magic-eden.js.map +1 -0
  109. package/dist/manifold.js +6 -0
  110. package/dist/manifold.js.map +1 -0
  111. package/dist/marketplace-logos.js +50 -0
  112. package/dist/marketplace-logos.js.map +1 -0
  113. package/dist/marketplace.js +1913 -0
  114. package/dist/marketplace.js.map +1 -0
  115. package/dist/marketplace2.js +70 -0
  116. package/dist/marketplace2.js.map +1 -0
  117. package/dist/metadata.d.ts +733 -0
  118. package/dist/mintify.js +6 -0
  119. package/dist/mintify.js.map +1 -0
  120. package/dist/network.js +15 -0
  121. package/dist/network.js.map +1 -0
  122. package/dist/networkconfigToWagmiChain.js +16 -0
  123. package/dist/networkconfigToWagmiChain.js.map +1 -0
  124. package/dist/nftx.js +6 -0
  125. package/dist/nftx.js.map +1 -0
  126. package/dist/okx.js +6 -0
  127. package/dist/okx.js.map +1 -0
  128. package/dist/open-sea.js +6 -0
  129. package/dist/open-sea.js.map +1 -0
  130. package/dist/primary-sale-checkout-options.d.ts +29 -0
  131. package/dist/primary-sale.js +3048 -0
  132. package/dist/primary-sale.js.map +1 -0
  133. package/dist/quantityInput.js +93 -0
  134. package/dist/quantityInput.js.map +1 -0
  135. package/dist/ranges.d.ts +125 -0
  136. package/dist/rarible.js +6 -0
  137. package/dist/rarible.js.map +1 -0
  138. package/dist/react/_internal/api/index.d.ts +5 -2
  139. package/dist/react/_internal/api/index.js +4 -7
  140. package/dist/react/_internal/databeat/index.d.ts +4 -1
  141. package/dist/react/_internal/databeat/index.js +4 -37
  142. package/dist/react/_internal/index.d.ts +5 -2
  143. package/dist/react/_internal/index.js +6 -11
  144. package/dist/react/_internal/wagmi/index.d.ts +4 -1
  145. package/dist/react/_internal/wagmi/index.js +2 -5
  146. package/dist/react/hooks/_deprecated/index.d.ts +47 -0
  147. package/dist/react/hooks/_deprecated/index.js +4 -0
  148. package/dist/react/hooks/checkout/index.d.ts +7 -0
  149. package/dist/react/hooks/checkout/index.js +7 -0
  150. package/dist/react/hooks/collectible/index.d.ts +7 -0
  151. package/dist/react/hooks/collectible/index.js +7 -0
  152. package/dist/react/hooks/collection/index.d.ts +11 -0
  153. package/dist/react/hooks/collection/index.js +7 -0
  154. package/dist/react/hooks/config/index.d.ts +9 -8
  155. package/dist/react/hooks/config/index.js +4 -37
  156. package/dist/react/hooks/contracts/index.d.ts +4 -7
  157. package/dist/react/hooks/contracts/index.js +3 -16
  158. package/dist/react/hooks/currency/index.d.ts +47 -0
  159. package/dist/react/hooks/currency/index.js +7 -0
  160. package/dist/react/hooks/index.d.ts +47 -37
  161. package/dist/react/hooks/index.js +14 -38
  162. package/dist/react/hooks/inventory/index.d.ts +7 -0
  163. package/dist/react/hooks/inventory/index.js +4 -0
  164. package/dist/react/hooks/token/index.d.ts +7 -0
  165. package/dist/react/hooks/token/index.js +7 -0
  166. package/dist/react/hooks/transactions/index.d.ts +6 -3
  167. package/dist/react/hooks/transactions/index.js +5 -38
  168. package/dist/react/hooks/ui/card-data/index.d.ts +8 -0
  169. package/dist/react/hooks/ui/card-data/index.js +4 -0
  170. package/dist/react/hooks/ui/index.d.ts +11 -5
  171. package/dist/react/hooks/ui/index.js +8 -38
  172. package/dist/react/hooks/ui/url-state/index.d.ts +7 -0
  173. package/dist/react/hooks/ui/url-state/index.js +4 -0
  174. package/dist/react/hooks/utils/index.d.ts +6 -37
  175. package/dist/react/hooks/utils/index.js +5 -38
  176. package/dist/react/index.d.ts +47 -37
  177. package/dist/react/index.js +20 -38
  178. package/dist/react/providers/index.d.ts +6 -0
  179. package/dist/react/providers/index.js +6 -0
  180. package/dist/react/queries/checkout/index.d.ts +7 -0
  181. package/dist/react/queries/checkout/index.js +4 -0
  182. package/dist/react/queries/collectible/index.d.ts +7 -0
  183. package/dist/react/queries/collectible/index.js +5 -0
  184. package/dist/react/queries/collection/index.d.ts +11 -0
  185. package/dist/react/queries/collection/index.js +4 -0
  186. package/dist/react/queries/currency/index.d.ts +6 -0
  187. package/dist/react/queries/currency/index.js +4 -0
  188. package/dist/react/queries/index.d.ts +23 -24
  189. package/dist/react/queries/index.js +11 -30
  190. package/dist/react/queries/inventory/index.d.ts +7 -3
  191. package/dist/react/queries/inventory/index.js +3 -21
  192. package/dist/react/queries/marketplace/index.d.ts +7 -0
  193. package/dist/react/queries/marketplace/index.js +5 -0
  194. package/dist/react/queries/token/index.d.ts +7 -0
  195. package/dist/react/queries/token/index.js +4 -0
  196. package/dist/react/ssr/index.d.ts +13 -25
  197. package/dist/react/ssr/index.js +13 -36
  198. package/dist/react/ui/components/marketplace-collectible-card/ActionButton/index.d.ts +6 -0
  199. package/dist/react/ui/components/marketplace-collectible-card/ActionButton/index.js +6 -0
  200. package/dist/react/ui/components/marketplace-collectible-card/Card/index.d.ts +10 -0
  201. package/dist/react/ui/components/marketplace-collectible-card/Card/index.js +6 -0
  202. package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +45 -5
  203. package/dist/react/ui/components/marketplace-collectible-card/index.js +6 -38
  204. package/dist/react/ui/components/marketplace-collectible-card/utils/index.d.ts +6 -3
  205. package/dist/react/ui/components/marketplace-collectible-card/utils/index.js +3 -12
  206. package/dist/react/ui/components/marketplace-logos/index.d.ts +23 -22
  207. package/dist/react/ui/components/marketplace-logos/index.js +1 -1
  208. package/dist/react/ui/hooks/index.d.ts +47 -0
  209. package/dist/react/ui/hooks/index.js +15 -0
  210. package/dist/react/ui/icons/index.d.ts +3 -1
  211. package/dist/react/ui/icons/index.js +3 -14
  212. package/dist/react/ui/index.d.ts +47 -5
  213. package/dist/react/ui/index.js +6 -38
  214. package/dist/react/ui/modals/BuyModal/index.d.ts +47 -0
  215. package/dist/react/ui/modals/BuyModal/index.js +4 -0
  216. package/dist/react/ui/modals/CreateListingModal/index.d.ts +4 -0
  217. package/dist/react/ui/modals/CreateListingModal/index.js +6 -0
  218. package/dist/react/ui/modals/CreateListingModal/internal/hooks/index.d.ts +190 -0
  219. package/dist/react/ui/modals/CreateListingModal/internal/hooks/index.js +4 -0
  220. package/dist/react/ui/modals/MakeOfferModal/index.d.ts +4 -0
  221. package/dist/react/ui/modals/MakeOfferModal/index.js +4 -0
  222. package/dist/react/ui/modals/MakeOfferModal/internal/hooks/index.d.ts +188 -0
  223. package/dist/react/ui/modals/MakeOfferModal/internal/hooks/index.js +3 -0
  224. package/dist/react/ui/modals/SellModal/index.d.ts +6 -0
  225. package/dist/react/ui/modals/SellModal/index.js +6 -0
  226. package/dist/react/ui/modals/TransferModal/index.d.ts +47 -0
  227. package/dist/react/ui/modals/TransferModal/index.js +6 -0
  228. package/dist/react/ui/modals/_internal/components/alertMessage/index.d.ts +14 -0
  229. package/dist/react/ui/modals/_internal/components/alertMessage/index.js +3 -0
  230. package/dist/react/ui/modals/_internal/components/baseModal/index.d.ts +144 -0
  231. package/dist/react/ui/modals/_internal/components/baseModal/index.js +6 -0
  232. package/dist/react/ui/modals/_internal/components/calendar/index.d.ts +73 -0
  233. package/dist/react/ui/modals/_internal/components/calendar/index.js +5 -0
  234. package/dist/react/ui/modals/_internal/components/calendarDropdown/index.d.ts +21 -0
  235. package/dist/react/ui/modals/_internal/components/calendarDropdown/index.js +6 -0
  236. package/dist/react/ui/modals/_internal/components/currencyImage/index.d.ts +15 -0
  237. package/dist/react/ui/modals/_internal/components/currencyImage/index.js +5 -0
  238. package/dist/react/ui/modals/_internal/components/currencyOptionsSelect/index.d.ts +30 -0
  239. package/dist/react/ui/modals/_internal/components/currencyOptionsSelect/index.js +6 -0
  240. package/dist/react/ui/modals/_internal/components/expirationDateSelect/index.d.ts +2 -0
  241. package/dist/react/ui/modals/_internal/components/expirationDateSelect/index.js +6 -0
  242. package/dist/react/ui/modals/_internal/components/floorPriceText/index.d.ts +24 -0
  243. package/dist/react/ui/modals/_internal/components/floorPriceText/index.js +6 -0
  244. package/dist/react/ui/modals/_internal/components/priceInput/index.d.ts +45 -0
  245. package/dist/react/ui/modals/_internal/components/priceInput/index.js +6 -0
  246. package/dist/react/ui/modals/_internal/components/quantityInput/index.d.ts +24 -0
  247. package/dist/react/ui/modals/_internal/components/quantityInput/index.js +6 -0
  248. package/dist/react/ui/modals/_internal/components/selectWaasFeeOptions/index.d.ts +18 -0
  249. package/dist/react/ui/modals/_internal/components/selectWaasFeeOptions/index.js +6 -0
  250. package/dist/react/ui/modals/_internal/components/switchChainErrorModal/index.d.ts +14 -0
  251. package/dist/react/ui/modals/_internal/components/switchChainErrorModal/index.js +6 -0
  252. package/dist/react/ui/modals/_internal/components/timeAgo/index.d.ts +12 -0
  253. package/dist/react/ui/modals/_internal/components/timeAgo/index.js +5 -0
  254. package/dist/react/ui/modals/_internal/components/tokenPreview/index.d.ts +19 -0
  255. package/dist/react/ui/modals/_internal/components/tokenPreview/index.js +6 -0
  256. package/dist/react/ui/modals/_internal/components/transaction-footer/index.d.ts +26 -0
  257. package/dist/react/ui/modals/_internal/components/transaction-footer/index.js +4 -0
  258. package/dist/react/ui/modals/_internal/components/transactionDetails/index.d.ts +28 -0
  259. package/dist/react/ui/modals/_internal/components/transactionDetails/index.js +6 -0
  260. package/dist/react/ui/modals/_internal/components/transactionHeader/index.d.ts +16 -0
  261. package/dist/react/ui/modals/_internal/components/transactionHeader/index.js +3 -0
  262. package/dist/react/ui/modals/_internal/components/transactionPreview/index.d.ts +36 -0
  263. package/dist/react/ui/modals/_internal/components/transactionPreview/index.js +6 -0
  264. package/dist/react/ui/modals/_internal/components/transactionStatusModal/index.d.ts +27 -0
  265. package/dist/react/ui/modals/_internal/components/transactionStatusModal/index.js +6 -0
  266. package/dist/react/utils/index.d.ts +6 -19
  267. package/dist/react/utils/index.js +3 -8
  268. package/dist/react.js +16224 -0
  269. package/dist/react.js.map +1 -0
  270. package/dist/sequence.js +6 -0
  271. package/dist/sequence.js.map +1 -0
  272. package/dist/ssr.js +26 -0
  273. package/dist/ssr.js.map +1 -0
  274. package/dist/steps.d.ts +85 -0
  275. package/dist/styles/index.css +2040 -375
  276. package/dist/sudo-swap.js +6 -0
  277. package/dist/sudo-swap.js.map +1 -0
  278. package/dist/super-rare.js +6 -0
  279. package/dist/super-rare.js.map +1 -0
  280. package/dist/switchChainErrorModal.js +97 -0
  281. package/dist/switchChainErrorModal.js.map +1 -0
  282. package/dist/timeAgo.js +29 -0
  283. package/dist/timeAgo.js.map +1 -0
  284. package/dist/token-balances.d.ts +359 -0
  285. package/dist/token-balances.js +62 -0
  286. package/dist/token-balances.js.map +1 -0
  287. package/dist/token.js +2091 -0
  288. package/dist/token.js.map +1 -0
  289. package/dist/token2.js +247 -0
  290. package/dist/token2.js.map +1 -0
  291. package/dist/transaction-footer.js +45 -0
  292. package/dist/transaction-footer.js.map +1 -0
  293. package/dist/transaction.js +70 -0
  294. package/dist/transaction.js.map +1 -0
  295. package/dist/transactionHeader.js +32 -0
  296. package/dist/transactionHeader.js.map +1 -0
  297. package/dist/types/index.d.ts +5 -2
  298. package/dist/types/index.js +3 -4
  299. package/dist/types.d.ts +88 -0
  300. package/dist/types.js +41 -0
  301. package/dist/types.js.map +1 -0
  302. package/dist/url-state.js +170 -0
  303. package/dist/url-state.js.map +1 -0
  304. package/dist/utils/abi/index.d.ts +6 -5
  305. package/dist/utils/abi/index.js +5 -5
  306. package/dist/utils/abi/marketplace/index.d.ts +1 -1
  307. package/dist/utils/abi/marketplace/index.js +1 -1
  308. package/dist/utils/abi/primary-sale/index.d.ts +1 -1
  309. package/dist/utils/abi/primary-sale/index.js +1 -1
  310. package/dist/utils/abi/token/index.d.ts +1 -1
  311. package/dist/utils/abi/token/index.js +1 -1
  312. package/dist/utils/index.d.ts +9 -7
  313. package/dist/utils/index.js +9 -13
  314. package/dist/utils.js +230 -0
  315. package/dist/utils.js.map +1 -0
  316. package/dist/utils2.js +76 -0
  317. package/dist/utils2.js.map +1 -0
  318. package/dist/waas-types.d.ts +19 -0
  319. package/dist/wagmi.js +0 -0
  320. package/dist/x2y2.js +6 -0
  321. package/dist/x2y2.js.map +1 -0
  322. package/dist/xstate-store.cjs.d.ts +18 -0
  323. package/dist/zora.js +6 -0
  324. package/dist/zora.js.map +1 -0
  325. package/eslint/sequence-types.js +1069 -0
  326. package/eslint.config.mjs +337 -9
  327. package/image.d.ts +5 -0
  328. package/package.json +52 -50
  329. package/postcss.config.mjs +1 -1
  330. package/preserve-directives.ts +235 -0
  331. package/public/mockServiceWorker.js +0 -1
  332. package/src/react/_internal/api/builder-api.ts +26 -4
  333. package/src/react/_internal/api/index.ts +1 -2
  334. package/src/react/_internal/api/marketplace-api.ts +57 -25
  335. package/src/react/_internal/api/services.ts +56 -4
  336. package/src/react/_internal/api-mocks.ts +8 -0
  337. package/src/react/_internal/databeat/index.ts +4 -0
  338. package/src/react/_internal/databeat/types.ts +24 -28
  339. package/src/react/_internal/index.ts +70 -0
  340. package/src/react/_internal/query-builder.ts +203 -0
  341. package/src/react/_internal/types.ts +88 -18
  342. package/src/react/_internal/utils.ts +34 -52
  343. package/src/react/_internal/wagmi/__tests__/create-config.test.ts +11 -5
  344. package/src/react/_internal/wagmi/create-config.ts +2 -2
  345. package/src/react/_internal/wagmi/get-connectors.ts +22 -7
  346. package/src/react/hooks/_deprecated/index.ts +61 -0
  347. package/src/react/hooks/checkout/index.ts +1 -0
  348. package/src/react/hooks/checkout/primary-sale-checkout-options.test.tsx +206 -0
  349. package/src/react/hooks/checkout/primary-sale-checkout-options.tsx +111 -0
  350. package/src/react/hooks/collectible/balance.test.tsx +149 -0
  351. package/src/react/hooks/collectible/balance.tsx +39 -0
  352. package/src/react/hooks/collectible/erc721-sale-details.tsx +184 -0
  353. package/src/react/hooks/collectible/index.ts +16 -0
  354. package/src/react/hooks/collectible/market-count.test.tsx +133 -0
  355. package/src/react/hooks/collectible/market-count.tsx +75 -0
  356. package/src/react/hooks/collectible/market-highest-offer.test.tsx +112 -0
  357. package/src/react/hooks/collectible/market-highest-offer.tsx +74 -0
  358. package/src/react/hooks/collectible/market-list-paginated.test.tsx +211 -0
  359. package/src/react/hooks/collectible/market-list-paginated.tsx +109 -0
  360. package/src/react/hooks/collectible/market-list.test.tsx +243 -0
  361. package/src/react/hooks/collectible/market-list.tsx +79 -0
  362. package/src/react/hooks/collectible/market-listings-count.test.tsx +110 -0
  363. package/src/react/hooks/collectible/market-listings-count.tsx +75 -0
  364. package/src/react/hooks/collectible/market-listings.test.tsx +140 -0
  365. package/src/react/hooks/collectible/market-listings.tsx +99 -0
  366. package/src/react/hooks/collectible/market-lowest-listing.test.tsx +157 -0
  367. package/src/react/hooks/collectible/market-lowest-listing.tsx +74 -0
  368. package/src/react/hooks/collectible/market-offers-count.test.tsx +110 -0
  369. package/src/react/hooks/collectible/market-offers-count.tsx +75 -0
  370. package/src/react/hooks/collectible/market-offers.test.tsx +139 -0
  371. package/src/react/hooks/collectible/market-offers.tsx +79 -0
  372. package/src/react/hooks/collectible/metadata.test.tsx +119 -0
  373. package/src/react/hooks/collectible/metadata.tsx +72 -0
  374. package/src/react/hooks/collectible/primary-sale-item.test.tsx +503 -0
  375. package/src/react/hooks/collectible/primary-sale-item.tsx +69 -0
  376. package/src/react/hooks/collectible/primary-sale-items-count.test.tsx +154 -0
  377. package/src/react/hooks/collectible/primary-sale-items-count.tsx +22 -0
  378. package/src/react/hooks/collectible/primary-sale-items.test.tsx +259 -0
  379. package/src/react/hooks/collectible/primary-sale-items.tsx +66 -0
  380. package/src/react/hooks/collectible/token-balances.test.tsx +175 -0
  381. package/src/react/hooks/collectible/token-balances.tsx +38 -0
  382. package/src/react/hooks/collection/__snapshots__/list.test.tsx.snap +303 -0
  383. package/src/react/hooks/collection/balance-details.test.tsx +163 -0
  384. package/src/react/hooks/collection/balance-details.tsx +106 -0
  385. package/src/react/hooks/collection/index.ts +11 -0
  386. package/src/react/hooks/collection/list.test.tsx +111 -0
  387. package/src/react/hooks/collection/list.tsx +80 -0
  388. package/src/react/hooks/collection/market-detail-polling.test.tsx +146 -0
  389. package/src/react/hooks/collection/market-detail-polling.tsx +65 -0
  390. package/src/react/hooks/collection/market-filtered-count.test.tsx +121 -0
  391. package/src/react/hooks/collection/market-filtered-count.tsx +39 -0
  392. package/src/react/hooks/collection/market-floor.test.tsx +104 -0
  393. package/src/react/hooks/collection/market-floor.tsx +74 -0
  394. package/src/react/hooks/collection/market-items-count.test.tsx +121 -0
  395. package/src/react/hooks/collection/market-items-count.tsx +90 -0
  396. package/src/react/hooks/collection/market-items-paginated.test.tsx +142 -0
  397. package/src/react/hooks/collection/market-items-paginated.tsx +110 -0
  398. package/src/react/hooks/collection/market-items.test.tsx +184 -0
  399. package/src/react/hooks/collection/market-items.tsx +95 -0
  400. package/src/react/hooks/collection/metadata.test.tsx +103 -0
  401. package/src/react/hooks/collection/metadata.tsx +75 -0
  402. package/src/react/hooks/collection/useCollectionActiveListingsCurrencies.test.tsx +150 -0
  403. package/src/react/hooks/collection/useCollectionActiveListingsCurrencies.tsx +74 -0
  404. package/src/react/hooks/collection/useCollectionActiveOffersCurrencies.test.tsx +150 -0
  405. package/src/react/hooks/collection/useCollectionActiveOffersCurrencies.tsx +74 -0
  406. package/src/react/hooks/config/__snapshots__/useMarketplaceConfig.test.tsx.snap +12 -11
  407. package/src/react/hooks/config/useConnectorMetadata.tsx +1 -1
  408. package/src/react/hooks/config/useMarketplaceConfig.test.tsx +3 -1
  409. package/src/react/hooks/config/useMarketplaceConfig.tsx +1 -1
  410. package/src/react/hooks/contracts/index.ts +1 -0
  411. package/src/react/hooks/contracts/useERC721Owner.test.tsx +82 -0
  412. package/src/react/hooks/contracts/useERC721Owner.tsx +47 -0
  413. package/src/react/hooks/contracts/useSalesContractABI.ts +2 -2
  414. package/src/react/hooks/currency/compare-prices.test.tsx +221 -0
  415. package/src/react/hooks/currency/compare-prices.tsx +104 -0
  416. package/src/react/hooks/currency/convert-to-usd.test.tsx +173 -0
  417. package/src/react/hooks/currency/convert-to-usd.tsx +96 -0
  418. package/src/react/hooks/currency/currency.test.tsx +131 -0
  419. package/src/react/hooks/currency/currency.tsx +65 -0
  420. package/src/react/hooks/currency/index.ts +4 -0
  421. package/src/react/hooks/currency/list.test.tsx +191 -0
  422. package/src/react/hooks/currency/list.tsx +65 -0
  423. package/src/react/hooks/data/orders/useOrders.test.tsx +143 -0
  424. package/src/react/hooks/data/orders/useOrders.tsx +73 -0
  425. package/src/react/hooks/data/tokens/useCurrencyBalance.tsx +1 -1
  426. package/src/react/hooks/index.ts +9 -12
  427. package/src/react/hooks/inventory/index.ts +1 -0
  428. package/src/react/hooks/inventory/inventory.test.tsx +160 -0
  429. package/src/react/hooks/inventory/inventory.tsx +17 -0
  430. package/src/react/hooks/token/balances.test.tsx +111 -0
  431. package/src/react/hooks/token/balances.tsx +59 -0
  432. package/src/react/hooks/token/currency-balance.test.tsx +83 -0
  433. package/src/react/hooks/token/currency-balance.tsx +151 -0
  434. package/src/react/hooks/token/index.ts +5 -0
  435. package/src/react/hooks/token/metadata-search.test.tsx +292 -0
  436. package/src/react/hooks/token/metadata-search.tsx +192 -0
  437. package/src/react/hooks/token/metadata.test.tsx +140 -0
  438. package/src/react/hooks/token/metadata.tsx +73 -0
  439. package/src/react/hooks/token/ranges.test.tsx +112 -0
  440. package/src/react/hooks/token/ranges.tsx +93 -0
  441. package/src/react/hooks/transactions/index.ts +5 -0
  442. package/src/react/hooks/transactions/useBuyTransaction.tsx +95 -0
  443. package/src/react/hooks/transactions/useCancelOrder.test.tsx +15 -35
  444. package/src/react/hooks/transactions/useCancelOrder.tsx +3 -9
  445. package/src/react/hooks/transactions/useCancelTransactionSteps.tsx +3 -9
  446. package/src/react/hooks/transactions/useGenerateCancelTransaction.test.tsx +23 -12
  447. package/src/react/hooks/transactions/useGenerateCancelTransaction.tsx +16 -11
  448. package/src/react/hooks/transactions/useGenerateListingTransaction.test.tsx +17 -57
  449. package/src/react/hooks/transactions/useGenerateListingTransaction.tsx +17 -12
  450. package/src/react/hooks/transactions/useGenerateOfferTransaction.test.tsx +14 -15
  451. package/src/react/hooks/transactions/useGenerateOfferTransaction.tsx +11 -11
  452. package/src/react/hooks/transactions/useGenerateSellTransaction.test.tsx +28 -38
  453. package/src/react/hooks/transactions/useGenerateSellTransaction.tsx +16 -15
  454. package/src/react/hooks/transactions/useMarketTransactionSteps.test.tsx +105 -0
  455. package/src/react/hooks/transactions/useMarketTransactionSteps.tsx +89 -0
  456. package/src/react/hooks/transactions/useOrderSteps.tsx +23 -36
  457. package/src/react/hooks/transactions/usePrimarySaleTransactionSteps.ts +196 -0
  458. package/src/react/hooks/transactions/useProcessStep.test.tsx +63 -59
  459. package/src/react/hooks/transactions/useProcessStep.ts +52 -54
  460. package/src/react/hooks/transactions/useTransactionExecution.test.tsx +99 -0
  461. package/src/react/hooks/transactions/useTransactionExecution.ts +31 -0
  462. package/src/react/hooks/transactions/useTransactionType.ts +20 -0
  463. package/src/react/hooks/transactions/useTransferTokens.test.tsx +16 -16
  464. package/src/react/hooks/transactions/useTransferTokens.tsx +17 -5
  465. package/src/react/hooks/ui/card-data/index.ts +4 -0
  466. package/src/react/hooks/ui/card-data/market-card-data-paged.test.tsx +375 -0
  467. package/src/react/hooks/ui/card-data/market-card-data-paged.tsx +265 -0
  468. package/src/react/hooks/ui/card-data/market-card-data.test.tsx +299 -0
  469. package/src/react/hooks/ui/card-data/market-card-data.tsx +178 -0
  470. package/src/react/hooks/ui/card-data/primary-sale-1155-card-data.tsx +89 -0
  471. package/src/react/hooks/ui/card-data/primary-sale-721-card-data.tsx +227 -0
  472. package/src/react/hooks/ui/index.ts +3 -1
  473. package/src/react/hooks/ui/url-state/filter-state.test.tsx +569 -0
  474. package/src/react/hooks/ui/url-state/filter-state.tsx +264 -0
  475. package/src/react/hooks/ui/url-state/index.ts +1 -0
  476. package/src/react/hooks/ui/useCollectibleCardOfferState.test.tsx +75 -0
  477. package/src/react/hooks/ui/useCollectibleCardOfferState.ts +47 -0
  478. package/src/react/hooks/ui/useFilters.test.tsx +4 -1
  479. package/src/react/hooks/ui/useFilters.tsx +2 -2
  480. package/src/react/hooks/util/optimisticCancelUpdates.test.ts +489 -0
  481. package/src/react/hooks/util/optimisticCancelUpdates.ts +21 -22
  482. package/src/react/hooks/utils/index.ts +0 -4
  483. package/src/react/hooks/utils/useAutoSelectFeeOption.test.tsx +8 -5
  484. package/src/react/hooks/utils/useAutoSelectFeeOption.tsx +33 -17
  485. package/src/react/hooks/utils/useRoyalty.test.tsx +1 -1
  486. package/src/react/hooks/utils/useRoyalty.tsx +99 -34
  487. package/src/react/hooks/utils/useWaasFeeOptions.tsx +234 -0
  488. package/src/react/hooks/utils/waasFeeOptionsStore.ts +141 -0
  489. package/src/react/index.ts +3 -0
  490. package/src/react/providers/index.tsx +3 -3
  491. package/src/react/providers/modal-provider.tsx +6 -17
  492. package/src/react/providers/provider.test.tsx +1 -1
  493. package/src/react/providers/shadow-root.tsx +1 -1
  494. package/src/react/providers/theme-provider.tsx +1 -1
  495. package/src/react/queries/checkout/index.ts +1 -0
  496. package/src/react/queries/checkout/primary-sale-checkout-options.ts +118 -0
  497. package/src/react/queries/collectible/balance.ts +113 -0
  498. package/src/react/queries/collectible/index.ts +15 -0
  499. package/src/react/queries/collectible/market-count.ts +91 -0
  500. package/src/react/queries/collectible/market-highest-offer.ts +74 -0
  501. package/src/react/queries/collectible/market-list-paginated.ts +110 -0
  502. package/src/react/queries/collectible/market-list.ts +116 -0
  503. package/src/react/queries/collectible/market-listings-count.ts +70 -0
  504. package/src/react/queries/collectible/market-listings.ts +71 -0
  505. package/src/react/queries/collectible/market-lowest-listing.ts +74 -0
  506. package/src/react/queries/collectible/market-offers-count.ts +70 -0
  507. package/src/react/queries/collectible/market-offers.ts +90 -0
  508. package/src/react/queries/collectible/metadata.ts +84 -0
  509. package/src/react/queries/collectible/primary-sale-item.ts +79 -0
  510. package/src/react/queries/collectible/primary-sale-items-count.ts +67 -0
  511. package/src/react/queries/collectible/primary-sale-items.ts +96 -0
  512. package/src/react/queries/collectible/queryKeys.ts +12 -0
  513. package/src/react/queries/collectible/token-balances.ts +83 -0
  514. package/src/react/queries/collection/activeListingsCurrencies.ts +74 -0
  515. package/src/react/queries/collection/activeOffersCurrencies.ts +74 -0
  516. package/src/react/queries/collection/balance-details.ts +103 -0
  517. package/src/react/queries/collection/index.ts +9 -0
  518. package/src/react/queries/collection/list.ts +195 -0
  519. package/src/react/queries/collection/market-detail.ts +60 -0
  520. package/src/react/queries/collection/market-filtered-count.ts +67 -0
  521. package/src/react/queries/collection/market-floor.ts +58 -0
  522. package/src/react/queries/collection/market-items-count.ts +69 -0
  523. package/src/react/queries/collection/market-items-paginated.ts +84 -0
  524. package/src/react/queries/collection/market-items.ts +72 -0
  525. package/src/react/queries/collection/metadata.ts +60 -0
  526. package/src/react/queries/collection/queryKeys.ts +12 -0
  527. package/src/react/queries/currency/compare-prices.ts +122 -0
  528. package/src/react/queries/currency/convert-to-usd.ts +99 -0
  529. package/src/react/queries/currency/currency.ts +82 -0
  530. package/src/react/queries/currency/index.ts +4 -0
  531. package/src/react/queries/currency/list.ts +100 -0
  532. package/src/react/queries/index.ts +6 -7
  533. package/src/react/queries/inventory/inventory.ts +139 -91
  534. package/src/react/queries/marketplace/config.ts +85 -0
  535. package/src/react/queries/marketplace/filters.ts +139 -0
  536. package/src/react/queries/marketplace/index.ts +2 -0
  537. package/src/react/queries/marketplace/queryKeys.ts +12 -0
  538. package/src/react/queries/orders.ts +48 -0
  539. package/src/react/queries/token/balances.ts +107 -0
  540. package/src/react/queries/token/index.ts +5 -0
  541. package/src/react/queries/token/metadata-search.ts +95 -0
  542. package/src/react/queries/token/metadata.ts +80 -0
  543. package/src/react/queries/token/queryKeys.ts +12 -0
  544. package/src/react/queries/token/ranges.ts +74 -0
  545. package/src/react/queries/token/supplies.ts +86 -0
  546. package/src/react/ssr/__tests__/__snapshots__/create-ssr-client.test.ts.snap +11 -10
  547. package/src/react/ssr/create-ssr-client.ts +1 -1
  548. package/src/react/ssr/index.ts +5 -0
  549. package/src/react/types/query.ts +8 -7
  550. package/src/react/ui/components/_internals/ErrorDisplay.tsx +87 -0
  551. package/src/react/ui/components/_internals/ErrorLogBox.tsx +8 -1
  552. package/src/react/ui/components/_internals/custom-select/CustomSelect.tsx +13 -14
  553. package/src/react/ui/components/_internals/pill/__tests__/Pill.test.tsx +9 -5
  554. package/src/react/ui/components/marketplace-collectible-card/ActionButton/ActionButton.stories.tsx +293 -0
  555. package/src/react/ui/components/marketplace-collectible-card/ActionButton/ActionButton.tsx +114 -0
  556. package/src/react/ui/components/marketplace-collectible-card/ActionButton/__tests__/ActionButtonBody.test.tsx +106 -0
  557. package/src/react/ui/components/marketplace-collectible-card/ActionButton/__tests__/NonOwnerActions.test.tsx +70 -0
  558. package/src/react/ui/components/marketplace-collectible-card/ActionButton/__tests__/OwnerActions.test.tsx +68 -0
  559. package/src/react/ui/components/marketplace-collectible-card/ActionButton/__tests__/useActionButtonLogic.test.tsx +101 -0
  560. package/src/react/ui/components/marketplace-collectible-card/ActionButton/components/ActionButtonBody.tsx +57 -0
  561. package/src/react/ui/components/marketplace-collectible-card/ActionButton/components/NonOwnerActions.tsx +136 -0
  562. package/src/react/ui/components/marketplace-collectible-card/ActionButton/components/OwnerActions.tsx +91 -0
  563. package/src/react/ui/components/marketplace-collectible-card/ActionButton/hooks/useActionButtonLogic.ts +97 -0
  564. package/src/react/ui/components/marketplace-collectible-card/ActionButton/index.ts +1 -0
  565. package/src/react/ui/components/marketplace-collectible-card/ActionButton/store.ts +85 -0
  566. package/src/react/ui/components/marketplace-collectible-card/Card/card-badge.tsx +37 -0
  567. package/src/react/ui/components/marketplace-collectible-card/Card/card-content.tsx +27 -0
  568. package/src/react/ui/components/marketplace-collectible-card/Card/card-footer.tsx +38 -0
  569. package/src/react/ui/components/marketplace-collectible-card/Card/card-media.tsx +69 -0
  570. package/src/react/ui/components/marketplace-collectible-card/Card/card-price.tsx +44 -0
  571. package/src/react/ui/components/marketplace-collectible-card/Card/card-sale-details.tsx +37 -0
  572. package/src/react/ui/components/marketplace-collectible-card/Card/card-skeleton.tsx +39 -0
  573. package/src/react/ui/components/marketplace-collectible-card/Card/card-title.tsx +109 -0
  574. package/src/react/ui/components/marketplace-collectible-card/Card/card.tsx +51 -0
  575. package/src/react/ui/components/marketplace-collectible-card/Card/index.ts +30 -0
  576. package/src/react/ui/components/marketplace-collectible-card/CollectibleCardSkeleton.tsx +1 -1
  577. package/src/react/ui/components/marketplace-collectible-card/_internals/PriceDisplay.tsx +87 -0
  578. package/src/react/ui/components/marketplace-collectible-card/constants.ts +20 -0
  579. package/src/react/ui/components/marketplace-collectible-card/index.ts +6 -0
  580. package/src/react/ui/components/marketplace-collectible-card/types.ts +31 -16
  581. package/src/react/ui/components/marketplace-collectible-card/utils/determineCardAction.ts +63 -0
  582. package/src/react/ui/components/marketplace-collectible-card/utils/formatPrice.ts +71 -2
  583. package/src/react/ui/components/marketplace-collectible-card/utils/index.ts +3 -0
  584. package/src/react/ui/components/marketplace-collectible-card/utils/renderSkeleton.tsx +44 -0
  585. package/src/react/ui/components/marketplace-collectible-card/utils/shopCardState.ts +83 -0
  586. package/src/react/ui/components/marketplace-collectible-card/utils/supplyStatus.ts +5 -5
  587. package/src/react/ui/components/marketplace-collectible-card/variants/MarketCard.tsx +63 -78
  588. package/src/react/ui/components/marketplace-collectible-card/variants/MarketCardPresentation.tsx +170 -0
  589. package/src/react/ui/components/marketplace-collectible-card/variants/NonTradableInventoryCard.tsx +56 -38
  590. package/src/react/ui/components/marketplace-collectible-card/variants/ShopCard.tsx +55 -65
  591. package/src/react/ui/components/marketplace-collectible-card/variants/ShopCardPresentation.tsx +144 -0
  592. package/src/react/ui/components/marketplace-logos/marketplace-logos.tsx +1 -5
  593. package/src/react/ui/components/media/Media.tsx +1 -1
  594. package/src/react/ui/components/media/MediaSkeleton.tsx +1 -1
  595. package/src/react/ui/hooks/index.ts +2 -0
  596. package/src/react/ui/icons/BellIcon.tsx +7 -3
  597. package/src/react/ui/icons/iconVariants.ts +11 -0
  598. package/src/react/ui/icons/index.ts +0 -3
  599. package/src/react/ui/index.ts +37 -8
  600. package/src/react/ui/modals/BuyModal/components/BuyModalContent.tsx +161 -0
  601. package/src/react/ui/modals/BuyModal/components/CollectibleMetadataSummary.tsx +141 -0
  602. package/src/react/ui/modals/BuyModal/components/CryptoPaymentModal.tsx +177 -0
  603. package/src/react/ui/modals/BuyModal/components/CryptoPaymentModalSkeleton.tsx +48 -0
  604. package/src/react/ui/modals/BuyModal/components/Modal.tsx +2 -2
  605. package/src/react/ui/modals/BuyModal/components/TrailsCss.ts +216 -0
  606. package/src/react/ui/modals/BuyModal/components/sequence-checkout/ERC1155QuantityModal.tsx +197 -0
  607. package/src/react/ui/modals/BuyModal/components/sequence-checkout/SequenceCheckoutNew.tsx +161 -0
  608. package/src/react/ui/modals/BuyModal/components/sequence-checkout/usePaymentModalParams.ts +204 -0
  609. package/src/react/ui/modals/BuyModal/components/types.ts +6 -5
  610. package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC1155SalePaymentParams.test.tsx +369 -0
  611. package/src/react/ui/modals/BuyModal/hooks/useBuyModalData.ts +151 -0
  612. package/src/react/ui/modals/BuyModal/hooks/useERC1155SalePaymentParams.ts +244 -0
  613. package/src/react/ui/modals/BuyModal/hooks/useExecuteBundledTransactions.ts +167 -0
  614. package/src/react/ui/modals/BuyModal/hooks/useHasSufficientBalance.ts +30 -0
  615. package/src/react/ui/modals/BuyModal/hooks/useMarketPlatformFee.ts +2 -2
  616. package/src/react/ui/modals/BuyModal/index.tsx +6 -3
  617. package/src/react/ui/modals/BuyModal/internal/__tests__/determineCheckoutMode.test.ts +119 -0
  618. package/src/react/ui/modals/BuyModal/internal/buyModalContext.ts +146 -0
  619. package/src/react/ui/modals/BuyModal/internal/cryptoPaymentModalContext.tsx +399 -0
  620. package/src/react/ui/modals/BuyModal/internal/determineCheckoutMode.ts +49 -0
  621. package/src/react/ui/modals/BuyModal/store.ts +25 -94
  622. package/src/react/ui/modals/CreateListingModal/Modal.tsx +141 -308
  623. package/src/react/ui/modals/CreateListingModal/__tests__/Modal.test.tsx +35 -61
  624. package/src/react/ui/modals/CreateListingModal/index.tsx +16 -9
  625. package/src/react/ui/modals/CreateListingModal/internal/context.ts +416 -0
  626. package/src/react/ui/modals/CreateListingModal/internal/helpers/validation.ts +79 -0
  627. package/src/react/ui/modals/CreateListingModal/internal/hooks/index.ts +1 -0
  628. package/src/react/ui/modals/CreateListingModal/internal/hooks/use-collectible-approval.ts +49 -0
  629. package/src/react/ui/modals/CreateListingModal/internal/listing-mutations.ts +267 -0
  630. package/src/react/ui/modals/CreateListingModal/internal/store.ts +150 -0
  631. package/src/react/ui/modals/MakeOfferModal/Modal.tsx +130 -348
  632. package/src/react/ui/modals/MakeOfferModal/__stories__/MakeOfferModal.mock-data.ts +494 -0
  633. package/src/react/ui/modals/MakeOfferModal/__stories__/MakeOfferModal.stories.tsx +699 -0
  634. package/src/react/ui/modals/MakeOfferModal/__tests__/Modal.test.tsx +28 -155
  635. package/src/react/ui/modals/MakeOfferModal/index.tsx +17 -11
  636. package/src/react/ui/modals/MakeOfferModal/internal/context.ts +453 -0
  637. package/src/react/ui/modals/MakeOfferModal/internal/helpers/validation.ts +99 -0
  638. package/src/react/ui/modals/MakeOfferModal/internal/hooks/index.ts +1 -0
  639. package/src/react/ui/modals/MakeOfferModal/internal/hooks/use-erc20-allowance.ts +43 -0
  640. package/src/react/ui/modals/MakeOfferModal/internal/offer-mutations.ts +231 -0
  641. package/src/react/ui/modals/MakeOfferModal/internal/store.ts +150 -0
  642. package/src/react/ui/modals/SellModal/Modal.tsx +74 -213
  643. package/src/react/ui/modals/SellModal/index.tsx +5 -11
  644. package/src/react/ui/modals/SellModal/internal/context.ts +284 -0
  645. package/src/react/ui/modals/SellModal/internal/sell-mutations.ts +163 -0
  646. package/src/react/ui/modals/SellModal/internal/store.ts +76 -0
  647. package/src/react/ui/modals/SellModal/internal/use-generate-sell-transaction.ts +93 -0
  648. package/src/react/ui/modals/TransferModal/__tests__/store.test.ts +51 -345
  649. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TokenQuantityInput.tsx +36 -34
  650. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/WalletAddressInput.tsx +19 -28
  651. package/src/react/ui/modals/TransferModal/index.tsx +98 -97
  652. package/src/react/ui/modals/TransferModal/internal/context.ts +404 -0
  653. package/src/react/ui/modals/TransferModal/internal/store.ts +118 -0
  654. package/src/react/ui/modals/_internal/components/alertMessage/index.tsx +2 -3
  655. package/src/react/ui/modals/_internal/components/baseModal/ActionModal.tsx +338 -0
  656. package/src/react/ui/modals/_internal/components/baseModal/BaseModal.tsx +51 -0
  657. package/src/react/ui/modals/_internal/components/baseModal/ErrorBoundary.tsx +83 -0
  658. package/src/react/ui/modals/_internal/components/baseModal/ErrorModal.tsx +51 -0
  659. package/src/react/ui/modals/_internal/components/baseModal/LoadingModal.tsx +35 -0
  660. package/src/react/ui/modals/_internal/components/baseModal/SmartErrorHandler.tsx +31 -0
  661. package/src/react/ui/modals/_internal/components/baseModal/__tests__/ErrorBoundary.test.tsx +390 -0
  662. package/src/react/ui/modals/_internal/components/baseModal/errors/ModalInitializationError.tsx +91 -0
  663. package/src/react/ui/modals/_internal/components/baseModal/errors/errorActionType.ts +5 -0
  664. package/src/react/ui/modals/_internal/components/baseModal/index.ts +13 -0
  665. package/src/react/ui/modals/_internal/components/calendarDropdown/TimeSelector.tsx +1 -1
  666. package/src/react/ui/modals/_internal/components/calendarDropdown/index.tsx +14 -9
  667. package/src/react/ui/modals/_internal/components/consts.ts +19 -5
  668. package/src/react/ui/modals/_internal/components/currencyImage/index.tsx +5 -7
  669. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +6 -14
  670. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +17 -24
  671. package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +1 -1
  672. package/src/react/ui/modals/_internal/components/floorPriceText/__tests__/FloorPriceText.test.tsx +61 -40
  673. package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +23 -19
  674. package/src/react/ui/modals/_internal/components/priceInput/__tests__/PriceInput.test.tsx +3 -3
  675. package/src/react/ui/modals/_internal/components/priceInput/index.tsx +66 -66
  676. package/src/react/ui/modals/_internal/components/quantityInput/__tests__/index.test.tsx +22 -137
  677. package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +84 -131
  678. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/__tests__/SelectWaasFeeOptions.test.tsx +14 -31
  679. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/_components/ActionButtons.tsx +37 -25
  680. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/index.tsx +13 -6
  681. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/store.ts +9 -26
  682. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/useWaasFeeOptionManager.tsx +27 -29
  683. package/src/react/ui/modals/_internal/components/switchChainErrorModal/store.ts +2 -2
  684. package/src/react/ui/modals/_internal/components/tokenPreview/index.tsx +10 -9
  685. package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +11 -7
  686. package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +8 -7
  687. package/src/react/ui/modals/_internal/components/transactionPreview/useTransactionPreviewTitle.tsx +1 -1
  688. package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/TransactionStatusModal.test.tsx +3 -5
  689. package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/utils.test.ts +3 -3
  690. package/src/react/ui/modals/_internal/components/transactionStatusModal/hooks/useTransactionStatus.ts +4 -15
  691. package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +14 -15
  692. package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +8 -11
  693. package/src/react/ui/modals/_internal/components/waasFeeOptionsSelect/WaasFeeOptionsSelect.tsx +65 -10
  694. package/src/react/ui/modals/_internal/constants/opensea-currencies.ts +484 -0
  695. package/src/react/ui/modals/_internal/helpers/currency.ts +56 -0
  696. package/src/react/ui/modals/_internal/helpers/dnum-utils.ts +40 -0
  697. package/src/react/ui/modals/_internal/helpers/flow-state.ts +269 -0
  698. package/src/react/ui/modals/_internal/helpers/step-guards.ts +131 -0
  699. package/src/react/ui/modals/_internal/types/steps.ts +145 -0
  700. package/src/react/ui/modals/_internal/types.ts +2 -9
  701. package/src/react/utils/index.ts +2 -0
  702. package/src/react/utils/normalize-attributes.test.ts +94 -0
  703. package/src/react/utils/normalize-attributes.ts +89 -0
  704. package/src/react/utils/normalize-properties.test.ts +77 -0
  705. package/src/react/utils/normalize-properties.ts +60 -0
  706. package/src/react/utils/normalizePriceFilters.ts +25 -0
  707. package/src/react/utils/waitForTransactionReceipt.ts +2 -2
  708. package/src/styles/index.css +2 -0
  709. package/src/styles/styles.ts +2036 -374
  710. package/src/types/api-types.ts +6 -14
  711. package/src/types/buyModalErrors.ts +24 -30
  712. package/src/types/index.ts +4 -2
  713. package/src/types/sdk-config.ts +14 -1
  714. package/src/types/transactions.ts +10 -0
  715. package/src/types/types.ts +93 -14
  716. package/src/utils/__tests__/getMarketplaceDetails.test.ts +1 -1
  717. package/src/utils/_internal/error/base.ts +1 -1
  718. package/src/utils/_internal/error/transaction.ts +4 -5
  719. package/src/utils/abi/helpers.ts +38 -0
  720. package/src/utils/abi/index.ts +1 -0
  721. package/src/utils/decode/erc20.ts +2 -2
  722. package/src/utils/errors.ts +527 -0
  723. package/src/utils/getConduitAddressForOrderbook.ts +38 -0
  724. package/src/utils/getErrorMessage.ts +37 -0
  725. package/src/utils/getMarketplaceDetails.ts +1 -1
  726. package/src/utils/getSequenceMarketRequestId.ts +3 -7
  727. package/src/utils/getWagmiErrorMessage.ts +241 -0
  728. package/src/utils/getWebRPCErrorMessage.ts +63 -0
  729. package/src/utils/networkconfigToWagmiChain.ts +2 -1
  730. package/src/utils/price.ts +12 -10
  731. package/test/const.ts +3 -3
  732. package/test/globalSetup.ts +4 -5
  733. package/test/handlers.ts +2 -2
  734. package/test/server-setup.ts +8 -8
  735. package/test/setup.ts +11 -0
  736. package/test/test-utils.tsx +23 -6
  737. package/tsconfig.json +8 -1
  738. package/tsdown.config.ts +13 -3
  739. package/dist/BellIcon-DMKEumAz.js +0 -45
  740. package/dist/BellIcon-DMKEumAz.js.map +0 -1
  741. package/dist/CartIcon-UyB4NYKt.js +0 -102
  742. package/dist/CartIcon-UyB4NYKt.js.map +0 -1
  743. package/dist/CollectibleCard-z05qWzKE.d.ts +0 -8
  744. package/dist/_internal-DkS2VUn5.js +0 -22
  745. package/dist/_internal-DkS2VUn5.js.map +0 -1
  746. package/dist/abi-fa-o9gH3.js +0 -134
  747. package/dist/abi-fa-o9gH3.js.map +0 -1
  748. package/dist/alien_swap-Cq8LuElo.js +0 -6
  749. package/dist/alien_swap-Cq8LuElo.js.map +0 -1
  750. package/dist/api-GwTR0dBA.js +0 -210
  751. package/dist/api-GwTR0dBA.js.map +0 -1
  752. package/dist/aqua-xyz-0yye_c-Z.js +0 -6
  753. package/dist/aqua-xyz-0yye_c-Z.js.map +0 -1
  754. package/dist/aura-TaxFvTFQ.js +0 -6
  755. package/dist/aura-TaxFvTFQ.js.map +0 -1
  756. package/dist/blur-BupOTobO.js +0 -6
  757. package/dist/blur-BupOTobO.js.map +0 -1
  758. package/dist/builder-api-m4JAA6ee.js +0 -28
  759. package/dist/builder-api-m4JAA6ee.js.map +0 -1
  760. package/dist/builder.gen--XD71cNL.js +0 -303
  761. package/dist/builder.gen--XD71cNL.js.map +0 -1
  762. package/dist/coinbase-DTgZ4wDT.js +0 -6
  763. package/dist/coinbase-DTgZ4wDT.js.map +0 -1
  764. package/dist/collectibles-CZ6i8sXK.js +0 -324
  765. package/dist/collectibles-CZ6i8sXK.js.map +0 -1
  766. package/dist/collections-5NcU-7ZR.js +0 -331
  767. package/dist/collections-5NcU-7ZR.js.map +0 -1
  768. package/dist/components-CY8kx2kb.js +0 -123
  769. package/dist/components-CY8kx2kb.js.map +0 -1
  770. package/dist/contracts-DRJHF89h.js +0 -97
  771. package/dist/contracts-DRJHF89h.js.map +0 -1
  772. package/dist/create-config-BxyfYCEk.js +0 -172
  773. package/dist/create-config-BxyfYCEk.js.map +0 -1
  774. package/dist/create-config-CFBeD8CB.d.ts +0 -2019
  775. package/dist/element-D4dDznlu.js +0 -6
  776. package/dist/element-D4dDznlu.js.map +0 -1
  777. package/dist/filters-B5niI_fX.d.ts +0 -60
  778. package/dist/foundation-GHZOKAzN.js +0 -6
  779. package/dist/foundation-GHZOKAzN.js.map +0 -1
  780. package/dist/index-8scPf0CS.d.ts +0 -55
  781. package/dist/index-9qsplZ8r.d.ts +0 -18
  782. package/dist/index-BIuYTMc2.d.ts +0 -122
  783. package/dist/index-BNrz99xy.d.ts +0 -24
  784. package/dist/index-BYQOPS8e.d.ts +0 -1003
  785. package/dist/index-BkZ7SPLc.d.ts +0 -288
  786. package/dist/index-BnUku_aF.d.ts +0 -808
  787. package/dist/index-BtDAHMW_.d.ts +0 -50
  788. package/dist/index-C-c_M_sE.d.ts +0 -107
  789. package/dist/index-CNIiC8Z_.d.ts +0 -67
  790. package/dist/index-CbERNN3s.d.ts +0 -505
  791. package/dist/index-CsfxsN0t.d.ts +0 -61
  792. package/dist/index-DASjaiJL.d.ts +0 -406
  793. package/dist/index-DD7Vc4cE.d.ts +0 -809
  794. package/dist/index-DIc8OqWV.d.ts +0 -152
  795. package/dist/index-DVI_vggD.d.ts +0 -171
  796. package/dist/index-DqxQeYT2.d.ts +0 -450
  797. package/dist/index-Dsf9FRtr.d.ts +0 -121
  798. package/dist/index-DxAReMEO.d.ts +0 -357
  799. package/dist/index-UXRoZmd_.d.ts +0 -70
  800. package/dist/index-isFvc5gd.d.ts +0 -2541
  801. package/dist/index-j3nuJWyJ.d.ts +0 -139
  802. package/dist/index-nVb7o0hc.d.ts +0 -7
  803. package/dist/index-pbE88Tt7.d.ts +0 -1803
  804. package/dist/inventory--t6Zu55O.js +0 -75
  805. package/dist/inventory--t6Zu55O.js.map +0 -1
  806. package/dist/listCollectiblesPaginated-BlE5mSzh.d.ts +0 -327
  807. package/dist/listCollections-DWyqFSQ3.d.ts +0 -828
  808. package/dist/looks-rare-2HBhMpOf.js +0 -6
  809. package/dist/looks-rare-2HBhMpOf.js.map +0 -1
  810. package/dist/lowestListing-DsunDO1c.d.ts +0 -475
  811. package/dist/magic-eden-BYdTp-uk.js +0 -6
  812. package/dist/magic-eden-BYdTp-uk.js.map +0 -1
  813. package/dist/manifold-yE0x6ZmO.js +0 -6
  814. package/dist/manifold-yE0x6ZmO.js.map +0 -1
  815. package/dist/market-DuBpFsDg.js +0 -219
  816. package/dist/market-DuBpFsDg.js.map +0 -1
  817. package/dist/marketCurrencies-BgwmbGFk.d.ts +0 -164
  818. package/dist/marketCurrencies-Bolonndy.js +0 -59
  819. package/dist/marketCurrencies-Bolonndy.js.map +0 -1
  820. package/dist/marketplace-NQB-sEQL.js +0 -1913
  821. package/dist/marketplace-NQB-sEQL.js.map +0 -1
  822. package/dist/marketplace-logos-Cz9RrtQo.js +0 -50
  823. package/dist/marketplace-logos-Cz9RrtQo.js.map +0 -1
  824. package/dist/marketplace.gen-906FrJQJ.js +0 -1147
  825. package/dist/marketplace.gen-906FrJQJ.js.map +0 -1
  826. package/dist/marketplaceConfig-Bqjo7NYO.js +0 -85
  827. package/dist/marketplaceConfig-Bqjo7NYO.js.map +0 -1
  828. package/dist/mintify-BXQx3mZB.js +0 -6
  829. package/dist/mintify-BXQx3mZB.js.map +0 -1
  830. package/dist/network-DwdZ_5-7.js +0 -15
  831. package/dist/network-DwdZ_5-7.js.map +0 -1
  832. package/dist/networkconfigToWagmiChain-Ct-hGq8M.js +0 -16
  833. package/dist/networkconfigToWagmiChain-Ct-hGq8M.js.map +0 -1
  834. package/dist/nftx-B929_3Ce.js +0 -6
  835. package/dist/nftx-B929_3Ce.js.map +0 -1
  836. package/dist/okx-sZ0-Udny.js +0 -6
  837. package/dist/okx-sZ0-Udny.js.map +0 -1
  838. package/dist/open-sea-DO9PhTrz.js +0 -6
  839. package/dist/open-sea-DO9PhTrz.js.map +0 -1
  840. package/dist/orders-DH76ym2e.js +0 -469
  841. package/dist/orders-DH76ym2e.js.map +0 -1
  842. package/dist/primary-sale-1u4QlPdA.js +0 -3048
  843. package/dist/primary-sale-1u4QlPdA.js.map +0 -1
  844. package/dist/primary-sales-CECrqatg.js +0 -156
  845. package/dist/primary-sales-CECrqatg.js.map +0 -1
  846. package/dist/query-brXxOcH0.d.ts +0 -31
  847. package/dist/rarible-Ccb2hs7y.js +0 -6
  848. package/dist/rarible-Ccb2hs7y.js.map +0 -1
  849. package/dist/react/hooks/data/collectibles/index.d.ts +0 -11
  850. package/dist/react/hooks/data/collectibles/index.js +0 -39
  851. package/dist/react/hooks/data/collections/index.d.ts +0 -11
  852. package/dist/react/hooks/data/collections/index.js +0 -39
  853. package/dist/react/hooks/data/index.d.ts +0 -37
  854. package/dist/react/hooks/data/index.js +0 -39
  855. package/dist/react/hooks/data/inventory/index.d.ts +0 -37
  856. package/dist/react/hooks/data/inventory/index.js +0 -39
  857. package/dist/react/hooks/data/market/index.d.ts +0 -12
  858. package/dist/react/hooks/data/market/index.js +0 -39
  859. package/dist/react/hooks/data/orders/index.d.ts +0 -11
  860. package/dist/react/hooks/data/orders/index.js +0 -39
  861. package/dist/react/hooks/data/primary-sales/index.d.ts +0 -37
  862. package/dist/react/hooks/data/primary-sales/index.js +0 -39
  863. package/dist/react/hooks/data/tokens/index.d.ts +0 -5
  864. package/dist/react/hooks/data/tokens/index.js +0 -39
  865. package/dist/react/queries/collectibles/index.d.ts +0 -11
  866. package/dist/react/queries/collectibles/index.js +0 -22
  867. package/dist/react/queries/collections/index.d.ts +0 -11
  868. package/dist/react/queries/collections/index.js +0 -20
  869. package/dist/react/queries/market/index.d.ts +0 -6
  870. package/dist/react/queries/market/index.js +0 -22
  871. package/dist/react/queries/orders/index.d.ts +0 -11
  872. package/dist/react/queries/orders/index.js +0 -13
  873. package/dist/react/queries/primary-sales/index.d.ts +0 -4
  874. package/dist/react/queries/primary-sales/index.js +0 -13
  875. package/dist/react/queries/tokens/index.d.ts +0 -5
  876. package/dist/react/queries/tokens/index.js +0 -13
  877. package/dist/react/queries/utils/index.d.ts +0 -4
  878. package/dist/react/queries/utils/index.js +0 -22
  879. package/dist/react/ssr/index.js.map +0 -1
  880. package/dist/react/ui/components/marketplace-collectible-card/components/footer/components/index.d.ts +0 -3
  881. package/dist/react/ui/components/marketplace-collectible-card/components/footer/components/index.js +0 -22
  882. package/dist/react/ui/components/marketplace-collectible-card/components/footer/index.d.ts +0 -51
  883. package/dist/react/ui/components/marketplace-collectible-card/components/footer/index.js +0 -39
  884. package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +0 -40
  885. package/dist/react/ui/modals/_internal/components/actionModal/index.js +0 -39
  886. package/dist/react-CBsgOdVP.js +0 -13476
  887. package/dist/react-CBsgOdVP.js.map +0 -1
  888. package/dist/sequence-CRdb1yEs.js +0 -6
  889. package/dist/sequence-CRdb1yEs.js.map +0 -1
  890. package/dist/src-Dz2CfBL0.js +0 -8
  891. package/dist/src-Dz2CfBL0.js.map +0 -1
  892. package/dist/sudo-swap-BIklG2gq.js +0 -6
  893. package/dist/sudo-swap-BIklG2gq.js.map +0 -1
  894. package/dist/super-rare-h8645_5E.js +0 -6
  895. package/dist/super-rare-h8645_5E.js.map +0 -1
  896. package/dist/token-Cv7l2ZaL.js +0 -2091
  897. package/dist/token-Cv7l2ZaL.js.map +0 -1
  898. package/dist/tokenBalances-CouzNX4j.js +0 -57
  899. package/dist/tokenBalances-CouzNX4j.js.map +0 -1
  900. package/dist/tokenSupplies-C3zJll0M.d.ts +0 -265
  901. package/dist/tokens-BvIRUCGG.js +0 -225
  902. package/dist/tokens-BvIRUCGG.js.map +0 -1
  903. package/dist/transaction-DZUW5RHu.js +0 -76
  904. package/dist/transaction-DZUW5RHu.js.map +0 -1
  905. package/dist/types-B_-cnkcP.js +0 -13
  906. package/dist/types-B_-cnkcP.js.map +0 -1
  907. package/dist/types-CMDwfhfR.d.ts +0 -78
  908. package/dist/utils-9ToOvt-c.js +0 -235
  909. package/dist/utils-9ToOvt-c.js.map +0 -1
  910. package/dist/utils-B6di6O-C.js +0 -43
  911. package/dist/utils-B6di6O-C.js.map +0 -1
  912. package/dist/utils-BCYTEOvy.js +0 -122
  913. package/dist/utils-BCYTEOvy.js.map +0 -1
  914. package/dist/waitForTransactionReceipt-CbSeUSXe.js +0 -26
  915. package/dist/waitForTransactionReceipt-CbSeUSXe.js.map +0 -1
  916. package/dist/x2y2-OvF__ugj.js +0 -6
  917. package/dist/x2y2-OvF__ugj.js.map +0 -1
  918. package/dist/zora-DzCeu-eE.js +0 -6
  919. package/dist/zora-DzCeu-eE.js.map +0 -1
  920. package/src/react/_internal/api/__mocks__/builder.msw.ts +0 -239
  921. package/src/react/_internal/api/__mocks__/indexer.msw.ts +0 -216
  922. package/src/react/_internal/api/__mocks__/marketplace.msw.ts +0 -402
  923. package/src/react/_internal/api/__mocks__/metadata.msw.ts +0 -195
  924. package/src/react/_internal/api/builder.gen.ts +0 -773
  925. package/src/react/_internal/api/marketplace.gen.ts +0 -2718
  926. package/src/react/_internal/api/query-keys.ts +0 -124
  927. package/src/react/hooks/data/collectibles/index.ts +0 -6
  928. package/src/react/hooks/data/collectibles/useBalanceOfCollectible.test.tsx +0 -141
  929. package/src/react/hooks/data/collectibles/useBalanceOfCollectible.tsx +0 -39
  930. package/src/react/hooks/data/collectibles/useCollectible.test.tsx +0 -117
  931. package/src/react/hooks/data/collectibles/useCollectible.tsx +0 -69
  932. package/src/react/hooks/data/collectibles/useCountOfCollectables.test.tsx +0 -128
  933. package/src/react/hooks/data/collectibles/useCountOfCollectables.tsx +0 -70
  934. package/src/react/hooks/data/collectibles/useListCollectibleActivities.test.tsx +0 -192
  935. package/src/react/hooks/data/collectibles/useListCollectibleActivities.tsx +0 -98
  936. package/src/react/hooks/data/collectibles/useListCollectibles.test.tsx +0 -231
  937. package/src/react/hooks/data/collectibles/useListCollectibles.tsx +0 -78
  938. package/src/react/hooks/data/collectibles/useListCollectiblesPaginated.test.tsx +0 -211
  939. package/src/react/hooks/data/collectibles/useListCollectiblesPaginated.tsx +0 -107
  940. package/src/react/hooks/data/collectibles/useTokenBalances.test.tsx +0 -151
  941. package/src/react/hooks/data/collectibles/useTokenBalances.tsx +0 -38
  942. package/src/react/hooks/data/collections/__snapshots__/useListCollections.test.tsx.snap +0 -303
  943. package/src/react/hooks/data/collections/index.ts +0 -8
  944. package/src/react/hooks/data/collections/useCollection.test.tsx +0 -98
  945. package/src/react/hooks/data/collections/useCollection.tsx +0 -66
  946. package/src/react/hooks/data/collections/useCollectionActiveListingsCurrencies.test.tsx +0 -112
  947. package/src/react/hooks/data/collections/useCollectionActiveListingsCurrencies.tsx +0 -74
  948. package/src/react/hooks/data/collections/useCollectionActiveOffersCurrencies.test.tsx +0 -110
  949. package/src/react/hooks/data/collections/useCollectionActiveOffersCurrencies.tsx +0 -74
  950. package/src/react/hooks/data/collections/useCollectionBalanceDetails.test.tsx +0 -158
  951. package/src/react/hooks/data/collections/useCollectionBalanceDetails.tsx +0 -106
  952. package/src/react/hooks/data/collections/useCollectionDetails.test.tsx +0 -83
  953. package/src/react/hooks/data/collections/useCollectionDetails.ts +0 -69
  954. package/src/react/hooks/data/collections/useCollectionDetailsPolling.test.tsx +0 -137
  955. package/src/react/hooks/data/collections/useCollectionDetailsPolling.tsx +0 -64
  956. package/src/react/hooks/data/collections/useListCollectionActivities.test.tsx +0 -227
  957. package/src/react/hooks/data/collections/useListCollectionActivities.tsx +0 -93
  958. package/src/react/hooks/data/collections/useListCollections.test.tsx +0 -110
  959. package/src/react/hooks/data/collections/useListCollections.tsx +0 -80
  960. package/src/react/hooks/data/index.ts +0 -6
  961. package/src/react/hooks/data/inventory/index.ts +0 -1
  962. package/src/react/hooks/data/inventory/useInventory.test.tsx +0 -162
  963. package/src/react/hooks/data/inventory/useInventory.tsx +0 -12
  964. package/src/react/hooks/data/market/index.ts +0 -3
  965. package/src/react/hooks/data/market/useCurrency.test.tsx +0 -127
  966. package/src/react/hooks/data/market/useCurrency.tsx +0 -65
  967. package/src/react/hooks/data/market/useListMarketCardData.test.tsx +0 -297
  968. package/src/react/hooks/data/market/useListMarketCardData.tsx +0 -165
  969. package/src/react/hooks/data/market/useMarketCurrencies.test.tsx +0 -216
  970. package/src/react/hooks/data/market/useMarketCurrencies.tsx +0 -65
  971. package/src/react/hooks/data/orders/index.ts +0 -11
  972. package/src/react/hooks/data/orders/useCountItemsOrdersForCollection.tsx +0 -90
  973. package/src/react/hooks/data/orders/useCountListingsForCollectible.test.tsx +0 -107
  974. package/src/react/hooks/data/orders/useCountListingsForCollectible.tsx +0 -75
  975. package/src/react/hooks/data/orders/useCountOffersForCollectible.test.tsx +0 -107
  976. package/src/react/hooks/data/orders/useCountOffersForCollectible.tsx +0 -75
  977. package/src/react/hooks/data/orders/useFloorOrder.test.tsx +0 -100
  978. package/src/react/hooks/data/orders/useFloorOrder.tsx +0 -70
  979. package/src/react/hooks/data/orders/useGetCountOfFilteredOrders.tsx +0 -39
  980. package/src/react/hooks/data/orders/useHighestOffer.test.tsx +0 -101
  981. package/src/react/hooks/data/orders/useHighestOffer.tsx +0 -72
  982. package/src/react/hooks/data/orders/useListItemsOrdersForCollection.tsx +0 -93
  983. package/src/react/hooks/data/orders/useListItemsOrdersForCollectionPaginated.tsx +0 -108
  984. package/src/react/hooks/data/orders/useListListingsForCollectible.test.tsx +0 -140
  985. package/src/react/hooks/data/orders/useListListingsForCollectible.tsx +0 -101
  986. package/src/react/hooks/data/orders/useListOffersForCollectible.test.tsx +0 -139
  987. package/src/react/hooks/data/orders/useListOffersForCollectible.tsx +0 -80
  988. package/src/react/hooks/data/orders/useLowestListing.test.tsx +0 -146
  989. package/src/react/hooks/data/orders/useLowestListing.tsx +0 -72
  990. package/src/react/hooks/data/primary-sales/index.ts +0 -7
  991. package/src/react/hooks/data/primary-sales/useCountOfPrimarySaleItems.tsx +0 -13
  992. package/src/react/hooks/data/primary-sales/useErc721SalesData.tsx +0 -184
  993. package/src/react/hooks/data/primary-sales/useGetCountOfPrimarySaleItems.tsx +0 -48
  994. package/src/react/hooks/data/primary-sales/useList1155ShopCardData.tsx +0 -96
  995. package/src/react/hooks/data/primary-sales/useList721ShopCardData.tsx +0 -194
  996. package/src/react/hooks/data/primary-sales/useListPrimarySaleItems.tsx +0 -66
  997. package/src/react/hooks/data/primary-sales/usePrimarySaleItem.tsx +0 -71
  998. package/src/react/hooks/data/tokens/index.ts +0 -5
  999. package/src/react/hooks/data/tokens/useCurrencyBalance.test.tsx +0 -83
  1000. package/src/react/hooks/data/tokens/useGetTokenRanges.test.tsx +0 -111
  1001. package/src/react/hooks/data/tokens/useGetTokenRanges.tsx +0 -94
  1002. package/src/react/hooks/data/tokens/useListBalances.test.tsx +0 -100
  1003. package/src/react/hooks/data/tokens/useListBalances.tsx +0 -29
  1004. package/src/react/hooks/data/tokens/useListTokenMetadata.test.tsx +0 -137
  1005. package/src/react/hooks/data/tokens/useListTokenMetadata.tsx +0 -73
  1006. package/src/react/hooks/data/tokens/useSearchTokenMetadata.test.tsx +0 -284
  1007. package/src/react/hooks/data/tokens/useSearchTokenMetadata.tsx +0 -189
  1008. package/src/react/hooks/data/tokens/useTokenSupplies.ts +0 -69
  1009. package/src/react/hooks/ui/useFilterState.tsx +0 -250
  1010. package/src/react/hooks/utils/useCheckoutOptions.test.tsx +0 -162
  1011. package/src/react/hooks/utils/useCheckoutOptions.tsx +0 -98
  1012. package/src/react/hooks/utils/useCheckoutOptionsSalesContract.test.tsx +0 -206
  1013. package/src/react/hooks/utils/useCheckoutOptionsSalesContract.tsx +0 -108
  1014. package/src/react/hooks/utils/useComparePrices.test.tsx +0 -215
  1015. package/src/react/hooks/utils/useComparePrices.tsx +0 -102
  1016. package/src/react/hooks/utils/useConvertPriceToUSD.test.tsx +0 -172
  1017. package/src/react/hooks/utils/useConvertPriceToUSD.tsx +0 -96
  1018. package/src/react/queries/collectibles/balanceOfCollectible.ts +0 -90
  1019. package/src/react/queries/collectibles/collectible.ts +0 -81
  1020. package/src/react/queries/collectibles/countOfCollectables.ts +0 -109
  1021. package/src/react/queries/collectibles/index.ts +0 -7
  1022. package/src/react/queries/collectibles/listCollectibleActivities.ts +0 -121
  1023. package/src/react/queries/collectibles/listCollectibles.ts +0 -115
  1024. package/src/react/queries/collectibles/listCollectiblesPaginated.ts +0 -104
  1025. package/src/react/queries/collectibles/tokenBalances.ts +0 -89
  1026. package/src/react/queries/collections/activeListingsCurrencies.ts +0 -84
  1027. package/src/react/queries/collections/activeOffersCurrencies.ts +0 -84
  1028. package/src/react/queries/collections/collection.ts +0 -69
  1029. package/src/react/queries/collections/collectionBalanceDetails.ts +0 -107
  1030. package/src/react/queries/collections/collectionDetails.ts +0 -79
  1031. package/src/react/queries/collections/index.ts +0 -7
  1032. package/src/react/queries/collections/listCollectionActivities.ts +0 -117
  1033. package/src/react/queries/collections/listCollections.ts +0 -175
  1034. package/src/react/queries/market/checkoutOptions.ts +0 -107
  1035. package/src/react/queries/market/checkoutOptionsSalesContract.ts +0 -108
  1036. package/src/react/queries/market/currency.ts +0 -92
  1037. package/src/react/queries/market/filters.ts +0 -152
  1038. package/src/react/queries/market/index.ts +0 -6
  1039. package/src/react/queries/market/marketCurrencies.ts +0 -120
  1040. package/src/react/queries/market/marketplaceConfig.ts +0 -117
  1041. package/src/react/queries/orders/countItemsOrdersForCollection.ts +0 -86
  1042. package/src/react/queries/orders/countListingsForCollectible.ts +0 -90
  1043. package/src/react/queries/orders/countOffersForCollectible.ts +0 -90
  1044. package/src/react/queries/orders/floorOrder.ts +0 -74
  1045. package/src/react/queries/orders/getCountOfFilteredOrders.ts +0 -88
  1046. package/src/react/queries/orders/highestOffer.ts +0 -78
  1047. package/src/react/queries/orders/index.ts +0 -11
  1048. package/src/react/queries/orders/listItemsOrdersForCollection.ts +0 -90
  1049. package/src/react/queries/orders/listItemsOrdersForCollectionPaginated.ts +0 -90
  1050. package/src/react/queries/orders/listListingsForCollectible.ts +0 -97
  1051. package/src/react/queries/orders/listOffersForCollectible.ts +0 -116
  1052. package/src/react/queries/orders/lowestListing.ts +0 -81
  1053. package/src/react/queries/primary-sales/countOfPrimarySaleItems.ts +0 -62
  1054. package/src/react/queries/primary-sales/index.ts +0 -4
  1055. package/src/react/queries/primary-sales/primarySaleItem.ts +0 -80
  1056. package/src/react/queries/primary-sales/primarySaleItems.ts +0 -94
  1057. package/src/react/queries/primary-sales/primarySaleItemsCount.ts +0 -79
  1058. package/src/react/queries/tokens/getTokenRanges.ts +0 -75
  1059. package/src/react/queries/tokens/index.ts +0 -5
  1060. package/src/react/queries/tokens/listBalances.ts +0 -71
  1061. package/src/react/queries/tokens/listTokenMetadata.ts +0 -81
  1062. package/src/react/queries/tokens/searchTokenMetadata.ts +0 -101
  1063. package/src/react/queries/tokens/tokenSupplies.ts +0 -84
  1064. package/src/react/queries/utils/comparePrices.ts +0 -132
  1065. package/src/react/queries/utils/convertPriceToUSD.ts +0 -105
  1066. package/src/react/queries/utils/index.ts +0 -2
  1067. package/src/react/ui/components/_internals/action-button/ActionButton.stories.tsx +0 -298
  1068. package/src/react/ui/components/_internals/action-button/ActionButton.tsx +0 -108
  1069. package/src/react/ui/components/_internals/action-button/__tests__/ActionButtonBody.test.tsx +0 -104
  1070. package/src/react/ui/components/_internals/action-button/__tests__/NonOwnerActions.test.tsx +0 -65
  1071. package/src/react/ui/components/_internals/action-button/__tests__/OwnerActions.test.tsx +0 -66
  1072. package/src/react/ui/components/_internals/action-button/__tests__/useActionButtonLogic.test.tsx +0 -99
  1073. package/src/react/ui/components/_internals/action-button/components/ActionButtonBody.tsx +0 -52
  1074. package/src/react/ui/components/_internals/action-button/components/NonOwnerActions.tsx +0 -145
  1075. package/src/react/ui/components/_internals/action-button/components/OwnerActions.tsx +0 -83
  1076. package/src/react/ui/components/_internals/action-button/hooks/useActionButtonLogic.ts +0 -97
  1077. package/src/react/ui/components/_internals/action-button/store.ts +0 -85
  1078. package/src/react/ui/components/marketplace-collectible-card/components/ActionButtonWrapper.tsx +0 -79
  1079. package/src/react/ui/components/marketplace-collectible-card/components/BaseCard.tsx +0 -68
  1080. package/src/react/ui/components/marketplace-collectible-card/components/footer/Footer.tsx +0 -165
  1081. package/src/react/ui/components/marketplace-collectible-card/components/footer/components/FooterName.tsx +0 -103
  1082. package/src/react/ui/components/marketplace-collectible-card/components/footer/components/PriceDisplay.tsx +0 -80
  1083. package/src/react/ui/components/marketplace-collectible-card/components/footer/components/SaleDetailsPill.tsx +0 -29
  1084. package/src/react/ui/components/marketplace-collectible-card/components/footer/components/TokenTypeBalancePill.tsx +0 -30
  1085. package/src/react/ui/components/marketplace-collectible-card/components/footer/components/index.ts +0 -4
  1086. package/src/react/ui/components/marketplace-collectible-card/components/footer/index.ts +0 -2
  1087. package/src/react/ui/icons/CalendarIcon.tsx +0 -37
  1088. package/src/react/ui/icons/CartIcon.tsx +0 -52
  1089. package/src/react/ui/icons/InfoIcon.tsx +0 -44
  1090. package/src/react/ui/modals/BuyModal/__tests__/BuyModalRouter.test.tsx +0 -557
  1091. package/src/react/ui/modals/BuyModal/__tests__/ERC1155ShopModal.test.tsx +0 -398
  1092. package/src/react/ui/modals/BuyModal/__tests__/ERC721ShopModal.test.tsx +0 -272
  1093. package/src/react/ui/modals/BuyModal/__tests__/Modal.test.tsx.bak +0 -112
  1094. package/src/react/ui/modals/BuyModal/__tests__/Modal1155.test.tsx +0 -251
  1095. package/src/react/ui/modals/BuyModal/__tests__/store.test.ts +0 -105
  1096. package/src/react/ui/modals/BuyModal/components/BuyModalRouter.tsx +0 -157
  1097. package/src/react/ui/modals/BuyModal/components/ERC1155BuyModal.tsx +0 -198
  1098. package/src/react/ui/modals/BuyModal/components/ERC1155QuantityModal.tsx +0 -208
  1099. package/src/react/ui/modals/BuyModal/components/ERC1155ShopModal.tsx +0 -124
  1100. package/src/react/ui/modals/BuyModal/components/ERC721BuyModal.tsx +0 -116
  1101. package/src/react/ui/modals/BuyModal/components/ERC721ShopModal.tsx +0 -86
  1102. package/src/react/ui/modals/BuyModal/hooks/__tests__/useCheckoutOptions.test.tsx +0 -115
  1103. package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC1155Checkout.test.tsx +0 -395
  1104. package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC721SalePaymentParams.test.tsx +0 -283
  1105. package/src/react/ui/modals/BuyModal/hooks/__tests__/useMarketPlatformFee.test.tsx +0 -145
  1106. package/src/react/ui/modals/BuyModal/hooks/useCheckoutOptions.ts +0 -86
  1107. package/src/react/ui/modals/BuyModal/hooks/useERC1155Checkout.ts +0 -103
  1108. package/src/react/ui/modals/BuyModal/hooks/useERC721SalePaymentParams.ts +0 -216
  1109. package/src/react/ui/modals/BuyModal/hooks/useLoadData.ts +0 -120
  1110. package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +0 -243
  1111. package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +0 -98
  1112. package/src/react/ui/modals/CreateListingModal/hooks/useGetTokenApproval.ts +0 -87
  1113. package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +0 -246
  1114. package/src/react/ui/modals/CreateListingModal/store.ts +0 -99
  1115. package/src/react/ui/modals/MakeOfferModal/hooks/useGetTokenApproval.tsx +0 -90
  1116. package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +0 -71
  1117. package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +0 -241
  1118. package/src/react/ui/modals/MakeOfferModal/store.ts +0 -94
  1119. package/src/react/ui/modals/SellModal/__tests__/Modal.test.tsx +0 -85
  1120. package/src/react/ui/modals/SellModal/hooks/useGetTokenApproval.tsx +0 -79
  1121. package/src/react/ui/modals/SellModal/hooks/useSell.tsx +0 -77
  1122. package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +0 -242
  1123. package/src/react/ui/modals/SellModal/store.ts +0 -62
  1124. package/src/react/ui/modals/SellModal/utils.ts +0 -38
  1125. package/src/react/ui/modals/SuccessfulPurchaseModal/__tests__/Modal.test.tsx +0 -157
  1126. package/src/react/ui/modals/SuccessfulPurchaseModal/index.tsx +0 -154
  1127. package/src/react/ui/modals/SuccessfulPurchaseModal/store.ts +0 -71
  1128. package/src/react/ui/modals/TransferModal/__tests__/__snapshots__/store.test.ts.snap +0 -17
  1129. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/__tests__/useHandleTransfer.test.tsx +0 -412
  1130. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TransferButton.tsx +0 -66
  1131. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +0 -137
  1132. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/useHandleTransfer.tsx +0 -97
  1133. package/src/react/ui/modals/TransferModal/_views/followWalletInstructions/index.tsx +0 -31
  1134. package/src/react/ui/modals/TransferModal/messages.ts +0 -14
  1135. package/src/react/ui/modals/TransferModal/store.ts +0 -122
  1136. package/src/react/ui/modals/_internal/components/actionModal/ActionModal.test.tsx +0 -281
  1137. package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +0 -113
  1138. package/src/react/ui/modals/_internal/components/actionModal/ErrorModal.tsx +0 -35
  1139. package/src/react/ui/modals/_internal/components/actionModal/LoadingModal.tsx +0 -32
  1140. package/src/react/ui/modals/_internal/components/actionModal/index.ts +0 -1
  1141. package/src/types/custom.d.ts +0 -1
  1142. package/src/types/messages.ts +0 -43
  1143. package/src/types/new-marketplace-types.ts +0 -95
  1144. /package/dist/{index-CCggO_hw.d.ts → index20.d.ts} +0 -0
  1145. /package/dist/{index-CKefEBrI.d.ts → index25.d.ts} +0 -0
  1146. /package/dist/{index-DgsCqh_P.d.ts → index29.d.ts} +0 -0
  1147. /package/dist/{index-xpO4AQyS.d.ts → index30.d.ts} +0 -0
  1148. /package/dist/{queries-CyajGg_O.js → queries.js} +0 -0
  1149. /package/dist/{wagmi-Bseovd6Q.js → src.js} +0 -0
  1150. /package/src/react/ui/components/{_internals/action-button → marketplace-collectible-card/ActionButton}/types.ts +0 -0
  1151. /package/src/react/ui/modals/_internal/hooks/{useSelectWaasFeeOptions.ts → useSelectWaasFeeOptions.tsx} +0 -0
@@ -0,0 +1,3048 @@
1
+ //#region src/utils/abi/primary-sale/sequence-721-sales-contract-v0.ts
2
+ const ERC721_SALE_ABI_V0 = [
3
+ {
4
+ type: "function",
5
+ name: "DEFAULT_ADMIN_ROLE",
6
+ inputs: [],
7
+ outputs: [{
8
+ name: "",
9
+ type: "bytes32",
10
+ internalType: "bytes32"
11
+ }],
12
+ stateMutability: "view"
13
+ },
14
+ {
15
+ type: "function",
16
+ name: "checkMerkleProof",
17
+ inputs: [
18
+ {
19
+ name: "root",
20
+ type: "bytes32",
21
+ internalType: "bytes32"
22
+ },
23
+ {
24
+ name: "proof",
25
+ type: "bytes32[]",
26
+ internalType: "bytes32[]"
27
+ },
28
+ {
29
+ name: "addr",
30
+ type: "address",
31
+ internalType: "address"
32
+ },
33
+ {
34
+ name: "salt",
35
+ type: "bytes32",
36
+ internalType: "bytes32"
37
+ }
38
+ ],
39
+ outputs: [{
40
+ name: "",
41
+ type: "bool",
42
+ internalType: "bool"
43
+ }],
44
+ stateMutability: "view"
45
+ },
46
+ {
47
+ type: "function",
48
+ name: "getRoleAdmin",
49
+ inputs: [{
50
+ name: "role",
51
+ type: "bytes32",
52
+ internalType: "bytes32"
53
+ }],
54
+ outputs: [{
55
+ name: "",
56
+ type: "bytes32",
57
+ internalType: "bytes32"
58
+ }],
59
+ stateMutability: "view"
60
+ },
61
+ {
62
+ type: "function",
63
+ name: "getRoleMember",
64
+ inputs: [{
65
+ name: "role",
66
+ type: "bytes32",
67
+ internalType: "bytes32"
68
+ }, {
69
+ name: "index",
70
+ type: "uint256",
71
+ internalType: "uint256"
72
+ }],
73
+ outputs: [{
74
+ name: "",
75
+ type: "address",
76
+ internalType: "address"
77
+ }],
78
+ stateMutability: "view"
79
+ },
80
+ {
81
+ type: "function",
82
+ name: "getRoleMemberCount",
83
+ inputs: [{
84
+ name: "role",
85
+ type: "bytes32",
86
+ internalType: "bytes32"
87
+ }],
88
+ outputs: [{
89
+ name: "",
90
+ type: "uint256",
91
+ internalType: "uint256"
92
+ }],
93
+ stateMutability: "view"
94
+ },
95
+ {
96
+ type: "function",
97
+ name: "grantRole",
98
+ inputs: [{
99
+ name: "role",
100
+ type: "bytes32",
101
+ internalType: "bytes32"
102
+ }, {
103
+ name: "account",
104
+ type: "address",
105
+ internalType: "address"
106
+ }],
107
+ outputs: [],
108
+ stateMutability: "nonpayable"
109
+ },
110
+ {
111
+ type: "function",
112
+ name: "hasRole",
113
+ inputs: [{
114
+ name: "role",
115
+ type: "bytes32",
116
+ internalType: "bytes32"
117
+ }, {
118
+ name: "account",
119
+ type: "address",
120
+ internalType: "address"
121
+ }],
122
+ outputs: [{
123
+ name: "",
124
+ type: "bool",
125
+ internalType: "bool"
126
+ }],
127
+ stateMutability: "view"
128
+ },
129
+ {
130
+ type: "function",
131
+ name: "initialize",
132
+ inputs: [{
133
+ name: "owner",
134
+ type: "address",
135
+ internalType: "address"
136
+ }, {
137
+ name: "items",
138
+ type: "address",
139
+ internalType: "address"
140
+ }],
141
+ outputs: [],
142
+ stateMutability: "nonpayable"
143
+ },
144
+ {
145
+ type: "function",
146
+ name: "itemsContract",
147
+ inputs: [],
148
+ outputs: [{
149
+ name: "",
150
+ type: "address",
151
+ internalType: "address"
152
+ }],
153
+ stateMutability: "view"
154
+ },
155
+ {
156
+ type: "function",
157
+ name: "mint",
158
+ inputs: [
159
+ {
160
+ name: "to",
161
+ type: "address",
162
+ internalType: "address"
163
+ },
164
+ {
165
+ name: "amount",
166
+ type: "uint256",
167
+ internalType: "uint256"
168
+ },
169
+ {
170
+ name: "paymentToken",
171
+ type: "address",
172
+ internalType: "address"
173
+ },
174
+ {
175
+ name: "maxTotal",
176
+ type: "uint256",
177
+ internalType: "uint256"
178
+ },
179
+ {
180
+ name: "proof",
181
+ type: "bytes32[]",
182
+ internalType: "bytes32[]"
183
+ }
184
+ ],
185
+ outputs: [],
186
+ stateMutability: "payable"
187
+ },
188
+ {
189
+ type: "function",
190
+ name: "renounceRole",
191
+ inputs: [{
192
+ name: "role",
193
+ type: "bytes32",
194
+ internalType: "bytes32"
195
+ }, {
196
+ name: "account",
197
+ type: "address",
198
+ internalType: "address"
199
+ }],
200
+ outputs: [],
201
+ stateMutability: "nonpayable"
202
+ },
203
+ {
204
+ type: "function",
205
+ name: "revokeRole",
206
+ inputs: [{
207
+ name: "role",
208
+ type: "bytes32",
209
+ internalType: "bytes32"
210
+ }, {
211
+ name: "account",
212
+ type: "address",
213
+ internalType: "address"
214
+ }],
215
+ outputs: [],
216
+ stateMutability: "nonpayable"
217
+ },
218
+ {
219
+ type: "function",
220
+ name: "saleDetails",
221
+ inputs: [],
222
+ outputs: [{
223
+ name: "",
224
+ type: "tuple",
225
+ internalType: "struct IERC721SaleFunctions.SaleDetails",
226
+ components: [
227
+ {
228
+ name: "supplyCap",
229
+ type: "uint256",
230
+ internalType: "uint256"
231
+ },
232
+ {
233
+ name: "cost",
234
+ type: "uint256",
235
+ internalType: "uint256"
236
+ },
237
+ {
238
+ name: "paymentToken",
239
+ type: "address",
240
+ internalType: "address"
241
+ },
242
+ {
243
+ name: "startTime",
244
+ type: "uint64",
245
+ internalType: "uint64"
246
+ },
247
+ {
248
+ name: "endTime",
249
+ type: "uint64",
250
+ internalType: "uint64"
251
+ },
252
+ {
253
+ name: "merkleRoot",
254
+ type: "bytes32",
255
+ internalType: "bytes32"
256
+ }
257
+ ]
258
+ }],
259
+ stateMutability: "view"
260
+ },
261
+ {
262
+ type: "function",
263
+ name: "setSaleDetails",
264
+ inputs: [
265
+ {
266
+ name: "supplyCap",
267
+ type: "uint256",
268
+ internalType: "uint256"
269
+ },
270
+ {
271
+ name: "cost",
272
+ type: "uint256",
273
+ internalType: "uint256"
274
+ },
275
+ {
276
+ name: "paymentToken",
277
+ type: "address",
278
+ internalType: "address"
279
+ },
280
+ {
281
+ name: "startTime",
282
+ type: "uint64",
283
+ internalType: "uint64"
284
+ },
285
+ {
286
+ name: "endTime",
287
+ type: "uint64",
288
+ internalType: "uint64"
289
+ },
290
+ {
291
+ name: "merkleRoot",
292
+ type: "bytes32",
293
+ internalType: "bytes32"
294
+ }
295
+ ],
296
+ outputs: [],
297
+ stateMutability: "nonpayable"
298
+ },
299
+ {
300
+ type: "function",
301
+ name: "supportsInterface",
302
+ inputs: [{
303
+ name: "interfaceId",
304
+ type: "bytes4",
305
+ internalType: "bytes4"
306
+ }],
307
+ outputs: [{
308
+ name: "",
309
+ type: "bool",
310
+ internalType: "bool"
311
+ }],
312
+ stateMutability: "view"
313
+ },
314
+ {
315
+ type: "function",
316
+ name: "withdrawERC20",
317
+ inputs: [
318
+ {
319
+ name: "token",
320
+ type: "address",
321
+ internalType: "address"
322
+ },
323
+ {
324
+ name: "to",
325
+ type: "address",
326
+ internalType: "address"
327
+ },
328
+ {
329
+ name: "value",
330
+ type: "uint256",
331
+ internalType: "uint256"
332
+ }
333
+ ],
334
+ outputs: [],
335
+ stateMutability: "nonpayable"
336
+ },
337
+ {
338
+ type: "function",
339
+ name: "withdrawETH",
340
+ inputs: [{
341
+ name: "to",
342
+ type: "address",
343
+ internalType: "address"
344
+ }, {
345
+ name: "value",
346
+ type: "uint256",
347
+ internalType: "uint256"
348
+ }],
349
+ outputs: [],
350
+ stateMutability: "nonpayable"
351
+ },
352
+ {
353
+ type: "event",
354
+ name: "RoleAdminChanged",
355
+ inputs: [
356
+ {
357
+ name: "role",
358
+ type: "bytes32",
359
+ indexed: true,
360
+ internalType: "bytes32"
361
+ },
362
+ {
363
+ name: "previousAdminRole",
364
+ type: "bytes32",
365
+ indexed: true,
366
+ internalType: "bytes32"
367
+ },
368
+ {
369
+ name: "newAdminRole",
370
+ type: "bytes32",
371
+ indexed: true,
372
+ internalType: "bytes32"
373
+ }
374
+ ],
375
+ anonymous: false
376
+ },
377
+ {
378
+ type: "event",
379
+ name: "RoleGranted",
380
+ inputs: [
381
+ {
382
+ name: "role",
383
+ type: "bytes32",
384
+ indexed: true,
385
+ internalType: "bytes32"
386
+ },
387
+ {
388
+ name: "account",
389
+ type: "address",
390
+ indexed: true,
391
+ internalType: "address"
392
+ },
393
+ {
394
+ name: "sender",
395
+ type: "address",
396
+ indexed: true,
397
+ internalType: "address"
398
+ }
399
+ ],
400
+ anonymous: false
401
+ },
402
+ {
403
+ type: "event",
404
+ name: "RoleRevoked",
405
+ inputs: [
406
+ {
407
+ name: "role",
408
+ type: "bytes32",
409
+ indexed: true,
410
+ internalType: "bytes32"
411
+ },
412
+ {
413
+ name: "account",
414
+ type: "address",
415
+ indexed: true,
416
+ internalType: "address"
417
+ },
418
+ {
419
+ name: "sender",
420
+ type: "address",
421
+ indexed: true,
422
+ internalType: "address"
423
+ }
424
+ ],
425
+ anonymous: false
426
+ },
427
+ {
428
+ type: "event",
429
+ name: "SaleDetailsUpdated",
430
+ inputs: [
431
+ {
432
+ name: "supplyCap",
433
+ type: "uint256",
434
+ indexed: false,
435
+ internalType: "uint256"
436
+ },
437
+ {
438
+ name: "cost",
439
+ type: "uint256",
440
+ indexed: false,
441
+ internalType: "uint256"
442
+ },
443
+ {
444
+ name: "paymentToken",
445
+ type: "address",
446
+ indexed: false,
447
+ internalType: "address"
448
+ },
449
+ {
450
+ name: "startTime",
451
+ type: "uint64",
452
+ indexed: false,
453
+ internalType: "uint64"
454
+ },
455
+ {
456
+ name: "endTime",
457
+ type: "uint64",
458
+ indexed: false,
459
+ internalType: "uint64"
460
+ },
461
+ {
462
+ name: "merkleRoot",
463
+ type: "bytes32",
464
+ indexed: false,
465
+ internalType: "bytes32"
466
+ }
467
+ ],
468
+ anonymous: false
469
+ },
470
+ {
471
+ type: "error",
472
+ name: "InsufficientPayment",
473
+ inputs: [
474
+ {
475
+ name: "currency",
476
+ type: "address",
477
+ internalType: "address"
478
+ },
479
+ {
480
+ name: "expected",
481
+ type: "uint256",
482
+ internalType: "uint256"
483
+ },
484
+ {
485
+ name: "actual",
486
+ type: "uint256",
487
+ internalType: "uint256"
488
+ }
489
+ ]
490
+ },
491
+ {
492
+ type: "error",
493
+ name: "InsufficientSupply",
494
+ inputs: [
495
+ {
496
+ name: "currentSupply",
497
+ type: "uint256",
498
+ internalType: "uint256"
499
+ },
500
+ {
501
+ name: "amount",
502
+ type: "uint256",
503
+ internalType: "uint256"
504
+ },
505
+ {
506
+ name: "maxSupply",
507
+ type: "uint256",
508
+ internalType: "uint256"
509
+ }
510
+ ]
511
+ },
512
+ {
513
+ type: "error",
514
+ name: "InvalidInitialization",
515
+ inputs: []
516
+ },
517
+ {
518
+ type: "error",
519
+ name: "InvalidSaleDetails",
520
+ inputs: []
521
+ },
522
+ {
523
+ type: "error",
524
+ name: "MerkleProofInvalid",
525
+ inputs: [
526
+ {
527
+ name: "root",
528
+ type: "bytes32",
529
+ internalType: "bytes32"
530
+ },
531
+ {
532
+ name: "proof",
533
+ type: "bytes32[]",
534
+ internalType: "bytes32[]"
535
+ },
536
+ {
537
+ name: "addr",
538
+ type: "address",
539
+ internalType: "address"
540
+ },
541
+ {
542
+ name: "salt",
543
+ type: "bytes32",
544
+ internalType: "bytes32"
545
+ }
546
+ ]
547
+ },
548
+ {
549
+ type: "error",
550
+ name: "SaleInactive",
551
+ inputs: []
552
+ },
553
+ {
554
+ type: "error",
555
+ name: "WithdrawFailed",
556
+ inputs: []
557
+ }
558
+ ];
559
+
560
+ //#endregion
561
+ //#region src/utils/abi/primary-sale/sequence-721-sales-contract-v1.ts
562
+ const ERC721_SALE_ABI_V1 = [
563
+ {
564
+ inputs: [
565
+ {
566
+ internalType: "address",
567
+ name: "currency",
568
+ type: "address"
569
+ },
570
+ {
571
+ internalType: "uint256",
572
+ name: "expected",
573
+ type: "uint256"
574
+ },
575
+ {
576
+ internalType: "uint256",
577
+ name: "actual",
578
+ type: "uint256"
579
+ }
580
+ ],
581
+ name: "InsufficientPayment",
582
+ type: "error"
583
+ },
584
+ {
585
+ inputs: [{
586
+ internalType: "uint256",
587
+ name: "remainingSupply",
588
+ type: "uint256"
589
+ }, {
590
+ internalType: "uint256",
591
+ name: "amount",
592
+ type: "uint256"
593
+ }],
594
+ name: "InsufficientSupply",
595
+ type: "error"
596
+ },
597
+ {
598
+ inputs: [],
599
+ name: "InvalidInitialization",
600
+ type: "error"
601
+ },
602
+ {
603
+ inputs: [],
604
+ name: "InvalidSaleDetails",
605
+ type: "error"
606
+ },
607
+ {
608
+ inputs: [
609
+ {
610
+ internalType: "bytes32",
611
+ name: "root",
612
+ type: "bytes32"
613
+ },
614
+ {
615
+ internalType: "bytes32[]",
616
+ name: "proof",
617
+ type: "bytes32[]"
618
+ },
619
+ {
620
+ internalType: "address",
621
+ name: "addr",
622
+ type: "address"
623
+ },
624
+ {
625
+ internalType: "bytes32",
626
+ name: "salt",
627
+ type: "bytes32"
628
+ }
629
+ ],
630
+ name: "MerkleProofInvalid",
631
+ type: "error"
632
+ },
633
+ {
634
+ inputs: [],
635
+ name: "SaleInactive",
636
+ type: "error"
637
+ },
638
+ {
639
+ inputs: [],
640
+ name: "WithdrawFailed",
641
+ type: "error"
642
+ },
643
+ {
644
+ anonymous: false,
645
+ inputs: [{
646
+ indexed: false,
647
+ internalType: "address",
648
+ name: "to",
649
+ type: "address"
650
+ }, {
651
+ indexed: false,
652
+ internalType: "uint256",
653
+ name: "amount",
654
+ type: "uint256"
655
+ }],
656
+ name: "ItemsMinted",
657
+ type: "event"
658
+ },
659
+ {
660
+ anonymous: false,
661
+ inputs: [
662
+ {
663
+ indexed: true,
664
+ internalType: "bytes32",
665
+ name: "role",
666
+ type: "bytes32"
667
+ },
668
+ {
669
+ indexed: true,
670
+ internalType: "bytes32",
671
+ name: "previousAdminRole",
672
+ type: "bytes32"
673
+ },
674
+ {
675
+ indexed: true,
676
+ internalType: "bytes32",
677
+ name: "newAdminRole",
678
+ type: "bytes32"
679
+ }
680
+ ],
681
+ name: "RoleAdminChanged",
682
+ type: "event"
683
+ },
684
+ {
685
+ anonymous: false,
686
+ inputs: [
687
+ {
688
+ indexed: true,
689
+ internalType: "bytes32",
690
+ name: "role",
691
+ type: "bytes32"
692
+ },
693
+ {
694
+ indexed: true,
695
+ internalType: "address",
696
+ name: "account",
697
+ type: "address"
698
+ },
699
+ {
700
+ indexed: true,
701
+ internalType: "address",
702
+ name: "sender",
703
+ type: "address"
704
+ }
705
+ ],
706
+ name: "RoleGranted",
707
+ type: "event"
708
+ },
709
+ {
710
+ anonymous: false,
711
+ inputs: [
712
+ {
713
+ indexed: true,
714
+ internalType: "bytes32",
715
+ name: "role",
716
+ type: "bytes32"
717
+ },
718
+ {
719
+ indexed: true,
720
+ internalType: "address",
721
+ name: "account",
722
+ type: "address"
723
+ },
724
+ {
725
+ indexed: true,
726
+ internalType: "address",
727
+ name: "sender",
728
+ type: "address"
729
+ }
730
+ ],
731
+ name: "RoleRevoked",
732
+ type: "event"
733
+ },
734
+ {
735
+ anonymous: false,
736
+ inputs: [
737
+ {
738
+ indexed: false,
739
+ internalType: "uint256",
740
+ name: "remainingSupply",
741
+ type: "uint256"
742
+ },
743
+ {
744
+ indexed: false,
745
+ internalType: "uint256",
746
+ name: "cost",
747
+ type: "uint256"
748
+ },
749
+ {
750
+ indexed: false,
751
+ internalType: "address",
752
+ name: "paymentToken",
753
+ type: "address"
754
+ },
755
+ {
756
+ indexed: false,
757
+ internalType: "uint64",
758
+ name: "startTime",
759
+ type: "uint64"
760
+ },
761
+ {
762
+ indexed: false,
763
+ internalType: "uint64",
764
+ name: "endTime",
765
+ type: "uint64"
766
+ },
767
+ {
768
+ indexed: false,
769
+ internalType: "bytes32",
770
+ name: "merkleRoot",
771
+ type: "bytes32"
772
+ }
773
+ ],
774
+ name: "SaleDetailsUpdated",
775
+ type: "event"
776
+ },
777
+ {
778
+ inputs: [],
779
+ name: "DEFAULT_ADMIN_ROLE",
780
+ outputs: [{
781
+ internalType: "bytes32",
782
+ name: "",
783
+ type: "bytes32"
784
+ }],
785
+ stateMutability: "view",
786
+ type: "function"
787
+ },
788
+ {
789
+ inputs: [
790
+ {
791
+ internalType: "address",
792
+ name: "wallet",
793
+ type: "address"
794
+ },
795
+ {
796
+ components: [
797
+ {
798
+ internalType: "address",
799
+ name: "approvedSigner",
800
+ type: "address"
801
+ },
802
+ {
803
+ internalType: "bytes4",
804
+ name: "identityType",
805
+ type: "bytes4"
806
+ },
807
+ {
808
+ internalType: "bytes32",
809
+ name: "issuerHash",
810
+ type: "bytes32"
811
+ },
812
+ {
813
+ internalType: "bytes32",
814
+ name: "audienceHash",
815
+ type: "bytes32"
816
+ },
817
+ {
818
+ internalType: "bytes",
819
+ name: "applicationData",
820
+ type: "bytes"
821
+ },
822
+ {
823
+ components: [{
824
+ internalType: "string",
825
+ name: "redirectUrl",
826
+ type: "string"
827
+ }, {
828
+ internalType: "uint64",
829
+ name: "issuedAt",
830
+ type: "uint64"
831
+ }],
832
+ internalType: "struct AuthData",
833
+ name: "authData",
834
+ type: "tuple"
835
+ }
836
+ ],
837
+ internalType: "struct Attestation",
838
+ name: "attestation",
839
+ type: "tuple"
840
+ },
841
+ {
842
+ components: [
843
+ {
844
+ internalType: "address",
845
+ name: "to",
846
+ type: "address"
847
+ },
848
+ {
849
+ internalType: "uint256",
850
+ name: "value",
851
+ type: "uint256"
852
+ },
853
+ {
854
+ internalType: "bytes",
855
+ name: "data",
856
+ type: "bytes"
857
+ },
858
+ {
859
+ internalType: "uint256",
860
+ name: "gasLimit",
861
+ type: "uint256"
862
+ },
863
+ {
864
+ internalType: "bool",
865
+ name: "delegateCall",
866
+ type: "bool"
867
+ },
868
+ {
869
+ internalType: "bool",
870
+ name: "onlyFallback",
871
+ type: "bool"
872
+ },
873
+ {
874
+ internalType: "uint256",
875
+ name: "behaviorOnError",
876
+ type: "uint256"
877
+ }
878
+ ],
879
+ internalType: "struct Payload.Call",
880
+ name: "call",
881
+ type: "tuple"
882
+ }
883
+ ],
884
+ name: "acceptImplicitRequest",
885
+ outputs: [{
886
+ internalType: "bytes32",
887
+ name: "",
888
+ type: "bytes32"
889
+ }],
890
+ stateMutability: "view",
891
+ type: "function"
892
+ },
893
+ {
894
+ inputs: [
895
+ {
896
+ internalType: "bytes32",
897
+ name: "root",
898
+ type: "bytes32"
899
+ },
900
+ {
901
+ internalType: "bytes32[]",
902
+ name: "proof",
903
+ type: "bytes32[]"
904
+ },
905
+ {
906
+ internalType: "address",
907
+ name: "addr",
908
+ type: "address"
909
+ },
910
+ {
911
+ internalType: "bytes32",
912
+ name: "salt",
913
+ type: "bytes32"
914
+ }
915
+ ],
916
+ name: "checkMerkleProof",
917
+ outputs: [{
918
+ internalType: "bool",
919
+ name: "",
920
+ type: "bool"
921
+ }],
922
+ stateMutability: "view",
923
+ type: "function"
924
+ },
925
+ {
926
+ inputs: [{
927
+ internalType: "bytes32",
928
+ name: "role",
929
+ type: "bytes32"
930
+ }],
931
+ name: "getRoleAdmin",
932
+ outputs: [{
933
+ internalType: "bytes32",
934
+ name: "",
935
+ type: "bytes32"
936
+ }],
937
+ stateMutability: "view",
938
+ type: "function"
939
+ },
940
+ {
941
+ inputs: [{
942
+ internalType: "bytes32",
943
+ name: "role",
944
+ type: "bytes32"
945
+ }, {
946
+ internalType: "uint256",
947
+ name: "index",
948
+ type: "uint256"
949
+ }],
950
+ name: "getRoleMember",
951
+ outputs: [{
952
+ internalType: "address",
953
+ name: "",
954
+ type: "address"
955
+ }],
956
+ stateMutability: "view",
957
+ type: "function"
958
+ },
959
+ {
960
+ inputs: [{
961
+ internalType: "bytes32",
962
+ name: "role",
963
+ type: "bytes32"
964
+ }],
965
+ name: "getRoleMemberCount",
966
+ outputs: [{
967
+ internalType: "uint256",
968
+ name: "",
969
+ type: "uint256"
970
+ }],
971
+ stateMutability: "view",
972
+ type: "function"
973
+ },
974
+ {
975
+ inputs: [{
976
+ internalType: "bytes32",
977
+ name: "role",
978
+ type: "bytes32"
979
+ }, {
980
+ internalType: "address",
981
+ name: "account",
982
+ type: "address"
983
+ }],
984
+ name: "grantRole",
985
+ outputs: [],
986
+ stateMutability: "nonpayable",
987
+ type: "function"
988
+ },
989
+ {
990
+ inputs: [{
991
+ internalType: "bytes32",
992
+ name: "role",
993
+ type: "bytes32"
994
+ }, {
995
+ internalType: "address",
996
+ name: "account",
997
+ type: "address"
998
+ }],
999
+ name: "hasRole",
1000
+ outputs: [{
1001
+ internalType: "bool",
1002
+ name: "",
1003
+ type: "bool"
1004
+ }],
1005
+ stateMutability: "view",
1006
+ type: "function"
1007
+ },
1008
+ {
1009
+ inputs: [
1010
+ {
1011
+ internalType: "address",
1012
+ name: "owner",
1013
+ type: "address"
1014
+ },
1015
+ {
1016
+ internalType: "address",
1017
+ name: "items",
1018
+ type: "address"
1019
+ },
1020
+ {
1021
+ internalType: "address",
1022
+ name: "implicitModeValidator",
1023
+ type: "address"
1024
+ },
1025
+ {
1026
+ internalType: "bytes32",
1027
+ name: "implicitModeProjectId",
1028
+ type: "bytes32"
1029
+ }
1030
+ ],
1031
+ name: "initialize",
1032
+ outputs: [],
1033
+ stateMutability: "nonpayable",
1034
+ type: "function"
1035
+ },
1036
+ {
1037
+ inputs: [],
1038
+ name: "itemsContract",
1039
+ outputs: [{
1040
+ internalType: "address",
1041
+ name: "",
1042
+ type: "address"
1043
+ }],
1044
+ stateMutability: "view",
1045
+ type: "function"
1046
+ },
1047
+ {
1048
+ inputs: [
1049
+ {
1050
+ internalType: "address",
1051
+ name: "to",
1052
+ type: "address"
1053
+ },
1054
+ {
1055
+ internalType: "uint256",
1056
+ name: "amount",
1057
+ type: "uint256"
1058
+ },
1059
+ {
1060
+ internalType: "address",
1061
+ name: "paymentToken",
1062
+ type: "address"
1063
+ },
1064
+ {
1065
+ internalType: "uint256",
1066
+ name: "maxTotal",
1067
+ type: "uint256"
1068
+ },
1069
+ {
1070
+ internalType: "bytes32[]",
1071
+ name: "proof",
1072
+ type: "bytes32[]"
1073
+ }
1074
+ ],
1075
+ name: "mint",
1076
+ outputs: [],
1077
+ stateMutability: "payable",
1078
+ type: "function"
1079
+ },
1080
+ {
1081
+ inputs: [{
1082
+ internalType: "bytes32",
1083
+ name: "role",
1084
+ type: "bytes32"
1085
+ }, {
1086
+ internalType: "address",
1087
+ name: "account",
1088
+ type: "address"
1089
+ }],
1090
+ name: "renounceRole",
1091
+ outputs: [],
1092
+ stateMutability: "nonpayable",
1093
+ type: "function"
1094
+ },
1095
+ {
1096
+ inputs: [{
1097
+ internalType: "bytes32",
1098
+ name: "role",
1099
+ type: "bytes32"
1100
+ }, {
1101
+ internalType: "address",
1102
+ name: "account",
1103
+ type: "address"
1104
+ }],
1105
+ name: "revokeRole",
1106
+ outputs: [],
1107
+ stateMutability: "nonpayable",
1108
+ type: "function"
1109
+ },
1110
+ {
1111
+ inputs: [],
1112
+ name: "saleDetails",
1113
+ outputs: [{
1114
+ components: [
1115
+ {
1116
+ internalType: "uint256",
1117
+ name: "remainingSupply",
1118
+ type: "uint256"
1119
+ },
1120
+ {
1121
+ internalType: "uint256",
1122
+ name: "cost",
1123
+ type: "uint256"
1124
+ },
1125
+ {
1126
+ internalType: "address",
1127
+ name: "paymentToken",
1128
+ type: "address"
1129
+ },
1130
+ {
1131
+ internalType: "uint64",
1132
+ name: "startTime",
1133
+ type: "uint64"
1134
+ },
1135
+ {
1136
+ internalType: "uint64",
1137
+ name: "endTime",
1138
+ type: "uint64"
1139
+ },
1140
+ {
1141
+ internalType: "bytes32",
1142
+ name: "merkleRoot",
1143
+ type: "bytes32"
1144
+ }
1145
+ ],
1146
+ internalType: "struct IERC721SaleFunctions.SaleDetails",
1147
+ name: "",
1148
+ type: "tuple"
1149
+ }],
1150
+ stateMutability: "view",
1151
+ type: "function"
1152
+ },
1153
+ {
1154
+ inputs: [{
1155
+ internalType: "bytes32",
1156
+ name: "projectId",
1157
+ type: "bytes32"
1158
+ }],
1159
+ name: "setImplicitModeProjectId",
1160
+ outputs: [],
1161
+ stateMutability: "nonpayable",
1162
+ type: "function"
1163
+ },
1164
+ {
1165
+ inputs: [{
1166
+ internalType: "address",
1167
+ name: "validator",
1168
+ type: "address"
1169
+ }],
1170
+ name: "setImplicitModeValidator",
1171
+ outputs: [],
1172
+ stateMutability: "nonpayable",
1173
+ type: "function"
1174
+ },
1175
+ {
1176
+ inputs: [
1177
+ {
1178
+ internalType: "uint256",
1179
+ name: "remainingSupply",
1180
+ type: "uint256"
1181
+ },
1182
+ {
1183
+ internalType: "uint256",
1184
+ name: "cost",
1185
+ type: "uint256"
1186
+ },
1187
+ {
1188
+ internalType: "address",
1189
+ name: "paymentToken",
1190
+ type: "address"
1191
+ },
1192
+ {
1193
+ internalType: "uint64",
1194
+ name: "startTime",
1195
+ type: "uint64"
1196
+ },
1197
+ {
1198
+ internalType: "uint64",
1199
+ name: "endTime",
1200
+ type: "uint64"
1201
+ },
1202
+ {
1203
+ internalType: "bytes32",
1204
+ name: "merkleRoot",
1205
+ type: "bytes32"
1206
+ }
1207
+ ],
1208
+ name: "setSaleDetails",
1209
+ outputs: [],
1210
+ stateMutability: "nonpayable",
1211
+ type: "function"
1212
+ },
1213
+ {
1214
+ inputs: [{
1215
+ internalType: "bytes4",
1216
+ name: "interfaceId",
1217
+ type: "bytes4"
1218
+ }],
1219
+ name: "supportsInterface",
1220
+ outputs: [{
1221
+ internalType: "bool",
1222
+ name: "",
1223
+ type: "bool"
1224
+ }],
1225
+ stateMutability: "view",
1226
+ type: "function"
1227
+ },
1228
+ {
1229
+ inputs: [
1230
+ {
1231
+ internalType: "address",
1232
+ name: "token",
1233
+ type: "address"
1234
+ },
1235
+ {
1236
+ internalType: "address",
1237
+ name: "to",
1238
+ type: "address"
1239
+ },
1240
+ {
1241
+ internalType: "uint256",
1242
+ name: "value",
1243
+ type: "uint256"
1244
+ }
1245
+ ],
1246
+ name: "withdrawERC20",
1247
+ outputs: [],
1248
+ stateMutability: "nonpayable",
1249
+ type: "function"
1250
+ },
1251
+ {
1252
+ inputs: [{
1253
+ internalType: "address",
1254
+ name: "to",
1255
+ type: "address"
1256
+ }, {
1257
+ internalType: "uint256",
1258
+ name: "value",
1259
+ type: "uint256"
1260
+ }],
1261
+ name: "withdrawETH",
1262
+ outputs: [],
1263
+ stateMutability: "nonpayable",
1264
+ type: "function"
1265
+ }
1266
+ ];
1267
+
1268
+ //#endregion
1269
+ //#region src/utils/abi/primary-sale/sequence-1155-sales-contract-v0.ts
1270
+ const ERC1155_SALES_CONTRACT_ABI_V0 = [
1271
+ {
1272
+ type: "function",
1273
+ name: "DEFAULT_ADMIN_ROLE",
1274
+ inputs: [],
1275
+ outputs: [{
1276
+ name: "",
1277
+ type: "bytes32",
1278
+ internalType: "bytes32"
1279
+ }],
1280
+ stateMutability: "view"
1281
+ },
1282
+ {
1283
+ type: "function",
1284
+ name: "checkMerkleProof",
1285
+ inputs: [
1286
+ {
1287
+ name: "root",
1288
+ type: "bytes32",
1289
+ internalType: "bytes32"
1290
+ },
1291
+ {
1292
+ name: "proof",
1293
+ type: "bytes32[]",
1294
+ internalType: "bytes32[]"
1295
+ },
1296
+ {
1297
+ name: "addr",
1298
+ type: "address",
1299
+ internalType: "address"
1300
+ },
1301
+ {
1302
+ name: "salt",
1303
+ type: "bytes32",
1304
+ internalType: "bytes32"
1305
+ }
1306
+ ],
1307
+ outputs: [{
1308
+ name: "",
1309
+ type: "bool",
1310
+ internalType: "bool"
1311
+ }],
1312
+ stateMutability: "view"
1313
+ },
1314
+ {
1315
+ type: "function",
1316
+ name: "getRoleAdmin",
1317
+ inputs: [{
1318
+ name: "role",
1319
+ type: "bytes32",
1320
+ internalType: "bytes32"
1321
+ }],
1322
+ outputs: [{
1323
+ name: "",
1324
+ type: "bytes32",
1325
+ internalType: "bytes32"
1326
+ }],
1327
+ stateMutability: "view"
1328
+ },
1329
+ {
1330
+ type: "function",
1331
+ name: "getRoleMember",
1332
+ inputs: [{
1333
+ name: "role",
1334
+ type: "bytes32",
1335
+ internalType: "bytes32"
1336
+ }, {
1337
+ name: "index",
1338
+ type: "uint256",
1339
+ internalType: "uint256"
1340
+ }],
1341
+ outputs: [{
1342
+ name: "",
1343
+ type: "address",
1344
+ internalType: "address"
1345
+ }],
1346
+ stateMutability: "view"
1347
+ },
1348
+ {
1349
+ type: "function",
1350
+ name: "getRoleMemberCount",
1351
+ inputs: [{
1352
+ name: "role",
1353
+ type: "bytes32",
1354
+ internalType: "bytes32"
1355
+ }],
1356
+ outputs: [{
1357
+ name: "",
1358
+ type: "uint256",
1359
+ internalType: "uint256"
1360
+ }],
1361
+ stateMutability: "view"
1362
+ },
1363
+ {
1364
+ type: "function",
1365
+ name: "globalSaleDetails",
1366
+ inputs: [],
1367
+ outputs: [{
1368
+ name: "",
1369
+ type: "tuple",
1370
+ internalType: "struct IERC1155SaleFunctions.SaleDetails",
1371
+ components: [
1372
+ {
1373
+ name: "cost",
1374
+ type: "uint256",
1375
+ internalType: "uint256"
1376
+ },
1377
+ {
1378
+ name: "supplyCap",
1379
+ type: "uint256",
1380
+ internalType: "uint256"
1381
+ },
1382
+ {
1383
+ name: "startTime",
1384
+ type: "uint64",
1385
+ internalType: "uint64"
1386
+ },
1387
+ {
1388
+ name: "endTime",
1389
+ type: "uint64",
1390
+ internalType: "uint64"
1391
+ },
1392
+ {
1393
+ name: "merkleRoot",
1394
+ type: "bytes32",
1395
+ internalType: "bytes32"
1396
+ }
1397
+ ]
1398
+ }],
1399
+ stateMutability: "view"
1400
+ },
1401
+ {
1402
+ type: "function",
1403
+ name: "grantRole",
1404
+ inputs: [{
1405
+ name: "role",
1406
+ type: "bytes32",
1407
+ internalType: "bytes32"
1408
+ }, {
1409
+ name: "account",
1410
+ type: "address",
1411
+ internalType: "address"
1412
+ }],
1413
+ outputs: [],
1414
+ stateMutability: "nonpayable"
1415
+ },
1416
+ {
1417
+ type: "function",
1418
+ name: "hasRole",
1419
+ inputs: [{
1420
+ name: "role",
1421
+ type: "bytes32",
1422
+ internalType: "bytes32"
1423
+ }, {
1424
+ name: "account",
1425
+ type: "address",
1426
+ internalType: "address"
1427
+ }],
1428
+ outputs: [{
1429
+ name: "",
1430
+ type: "bool",
1431
+ internalType: "bool"
1432
+ }],
1433
+ stateMutability: "view"
1434
+ },
1435
+ {
1436
+ type: "function",
1437
+ name: "initialize",
1438
+ inputs: [{
1439
+ name: "owner",
1440
+ type: "address",
1441
+ internalType: "address"
1442
+ }, {
1443
+ name: "items",
1444
+ type: "address",
1445
+ internalType: "address"
1446
+ }],
1447
+ outputs: [],
1448
+ stateMutability: "nonpayable"
1449
+ },
1450
+ {
1451
+ type: "function",
1452
+ name: "mint",
1453
+ inputs: [
1454
+ {
1455
+ name: "to",
1456
+ type: "address",
1457
+ internalType: "address"
1458
+ },
1459
+ {
1460
+ name: "tokenIds",
1461
+ type: "uint256[]",
1462
+ internalType: "uint256[]"
1463
+ },
1464
+ {
1465
+ name: "amounts",
1466
+ type: "uint256[]",
1467
+ internalType: "uint256[]"
1468
+ },
1469
+ {
1470
+ name: "data",
1471
+ type: "bytes",
1472
+ internalType: "bytes"
1473
+ },
1474
+ {
1475
+ name: "expectedPaymentToken",
1476
+ type: "address",
1477
+ internalType: "address"
1478
+ },
1479
+ {
1480
+ name: "maxTotal",
1481
+ type: "uint256",
1482
+ internalType: "uint256"
1483
+ },
1484
+ {
1485
+ name: "proof",
1486
+ type: "bytes32[]",
1487
+ internalType: "bytes32[]"
1488
+ }
1489
+ ],
1490
+ outputs: [],
1491
+ stateMutability: "payable"
1492
+ },
1493
+ {
1494
+ type: "function",
1495
+ name: "paymentToken",
1496
+ inputs: [],
1497
+ outputs: [{
1498
+ name: "",
1499
+ type: "address",
1500
+ internalType: "address"
1501
+ }],
1502
+ stateMutability: "view"
1503
+ },
1504
+ {
1505
+ type: "function",
1506
+ name: "renounceRole",
1507
+ inputs: [{
1508
+ name: "role",
1509
+ type: "bytes32",
1510
+ internalType: "bytes32"
1511
+ }, {
1512
+ name: "account",
1513
+ type: "address",
1514
+ internalType: "address"
1515
+ }],
1516
+ outputs: [],
1517
+ stateMutability: "nonpayable"
1518
+ },
1519
+ {
1520
+ type: "function",
1521
+ name: "revokeRole",
1522
+ inputs: [{
1523
+ name: "role",
1524
+ type: "bytes32",
1525
+ internalType: "bytes32"
1526
+ }, {
1527
+ name: "account",
1528
+ type: "address",
1529
+ internalType: "address"
1530
+ }],
1531
+ outputs: [],
1532
+ stateMutability: "nonpayable"
1533
+ },
1534
+ {
1535
+ type: "function",
1536
+ name: "setGlobalSaleDetails",
1537
+ inputs: [
1538
+ {
1539
+ name: "cost",
1540
+ type: "uint256",
1541
+ internalType: "uint256"
1542
+ },
1543
+ {
1544
+ name: "supplyCap",
1545
+ type: "uint256",
1546
+ internalType: "uint256"
1547
+ },
1548
+ {
1549
+ name: "startTime",
1550
+ type: "uint64",
1551
+ internalType: "uint64"
1552
+ },
1553
+ {
1554
+ name: "endTime",
1555
+ type: "uint64",
1556
+ internalType: "uint64"
1557
+ },
1558
+ {
1559
+ name: "merkleRoot",
1560
+ type: "bytes32",
1561
+ internalType: "bytes32"
1562
+ }
1563
+ ],
1564
+ outputs: [],
1565
+ stateMutability: "nonpayable"
1566
+ },
1567
+ {
1568
+ type: "function",
1569
+ name: "setPaymentToken",
1570
+ inputs: [{
1571
+ name: "paymentTokenAddr",
1572
+ type: "address",
1573
+ internalType: "address"
1574
+ }],
1575
+ outputs: [],
1576
+ stateMutability: "nonpayable"
1577
+ },
1578
+ {
1579
+ type: "function",
1580
+ name: "setTokenSaleDetails",
1581
+ inputs: [
1582
+ {
1583
+ name: "tokenId",
1584
+ type: "uint256",
1585
+ internalType: "uint256"
1586
+ },
1587
+ {
1588
+ name: "cost",
1589
+ type: "uint256",
1590
+ internalType: "uint256"
1591
+ },
1592
+ {
1593
+ name: "supplyCap",
1594
+ type: "uint256",
1595
+ internalType: "uint256"
1596
+ },
1597
+ {
1598
+ name: "startTime",
1599
+ type: "uint64",
1600
+ internalType: "uint64"
1601
+ },
1602
+ {
1603
+ name: "endTime",
1604
+ type: "uint64",
1605
+ internalType: "uint64"
1606
+ },
1607
+ {
1608
+ name: "merkleRoot",
1609
+ type: "bytes32",
1610
+ internalType: "bytes32"
1611
+ }
1612
+ ],
1613
+ outputs: [],
1614
+ stateMutability: "nonpayable"
1615
+ },
1616
+ {
1617
+ type: "function",
1618
+ name: "setTokenSaleDetailsBatch",
1619
+ inputs: [
1620
+ {
1621
+ name: "tokenIds",
1622
+ type: "uint256[]",
1623
+ internalType: "uint256[]"
1624
+ },
1625
+ {
1626
+ name: "costs",
1627
+ type: "uint256[]",
1628
+ internalType: "uint256[]"
1629
+ },
1630
+ {
1631
+ name: "supplyCaps",
1632
+ type: "uint256[]",
1633
+ internalType: "uint256[]"
1634
+ },
1635
+ {
1636
+ name: "startTimes",
1637
+ type: "uint64[]",
1638
+ internalType: "uint64[]"
1639
+ },
1640
+ {
1641
+ name: "endTimes",
1642
+ type: "uint64[]",
1643
+ internalType: "uint64[]"
1644
+ },
1645
+ {
1646
+ name: "merkleRoots",
1647
+ type: "bytes32[]",
1648
+ internalType: "bytes32[]"
1649
+ }
1650
+ ],
1651
+ outputs: [],
1652
+ stateMutability: "nonpayable"
1653
+ },
1654
+ {
1655
+ type: "function",
1656
+ name: "supportsInterface",
1657
+ inputs: [{
1658
+ name: "interfaceId",
1659
+ type: "bytes4",
1660
+ internalType: "bytes4"
1661
+ }],
1662
+ outputs: [{
1663
+ name: "",
1664
+ type: "bool",
1665
+ internalType: "bool"
1666
+ }],
1667
+ stateMutability: "view"
1668
+ },
1669
+ {
1670
+ type: "function",
1671
+ name: "tokenSaleDetails",
1672
+ inputs: [{
1673
+ name: "tokenId",
1674
+ type: "uint256",
1675
+ internalType: "uint256"
1676
+ }],
1677
+ outputs: [{
1678
+ name: "",
1679
+ type: "tuple",
1680
+ internalType: "struct IERC1155SaleFunctions.SaleDetails",
1681
+ components: [
1682
+ {
1683
+ name: "cost",
1684
+ type: "uint256",
1685
+ internalType: "uint256"
1686
+ },
1687
+ {
1688
+ name: "supplyCap",
1689
+ type: "uint256",
1690
+ internalType: "uint256"
1691
+ },
1692
+ {
1693
+ name: "startTime",
1694
+ type: "uint64",
1695
+ internalType: "uint64"
1696
+ },
1697
+ {
1698
+ name: "endTime",
1699
+ type: "uint64",
1700
+ internalType: "uint64"
1701
+ },
1702
+ {
1703
+ name: "merkleRoot",
1704
+ type: "bytes32",
1705
+ internalType: "bytes32"
1706
+ }
1707
+ ]
1708
+ }],
1709
+ stateMutability: "view"
1710
+ },
1711
+ {
1712
+ type: "function",
1713
+ name: "tokenSaleDetailsBatch",
1714
+ inputs: [{
1715
+ name: "tokenIds",
1716
+ type: "uint256[]",
1717
+ internalType: "uint256[]"
1718
+ }],
1719
+ outputs: [{
1720
+ name: "",
1721
+ type: "tuple[]",
1722
+ internalType: "struct IERC1155SaleFunctions.SaleDetails[]",
1723
+ components: [
1724
+ {
1725
+ name: "cost",
1726
+ type: "uint256",
1727
+ internalType: "uint256"
1728
+ },
1729
+ {
1730
+ name: "supplyCap",
1731
+ type: "uint256",
1732
+ internalType: "uint256"
1733
+ },
1734
+ {
1735
+ name: "startTime",
1736
+ type: "uint64",
1737
+ internalType: "uint64"
1738
+ },
1739
+ {
1740
+ name: "endTime",
1741
+ type: "uint64",
1742
+ internalType: "uint64"
1743
+ },
1744
+ {
1745
+ name: "merkleRoot",
1746
+ type: "bytes32",
1747
+ internalType: "bytes32"
1748
+ }
1749
+ ]
1750
+ }],
1751
+ stateMutability: "view"
1752
+ },
1753
+ {
1754
+ type: "function",
1755
+ name: "withdrawERC20",
1756
+ inputs: [
1757
+ {
1758
+ name: "token",
1759
+ type: "address",
1760
+ internalType: "address"
1761
+ },
1762
+ {
1763
+ name: "to",
1764
+ type: "address",
1765
+ internalType: "address"
1766
+ },
1767
+ {
1768
+ name: "value",
1769
+ type: "uint256",
1770
+ internalType: "uint256"
1771
+ }
1772
+ ],
1773
+ outputs: [],
1774
+ stateMutability: "nonpayable"
1775
+ },
1776
+ {
1777
+ type: "function",
1778
+ name: "withdrawETH",
1779
+ inputs: [{
1780
+ name: "to",
1781
+ type: "address",
1782
+ internalType: "address"
1783
+ }, {
1784
+ name: "value",
1785
+ type: "uint256",
1786
+ internalType: "uint256"
1787
+ }],
1788
+ outputs: [],
1789
+ stateMutability: "nonpayable"
1790
+ },
1791
+ {
1792
+ type: "event",
1793
+ name: "GlobalSaleDetailsUpdated",
1794
+ inputs: [
1795
+ {
1796
+ name: "cost",
1797
+ type: "uint256",
1798
+ indexed: false,
1799
+ internalType: "uint256"
1800
+ },
1801
+ {
1802
+ name: "supplyCap",
1803
+ type: "uint256",
1804
+ indexed: false,
1805
+ internalType: "uint256"
1806
+ },
1807
+ {
1808
+ name: "startTime",
1809
+ type: "uint64",
1810
+ indexed: false,
1811
+ internalType: "uint64"
1812
+ },
1813
+ {
1814
+ name: "endTime",
1815
+ type: "uint64",
1816
+ indexed: false,
1817
+ internalType: "uint64"
1818
+ },
1819
+ {
1820
+ name: "merkleRoot",
1821
+ type: "bytes32",
1822
+ indexed: false,
1823
+ internalType: "bytes32"
1824
+ }
1825
+ ],
1826
+ anonymous: false
1827
+ },
1828
+ {
1829
+ type: "event",
1830
+ name: "ItemsMinted",
1831
+ inputs: [
1832
+ {
1833
+ name: "to",
1834
+ type: "address",
1835
+ indexed: false,
1836
+ internalType: "address"
1837
+ },
1838
+ {
1839
+ name: "tokenIds",
1840
+ type: "uint256[]",
1841
+ indexed: false,
1842
+ internalType: "uint256[]"
1843
+ },
1844
+ {
1845
+ name: "amounts",
1846
+ type: "uint256[]",
1847
+ indexed: false,
1848
+ internalType: "uint256[]"
1849
+ }
1850
+ ],
1851
+ anonymous: false
1852
+ },
1853
+ {
1854
+ type: "event",
1855
+ name: "RoleAdminChanged",
1856
+ inputs: [
1857
+ {
1858
+ name: "role",
1859
+ type: "bytes32",
1860
+ indexed: true,
1861
+ internalType: "bytes32"
1862
+ },
1863
+ {
1864
+ name: "previousAdminRole",
1865
+ type: "bytes32",
1866
+ indexed: true,
1867
+ internalType: "bytes32"
1868
+ },
1869
+ {
1870
+ name: "newAdminRole",
1871
+ type: "bytes32",
1872
+ indexed: true,
1873
+ internalType: "bytes32"
1874
+ }
1875
+ ],
1876
+ anonymous: false
1877
+ },
1878
+ {
1879
+ type: "event",
1880
+ name: "RoleGranted",
1881
+ inputs: [
1882
+ {
1883
+ name: "role",
1884
+ type: "bytes32",
1885
+ indexed: true,
1886
+ internalType: "bytes32"
1887
+ },
1888
+ {
1889
+ name: "account",
1890
+ type: "address",
1891
+ indexed: true,
1892
+ internalType: "address"
1893
+ },
1894
+ {
1895
+ name: "sender",
1896
+ type: "address",
1897
+ indexed: true,
1898
+ internalType: "address"
1899
+ }
1900
+ ],
1901
+ anonymous: false
1902
+ },
1903
+ {
1904
+ type: "event",
1905
+ name: "RoleRevoked",
1906
+ inputs: [
1907
+ {
1908
+ name: "role",
1909
+ type: "bytes32",
1910
+ indexed: true,
1911
+ internalType: "bytes32"
1912
+ },
1913
+ {
1914
+ name: "account",
1915
+ type: "address",
1916
+ indexed: true,
1917
+ internalType: "address"
1918
+ },
1919
+ {
1920
+ name: "sender",
1921
+ type: "address",
1922
+ indexed: true,
1923
+ internalType: "address"
1924
+ }
1925
+ ],
1926
+ anonymous: false
1927
+ },
1928
+ {
1929
+ type: "event",
1930
+ name: "TokenSaleDetailsUpdated",
1931
+ inputs: [
1932
+ {
1933
+ name: "tokenId",
1934
+ type: "uint256",
1935
+ indexed: false,
1936
+ internalType: "uint256"
1937
+ },
1938
+ {
1939
+ name: "cost",
1940
+ type: "uint256",
1941
+ indexed: false,
1942
+ internalType: "uint256"
1943
+ },
1944
+ {
1945
+ name: "supplyCap",
1946
+ type: "uint256",
1947
+ indexed: false,
1948
+ internalType: "uint256"
1949
+ },
1950
+ {
1951
+ name: "startTime",
1952
+ type: "uint64",
1953
+ indexed: false,
1954
+ internalType: "uint64"
1955
+ },
1956
+ {
1957
+ name: "endTime",
1958
+ type: "uint64",
1959
+ indexed: false,
1960
+ internalType: "uint64"
1961
+ },
1962
+ {
1963
+ name: "merkleRoot",
1964
+ type: "bytes32",
1965
+ indexed: false,
1966
+ internalType: "bytes32"
1967
+ }
1968
+ ],
1969
+ anonymous: false
1970
+ },
1971
+ {
1972
+ type: "error",
1973
+ name: "GlobalSaleInactive",
1974
+ inputs: []
1975
+ },
1976
+ {
1977
+ type: "error",
1978
+ name: "InsufficientPayment",
1979
+ inputs: [
1980
+ {
1981
+ name: "currency",
1982
+ type: "address",
1983
+ internalType: "address"
1984
+ },
1985
+ {
1986
+ name: "expected",
1987
+ type: "uint256",
1988
+ internalType: "uint256"
1989
+ },
1990
+ {
1991
+ name: "actual",
1992
+ type: "uint256",
1993
+ internalType: "uint256"
1994
+ }
1995
+ ]
1996
+ },
1997
+ {
1998
+ type: "error",
1999
+ name: "InsufficientSupply",
2000
+ inputs: [
2001
+ {
2002
+ name: "currentSupply",
2003
+ type: "uint256",
2004
+ internalType: "uint256"
2005
+ },
2006
+ {
2007
+ name: "requestedAmount",
2008
+ type: "uint256",
2009
+ internalType: "uint256"
2010
+ },
2011
+ {
2012
+ name: "maxSupply",
2013
+ type: "uint256",
2014
+ internalType: "uint256"
2015
+ }
2016
+ ]
2017
+ },
2018
+ {
2019
+ type: "error",
2020
+ name: "InvalidInitialization",
2021
+ inputs: []
2022
+ },
2023
+ {
2024
+ type: "error",
2025
+ name: "InvalidSaleDetails",
2026
+ inputs: []
2027
+ },
2028
+ {
2029
+ type: "error",
2030
+ name: "InvalidTokenIds",
2031
+ inputs: []
2032
+ },
2033
+ {
2034
+ type: "error",
2035
+ name: "MerkleProofInvalid",
2036
+ inputs: [
2037
+ {
2038
+ name: "root",
2039
+ type: "bytes32",
2040
+ internalType: "bytes32"
2041
+ },
2042
+ {
2043
+ name: "proof",
2044
+ type: "bytes32[]",
2045
+ internalType: "bytes32[]"
2046
+ },
2047
+ {
2048
+ name: "addr",
2049
+ type: "address",
2050
+ internalType: "address"
2051
+ },
2052
+ {
2053
+ name: "salt",
2054
+ type: "bytes32",
2055
+ internalType: "bytes32"
2056
+ }
2057
+ ]
2058
+ },
2059
+ {
2060
+ type: "error",
2061
+ name: "SaleInactive",
2062
+ inputs: [{
2063
+ name: "tokenId",
2064
+ type: "uint256",
2065
+ internalType: "uint256"
2066
+ }]
2067
+ },
2068
+ {
2069
+ type: "error",
2070
+ name: "WithdrawFailed",
2071
+ inputs: []
2072
+ }
2073
+ ];
2074
+
2075
+ //#endregion
2076
+ //#region src/utils/abi/primary-sale/sequence-1155-sales-contract-v1.ts
2077
+ const ERC1155_SALES_CONTRACT_ABI_V1 = [
2078
+ {
2079
+ inputs: [],
2080
+ name: "GlobalSaleInactive",
2081
+ type: "error"
2082
+ },
2083
+ {
2084
+ inputs: [
2085
+ {
2086
+ internalType: "address",
2087
+ name: "currency",
2088
+ type: "address"
2089
+ },
2090
+ {
2091
+ internalType: "uint256",
2092
+ name: "expected",
2093
+ type: "uint256"
2094
+ },
2095
+ {
2096
+ internalType: "uint256",
2097
+ name: "actual",
2098
+ type: "uint256"
2099
+ }
2100
+ ],
2101
+ name: "InsufficientPayment",
2102
+ type: "error"
2103
+ },
2104
+ {
2105
+ inputs: [{
2106
+ internalType: "uint256",
2107
+ name: "remainingSupply",
2108
+ type: "uint256"
2109
+ }, {
2110
+ internalType: "uint256",
2111
+ name: "amount",
2112
+ type: "uint256"
2113
+ }],
2114
+ name: "InsufficientSupply",
2115
+ type: "error"
2116
+ },
2117
+ {
2118
+ inputs: [],
2119
+ name: "InvalidInitialization",
2120
+ type: "error"
2121
+ },
2122
+ {
2123
+ inputs: [],
2124
+ name: "InvalidSaleDetails",
2125
+ type: "error"
2126
+ },
2127
+ {
2128
+ inputs: [],
2129
+ name: "InvalidTokenIds",
2130
+ type: "error"
2131
+ },
2132
+ {
2133
+ inputs: [
2134
+ {
2135
+ internalType: "bytes32",
2136
+ name: "root",
2137
+ type: "bytes32"
2138
+ },
2139
+ {
2140
+ internalType: "bytes32[]",
2141
+ name: "proof",
2142
+ type: "bytes32[]"
2143
+ },
2144
+ {
2145
+ internalType: "address",
2146
+ name: "addr",
2147
+ type: "address"
2148
+ },
2149
+ {
2150
+ internalType: "bytes32",
2151
+ name: "salt",
2152
+ type: "bytes32"
2153
+ }
2154
+ ],
2155
+ name: "MerkleProofInvalid",
2156
+ type: "error"
2157
+ },
2158
+ {
2159
+ inputs: [{
2160
+ internalType: "uint256",
2161
+ name: "tokenId",
2162
+ type: "uint256"
2163
+ }],
2164
+ name: "SaleInactive",
2165
+ type: "error"
2166
+ },
2167
+ {
2168
+ inputs: [],
2169
+ name: "WithdrawFailed",
2170
+ type: "error"
2171
+ },
2172
+ {
2173
+ anonymous: false,
2174
+ inputs: [
2175
+ {
2176
+ indexed: false,
2177
+ internalType: "uint256",
2178
+ name: "minTokenId",
2179
+ type: "uint256"
2180
+ },
2181
+ {
2182
+ indexed: false,
2183
+ internalType: "uint256",
2184
+ name: "maxTokenId",
2185
+ type: "uint256"
2186
+ },
2187
+ {
2188
+ indexed: false,
2189
+ internalType: "uint256",
2190
+ name: "cost",
2191
+ type: "uint256"
2192
+ },
2193
+ {
2194
+ indexed: false,
2195
+ internalType: "uint256",
2196
+ name: "remainingSupply",
2197
+ type: "uint256"
2198
+ },
2199
+ {
2200
+ indexed: false,
2201
+ internalType: "uint64",
2202
+ name: "startTime",
2203
+ type: "uint64"
2204
+ },
2205
+ {
2206
+ indexed: false,
2207
+ internalType: "uint64",
2208
+ name: "endTime",
2209
+ type: "uint64"
2210
+ },
2211
+ {
2212
+ indexed: false,
2213
+ internalType: "bytes32",
2214
+ name: "merkleRoot",
2215
+ type: "bytes32"
2216
+ }
2217
+ ],
2218
+ name: "GlobalSaleDetailsUpdated",
2219
+ type: "event"
2220
+ },
2221
+ {
2222
+ anonymous: false,
2223
+ inputs: [
2224
+ {
2225
+ indexed: false,
2226
+ internalType: "address",
2227
+ name: "to",
2228
+ type: "address"
2229
+ },
2230
+ {
2231
+ indexed: false,
2232
+ internalType: "uint256[]",
2233
+ name: "tokenIds",
2234
+ type: "uint256[]"
2235
+ },
2236
+ {
2237
+ indexed: false,
2238
+ internalType: "uint256[]",
2239
+ name: "amounts",
2240
+ type: "uint256[]"
2241
+ }
2242
+ ],
2243
+ name: "ItemsMinted",
2244
+ type: "event"
2245
+ },
2246
+ {
2247
+ anonymous: false,
2248
+ inputs: [
2249
+ {
2250
+ indexed: true,
2251
+ internalType: "bytes32",
2252
+ name: "role",
2253
+ type: "bytes32"
2254
+ },
2255
+ {
2256
+ indexed: true,
2257
+ internalType: "bytes32",
2258
+ name: "previousAdminRole",
2259
+ type: "bytes32"
2260
+ },
2261
+ {
2262
+ indexed: true,
2263
+ internalType: "bytes32",
2264
+ name: "newAdminRole",
2265
+ type: "bytes32"
2266
+ }
2267
+ ],
2268
+ name: "RoleAdminChanged",
2269
+ type: "event"
2270
+ },
2271
+ {
2272
+ anonymous: false,
2273
+ inputs: [
2274
+ {
2275
+ indexed: true,
2276
+ internalType: "bytes32",
2277
+ name: "role",
2278
+ type: "bytes32"
2279
+ },
2280
+ {
2281
+ indexed: true,
2282
+ internalType: "address",
2283
+ name: "account",
2284
+ type: "address"
2285
+ },
2286
+ {
2287
+ indexed: true,
2288
+ internalType: "address",
2289
+ name: "sender",
2290
+ type: "address"
2291
+ }
2292
+ ],
2293
+ name: "RoleGranted",
2294
+ type: "event"
2295
+ },
2296
+ {
2297
+ anonymous: false,
2298
+ inputs: [
2299
+ {
2300
+ indexed: true,
2301
+ internalType: "bytes32",
2302
+ name: "role",
2303
+ type: "bytes32"
2304
+ },
2305
+ {
2306
+ indexed: true,
2307
+ internalType: "address",
2308
+ name: "account",
2309
+ type: "address"
2310
+ },
2311
+ {
2312
+ indexed: true,
2313
+ internalType: "address",
2314
+ name: "sender",
2315
+ type: "address"
2316
+ }
2317
+ ],
2318
+ name: "RoleRevoked",
2319
+ type: "event"
2320
+ },
2321
+ {
2322
+ anonymous: false,
2323
+ inputs: [
2324
+ {
2325
+ indexed: false,
2326
+ internalType: "uint256",
2327
+ name: "tokenId",
2328
+ type: "uint256"
2329
+ },
2330
+ {
2331
+ indexed: false,
2332
+ internalType: "uint256",
2333
+ name: "cost",
2334
+ type: "uint256"
2335
+ },
2336
+ {
2337
+ indexed: false,
2338
+ internalType: "uint256",
2339
+ name: "remainingSupply",
2340
+ type: "uint256"
2341
+ },
2342
+ {
2343
+ indexed: false,
2344
+ internalType: "uint64",
2345
+ name: "startTime",
2346
+ type: "uint64"
2347
+ },
2348
+ {
2349
+ indexed: false,
2350
+ internalType: "uint64",
2351
+ name: "endTime",
2352
+ type: "uint64"
2353
+ },
2354
+ {
2355
+ indexed: false,
2356
+ internalType: "bytes32",
2357
+ name: "merkleRoot",
2358
+ type: "bytes32"
2359
+ }
2360
+ ],
2361
+ name: "TokenSaleDetailsUpdated",
2362
+ type: "event"
2363
+ },
2364
+ {
2365
+ inputs: [],
2366
+ name: "DEFAULT_ADMIN_ROLE",
2367
+ outputs: [{
2368
+ internalType: "bytes32",
2369
+ name: "",
2370
+ type: "bytes32"
2371
+ }],
2372
+ stateMutability: "view",
2373
+ type: "function"
2374
+ },
2375
+ {
2376
+ inputs: [
2377
+ {
2378
+ internalType: "address",
2379
+ name: "wallet",
2380
+ type: "address"
2381
+ },
2382
+ {
2383
+ components: [
2384
+ {
2385
+ internalType: "address",
2386
+ name: "approvedSigner",
2387
+ type: "address"
2388
+ },
2389
+ {
2390
+ internalType: "bytes4",
2391
+ name: "identityType",
2392
+ type: "bytes4"
2393
+ },
2394
+ {
2395
+ internalType: "bytes32",
2396
+ name: "issuerHash",
2397
+ type: "bytes32"
2398
+ },
2399
+ {
2400
+ internalType: "bytes32",
2401
+ name: "audienceHash",
2402
+ type: "bytes32"
2403
+ },
2404
+ {
2405
+ internalType: "bytes",
2406
+ name: "applicationData",
2407
+ type: "bytes"
2408
+ },
2409
+ {
2410
+ components: [{
2411
+ internalType: "string",
2412
+ name: "redirectUrl",
2413
+ type: "string"
2414
+ }, {
2415
+ internalType: "uint64",
2416
+ name: "issuedAt",
2417
+ type: "uint64"
2418
+ }],
2419
+ internalType: "struct AuthData",
2420
+ name: "authData",
2421
+ type: "tuple"
2422
+ }
2423
+ ],
2424
+ internalType: "struct Attestation",
2425
+ name: "attestation",
2426
+ type: "tuple"
2427
+ },
2428
+ {
2429
+ components: [
2430
+ {
2431
+ internalType: "address",
2432
+ name: "to",
2433
+ type: "address"
2434
+ },
2435
+ {
2436
+ internalType: "uint256",
2437
+ name: "value",
2438
+ type: "uint256"
2439
+ },
2440
+ {
2441
+ internalType: "bytes",
2442
+ name: "data",
2443
+ type: "bytes"
2444
+ },
2445
+ {
2446
+ internalType: "uint256",
2447
+ name: "gasLimit",
2448
+ type: "uint256"
2449
+ },
2450
+ {
2451
+ internalType: "bool",
2452
+ name: "delegateCall",
2453
+ type: "bool"
2454
+ },
2455
+ {
2456
+ internalType: "bool",
2457
+ name: "onlyFallback",
2458
+ type: "bool"
2459
+ },
2460
+ {
2461
+ internalType: "uint256",
2462
+ name: "behaviorOnError",
2463
+ type: "uint256"
2464
+ }
2465
+ ],
2466
+ internalType: "struct Payload.Call",
2467
+ name: "call",
2468
+ type: "tuple"
2469
+ }
2470
+ ],
2471
+ name: "acceptImplicitRequest",
2472
+ outputs: [{
2473
+ internalType: "bytes32",
2474
+ name: "",
2475
+ type: "bytes32"
2476
+ }],
2477
+ stateMutability: "view",
2478
+ type: "function"
2479
+ },
2480
+ {
2481
+ inputs: [
2482
+ {
2483
+ internalType: "bytes32",
2484
+ name: "root",
2485
+ type: "bytes32"
2486
+ },
2487
+ {
2488
+ internalType: "bytes32[]",
2489
+ name: "proof",
2490
+ type: "bytes32[]"
2491
+ },
2492
+ {
2493
+ internalType: "address",
2494
+ name: "addr",
2495
+ type: "address"
2496
+ },
2497
+ {
2498
+ internalType: "bytes32",
2499
+ name: "salt",
2500
+ type: "bytes32"
2501
+ }
2502
+ ],
2503
+ name: "checkMerkleProof",
2504
+ outputs: [{
2505
+ internalType: "bool",
2506
+ name: "",
2507
+ type: "bool"
2508
+ }],
2509
+ stateMutability: "view",
2510
+ type: "function"
2511
+ },
2512
+ {
2513
+ inputs: [{
2514
+ internalType: "bytes32",
2515
+ name: "role",
2516
+ type: "bytes32"
2517
+ }],
2518
+ name: "getRoleAdmin",
2519
+ outputs: [{
2520
+ internalType: "bytes32",
2521
+ name: "",
2522
+ type: "bytes32"
2523
+ }],
2524
+ stateMutability: "view",
2525
+ type: "function"
2526
+ },
2527
+ {
2528
+ inputs: [{
2529
+ internalType: "bytes32",
2530
+ name: "role",
2531
+ type: "bytes32"
2532
+ }, {
2533
+ internalType: "uint256",
2534
+ name: "index",
2535
+ type: "uint256"
2536
+ }],
2537
+ name: "getRoleMember",
2538
+ outputs: [{
2539
+ internalType: "address",
2540
+ name: "",
2541
+ type: "address"
2542
+ }],
2543
+ stateMutability: "view",
2544
+ type: "function"
2545
+ },
2546
+ {
2547
+ inputs: [{
2548
+ internalType: "bytes32",
2549
+ name: "role",
2550
+ type: "bytes32"
2551
+ }],
2552
+ name: "getRoleMemberCount",
2553
+ outputs: [{
2554
+ internalType: "uint256",
2555
+ name: "",
2556
+ type: "uint256"
2557
+ }],
2558
+ stateMutability: "view",
2559
+ type: "function"
2560
+ },
2561
+ {
2562
+ inputs: [],
2563
+ name: "globalSaleDetails",
2564
+ outputs: [{
2565
+ components: [
2566
+ {
2567
+ internalType: "uint256",
2568
+ name: "minTokenId",
2569
+ type: "uint256"
2570
+ },
2571
+ {
2572
+ internalType: "uint256",
2573
+ name: "maxTokenId",
2574
+ type: "uint256"
2575
+ },
2576
+ {
2577
+ internalType: "uint256",
2578
+ name: "cost",
2579
+ type: "uint256"
2580
+ },
2581
+ {
2582
+ internalType: "uint256",
2583
+ name: "remainingSupply",
2584
+ type: "uint256"
2585
+ },
2586
+ {
2587
+ internalType: "uint64",
2588
+ name: "startTime",
2589
+ type: "uint64"
2590
+ },
2591
+ {
2592
+ internalType: "uint64",
2593
+ name: "endTime",
2594
+ type: "uint64"
2595
+ },
2596
+ {
2597
+ internalType: "bytes32",
2598
+ name: "merkleRoot",
2599
+ type: "bytes32"
2600
+ }
2601
+ ],
2602
+ internalType: "struct IERC1155SaleFunctions.GlobalSaleDetails",
2603
+ name: "",
2604
+ type: "tuple"
2605
+ }],
2606
+ stateMutability: "view",
2607
+ type: "function"
2608
+ },
2609
+ {
2610
+ inputs: [{
2611
+ internalType: "bytes32",
2612
+ name: "role",
2613
+ type: "bytes32"
2614
+ }, {
2615
+ internalType: "address",
2616
+ name: "account",
2617
+ type: "address"
2618
+ }],
2619
+ name: "grantRole",
2620
+ outputs: [],
2621
+ stateMutability: "nonpayable",
2622
+ type: "function"
2623
+ },
2624
+ {
2625
+ inputs: [{
2626
+ internalType: "bytes32",
2627
+ name: "role",
2628
+ type: "bytes32"
2629
+ }, {
2630
+ internalType: "address",
2631
+ name: "account",
2632
+ type: "address"
2633
+ }],
2634
+ name: "hasRole",
2635
+ outputs: [{
2636
+ internalType: "bool",
2637
+ name: "",
2638
+ type: "bool"
2639
+ }],
2640
+ stateMutability: "view",
2641
+ type: "function"
2642
+ },
2643
+ {
2644
+ inputs: [
2645
+ {
2646
+ internalType: "address",
2647
+ name: "owner",
2648
+ type: "address"
2649
+ },
2650
+ {
2651
+ internalType: "address",
2652
+ name: "items",
2653
+ type: "address"
2654
+ },
2655
+ {
2656
+ internalType: "address",
2657
+ name: "implicitModeValidator",
2658
+ type: "address"
2659
+ },
2660
+ {
2661
+ internalType: "bytes32",
2662
+ name: "implicitModeProjectId",
2663
+ type: "bytes32"
2664
+ }
2665
+ ],
2666
+ name: "initialize",
2667
+ outputs: [],
2668
+ stateMutability: "nonpayable",
2669
+ type: "function"
2670
+ },
2671
+ {
2672
+ inputs: [
2673
+ {
2674
+ internalType: "address",
2675
+ name: "to",
2676
+ type: "address"
2677
+ },
2678
+ {
2679
+ internalType: "uint256[]",
2680
+ name: "tokenIds",
2681
+ type: "uint256[]"
2682
+ },
2683
+ {
2684
+ internalType: "uint256[]",
2685
+ name: "amounts",
2686
+ type: "uint256[]"
2687
+ },
2688
+ {
2689
+ internalType: "bytes",
2690
+ name: "data",
2691
+ type: "bytes"
2692
+ },
2693
+ {
2694
+ internalType: "address",
2695
+ name: "expectedPaymentToken",
2696
+ type: "address"
2697
+ },
2698
+ {
2699
+ internalType: "uint256",
2700
+ name: "maxTotal",
2701
+ type: "uint256"
2702
+ },
2703
+ {
2704
+ internalType: "bytes32[]",
2705
+ name: "proof",
2706
+ type: "bytes32[]"
2707
+ }
2708
+ ],
2709
+ name: "mint",
2710
+ outputs: [],
2711
+ stateMutability: "payable",
2712
+ type: "function"
2713
+ },
2714
+ {
2715
+ inputs: [],
2716
+ name: "paymentToken",
2717
+ outputs: [{
2718
+ internalType: "address",
2719
+ name: "",
2720
+ type: "address"
2721
+ }],
2722
+ stateMutability: "view",
2723
+ type: "function"
2724
+ },
2725
+ {
2726
+ inputs: [{
2727
+ internalType: "bytes32",
2728
+ name: "role",
2729
+ type: "bytes32"
2730
+ }, {
2731
+ internalType: "address",
2732
+ name: "account",
2733
+ type: "address"
2734
+ }],
2735
+ name: "renounceRole",
2736
+ outputs: [],
2737
+ stateMutability: "nonpayable",
2738
+ type: "function"
2739
+ },
2740
+ {
2741
+ inputs: [{
2742
+ internalType: "bytes32",
2743
+ name: "role",
2744
+ type: "bytes32"
2745
+ }, {
2746
+ internalType: "address",
2747
+ name: "account",
2748
+ type: "address"
2749
+ }],
2750
+ name: "revokeRole",
2751
+ outputs: [],
2752
+ stateMutability: "nonpayable",
2753
+ type: "function"
2754
+ },
2755
+ {
2756
+ inputs: [
2757
+ {
2758
+ internalType: "uint256",
2759
+ name: "minTokenId",
2760
+ type: "uint256"
2761
+ },
2762
+ {
2763
+ internalType: "uint256",
2764
+ name: "maxTokenId",
2765
+ type: "uint256"
2766
+ },
2767
+ {
2768
+ internalType: "uint256",
2769
+ name: "cost",
2770
+ type: "uint256"
2771
+ },
2772
+ {
2773
+ internalType: "uint256",
2774
+ name: "remainingSupply",
2775
+ type: "uint256"
2776
+ },
2777
+ {
2778
+ internalType: "uint64",
2779
+ name: "startTime",
2780
+ type: "uint64"
2781
+ },
2782
+ {
2783
+ internalType: "uint64",
2784
+ name: "endTime",
2785
+ type: "uint64"
2786
+ },
2787
+ {
2788
+ internalType: "bytes32",
2789
+ name: "merkleRoot",
2790
+ type: "bytes32"
2791
+ }
2792
+ ],
2793
+ name: "setGlobalSaleDetails",
2794
+ outputs: [],
2795
+ stateMutability: "nonpayable",
2796
+ type: "function"
2797
+ },
2798
+ {
2799
+ inputs: [{
2800
+ internalType: "bytes32",
2801
+ name: "projectId",
2802
+ type: "bytes32"
2803
+ }],
2804
+ name: "setImplicitModeProjectId",
2805
+ outputs: [],
2806
+ stateMutability: "nonpayable",
2807
+ type: "function"
2808
+ },
2809
+ {
2810
+ inputs: [{
2811
+ internalType: "address",
2812
+ name: "validator",
2813
+ type: "address"
2814
+ }],
2815
+ name: "setImplicitModeValidator",
2816
+ outputs: [],
2817
+ stateMutability: "nonpayable",
2818
+ type: "function"
2819
+ },
2820
+ {
2821
+ inputs: [{
2822
+ internalType: "address",
2823
+ name: "paymentTokenAddr",
2824
+ type: "address"
2825
+ }],
2826
+ name: "setPaymentToken",
2827
+ outputs: [],
2828
+ stateMutability: "nonpayable",
2829
+ type: "function"
2830
+ },
2831
+ {
2832
+ inputs: [
2833
+ {
2834
+ internalType: "uint256",
2835
+ name: "tokenId",
2836
+ type: "uint256"
2837
+ },
2838
+ {
2839
+ internalType: "uint256",
2840
+ name: "cost",
2841
+ type: "uint256"
2842
+ },
2843
+ {
2844
+ internalType: "uint256",
2845
+ name: "remainingSupply",
2846
+ type: "uint256"
2847
+ },
2848
+ {
2849
+ internalType: "uint64",
2850
+ name: "startTime",
2851
+ type: "uint64"
2852
+ },
2853
+ {
2854
+ internalType: "uint64",
2855
+ name: "endTime",
2856
+ type: "uint64"
2857
+ },
2858
+ {
2859
+ internalType: "bytes32",
2860
+ name: "merkleRoot",
2861
+ type: "bytes32"
2862
+ }
2863
+ ],
2864
+ name: "setTokenSaleDetails",
2865
+ outputs: [],
2866
+ stateMutability: "nonpayable",
2867
+ type: "function"
2868
+ },
2869
+ {
2870
+ inputs: [
2871
+ {
2872
+ internalType: "uint256[]",
2873
+ name: "tokenIds",
2874
+ type: "uint256[]"
2875
+ },
2876
+ {
2877
+ internalType: "uint256[]",
2878
+ name: "costs",
2879
+ type: "uint256[]"
2880
+ },
2881
+ {
2882
+ internalType: "uint256[]",
2883
+ name: "remainingSupplies",
2884
+ type: "uint256[]"
2885
+ },
2886
+ {
2887
+ internalType: "uint64[]",
2888
+ name: "startTimes",
2889
+ type: "uint64[]"
2890
+ },
2891
+ {
2892
+ internalType: "uint64[]",
2893
+ name: "endTimes",
2894
+ type: "uint64[]"
2895
+ },
2896
+ {
2897
+ internalType: "bytes32[]",
2898
+ name: "merkleRoots",
2899
+ type: "bytes32[]"
2900
+ }
2901
+ ],
2902
+ name: "setTokenSaleDetailsBatch",
2903
+ outputs: [],
2904
+ stateMutability: "nonpayable",
2905
+ type: "function"
2906
+ },
2907
+ {
2908
+ inputs: [{
2909
+ internalType: "bytes4",
2910
+ name: "interfaceId",
2911
+ type: "bytes4"
2912
+ }],
2913
+ name: "supportsInterface",
2914
+ outputs: [{
2915
+ internalType: "bool",
2916
+ name: "",
2917
+ type: "bool"
2918
+ }],
2919
+ stateMutability: "view",
2920
+ type: "function"
2921
+ },
2922
+ {
2923
+ inputs: [{
2924
+ internalType: "uint256",
2925
+ name: "tokenId",
2926
+ type: "uint256"
2927
+ }],
2928
+ name: "tokenSaleDetails",
2929
+ outputs: [{
2930
+ components: [
2931
+ {
2932
+ internalType: "uint256",
2933
+ name: "cost",
2934
+ type: "uint256"
2935
+ },
2936
+ {
2937
+ internalType: "uint256",
2938
+ name: "remainingSupply",
2939
+ type: "uint256"
2940
+ },
2941
+ {
2942
+ internalType: "uint64",
2943
+ name: "startTime",
2944
+ type: "uint64"
2945
+ },
2946
+ {
2947
+ internalType: "uint64",
2948
+ name: "endTime",
2949
+ type: "uint64"
2950
+ },
2951
+ {
2952
+ internalType: "bytes32",
2953
+ name: "merkleRoot",
2954
+ type: "bytes32"
2955
+ }
2956
+ ],
2957
+ internalType: "struct IERC1155SaleFunctions.SaleDetails",
2958
+ name: "",
2959
+ type: "tuple"
2960
+ }],
2961
+ stateMutability: "view",
2962
+ type: "function"
2963
+ },
2964
+ {
2965
+ inputs: [{
2966
+ internalType: "uint256[]",
2967
+ name: "tokenIds",
2968
+ type: "uint256[]"
2969
+ }],
2970
+ name: "tokenSaleDetailsBatch",
2971
+ outputs: [{
2972
+ components: [
2973
+ {
2974
+ internalType: "uint256",
2975
+ name: "cost",
2976
+ type: "uint256"
2977
+ },
2978
+ {
2979
+ internalType: "uint256",
2980
+ name: "remainingSupply",
2981
+ type: "uint256"
2982
+ },
2983
+ {
2984
+ internalType: "uint64",
2985
+ name: "startTime",
2986
+ type: "uint64"
2987
+ },
2988
+ {
2989
+ internalType: "uint64",
2990
+ name: "endTime",
2991
+ type: "uint64"
2992
+ },
2993
+ {
2994
+ internalType: "bytes32",
2995
+ name: "merkleRoot",
2996
+ type: "bytes32"
2997
+ }
2998
+ ],
2999
+ internalType: "struct IERC1155SaleFunctions.SaleDetails[]",
3000
+ name: "",
3001
+ type: "tuple[]"
3002
+ }],
3003
+ stateMutability: "view",
3004
+ type: "function"
3005
+ },
3006
+ {
3007
+ inputs: [
3008
+ {
3009
+ internalType: "address",
3010
+ name: "token",
3011
+ type: "address"
3012
+ },
3013
+ {
3014
+ internalType: "address",
3015
+ name: "to",
3016
+ type: "address"
3017
+ },
3018
+ {
3019
+ internalType: "uint256",
3020
+ name: "value",
3021
+ type: "uint256"
3022
+ }
3023
+ ],
3024
+ name: "withdrawERC20",
3025
+ outputs: [],
3026
+ stateMutability: "nonpayable",
3027
+ type: "function"
3028
+ },
3029
+ {
3030
+ inputs: [{
3031
+ internalType: "address",
3032
+ name: "to",
3033
+ type: "address"
3034
+ }, {
3035
+ internalType: "uint256",
3036
+ name: "value",
3037
+ type: "uint256"
3038
+ }],
3039
+ name: "withdrawETH",
3040
+ outputs: [],
3041
+ stateMutability: "nonpayable",
3042
+ type: "function"
3043
+ }
3044
+ ];
3045
+
3046
+ //#endregion
3047
+ export { ERC721_SALE_ABI_V0 as i, ERC1155_SALES_CONTRACT_ABI_V0 as n, ERC721_SALE_ABI_V1 as r, ERC1155_SALES_CONTRACT_ABI_V1 as t };
3048
+ //# sourceMappingURL=primary-sale.js.map