@reown/appkit-cdn 1.8.15-ea982070c1d274f5971447c430b6d77717082e78.0 → 1.8.15-viem-upgrade.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 (429) hide show
  1. package/package.json +10 -10
  2. package/dist/ConstantsUtil-BTJjr2qs.js +0 -24
  3. package/dist/ConstantsUtil-BTJjr2qs.js.map +0 -1
  4. package/dist/ExchangeController-CncqkHeT.js +0 -265
  5. package/dist/ExchangeController-CncqkHeT.js.map +0 -1
  6. package/dist/HelpersUtil-CwxnHyjS.js +0 -141
  7. package/dist/HelpersUtil-CwxnHyjS.js.map +0 -1
  8. package/dist/NavigationUtil-Ci15WS4K.js +0 -9
  9. package/dist/NavigationUtil-Ci15WS4K.js.map +0 -1
  10. package/dist/PhArrowCircleDown-B41iUlWV.js +0 -74
  11. package/dist/PhArrowCircleDown-B41iUlWV.js.map +0 -1
  12. package/dist/PhArrowClockwise-BY8u5n41.js +0 -74
  13. package/dist/PhArrowClockwise-BY8u5n41.js.map +0 -1
  14. package/dist/PhArrowDown-ClD8GZ65.js +0 -74
  15. package/dist/PhArrowDown-ClD8GZ65.js.map +0 -1
  16. package/dist/PhArrowLeft-B8MXUz60.js +0 -74
  17. package/dist/PhArrowLeft-B8MXUz60.js.map +0 -1
  18. package/dist/PhArrowRight-Cewa_Slb.js +0 -74
  19. package/dist/PhArrowRight-Cewa_Slb.js.map +0 -1
  20. package/dist/PhArrowSquareOut-whgWh-lD.js +0 -74
  21. package/dist/PhArrowSquareOut-whgWh-lD.js.map +0 -1
  22. package/dist/PhArrowUp-B1HXBxie.js +0 -74
  23. package/dist/PhArrowUp-B1HXBxie.js.map +0 -1
  24. package/dist/PhArrowUpRight-CfFYe4FP.js +0 -74
  25. package/dist/PhArrowUpRight-CfFYe4FP.js.map +0 -1
  26. package/dist/PhArrowsClockwise-gL1Gkrtx.js +0 -74
  27. package/dist/PhArrowsClockwise-gL1Gkrtx.js.map +0 -1
  28. package/dist/PhArrowsDownUp-BqUEdUQr.js +0 -74
  29. package/dist/PhArrowsDownUp-BqUEdUQr.js.map +0 -1
  30. package/dist/PhArrowsLeftRight-BlZU63eY.js +0 -74
  31. package/dist/PhArrowsLeftRight-BlZU63eY.js.map +0 -1
  32. package/dist/PhBank-gbg_jlI7.js +0 -74
  33. package/dist/PhBank-gbg_jlI7.js.map +0 -1
  34. package/dist/PhBrowser-CMlD-YJw.js +0 -74
  35. package/dist/PhBrowser-CMlD-YJw.js.map +0 -1
  36. package/dist/PhCaretDown-3agTO8Jp.js +0 -74
  37. package/dist/PhCaretDown-3agTO8Jp.js.map +0 -1
  38. package/dist/PhCaretLeft-_MTni7Z5.js +0 -74
  39. package/dist/PhCaretLeft-_MTni7Z5.js.map +0 -1
  40. package/dist/PhCaretRight-Ci9fAHPG.js +0 -74
  41. package/dist/PhCaretRight-Ci9fAHPG.js.map +0 -1
  42. package/dist/PhCaretUp-vFG4Fame.js +0 -74
  43. package/dist/PhCaretUp-vFG4Fame.js.map +0 -1
  44. package/dist/PhCheck-mChGK6K_.js +0 -74
  45. package/dist/PhCheck-mChGK6K_.js.map +0 -1
  46. package/dist/PhCircleHalf-DZ7-vfxf.js +0 -74
  47. package/dist/PhCircleHalf-DZ7-vfxf.js.map +0 -1
  48. package/dist/PhClock-Bc5XWXb6.js +0 -74
  49. package/dist/PhClock-Bc5XWXb6.js.map +0 -1
  50. package/dist/PhCompass-Cu2MB-55.js +0 -74
  51. package/dist/PhCompass-Cu2MB-55.js.map +0 -1
  52. package/dist/PhCopy-BGUjyTts.js +0 -74
  53. package/dist/PhCopy-BGUjyTts.js.map +0 -1
  54. package/dist/PhCreditCard-vxFWID4B.js +0 -74
  55. package/dist/PhCreditCard-vxFWID4B.js.map +0 -1
  56. package/dist/PhCurrencyDollar-BfOoDhJr.js +0 -74
  57. package/dist/PhCurrencyDollar-BfOoDhJr.js.map +0 -1
  58. package/dist/PhDesktop-Cq6jwzbS.js +0 -74
  59. package/dist/PhDesktop-Cq6jwzbS.js.map +0 -1
  60. package/dist/PhDeviceMobile-BCtTp6jj.js +0 -74
  61. package/dist/PhDeviceMobile-BCtTp6jj.js.map +0 -1
  62. package/dist/PhDotsThree-BGgD-WIO.js +0 -74
  63. package/dist/PhDotsThree-BGgD-WIO.js.map +0 -1
  64. package/dist/PhEnvelope-CQiV0-zG.js +0 -74
  65. package/dist/PhEnvelope-CQiV0-zG.js.map +0 -1
  66. package/dist/PhFunnelSimple-BHGtxTNf.js +0 -74
  67. package/dist/PhFunnelSimple-BHGtxTNf.js.map +0 -1
  68. package/dist/PhGlobe-Q8oVkf6X.js +0 -74
  69. package/dist/PhGlobe-Q8oVkf6X.js.map +0 -1
  70. package/dist/PhIdentificationCard-Cz9LzvVR.js +0 -74
  71. package/dist/PhIdentificationCard-Cz9LzvVR.js.map +0 -1
  72. package/dist/PhImage-CP5_qKk-.js +0 -74
  73. package/dist/PhImage-CP5_qKk-.js.map +0 -1
  74. package/dist/PhInfo-CTlE1X9Z.js +0 -74
  75. package/dist/PhInfo-CTlE1X9Z.js.map +0 -1
  76. package/dist/PhLightbulb-CcLpnAAb.js +0 -74
  77. package/dist/PhLightbulb-CcLpnAAb.js.map +0 -1
  78. package/dist/PhMagnifyingGlass-n58GUAck.js +0 -74
  79. package/dist/PhMagnifyingGlass-n58GUAck.js.map +0 -1
  80. package/dist/PhPaperPlaneRight-C0sf2XV8.js +0 -74
  81. package/dist/PhPaperPlaneRight-C0sf2XV8.js.map +0 -1
  82. package/dist/PhPlus-BJxvt7Uc.js +0 -74
  83. package/dist/PhPlus-BJxvt7Uc.js.map +0 -1
  84. package/dist/PhPower-BvktxO2-.js +0 -74
  85. package/dist/PhPower-BvktxO2-.js.map +0 -1
  86. package/dist/PhPuzzlePiece-CDDyUPYo.js +0 -74
  87. package/dist/PhPuzzlePiece-CDDyUPYo.js.map +0 -1
  88. package/dist/PhQrCode-BlGI8529.js +0 -74
  89. package/dist/PhQrCode-BlGI8529.js.map +0 -1
  90. package/dist/PhQuestion-DGZj6iDZ.js +0 -74
  91. package/dist/PhQuestion-DGZj6iDZ.js.map +0 -1
  92. package/dist/PhQuestionMark-CTmeI7MQ.js +0 -74
  93. package/dist/PhQuestionMark-CTmeI7MQ.js.map +0 -1
  94. package/dist/PhSealCheck-BSlqkxnH.js +0 -74
  95. package/dist/PhSealCheck-BSlqkxnH.js.map +0 -1
  96. package/dist/PhSignOut-CEXxlRk3.js +0 -74
  97. package/dist/PhSignOut-CEXxlRk3.js.map +0 -1
  98. package/dist/PhSpinner-Do1pY8fG.js +0 -74
  99. package/dist/PhSpinner-Do1pY8fG.js.map +0 -1
  100. package/dist/PhTrash-JNKavmpg.js +0 -74
  101. package/dist/PhTrash-JNKavmpg.js.map +0 -1
  102. package/dist/PhUser-BW7E-xYg.js +0 -74
  103. package/dist/PhUser-BW7E-xYg.js.map +0 -1
  104. package/dist/PhVault-mzxUgBYN.js +0 -74
  105. package/dist/PhVault-mzxUgBYN.js.map +0 -1
  106. package/dist/PhWallet-BR9JThKU.js +0 -74
  107. package/dist/PhWallet-BR9JThKU.js.map +0 -1
  108. package/dist/PhWarning-DxuQ70WM.js +0 -74
  109. package/dist/PhWarning-DxuQ70WM.js.map +0 -1
  110. package/dist/PhWarningCircle-DCI0JC1F.js +0 -74
  111. package/dist/PhWarningCircle-DCI0JC1F.js.map +0 -1
  112. package/dist/PhX-CWNXqpGn.js +0 -74
  113. package/dist/PhX-CWNXqpGn.js.map +0 -1
  114. package/dist/SwapController-DsYbP4IS.js +0 -684
  115. package/dist/SwapController-DsYbP4IS.js.map +0 -1
  116. package/dist/WebCryptoP256-Czt7ZkJ7.js +0 -3299
  117. package/dist/WebCryptoP256-Czt7ZkJ7.js.map +0 -1
  118. package/dist/add-UkulHTXi.js +0 -20
  119. package/dist/add-UkulHTXi.js.map +0 -1
  120. package/dist/all-wallets-DhJCVmL_.js +0 -11
  121. package/dist/all-wallets-DhJCVmL_.js.map +0 -1
  122. package/dist/app-store-Ern3I2La.js +0 -22
  123. package/dist/app-store-Ern3I2La.js.map +0 -1
  124. package/dist/appkit-ppmICUF1.js +0 -118106
  125. package/dist/appkit-ppmICUF1.js.map +0 -1
  126. package/dist/appkit.js +0 -11
  127. package/dist/appkit.js.map +0 -1
  128. package/dist/apple-_SZ-XSIx.js +0 -23
  129. package/dist/apple-_SZ-XSIx.js.map +0 -1
  130. package/dist/arrow-bottom-D7Qlu6xE.js +0 -13
  131. package/dist/arrow-bottom-D7Qlu6xE.js.map +0 -1
  132. package/dist/arrow-bottom-circle-Cel-TDaT.js +0 -16
  133. package/dist/arrow-bottom-circle-Cel-TDaT.js.map +0 -1
  134. package/dist/arrow-left-ByNxCvA_.js +0 -13
  135. package/dist/arrow-left-ByNxCvA_.js.map +0 -1
  136. package/dist/arrow-right-yep9R_ud.js +0 -13
  137. package/dist/arrow-right-yep9R_ud.js.map +0 -1
  138. package/dist/arrow-top-C1WlBAfk.js +0 -13
  139. package/dist/arrow-top-C1WlBAfk.js.map +0 -1
  140. package/dist/async-directive-C9EnweIr.js +0 -73
  141. package/dist/async-directive-C9EnweIr.js.map +0 -1
  142. package/dist/bank-Dm8zmIr0.js +0 -19
  143. package/dist/bank-Dm8zmIr0.js.map +0 -1
  144. package/dist/basic-UB459qAF.js +0 -4914
  145. package/dist/basic-UB459qAF.js.map +0 -1
  146. package/dist/browser-5XoTmr4n.js +0 -1991
  147. package/dist/browser-5XoTmr4n.js.map +0 -1
  148. package/dist/browser-LYv8PF5c.js +0 -19
  149. package/dist/browser-LYv8PF5c.js.map +0 -1
  150. package/dist/card-CEQLkIir.js +0 -19
  151. package/dist/card-CEQLkIir.js.map +0 -1
  152. package/dist/ccip-Dj8tRQd7.js +0 -164
  153. package/dist/ccip-Dj8tRQd7.js.map +0 -1
  154. package/dist/checkmark-DPFC_0yn.js +0 -16
  155. package/dist/checkmark-DPFC_0yn.js.map +0 -1
  156. package/dist/checkmark-bold-Hwfezlkn.js +0 -13
  157. package/dist/checkmark-bold-Hwfezlkn.js.map +0 -1
  158. package/dist/chevron-bottom-qsPvhQDo.js +0 -13
  159. package/dist/chevron-bottom-qsPvhQDo.js.map +0 -1
  160. package/dist/chevron-left-CA4SOr_F.js +0 -13
  161. package/dist/chevron-left-CA4SOr_F.js.map +0 -1
  162. package/dist/chevron-right-TeVZyORZ.js +0 -13
  163. package/dist/chevron-right-TeVZyORZ.js.map +0 -1
  164. package/dist/chevron-top-B7LCiM2n.js +0 -13
  165. package/dist/chevron-top-B7LCiM2n.js.map +0 -1
  166. package/dist/chrome-store-CU7w_5QC.js +0 -66
  167. package/dist/chrome-store-CU7w_5QC.js.map +0 -1
  168. package/dist/class-map-B814K2ej.js +0 -101
  169. package/dist/class-map-B814K2ej.js.map +0 -1
  170. package/dist/clock-DcbItfiJ.js +0 -13
  171. package/dist/clock-DcbItfiJ.js.map +0 -1
  172. package/dist/close-B22QsrS0.js +0 -13
  173. package/dist/close-B22QsrS0.js.map +0 -1
  174. package/dist/clsx.m-D57qXwfE.js +0 -21
  175. package/dist/clsx.m-D57qXwfE.js.map +0 -1
  176. package/dist/coinPlaceholder-BNrjpg6-.js +0 -13
  177. package/dist/coinPlaceholder-BNrjpg6-.js.map +0 -1
  178. package/dist/compass-C7GRFU39.js +0 -13
  179. package/dist/compass-C7GRFU39.js.map +0 -1
  180. package/dist/copy-BcrOhyLL.js +0 -20
  181. package/dist/copy-BcrOhyLL.js.map +0 -1
  182. package/dist/core-BI_Ap4BF.js +0 -16288
  183. package/dist/core-BI_Ap4BF.js.map +0 -1
  184. package/dist/cursor-AJkpyAWk.js +0 -8
  185. package/dist/cursor-AJkpyAWk.js.map +0 -1
  186. package/dist/cursor-transparent-C1dF4GFm.js +0 -17
  187. package/dist/cursor-transparent-C1dF4GFm.js.map +0 -1
  188. package/dist/data-capture-CqwQ1053.js +0 -549
  189. package/dist/data-capture-CqwQ1053.js.map +0 -1
  190. package/dist/desktop-C60oOo59.js +0 -14
  191. package/dist/desktop-C60oOo59.js.map +0 -1
  192. package/dist/disconnect-DqS517fE.js +0 -13
  193. package/dist/disconnect-DqS517fE.js.map +0 -1
  194. package/dist/discord-D1qNpgLJ.js +0 -22
  195. package/dist/discord-D1qNpgLJ.js.map +0 -1
  196. package/dist/email-UK97sxf8.js +0 -421
  197. package/dist/email-UK97sxf8.js.map +0 -1
  198. package/dist/embedded-wallet-f8ft4R2q.js +0 -952
  199. package/dist/embedded-wallet-f8ft4R2q.js.map +0 -1
  200. package/dist/etherscan-BWSY3GuJ.js +0 -11
  201. package/dist/etherscan-BWSY3GuJ.js.map +0 -1
  202. package/dist/exclamation-triangle-nypPoZ5T.js +0 -9
  203. package/dist/exclamation-triangle-nypPoZ5T.js.map +0 -1
  204. package/dist/extension-BuFHuaRl.js +0 -13
  205. package/dist/extension-BuFHuaRl.js.map +0 -1
  206. package/dist/external-link-L3QQJwck.js +0 -13
  207. package/dist/external-link-L3QQJwck.js.map +0 -1
  208. package/dist/facebook-BbbjiGyt.js +0 -31
  209. package/dist/facebook-BbbjiGyt.js.map +0 -1
  210. package/dist/farcaster-CDar3vjq.js +0 -17
  211. package/dist/farcaster-CDar3vjq.js.map +0 -1
  212. package/dist/features-Dne1ZyJy.js +0 -319
  213. package/dist/features-Dne1ZyJy.js.map +0 -1
  214. package/dist/filters-BprVfwTM.js +0 -13
  215. package/dist/filters-BprVfwTM.js.map +0 -1
  216. package/dist/github-BFRFSS65.js +0 -23
  217. package/dist/github-BFRFSS65.js.map +0 -1
  218. package/dist/google-DX3b-tuu.js +0 -23
  219. package/dist/google-DX3b-tuu.js.map +0 -1
  220. package/dist/hashTypedData-MEx8_Z-J.js +0 -262
  221. package/dist/hashTypedData-MEx8_Z-J.js.map +0 -1
  222. package/dist/help-circle-PtWG4XV9.js +0 -17
  223. package/dist/help-circle-PtWG4XV9.js.map +0 -1
  224. package/dist/id-BKzsrqpW.js +0 -17
  225. package/dist/id-BKzsrqpW.js.map +0 -1
  226. package/dist/if-defined-CyuCf775.js +0 -11
  227. package/dist/if-defined-CyuCf775.js.map +0 -1
  228. package/dist/image-2qjHFSqv.js +0 -9
  229. package/dist/image-2qjHFSqv.js.map +0 -1
  230. package/dist/index-57er67ch.js +0 -131
  231. package/dist/index-57er67ch.js.map +0 -1
  232. package/dist/index-B-MpJOWW.js +0 -3987
  233. package/dist/index-B-MpJOWW.js.map +0 -1
  234. package/dist/index-B2f4UbAK.js +0 -257
  235. package/dist/index-B2f4UbAK.js.map +0 -1
  236. package/dist/index-B4xD2s69.js +0 -62
  237. package/dist/index-B4xD2s69.js.map +0 -1
  238. package/dist/index-BF4uePO9.js +0 -126
  239. package/dist/index-BF4uePO9.js.map +0 -1
  240. package/dist/index-BG3007yu.js +0 -542
  241. package/dist/index-BG3007yu.js.map +0 -1
  242. package/dist/index-BPqsyCu1.js +0 -249
  243. package/dist/index-BPqsyCu1.js.map +0 -1
  244. package/dist/index-BTFeMb7h.js +0 -2277
  245. package/dist/index-BTFeMb7h.js.map +0 -1
  246. package/dist/index-B_z_MPZ-.js +0 -180
  247. package/dist/index-B_z_MPZ-.js.map +0 -1
  248. package/dist/index-Biw_bFmP.js +0 -70
  249. package/dist/index-Biw_bFmP.js.map +0 -1
  250. package/dist/index-BnY1urGu.js +0 -441
  251. package/dist/index-BnY1urGu.js.map +0 -1
  252. package/dist/index-C1OrBJOZ.js +0 -218
  253. package/dist/index-C1OrBJOZ.js.map +0 -1
  254. package/dist/index-CHvzOG0E.js +0 -1372
  255. package/dist/index-CHvzOG0E.js.map +0 -1
  256. package/dist/index-CKaIBA_q.js +0 -153
  257. package/dist/index-CKaIBA_q.js.map +0 -1
  258. package/dist/index-CLefivQ6.js +0 -124
  259. package/dist/index-CLefivQ6.js.map +0 -1
  260. package/dist/index-COvWUE72.js +0 -716
  261. package/dist/index-COvWUE72.js.map +0 -1
  262. package/dist/index-CRhk6ovx.js +0 -198
  263. package/dist/index-CRhk6ovx.js.map +0 -1
  264. package/dist/index-CfTNvhZC.js +0 -967
  265. package/dist/index-CfTNvhZC.js.map +0 -1
  266. package/dist/index-CjCwufpz.js +0 -120
  267. package/dist/index-CjCwufpz.js.map +0 -1
  268. package/dist/index-Ck3zz_LE.js +0 -984
  269. package/dist/index-Ck3zz_LE.js.map +0 -1
  270. package/dist/index-CqVDx2Ua.js +0 -9350
  271. package/dist/index-CqVDx2Ua.js.map +0 -1
  272. package/dist/index-CrF2nCtM.js +0 -211
  273. package/dist/index-CrF2nCtM.js.map +0 -1
  274. package/dist/index-Crnbnlbl.js +0 -8825
  275. package/dist/index-Crnbnlbl.js.map +0 -1
  276. package/dist/index-D7bwcPcO.js +0 -147
  277. package/dist/index-D7bwcPcO.js.map +0 -1
  278. package/dist/index-DAmhDlFG.js +0 -985
  279. package/dist/index-DAmhDlFG.js.map +0 -1
  280. package/dist/index-DF9XlWjQ.js +0 -456
  281. package/dist/index-DF9XlWjQ.js.map +0 -1
  282. package/dist/index-DGtLnlsD.js +0 -521
  283. package/dist/index-DGtLnlsD.js.map +0 -1
  284. package/dist/index-DIDlQZ9c.js +0 -1582
  285. package/dist/index-DIDlQZ9c.js.map +0 -1
  286. package/dist/index-DJe9wj3q.js +0 -136
  287. package/dist/index-DJe9wj3q.js.map +0 -1
  288. package/dist/index-DPlE9Qgr.js +0 -73
  289. package/dist/index-DPlE9Qgr.js.map +0 -1
  290. package/dist/index-DVXtgl7V.js +0 -7481
  291. package/dist/index-DVXtgl7V.js.map +0 -1
  292. package/dist/index-DWLAu0nH.js +0 -110
  293. package/dist/index-DWLAu0nH.js.map +0 -1
  294. package/dist/index-DXCwyaz_.js +0 -147
  295. package/dist/index-DXCwyaz_.js.map +0 -1
  296. package/dist/index-D_NteNrS.js +0 -198
  297. package/dist/index-D_NteNrS.js.map +0 -1
  298. package/dist/index-Dg65-p7m.js +0 -7258
  299. package/dist/index-Dg65-p7m.js.map +0 -1
  300. package/dist/index-Du7PdWv1.js +0 -181
  301. package/dist/index-Du7PdWv1.js.map +0 -1
  302. package/dist/index-HOjNYM_k.js +0 -92
  303. package/dist/index-HOjNYM_k.js.map +0 -1
  304. package/dist/index-MwW0rp8T.js +0 -286
  305. package/dist/index-MwW0rp8T.js.map +0 -1
  306. package/dist/index-OCzLDbWt.js +0 -18322
  307. package/dist/index-OCzLDbWt.js.map +0 -1
  308. package/dist/index-Sf3UCmHB.js +0 -611
  309. package/dist/index-Sf3UCmHB.js.map +0 -1
  310. package/dist/index-Zt_Jj4gf.js +0 -520
  311. package/dist/index-Zt_Jj4gf.js.map +0 -1
  312. package/dist/index-kb6zqfNt.js +0 -1178
  313. package/dist/index-kb6zqfNt.js.map +0 -1
  314. package/dist/index-rYPftA0P.js +0 -52
  315. package/dist/index-rYPftA0P.js.map +0 -1
  316. package/dist/index-tdPUUHj0.js +0 -281
  317. package/dist/index-tdPUUHj0.js.map +0 -1
  318. package/dist/index-wVp4UjVg.js +0 -182
  319. package/dist/index-wVp4UjVg.js.map +0 -1
  320. package/dist/index-ywRnp0Bi.js +0 -109
  321. package/dist/index-ywRnp0Bi.js.map +0 -1
  322. package/dist/index.es-BrfaQK0n.js +0 -8391
  323. package/dist/index.es-BrfaQK0n.js.map +0 -1
  324. package/dist/info-BhM-vMtG.js +0 -8
  325. package/dist/info-BhM-vMtG.js.map +0 -1
  326. package/dist/info-circle-DwGnsKMj.js +0 -17
  327. package/dist/info-circle-DwGnsKMj.js.map +0 -1
  328. package/dist/jsxRuntime.module-BW0yCO8A.js +0 -14
  329. package/dist/jsxRuntime.module-BW0yCO8A.js.map +0 -1
  330. package/dist/lightbulb-BvGmXMuo.js +0 -8
  331. package/dist/lightbulb-BvGmXMuo.js.map +0 -1
  332. package/dist/localBatchGatewayRequest-CLL1gABv.js +0 -103
  333. package/dist/localBatchGatewayRequest-CLL1gABv.js.map +0 -1
  334. package/dist/mail-Cl70v1Dx.js +0 -13
  335. package/dist/mail-Cl70v1Dx.js.map +0 -1
  336. package/dist/metamask-sdk-BzQ933Ju.js +0 -16699
  337. package/dist/metamask-sdk-BzQ933Ju.js.map +0 -1
  338. package/dist/mobile-BCINjy0Y.js +0 -14
  339. package/dist/mobile-BCINjy0Y.js.map +0 -1
  340. package/dist/more-Cozw6-SQ.js +0 -16
  341. package/dist/more-Cozw6-SQ.js.map +0 -1
  342. package/dist/native-Dc_5StoC.js +0 -17
  343. package/dist/native-Dc_5StoC.js.map +0 -1
  344. package/dist/network-placeholder-o2Dz_YnK.js +0 -19
  345. package/dist/network-placeholder-o2Dz_YnK.js.map +0 -1
  346. package/dist/nftPlaceholder-Bjf9SAC-.js +0 -13
  347. package/dist/nftPlaceholder-Bjf9SAC-.js.map +0 -1
  348. package/dist/off-BsVJ8v6H.js +0 -13
  349. package/dist/off-BsVJ8v6H.js.map +0 -1
  350. package/dist/onramp-C4DqYEmw.js +0 -979
  351. package/dist/onramp-C4DqYEmw.js.map +0 -1
  352. package/dist/parseAbiParameters-DfJcIE_w.js +0 -757
  353. package/dist/parseAbiParameters-DfJcIE_w.js.map +0 -1
  354. package/dist/parseSignature-MJforcG6.js +0 -4690
  355. package/dist/parseSignature-MJforcG6.js.map +0 -1
  356. package/dist/pay-with-exchange-DC29BzBo.js +0 -603
  357. package/dist/pay-with-exchange-DC29BzBo.js.map +0 -1
  358. package/dist/play-store-DIOK4cBW.js +0 -37
  359. package/dist/play-store-DIOK4cBW.js.map +0 -1
  360. package/dist/plus-Cxls3O6G.js +0 -18
  361. package/dist/plus-Cxls3O6G.js.map +0 -1
  362. package/dist/property-8UcTqffH.js +0 -623
  363. package/dist/property-8UcTqffH.js.map +0 -1
  364. package/dist/qr-code-Cp6lpAcY.js +0 -11
  365. package/dist/qr-code-Cp6lpAcY.js.map +0 -1
  366. package/dist/receive-BLI57snb.js +0 -262
  367. package/dist/receive-BLI57snb.js.map +0 -1
  368. package/dist/recycle-horizontal-AEJ_nbSP.js +0 -14
  369. package/dist/recycle-horizontal-AEJ_nbSP.js.map +0 -1
  370. package/dist/ref-BobNUvS_.js +0 -43
  371. package/dist/ref-BobNUvS_.js.map +0 -1
  372. package/dist/refresh-7roUeD2M.js +0 -13
  373. package/dist/refresh-7roUeD2M.js.map +0 -1
  374. package/dist/reown-logo-xggoIKX2.js +0 -17
  375. package/dist/reown-logo-xggoIKX2.js.map +0 -1
  376. package/dist/search-DgzcpMUb.js +0 -13
  377. package/dist/search-DgzcpMUb.js.map +0 -1
  378. package/dist/secp256k1-D_j0Z4BY.js +0 -2031
  379. package/dist/secp256k1-D_j0Z4BY.js.map +0 -1
  380. package/dist/send-D7M2-Upc.js +0 -20
  381. package/dist/send-D7M2-Upc.js.map +0 -1
  382. package/dist/send-TAzhXOOa.js +0 -1365
  383. package/dist/send-TAzhXOOa.js.map +0 -1
  384. package/dist/socials-BXTq602s.js +0 -796
  385. package/dist/socials-BXTq602s.js.map +0 -1
  386. package/dist/swapHorizontal-2gzDDUNF.js +0 -13
  387. package/dist/swapHorizontal-2gzDDUNF.js.map +0 -1
  388. package/dist/swapHorizontalBold-C1cHwAjU.js +0 -13
  389. package/dist/swapHorizontalBold-C1cHwAjU.js.map +0 -1
  390. package/dist/swapHorizontalMedium-BQno5vep.js +0 -21
  391. package/dist/swapHorizontalMedium-BQno5vep.js.map +0 -1
  392. package/dist/swapHorizontalRoundedBold-CYmZDeQ5.js +0 -13
  393. package/dist/swapHorizontalRoundedBold-CYmZDeQ5.js.map +0 -1
  394. package/dist/swapVertical-BhRPysBs.js +0 -13
  395. package/dist/swapVertical-BhRPysBs.js.map +0 -1
  396. package/dist/swaps-DQ-uUZvX.js +0 -2121
  397. package/dist/swaps-DQ-uUZvX.js.map +0 -1
  398. package/dist/telegram-B-YOyhte.js +0 -21
  399. package/dist/telegram-B-YOyhte.js.map +0 -1
  400. package/dist/three-dots-8mr70UzU.js +0 -10
  401. package/dist/three-dots-8mr70UzU.js.map +0 -1
  402. package/dist/transactions-C4p83vMQ.js +0 -38
  403. package/dist/transactions-C4p83vMQ.js.map +0 -1
  404. package/dist/twitch-C2ccExfT.js +0 -23
  405. package/dist/twitch-C2ccExfT.js.map +0 -1
  406. package/dist/twitterIcon-IkT5wPxq.js +0 -11
  407. package/dist/twitterIcon-IkT5wPxq.js.map +0 -1
  408. package/dist/vanilla-CgG5xMJO.js +0 -448
  409. package/dist/vanilla-CgG5xMJO.js.map +0 -1
  410. package/dist/verify-BfilAaob.js +0 -13
  411. package/dist/verify-BfilAaob.js.map +0 -1
  412. package/dist/verify-filled-COkWKgPo.js +0 -13
  413. package/dist/verify-filled-COkWKgPo.js.map +0 -1
  414. package/dist/w3m-modal-9MzgEqm3.js +0 -1725
  415. package/dist/w3m-modal-9MzgEqm3.js.map +0 -1
  416. package/dist/w3m-modal-DBQU256b.js +0 -2008
  417. package/dist/w3m-modal-DBQU256b.js.map +0 -1
  418. package/dist/wallet-9D5svrZj.js +0 -13
  419. package/dist/wallet-9D5svrZj.js.map +0 -1
  420. package/dist/wallet-placeholder-CfLGKG93.js +0 -19
  421. package/dist/wallet-placeholder-CfLGKG93.js.map +0 -1
  422. package/dist/wallet-standard-CkMoUaGA.js +0 -523
  423. package/dist/wallet-standard-CkMoUaGA.js.map +0 -1
  424. package/dist/walletconnect-MtAz2u7z.js +0 -39
  425. package/dist/walletconnect-MtAz2u7z.js.map +0 -1
  426. package/dist/warning-circle-Cf2AJecu.js +0 -17
  427. package/dist/warning-circle-Cf2AJecu.js.map +0 -1
  428. package/dist/x-B0KhGb39.js +0 -17
  429. package/dist/x-B0KhGb39.js.map +0 -1
