@gardenfi/utils 3.1.1-beta.4 → 3.1.1-beta.6

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 (431) hide show
  1. package/dist/index10.cjs +1 -1
  2. package/dist/index10.js +4 -4
  3. package/dist/index100.cjs +2 -1
  4. package/dist/index100.js +114 -119
  5. package/dist/index101.cjs +1 -1
  6. package/dist/index101.js +14 -5
  7. package/dist/index102.cjs +1 -1
  8. package/dist/index102.js +24 -21
  9. package/dist/index103.cjs +1 -1
  10. package/dist/index103.js +31 -43
  11. package/dist/index104.cjs +1 -1
  12. package/dist/index104.js +43 -37
  13. package/dist/index105.cjs +1 -1
  14. package/dist/index105.js +6 -6
  15. package/dist/index106.cjs +1 -1
  16. package/dist/index106.js +101 -88
  17. package/dist/index107.cjs +1 -1
  18. package/dist/index107.js +37 -14
  19. package/dist/index108.cjs +1 -1
  20. package/dist/index108.js +8 -3
  21. package/dist/index109.cjs +1 -1
  22. package/dist/index109.js +20 -26
  23. package/dist/index110.cjs +1 -2
  24. package/dist/index110.js +2 -25
  25. package/dist/index111.cjs +1 -1
  26. package/dist/index111.js +75 -9
  27. package/dist/index112.cjs +1 -1
  28. package/dist/index112.js +15 -8
  29. package/dist/index113.cjs +1 -1
  30. package/dist/index113.js +151 -10
  31. package/dist/index114.cjs +20 -1
  32. package/dist/index114.js +326 -11
  33. package/dist/index115.cjs +3 -1
  34. package/dist/index115.js +451 -13
  35. package/dist/index116.cjs +1 -1
  36. package/dist/index116.js +71 -19
  37. package/dist/index117.cjs +1 -1
  38. package/dist/index117.js +16 -14
  39. package/dist/index118.cjs +1 -1
  40. package/dist/index118.js +10 -4
  41. package/dist/index119.cjs +1 -1
  42. package/dist/index119.js +125 -6
  43. package/dist/index120.cjs +1 -1
  44. package/dist/index120.js +5 -18
  45. package/dist/index121.cjs +1 -1
  46. package/dist/index121.js +45 -10
  47. package/dist/index122.cjs +1 -1
  48. package/dist/index122.js +36 -56
  49. package/dist/index123.cjs +1 -1
  50. package/dist/index123.js +6 -6
  51. package/dist/index124.cjs +1 -1
  52. package/dist/index124.js +90 -13
  53. package/dist/index125.cjs +1 -1
  54. package/dist/index125.js +14 -7
  55. package/dist/index126.cjs +1 -1
  56. package/dist/index126.js +3 -138
  57. package/dist/index127.cjs +1 -1
  58. package/dist/index127.js +26 -7
  59. package/dist/index128.cjs +2 -1
  60. package/dist/index128.js +22 -19
  61. package/dist/index129.cjs +1 -1
  62. package/dist/index129.js +9 -17
  63. package/dist/index130.cjs +1 -1
  64. package/dist/index130.js +8 -43
  65. package/dist/index131.cjs +1 -1
  66. package/dist/index131.js +10 -21
  67. package/dist/index132.cjs +1 -1
  68. package/dist/index132.js +11 -80
  69. package/dist/index133.cjs +1 -1
  70. package/dist/index133.js +13 -11
  71. package/dist/index134.cjs +1 -1
  72. package/dist/index134.js +15 -7
  73. package/dist/index135.cjs +1 -1
  74. package/dist/index135.js +14 -6
  75. package/dist/index136.cjs +1 -1
  76. package/dist/index136.js +4 -41
  77. package/dist/index137.cjs +1 -1
  78. package/dist/index137.js +6 -5
  79. package/dist/index138.cjs +1 -1
  80. package/dist/index138.js +18 -13
  81. package/dist/index139.cjs +1 -1
  82. package/dist/index139.js +10 -34
  83. package/dist/index140.cjs +1 -1
  84. package/dist/index140.js +56 -53
  85. package/dist/index141.cjs +1 -1
  86. package/dist/index141.js +6 -25
  87. package/dist/index142.cjs +1 -1
  88. package/dist/index142.js +13 -6
  89. package/dist/index143.cjs +1 -1
  90. package/dist/index143.js +7 -18
  91. package/dist/index144.cjs +1 -1
  92. package/dist/index144.js +138 -15
  93. package/dist/index145.cjs +1 -1
  94. package/dist/index145.js +7 -5
  95. package/dist/index146.cjs +1 -1
  96. package/dist/index146.js +21 -13
  97. package/dist/index147.cjs +1 -1
  98. package/dist/index147.js +17 -10
  99. package/dist/index148.cjs +1 -1
  100. package/dist/index148.js +42 -11
  101. package/dist/index149.cjs +1 -1
  102. package/dist/index149.js +21 -11
  103. package/dist/index150.cjs +1 -1
  104. package/dist/index150.js +80 -8
  105. package/dist/index151.cjs +1 -1
  106. package/dist/index151.js +11 -3
  107. package/dist/index152.cjs +1 -1
  108. package/dist/index152.js +13 -16
  109. package/dist/index153.cjs +1 -1
  110. package/dist/index153.js +6 -5
  111. package/dist/index154.cjs +1 -1
  112. package/dist/index154.js +38 -168
  113. package/dist/index155.cjs +1 -1
  114. package/dist/index155.js +5 -103
  115. package/dist/index156.cjs +1 -1
  116. package/dist/index156.js +1 -1
  117. package/dist/index158.cjs +1 -1
  118. package/dist/index158.js +28 -28
  119. package/dist/index160.cjs +1 -1
  120. package/dist/index160.js +5 -5
  121. package/dist/index161.cjs +1 -1
  122. package/dist/index161.js +2 -2
  123. package/dist/index162.cjs +1 -1
  124. package/dist/index162.js +1 -1
  125. package/dist/index163.cjs +1 -1
  126. package/dist/index163.js +1 -1
  127. package/dist/index166.cjs +1 -1
  128. package/dist/index166.js +1 -1
  129. package/dist/index167.cjs +1 -1
  130. package/dist/index167.js +1 -1
  131. package/dist/index17.cjs +1 -1
  132. package/dist/index17.js +26 -16
  133. package/dist/index170.cjs +1 -1
  134. package/dist/index170.js +2 -2
  135. package/dist/index171.cjs +1 -1
  136. package/dist/index171.js +1 -1
  137. package/dist/index174.cjs +1 -1
  138. package/dist/index174.js +1 -1
  139. package/dist/index176.cjs +1 -1
  140. package/dist/index176.js +1 -1
  141. package/dist/index177.cjs +1 -1
  142. package/dist/index177.js +1 -1
  143. package/dist/index178.cjs +1 -1
  144. package/dist/index178.js +2 -2
  145. package/dist/index179.cjs +1 -1
  146. package/dist/index179.js +1 -1
  147. package/dist/index18.cjs +1 -1
  148. package/dist/index18.js +8 -8
  149. package/dist/index180.cjs +1 -1
  150. package/dist/index180.js +1 -1
  151. package/dist/index181.cjs +1 -1
  152. package/dist/index181.js +2 -2
  153. package/dist/index182.cjs +1 -1
  154. package/dist/index182.js +6 -6
  155. package/dist/index184.cjs +1 -1
  156. package/dist/index184.js +3 -3
  157. package/dist/index185.cjs +1 -1
  158. package/dist/index185.js +7 -7
  159. package/dist/index186.cjs +1 -1
  160. package/dist/index186.js +1 -1
  161. package/dist/index187.cjs +1 -1
  162. package/dist/index187.js +1 -1
  163. package/dist/index189.cjs +1 -1
  164. package/dist/index189.js +2 -2
  165. package/dist/index192.cjs +1 -1
  166. package/dist/index192.js +3 -3
  167. package/dist/index193.cjs +1 -1
  168. package/dist/index193.js +2 -2
  169. package/dist/index194.cjs +1 -1
  170. package/dist/index194.js +2 -2
  171. package/dist/index195.cjs +1 -1
  172. package/dist/index195.js +1 -1
  173. package/dist/index196.cjs +1 -1
  174. package/dist/index196.js +2 -2
  175. package/dist/index197.cjs +1 -1
  176. package/dist/index197.js +2 -2
  177. package/dist/index199.cjs +1 -1
  178. package/dist/index199.js +1 -1
  179. package/dist/index20.cjs +1 -1
  180. package/dist/index20.js +2 -2
  181. package/dist/index200.cjs +1 -1
  182. package/dist/index200.js +2 -2
  183. package/dist/index203.cjs +1 -1
  184. package/dist/index203.js +3 -3
  185. package/dist/index204.cjs +1 -1
  186. package/dist/index204.js +2 -2
  187. package/dist/index205.cjs +1 -1
  188. package/dist/index205.js +1 -1
  189. package/dist/index206.cjs +1 -1
  190. package/dist/index206.js +2 -2
  191. package/dist/index209.cjs +1 -1
  192. package/dist/index209.js +2 -2
  193. package/dist/index210.cjs +1 -1
  194. package/dist/index210.js +1 -1
  195. package/dist/index211.cjs +1 -1
  196. package/dist/index211.js +4 -4
  197. package/dist/index212.cjs +1 -1
  198. package/dist/index212.js +6 -6
  199. package/dist/index214.cjs +1 -1
  200. package/dist/index214.js +3 -3
  201. package/dist/index215.cjs +1 -1
  202. package/dist/index215.js +2 -2
  203. package/dist/index217.cjs +1 -1
  204. package/dist/index217.js +103 -24
  205. package/dist/index218.cjs +1 -1
  206. package/dist/index218.js +15 -45
  207. package/dist/index219.cjs +1 -1
  208. package/dist/index219.js +213 -8
  209. package/dist/index22.cjs +1 -1
  210. package/dist/index22.js +9 -9
  211. package/dist/index220.cjs +1 -1
  212. package/dist/index220.js +106 -101
  213. package/dist/index221.cjs +1 -1
  214. package/dist/index221.js +203 -13
  215. package/dist/index222.cjs +1 -1
  216. package/dist/index222.js +41 -213
  217. package/dist/index223.cjs +1 -2
  218. package/dist/index223.js +77 -40
  219. package/dist/index224.cjs +1 -1
  220. package/dist/index224.js +2 -2
  221. package/dist/index225.cjs +1 -1
  222. package/dist/index225.js +24 -5
  223. package/dist/index226.cjs +1 -1
  224. package/dist/index226.js +45 -9
  225. package/dist/index227.cjs +1 -1
  226. package/dist/index227.js +9 -19
  227. package/dist/index228.cjs +2 -1
  228. package/dist/index228.js +41 -8
  229. package/dist/index229.cjs +1 -1
  230. package/dist/index229.js +2 -67
  231. package/dist/index23.cjs +1 -1
  232. package/dist/index23.js +29 -12
  233. package/dist/index230.cjs +1 -1
  234. package/dist/index230.js +5 -65
  235. package/dist/index231.cjs +1 -1
  236. package/dist/index231.js +9 -187
  237. package/dist/index232.cjs +1 -1
  238. package/dist/index232.js +17 -26
  239. package/dist/index233.cjs +1 -1
  240. package/dist/index233.js +8 -76
  241. package/dist/index234.cjs +1 -1
  242. package/dist/index234.js +66 -40
  243. package/dist/index235.cjs +1 -1
  244. package/dist/index235.js +64 -15
  245. package/dist/index236.cjs +1 -1
  246. package/dist/index236.js +187 -12
  247. package/dist/index237.cjs +1 -1
  248. package/dist/index237.js +26 -106
  249. package/dist/index238.cjs +1 -1
  250. package/dist/index238.js +70 -200
  251. package/dist/index239.cjs +1 -1
  252. package/dist/index239.js +37 -39
  253. package/dist/index24.cjs +1 -1
  254. package/dist/index24.js +8 -59
  255. package/dist/index240.cjs +1 -1
  256. package/dist/index240.js +15 -77
  257. package/dist/index241.cjs +1 -1
  258. package/dist/index241.js +14 -2
  259. package/dist/index242.cjs +1 -1
  260. package/dist/index242.js +1 -1
  261. package/dist/index244.cjs +1 -1
  262. package/dist/index244.js +6 -19
  263. package/dist/index245.cjs +1 -1
  264. package/dist/index245.js +7 -7
  265. package/dist/index246.cjs +1 -1
  266. package/dist/index246.js +20 -7
  267. package/dist/index247.cjs +1 -1
  268. package/dist/index247.js +1 -1
  269. package/dist/index248.cjs +1 -1
  270. package/dist/index248.js +1 -1
  271. package/dist/index25.cjs +1 -16
  272. package/dist/index25.js +12 -113
  273. package/dist/index250.cjs +1 -2
  274. package/dist/index250.js +654 -88
  275. package/dist/index251.cjs +1 -1
  276. package/dist/index251.js +177 -14
  277. package/dist/index252.cjs +2 -1
  278. package/dist/index252.js +88 -654
  279. package/dist/index253.cjs +1 -1
  280. package/dist/index253.js +14 -177
  281. package/dist/index26.cjs +1 -1
  282. package/dist/index26.js +59 -30
  283. package/dist/index27.cjs +16 -1
  284. package/dist/index27.js +111 -24
  285. package/dist/index28.cjs +1 -1
  286. package/dist/index28.js +29 -7
  287. package/dist/index29.cjs +1 -1
  288. package/dist/index29.js +13 -171
  289. package/dist/index30.cjs +1 -1
  290. package/dist/index30.js +32 -109
  291. package/dist/index31.cjs +1 -1
  292. package/dist/index31.js +32 -30
  293. package/dist/index32.cjs +1 -1
  294. package/dist/index32.js +55 -3
  295. package/dist/index33.cjs +1 -1
  296. package/dist/index33.js +46 -2
  297. package/dist/index34.cjs +1 -1
  298. package/dist/index34.js +26 -4
  299. package/dist/index35.cjs +1 -2
  300. package/dist/index35.js +6 -59
  301. package/dist/index36.cjs +1 -2
  302. package/dist/index36.js +18 -54
  303. package/dist/index37.cjs +1 -3
  304. package/dist/index37.js +15 -215
  305. package/dist/index38.cjs +1 -1
  306. package/dist/index38.js +5 -23
  307. package/dist/index39.cjs +1 -1
  308. package/dist/index39.js +13 -18
  309. package/dist/index40.cjs +1 -1
  310. package/dist/index40.js +10 -10
  311. package/dist/index41.cjs +1 -1
  312. package/dist/index41.js +11 -19
  313. package/dist/index42.cjs +1 -1
  314. package/dist/index42.js +11 -45
  315. package/dist/index43.cjs +1 -1
  316. package/dist/index43.js +3 -13
  317. package/dist/index44.cjs +1 -1
  318. package/dist/index44.js +21 -12
  319. package/dist/index45.cjs +1 -1
  320. package/dist/index45.js +8 -24
  321. package/dist/index46.cjs +1 -1
  322. package/dist/index46.js +3 -28
  323. package/dist/index47.cjs +1 -1
  324. package/dist/index47.js +16 -47
  325. package/dist/index48.cjs +1 -1
  326. package/dist/index48.js +5 -16
  327. package/dist/index49.cjs +1 -1
  328. package/dist/index49.js +170 -10
  329. package/dist/index50.cjs +1 -1
  330. package/dist/index50.js +102 -30
  331. package/dist/index51.cjs +1 -1
  332. package/dist/index51.js +169 -34
  333. package/dist/index52.cjs +1 -1
  334. package/dist/index52.js +111 -7
  335. package/dist/index53.cjs +1 -1
  336. package/dist/index53.js +30 -29
  337. package/dist/index54.cjs +1 -1
  338. package/dist/index54.js +2 -23
  339. package/dist/index55.cjs +1 -1
  340. package/dist/index55.js +4 -8
  341. package/dist/index56.cjs +2 -1
  342. package/dist/index56.js +58 -69
  343. package/dist/index57.cjs +2 -1
  344. package/dist/index57.js +51 -43
  345. package/dist/index58.cjs +3 -1
  346. package/dist/index58.js +208 -16
  347. package/dist/index59.cjs +1 -1
  348. package/dist/index59.js +22 -36
  349. package/dist/index60.cjs +1 -1
  350. package/dist/index60.js +18 -17
  351. package/dist/index61.cjs +1 -1
  352. package/dist/index61.js +10 -6
  353. package/dist/index62.cjs +1 -1
  354. package/dist/index62.js +20 -9
  355. package/dist/index63.cjs +1 -1
  356. package/dist/index63.js +10 -10
  357. package/dist/index64.cjs +1 -1
  358. package/dist/index64.js +12 -164
  359. package/dist/index65.cjs +1 -1
  360. package/dist/index65.js +23 -31
  361. package/dist/index66.cjs +1 -1
  362. package/dist/index66.js +25 -74
  363. package/dist/index67.cjs +1 -1
  364. package/dist/index67.js +47 -13
  365. package/dist/index68.cjs +1 -1
  366. package/dist/index68.js +16 -51
  367. package/dist/index69.cjs +1 -1
  368. package/dist/index69.js +11 -7
  369. package/dist/index70.cjs +1 -1
  370. package/dist/index70.js +31 -7
  371. package/dist/index71.cjs +1 -1
  372. package/dist/index71.js +36 -21
  373. package/dist/index72.cjs +1 -1
  374. package/dist/index72.js +7 -8
  375. package/dist/index73.cjs +1 -1
  376. package/dist/index73.js +27 -29
  377. package/dist/index74.cjs +1 -1
  378. package/dist/index74.js +21 -15
  379. package/dist/index75.cjs +1 -1
  380. package/dist/index75.js +7 -73
  381. package/dist/index76.cjs +1 -1
  382. package/dist/index76.js +70 -35
  383. package/dist/index77.cjs +1 -1
  384. package/dist/index77.js +46 -16
  385. package/dist/index78.cjs +1 -1
  386. package/dist/index78.js +21 -73
  387. package/dist/index79.cjs +1 -1
  388. package/dist/index79.js +37 -12
  389. package/dist/index80.cjs +1 -1
  390. package/dist/index80.js +17 -29
  391. package/dist/index81.cjs +1 -2
  392. package/dist/index81.js +6 -120
  393. package/dist/index82.cjs +1 -1
  394. package/dist/index82.js +8 -13
  395. package/dist/index83.cjs +1 -1
  396. package/dist/index83.js +13 -24
  397. package/dist/index84.cjs +1 -1
  398. package/dist/index84.js +162 -31
  399. package/dist/index85.cjs +1 -1
  400. package/dist/index85.js +72 -39
  401. package/dist/index86.cjs +1 -1
  402. package/dist/index86.js +12 -5
  403. package/dist/index87.cjs +1 -1
  404. package/dist/index87.js +50 -102
  405. package/dist/index88.cjs +1 -1
  406. package/dist/index88.js +7 -37
  407. package/dist/index89.cjs +1 -1
  408. package/dist/index89.js +7 -8
  409. package/dist/index90.cjs +1 -1
  410. package/dist/index90.js +21 -20
  411. package/dist/index91.cjs +1 -1
  412. package/dist/index91.js +9 -2
  413. package/dist/index92.cjs +1 -1
  414. package/dist/index92.js +31 -75
  415. package/dist/index93.cjs +1 -1
  416. package/dist/index93.js +16 -15
  417. package/dist/index94.cjs +1 -1
  418. package/dist/index94.js +72 -150
  419. package/dist/index95.cjs +1 -20
  420. package/dist/index95.js +35 -326
  421. package/dist/index96.cjs +1 -3
  422. package/dist/index96.js +16 -451
  423. package/dist/index97.cjs +1 -1
  424. package/dist/index97.js +72 -70
  425. package/dist/index98.cjs +1 -1
  426. package/dist/index98.js +12 -16
  427. package/dist/index99.cjs +1 -1
  428. package/dist/index99.js +29 -10
  429. package/dist/src/lib/fetcher/fetcher.d.ts +1 -0
  430. package/dist/src/lib/retry.d.ts +3 -1
  431. package/package.json +1 -1
package/dist/index155.js CHANGED
@@ -1,106 +1,8 @@
1
- import { encodeAbiParameters as d } from "./index185.js";
2
- import { concat as h } from "./index120.js";
3
- import { toHex as p } from "./index42.js";
4
- import { keccak256 as s } from "./index150.js";
5
- import { getTypesForEIP712Domain as T, validateTypedData as D } from "./index132.js";
6
- function k(o) {
7
- const { domain: n = {}, message: e, primaryType: t } = o, r = {
8
- EIP712Domain: T({ domain: n }),
9
- ...o.types
10
- };
11
- D({
12
- domain: n,
13
- message: e,
14
- primaryType: t,
15
- types: r
16
- });
17
- const a = ["0x1901"];
18
- return n && a.push(l({
19
- domain: n,
20
- types: r
21
- })), t !== "EIP712Domain" && a.push(f({
22
- data: e,
23
- primaryType: t,
24
- types: r
25
- })), s(h(a));
26
- }
27
- function l({ domain: o, types: n }) {
28
- return f({
29
- data: o,
30
- primaryType: "EIP712Domain",
31
- types: n
32
- });
33
- }
34
- function f({ data: o, primaryType: n, types: e }) {
35
- const t = m({
36
- data: o,
37
- primaryType: n,
38
- types: e
39
- });
40
- return s(t);
41
- }
42
- function m({ data: o, primaryType: n, types: e }) {
43
- const t = [{ type: "bytes32" }], r = [b({ primaryType: n, types: e })];
44
- for (const a of e[n]) {
45
- const [i, c] = y({
46
- types: e,
47
- name: a.name,
48
- type: a.type,
49
- value: o[a.name]
50
- });
51
- t.push(i), r.push(c);
52
- }
53
- return d(t, r);
54
- }
55
- function b({ primaryType: o, types: n }) {
56
- const e = p(I({ primaryType: o, types: n }));
57
- return s(e);
58
- }
59
- function I({ primaryType: o, types: n }) {
60
- let e = "";
61
- const t = u({ primaryType: o, types: n });
62
- t.delete(o);
63
- const r = [o, ...Array.from(t).sort()];
64
- for (const a of r)
65
- e += `${a}(${n[a].map(({ name: i, type: c }) => `${c} ${i}`).join(",")})`;
66
- return e;
67
- }
68
- function u({ primaryType: o, types: n }, e = /* @__PURE__ */ new Set()) {
69
- const t = o.match(/^\w*/u), r = t == null ? void 0 : t[0];
70
- if (e.has(r) || n[r] === void 0)
71
- return e;
72
- e.add(r);
73
- for (const a of n[r])
74
- u({ primaryType: a.type, types: n }, e);
75
- return e;
76
- }
77
- function y({ types: o, name: n, type: e, value: t }) {
78
- if (o[e] !== void 0)
79
- return [
80
- { type: "bytes32" },
81
- s(m({ data: t, primaryType: e, types: o }))
82
- ];
83
- if (e === "bytes")
84
- return [{ type: "bytes32" }, s(t)];
85
- if (e === "string")
86
- return [{ type: "bytes32" }, s(p(t))];
87
- if (e.lastIndexOf("]") === e.length - 1) {
88
- const r = e.slice(0, e.lastIndexOf("[")), a = t.map((i) => y({
89
- name: n,
90
- type: r,
91
- types: o,
92
- value: i
93
- }));
94
- return [
95
- { type: "bytes32" },
96
- s(d(a.map(([i]) => i), a.map(([, i]) => i)))
97
- ];
98
- }
99
- return [{ type: e }, t];
1
+ import { sendTransactionSync as t } from "./index144.js";
2
+ import { writeContract as o } from "./index154.js";
3
+ async function i(n, r) {
4
+ return o.internal(n, t, "sendTransactionSync", r);
100
5
  }
101
6
  export {
102
- I as encodeType,
103
- l as hashDomain,
104
- f as hashStruct,
105
- k as hashTypedData
7
+ i as writeContractSync
106
8
  };
package/dist/index156.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index32.cjs"),j=require("./index157.cjs");function q(n){const{batch:a,chain:e,ccipRead:d,key:b="base",name:f="Base Client",type:g="base"}=n,o=n.experimental_blockTag??(typeof(e==null?void 0:e.experimental_preconfirmationTime)=="number"?"pending":void 0),m=(e==null?void 0:e.blockTime)??12e3,p=Math.min(Math.max(Math.floor(m/2),500),4e3),t=n.pollingInterval??p,x=n.cacheTime??t,i=n.account?h.parseAccount(n.account):void 0,{config:T,request:k,value:y}=n.transport({account:i,chain:e,pollingInterval:t}),v={...T,...y},c={account:i,batch:a,cacheTime:x,ccipRead:d,chain:e,key:b,name:f,pollingInterval:t,request:k,transport:v,type:g,uid:j.uid(),...o?{experimental_blockTag:o}:{}};function l(u){return _=>{const r=_(u);for(const M in c)delete r[M];const s={...u,...r};return Object.assign(s,{extend:l(s)})}}return Object.assign(c,{extend:l(c)})}exports.createClient=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index43.cjs"),j=require("./index157.cjs");function q(n){const{batch:a,chain:e,ccipRead:d,key:b="base",name:f="Base Client",type:g="base"}=n,o=n.experimental_blockTag??(typeof(e==null?void 0:e.experimental_preconfirmationTime)=="number"?"pending":void 0),m=(e==null?void 0:e.blockTime)??12e3,p=Math.min(Math.max(Math.floor(m/2),500),4e3),t=n.pollingInterval??p,x=n.cacheTime??t,i=n.account?h.parseAccount(n.account):void 0,{config:T,request:k,value:y}=n.transport({account:i,chain:e,pollingInterval:t}),v={...T,...y},c={account:i,batch:a,cacheTime:x,ccipRead:d,chain:e,key:b,name:f,pollingInterval:t,request:k,transport:v,type:g,uid:j.uid(),...o?{experimental_blockTag:o}:{}};function l(u){return _=>{const r=_(u);for(const M in c)delete r[M];const s={...u,...r};return Object.assign(s,{extend:l(s)})}}return Object.assign(c,{extend:l(c)})}exports.createClient=q;
package/dist/index156.js CHANGED
@@ -1,4 +1,4 @@
1
- import { parseAccount as I } from "./index32.js";
1
+ import { parseAccount as I } from "./index43.js";
2
2
  import { uid as M } from "./index157.js";