@@ -1,2277 +0,0 @@
1
- import { et as parseSignature, eu as parseStructs, ev as isStructSignature, ew as InvalidAbiItemError, ex as parseAbiParameter$1, ey as modifiers, ez as InvalidAbiParameterError, eA as splitParameters, eB as InvalidAbiParametersError, cN as getAction, dp as readContract, eC as writeContract, cL as toBytes, H as getAddress, dx as pad, aF as keccak256, a9 as slice, $ as concat, eD as toRlp, eE as InvalidHexValueError, dS as hexToBytes, eF as createCursor, aD as bytesToHex, T as BaseError, a2 as isHex, aE as size, eG as ripemd160$1, aL as toHex, er as createBatchScheduler, L as withTimeout, dE as TimeoutError, eH as SocketClosedError, eI as WebSocketRequestError, dg as sliceHex, ad as decodeAbiParameters, K as numberToHex, e0 as recoverAddress, Z as isAddressEqual, dd as hexToNumber, eJ as InvalidSerializedTransactionTypeError, eK as InvalidSerializedTransactionError, db as hexToBigInt, eL as assertTransactionEIP1559, eM as assertTransactionEIP2930, eN as toBlobSidecars, eO as assertTransactionEIP4844, eP as assertTransactionEIP7702, eQ as assertTransactionLegacy, eR as InvalidLegacyVError, aH as isAddress, aI as InvalidAddressError, df as trim, eS as padHex, eT as parseUnits, eU as etherUnits, eV as gweiUnits, dt as formatTransactionRequest, du as extract, eo as createClient, e5 as encodeDeployData, da as sendTransaction, eW as checksumAddress, cP as parseAccount, ep as AccountNotFoundError, eX as AccountTypeNotSupportedError, ds as assertRequest, el as getChainId, eY as assertCurrentChain, eZ as signMessage, ee as sendRawTransaction, ef as prepareTransactionRequest, eq as createTransport, e_ as TransactionRejectedRpcError, U as UserRejectedRequestError, e$ as ExecutionRevertedError, f0 as wait, es as RpcRequestError, f1 as AbiConstructorNotFoundError, f2 as AbiConstructorParamsNotFoundError, f3 as commitmentToVersionedHash, dR as secp256k1, f4 as serializeTransaction, f5 as AbiDecodingDataSizeInvalidError, f6 as AbiDecodingDataSizeTooSmallError, dX as AbiDecodingZeroDataError, f7 as AbiEncodingArrayLengthMismatchError, f8 as AbiEncodingBytesSizeMismatchError, dw as AbiEncodingLengthMismatchError, ag as AbiErrorInputsNotFoundError, af as AbiErrorNotFoundError, f9 as AbiErrorSignatureNotFoundError, cJ as AbiEventNotFoundError, fa as AbiEventSignatureEmptyTopicsError, fb as AbiEventSignatureNotFoundError, ai as AbiFunctionNotFoundError, aj as AbiFunctionOutputsNotFoundError, ac as AbiFunctionSignatureNotFoundError, fc as AccountStateConflictError, fd as AtomicReadyWalletRejectedUpgradeError, d9 as AtomicityNotSupportedError, fe as BaseFeeScalarError, ff as BlockNotFoundError, fg as BundleTooLargeError, aK as BytesSizeMismatchError, e7 as CallExecutionError, fh as ChainDisconnectedError, fi as ChainDoesNotSupportContract, fj as ChainMismatchError, fk as ChainNotFoundError, fl as CircularReferenceError, fm as ClientChainNotConfiguredError, e9 as ContractFunctionExecutionError, dj as ContractFunctionRevertedError, fn as ContractFunctionZeroDataError, fo as CounterfactualDeploymentFailedError, d6 as DecodeLogDataMismatch, d7 as DecodeLogTopicsMismatch, fp as DuplicateIdError, fq as Eip1559FeesNotSupportedError, fr as EstimateGasExecutionError, fs as FeeCapTooHighError, ft as FeeCapTooLowError, fu as FeeConflictError, a1 as HttpRequestError, fv as InsufficientFundsError, fw as IntegerOutOfRangeError, fx as InternalRpcError, fy as IntrinsicGasTooHighError, fz as IntrinsicGasTooLowError, fA as InvalidAbiDecodingTypeError, fB as InvalidAbiEncodingTypeError, fC as InvalidAbiTypeParameterError, ak as InvalidArrayError, fD as InvalidBytesBooleanError, fE as InvalidChainIdError, fF as InvalidDecimalNumberError, fG as InvalidDefinitionTypeError, fH as InvalidFunctionModifierError, fI as InvalidHexBooleanError, d3 as InvalidInputRpcError, fJ as InvalidModifierError, fK as InvalidParameterError, fL as InvalidParamsRpcError, fM as InvalidParenthesisError, fN as InvalidRequestRpcError, fO as InvalidSerializableTransactionError, fP as InvalidSignatureError, fQ as InvalidStorageKeySizeError, fR as InvalidStructSignatureError, fS as JsonRpcVersionUnsupportedError, fT as LimitExceededRpcError, fU as MaxFeePerGasTooLowError, fV as MethodNotFoundRpcError, fW as MethodNotSupportedRpcError, fX as NonceMaxValueError, fY as NonceTooHighError, fZ as NonceTooLowError, f_ as ParseRpcError, f$ as ProviderDisconnectedError, g0 as ProviderRpcError$1, dY as RawContractError, g1 as ResourceNotFoundRpcError, g2 as ResourceUnavailableRpcError, g3 as RpcError, g4 as SizeExceedsPaddingSizeError, g5 as SizeOverflowError, g6 as SliceOffsetOutOfBoundsError, g7 as SolidityProtectedKeywordError, g8 as StateAssignmentConflictError, I as SwitchChainError, g9 as TipAboveFeeCapError, ga as TransactionExecutionError, gb as TransactionNotFoundError, gc as TransactionReceiptNotFoundError, gd as TransactionTypeNotSupportedError, ge as UnauthorizedProviderError, gf as UnknownBundleIdError, d_ as UnknownNodeError, gg as UnknownRpcError, gh as UnknownSignatureError, gi as UnknownTypeError, gj as UnsupportedChainIdError, d8 as UnsupportedNonOptionalCapabilityError, dA as UnsupportedPackedAbiType, gk as UnsupportedProviderMethodError, gl as WaitForTransactionReceiptTimeoutError, gm as blobsToCommitments, gn as blobsToProofs, go as boolToBytes, dy as boolToHex, gp as bytesToBigInt, gq as bytesToBool, gr as bytesToNumber, gs as bytesToRlp, gt as bytesToString, gu as commitmentsToVersionedHashes, gv as concatBytes, ah as concatHex, gw as custom, Y as decodeErrorResult, d5 as decodeEventLog, c_ as decodeFunctionResult, gx as defineBlock, gy as defineChain, gz as defineTransaction, gA as defineTransactionReceipt, gB as defineTransactionRequest, d$ as deploylessCallViaBytecodeBytecode, gC as deploylessCallViaFactoryBytecode, a0 as encodeAbiParameters, b4 as encodeFunctionData, gD as erc1155Abi, gE as erc20Abi, gF as erc20Abi_bytes32, gG as erc4626Abi, e4 as erc6492SignatureValidatorAbi, e6 as erc6492SignatureValidatorByteCode, gH as erc721Abi, dW as formatBlock, gI as formatEther, gJ as formatGwei, cR as formatLog, gK as formatTransaction, gL as formatTransactionReceipt, gM as formatUnits, gN as fromBytes, gO as fromHex, ae as getAbiItem, dl as getChainContractAddress, cQ as getContractError, cK as toEventSelector, gP as toSignature, aa as toFunctionSelector, gQ as getTransactionType, e8 as hexToBool, gR as hexToRlp, gS as hexToString, gT as maxInt104, gU as maxInt112, gV as maxInt120, gW as maxInt128, gX as maxInt136, gY as maxInt144, gZ as maxInt152, g_ as maxInt16, g$ as maxInt160, h0 as maxInt168, h1 as maxInt176, h2 as maxInt184, h3 as maxInt192, h4 as maxInt200, h5 as maxInt208, h6 as maxInt216, h7 as maxInt224, h8 as maxInt232, h9 as maxInt24, ha as maxInt240, hb as maxInt248, hc as maxInt256, hd as maxInt32, he as maxInt40, hf as maxInt48, hg as maxInt56, hh as maxInt64, hi as maxInt72, hj as maxInt8, hk as maxInt80, hl as maxInt88, hm as maxInt96, hn as maxUint104, ho as maxUint112, hp as maxUint120, hq as maxUint128, hr as maxUint136, hs as maxUint144, ht as maxUint152, hu as maxUint16, hv as maxUint160, hw as maxUint168, hx as maxUint176, hy as maxUint184, hz as maxUint192, hA as maxUint200, hB as maxUint208, hC as maxUint216, hD as maxUint224, hE as maxUint232, hF as maxUint24, hG as maxUint240, hH as maxUint248, hI as maxUint256, hJ as maxUint32, hK as maxUint40, hL as maxUint48, hM as maxUint56, hN as maxUint64, hO as maxUint72, hP as maxUint8, hQ as maxUint80, hR as maxUint88, hS as maxUint96, hT as minInt104, hU as minInt112, hV as minInt120, hW as minInt128, hX as minInt136, hY as minInt144, hZ as minInt152, h_ as minInt16, h$ as minInt160, i0 as minInt168, i1 as minInt176, i2 as minInt184, i3 as minInt192, i4 as minInt200, i5 as minInt208, i6 as minInt216, i7 as minInt224, i8 as minInt232, i9 as minInt24, ia as minInt240, ib as minInt248, ic as minInt256, id as minInt32, ie as minInt40, ig as minInt48, ih as minInt56, ii as minInt64, ij as minInt72, ik as minInt8, il as minInt80, im as minInt88, io as minInt96, e1 as multicall3Abi, ip as numberToBytes, iq as padBytes, ir as parseAbi, cS as parseEventLogs, is as prepareEncodeFunctionData, it as recoverPublicKey, iu as rpcSchema, iv as rpcTransactionType, iw as serializeAccessList, ix as setErrorConfig, iy as sha256, iz as sliceBytes, dk as stringToBytes, aC as stringToHex, X as stringify, iA as toBlobs, iB as toSignatureHash, iC as transactionType, iD as weiUnits, iE as withCache, di as withRetry } from "./appkit-ppmICUF1.js";
2
- import { s as simulateContract, c as createContractEventFilter, g as getContractEvents, w as watchContractEvent, e as estimateContractGas, i as idCache, a as erc6492MagicBytes, v as validate, u as unwrap, b as wrap, p as prepareAuthorization, d as waitForCallsStatus, f as sendCalls, h as getCallsStatus, U as UrlRequiredError, E as EnsInvalidChainIdError, B as BundleFailedError, j as EnsAvatarInvalidNftUriError, k as EnsAvatarUnsupportedNamespaceError, l as EnsAvatarUriResolutionError, F as FilterTypeNotSupportedError, W as WaitForCallsStatusTimeoutError, m as createNonceManager, n as createPublicClient, o as encodeEventTopics, q as encodePacked, r as ethAddress, t as parseSignature$1, x as http, y as labelhash, z as namehash, A as nonceManager, C as publicActions, D as serializeErc6492Signature, G as serializeSignature, H as zeroAddress, I as zeroHash } from "./parseSignature-MJforcG6.js";
3
- import { h as hashMessage, a as hashTypedData, g as getTypesForEIP712Domain, v as validateTypedData, s as serializeTypedData, I as InvalidDomainError, b as InvalidPrimaryTypeError, c as InvalidStructTypeError, d as domainSeparator, e as hashDomain, f as hashStruct, p as presignMessagePrefix, t as toPrefixedMessage } from "./hashTypedData-MEx8_Z-J.js";
4
- import { d as decodeFunctionData, e as encodeErrorResult, b as encodeFunctionResult } from "./localBatchGatewayRequest-CLL1gABv.js";
5
- import { ccipRequest, offchainLookup, offchainLookupAbiItem, offchainLookupSignature } from "./ccip-Dj8tRQd7.js";
6
- function parseAbiItem(signature) {
7
- let abiItem;
8
- if (typeof signature === "string")
9
- abiItem = parseSignature(signature);
10
- else {
11
- const structs = parseStructs(signature);
12
- const length = signature.length;
13
- for (let i = 0; i < length; i++) {
14
- const signature_ = signature[i];
15
- if (isStructSignature(signature_))
16
- continue;
17
- abiItem = parseSignature(signature_, structs);
18
- break;
19
- }
20
- }
21
- if (!abiItem)
22
- throw new InvalidAbiItemError({ signature });
23
- return abiItem;
24
- }
25
- function parseAbiParameter(param) {
26
- let abiParameter;
27
- if (typeof param === "string")
28
- abiParameter = parseAbiParameter$1(param, {
29
- modifiers
30
- });
31
- else {
32
- const structs = parseStructs(param);
33
- const length = param.length;
34
- for (let i = 0; i < length; i++) {
35
- const signature = param[i];
36
- if (isStructSignature(signature))
37
- continue;
38
- abiParameter = parseAbiParameter$1(signature, { modifiers, structs });
39
- break;
40
- }
41
- }
42
- if (!abiParameter)
43
- throw new InvalidAbiParameterError({ param });
44
- return abiParameter;
45
- }
46
- function parseAbiParameters(params) {
47
- const abiParameters = [];
48
- if (typeof params === "string") {
49
- const parameters = splitParameters(params);
50
- const length = parameters.length;
51
- for (let i = 0; i < length; i++) {
52
- abiParameters.push(parseAbiParameter$1(parameters[i], { modifiers }));
53
- }
54
- } else {
55
- const structs = parseStructs(params);
56
- const length = params.length;
57
- for (let i = 0; i < length; i++) {
58
- const signature = params[i];
59
- if (isStructSignature(signature))
60
- continue;
61
- const parameters = splitParameters(signature);
62
- const length2 = parameters.length;
63
- for (let k = 0; k < length2; k++) {
64
- abiParameters.push(parseAbiParameter$1(parameters[k], { modifiers, structs }));
65
- }
66
- }
67
- }
68
- if (abiParameters.length === 0)
69
- throw new InvalidAbiParametersError({ params });
70
- return abiParameters;
71
- }
72
- function getContract({ abi, address, client: client_ }) {
73
- const client = client_;
74
- const [publicClient, walletClient] = (() => {
75
- if (!client)
76
- return [void 0, void 0];
77
- if ("public" in client && "wallet" in client)
78
- return [client.public, client.wallet];
79
- if ("public" in client)
80
- return [client.public, void 0];
81
- if ("wallet" in client)
82
- return [void 0, client.wallet];
83
- return [client, client];
84
- })();
85
- const hasPublicClient = publicClient !== void 0 && publicClient !== null;
86
- const hasWalletClient = walletClient !== void 0 && walletClient !== null;
87
- const contract = {};
88
- let hasReadFunction = false;
89
- let hasWriteFunction = false;
90
- let hasEvent = false;
91
- for (const item of abi) {
92
- if (item.type === "function")
93
- if (item.stateMutability === "view" || item.stateMutability === "pure")
94
- hasReadFunction = true;
95
- else
96
- hasWriteFunction = true;
97
- else if (item.type === "event")
98
- hasEvent = true;
99
- if (hasReadFunction && hasWriteFunction && hasEvent)
100
- break;
101
- }
102
- if (hasPublicClient) {
103
- if (hasReadFunction)
104
- contract.read = new Proxy({}, {
105
- get(_, functionName) {
106
- return (...parameters) => {
107
- const { args, options } = getFunctionParameters(parameters);
108
- return getAction(publicClient, readContract, "readContract")({
109
- abi,
110
- address,
111
- functionName,
112
- args,
113
- ...options
114
- });
115
- };
116
- }
117
- });
118
- if (hasWriteFunction)
119
- contract.simulate = new Proxy({}, {
120
- get(_, functionName) {
121
- return (...parameters) => {
122
- const { args, options } = getFunctionParameters(parameters);
123
- return getAction(publicClient, simulateContract, "simulateContract")({
124
- abi,
125
- address,
126
- functionName,
127
- args,
128
- ...options
129
- });
130
- };
131
- }
132
- });
133
- if (hasEvent) {
134
- contract.createEventFilter = new Proxy({}, {
135
- get(_, eventName) {
136
- return (...parameters) => {
137
- const abiEvent = abi.find((x) => x.type === "event" && x.name === eventName);
138
- const { args, options } = getEventParameters(parameters, abiEvent);
139
- return getAction(publicClient, createContractEventFilter, "createContractEventFilter")({
140
- abi,
141
- address,
142
- eventName,
143
- args,
144
- ...options
145
- });
146
- };
147
- }
148
- });
149
- contract.getEvents = new Proxy({}, {
150
- get(_, eventName) {
151
- return (...parameters) => {
152
- const abiEvent = abi.find((x) => x.type === "event" && x.name === eventName);
153
- const { args, options } = getEventParameters(parameters, abiEvent);
154
- return getAction(publicClient, getContractEvents, "getContractEvents")({
155
- abi,
156
- address,
157
- eventName,
158
- args,
159
- ...options
160
- });
161
- };
162
- }
163
- });
164
- contract.watchEvent = new Proxy({}, {
165
- get(_, eventName) {
166
- return (...parameters) => {
167
- const abiEvent = abi.find((x) => x.type === "event" && x.name === eventName);
168
- const { args, options } = getEventParameters(parameters, abiEvent);
169
- return getAction(publicClient, watchContractEvent, "watchContractEvent")({
170
- abi,
171
- address,
172
- eventName,
173
- args,
174
- ...options
175
- });
176
- };
177
- }
178
- });
179
- }
180
- }
181
- if (hasWalletClient) {
182
- if (hasWriteFunction)
183
- contract.write = new Proxy({}, {
184
- get(_, functionName) {
185
- return (...parameters) => {
186
- const { args, options } = getFunctionParameters(parameters);
187
- return getAction(walletClient, writeContract, "writeContract")({
188
- abi,
189
- address,
190
- functionName,
191
- args,
192
- ...options
193
- });
194
- };
195
- }
196
- });
197
- }
198
- if (hasPublicClient || hasWalletClient) {
199
- if (hasWriteFunction)
200
- contract.estimateGas = new Proxy({}, {
201
- get(_, functionName) {
202
- return (...parameters) => {
203
- const { args, options } = getFunctionParameters(parameters);
204
- const client2 = publicClient ?? walletClient;
205
- return getAction(client2, estimateContractGas, "estimateContractGas")({
206
- abi,
207
- address,
208
- functionName,
209
- args,
210
- ...options,
211
- account: options.account ?? walletClient.account
212
- });
213
- };
214
- }
215
- });
216
- }
217
- contract.address = address;
218
- contract.abi = abi;
219
- return contract;
220
- }
221
- function getFunctionParameters(values) {
222
- const hasArgs = values.length && Array.isArray(values[0]);
223
- const args = hasArgs ? values[0] : [];
224
- const options = (hasArgs ? values[1] : values[0]) ?? {};
225
- return { args, options };
226
- }
227
- function getEventParameters(values, abiEvent) {
228
- let hasArgs = false;
229
- if (Array.isArray(values[0]))
230
- hasArgs = true;
231
- else if (values.length === 1) {
232
- hasArgs = abiEvent.inputs.some((x) => x.indexed);
233
- } else if (values.length === 2) {
234
- hasArgs = true;
235
- }
236
- const args = hasArgs ? values[0] : void 0;
237
- const options = (hasArgs ? values[1] : values[0]) ?? {};
238
- return { args, options };
239
- }
240
- function isBytes(value) {
241
- if (!value)
242
- return false;
243
- if (typeof value !== "object")
244
- return false;
245
- if (!("BYTES_PER_ELEMENT" in value))
246
- return false;
247
- return value.BYTES_PER_ELEMENT === 1 && value.constructor.name === "Uint8Array";
248
- }
249
- function getContractAddress(opts) {
250
- if (opts.opcode === "CREATE2")
251
- return getCreate2Address(opts);
252
- return getCreateAddress(opts);
253
- }
254
- function getCreateAddress(opts) {
255
- const from = toBytes(getAddress(opts.from));
256
- let nonce = toBytes(opts.nonce);
257
- if (nonce[0] === 0)
258
- nonce = new Uint8Array([]);
259
- return getAddress(`0x${keccak256(toRlp([from, nonce], "bytes")).slice(26)}`);
260
- }
261
- function getCreate2Address(opts) {
262
- const from = toBytes(getAddress(opts.from));
263
- const salt = pad(isBytes(opts.salt) ? opts.salt : toBytes(opts.salt), {
264
- size: 32
265
- });
266
- const bytecodeHash = (() => {
267
- if ("bytecodeHash" in opts) {
268
- if (isBytes(opts.bytecodeHash))
269
- return opts.bytecodeHash;
270
- return toBytes(opts.bytecodeHash);
271
- }
272
- return keccak256(opts.bytecode, "bytes");
273
- })();
274
- return getAddress(slice(keccak256(concat([toBytes("0xff"), from, salt, bytecodeHash])), 12));
275
- }
276
- function extractChain({ chains, id }) {
277
- return chains.find((chain) => chain.id === id);
278
- }
279
- function fromRlp(value, to = "hex") {
280
- const bytes = (() => {
281
- if (typeof value === "string") {
282
- if (value.length > 3 && value.length % 2 !== 0)
283
- throw new InvalidHexValueError(value);
284
- return hexToBytes(value);
285
- }
286
- return value;
287
- })();
288
- const cursor = createCursor(bytes, {
289
- recursiveReadLimit: Number.POSITIVE_INFINITY
290
- });
291
- const result = fromRlpCursor(cursor, to);
292
- return result;
293
- }
294
- function fromRlpCursor(cursor, to = "hex") {
295
- if (cursor.bytes.length === 0)
296
- return to === "hex" ? bytesToHex(cursor.bytes) : cursor.bytes;
297
- const prefix = cursor.readByte();
298
- if (prefix < 128)
299
- cursor.decrementPosition(1);
300
- if (prefix < 192) {
301
- const length2 = readLength(cursor, prefix, 128);
302
- const bytes = cursor.readBytes(length2);
303
- return to === "hex" ? bytesToHex(bytes) : bytes;
304
- }
305
- const length = readLength(cursor, prefix, 192);
306
- return readList(cursor, length, to);
307
- }
308
- function readLength(cursor, prefix, offset) {
309
- if (offset === 128 && prefix < 128)
310
- return 1;
311
- if (prefix <= offset + 55)
312
- return prefix - offset;
313
- if (prefix === offset + 55 + 1)
314
- return cursor.readUint8();
315
- if (prefix === offset + 55 + 2)
316
- return cursor.readUint16();
317
- if (prefix === offset + 55 + 3)
318
- return cursor.readUint24();
319
- if (prefix === offset + 55 + 4)
320
- return cursor.readUint32();
321
- throw new BaseError("Invalid RLP prefix");
322
- }
323
- function readList(cursor, length, to) {
324
- const position = cursor.position;
325
- const value = [];
326
- while (cursor.position - position < length)
327
- value.push(fromRlpCursor(cursor, to));
328
- return value;
329
- }
330
- function isHash(hash) {
331
- return isHex(hash) && size(hash) === 32;
332
- }
333
- function ripemd160(value, to_) {
334
- const to = to_ || "hex";
335
- const bytes = ripemd160$1(isHex(value, { strict: false }) ? toBytes(value) : value);
336
- if (to === "bytes")
337
- return bytes;
338
- return toHex(bytes);
339
- }
340
- const socketClientCache = /* @__PURE__ */ new Map();
341
- async function getSocketRpcClient(parameters) {
342
- const { getSocket: getSocket2, keepAlive = true, key = "socket", reconnect = true, url } = parameters;
343
- const { interval: keepAliveInterval = 3e4 } = typeof keepAlive === "object" ? keepAlive : {};
344
- const { attempts = 5, delay = 2e3 } = typeof reconnect === "object" ? reconnect : {};
345
- const id = JSON.stringify({ keepAlive, key, url, reconnect });
346
- let socketClient = socketClientCache.get(id);
347
- if (socketClient)
348
- return socketClient;
349
- let reconnectCount = 0;
350
- const { schedule } = createBatchScheduler({
351
- id,
352
- fn: async () => {
353
- const requests = /* @__PURE__ */ new Map();
354
- const subscriptions = /* @__PURE__ */ new Map();
355
- let error;
356
- let socket;
357
- let keepAliveTimer;
358
- let reconnectInProgress = false;
359
- function attemptReconnect() {
360
- if (reconnect && reconnectCount < attempts) {
361
- if (reconnectInProgress)
362
- return;
363
- reconnectInProgress = true;
364
- reconnectCount++;
365
- socket == null ? void 0 : socket.close();
366
- setTimeout(async () => {
367
- await setup().catch(console.error);
368
- reconnectInProgress = false;
369
- }, delay);
370
- } else {
371
- requests.clear();
372
- subscriptions.clear();
373
- }
374
- }
375
- async function setup() {
376
- const result = await getSocket2({
377
- onClose() {
378
- var _a, _b;
379
- for (const request of requests.values())
380
- (_a = request.onError) == null ? void 0 : _a.call(request, new SocketClosedError({ url }));
381
- for (const subscription of subscriptions.values())
382
- (_b = subscription.onError) == null ? void 0 : _b.call(subscription, new SocketClosedError({ url }));
383
- attemptReconnect();
384
- },
385
- onError(error_) {
386
- var _a, _b;
387
- error = error_;
388
- for (const request of requests.values())
389
- (_a = request.onError) == null ? void 0 : _a.call(request, error);
390
- for (const subscription of subscriptions.values())
391
- (_b = subscription.onError) == null ? void 0 : _b.call(subscription, error);
392
- attemptReconnect();
393
- },
394
- onOpen() {
395
- error = void 0;
396
- reconnectCount = 0;
397
- },
398
- onResponse(data) {
399
- const isSubscription = data.method === "eth_subscription";
400
- const id2 = isSubscription ? data.params.subscription : data.id;
401
- const cache = isSubscription ? subscriptions : requests;
402
- const callback = cache.get(id2);
403
- if (callback)
404
- callback.onResponse(data);
405
- if (!isSubscription)
406
- cache.delete(id2);
407
- }
408
- });
409
- socket = result;
410
- if (keepAlive) {
411
- if (keepAliveTimer)
412
- clearInterval(keepAliveTimer);
413
- keepAliveTimer = setInterval(() => {
414
- var _a;
415
- return (_a = socket.ping) == null ? void 0 : _a.call(socket);
416
- }, keepAliveInterval);
417
- }
418
- if (reconnect && subscriptions.size > 0) {
419
- const subscriptionEntries = subscriptions.entries();
420
- for (const [key2, { onResponse, body, onError }] of subscriptionEntries) {
421
- if (!body)
422
- continue;
423
- subscriptions.delete(key2);
424
- socketClient == null ? void 0 : socketClient.request({ body, onResponse, onError });
425
- }
426
- }
427
- return result;
428
- }
429
- await setup();
430
- error = void 0;
431
- socketClient = {
432
- close() {
433
- keepAliveTimer && clearInterval(keepAliveTimer);
434
- socket.close();
435
- socketClientCache.delete(id);
436
- },
437
- get socket() {
438
- return socket;
439
- },
440
- request({ body, onError, onResponse }) {
441
- if (error && onError)
442
- onError(error);
443
- const id2 = body.id ?? idCache.take();
444
- const callback = (response) => {
445
- var _a;
446
- if (typeof response.id === "number" && id2 !== response.id)
447
- return;
448
- if (body.method === "eth_subscribe" && typeof response.result === "string")
449
- subscriptions.set(response.result, {
450
- onResponse: callback,
451
- onError,
452
- body
453
- });
454
- if (body.method === "eth_unsubscribe")
455
- subscriptions.delete((_a = body.params) == null ? void 0 : _a[0]);
456
- onResponse(response);
457
- };
458
- requests.set(id2, { onResponse: callback, onError });
459
- try {
460
- socket.request({
461
- body: {
462
- jsonrpc: "2.0",
463
- id: id2,
464
- ...body
465
- }
466
- });
467
- } catch (error2) {
468
- onError == null ? void 0 : onError(error2);
469
- }
470
- },
471
- requestAsync({ body, timeout = 1e4 }) {
472
- return withTimeout(() => new Promise((onResponse, onError) => this.request({
473
- body,
474
- onError,
475
- onResponse
476
- })), {
477
- errorInstance: new TimeoutError({ body, url }),
478
- timeout
479
- });
480
- },
481
- requests,
482
- subscriptions,
483
- url
484
- };
485
- socketClientCache.set(id, socketClient);
486
- return [socketClient];
487
- }
488
- });
489
- const [_, [socketClient_]] = await schedule();
490
- return socketClient_;
491
- }
492
- async function getWebSocketRpcClient(url, options = {}) {
493
- const { keepAlive, reconnect } = options;
494
- return getSocketRpcClient({
495
- async getSocket({ onClose, onError, onOpen, onResponse }) {
496
- const WebSocket = await import("./native-Dc_5StoC.js").then((module) => module.WebSocket);
497
- const socket = new WebSocket(url);
498
- function onClose_() {
499
- socket.removeEventListener("close", onClose_);
500
- socket.removeEventListener("message", onMessage);
501
- socket.removeEventListener("error", onError);
502
- socket.removeEventListener("open", onOpen);
503
- onClose();
504
- }
505
- function onMessage({ data }) {
506
- if (typeof data === "string" && data.trim().length === 0)
507
- return;
508
- try {
509
- const _data = JSON.parse(data);
510
- onResponse(_data);
511
- } catch (error) {
512
- onError(error);
513
- }
514
- }
515
- socket.addEventListener("close", onClose_);
516
- socket.addEventListener("message", onMessage);
517
- socket.addEventListener("error", onError);
518
- socket.addEventListener("open", onOpen);
519
- if (socket.readyState === WebSocket.CONNECTING) {
520
- await new Promise((resolve, reject) => {
521
- if (!socket)
522
- return;
523
- socket.onopen = resolve;
524
- socket.onerror = reject;
525
- });
526
- }
527
- const { close: close_ } = socket;
528
- return Object.assign(socket, {
529
- close() {
530
- close_.bind(socket)();
531
- onClose_();
532
- },
533
- ping() {
534
- try {
535
- if (socket.readyState === socket.CLOSED || socket.readyState === socket.CLOSING)
536
- throw new WebSocketRequestError({
537
- url: socket.url,
538
- cause: new SocketClosedError({ url: socket.url })
539
- });
540
- const body = {
541
- jsonrpc: "2.0",
542
- id: null,
543
- method: "net_version",
544
- params: []
545
- };
546
- socket.send(JSON.stringify(body));
547
- } catch (error) {
548
- onError(error);
549
- }
550
- },
551
- request({ body }) {
552
- if (socket.readyState === socket.CLOSED || socket.readyState === socket.CLOSING)
553
- throw new WebSocketRequestError({
554
- body,
555
- url: socket.url,
556
- cause: new SocketClosedError({ url: socket.url })
557
- });
558
- return socket.send(JSON.stringify(body));
559
- }
560
- });
561
- },
562
- keepAlive,
563
- reconnect,
564
- url
565
- });
566
- }
567
- async function getSocket(url) {
568
- const client = await getWebSocketRpcClient(url);
569
- return Object.assign(client.socket, {
570
- requests: client.requests,
571
- subscriptions: client.subscriptions
572
- });
573
- }
574
- function isErc6492Signature(signature) {
575
- return sliceHex(signature, -32) === erc6492MagicBytes;
576
- }
577
- function isErc8010Signature(signature) {
578
- return validate(signature);
579
- }
580
- function parseErc6492Signature(signature) {
581
- if (!isErc6492Signature(signature))
582
- return { signature };
583
- const [address, data, signature_] = decodeAbiParameters([{ type: "address" }, { type: "bytes" }, { type: "bytes" }], signature);
584
- return { address, data, signature: signature_ };
585
- }
586
- function parseErc8010Signature(signature) {
587
- if (!isErc8010Signature(signature))
588
- return { signature };
589
- const { authorization: authorization_ox, to, ...rest } = unwrap(signature);
590
- return {
591
- authorization: {
592
- address: authorization_ox.address,
593
- chainId: authorization_ox.chainId,
594
- nonce: Number(authorization_ox.nonce),
595
- r: numberToHex(authorization_ox.r, { size: 32 }),
596
- s: numberToHex(authorization_ox.s, { size: 32 }),
597
- yParity: authorization_ox.yParity
598
- },
599
- ...to ? { address: to } : {},
600
- ...rest
601
- };
602
- }
603
- async function recoverMessageAddress({ message, signature }) {
604
- return recoverAddress({ hash: hashMessage(message), signature });
605
- }
606
- async function recoverTypedDataAddress(parameters) {
607
- const { domain, message, primaryType, signature, types } = parameters;
608
- return recoverAddress({
609
- hash: hashTypedData({
610
- domain,
611
- message,
612
- primaryType,
613
- types
614
- }),
615
- signature
616
- });
617
- }
618
- function serializeErc8010Signature(parameters) {
619
- const { address, data, signature, to = "hex" } = parameters;
620
- const signature_ = wrap({
621
- authorization: {
622
- address: parameters.authorization.address,
623
- chainId: parameters.authorization.chainId,
624
- nonce: BigInt(parameters.authorization.nonce),
625
- r: BigInt(parameters.authorization.r),
626
- s: BigInt(parameters.authorization.s),
627
- yParity: parameters.authorization.yParity
628
- },
629
- data,
630
- signature,
631
- to: address
632
- });
633
- if (to === "hex")
634
- return signature_;
635
- return hexToBytes(signature_);
636
- }
637
- async function verifyHash({ address, hash, signature }) {
638
- return isAddressEqual(getAddress(address), await recoverAddress({ hash, signature }));
639
- }
640
- async function verifyMessage({ address, message, signature }) {
641
- return isAddressEqual(getAddress(address), await recoverMessageAddress({ message, signature }));
642
- }
643
- async function verifyTypedData(parameters) {
644
- const { address, domain, message, primaryType, signature, types } = parameters;
645
- return isAddressEqual(getAddress(address), await recoverTypedDataAddress({
646
- domain,
647
- message,
648
- primaryType,
649
- signature,
650
- types
651
- }));
652
- }
653
- function getSerializedTransactionType(serializedTransaction) {
654
- const serializedType = sliceHex(serializedTransaction, 0, 1);
655
- if (serializedType === "0x04")
656
- return "eip7702";
657
- if (serializedType === "0x03")
658
- return "eip4844";
659
- if (serializedType === "0x02")
660
- return "eip1559";
661
- if (serializedType === "0x01")
662
- return "eip2930";
663
- if (serializedType !== "0x" && hexToNumber(serializedType) >= 192)
664
- return "legacy";
665
- throw new InvalidSerializedTransactionTypeError({ serializedType });
666
- }
667
- function parseTransaction(serializedTransaction) {
668
- const type = getSerializedTransactionType(serializedTransaction);
669
- if (type === "eip1559")
670
- return parseTransactionEIP1559(serializedTransaction);
671
- if (type === "eip2930")
672
- return parseTransactionEIP2930(serializedTransaction);
673
- if (type === "eip4844")
674
- return parseTransactionEIP4844(serializedTransaction);
675
- if (type === "eip7702")
676
- return parseTransactionEIP7702(serializedTransaction);
677
- return parseTransactionLegacy(serializedTransaction);
678
- }
679
- function parseTransactionEIP7702(serializedTransaction) {
680
- const transactionArray = toTransactionArray(serializedTransaction);
681
- const [chainId, nonce, maxPriorityFeePerGas, maxFeePerGas, gas, to, value, data, accessList, authorizationList, v, r, s] = transactionArray;
682
- if (transactionArray.length !== 10 && transactionArray.length !== 13)
683
- throw new InvalidSerializedTransactionError({
684
- attributes: {
685
- chainId,
686
- nonce,
687
- maxPriorityFeePerGas,
688
- maxFeePerGas,
689
- gas,
690
- to,
691
- value,
692
- data,
693
- accessList,
694
- authorizationList,
695
- ...transactionArray.length > 9 ? {
696
- v,
697
- r,
698
- s
699
- } : {}
700
- },
701
- serializedTransaction,
702
- type: "eip7702"
703
- });
704
- const transaction = {
705
- chainId: hexToNumber(chainId),
706
- type: "eip7702"
707
- };
708
- if (isHex(to) && to !== "0x")
709
- transaction.to = to;
710
- if (isHex(gas) && gas !== "0x")
711
- transaction.gas = hexToBigInt(gas);
712
- if (isHex(data) && data !== "0x")
713
- transaction.data = data;
714
- if (isHex(nonce))
715
- transaction.nonce = nonce === "0x" ? 0 : hexToNumber(nonce);
716
- if (isHex(value) && value !== "0x")
717
- transaction.value = hexToBigInt(value);
718
- if (isHex(maxFeePerGas) && maxFeePerGas !== "0x")
719
- transaction.maxFeePerGas = hexToBigInt(maxFeePerGas);
720
- if (isHex(maxPriorityFeePerGas) && maxPriorityFeePerGas !== "0x")
721
- transaction.maxPriorityFeePerGas = hexToBigInt(maxPriorityFeePerGas);
722
- if (accessList.length !== 0 && accessList !== "0x")
723
- transaction.accessList = parseAccessList(accessList);
724
- if (authorizationList.length !== 0 && authorizationList !== "0x")
725
- transaction.authorizationList = parseAuthorizationList(authorizationList);
726
- assertTransactionEIP7702(transaction);
727
- const signature = transactionArray.length === 13 ? parseEIP155Signature(transactionArray) : void 0;
728
- return { ...signature, ...transaction };
729
- }
730
- function parseTransactionEIP4844(serializedTransaction) {
731
- const transactionOrWrapperArray = toTransactionArray(serializedTransaction);
732
- const hasNetworkWrapper = transactionOrWrapperArray.length === 4;
733
- const transactionArray = hasNetworkWrapper ? transactionOrWrapperArray[0] : transactionOrWrapperArray;
734
- const wrapperArray = hasNetworkWrapper ? transactionOrWrapperArray.slice(1) : [];
735
- const [chainId, nonce, maxPriorityFeePerGas, maxFeePerGas, gas, to, value, data, accessList, maxFeePerBlobGas, blobVersionedHashes, v, r, s] = transactionArray;
736
- const [blobs, commitments, proofs] = wrapperArray;
737
- if (!(transactionArray.length === 11 || transactionArray.length === 14))
738
- throw new InvalidSerializedTransactionError({
739
- attributes: {
740
- chainId,
741
- nonce,
742
- maxPriorityFeePerGas,
743
- maxFeePerGas,
744
- gas,
745
- to,
746
- value,
747
- data,
748
- accessList,
749
- ...transactionArray.length > 9 ? {
750
- v,
751
- r,
752
- s
753
- } : {}
754
- },
755
- serializedTransaction,
756
- type: "eip4844"
757
- });
758
- const transaction = {
759
- blobVersionedHashes,
760
- chainId: hexToNumber(chainId),
761
- type: "eip4844"
762
- };
763
- if (isHex(to) && to !== "0x")
764
- transaction.to = to;
765
- if (isHex(gas) && gas !== "0x")
766
- transaction.gas = hexToBigInt(gas);
767
- if (isHex(data) && data !== "0x")
768
- transaction.data = data;
769
- if (isHex(nonce))
770
- transaction.nonce = nonce === "0x" ? 0 : hexToNumber(nonce);
771
- if (isHex(value) && value !== "0x")
772
- transaction.value = hexToBigInt(value);
773
- if (isHex(maxFeePerBlobGas) && maxFeePerBlobGas !== "0x")
774
- transaction.maxFeePerBlobGas = hexToBigInt(maxFeePerBlobGas);
775
- if (isHex(maxFeePerGas) && maxFeePerGas !== "0x")
776
- transaction.maxFeePerGas = hexToBigInt(maxFeePerGas);
777
- if (isHex(maxPriorityFeePerGas) && maxPriorityFeePerGas !== "0x")
778
- transaction.maxPriorityFeePerGas = hexToBigInt(maxPriorityFeePerGas);
779
- if (accessList.length !== 0 && accessList !== "0x")
780
- transaction.accessList = parseAccessList(accessList);
781
- if (blobs && commitments && proofs)
782
- transaction.sidecars = toBlobSidecars({
783
- blobs,
784
- commitments,
785
- proofs
786
- });
787
- assertTransactionEIP4844(transaction);
788
- const signature = transactionArray.length === 14 ? parseEIP155Signature(transactionArray) : void 0;
789
- return { ...signature, ...transaction };
790
- }
791
- function parseTransactionEIP1559(serializedTransaction) {
792
- const transactionArray = toTransactionArray(serializedTransaction);
793
- const [chainId, nonce, maxPriorityFeePerGas, maxFeePerGas, gas, to, value, data, accessList, v, r, s] = transactionArray;
794
- if (!(transactionArray.length === 9 || transactionArray.length === 12))
795
- throw new InvalidSerializedTransactionError({
796
- attributes: {
797
- chainId,
798
- nonce,
799
- maxPriorityFeePerGas,
800
- maxFeePerGas,
801
- gas,
802
- to,
803
- value,
804
- data,
805
- accessList,
806
- ...transactionArray.length > 9 ? {
807
- v,
808
- r,
809
- s
810
- } : {}
811
- },
812
- serializedTransaction,
813
- type: "eip1559"
814
- });
815
- const transaction = {
816
- chainId: hexToNumber(chainId),
817
- type: "eip1559"
818
- };
819
- if (isHex(to) && to !== "0x")
820
- transaction.to = to;
821
- if (isHex(gas) && gas !== "0x")
822
- transaction.gas = hexToBigInt(gas);
823
- if (isHex(data) && data !== "0x")
824
- transaction.data = data;
825
- if (isHex(nonce))
826
- transaction.nonce = nonce === "0x" ? 0 : hexToNumber(nonce);
827
- if (isHex(value) && value !== "0x")
828
- transaction.value = hexToBigInt(value);
829
- if (isHex(maxFeePerGas) && maxFeePerGas !== "0x")
830
- transaction.maxFeePerGas = hexToBigInt(maxFeePerGas);
831
- if (isHex(maxPriorityFeePerGas) && maxPriorityFeePerGas !== "0x")
832
- transaction.maxPriorityFeePerGas = hexToBigInt(maxPriorityFeePerGas);
833
- if (accessList.length !== 0 && accessList !== "0x")
834
- transaction.accessList = parseAccessList(accessList);
835
- assertTransactionEIP1559(transaction);
836
- const signature = transactionArray.length === 12 ? parseEIP155Signature(transactionArray) : void 0;
837
- return { ...signature, ...transaction };
838
- }
839
- function parseTransactionEIP2930(serializedTransaction) {
840
- const transactionArray = toTransactionArray(serializedTransaction);
841
- const [chainId, nonce, gasPrice, gas, to, value, data, accessList, v, r, s] = transactionArray;
842
- if (!(transactionArray.length === 8 || transactionArray.length === 11))
843
- throw new InvalidSerializedTransactionError({
844
- attributes: {
845
- chainId,
846
- nonce,
847
- gasPrice,
848
- gas,
849
- to,
850
- value,
851
- data,
852
- accessList,
853
- ...transactionArray.length > 8 ? {
854
- v,
855
- r,
856
- s
857
- } : {}
858
- },
859
- serializedTransaction,
860
- type: "eip2930"
861
- });
862
- const transaction = {
863
- chainId: hexToNumber(chainId),
864
- type: "eip2930"
865
- };
866
- if (isHex(to) && to !== "0x")
867
- transaction.to = to;
868
- if (isHex(gas) && gas !== "0x")
869
- transaction.gas = hexToBigInt(gas);
870
- if (isHex(data) && data !== "0x")
871
- transaction.data = data;
872
- if (isHex(nonce))
873
- transaction.nonce = nonce === "0x" ? 0 : hexToNumber(nonce);
874
- if (isHex(value) && value !== "0x")
875
- transaction.value = hexToBigInt(value);
876
- if (isHex(gasPrice) && gasPrice !== "0x")
877
- transaction.gasPrice = hexToBigInt(gasPrice);
878
- if (accessList.length !== 0 && accessList !== "0x")
879
- transaction.accessList = parseAccessList(accessList);
880
- assertTransactionEIP2930(transaction);
881
- const signature = transactionArray.length === 11 ? parseEIP155Signature(transactionArray) : void 0;
882
- return { ...signature, ...transaction };
883
- }
884
- function parseTransactionLegacy(serializedTransaction) {
885
- const transactionArray = fromRlp(serializedTransaction, "hex");
886
- const [nonce, gasPrice, gas, to, value, data, chainIdOrV_, r, s] = transactionArray;
887
- if (!(transactionArray.length === 6 || transactionArray.length === 9))
888
- throw new InvalidSerializedTransactionError({
889
- attributes: {
890
- nonce,
891
- gasPrice,
892
- gas,
893
- to,
894
- value,
895
- data,
896
- ...transactionArray.length > 6 ? {
897
- v: chainIdOrV_,
898
- r,
899
- s
900
- } : {}
901
- },
902
- serializedTransaction,
903
- type: "legacy"
904
- });
905
- const transaction = {
906
- type: "legacy"
907
- };
908
- if (isHex(to) && to !== "0x")
909
- transaction.to = to;
910
- if (isHex(gas) && gas !== "0x")
911
- transaction.gas = hexToBigInt(gas);
912
- if (isHex(data) && data !== "0x")
913
- transaction.data = data;
914
- if (isHex(nonce))
915
- transaction.nonce = nonce === "0x" ? 0 : hexToNumber(nonce);
916
- if (isHex(value) && value !== "0x")
917
- transaction.value = hexToBigInt(value);
918
- if (isHex(gasPrice) && gasPrice !== "0x")
919
- transaction.gasPrice = hexToBigInt(gasPrice);
920
- assertTransactionLegacy(transaction);
921
- if (transactionArray.length === 6)
922
- return transaction;
923
- const chainIdOrV = isHex(chainIdOrV_) && chainIdOrV_ !== "0x" ? hexToBigInt(chainIdOrV_) : 0n;
924
- if (s === "0x" && r === "0x") {
925
- if (chainIdOrV > 0)
926
- transaction.chainId = Number(chainIdOrV);
927
- return transaction;
928
- }
929
- const v = chainIdOrV;
930
- const chainId = Number((v - 35n) / 2n);
931
- if (chainId > 0)
932
- transaction.chainId = chainId;
933
- else if (v !== 27n && v !== 28n)
934
- throw new InvalidLegacyVError({ v });
935
- transaction.v = v;
936
- transaction.s = s;
937
- transaction.r = r;
938
- transaction.yParity = v % 2n === 0n ? 1 : 0;
939
- return transaction;
940
- }
941
- function toTransactionArray(serializedTransaction) {
942
- return fromRlp(`0x${serializedTransaction.slice(4)}`, "hex");
943
- }
944
- function parseAccessList(accessList_) {
945
- const accessList = [];
946
- for (let i = 0; i < accessList_.length; i++) {
947
- const [address, storageKeys] = accessList_[i];
948
- if (!isAddress(address, { strict: false }))
949
- throw new InvalidAddressError({ address });
950
- accessList.push({
951
- address,
952
- storageKeys: storageKeys.map((key) => isHash(key) ? key : trim(key))
953
- });
954
- }
955
- return accessList;
956
- }
957
- function parseAuthorizationList(serializedAuthorizationList) {
958
- const authorizationList = [];
959
- for (let i = 0; i < serializedAuthorizationList.length; i++) {
960
- const [chainId, address, nonce, yParity, r, s] = serializedAuthorizationList[i];
961
- authorizationList.push({
962
- address,
963
- chainId: chainId === "0x" ? 0 : hexToNumber(chainId),
964
- nonce: nonce === "0x" ? 0 : hexToNumber(nonce),
965
- ...parseEIP155Signature([yParity, r, s])
966
- });
967
- }
968
- return authorizationList;
969
- }
970
- function parseEIP155Signature(transactionArray) {
971
- const signature = transactionArray.slice(-3);
972
- const v = signature[0] === "0x" || hexToBigInt(signature[0]) === 0n ? 27n : 28n;
973
- return {
974
- r: padHex(signature[1], { size: 32 }),
975
- s: padHex(signature[2], { size: 32 }),
976
- v,
977
- yParity: v === 27n ? 0 : 1
978
- };
979
- }
980
- function parseEther(ether, unit = "wei") {
981
- return parseUnits(ether, etherUnits[unit]);
982
- }
983
- function parseGwei(ether, unit = "wei") {
984
- return parseUnits(ether, gweiUnits[unit]);
985
- }
986
- async function dropTransaction(client, { hash }) {
987
- await client.request({
988
- method: `${client.mode}_dropTransaction`,
989
- params: [hash]
990
- });
991
- }
992
- async function dumpState(client) {
993
- return client.request({
994
- method: `${client.mode}_dumpState`
995
- });
996
- }
997
- async function getAutomine(client) {
998
- if (client.mode === "ganache")
999
- return await client.request({
1000
- method: "eth_mining"
1001
- });
1002
- return await client.request({
1003
- method: `${client.mode}_getAutomine`
1004
- });
1005
- }
1006
- async function getTxpoolContent(client) {
1007
- return await client.request({
1008
- method: "txpool_content"
1009
- });
1010
- }
1011
- async function getTxpoolStatus(client) {
1012
- const { pending, queued } = await client.request({
1013
- method: "txpool_status"
1014
- });
1015
- return {
1016
- pending: hexToNumber(pending),
1017
- queued: hexToNumber(queued)
1018
- };
1019
- }
1020
- async function impersonateAccount(client, { address }) {
1021
- await client.request({
1022
- method: `${client.mode}_impersonateAccount`,
1023
- params: [address]
1024
- });
1025
- }
1026
- async function increaseTime(client, { seconds }) {
1027
- return await client.request({
1028
- method: "evm_increaseTime",
1029
- params: [numberToHex(seconds)]
1030
- });
1031
- }
1032
- async function inspectTxpool(client) {
1033
- return await client.request({
1034
- method: "txpool_inspect"
1035
- });
1036
- }
1037
- async function loadState(client, { state }) {
1038
- await client.request({
1039
- method: `${client.mode}_loadState`,
1040
- params: [state]
1041
- });
1042
- }
1043
- async function mine(client, { blocks, interval }) {
1044
- if (client.mode === "ganache")
1045
- await client.request({
1046
- method: "evm_mine",
1047
- params: [{ blocks: numberToHex(blocks) }]
1048
- });
1049
- else
1050
- await client.request({
1051
- method: `${client.mode}_mine`,
1052
- params: [numberToHex(blocks), numberToHex(interval || 0)]
1053
- });
1054
- }
1055
- async function removeBlockTimestampInterval(client) {
1056
- await client.request({
1057
- method: `${client.mode}_removeBlockTimestampInterval`
1058
- });
1059
- }
1060
- async function reset(client, { blockNumber, jsonRpcUrl } = {}) {
1061
- await client.request({
1062
- method: `${client.mode}_reset`,
1063
- params: [{ forking: { blockNumber: Number(blockNumber), jsonRpcUrl } }]
1064
- });
1065
- }
1066
- async function revert(client, { id }) {
1067
- await client.request({
1068
- method: "evm_revert",
1069
- params: [id]
1070
- });
1071
- }
1072
- async function sendUnsignedTransaction(client, args) {
1073
- var _a, _b, _c;
1074
- const { accessList, data, from, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, ...rest } = args;
1075
- const chainFormat = (_c = (_b = (_a = client.chain) == null ? void 0 : _a.formatters) == null ? void 0 : _b.transactionRequest) == null ? void 0 : _c.format;
1076
- const format = chainFormat || formatTransactionRequest;
1077
- const request = format({
1078
- // Pick out extra data that might exist on the chain's transaction request type.
1079
- ...extract(rest, { format: chainFormat }),
1080
- accessList,
1081
- data,
1082
- from,
1083
- gas,
1084
- gasPrice,
1085
- maxFeePerGas,
1086
- maxPriorityFeePerGas,
1087
- nonce,
1088
- to,
1089
- value
1090
- });
1091
- const hash = await client.request({
1092
- method: "eth_sendUnsignedTransaction",
1093
- params: [request]
1094
- });
1095
- return hash;
1096
- }
1097
- async function setAutomine(client, enabled) {
1098
- if (client.mode === "ganache") {
1099
- if (enabled)
1100
- await client.request({ method: "miner_start" });
1101
- else
1102
- await client.request({ method: "miner_stop" });
1103
- } else
1104
- await client.request({
1105
- method: "evm_setAutomine",
1106
- params: [enabled]
1107
- });
1108
- }
1109
- async function setBalance(client, { address, value }) {
1110
- if (client.mode === "ganache")
1111
- await client.request({
1112
- method: "evm_setAccountBalance",
1113
- params: [address, numberToHex(value)]
1114
- });
1115
- else
1116
- await client.request({
1117
- method: `${client.mode}_setBalance`,
1118
- params: [address, numberToHex(value)]
1119
- });
1120
- }
1121
- async function setBlockGasLimit(client, { gasLimit }) {
1122
- await client.request({
1123
- method: "evm_setBlockGasLimit",
1124
- params: [numberToHex(gasLimit)]
1125
- });
1126
- }
1127
- async function setBlockTimestampInterval(client, { interval }) {
1128
- const interval_ = (() => {
1129
- if (client.mode === "hardhat")
1130
- return interval * 1e3;
1131
- return interval;
1132
- })();
1133
- await client.request({
1134
- method: `${client.mode}_setBlockTimestampInterval`,
1135
- params: [interval_]
1136
- });
1137
- }
1138
- async function setCode(client, { address, bytecode }) {
1139
- if (client.mode === "ganache")
1140
- await client.request({
1141
- method: "evm_setAccountCode",
1142
- params: [address, bytecode]
1143
- });
1144
- else
1145
- await client.request({
1146
- method: `${client.mode}_setCode`,
1147
- params: [address, bytecode]
1148
- });
1149
- }
1150
- async function setCoinbase(client, { address }) {
1151
- await client.request({
1152
- method: `${client.mode}_setCoinbase`,
1153
- params: [address]
1154
- });
1155
- }
1156
- async function setIntervalMining(client, { interval }) {
1157
- const interval_ = (() => {
1158
- if (client.mode === "hardhat")
1159
- return interval * 1e3;
1160
- return interval;
1161
- })();
1162
- await client.request({
1163
- method: "evm_setIntervalMining",
1164
- params: [interval_]
1165
- });
1166
- }
1167
- async function setLoggingEnabled(client, enabled) {
1168
- await client.request({
1169
- method: `${client.mode}_setLoggingEnabled`,
1170
- params: [enabled]
1171
- });
1172
- }
1173
- async function setMinGasPrice(client, { gasPrice }) {
1174
- await client.request({
1175
- method: `${client.mode}_setMinGasPrice`,
1176
- params: [numberToHex(gasPrice)]
1177
- });
1178
- }
1179
- async function setNextBlockBaseFeePerGas(client, { baseFeePerGas }) {
1180
- await client.request({
1181
- method: `${client.mode}_setNextBlockBaseFeePerGas`,
1182
- params: [numberToHex(baseFeePerGas)]
1183
- });
1184
- }
1185
- async function setNextBlockTimestamp(client, { timestamp }) {
1186
- await client.request({
1187
- method: "evm_setNextBlockTimestamp",
1188
- params: [numberToHex(timestamp)]
1189
- });
1190
- }
1191
- async function setNonce(client, { address, nonce }) {
1192
- await client.request({
1193
- method: `${client.mode}_setNonce`,
1194
- params: [address, numberToHex(nonce)]
1195
- });
1196
- }
1197
- async function setRpcUrl(client, jsonRpcUrl) {
1198
- await client.request({
1199
- method: `${client.mode}_setRpcUrl`,
1200
- params: [jsonRpcUrl]
1201
- });
1202
- }
1203
- async function setStorageAt(client, { address, index, value }) {
1204
- await client.request({
1205
- method: `${client.mode}_setStorageAt`,
1206
- params: [
1207
- address,
1208
- typeof index === "number" ? numberToHex(index) : index,
1209
- value
1210
- ]
1211
- });
1212
- }
1213
- async function snapshot(client) {
1214
- return await client.request({
1215
- method: "evm_snapshot"
1216
- });
1217
- }
1218
- async function stopImpersonatingAccount(client, { address }) {
1219
- await client.request({
1220
- method: `${client.mode}_stopImpersonatingAccount`,
1221
- params: [address]
1222
- });
1223
- }
1224
- function testActions({ mode }) {
1225
- return (client_) => {
1226
- const client = client_.extend(() => ({
1227
- mode
1228
- }));
1229
- return {
1230
- dropTransaction: (args) => dropTransaction(client, args),
1231
- dumpState: () => dumpState(client),
1232
- getAutomine: () => getAutomine(client),
1233
- getTxpoolContent: () => getTxpoolContent(client),
1234
- getTxpoolStatus: () => getTxpoolStatus(client),
1235
- impersonateAccount: (args) => impersonateAccount(client, args),
1236
- increaseTime: (args) => increaseTime(client, args),
1237
- inspectTxpool: () => inspectTxpool(client),
1238
- loadState: (args) => loadState(client, args),
1239
- mine: (args) => mine(client, args),
1240
- removeBlockTimestampInterval: () => removeBlockTimestampInterval(client),
1241
- reset: (args) => reset(client, args),
1242
- revert: (args) => revert(client, args),
1243
- sendUnsignedTransaction: (args) => sendUnsignedTransaction(client, args),
1244
- setAutomine: (args) => setAutomine(client, args),
1245
- setBalance: (args) => setBalance(client, args),
1246
- setBlockGasLimit: (args) => setBlockGasLimit(client, args),
1247
- setBlockTimestampInterval: (args) => setBlockTimestampInterval(client, args),
1248
- setCode: (args) => setCode(client, args),
1249
- setCoinbase: (args) => setCoinbase(client, args),
1250
- setIntervalMining: (args) => setIntervalMining(client, args),
1251
- setLoggingEnabled: (args) => setLoggingEnabled(client, args),
1252
- setMinGasPrice: (args) => setMinGasPrice(client, args),
1253
- setNextBlockBaseFeePerGas: (args) => setNextBlockBaseFeePerGas(client, args),
1254
- setNextBlockTimestamp: (args) => setNextBlockTimestamp(client, args),
1255
- setNonce: (args) => setNonce(client, args),
1256
- setRpcUrl: (args) => setRpcUrl(client, args),
1257
- setStorageAt: (args) => setStorageAt(client, args),
1258
- snapshot: () => snapshot(client),
1259
- stopImpersonatingAccount: (args) => stopImpersonatingAccount(client, args)
1260
- };
1261
- };
1262
- }
1263
- function createTestClient(parameters) {
1264
- const { key = "test", name = "Test Client", mode } = parameters;
1265
- const client = createClient({
1266
- ...parameters,
1267
- key,
1268
- name,
1269
- type: "testClient"
1270
- });
1271
- return client.extend((config) => ({
1272
- mode,
1273
- ...testActions({ mode })(config)
1274
- }));
1275
- }
1276
- async function addChain(client, { chain }) {
1277
- const { id, name, nativeCurrency, rpcUrls, blockExplorers } = chain;
1278
- await client.request({
1279
- method: "wallet_addEthereumChain",
1280
- params: [
1281
- {
1282
- chainId: numberToHex(id),
1283
- chainName: name,
1284
- nativeCurrency,
1285
- rpcUrls: rpcUrls.default.http,
1286
- blockExplorerUrls: blockExplorers ? Object.values(blockExplorers).map(({ url }) => url) : void 0
1287
- }
1288
- ]
1289
- }, { dedupe: true, retryCount: 0 });
1290
- }
1291
- function deployContract(walletClient, parameters) {
1292
- const { abi, args, bytecode, ...request } = parameters;
1293
- const calldata = encodeDeployData({ abi, args, bytecode });
1294
- return sendTransaction(walletClient, {
1295
- ...request,
1296
- ...request.authorizationList ? { to: null } : {},
1297
- data: calldata
1298
- });
1299
- }
1300
- async function getAddresses(client) {
1301
- var _a;
1302
- if (((_a = client.account) == null ? void 0 : _a.type) === "local")
1303
- return [client.account.address];
1304
- const addresses = await client.request({ method: "eth_accounts" }, { dedupe: true });
1305
- return addresses.map((address) => checksumAddress(address));
1306
- }
1307
- async function getCapabilities(client, parameters = {}) {
1308
- const { account = client.account, chainId } = parameters;
1309
- const account_ = account ? parseAccount(account) : void 0;
1310
- const params = chainId ? [account_ == null ? void 0 : account_.address, [numberToHex(chainId)]] : [account_ == null ? void 0 : account_.address];
1311
- const capabilities_raw = await client.request({
1312
- method: "wallet_getCapabilities",
1313
- params
1314
- });
1315
- const capabilities = {};
1316
- for (const [chainId2, capabilities_] of Object.entries(capabilities_raw)) {
1317
- capabilities[Number(chainId2)] = {};
1318
- for (let [key, value] of Object.entries(capabilities_)) {
1319
- if (key === "addSubAccount")
1320
- key = "unstable_addSubAccount";
1321
- capabilities[Number(chainId2)][key] = value;
1322
- }
1323
- }
1324
- return typeof chainId === "number" ? capabilities[chainId] : capabilities;
1325
- }
1326
- async function getPermissions(client) {
1327
- const permissions = await client.request({ method: "wallet_getPermissions" }, { dedupe: true });
1328
- return permissions;
1329
- }
1330
- async function requestAddresses(client) {
1331
- const addresses = await client.request({ method: "eth_requestAccounts" }, { dedupe: true, retryCount: 0 });
1332
- return addresses.map((address) => getAddress(address));
1333
- }
1334
- async function requestPermissions(client, permissions) {
1335
- return client.request({
1336
- method: "wallet_requestPermissions",
1337
- params: [permissions]
1338
- }, { retryCount: 0 });
1339
- }
1340
- async function showCallsStatus(client, parameters) {
1341
- const { id } = parameters;
1342
- await client.request({
1343
- method: "wallet_showCallsStatus",
1344
- params: [id]
1345
- });
1346
- return;
1347
- }
1348
- async function signAuthorization(client, parameters) {
1349
- const { account: account_ = client.account } = parameters;
1350
- if (!account_)
1351
- throw new AccountNotFoundError({
1352
- docsPath: "/docs/eip7702/signAuthorization"
1353
- });
1354
- const account = parseAccount(account_);
1355
- if (!account.signAuthorization)
1356
- throw new AccountTypeNotSupportedError({
1357
- docsPath: "/docs/eip7702/signAuthorization",
1358
- metaMessages: [
1359
- "The `signAuthorization` Action does not support JSON-RPC Accounts."
1360
- ],
1361
- type: account.type
1362
- });
1363
- const authorization = await prepareAuthorization(client, parameters);
1364
- return account.signAuthorization(authorization);
1365
- }
1366
- async function signTransaction(client, parameters) {
1367
- var _a, _b, _c, _d;
1368
- const { account: account_ = client.account, chain = client.chain, ...transaction } = parameters;
1369
- if (!account_)
1370
- throw new AccountNotFoundError({
1371
- docsPath: "/docs/actions/wallet/signTransaction"
1372
- });
1373
- const account = parseAccount(account_);
1374
- assertRequest({
1375
- account,
1376
- ...parameters
1377
- });
1378
- const chainId = await getAction(client, getChainId, "getChainId")({});
1379
- if (chain !== null)
1380
- assertCurrentChain({
1381
- currentChainId: chainId,
1382
- chain
1383
- });
1384
- const formatters = (chain == null ? void 0 : chain.formatters) || ((_a = client.chain) == null ? void 0 : _a.formatters);
1385
- const format = ((_b = formatters == null ? void 0 : formatters.transactionRequest) == null ? void 0 : _b.format) || formatTransactionRequest;
1386
- if (account.signTransaction)
1387
- return account.signTransaction({
1388
- ...transaction,
1389
- chainId
1390
- }, { serializer: (_d = (_c = client.chain) == null ? void 0 : _c.serializers) == null ? void 0 : _d.transaction });
1391
- return await client.request({
1392
- method: "eth_signTransaction",
1393
- params: [
1394
- {
1395
- ...format(transaction),
1396
- chainId: numberToHex(chainId),
1397
- from: account.address
1398
- }
1399
- ]
1400
- }, { retryCount: 0 });
1401
- }
1402
- async function signTypedData(client, parameters) {
1403
- const { account: account_ = client.account, domain, message, primaryType } = parameters;
1404
- if (!account_)
1405
- throw new AccountNotFoundError({
1406
- docsPath: "/docs/actions/wallet/signTypedData"
1407
- });
1408
- const account = parseAccount(account_);
1409
- const types = {
1410
- EIP712Domain: getTypesForEIP712Domain({ domain }),
1411
- ...parameters.types
1412
- };
1413
- validateTypedData({ domain, message, primaryType, types });
1414
- if (account.signTypedData)
1415
- return account.signTypedData({ domain, message, primaryType, types });
1416
- const typedData = serializeTypedData({ domain, message, primaryType, types });
1417
- return client.request({
1418
- method: "eth_signTypedData_v4",
1419
- params: [account.address, typedData]
1420
- }, { retryCount: 0 });
1421
- }
1422
- async function switchChain(client, { id }) {
1423
- await client.request({
1424
- method: "wallet_switchEthereumChain",
1425
- params: [
1426
- {
1427
- chainId: numberToHex(id)
1428
- }
1429
- ]
1430
- }, { retryCount: 0 });
1431
- }
1432
- async function watchAsset(client, params) {
1433
- const added = await client.request({
1434
- method: "wallet_watchAsset",
1435
- params
1436
- }, { retryCount: 0 });
1437
- return added;
1438
- }
1439
- function walletActions(client) {
1440
- return {
1441
- addChain: (args) => addChain(client, args),
1442
- deployContract: (args) => deployContract(client, args),
1443
- getAddresses: () => getAddresses(client),
1444
- getCallsStatus: (args) => getCallsStatus(client, args),
1445
- getCapabilities: (args) => getCapabilities(client, args),
1446
- getChainId: () => getChainId(client),
1447
- getPermissions: () => getPermissions(client),
1448
- prepareAuthorization: (args) => prepareAuthorization(client, args),
1449
- prepareTransactionRequest: (args) => prepareTransactionRequest(client, args),
1450
- requestAddresses: () => requestAddresses(client),
1451
- requestPermissions: (args) => requestPermissions(client, args),
1452
- sendCalls: (args) => sendCalls(client, args),
1453
- sendRawTransaction: (args) => sendRawTransaction(client, args),
1454
- sendTransaction: (args) => sendTransaction(client, args),
1455
- showCallsStatus: (args) => showCallsStatus(client, args),
1456
- signAuthorization: (args) => signAuthorization(client, args),
1457
- signMessage: (args) => signMessage(client, args),
1458
- signTransaction: (args) => signTransaction(client, args),
1459
- signTypedData: (args) => signTypedData(client, args),
1460
- switchChain: (args) => switchChain(client, args),
1461
- waitForCallsStatus: (args) => waitForCallsStatus(client, args),
1462
- watchAsset: (args) => watchAsset(client, args),
1463
- writeContract: (args) => writeContract(client, args)
1464
- };
1465
- }
1466
- function createWalletClient(parameters) {
1467
- const { key = "wallet", name = "Wallet Client", transport } = parameters;
1468
- const client = createClient({
1469
- ...parameters,
1470
- key,
1471
- name,
1472
- transport,
1473
- type: "walletClient"
1474
- });
1475
- return client.extend(walletActions);
1476
- }
1477
- function fallback(transports_, config = {}) {
1478
- const { key = "fallback", name = "Fallback", rank = false, shouldThrow: shouldThrow_ = shouldThrow, retryCount, retryDelay } = config;
1479
- return (({ chain, pollingInterval = 4e3, timeout, ...rest }) => {
1480
- let transports = transports_;
1481
- let onResponse = () => {
1482
- };
1483
- const transport = createTransport({
1484
- key,
1485
- name,
1486
- async request({ method, params }) {
1487
- let includes;
1488
- const fetch = async (i = 0) => {
1489
- const transport2 = transports[i]({
1490
- ...rest,
1491
- chain,
1492
- retryCount: 0,
1493
- timeout
1494
- });
1495
- try {
1496
- const response = await transport2.request({
1497
- method,
1498
- params
1499
- });
1500
- onResponse({
1501
- method,
1502
- params,
1503
- response,
1504
- transport: transport2,
1505
- status: "success"
1506
- });
1507
- return response;
1508
- } catch (err) {
1509
- onResponse({
1510
- error: err,
1511
- method,
1512
- params,
1513
- transport: transport2,
1514
- status: "error"
1515
- });
1516
- if (shouldThrow_(err))
1517
- throw err;
1518
- if (i === transports.length - 1)
1519
- throw err;
1520
- includes ?? (includes = transports.slice(i + 1).some((transport3) => {
1521
- const { include, exclude } = transport3({ chain }).config.methods || {};
1522
- if (include)
1523
- return include.includes(method);
1524
- if (exclude)
1525
- return !exclude.includes(method);
1526
- return true;
1527
- }));
1528
- if (!includes)
1529
- throw err;
1530
- return fetch(i + 1);
1531
- }
1532
- };
1533
- return fetch();
1534
- },
1535
- retryCount,
1536
- retryDelay,
1537
- type: "fallback"
1538
- }, {
1539
- onResponse: (fn) => onResponse = fn,
1540
- transports: transports.map((fn) => fn({ chain, retryCount: 0 }))
1541
- });
1542
- if (rank) {
1543
- const rankOptions = typeof rank === "object" ? rank : {};
1544
- rankTransports({
1545
- chain,
1546
- interval: rankOptions.interval ?? pollingInterval,
1547
- onTransports: (transports_2) => transports = transports_2,
1548
- ping: rankOptions.ping,
1549
- sampleCount: rankOptions.sampleCount,
1550
- timeout: rankOptions.timeout,
1551
- transports,
1552
- weights: rankOptions.weights
1553
- });
1554
- }
1555
- return transport;
1556
- });
1557
- }
1558
- function shouldThrow(error) {
1559
- if ("code" in error && typeof error.code === "number") {
1560
- if (error.code === TransactionRejectedRpcError.code || error.code === UserRejectedRequestError.code || ExecutionRevertedError.nodeMessage.test(error.message) || error.code === 5e3)
1561
- return true;
1562
- }
1563
- return false;
1564
- }
1565
- function rankTransports({ chain, interval = 4e3, onTransports, ping, sampleCount = 10, timeout = 1e3, transports, weights = {} }) {
1566
- const { stability: stabilityWeight = 0.7, latency: latencyWeight = 0.3 } = weights;
1567
- const samples = [];
1568
- const rankTransports_ = async () => {
1569
- const sample = await Promise.all(transports.map(async (transport) => {
1570
- const transport_ = transport({ chain, retryCount: 0, timeout });
1571
- const start = Date.now();
1572
- let end;
1573
- let success;
1574
- try {
1575
- await (ping ? ping({ transport: transport_ }) : transport_.request({ method: "net_listening" }));
1576
- success = 1;
1577
- } catch {
1578
- success = 0;
1579
- } finally {
1580
- end = Date.now();
1581
- }
1582
- const latency = end - start;
1583
- return { latency, success };
1584
- }));
1585
- samples.push(sample);
1586
- if (samples.length > sampleCount)
1587
- samples.shift();
1588
- const maxLatency = Math.max(...samples.map((sample2) => Math.max(...sample2.map(({ latency }) => latency))));
1589
- const scores = transports.map((_, i) => {
1590
- const latencies = samples.map((sample2) => sample2[i].latency);
1591
- const meanLatency = latencies.reduce((acc, latency) => acc + latency, 0) / latencies.length;
1592
- const latencyScore = 1 - meanLatency / maxLatency;
1593
- const successes = samples.map((sample2) => sample2[i].success);
1594
- const stabilityScore = successes.reduce((acc, success) => acc + success, 0) / successes.length;
1595
- if (stabilityScore === 0)
1596
- return [0, i];
1597
- return [
1598
- latencyWeight * latencyScore + stabilityWeight * stabilityScore,
1599
- i
1600
- ];
1601
- }).sort((a, b) => b[0] - a[0]);
1602
- onTransports(scores.map(([, i]) => transports[i]));
1603
- await wait(interval);
1604
- rankTransports_();
1605
- };
1606
- rankTransports_();
1607
- }
1608
- function webSocket(url, config = {}) {
1609
- const { keepAlive, key = "webSocket", methods, name = "WebSocket JSON-RPC", reconnect, retryDelay } = config;
1610
- return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
1611
- var _a;
1612
- const retryCount = config.retryCount ?? retryCount_;
1613
- const timeout = timeout_ ?? config.timeout ?? 1e4;
1614
- const url_ = url || ((_a = chain == null ? void 0 : chain.rpcUrls.default.webSocket) == null ? void 0 : _a[0]);
1615
- const wsRpcClientOpts = { keepAlive, reconnect };
1616
- if (!url_)
1617
- throw new UrlRequiredError();
1618
- return createTransport({
1619
- key,
1620
- methods,
1621
- name,
1622
- async request({ method, params }) {
1623
- const body = { method, params };
1624
- const rpcClient = await getWebSocketRpcClient(url_, wsRpcClientOpts);
1625
- const { error, result } = await rpcClient.requestAsync({
1626
- body,
1627
- timeout
1628
- });
1629
- if (error)
1630
- throw new RpcRequestError({
1631
- body,
1632
- error,
1633
- url: url_
1634
- });
1635
- return result;
1636
- },
1637
- retryCount,
1638
- retryDelay,
1639
- timeout,
1640
- type: "webSocket"
1641
- }, {
1642
- getSocket() {
1643
- return getSocket(url_);
1644
- },
1645
- getRpcClient() {
1646
- return getWebSocketRpcClient(url_, wsRpcClientOpts);
1647
- },
1648
- async subscribe({ params, onData, onError }) {
1649
- const rpcClient = await getWebSocketRpcClient(url_, wsRpcClientOpts);
1650
- const { result: subscriptionId } = await new Promise((resolve, reject) => rpcClient.request({
1651
- body: {
1652
- method: "eth_subscribe",
1653
- params
1654
- },
1655
- onError(error) {
1656
- reject(error);
1657
- onError == null ? void 0 : onError(error);
1658
- return;
1659
- },
1660
- onResponse(response) {
1661
- if (response.error) {
1662
- reject(response.error);
1663
- onError == null ? void 0 : onError(response.error);
1664
- return;
1665
- }
1666
- if (typeof response.id === "number") {
1667
- resolve(response);
1668
- return;
1669
- }
1670
- if (response.method !== "eth_subscription")
1671
- return;
1672
- onData(response.params);
1673
- }
1674
- }));
1675
- return {
1676
- subscriptionId,
1677
- async unsubscribe() {
1678
- return new Promise((resolve) => rpcClient.request({
1679
- body: {
1680
- method: "eth_unsubscribe",
1681
- params: [subscriptionId]
1682
- },
1683
- onResponse: resolve
1684
- }));
1685
- }
1686
- };
1687
- }
1688
- });
1689
- };
1690
- }
1691
- class ProviderRpcError extends Error {
1692
- constructor(code, message) {
1693
- super(message);
1694
- Object.defineProperty(this, "code", {
1695
- enumerable: true,
1696
- configurable: true,
1697
- writable: true,
1698
- value: void 0
1699
- });
1700
- Object.defineProperty(this, "details", {
1701
- enumerable: true,
1702
- configurable: true,
1703
- writable: true,
1704
- value: void 0
1705
- });
1706
- this.code = code;
1707
- this.details = message;
1708
- }
1709
- }
1710
- const docsPath = "/docs/contract/decodeDeployData";
1711
- function decodeDeployData(parameters) {
1712
- const { abi, bytecode, data } = parameters;
1713
- if (data === bytecode)
1714
- return { bytecode };
1715
- const description = abi.find((x) => "type" in x && x.type === "constructor");
1716
- if (!description)
1717
- throw new AbiConstructorNotFoundError({ docsPath });
1718
- if (!("inputs" in description))
1719
- throw new AbiConstructorParamsNotFoundError({ docsPath });
1720
- if (!description.inputs || description.inputs.length === 0)
1721
- throw new AbiConstructorParamsNotFoundError({ docsPath });
1722
- const args = decodeAbiParameters(description.inputs, `0x${data.replace(bytecode, "")}`);
1723
- return { args, bytecode };
1724
- }
1725
- function fromBlobs(parameters) {
1726
- const to = parameters.to ?? (typeof parameters.blobs[0] === "string" ? "hex" : "bytes");
1727
- const blobs = typeof parameters.blobs[0] === "string" ? parameters.blobs.map((x) => hexToBytes(x)) : parameters.blobs;
1728
- const length = blobs.reduce((length2, blob) => length2 + blob.length, 0);
1729
- const data = createCursor(new Uint8Array(length));
1730
- let active = true;
1731
- for (const blob of blobs) {
1732
- const cursor = createCursor(blob);
1733
- while (active && cursor.position < blob.length) {
1734
- cursor.incrementPosition(1);
1735
- let consume = 31;
1736
- if (blob.length - cursor.position < 31)
1737
- consume = blob.length - cursor.position;
1738
- for (const _ in Array.from({ length: consume })) {
1739
- const byte = cursor.readByte();
1740
- const isTerminator = byte === 128 && !cursor.inspectBytes(cursor.remaining).includes(128);
1741
- if (isTerminator) {
1742
- active = false;
1743
- break;
1744
- }
1745
- data.pushByte(byte);
1746
- }
1747
- }
1748
- }
1749
- const trimmedData = data.bytes.slice(0, data.position);
1750
- return to === "hex" ? bytesToHex(trimmedData) : trimmedData;
1751
- }
1752
- function sidecarsToVersionedHashes(parameters) {
1753
- const { sidecars, version } = parameters;
1754
- const to = parameters.to ?? (typeof sidecars[0].blob === "string" ? "hex" : "bytes");
1755
- const hashes = [];
1756
- for (const { commitment } of sidecars) {
1757
- hashes.push(commitmentToVersionedHash({
1758
- commitment,
1759
- to,
1760
- version
1761
- }));
1762
- }
1763
- return hashes;
1764
- }
1765
- const SLIP44_MSB = 2147483648;
1766
- function toCoinType(chainId) {
1767
- if (chainId === 1)
1768
- return 60n;
1769
- if (chainId >= SLIP44_MSB || chainId < 0)
1770
- throw new EnsInvalidChainIdError({ chainId });
1771
- return BigInt((2147483648 | chainId) >>> 0);
1772
- }
1773
- function defineKzg({ blobToKzgCommitment, computeBlobKzgProof }) {
1774
- return {
1775
- blobToKzgCommitment,
1776
- computeBlobKzgProof
1777
- };
1778
- }
1779
- function setupKzg(parameters, path) {
1780
- try {
1781
- parameters.loadTrustedSetup(path);
1782
- } catch (e) {
1783
- const error = e;
1784
- if (!error.message.includes("trusted setup is already loaded"))
1785
- throw error;
1786
- }
1787
- return defineKzg(parameters);
1788
- }
1789
- function compactSignatureToSignature({ r, yParityAndS }) {
1790
- const yParityAndS_bytes = hexToBytes(yParityAndS);
1791
- const yParity = yParityAndS_bytes[0] & 128 ? 1 : 0;
1792
- const s = yParityAndS_bytes;
1793
- if (yParity === 1)
1794
- s[0] &= 127;
1795
- return { r, s: bytesToHex(s), yParity };
1796
- }
1797
- function parseCompactSignature(signatureHex) {
1798
- const { r, s } = secp256k1.Signature.fromCompact(signatureHex.slice(2, 130));
1799
- return {
1800
- r: numberToHex(r, { size: 32 }),
1801
- yParityAndS: numberToHex(s, { size: 32 })
1802
- };
1803
- }
1804
- async function recoverTransactionAddress(parameters) {
1805
- const { serializedTransaction, signature: signature_ } = parameters;
1806
- const transaction = parseTransaction(serializedTransaction);
1807
- const signature = signature_ ?? {
1808
- r: transaction.r,
1809
- s: transaction.s,
1810
- v: transaction.v,
1811
- yParity: transaction.yParity
1812
- };
1813
- const serialized = serializeTransaction({
1814
- ...transaction,
1815
- r: void 0,
1816
- s: void 0,
1817
- v: void 0,
1818
- yParity: void 0,
1819
- sidecars: void 0
1820
- });
1821
- return await recoverAddress({
1822
- hash: keccak256(serialized),
1823
- signature
1824
- });
1825
- }
1826
- function serializeCompactSignature({ r, yParityAndS }) {
1827
- return `0x${new secp256k1.Signature(hexToBigInt(r), hexToBigInt(yParityAndS)).toCompactHex()}`;
1828
- }
1829
- function signatureToCompactSignature(signature) {
1830
- const { r, s, v, yParity } = signature;
1831
- const yParity_ = Number(yParity ?? v - 27n);
1832
- let yParityAndS = s;
1833
- if (yParity_ === 1) {
1834
- const bytes = hexToBytes(s);
1835
- bytes[0] |= 128;
1836
- yParityAndS = bytesToHex(bytes);
1837
- }
1838
- return { r, yParityAndS };
1839
- }
1840
- const _esm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1841
- __proto__: null,
1842
- AbiConstructorNotFoundError,
1843
- AbiConstructorParamsNotFoundError,
1844
- AbiDecodingDataSizeInvalidError,
1845
- AbiDecodingDataSizeTooSmallError,
1846
- AbiDecodingZeroDataError,
1847
- AbiEncodingArrayLengthMismatchError,
1848
- AbiEncodingBytesSizeMismatchError,
1849
- AbiEncodingLengthMismatchError,
1850
- AbiErrorInputsNotFoundError,
1851
- AbiErrorNotFoundError,
1852
- AbiErrorSignatureNotFoundError,
1853
- AbiEventNotFoundError,
1854
- AbiEventSignatureEmptyTopicsError,
1855
- AbiEventSignatureNotFoundError,
1856
- AbiFunctionNotFoundError,
1857
- AbiFunctionOutputsNotFoundError,
1858
- AbiFunctionSignatureNotFoundError,
1859
- AccountStateConflictError,
1860
- AtomicReadyWalletRejectedUpgradeError,
1861
- AtomicityNotSupportedError,
1862
- BaseError,
1863
- BaseFeeScalarError,
1864
- BlockNotFoundError,
1865
- BundleFailedError,
1866
- BundleTooLargeError,
1867
- BytesSizeMismatchError,
1868
- CallExecutionError,
1869
- ChainDisconnectedError,
1870
- ChainDoesNotSupportContract,
1871
- ChainMismatchError,
1872
- ChainNotFoundError,
1873
- CircularReferenceError,
1874
- ClientChainNotConfiguredError,
1875
- ContractFunctionExecutionError,
1876
- ContractFunctionRevertedError,
1877
- ContractFunctionZeroDataError,
1878
- CounterfactualDeploymentFailedError,
1879
- DecodeLogDataMismatch,
1880
- DecodeLogTopicsMismatch,
1881
- DuplicateIdError,
1882
- EIP1193ProviderRpcError: ProviderRpcError,
1883
- Eip1559FeesNotSupportedError,
1884
- EnsAvatarInvalidNftUriError,
1885
- EnsAvatarUnsupportedNamespaceError,
1886
- EnsAvatarUriResolutionError,
1887
- EnsInvalidChainIdError,
1888
- EstimateGasExecutionError,
1889
- ExecutionRevertedError,
1890
- FeeCapTooHighError,
1891
- FeeCapTooLowError,
1892
- FeeConflictError,
1893
- FilterTypeNotSupportedError,
1894
- HttpRequestError,
1895
- InsufficientFundsError,
1896
- IntegerOutOfRangeError,
1897
- InternalRpcError,
1898
- IntrinsicGasTooHighError,
1899
- IntrinsicGasTooLowError,
1900
- InvalidAbiDecodingTypeError,
1901
- InvalidAbiEncodingTypeError,
1902
- InvalidAbiItemError,
1903
- InvalidAbiParameterError,
1904
- InvalidAbiParametersError,
1905
- InvalidAbiTypeParameterError,
1906
- InvalidAddressError,
1907
- InvalidArrayError,
1908
- InvalidBytesBooleanError,
1909
- InvalidChainIdError,
1910
- InvalidDecimalNumberError,
1911
- InvalidDefinitionTypeError,
1912
- InvalidDomainError,
1913
- InvalidFunctionModifierError,
1914
- InvalidHexBooleanError,
1915
- InvalidHexValueError,
1916
- InvalidInputRpcError,
1917
- InvalidLegacyVError,
1918
- InvalidModifierError,
1919
- InvalidParameterError,
1920
- InvalidParamsRpcError,
1921
- InvalidParenthesisError,
1922
- InvalidPrimaryTypeError,
1923
- InvalidRequestRpcError,
1924
- InvalidSerializableTransactionError,
1925
- InvalidSerializedTransactionError,
1926
- InvalidSerializedTransactionTypeError,
1927
- InvalidSignatureError,
1928
- InvalidStorageKeySizeError,
1929
- InvalidStructSignatureError,
1930
- InvalidStructTypeError,
1931
- JsonRpcVersionUnsupportedError,
1932
- LimitExceededRpcError,
1933
- MaxFeePerGasTooLowError,
1934
- MethodNotFoundRpcError,
1935
- MethodNotSupportedRpcError,
1936
- NonceMaxValueError,
1937
- NonceTooHighError,
1938
- NonceTooLowError,
1939
- ParseRpcError,
1940
- ProviderDisconnectedError,
1941
- ProviderRpcError: ProviderRpcError$1,
1942
- RawContractError,
1943
- ResourceNotFoundRpcError,
1944
- ResourceUnavailableRpcError,
1945
- RpcError,
1946
- RpcRequestError,
1947
- SizeExceedsPaddingSizeError,
1948
- SizeOverflowError,
1949
- SliceOffsetOutOfBoundsError,
1950
- SocketClosedError,
1951
- SolidityProtectedKeywordError,
1952
- StateAssignmentConflictError,
1953
- SwitchChainError,
1954
- TimeoutError,
1955
- TipAboveFeeCapError,
1956
- TransactionExecutionError,
1957
- TransactionNotFoundError,
1958
- TransactionReceiptNotFoundError,
1959
- TransactionRejectedRpcError,
1960
- TransactionTypeNotSupportedError,
1961
- UnauthorizedProviderError,
1962
- UnknownBundleIdError,
1963
- UnknownNodeError,
1964
- UnknownRpcError,
1965
- UnknownSignatureError,
1966
- UnknownTypeError,
1967
- UnsupportedChainIdError,
1968
- UnsupportedNonOptionalCapabilityError,
1969
- UnsupportedPackedAbiType,
1970
- UnsupportedProviderMethodError,
1971
- UrlRequiredError,
1972
- UserRejectedRequestError,
1973
- WaitForCallsStatusTimeoutError,
1974
- WaitForTransactionReceiptTimeoutError,
1975
- WebSocketRequestError,
1976
- assertCurrentChain,
1977
- assertRequest,
1978
- assertTransactionEIP1559,
1979
- assertTransactionEIP2930,
1980
- assertTransactionLegacy,
1981
- blobsToCommitments,
1982
- blobsToProofs,
1983
- boolToBytes,
1984
- boolToHex,
1985
- bytesToBigInt,
1986
- bytesToBool,
1987
- bytesToHex,
1988
- bytesToNumber,
1989
- bytesToRlp,
1990
- bytesToString,
1991
- ccipFetch: ccipRequest,
1992
- ccipRequest,
1993
- checksumAddress,
1994
- commitmentToVersionedHash,
1995
- commitmentsToVersionedHashes,
1996
- compactSignatureToHex: serializeCompactSignature,
1997
- compactSignatureToSignature,
1998
- concat,
1999
- concatBytes,
2000
- concatHex,
2001
- createClient,
2002
- createNonceManager,
2003
- createPublicClient,
2004
- createTestClient,
2005
- createTransport,
2006
- createWalletClient,
2007
- custom,
2008
- decodeAbiParameters,
2009
- decodeDeployData,
2010
- decodeErrorResult,
2011
- decodeEventLog,
2012
- decodeFunctionData,
2013
- decodeFunctionResult,
2014
- defineBlock,
2015
- defineChain,
2016
- defineKzg,
2017
- defineTransaction,
2018
- defineTransactionReceipt,
2019
- defineTransactionRequest,
2020
- deploylessCallViaBytecodeBytecode,
2021
- deploylessCallViaFactoryBytecode,
2022
- domainSeparator,
2023
- encodeAbiParameters,
2024
- encodeDeployData,
2025
- encodeErrorResult,
2026
- encodeEventTopics,
2027
- encodeFunctionData,
2028
- encodeFunctionResult,
2029
- encodePacked,
2030
- erc1155Abi,
2031
- erc20Abi,
2032
- erc20Abi_bytes32,
2033
- erc4626Abi,
2034
- erc6492SignatureValidatorAbi,
2035
- erc6492SignatureValidatorByteCode,
2036
- erc721Abi,
2037
- ethAddress,
2038
- etherUnits,
2039
- extractChain,
2040
- fallback,
2041
- formatBlock,
2042
- formatEther,
2043
- formatGwei,
2044
- formatLog,
2045
- formatTransaction,
2046
- formatTransactionReceipt,
2047
- formatTransactionRequest,
2048
- formatUnits,
2049
- fromBlobs,
2050
- fromBytes,
2051
- fromHex,
2052
- fromRlp,
2053
- getAbiItem,
2054
- getAddress,
2055
- getChainContractAddress,
2056
- getContract,
2057
- getContractAddress,
2058
- getContractError,
2059
- getCreate2Address,
2060
- getCreateAddress,
2061
- getEventSelector: toEventSelector,
2062
- getEventSignature: toSignature,
2063
- getFunctionSelector: toFunctionSelector,
2064
- getFunctionSignature: toSignature,
2065
- getSerializedTransactionType,
2066
- getTransactionType,
2067
- getTypesForEIP712Domain,
2068
- gweiUnits,
2069
- hashDomain,
2070
- hashMessage,
2071
- hashStruct,
2072
- hashTypedData,
2073
- hexToBigInt,
2074
- hexToBool,
2075
- hexToBytes,
2076
- hexToCompactSignature: parseCompactSignature,
2077
- hexToNumber,
2078
- hexToRlp,
2079
- hexToSignature: parseSignature$1,
2080
- hexToString,
2081
- http,
2082
- isAddress,
2083
- isAddressEqual,
2084
- isBytes,
2085
- isErc6492Signature,
2086
- isErc8010Signature,
2087
- isHash,
2088
- isHex,
2089
- keccak256,
2090
- labelhash,
2091
- maxInt104,
2092
- maxInt112,
2093
- maxInt120,
2094
- maxInt128,
2095
- maxInt136,
2096
- maxInt144,
2097
- maxInt152,
2098
- maxInt16,
2099
- maxInt160,
2100
- maxInt168,
2101
- maxInt176,
2102
- maxInt184,
2103
- maxInt192,
2104
- maxInt200,
2105
- maxInt208,
2106
- maxInt216,
2107
- maxInt224,
2108
- maxInt232,
2109
- maxInt24,
2110
- maxInt240,
2111
- maxInt248,
2112
- maxInt256,
2113
- maxInt32,
2114
- maxInt40,
2115
- maxInt48,
2116
- maxInt56,
2117
- maxInt64,
2118
- maxInt72,
2119
- maxInt8,
2120
- maxInt80,
2121
- maxInt88,
2122
- maxInt96,
2123
- maxUint104,
2124
- maxUint112,
2125
- maxUint120,
2126
- maxUint128,
2127
- maxUint136,
2128
- maxUint144,
2129
- maxUint152,
2130
- maxUint16,
2131
- maxUint160,
2132
- maxUint168,
2133
- maxUint176,
2134
- maxUint184,
2135
- maxUint192,
2136
- maxUint200,
2137
- maxUint208,
2138
- maxUint216,
2139
- maxUint224,
2140
- maxUint232,
2141
- maxUint24,
2142
- maxUint240,
2143
- maxUint248,
2144
- maxUint256,
2145
- maxUint32,
2146
- maxUint40,
2147
- maxUint48,
2148
- maxUint56,
2149
- maxUint64,
2150
- maxUint72,
2151
- maxUint8,
2152
- maxUint80,
2153
- maxUint88,
2154
- maxUint96,
2155
- minInt104,
2156
- minInt112,
2157
- minInt120,
2158
- minInt128,
2159
- minInt136,
2160
- minInt144,
2161
- minInt152,
2162
- minInt16,
2163
- minInt160,
2164
- minInt168,
2165
- minInt176,
2166
- minInt184,
2167
- minInt192,
2168
- minInt200,
2169
- minInt208,
2170
- minInt216,
2171
- minInt224,
2172
- minInt232,
2173
- minInt24,
2174
- minInt240,
2175
- minInt248,
2176
- minInt256,
2177
- minInt32,
2178
- minInt40,
2179
- minInt48,
2180
- minInt56,
2181
- minInt64,
2182
- minInt72,
2183
- minInt8,
2184
- minInt80,
2185
- minInt88,
2186
- minInt96,
2187
- multicall3Abi,
2188
- namehash,
2189
- nonceManager,
2190
- numberToBytes,
2191
- numberToHex,
2192
- offchainLookup,
2193
- offchainLookupAbiItem,
2194
- offchainLookupSignature,
2195
- pad,
2196
- padBytes,
2197
- padHex,
2198
- parseAbi,
2199
- parseAbiItem,
2200
- parseAbiParameter,
2201
- parseAbiParameters,
2202
- parseCompactSignature,
2203
- parseErc6492Signature,
2204
- parseErc8010Signature,
2205
- parseEther,
2206
- parseEventLogs,
2207
- parseGwei,
2208
- parseSignature: parseSignature$1,
2209
- parseTransaction,
2210
- parseUnits,
2211
- prepareEncodeFunctionData,
2212
- presignMessagePrefix,
2213
- publicActions,
2214
- recoverAddress,
2215
- recoverMessageAddress,
2216
- recoverPublicKey,
2217
- recoverTransactionAddress,
2218
- recoverTypedDataAddress,
2219
- ripemd160,
2220
- rpcSchema,
2221
- rpcTransactionType,
2222
- serializeAccessList,
2223
- serializeCompactSignature,
2224
- serializeErc6492Signature,
2225
- serializeErc8010Signature,
2226
- serializeSignature,
2227
- serializeTransaction,
2228
- serializeTypedData,
2229
- setErrorConfig,
2230
- setupKzg,
2231
- sha256,
2232
- shouldThrow,
2233
- sidecarsToVersionedHashes,
2234
- signatureToCompactSignature,
2235
- signatureToHex: serializeSignature,
2236
- size,
2237
- slice,
2238
- sliceBytes,
2239
- sliceHex,
2240
- stringToBytes,
2241
- stringToHex,
2242
- stringify,
2243
- testActions,
2244
- toBlobSidecars,
2245
- toBlobs,
2246
- toBytes,
2247
- toCoinType,
2248
- toEventHash: toSignatureHash,
2249
- toEventSelector,
2250
- toEventSignature: toSignature,
2251
- toFunctionHash: toSignatureHash,
2252
- toFunctionSelector,
2253
- toFunctionSignature: toSignature,
2254
- toHex,
2255
- toPrefixedMessage,
2256
- toRlp,
2257
- transactionType,
2258
- trim,
2259
- universalSignatureValidatorAbi: erc6492SignatureValidatorAbi,
2260
- universalSignatureValidatorByteCode: erc6492SignatureValidatorByteCode,
2261
- validateTypedData,
2262
- verifyHash,
2263
- verifyMessage,
2264
- verifyTypedData,
2265
- walletActions,
2266
- webSocket,
2267
- weiUnits,
2268
- withCache,
2269
- withRetry,
2270
- withTimeout,
2271
- zeroAddress,
2272
- zeroHash
2273
- }, Symbol.toStringTag, { value: "Module" }));
2274
- export {
2275
- _esm as _
2276
- };
2277
- //# sourceMappingURL=index-BTFeMb7h.js.map