3
3
  function O(e) {
4
4
  const { batch: a, chain: n, ccipRead: d, key: f = "base", name: m = "Base Client", type: b = "base" } = e, c = e.experimental_blockTag ?? (typeof (n == null ? void 0 : n.experimental_preconfirmationTime) == "number" ? "pending" : void 0), p = (n == null ? void 0 : n.blockTime) ?? 12e3, g = Math.min(Math.max(Math.floor(p / 2), 500), 4e3), t = e.pollingInterval ?? g, x = e.cacheTime ?? t, i = e.account ? I(e.account) : void 0, { config: T, request: k, value: _ } = e.transport({
package/dist/index158.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index66.cjs"),a=require("./index69.cjs"),t=require("./index98.cjs"),n=require("./index99.cjs"),i=require("./index101.cjs"),o=require("./index103.cjs"),u=require("./index107.cjs"),c=require("./index108.cjs"),d=require("./index109.cjs"),q=require("./index64.cjs"),C=require("./index118.cjs"),g=require("./index119.cjs"),w=require("./index106.cjs"),T=require("./index121.cjs"),h=require("./index123.cjs"),S=require("./index124.cjs"),l=require("./index100.cjs"),p=require("./index126.cjs"),y=require("./index127.cjs"),A=require("./index128.cjs"),R=require("./index129.cjs"),m=require("./index130.cjs"),P=require("./index131.cjs"),z=require("./index133.cjs"),b=require("./index122.cjs"),f=require("./index135.cjs"),M=require("./index136.cjs"),D=require("./index137.cjs");function F(e){return{addChain:s=>t.addChain(e,s),deployContract:s=>n.deployContract(e,s),fillTransaction:s=>r.fillTransaction(e,s),getAddresses:()=>i.getAddresses(e),getCallsStatus:s=>o.getCallsStatus(e,s),getCapabilities:s=>u.getCapabilities(e,s),getChainId:()=>a.getChainId(e),getPermissions:()=>c.getPermissions(e),prepareAuthorization:s=>d.prepareAuthorization(e,s),prepareTransactionRequest:s=>q.prepareTransactionRequest(e,s),requestAddresses:()=>C.requestAddresses(e),requestPermissions:s=>g.requestPermissions(e,s),sendCalls:s=>w.sendCalls(e,s),sendCallsSync:s=>T.sendCallsSync(e,s),sendRawTransaction:s=>h.sendRawTransaction(e,s),sendRawTransactionSync:s=>S.sendRawTransactionSync(e,s),sendTransaction:s=>l.sendTransaction(e,s),sendTransactionSync:s=>p.sendTransactionSync(e,s),showCallsStatus:s=>y.showCallsStatus(e,s),signAuthorization:s=>A.signAuthorization(e,s),signMessage:s=>R.signMessage(e,s),signTransaction:s=>m.signTransaction(e,s),signTypedData:s=>P.signTypedData(e,s),switchChain:s=>z.switchChain(e,s),waitForCallsStatus:s=>b.waitForCallsStatus(e,s),watchAsset:s=>f.watchAsset(e,s),writeContract:s=>M.writeContract(e,s),writeContractSync:s=>D.writeContractSync(e,s)}}exports.walletActions=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index85.cjs"),a=require("./index88.cjs"),t=require("./index117.cjs"),n=require("./index118.cjs"),i=require("./index120.cjs"),o=require("./index121.cjs"),u=require("./index125.cjs"),c=require("./index126.cjs"),d=require("./index127.cjs"),q=require("./index84.cjs"),C=require("./index136.cjs"),g=require("./index137.cjs"),w=require("./index124.cjs"),T=require("./index139.cjs"),h=require("./index141.cjs"),S=require("./index142.cjs"),l=require("./index119.cjs"),p=require("./index144.cjs"),y=require("./index145.cjs"),A=require("./index146.cjs"),R=require("./index147.cjs"),m=require("./index148.cjs"),P=require("./index149.cjs"),z=require("./index151.cjs"),b=require("./index140.cjs"),f=require("./index153.cjs"),M=require("./index154.cjs"),D=require("./index155.cjs");function F(e){return{addChain:s=>t.addChain(e,s),deployContract:s=>n.deployContract(e,s),fillTransaction:s=>r.fillTransaction(e,s),getAddresses:()=>i.getAddresses(e),getCallsStatus:s=>o.getCallsStatus(e,s),getCapabilities:s=>u.getCapabilities(e,s),getChainId:()=>a.getChainId(e),getPermissions:()=>c.getPermissions(e),prepareAuthorization:s=>d.prepareAuthorization(e,s),prepareTransactionRequest:s=>q.prepareTransactionRequest(e,s),requestAddresses:()=>C.requestAddresses(e),requestPermissions:s=>g.requestPermissions(e,s),sendCalls:s=>w.sendCalls(e,s),sendCallsSync:s=>T.sendCallsSync(e,s),sendRawTransaction:s=>h.sendRawTransaction(e,s),sendRawTransactionSync:s=>S.sendRawTransactionSync(e,s),sendTransaction:s=>l.sendTransaction(e,s),sendTransactionSync:s=>p.sendTransactionSync(e,s),showCallsStatus:s=>y.showCallsStatus(e,s),signAuthorization:s=>A.signAuthorization(e,s),signMessage:s=>R.signMessage(e,s),signTransaction:s=>m.signTransaction(e,s),signTypedData:s=>P.signTypedData(e,s),switchChain:s=>z.switchChain(e,s),waitForCallsStatus:s=>b.waitForCallsStatus(e,s),watchAsset:s=>f.watchAsset(e,s),writeContract:s=>M.writeContract(e,s),writeContractSync:s=>D.writeContractSync(e,s)}}exports.walletActions=F;
package/dist/index158.js CHANGED
@@ -1,31 +1,31 @@
1
- import { fillTransaction as s } from "./index66.js";
2
- import { getChainId as a } from "./index69.js";
3
- import { addChain as t } from "./index98.js";
4
- import { deployContract as i } from "./index99.js";
5
- import { getAddresses as m } from "./index101.js";
6
- import { getCallsStatus as n } from "./index103.js";
7
- import { getCapabilities as e } from "./index107.js";
8
- import { getPermissions as p } from "./index108.js";
9
- import { prepareAuthorization as f } from "./index109.js";
10
- import { prepareTransactionRequest as d } from "./index64.js";
11
- import { requestAddresses as C } from "./index118.js";
12
- import { requestPermissions as g } from "./index119.js";
13
- import { sendCalls as u } from "./index106.js";
14
- import { sendCallsSync as w } from "./index121.js";
15
- import { sendRawTransaction as h } from "./index123.js";
16
- import { sendRawTransactionSync as T } from "./index124.js";
17
- import { sendTransaction as S } from "./index100.js";
18
- import { sendTransactionSync as y } from "./index126.js";
19
- import { showCallsStatus as A } from "./index127.js";
20
- import { signAuthorization as c } from "./index128.js";
21
- import { signMessage as q } from "./index129.js";
22
- import { signTransaction as R } from "./index130.js";
23
- import { signTypedData as z } from "./index131.js";
24
- import { switchChain as P } from "./index133.js";
25
- import { waitForCallsStatus as l } from "./index122.js";
26
- import { watchAsset as b } from "./index135.js";
27
- import { writeContract as D } from "./index136.js";
28
- import { writeContractSync as F } from "./index137.js";
1
+ import { fillTransaction as s } from "./index85.js";
2
+ import { getChainId as a } from "./index88.js";
3
+ import { addChain as t } from "./index117.js";
4
+ import { deployContract as i } from "./index118.js";
5
+ import { getAddresses as m } from "./index120.js";
6
+ import { getCallsStatus as n } from "./index121.js";
7
+ import { getCapabilities as e } from "./index125.js";
8
+ import { getPermissions as p } from "./index126.js";
9
+ import { prepareAuthorization as f } from "./index127.js";
10
+ import { prepareTransactionRequest as d } from "./index84.js";
11
+ import { requestAddresses as C } from "./index136.js";
12
+ import { requestPermissions as g } from "./index137.js";
13
+ import { sendCalls as u } from "./index124.js";
14
+ import { sendCallsSync as w } from "./index139.js";
15
+ import { sendRawTransaction as h } from "./index141.js";
16
+ import { sendRawTransactionSync as T } from "./index142.js";
17
+ import { sendTransaction as S } from "./index119.js";
18
+ import { sendTransactionSync as y } from "./index144.js";
19
+ import { showCallsStatus as A } from "./index145.js";
20
+ import { signAuthorization as c } from "./index146.js";
21
+ import { signMessage as q } from "./index147.js";
22
+ import { signTransaction as R } from "./index148.js";
23
+ import { signTypedData as z } from "./index149.js";
24
+ import { switchChain as P } from "./index151.js";
25
+ import { waitForCallsStatus as l } from "./index140.js";
26
+ import { watchAsset as b } from "./index153.js";
27
+ import { writeContract as D } from "./index154.js";
28
+ import { writeContractSync as F } from "./index155.js";
29
29
  function tr(o) {
30
30
  return {
31
31
  addChain: (r) => t(o, r),
package/dist/index160.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("./index35.cjs"),p=require("./index161.cjs"),e=require("./index96.cjs"),I=require("./index42.cjs"),q=require("./index242.cjs"),m=require("./index90.cjs"),v=require("./index91.cjs");function N(t,E={}){return async(c,h={})=>{var i;const{dedupe:s=!1,methods:o,retryDelay:R=150,retryCount:l=3,uid:f}={...E,...h},{method:d}=c;if((i=o==null?void 0:o.exclude)!=null&&i.includes(d))throw new e.MethodNotSupportedRpcError(new Error("method not supported"),{method:d});if(o!=null&&o.include&&!o.include.includes(d))throw new e.MethodNotSupportedRpcError(new Error("method not supported"),{method:d});const y=s?I.stringToHex(`${f}.${v.stringify(c)}`):void 0;return q.withDedupe(()=>m.withRetry(async()=>{try{return await t(c)}catch(n){const r=n;switch(r.code){case e.ParseRpcError.code:throw new e.ParseRpcError(r);case e.InvalidRequestRpcError.code:throw new e.InvalidRequestRpcError(r);case e.MethodNotFoundRpcError.code:throw new e.MethodNotFoundRpcError(r,{method:c.method});case e.InvalidParamsRpcError.code:throw new e.InvalidParamsRpcError(r);case e.InternalRpcError.code:throw new e.InternalRpcError(r);case e.InvalidInputRpcError.code:throw new e.InvalidInputRpcError(r);case e.ResourceNotFoundRpcError.code:throw new e.ResourceNotFoundRpcError(r);case e.ResourceUnavailableRpcError.code:throw new e.ResourceUnavailableRpcError(r);case e.TransactionRejectedRpcError.code:throw new e.TransactionRejectedRpcError(r);case e.MethodNotSupportedRpcError.code:throw new e.MethodNotSupportedRpcError(r,{method:c.method});case e.LimitExceededRpcError.code:throw new e.LimitExceededRpcError(r);case e.JsonRpcVersionUnsupportedError.code:throw new e.JsonRpcVersionUnsupportedError(r);case e.UserRejectedRequestError.code:throw new e.UserRejectedRequestError(r);case e.UnauthorizedProviderError.code:throw new e.UnauthorizedProviderError(r);case e.UnsupportedProviderMethodError.code:throw new e.UnsupportedProviderMethodError(r);case e.ProviderDisconnectedError.code:throw new e.ProviderDisconnectedError(r);case e.ChainDisconnectedError.code:throw new e.ChainDisconnectedError(r);case e.SwitchChainError.code:throw new e.SwitchChainError(r);case e.UnsupportedNonOptionalCapabilityError.code:throw new e.UnsupportedNonOptionalCapabilityError(r);case e.UnsupportedChainIdError.code:throw new e.UnsupportedChainIdError(r);case e.DuplicateIdError.code:throw new e.DuplicateIdError(r);case e.UnknownBundleIdError.code:throw new e.UnknownBundleIdError(r);case e.BundleTooLargeError.code:throw new e.BundleTooLargeError(r);case e.AtomicReadyWalletRejectedUpgradeError.code:throw new e.AtomicReadyWalletRejectedUpgradeError(r);case e.AtomicityNotSupportedError.code:throw new e.AtomicityNotSupportedError(r);case 5e3:throw new e.UserRejectedRequestError(r);default:throw n instanceof U.BaseError?n:new e.UnknownRpcError(r)}}},{delay:({count:n,error:r})=>{var a;if(r&&r instanceof p.HttpRequestError){const u=(a=r==null?void 0:r.headers)==null?void 0:a.get("Retry-After");if(u!=null&&u.match(/\d/))return Number.parseInt(u,10)*1e3}return~~(1<<n)*R},retryCount:l,shouldRetry:({error:n})=>w(n)}),{enabled:s,id:y})}}function w(t){return"code"in t&&typeof t.code=="number"?t.code===-1||t.code===e.LimitExceededRpcError.code||t.code===e.InternalRpcError.code:t instanceof p.HttpRequestError&&t.status?t.status===403||t.status===408||t.status===413||t.status===429||t.status===500||t.status===502||t.status===503||t.status===504:!0}exports.buildRequest=N;exports.shouldRetry=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("./index56.cjs"),p=require("./index161.cjs"),e=require("./index115.cjs"),I=require("./index33.cjs"),q=require("./index242.cjs"),m=require("./index109.cjs"),v=require("./index110.cjs");function N(t,E={}){return async(c,h={})=>{var i;const{dedupe:s=!1,methods:o,retryDelay:R=150,retryCount:l=3,uid:f}={...E,...h},{method:d}=c;if((i=o==null?void 0:o.exclude)!=null&&i.includes(d))throw new e.MethodNotSupportedRpcError(new Error("method not supported"),{method:d});if(o!=null&&o.include&&!o.include.includes(d))throw new e.MethodNotSupportedRpcError(new Error("method not supported"),{method:d});const y=s?I.stringToHex(`${f}.${v.stringify(c)}`):void 0;return q.withDedupe(()=>m.withRetry(async()=>{try{return await t(c)}catch(n){const r=n;switch(r.code){case e.ParseRpcError.code:throw new e.ParseRpcError(r);case e.InvalidRequestRpcError.code:throw new e.InvalidRequestRpcError(r);case e.MethodNotFoundRpcError.code:throw new e.MethodNotFoundRpcError(r,{method:c.method});case e.InvalidParamsRpcError.code:throw new e.InvalidParamsRpcError(r);case e.InternalRpcError.code:throw new e.InternalRpcError(r);case e.InvalidInputRpcError.code:throw new e.InvalidInputRpcError(r);case e.ResourceNotFoundRpcError.code:throw new e.ResourceNotFoundRpcError(r);case e.ResourceUnavailableRpcError.code:throw new e.ResourceUnavailableRpcError(r);case e.TransactionRejectedRpcError.code:throw new e.TransactionRejectedRpcError(r);case e.MethodNotSupportedRpcError.code:throw new e.MethodNotSupportedRpcError(r,{method:c.method});case e.LimitExceededRpcError.code:throw new e.LimitExceededRpcError(r);case e.JsonRpcVersionUnsupportedError.code:throw new e.JsonRpcVersionUnsupportedError(r);case e.UserRejectedRequestError.code:throw new e.UserRejectedRequestError(r);case e.UnauthorizedProviderError.code:throw new e.UnauthorizedProviderError(r);case e.UnsupportedProviderMethodError.code:throw new e.UnsupportedProviderMethodError(r);case e.ProviderDisconnectedError.code:throw new e.ProviderDisconnectedError(r);case e.ChainDisconnectedError.code:throw new e.ChainDisconnectedError(r);case e.SwitchChainError.code:throw new e.SwitchChainError(r);case e.UnsupportedNonOptionalCapabilityError.code:throw new e.UnsupportedNonOptionalCapabilityError(r);case e.UnsupportedChainIdError.code:throw new e.UnsupportedChainIdError(r);case e.DuplicateIdError.code:throw new e.DuplicateIdError(r);case e.UnknownBundleIdError.code:throw new e.UnknownBundleIdError(r);case e.BundleTooLargeError.code:throw new e.BundleTooLargeError(r);case e.AtomicReadyWalletRejectedUpgradeError.code:throw new e.AtomicReadyWalletRejectedUpgradeError(r);case e.AtomicityNotSupportedError.code:throw new e.AtomicityNotSupportedError(r);case 5e3:throw new e.UserRejectedRequestError(r);default:throw n instanceof U.BaseError?n:new e.UnknownRpcError(r)}}},{delay:({count:n,error:r})=>{var a;if(r&&r instanceof p.HttpRequestError){const u=(a=r==null?void 0:r.headers)==null?void 0:a.get("Retry-After");if(u!=null&&u.match(/\d/))return Number.parseInt(u,10)*1e3}return~~(1<<n)*R},retryCount:l,shouldRetry:({error:n})=>w(n)}),{enabled:s,id:y})}}function w(t){return"code"in t&&typeof t.code=="number"?t.code===-1||t.code===e.LimitExceededRpcError.code||t.code===e.InternalRpcError.code:t instanceof p.HttpRequestError&&t.status?t.status===403||t.status===408||t.status===413||t.status===429||t.status===500||t.status===502||t.status===503||t.status===504:!0}exports.buildRequest=N;exports.shouldRetry=w;
package/dist/index160.js CHANGED
@@ -1,10 +1,10 @@
1
- import { BaseError as z } from "./index35.js";
1
+ import { BaseError as z } from "./index56.js";
2
2
  import { HttpRequestError as k } from "./index161.js";
3
- import { MethodNotSupportedRpcError as s, UnknownRpcError as J, UserRejectedRequestError as u, AtomicityNotSupportedError as f, AtomicReadyWalletRejectedUpgradeError as E, BundleTooLargeError as l, UnknownBundleIdError as R, DuplicateIdError as m, UnsupportedChainIdError as y, UnsupportedNonOptionalCapabilityError as I, SwitchChainError as U, ChainDisconnectedError as v, ProviderDisconnectedError as b, UnsupportedProviderMethodError as N, UnauthorizedProviderError as q, JsonRpcVersionUnsupportedError as C, LimitExceededRpcError as a, TransactionRejectedRpcError as D, ResourceUnavailableRpcError as P, ResourceNotFoundRpcError as x, InvalidInputRpcError as j, InternalRpcError as i, InvalidParamsRpcError as B, MethodNotFoundRpcError as M, InvalidRequestRpcError as S, ParseRpcError as T } from "./index96.js";
4
- import { stringToHex as O } from "./index42.js";
3
+ import { MethodNotSupportedRpcError as s, UnknownRpcError as J, UserRejectedRequestError as u, AtomicityNotSupportedError as f, AtomicReadyWalletRejectedUpgradeError as E, BundleTooLargeError as l, UnknownBundleIdError as R, DuplicateIdError as m, UnsupportedChainIdError as y, UnsupportedNonOptionalCapabilityError as I, SwitchChainError as U, ChainDisconnectedError as v, ProviderDisconnectedError as b, UnsupportedProviderMethodError as N, UnauthorizedProviderError as q, JsonRpcVersionUnsupportedError as C, LimitExceededRpcError as a, TransactionRejectedRpcError as D, ResourceUnavailableRpcError as P, ResourceNotFoundRpcError as x, InvalidInputRpcError as j, InternalRpcError as i, InvalidParamsRpcError as B, MethodNotFoundRpcError as M, InvalidRequestRpcError as S, ParseRpcError as T } from "./index115.js";
4
+ import { stringToHex as O } from "./index33.js";
5
5
  import { withDedupe as V } from "./index242.js";
6
- import { withRetry as W } from "./index90.js";
7
- import { stringify as _ } from "./index91.js";
6
+ import { withRetry as W } from "./index109.js";
7
+ import { stringify as _ } from "./index110.js";
8
8
  function te(r, A = {}) {
9
9
  return async (n, F = {}) => {
10
10
  var h;
package/dist/index161.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index91.cjs"),i=require("./index35.cjs"),a=require("./index175.cjs");class b extends i.BaseError{constructor({body:t,cause:e,details:r,headers:n,status:u,url:l}){super("HTTP request failed.",{cause:e,details:r,metaMessages:[u&&`Status: ${u}`,`URL: ${a.getUrl(l)}`,t&&`Request body: ${s.stringify(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=n,this.status=u,this.url=l}}class d extends i.BaseError{constructor({body:t,error:e,url:r}){super("RPC Request failed.",{cause:e,details:e.message,metaMessages:[`URL: ${a.getUrl(r)}`,`Request body: ${s.stringify(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e.code,this.data=e.data,this.url=r}}class c extends i.BaseError{constructor({body:t,url:e}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${a.getUrl(e)}`,`Request body: ${s.stringify(t)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=e}}exports.HttpRequestError=b;exports.RpcRequestError=d;exports.TimeoutError=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index110.cjs"),i=require("./index56.cjs"),a=require("./index175.cjs");class b extends i.BaseError{constructor({body:t,cause:e,details:r,headers:n,status:u,url:l}){super("HTTP request failed.",{cause:e,details:r,metaMessages:[u&&`Status: ${u}`,`URL: ${a.getUrl(l)}`,t&&`Request body: ${s.stringify(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=n,this.status=u,this.url=l}}class d extends i.BaseError{constructor({body:t,error:e,url:r}){super("RPC Request failed.",{cause:e,details:e.message,metaMessages:[`URL: ${a.getUrl(r)}`,`Request body: ${s.stringify(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e.code,this.data=e.data,this.url=r}}class c extends i.BaseError{constructor({body:t,url:e}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${a.getUrl(e)}`,`Request body: ${s.stringify(t)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=e}}exports.HttpRequestError=b;exports.RpcRequestError=d;exports.TimeoutError=c;
package/dist/index161.js CHANGED
@@ -1,5 +1,5 @@
1
- import { stringify as s } from "./index91.js";
2
- import { BaseError as a } from "./index35.js";
1
+ import { stringify as s } from "./index110.js";
2
+ import { BaseError as a } from "./index56.js";
3
3
  import { getUrl as i } from "./index175.js";
4
4
  class m extends a {
5
5
  constructor({ body: t, cause: e, details: r, headers: n, status: u, url: l }) {
package/dist/index162.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index35.cjs");class e extends r.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}exports.UrlRequiredError=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index56.cjs");class e extends r.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}exports.UrlRequiredError=e;
package/dist/index162.js CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseError as r } from "./index35.js";
1
+ import { BaseError as r } from "./index56.js";
2
2
  class t extends r {
3
3
  constructor() {
4
4
  super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.", {
package/dist/index163.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index161.cjs"),E=require("./index208.cjs"),d=require("./index91.cjs"),q=require("./index243.cjs");function H(i,e={}){const{url:r,headers:a}=R(i);return{async request(p){var g;const{body:n,fetchFn:T=e.fetchFn??fetch,onRequest:c=e.onRequest,onResponse:l=e.onResponse,timeout:f=e.timeout??1e4}=p,w={...e.fetchOptions??{},...p.fetchOptions??{}},{headers:C,method:j,signal:O}=w;try{const t=await E.withTimeout(async({signal:u})=>{const h={...w,body:Array.isArray(n)?d.stringify(n.map(m=>({jsonrpc:"2.0",id:m.id??q.idCache.take(),...m}))):d.stringify({jsonrpc:"2.0",id:n.id??q.idCache.take(),...n}),headers:{...a,"Content-Type":"application/json",...C},method:j||"POST",signal:O||(f>0?u:null)},S=new Request(r,h),y=await(c==null?void 0:c(S,h))??{...h,url:r};return await T(y.url??r,y)},{errorInstance:new o.TimeoutError({body:n,url:r}),timeout:f,signal:!0});l&&await l(t);let s;if((g=t.headers.get("Content-Type"))!=null&&g.startsWith("application/json"))s=await t.json();else{s=await t.text();try{s=JSON.parse(s||"{}")}catch(u){if(t.ok)throw u;s={error:s}}}if(!t.ok)throw new o.HttpRequestError({body:n,details:d.stringify(s.error)||t.statusText,headers:t.headers,status:t.status,url:r});return s}catch(t){throw t instanceof o.HttpRequestError||t instanceof o.TimeoutError?t:new o.HttpRequestError({body:n,cause:t,url:r})}}}}function R(i){try{const e=new URL(i),r=(()=>{if(e.username){const a=`${decodeURIComponent(e.username)}:${decodeURIComponent(e.password)}`;return e.username="",e.password="",{url:e.toString(),headers:{Authorization:`Basic ${btoa(a)}`}}}})();return{url:e.toString(),...r}}catch{return{url:i}}}exports.getHttpRpcClient=H;exports.parseUrl=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index161.cjs"),E=require("./index208.cjs"),d=require("./index110.cjs"),q=require("./index243.cjs");function H(i,e={}){const{url:r,headers:a}=R(i);return{async request(p){var g;const{body:n,fetchFn:T=e.fetchFn??fetch,onRequest:c=e.onRequest,onResponse:l=e.onResponse,timeout:f=e.timeout??1e4}=p,w={...e.fetchOptions??{},...p.fetchOptions??{}},{headers:C,method:j,signal:O}=w;try{const t=await E.withTimeout(async({signal:u})=>{const h={...w,body:Array.isArray(n)?d.stringify(n.map(m=>({jsonrpc:"2.0",id:m.id??q.idCache.take(),...m}))):d.stringify({jsonrpc:"2.0",id:n.id??q.idCache.take(),...n}),headers:{...a,"Content-Type":"application/json",...C},method:j||"POST",signal:O||(f>0?u:null)},S=new Request(r,h),y=await(c==null?void 0:c(S,h))??{...h,url:r};return await T(y.url??r,y)},{errorInstance:new o.TimeoutError({body:n,url:r}),timeout:f,signal:!0});l&&await l(t);let s;if((g=t.headers.get("Content-Type"))!=null&&g.startsWith("application/json"))s=await t.json();else{s=await t.text();try{s=JSON.parse(s||"{}")}catch(u){if(t.ok)throw u;s={error:s}}}if(!t.ok)throw new o.HttpRequestError({body:n,details:d.stringify(s.error)||t.statusText,headers:t.headers,status:t.status,url:r});return s}catch(t){throw t instanceof o.HttpRequestError||t instanceof o.TimeoutError?t:new o.HttpRequestError({body:n,cause:t,url:r})}}}}function R(i){try{const e=new URL(i),r=(()=>{if(e.username){const a=`${decodeURIComponent(e.username)}:${decodeURIComponent(e.password)}`;return e.username="",e.password="",{url:e.toString(),headers:{Authorization:`Basic ${btoa(a)}`}}}})();return{url:e.toString(),...r}}catch{return{url:i}}}exports.getHttpRpcClient=H;exports.parseUrl=R;
package/dist/index163.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { TimeoutError as R, HttpRequestError as h } from "./index161.js";
2
2
  import { withTimeout as S } from "./index208.js";
3
- import { stringify as p } from "./index91.js";
3
+ import { stringify as p } from "./index110.js";
4
4
  import { idCache as C } from "./index243.js";
5
5
  function E(o, e = {}) {
6
6
  const { url: r, headers: a } = U(o);
package/dist/index166.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index95.cjs");function i(t,{includeName:e=!1}={}){if(t.type!=="function"&&t.type!=="event"&&t.type!=="error")throw new o.InvalidDefinitionTypeError(t.type);return`${t.name}(${n(t.inputs,{includeName:e})})`}function n(t,{includeName:e=!1}={}){return t?t.map(r=>f(r,{includeName:e})).join(e?", ":","):""}function f(t,{includeName:e}){return t.type.startsWith("tuple")?`(${n(t.components,{includeName:e})})${t.type.slice(5)}`:t.type+(e&&t.name?` ${t.name}`:"")}exports.formatAbiItem=i;exports.formatAbiParams=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index114.cjs");function i(t,{includeName:e=!1}={}){if(t.type!=="function"&&t.type!=="event"&&t.type!=="error")throw new o.InvalidDefinitionTypeError(t.type);return`${t.name}(${n(t.inputs,{includeName:e})})`}function n(t,{includeName:e=!1}={}){return t?t.map(r=>f(r,{includeName:e})).join(e?", ":","):""}function f(t,{includeName:e}){return t.type.startsWith("tuple")?`(${n(t.components,{includeName:e})})${t.type.slice(5)}`:t.type+(e&&t.name?` ${t.name}`:"")}exports.formatAbiItem=i;exports.formatAbiParams=n;
package/dist/index166.js CHANGED
@@ -1,4 +1,4 @@
1
- import { InvalidDefinitionTypeError as o } from "./index95.js";
1
+ import { InvalidDefinitionTypeError as o } from "./index114.js";
2
2
  function u(t, { includeName: n = !1 } = {}) {
3
3
  if (t.type !== "function" && t.type !== "event" && t.type !== "error")
4
4
  throw new o(t.type);
package/dist/index167.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index151.cjs");function i(e){return t.isHex(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}exports.size=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index46.cjs");function i(e){return t.isHex(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}exports.size=i;
package/dist/index167.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isHex as r } from "./index151.js";
1
+ import { isHex as r } from "./index46.js";
2
2
  function i(t) {
3
3
  return r(t, { strict: !1 }) ? Math.ceil((t.length - 2) / 2) : t.length;
4
4
  }
package/dist/index17.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index27.cjs"),i=require("./index28.cjs");class u{static async _postWithFallback(a,t){let r="";for(const n of a)try{const s=await fetch(n,{method:"POST",...t});if(s.status>=500){r=await(s.text()||s.json());continue}return await this.parse(s)}catch(s){r=o(s);continue}throw new Error(r||"All APIs failed")}static async postWithFallback(a,t){return await c(t).retry(()=>this._postWithFallback(a,t))}static async _getWithFallback(a,t){let r="";for(const n of a)try{const s=await fetch(n,t);if(s.status>=500){r=await(s.text()||s.json());continue}return await this.parse(s)}catch(s){r=o(s);continue}throw new Error(r||"All APIs failed")}static async getWithFallback(a,t){return await c(t).retry(()=>this._getWithFallback(a,t))}static async _get(a,t){return await this.parse(await fetch(a,t))}static async get(a,t){return await c(t).retry(()=>this._get(a,t))}static async _post(a,t){return await this.parse(await fetch(a,{method:"POST",...t}))}static async post(a,t){return await c(t).retry(()=>this._post(a,t))}static async _patch(a,t){return await this.parse(await fetch(a,{method:"PATCH",...t}))}static async patch(a,t){return await c(t).retry(()=>this._patch(a,t))}static async parse(a){const t=await a.text();if(a.status>=200&&a.status<300)return i.safeParseJson(t);throw new Error(t)}}function o(e){return(e==null?void 0:e.message)||(e==null?void 0:e.toString())||"unknown error"}const c=e=>new h.Retry((e==null?void 0:e.retryCount)??2,(e==null?void 0:e.retryDelay)??1e3);exports.Fetcher=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index23.cjs"),u=require("./index24.cjs");class l{static async _postWithFallback(a,t){let r="";for(const o of a)try{const s=await fetch(o,{method:"POST",...t});if(s.status>=500){r=await(s.text()||s.json());continue}return await this.parse(s)}catch(s){r=n(s);continue}throw new Error(r||"All APIs failed")}static async postWithFallback(a,t){return await c(t).retry(()=>this._postWithFallback(a,t))}static async _getWithFallback(a,t){let r="";for(const o of a)try{const s=await fetch(o,t);if(s.status>=500){r=await(s.text()||s.json());continue}return await this.parse(s)}catch(s){r=n(s);continue}throw new Error(r||"All APIs failed")}static async getWithFallback(a,t){return await c(t).retry(()=>this._getWithFallback(a,t))}static async _get(a,t){return await this.parse(await fetch(a,t))}static async get(a,t){return await c(t).retry(()=>this._get(a,t))}static async _post(a,t){return await this.parse(await fetch(a,{method:"POST",...t}))}static async post(a,t){return await c(t).retry(()=>this._post(a,t))}static async _patch(a,t){return await this.parse(await fetch(a,{method:"PATCH",...t}))}static async patch(a,t){return await c(t).retry(()=>this._patch(a,t))}static async parse(a){const t=await a.text();if(a.status>=200&&a.status<300)return u.safeParseJson(t);throw new Error(t)}}function n(e){return(e==null?void 0:e.message)||(e==null?void 0:e.toString())||"unknown error"}const c=e=>new h.Retry((e==null?void 0:e.retryCount)??2,(e==null?void 0:e.retryDelay)??1e3,e==null?void 0:e.onRetry);exports.Fetcher=l;
package/dist/index17.js CHANGED
@@ -1,11 +1,11 @@
1
- import { Retry as h } from "./index27.js";
2
- import { safeParseJson as i } from "./index28.js";
3
- class l {
1
+ import { Retry as n } from "./index23.js";
2
+ import { safeParseJson as u } from "./index24.js";
3
+ class y {
4
4
  static async _postWithFallback(a, t) {
5
5
  let r = "";
6
- for (const n of a)
6
+ for (const o of a)
7
7
  try {
8
- const e = await fetch(n, {
8
+ const e = await fetch(o, {
9
9
  method: "POST",
10
10
  ...t
11
11
  });
@@ -15,7 +15,7 @@ class l {
15
15
  }
16
16
  return await this.parse(e);
17
17
  } catch (e) {
18
- r = o(e);
18
+ r = h(e);
19
19
  continue;
20
20
  }
21
21
  throw new Error(r || "All APIs failed");
@@ -34,16 +34,16 @@ class l {
34
34
  }
35
35
  static async _getWithFallback(a, t) {
36
36
  let r = "";
37
- for (const n of a)
37
+ for (const o of a)
38
38
  try {
39
- const e = await fetch(n, t);
39
+ const e = await fetch(o, t);
40
40
  if (e.status >= 500) {
41
41
  r = await (e.text() || e.json());
42
42
  continue;
43
43
  }
44
44
  return await this.parse(e);
45
45
  } catch (e) {
46
- r = o(e);
46
+ r = h(e);
47
47
  continue;
48
48
  }
49
49
  throw new Error(r || "All APIs failed");
@@ -71,7 +71,9 @@ class l {
71
71
  * @return {Promise<T>} The retrieved data of type T
72
72
  */
73
73
  static async get(a, t) {
74
- return await c(t).retry(() => this._get(a, t));
74
+ return await c(t).retry(
75
+ () => this._get(a, t)
76
+ );
75
77
  }
76
78
  static async _post(a, t) {
77
79
  return await this.parse(
@@ -85,7 +87,9 @@ class l {
85
87
  * Asynchronously sends a POST request to the specified URL or RequestInfo, with optional initialization options.
86
88
  */
87
89
  static async post(a, t) {
88
- return await c(t).retry(() => this._post(a, t));
90
+ return await c(t).retry(
91
+ () => this._post(a, t)
92
+ );
89
93
  }
90
94
  static async _patch(a, t) {
91
95
  return await this.parse(
@@ -96,7 +100,9 @@ class l {
96
100
  );
97
101
  }
98
102
  static async patch(a, t) {
99
- return await c(t).retry(() => this._patch(a, t));
103
+ return await c(t).retry(
104
+ () => this._patch(a, t)
105
+ );
100
106
  }
101
107
  /**
102
108
  * Parses the response and returns the result as the specified type.
@@ -107,14 +113,18 @@ class l {
107
113
  static async parse(a) {
108
114
  const t = await a.text();
109
115
  if (a.status >= 200 && a.status < 300)
110
- return i(t);
116
+ return u(t);
111
117
  throw new Error(t);
112
118
  }
113
119
  }
114
- function o(s) {
120
+ function h(s) {
115
121
  return (s == null ? void 0 : s.message) || (s == null ? void 0 : s.toString()) || "unknown error";
116
122
  }
117
- const c = (s) => new h((s == null ? void 0 : s.retryCount) ?? 2, (s == null ? void 0 : s.retryDelay) ?? 1e3);
123
+ const c = (s) => new n(
124
+ (s == null ? void 0 : s.retryCount) ?? 2,
125
+ (s == null ? void 0 : s.retryDelay) ?? 1e3,
126
+ s == null ? void 0 : s.onRetry
127
+ );
118
128
  export {
119
- l as Fetcher
129
+ y as Fetcher
120
130
  };
package/dist/index170.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index169.cjs"),n=require("./index95.cjs"),c=require("./index104.cjs"),u=require("./index186.cjs"),d=require("./index182.cjs"),l=require("./index166.cjs");function b(s){const{abi:a,data:t}=s,r=c.slice(t,0,4);if(r==="0x")throw new n.AbiDecodingZeroDataError;const e=[...a||[],i.solidityError,i.solidityPanic].find(o=>o.type==="error"&&r===u.toFunctionSelector(l.formatAbiItem(o)));if(!e)throw new n.AbiErrorSignatureNotFoundError(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:e,args:"inputs"in e&&e.inputs&&e.inputs.length>0?d.decodeAbiParameters(e.inputs,c.slice(t,4)):void 0,errorName:e.name}}exports.decodeErrorResult=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index169.cjs"),n=require("./index114.cjs"),c=require("./index122.cjs"),u=require("./index186.cjs"),d=require("./index182.cjs"),l=require("./index166.cjs");function b(s){const{abi:a,data:t}=s,r=c.slice(t,0,4);if(r==="0x")throw new n.AbiDecodingZeroDataError;const e=[...a||[],i.solidityError,i.solidityPanic].find(o=>o.type==="error"&&r===u.toFunctionSelector(l.formatAbiItem(o)));if(!e)throw new n.AbiErrorSignatureNotFoundError(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:e,args:"inputs"in e&&e.inputs&&e.inputs.length>0?d.decodeAbiParameters(e.inputs,c.slice(t,4)):void 0,errorName:e.name}}exports.decodeErrorResult=b;
package/dist/index170.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { solidityError as m, solidityPanic as s } from "./index169.js";
2
- import { AbiDecodingZeroDataError as c, AbiErrorSignatureNotFoundError as d } from "./index95.js";
3
- import { slice as e } from "./index104.js";
2
+ import { AbiDecodingZeroDataError as c, AbiErrorSignatureNotFoundError as d } from "./index114.js";
3
+ import { slice as e } from "./index122.js";
4
4
  import { toFunctionSelector as u } from "./index186.js";
5
5
  import { decodeAbiParameters as f } from "./index182.js";
6
6
  import { formatAbiItem as p } from "./index166.js";
package/dist/index171.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index91.cjs");function o({abiItem:t,args:n,includeFunctionName:i=!0,includeName:u=!1}){if("name"in t&&"inputs"in t&&t.inputs)return`${i?t.name:""}(${t.inputs.map((r,e)=>`${u&&r.name?`${r.name}: `:""}${typeof n[e]=="object"?f.stringify(n[e]):n[e]}`).join(", ")})`}exports.formatAbiItemWithArgs=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index110.cjs");function o({abiItem:t,args:n,includeFunctionName:i=!0,includeName:u=!1}){if("name"in t&&"inputs"in t&&t.inputs)return`${i?t.name:""}(${t.inputs.map((r,e)=>`${u&&r.name?`${r.name}: `:""}${typeof n[e]=="object"?f.stringify(n[e]):n[e]}`).join(", ")})`}exports.formatAbiItemWithArgs=o;
package/dist/index171.js CHANGED
@@ -1,4 +1,4 @@
1
- import { stringify as o } from "./index91.js";
1
+ import { stringify as o } from "./index110.js";
2
2
  function p({ abiItem: n, args: r, includeFunctionName: f = !0, includeName: i = !1 }) {
3
3
  if ("name" in n && "inputs" in n && n.inputs)
4
4
  return `${f ? n.name : ""}(${n.inputs.map((e, t) => `${i && e.name ? `${e.name}: ` : ""}${typeof r[t] == "object" ? o(r[t]) : r[t]}`).join(", ")})`;
package/dist/index174.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index35.cjs");class i extends a.BaseError{constructor({address:n}){super(`State for account "${n}" is set multiple times.`,{name:"AccountStateConflictError"})}}class s extends a.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function o(r){return r.reduce((n,{slot:c,value:e})=>`${n} ${c}: ${e}
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index56.cjs");class i extends a.BaseError{constructor({address:n}){super(`State for account "${n}" is set multiple times.`,{name:"AccountStateConflictError"})}}class s extends a.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function o(r){return r.reduce((n,{slot:c,value:e})=>`${n} ${c}: ${e}
2
2
  `,"")}function f(r){return r.reduce((n,{address:c,...e})=>{let t=`${n} ${c}:
3
3
  `;return e.nonce&&(t+=` nonce: ${e.nonce}
4
4
  `),e.balance&&(t+=` balance: ${e.balance}
package/dist/index174.js CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseError as a } from "./index35.js";
1
+ import { BaseError as a } from "./index56.js";
2
2
  class f extends a {
3
3
  constructor({ address: r }) {
4
4
  super(`State for account "${r}" is set multiple times.`, {
package/dist/index176.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index35.cjs");class i extends t.BaseError{constructor({offset:r,position:s,size:e}){super(`Slice ${s==="start"?"starting":"ending"} at offset "${r}" is out-of-bounds (size: ${e}).`,{name:"SliceOffsetOutOfBoundsError"})}}class n extends t.BaseError{constructor({size:r,targetSize:s,type:e}){super(`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()} size (${r}) exceeds padding size (${s}).`,{name:"SizeExceedsPaddingSizeError"})}}class a extends t.BaseError{constructor({size:r,targetSize:s,type:e}){super(`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()} is expected to be ${s} ${e} long, but is ${r} ${e} long.`,{name:"InvalidBytesLengthError"})}}exports.InvalidBytesLengthError=a;exports.SizeExceedsPaddingSizeError=n;exports.SliceOffsetOutOfBoundsError=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index56.cjs");class i extends t.BaseError{constructor({offset:r,position:s,size:e}){super(`Slice ${s==="start"?"starting":"ending"} at offset "${r}" is out-of-bounds (size: ${e}).`,{name:"SliceOffsetOutOfBoundsError"})}}class n extends t.BaseError{constructor({size:r,targetSize:s,type:e}){super(`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()} size (${r}) exceeds padding size (${s}).`,{name:"SizeExceedsPaddingSizeError"})}}class a extends t.BaseError{constructor({size:r,targetSize:s,type:e}){super(`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()} is expected to be ${s} ${e} long, but is ${r} ${e} long.`,{name:"InvalidBytesLengthError"})}}exports.InvalidBytesLengthError=a;exports.SizeExceedsPaddingSizeError=n;exports.SliceOffsetOutOfBoundsError=i;
package/dist/index176.js CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseError as o } from "./index35.js";
1
+ import { BaseError as o } from "./index56.js";
2
2
  class i extends o {
3
3
  constructor({ offset: r, position: s, size: e }) {
4
4
  super(`Slice ${s === "start" ? "starting" : "ending"} at offset "${r}" is out-of-bounds (size: ${e}).`, { name: "SliceOffsetOutOfBoundsError" });
package/dist/index177.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index35.cjs");class i extends o.BaseError{constructor({max:e,min:r,signed:s,size:n,value:a}){super(`Number "${a}" is not in safe ${n?`${n*8}-bit ${s?"signed":"unsigned"} `:""}integer range ${e?`(${r} to ${e})`:`(above ${r})`}`,{name:"IntegerOutOfRangeError"})}}class l extends o.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class u extends o.BaseError{constructor({givenSize:e,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}exports.IntegerOutOfRangeError=i;exports.InvalidBytesBooleanError=l;exports.SizeOverflowError=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index56.cjs");class i extends o.BaseError{constructor({max:e,min:r,signed:s,size:n,value:a}){super(`Number "${a}" is not in safe ${n?`${n*8}-bit ${s?"signed":"unsigned"} `:""}integer range ${e?`(${r} to ${e})`:`(above ${r})`}`,{name:"IntegerOutOfRangeError"})}}class l extends o.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class u extends o.BaseError{constructor({givenSize:e,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}exports.IntegerOutOfRangeError=i;exports.InvalidBytesBooleanError=l;exports.SizeOverflowError=u;
package/dist/index177.js CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseError as o } from "./index35.js";
1
+ import { BaseError as o } from "./index56.js";
2
2
  class l extends o {
3
3
  constructor({ max: e, min: r, signed: s, size: t, value: a }) {
4
4
  super(`Number "${a}" is not in safe ${t ? `${t * 8}-bit ${s ? "signed" : "unsigned"} ` : ""}integer range ${e ? `(${r} to ${e})` : `(above ${r})`}`, { name: "IntegerOutOfRangeError" });
package/dist/index178.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index172.cjs"),s=require("./index173.cjs"),p=require("./index35.cjs"),b=require("./index81.cjs");class w extends p.BaseError{constructor(e,{account:r,docsPath:m,chain:t,data:u,gas:d,gasPrice:o,maxFeePerGas:i,maxPriorityFeePerGas:a,nonce:E,to:g,value:n}){var f;const l=b.prettyPrint({from:r==null?void 0:r.address,to:g,value:typeof n<"u"&&`${y.formatEther(n)} ${((f=t==null?void 0:t.nativeCurrency)==null?void 0:f.symbol)||"ETH"}`,data:u,gas:d,gasPrice:typeof o<"u"&&`${s.formatGwei(o)} gwei`,maxFeePerGas:typeof i<"u"&&`${s.formatGwei(i)} gwei`,maxPriorityFeePerGas:typeof a<"u"&&`${s.formatGwei(a)} gwei`,nonce:E});super(e.shortMessage,{cause:e,docsPath:m,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",l].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}exports.EstimateGasExecutionError=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index172.cjs"),s=require("./index173.cjs"),p=require("./index56.cjs"),b=require("./index100.cjs");class w extends p.BaseError{constructor(e,{account:r,docsPath:m,chain:t,data:u,gas:d,gasPrice:o,maxFeePerGas:i,maxPriorityFeePerGas:a,nonce:E,to:g,value:n}){var f;const l=b.prettyPrint({from:r==null?void 0:r.address,to:g,value:typeof n<"u"&&`${y.formatEther(n)} ${((f=t==null?void 0:t.nativeCurrency)==null?void 0:f.symbol)||"ETH"}`,data:u,gas:d,gasPrice:typeof o<"u"&&`${s.formatGwei(o)} gwei`,maxFeePerGas:typeof i<"u"&&`${s.formatGwei(i)} gwei`,maxPriorityFeePerGas:typeof a<"u"&&`${s.formatGwei(a)} gwei`,nonce:E});super(e.shortMessage,{cause:e,docsPath:m,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",l].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}exports.EstimateGasExecutionError=w;
package/dist/index178.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { formatEther as y } from "./index172.js";
2
2
  import { formatGwei as s } from "./index173.js";
3
- import { BaseError as l } from "./index35.js";
4
- import { prettyPrint as b } from "./index81.js";
3
+ import { BaseError as l } from "./index56.js";
4
+ import { prettyPrint as b } from "./index100.js";
5
5
  class v extends l {
6
6
  constructor(e, { account: r, docsPath: n, chain: t, data: d, gas: p, gasPrice: o, maxFeePerGas: i, maxPriorityFeePerGas: m, nonce: g, to: u, value: f }) {
7
7
  var a;
package/dist/index179.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index35.cjs");class t extends e.BaseError{constructor(r){super(`Filter type "${r}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}exports.FilterTypeNotSupportedError=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index56.cjs");class t extends e.BaseError{constructor(r){super(`Filter type "${r}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}exports.FilterTypeNotSupportedError=t;
package/dist/index179.js CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseError as e } from "./index35.js";
1
+ import { BaseError as e } from "./index56.js";
2
2
  class p extends e {
3
3
  constructor(r) {
4
4
  super(`Filter type "${r}" is not supported.`, {
package/dist/index18.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index55.cjs"),P=require("./index50.cjs"),v=require("./index53.cjs"),q=require("./index74.cjs"),F=require("./index84.cjs"),_=require("./index85.cjs"),x=require("./index94.cjs"),b=require("./index136.cjs");function G({abi:t,address:o,client:l}){const n=l,[s,f]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],h=s!=null,A=f!=null,u={};let m=!1,w=!1,d=!1;for(const a of t)if(a.type==="function"?a.stateMutability==="view"||a.stateMutability==="pure"?m=!0:w=!0:a.type==="event"&&(d=!0),m&&w&&d)break;return h&&(m&&(u.read=new Proxy({},{get(a,e){return(...i)=>{const{args:c,options:r}=y(i);return p.getAction(s,F.readContract,"readContract")({abi:t,address:o,functionName:e,args:c,...r})}}})),w&&(u.simulate=new Proxy({},{get(a,e){return(...i)=>{const{args:c,options:r}=y(i);return p.getAction(s,_.simulateContract,"simulateContract")({abi:t,address:o,functionName:e,args:c,...r})}}})),d&&(u.createEventFilter=new Proxy({},{get(a,e){return(...i)=>{const c=t.find(g=>g.type==="event"&&g.name===e),{args:r,options:C}=E(i,c);return p.getAction(s,P.createContractEventFilter,"createContractEventFilter")({abi:t,address:o,eventName:e,args:r,...C})}}}),u.getEvents=new Proxy({},{get(a,e){return(...i)=>{const c=t.find(g=>g.type==="event"&&g.name===e),{args:r,options:C}=E(i,c);return p.getAction(s,q.getContractEvents,"getContractEvents")({abi:t,address:o,eventName:e,args:r,...C})}}}),u.watchEvent=new Proxy({},{get(a,e){return(...i)=>{const c=t.find(g=>g.type==="event"&&g.name===e),{args:r,options:C}=E(i,c);return p.getAction(s,x.watchContractEvent,"watchContractEvent")({abi:t,address:o,eventName:e,args:r,...C})}}}))),A&&w&&(u.write=new Proxy({},{get(a,e){return(...i)=>{const{args:c,options:r}=y(i);return p.getAction(f,b.writeContract,"writeContract")({abi:t,address:o,functionName:e,args:c,...r})}}})),(h||A)&&w&&(u.estimateGas=new Proxy({},{get(a,e){return(...i)=>{const{args:c,options:r}=y(i),C=s??f;return p.getAction(C,v.estimateContractGas,"estimateContractGas")({abi:t,address:o,functionName:e,args:c,...r,account:r.account??f.account})}}})),u.address=o,u.abi=t,u}function y(t){const o=t.length&&Array.isArray(t[0]),l=o?t[0]:[],n=(o?t[1]:t[0])??{};return{args:l,options:n}}function E(t,o){let l=!1;Array.isArray(t[0])?l=!0:t.length===1?l=o.inputs.some(f=>f.indexed):t.length===2&&(l=!0);const n=l?t[0]:void 0,s=(l?t[1]:t[0])??{};return{args:n,options:s}}exports.getContract=G;exports.getEventParameters=E;exports.getFunctionParameters=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index75.cjs"),P=require("./index70.cjs"),v=require("./index73.cjs"),q=require("./index93.cjs"),F=require("./index103.cjs"),_=require("./index104.cjs"),x=require("./index113.cjs"),b=require("./index154.cjs");function G({abi:t,address:o,client:l}){const n=l,[s,f]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],h=s!=null,A=f!=null,u={};let m=!1,w=!1,d=!1;for(const a of t)if(a.type==="function"?a.stateMutability==="view"||a.stateMutability==="pure"?m=!0:w=!0:a.type==="event"&&(d=!0),m&&w&&d)break;return h&&(m&&(u.read=new Proxy({},{get(a,e){return(...i)=>{const{args:c,options:r}=y(i);return p.getAction(s,F.readContract,"readContract")({abi:t,address:o,functionName:e,args:c,...r})}}})),w&&(u.simulate=new Proxy({},{get(a,e){return(...i)=>{const{args:c,options:r}=y(i);return p.getAction(s,_.simulateContract,"simulateContract")({abi:t,address:o,functionName:e,args:c,...r})}}})),d&&(u.createEventFilter=new Proxy({},{get(a,e){return(...i)=>{const c=t.find(g=>g.type==="event"&&g.name===e),{args:r,options:C}=E(i,c);return p.getAction(s,P.createContractEventFilter,"createContractEventFilter")({abi:t,address:o,eventName:e,args:r,...C})}}}),u.getEvents=new Proxy({},{get(a,e){return(...i)=>{const c=t.find(g=>g.type==="event"&&g.name===e),{args:r,options:C}=E(i,c);return p.getAction(s,q.getContractEvents,"getContractEvents")({abi:t,address:o,eventName:e,args:r,...C})}}}),u.watchEvent=new Proxy({},{get(a,e){return(...i)=>{const c=t.find(g=>g.type==="event"&&g.name===e),{args:r,options:C}=E(i,c);return p.getAction(s,x.watchContractEvent,"watchContractEvent")({abi:t,address:o,eventName:e,args:r,...C})}}}))),A&&w&&(u.write=new Proxy({},{get(a,e){return(...i)=>{const{args:c,options:r}=y(i);return p.getAction(f,b.writeContract,"writeContract")({abi:t,address:o,functionName:e,args:c,...r})}}})),(h||A)&&w&&(u.estimateGas=new Proxy({},{get(a,e){return(...i)=>{const{args:c,options:r}=y(i),C=s??f;return p.getAction(C,v.estimateContractGas,"estimateContractGas")({abi:t,address:o,functionName:e,args:c,...r,account:r.account??f.account})}}})),u.address=o,u.abi=t,u}function y(t){const o=t.length&&Array.isArray(t[0]),l=o?t[0]:[],n=(o?t[1]:t[0])??{};return{args:l,options:n}}function E(t,o){let l=!1;Array.isArray(t[0])?l=!0:t.length===1?l=o.inputs.some(f=>f.indexed):t.length===2&&(l=!0);const n=l?t[0]:void 0,s=(l?t[1]:t[0])??{};return{args:n,options:s}}exports.getContract=G;exports.getEventParameters=E;exports.getFunctionParameters=y;
package/dist/index18.js CHANGED
@@ -1,11 +1,11 @@
1
- import { getAction as g } from "./index55.js";
2
- import { createContractEventFilter as v } from "./index50.js";
3
- import { estimateContractGas as A } from "./index53.js";
4
- import { getContractEvents as _ } from "./index74.js";
5
- import { readContract as x } from "./index84.js";
6
- import { simulateContract as F } from "./index85.js";
7
- import { watchContractEvent as G } from "./index94.js";
8
- import { writeContract as b } from "./index136.js";
1
+ import { getAction as g } from "./index75.js";
2
+ import { createContractEventFilter as v } from "./index70.js";
3
+ import { estimateContractGas as A } from "./index73.js";
4
+ import { getContractEvents as _ } from "./index93.js";
5
+ import { readContract as x } from "./index103.js";
6
+ import { simulateContract as F } from "./index104.js";
7
+ import { watchContractEvent as G } from "./index113.js";
8
+ import { writeContract as b } from "./index154.js";
9
9
  function D({ abi: t, address: o, client: f }) {
10
10
  const e = f, [a, p] = e ? "public" in e && "wallet" in e ? [e.public, e.wallet] : "public" in e ? [e.public, void 0] : "wallet" in e ? [void 0, e.wallet] : [e, e] : [void 0, void 0], d = a != null, P = p != null, u = {};
11
11
  let y = !1, w = !1, E = !1;
package/dist/index180.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index173.cjs"),o=require("./index35.cjs");class s extends o.BaseError{constructor({cause:r,message:e}={}){var i;const n=(i=e==null?void 0:e.replace("execution reverted: ",""))==null?void 0:i.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:r,name:"ExecutionRevertedError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class c extends o.BaseError{constructor({cause:r,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${a.formatGwei(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:r,name:"FeeCapTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class u extends o.BaseError{constructor({cause:r,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${a.formatGwei(e)}`:""} gwei) cannot be lower than the block base fee.`,{cause:r,name:"FeeCapTooLowError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class l extends o.BaseError{constructor({cause:r,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}is higher than the next one expected.`,{cause:r,name:"NonceTooHighError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class d extends o.BaseError{constructor({cause:r,nonce:e}={}){super([`Nonce provided for the transaction ${e?`(${e}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index173.cjs"),o=require("./index56.cjs");class s extends o.BaseError{constructor({cause:r,message:e}={}){var i;const n=(i=e==null?void 0:e.replace("execution reverted: ",""))==null?void 0:i.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:r,name:"ExecutionRevertedError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class c extends o.BaseError{constructor({cause:r,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${a.formatGwei(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:r,name:"FeeCapTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class u extends o.BaseError{constructor({cause:r,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${a.formatGwei(e)}`:""} gwei) cannot be lower than the block base fee.`,{cause:r,name:"FeeCapTooLowError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class l extends o.BaseError{constructor({cause:r,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}is higher than the next one expected.`,{cause:r,name:"NonceTooHighError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class d extends o.BaseError{constructor({cause:r,nonce:e}={}){super([`Nonce provided for the transaction ${e?`(${e}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
2
2
  `),{cause:r,name:"NonceTooLowError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class h extends o.BaseError{constructor({cause:r,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}exceeds the maximum allowed nonce.`,{cause:r,name:"NonceMaxValueError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class f extends o.BaseError{constructor({cause:r}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
3
3
  `),{cause:r,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class p extends o.BaseError{constructor({cause:r,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:r,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class g extends o.BaseError{constructor({cause:r,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction is too low.`,{cause:r,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(g,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class b extends o.BaseError{constructor({cause:r}){super("The transaction type is not supported for this chain.",{cause:r,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(b,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class E extends o.BaseError{constructor({cause:r,maxPriorityFeePerGas:e,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${e?` = ${a.formatGwei(e)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${a.formatGwei(n)} gwei`:""}).`].join(`
4
4
  `),{cause:r,name:"TipAboveFeeCapError"})}}Object.defineProperty(E,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class w extends o.BaseError{constructor({cause:r}){super(`An error occurred while executing: ${r==null?void 0:r.shortMessage}`,{cause:r,name:"UnknownNodeError"})}}exports.ExecutionRevertedError=s;exports.FeeCapTooHighError=c;exports.FeeCapTooLowError=u;exports.InsufficientFundsError=f;exports.IntrinsicGasTooHighError=p;exports.IntrinsicGasTooLowError=g;exports.NonceMaxValueError=h;exports.NonceTooHighError=l;exports.NonceTooLowError=d;exports.TipAboveFeeCapError=E;exports.TransactionTypeNotSupportedError=b;exports.UnknownNodeError=w;