@gardenfi/utils 2.5.3-beta.0 → 2.5.3-beta.1

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 (648) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +26 -28
  3. package/dist/index10.cjs +1 -1
  4. package/dist/index10.js +5 -5
  5. package/dist/index100.cjs +1 -1
  6. package/dist/index100.js +8 -23
  7. package/dist/index101.cjs +1 -1
  8. package/dist/index101.js +11 -108
  9. package/dist/index102.cjs +1 -1
  10. package/dist/index102.js +18 -6
  11. package/dist/index103.cjs +1 -1
  12. package/dist/index103.js +27 -50
  13. package/dist/index104.cjs +1 -1
  14. package/dist/index104.js +21 -16
  15. package/dist/index105.cjs +1 -1
  16. package/dist/index105.js +51 -10
  17. package/dist/index106.cjs +1 -1
  18. package/dist/index106.js +11 -5
  19. package/dist/index107.cjs +1 -1
  20. package/dist/index107.js +161 -14
  21. package/dist/index108.cjs +1 -1
  22. package/dist/index108.js +21 -3
  23. package/dist/index109.cjs +1 -1
  24. package/dist/index109.js +127 -26
  25. package/dist/index110.cjs +1 -1
  26. package/dist/index110.js +38 -4
  27. package/dist/index111.cjs +1 -1
  28. package/dist/index111.js +6 -6
  29. package/dist/index112.cjs +1 -1
  30. package/dist/index112.js +27 -88
  31. package/dist/index113.cjs +1 -1
  32. package/dist/index113.js +54 -124
  33. package/dist/index114.cjs +1 -1
  34. package/dist/index114.js +45 -7
  35. package/dist/index115.cjs +1 -1
  36. package/dist/index115.js +189 -19
  37. package/dist/index116.cjs +1 -1
  38. package/dist/index116.js +4 -18
  39. package/dist/index117.cjs +1 -1
  40. package/dist/index117.js +62 -38
  41. package/dist/index118.cjs +1 -1
  42. package/dist/index118.js +3 -22
  43. package/dist/index119.cjs +1 -1
  44. package/dist/index119.js +20 -11
  45. package/dist/index120.cjs +1 -1
  46. package/dist/index120.js +16 -6
  47. package/dist/index121.cjs +1 -1
  48. package/dist/index121.js +23 -106
  49. package/dist/index122.cjs +1 -1
  50. package/dist/index122.js +12 -3
  51. package/dist/index123.cjs +1 -1
  52. package/dist/index123.js +19 -4
  53. package/dist/index124.cjs +1 -1
  54. package/dist/index124.js +35 -9
  55. package/dist/index125.cjs +1 -1
  56. package/dist/index125.js +3 -2
  57. package/dist/index126.cjs +1 -2
  58. package/dist/index126.js +19 -3
  59. package/dist/index127.cjs +1 -20
  60. package/dist/index127.js +27 -326
  61. package/dist/index128.cjs +1 -1
  62. package/dist/index128.js +35 -12
  63. package/dist/index129.cjs +1 -1
  64. package/dist/index129.js +8 -4
  65. package/dist/index13.cjs +1 -1
  66. package/dist/index13.js +1 -1
  67. package/dist/index130.cjs +1 -1
  68. package/dist/index130.js +11 -2
  69. package/dist/index131.cjs +1 -1
  70. package/dist/index131.js +24 -6
  71. package/dist/index132.cjs +1 -3
  72. package/dist/index132.js +27 -214
  73. package/dist/index133.cjs +1 -1
  74. package/dist/index133.js +64 -30
  75. package/dist/index134.cjs +1 -1
  76. package/dist/index134.js +9 -21
  77. package/dist/index135.cjs +1 -1
  78. package/dist/index135.js +23 -5
  79. package/dist/index136.cjs +1 -1
  80. package/dist/index136.js +24 -73
  81. package/dist/index137.cjs +1 -1
  82. package/dist/index137.js +24 -5
  83. package/dist/index138.cjs +1 -1
  84. package/dist/index138.js +3 -5
  85. package/dist/index139.cjs +1 -9
  86. package/dist/index139.js +14 -35
  87. package/dist/index140.cjs +1 -3
  88. package/dist/index140.js +93 -100
  89. package/dist/index141.cjs +1 -1
  90. package/dist/index141.js +81 -3
  91. package/dist/index142.cjs +1 -1
  92. package/dist/index142.js +5 -23
  93. package/dist/index143.cjs +1 -3
  94. package/dist/index143.js +6 -451
  95. package/dist/index144.cjs +1 -2
  96. package/dist/index144.js +26 -53
  97. package/dist/index145.cjs +1 -1
  98. package/dist/index145.js +26 -26
  99. package/dist/index146.cjs +1 -1
  100. package/dist/index146.js +13 -33
  101. package/dist/index147.cjs +1 -1
  102. package/dist/index147.js +42 -35
  103. package/dist/index148.cjs +1 -4
  104. package/dist/index148.js +19 -194
  105. package/dist/index149.cjs +1 -1
  106. package/dist/index149.js +77 -7
  107. package/dist/index150.cjs +1 -1
  108. package/dist/index150.js +2 -13
  109. package/dist/index151.cjs +1 -1
  110. package/dist/index151.js +32 -13
  111. package/dist/index152.cjs +1 -1
  112. package/dist/index152.js +106 -22
  113. package/dist/index153.cjs +1 -1
  114. package/dist/index153.js +166 -8
  115. package/dist/index154.cjs +1 -1
  116. package/dist/index154.js +46 -52
  117. package/dist/index155.cjs +1 -1
  118. package/dist/index155.js +31 -44
  119. package/dist/index156.cjs +1 -1
  120. package/dist/index156.js +8 -8
  121. package/dist/index157.cjs +1 -1
  122. package/dist/index157.js +6 -7
  123. package/dist/index158.cjs +1 -1
  124. package/dist/index158.js +6 -16
  125. package/dist/index159.cjs +1 -1
  126. package/dist/index159.js +11 -18
  127. package/dist/index16.cjs +1 -1
  128. package/dist/index16.js +18 -26
  129. package/dist/index160.cjs +1 -1
  130. package/dist/index160.js +10 -21
  131. package/dist/index161.cjs +1 -1
  132. package/dist/index161.js +13 -51
  133. package/dist/index162.cjs +1 -1
  134. package/dist/index162.js +32 -11
  135. package/dist/index163.cjs +1 -1
  136. package/dist/index163.js +5 -162
  137. package/dist/index164.cjs +1 -1
  138. package/dist/index164.js +7 -21
  139. package/dist/index165.cjs +1 -1
  140. package/dist/index165.js +8 -127
  141. package/dist/index166.cjs +1 -1
  142. package/dist/index166.js +18 -36
  143. package/dist/index167.cjs +1 -1
  144. package/dist/index167.js +31 -6
  145. package/dist/index168.cjs +1 -1
  146. package/dist/index168.js +3 -27
  147. package/dist/index169.cjs +1 -1
  148. package/dist/index169.js +16 -190
  149. package/dist/index17.cjs +1 -1
  150. package/dist/index17.js +113 -14
  151. package/dist/index170.cjs +1 -1
  152. package/dist/index170.js +11 -4
  153. package/dist/index171.cjs +1 -1
  154. package/dist/index171.js +19 -62
  155. package/dist/index172.cjs +1 -1
  156. package/dist/index172.js +23 -3
  157. package/dist/index173.cjs +1 -1
  158. package/dist/index173.js +5 -20
  159. package/dist/index174.cjs +1 -1
  160. package/dist/index174.js +5 -16
  161. package/dist/index175.cjs +1 -1
  162. package/dist/index175.js +8 -23
  163. package/dist/index176.cjs +1 -1
  164. package/dist/index176.js +104 -11
  165. package/dist/index177.cjs +1 -1
  166. package/dist/index177.js +3 -35
  167. package/dist/index178.cjs +1 -1
  168. package/dist/index178.js +19 -3
  169. package/dist/index179.cjs +1 -1
  170. package/dist/index179.js +171 -18
  171. package/dist/index18.cjs +1 -1
  172. package/dist/index18.js +118 -115
  173. package/dist/index180.cjs +1 -1
  174. package/dist/index180.js +16 -26
  175. package/dist/index181.cjs +1 -1
  176. package/dist/index181.js +30 -36
  177. package/dist/index182.cjs +1 -1
  178. package/dist/index182.js +2 -11
  179. package/dist/index183.cjs +1 -1
  180. package/dist/index183.js +13 -25
  181. package/dist/index184.cjs +1 -1
  182. package/dist/index184.js +11 -27
  183. package/dist/index185.cjs +1 -1
  184. package/dist/index185.js +45 -63
  185. package/dist/index186.cjs +1 -1
  186. package/dist/index186.js +11 -9
  187. package/dist/index187.cjs +1 -1
  188. package/dist/index187.js +7 -33
  189. package/dist/index188.cjs +1 -1
  190. package/dist/index188.js +89 -24
  191. package/dist/index189.cjs +1 -1
  192. package/dist/index189.js +46 -24
  193. package/dist/index19.cjs +1 -1
  194. package/dist/index19.js +2 -121
  195. package/dist/index190.cjs +1 -1
  196. package/dist/index190.js +37 -3
  197. package/dist/index191.cjs +1 -1
  198. package/dist/index191.js +17 -14
  199. package/dist/index192.cjs +1 -1
  200. package/dist/index192.js +5 -102
  201. package/dist/index193.cjs +1 -1
  202. package/dist/index193.js +9 -80
  203. package/dist/index194.cjs +1 -1
  204. package/dist/index194.js +13 -5
  205. package/dist/index195.cjs +1 -1
  206. package/dist/index195.js +8 -6
  207. package/dist/index196.cjs +1 -1
  208. package/dist/index196.js +8 -27
  209. package/dist/index197.cjs +1 -1
  210. package/dist/index197.js +35 -26
  211. package/dist/index198.cjs +1 -1
  212. package/dist/index198.js +16 -13
  213. package/dist/index199.cjs +1 -1
  214. package/dist/index199.js +14 -42
  215. package/dist/index20.cjs +1 -1
  216. package/dist/index20.js +13 -2
  217. package/dist/index200.cjs +1 -1
  218. package/dist/index200.js +13 -5
  219. package/dist/index201.cjs +2 -1
  220. package/dist/index201.js +24 -11
  221. package/dist/index202.cjs +1 -1
  222. package/dist/index202.js +6 -19
  223. package/dist/index203.cjs +1 -1
  224. package/dist/index203.js +24 -77
  225. package/dist/index204.cjs +1 -1
  226. package/dist/index204.js +19 -2
  227. package/dist/index205.cjs +1 -1
  228. package/dist/index205.js +15 -37
  229. package/dist/index206.cjs +1 -1
  230. package/dist/index206.js +5 -111
  231. package/dist/index207.cjs +1 -1
  232. package/dist/index207.js +13 -49
  233. package/dist/index208.cjs +1 -1
  234. package/dist/index208.js +9 -31
  235. package/dist/index209.cjs +1 -1
  236. package/dist/index209.js +16 -8
  237. package/dist/index21.cjs +1 -1
  238. package/dist/index21.js +283 -13
  239. package/dist/index210.cjs +2 -1
  240. package/dist/index210.js +41 -6
  241. package/dist/index211.cjs +1 -1
  242. package/dist/index211.js +2 -7
  243. package/dist/index212.cjs +1 -1
  244. package/dist/index212.js +5 -11
  245. package/dist/index213.cjs +1 -1
  246. package/dist/index213.js +9 -9
  247. package/dist/index214.cjs +1 -1
  248. package/dist/index214.js +18 -12
  249. package/dist/index215.cjs +1 -1
  250. package/dist/index215.js +8 -32
  251. package/dist/index216.cjs +1 -1
  252. package/dist/index216.js +67 -5
  253. package/dist/index217.cjs +1 -1
  254. package/dist/index217.js +65 -7
  255. package/dist/index218.cjs +1 -1
  256. package/dist/index218.js +184 -6
  257. package/dist/index219.cjs +1 -1
  258. package/dist/index219.js +26 -18
  259. package/dist/index22.cjs +1 -1
  260. package/dist/index22.js +36 -497
  261. package/dist/index220.cjs +1 -1
  262. package/dist/index220.js +74 -29
  263. package/dist/index221.cjs +1 -1
  264. package/dist/index221.js +40 -3
  265. package/dist/index222.cjs +1 -1
  266. package/dist/index222.js +16 -17
  267. package/dist/index223.cjs +1 -1
  268. package/dist/index223.js +13 -10
  269. package/dist/index224.cjs +1 -1
  270. package/dist/index224.js +11 -20
  271. package/dist/index225.cjs +1 -1
  272. package/dist/index225.js +11 -22
  273. package/dist/index226.cjs +1 -1
  274. package/dist/index226.js +103 -5
  275. package/dist/index227.cjs +1 -1
  276. package/dist/index227.js +6 -5
  277. package/dist/index228.cjs +1 -1
  278. package/dist/index228.js +244 -8
  279. package/dist/index229.cjs +1 -1
  280. package/dist/index229.js +6 -104
  281. package/dist/index23.cjs +1 -1
  282. package/dist/index23.js +25 -34
  283. package/dist/index230.cjs +1 -1
  284. package/dist/index230.js +7 -3
  285. package/dist/index231.cjs +1 -1
  286. package/dist/index231.js +24 -16
  287. package/dist/index232.cjs +1 -1
  288. package/dist/index232.js +17 -169
  289. package/dist/index233.cjs +1 -1
  290. package/dist/index233.js +145 -16
  291. package/dist/index234.cjs +1 -1
  292. package/dist/index234.js +24 -9
  293. package/dist/index235.cjs +1 -1
  294. package/dist/index235.js +45 -15
  295. package/dist/index236.cjs +1 -1
  296. package/dist/index236.js +9 -22
  297. package/dist/index237.cjs +1 -1
  298. package/dist/index237.js +42 -30
  299. package/dist/index238.cjs +1 -1
  300. package/dist/index238.js +79 -2
  301. package/dist/index239.cjs +1 -1
  302. package/dist/index239.js +2 -14
  303. package/dist/index24.cjs +1 -1
  304. package/dist/index24.js +8 -30
  305. package/dist/index240.cjs +1 -1
  306. package/dist/index240.js +10 -11
  307. package/dist/index241.cjs +1 -1
  308. package/dist/index241.js +18 -46
  309. package/dist/index242.cjs +1 -1
  310. package/dist/index242.js +68 -11
  311. package/dist/index243.cjs +1 -1
  312. package/dist/index243.js +788 -7
  313. package/dist/index244.cjs +1 -1
  314. package/dist/index244.js +148 -9
  315. package/dist/index245.cjs +1 -1
  316. package/dist/index245.js +199 -12
  317. package/dist/index246.cjs +2 -1
  318. package/dist/index246.js +65 -13
  319. package/dist/index247.cjs +1 -1
  320. package/dist/index247.js +14 -9
  321. package/dist/index248.cjs +1 -1
  322. package/dist/index248.js +4 -24
  323. package/dist/index249.cjs +1 -1
  324. package/dist/index249.js +2 -13
  325. package/dist/index25.cjs +1 -1
  326. package/dist/index25.js +13 -30
  327. package/dist/index26.cjs +1 -1
  328. package/dist/index26.js +57 -11
  329. package/dist/index27.cjs +16 -1
  330. package/dist/index27.js +113 -57
  331. package/dist/index28.cjs +1 -1
  332. package/dist/index28.js +30 -13
  333. package/dist/index29.cjs +1 -16
  334. package/dist/index29.js +7 -113
  335. package/dist/index30.cjs +1 -1
  336. package/dist/index30.js +30 -25
  337. package/dist/index31.cjs +1 -1
  338. package/dist/index31.js +28 -6
  339. package/dist/index32.cjs +1 -1
  340. package/dist/index32.js +16 -7
  341. package/dist/index33.cjs +1 -1
  342. package/dist/index33.js +32 -30
  343. package/dist/index34.cjs +1 -1
  344. package/dist/index34.js +40 -25
  345. package/dist/index35.cjs +1 -1
  346. package/dist/index35.js +151 -16
  347. package/dist/index36.cjs +1 -1
  348. package/dist/index36.js +30 -28
  349. package/dist/index37.cjs +1 -1
  350. package/dist/index37.js +54 -41
  351. package/dist/index38.cjs +2 -1
  352. package/dist/index38.js +59 -151
  353. package/dist/index39.cjs +1 -1
  354. package/dist/index39.js +12 -34
  355. package/dist/index4.cjs +1 -1
  356. package/dist/index4.js +4 -4
  357. package/dist/index40.cjs +1 -1
  358. package/dist/index40.js +37 -57
  359. package/dist/index41.cjs +1 -2
  360. package/dist/index41.js +15 -59
  361. package/dist/index42.cjs +1 -1
  362. package/dist/index42.js +8 -13
  363. package/dist/index43.cjs +1 -1
  364. package/dist/index43.js +19 -36
  365. package/dist/index44.cjs +1 -1
  366. package/dist/index44.js +2 -16
  367. package/dist/index45.cjs +1 -1
  368. package/dist/index45.js +44 -7
  369. package/dist/index46.cjs +1 -1
  370. package/dist/index46.js +31 -19
  371. package/dist/index47.cjs +1 -1
  372. package/dist/index47.js +4 -2
  373. package/dist/index48.cjs +1 -1
  374. package/dist/index48.js +8 -44
  375. package/dist/index49.cjs +1 -1
  376. package/dist/index49.js +67 -31
  377. package/dist/index50.cjs +1 -1
  378. package/dist/index50.js +9 -3
  379. package/dist/index51.cjs +1 -1
  380. package/dist/index51.js +28 -9
  381. package/dist/index52.cjs +1 -1
  382. package/dist/index52.js +71 -68
  383. package/dist/index53.cjs +1 -1
  384. package/dist/index53.js +19 -9
  385. package/dist/index54.cjs +1 -1
  386. package/dist/index54.js +48 -26
  387. package/dist/index55.cjs +1 -1
  388. package/dist/index55.js +7 -71
  389. package/dist/index56.cjs +1 -1
  390. package/dist/index56.js +16 -19
  391. package/dist/index57.cjs +1 -1
  392. package/dist/index57.js +10 -110
  393. package/dist/index58.cjs +1 -1
  394. package/dist/index58.js +5 -61
  395. package/dist/index59.cjs +1 -1
  396. package/dist/index59.js +13 -23
  397. package/dist/index6.cjs +1 -1
  398. package/dist/index6.js +1 -1
  399. package/dist/index60.cjs +1 -1
  400. package/dist/index60.js +3 -36
  401. package/dist/index61.cjs +1 -1
  402. package/dist/index61.js +25 -40
  403. package/dist/index62.cjs +1 -1
  404. package/dist/index62.js +108 -57
  405. package/dist/index63.cjs +1 -1
  406. package/dist/index63.js +4 -166
  407. package/dist/index64.cjs +1 -1
  408. package/dist/index64.js +6 -40
  409. package/dist/index65.cjs +1 -1
  410. package/dist/index65.js +87 -8
  411. package/dist/index66.cjs +1 -1
  412. package/dist/index66.js +6 -36
  413. package/dist/index67.cjs +1 -1
  414. package/dist/index67.js +125 -9
  415. package/dist/index68.cjs +1 -1
  416. package/dist/index68.js +7 -50
  417. package/dist/index69.cjs +1 -1
  418. package/dist/index69.js +19 -87
  419. package/dist/index70.cjs +1 -1
  420. package/dist/index70.js +16 -40
  421. package/dist/index71.cjs +1 -1
  422. package/dist/index71.js +39 -7
  423. package/dist/index72.cjs +1 -1
  424. package/dist/index72.js +21 -6
  425. package/dist/index73.cjs +1 -1
  426. package/dist/index73.js +11 -17
  427. package/dist/index74.cjs +1 -1
  428. package/dist/index74.js +6 -8
  429. package/dist/index75.cjs +1 -1
  430. package/dist/index75.js +106 -13
  431. package/dist/index76.cjs +1 -1
  432. package/dist/index76.js +3 -8
  433. package/dist/index77.cjs +1 -1
  434. package/dist/index77.js +9 -10
  435. package/dist/index78.cjs +2 -1
  436. package/dist/index78.js +3 -47
  437. package/dist/index79.cjs +20 -1
  438. package/dist/index79.js +326 -13
  439. package/dist/index80.cjs +1 -1
  440. package/dist/index80.js +13 -16
  441. package/dist/index81.cjs +1 -1
  442. package/dist/index81.js +4 -13
  443. package/dist/index82.cjs +1 -1
  444. package/dist/index82.js +2 -7
  445. package/dist/index83.cjs +1 -1
  446. package/dist/index83.js +7 -35
  447. package/dist/index84.cjs +3 -1
  448. package/dist/index84.js +215 -9
  449. package/dist/index85.cjs +1 -1
  450. package/dist/index85.js +32 -9
  451. package/dist/index86.cjs +1 -1
  452. package/dist/index86.js +20 -25
  453. package/dist/index87.cjs +1 -1
  454. package/dist/index87.js +5 -10
  455. package/dist/index88.cjs +1 -1
  456. package/dist/index88.js +73 -14
  457. package/dist/index89.cjs +1 -1
  458. package/dist/index89.js +5 -118
  459. package/dist/index90.cjs +1 -1
  460. package/dist/index90.js +5 -81
  461. package/dist/index91.cjs +9 -1
  462. package/dist/index91.js +32 -174
  463. package/dist/index92.cjs +3 -1
  464. package/dist/index92.js +95 -6
  465. package/dist/index93.cjs +1 -1
  466. package/dist/index93.js +3 -14
  467. package/dist/index94.cjs +1 -1
  468. package/dist/index94.js +23 -13
  469. package/dist/index95.cjs +3 -1
  470. package/dist/index95.js +451 -103
  471. package/dist/index96.cjs +2 -1
  472. package/dist/index96.js +53 -74
  473. package/dist/index97.cjs +1 -1
  474. package/dist/index97.js +20 -89
  475. package/dist/index98.cjs +1 -1
  476. package/dist/index98.js +34 -137
  477. package/dist/index99.cjs +4 -1
  478. package/dist/index99.js +193 -68
  479. package/dist/src/index.d.ts +0 -1
  480. package/package.json +1 -1
  481. package/dist/index250.cjs +0 -1
  482. package/dist/index250.js +0 -27
  483. package/dist/index251.cjs +0 -1
  484. package/dist/index251.js +0 -16
  485. package/dist/index252.cjs +0 -1
  486. package/dist/index252.js +0 -18
  487. package/dist/index253.cjs +0 -2
  488. package/dist/index253.js +0 -27
  489. package/dist/index254.cjs +0 -1
  490. package/dist/index254.js +0 -55
  491. package/dist/index255.cjs +0 -1
  492. package/dist/index255.js +0 -28
  493. package/dist/index256.cjs +0 -1
  494. package/dist/index256.js +0 -21
  495. package/dist/index257.cjs +0 -1
  496. package/dist/index257.js +0 -18
  497. package/dist/index258.cjs +0 -1
  498. package/dist/index258.js +0 -8
  499. package/dist/index259.cjs +0 -1
  500. package/dist/index259.js +0 -16
  501. package/dist/index260.cjs +0 -1
  502. package/dist/index260.js +0 -13
  503. package/dist/index261.cjs +0 -1
  504. package/dist/index261.js +0 -19
  505. package/dist/index262.cjs +0 -2
  506. package/dist/index262.js +0 -44
  507. package/dist/index263.cjs +0 -1
  508. package/dist/index263.js +0 -4
  509. package/dist/index264.cjs +0 -1
  510. package/dist/index264.js +0 -8
  511. package/dist/index265.cjs +0 -1
  512. package/dist/index265.js +0 -13
  513. package/dist/index266.cjs +0 -1
  514. package/dist/index266.js +0 -22
  515. package/dist/index267.cjs +0 -1
  516. package/dist/index267.js +0 -11
  517. package/dist/index268.cjs +0 -1
  518. package/dist/index268.js +0 -69
  519. package/dist/index269.cjs +0 -1
  520. package/dist/index269.js +0 -68
  521. package/dist/index270.cjs +0 -1
  522. package/dist/index270.js +0 -189
  523. package/dist/index271.cjs +0 -1
  524. package/dist/index271.js +0 -31
  525. package/dist/index272.cjs +0 -1
  526. package/dist/index272.js +0 -79
  527. package/dist/index273.cjs +0 -1
  528. package/dist/index273.js +0 -43
  529. package/dist/index274.cjs +0 -1
  530. package/dist/index274.js +0 -19
  531. package/dist/index275.cjs +0 -1
  532. package/dist/index275.js +0 -16
  533. package/dist/index276.cjs +0 -1
  534. package/dist/index276.js +0 -15
  535. package/dist/index277.cjs +0 -1
  536. package/dist/index277.js +0 -14
  537. package/dist/index278.cjs +0 -2
  538. package/dist/index278.js +0 -21
  539. package/dist/index279.cjs +0 -1
  540. package/dist/index279.js +0 -17
  541. package/dist/index280.cjs +0 -1
  542. package/dist/index280.js +0 -106
  543. package/dist/index281.cjs +0 -1
  544. package/dist/index281.js +0 -9
  545. package/dist/index282.cjs +0 -1
  546. package/dist/index282.js +0 -247
  547. package/dist/index283.cjs +0 -1
  548. package/dist/index283.js +0 -9
  549. package/dist/index284.cjs +0 -1
  550. package/dist/index284.js +0 -9
  551. package/dist/index285.cjs +0 -1
  552. package/dist/index285.js +0 -29
  553. package/dist/index286.cjs +0 -1
  554. package/dist/index286.js +0 -22
  555. package/dist/index287.cjs +0 -1
  556. package/dist/index287.js +0 -149
  557. package/dist/index288.cjs +0 -1
  558. package/dist/index288.js +0 -6
  559. package/dist/index289.cjs +0 -1
  560. package/dist/index289.js +0 -158
  561. package/dist/index290.cjs +0 -1
  562. package/dist/index290.js +0 -12
  563. package/dist/index291.cjs +0 -1
  564. package/dist/index291.js +0 -143
  565. package/dist/index292.cjs +0 -1
  566. package/dist/index292.js +0 -116
  567. package/dist/index293.cjs +0 -2
  568. package/dist/index293.js +0 -137
  569. package/dist/index294.cjs +0 -1
  570. package/dist/index294.js +0 -45
  571. package/dist/index295.cjs +0 -1
  572. package/dist/index295.js +0 -81
  573. package/dist/index296.cjs +0 -1
  574. package/dist/index296.js +0 -4
  575. package/dist/index297.cjs +0 -1
  576. package/dist/index297.js +0 -14
  577. package/dist/index298.cjs +0 -1
  578. package/dist/index298.js +0 -22
  579. package/dist/index299.cjs +0 -1
  580. package/dist/index299.js +0 -71
  581. package/dist/index300.cjs +0 -1
  582. package/dist/index300.js +0 -791
  583. package/dist/index301.cjs +0 -1
  584. package/dist/index301.js +0 -151
  585. package/dist/index302.cjs +0 -1
  586. package/dist/index302.js +0 -203
  587. package/dist/index303.cjs +0 -2
  588. package/dist/index303.js +0 -69
  589. package/dist/index304.cjs +0 -1
  590. package/dist/index304.js +0 -10
  591. package/dist/index305.cjs +0 -1
  592. package/dist/index305.js +0 -65
  593. package/dist/index306.cjs +0 -1
  594. package/dist/index306.js +0 -25
  595. package/dist/index307.cjs +0 -1
  596. package/dist/index307.js +0 -8
  597. package/dist/index308.cjs +0 -1
  598. package/dist/index308.js +0 -80
  599. package/dist/index309.cjs +0 -1
  600. package/dist/index309.js +0 -6
  601. package/dist/index310.cjs +0 -1
  602. package/dist/index310.js +0 -197
  603. package/dist/index311.cjs +0 -1
  604. package/dist/index311.js +0 -7
  605. package/dist/index312.cjs +0 -1
  606. package/dist/index312.js +0 -43
  607. package/dist/index313.cjs +0 -2
  608. package/dist/index313.js +0 -44
  609. package/dist/index314.cjs +0 -1
  610. package/dist/index314.js +0 -4
  611. package/dist/index315.cjs +0 -1
  612. package/dist/index315.js +0 -13
  613. package/dist/index316.cjs +0 -1
  614. package/dist/index316.js +0 -22
  615. package/dist/index317.cjs +0 -1
  616. package/dist/index317.js +0 -11
  617. package/dist/index318.cjs +0 -1
  618. package/dist/index318.js +0 -45
  619. package/dist/index319.cjs +0 -1
  620. package/dist/index319.js +0 -69
  621. package/dist/index320.cjs +0 -1
  622. package/dist/index320.js +0 -68
  623. package/dist/index321.cjs +0 -1
  624. package/dist/index321.js +0 -191
  625. package/dist/index322.cjs +0 -1
  626. package/dist/index322.js +0 -79
  627. package/dist/index323.cjs +0 -1
  628. package/dist/index323.js +0 -43
  629. package/dist/index324.cjs +0 -1
  630. package/dist/index324.js +0 -19
  631. package/dist/index325.cjs +0 -1
  632. package/dist/index325.js +0 -16
  633. package/dist/index326.cjs +0 -1
  634. package/dist/index326.js +0 -7
  635. package/dist/index327.cjs +0 -1
  636. package/dist/index327.js +0 -66
  637. package/dist/index328.cjs +0 -1
  638. package/dist/index328.js +0 -7
  639. package/dist/index329.cjs +0 -1
  640. package/dist/index329.js +0 -47
  641. package/dist/index330.cjs +0 -1
  642. package/dist/index330.js +0 -71
  643. package/dist/index331.cjs +0 -1
  644. package/dist/index331.js +0 -4
  645. package/dist/index332.cjs +0 -1
  646. package/dist/index332.js +0 -24
  647. package/dist/src/lib/blockNumber/blockNumber.d.ts +0 -10
  648. package/dist/src/lib/blockNumber/index.d.ts +0 -1
package/dist/index81.js CHANGED
@@ -1,16 +1,7 @@
1
- import { parseEventLogs as a } from "./index185.js";
2
- import { formatLog as e } from "./index162.js";
3
- async function c(g, { filter: t }) {
4
- const s = t.strict ?? !1, o = (await t.request({
5
- method: "eth_getFilterLogs",
6
- params: [t.id]
7
- })).map((r) => e(r));
8
- return t.abi ? a({
9
- abi: t.abi,
10
- logs: o,
11
- strict: s
12
- }) : o;
1
+ import { isHex as r } from "./index138.js";
2
+ function i(t) {
3
+ return r(t, { strict: !1 }) ? Math.ceil((t.length - 2) / 2) : t.length;
13
4
  }
14
5
  export {
15
- c as getFilterLogs
6
+ i as size
16
7
  };
package/dist/index82.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function r(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}exports.getGasPrice=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="2.35.1";exports.version=e;
package/dist/index82.js CHANGED
@@ -1,9 +1,4 @@
1
- async function r(e) {
2
- const t = await e.request({
3
- method: "eth_gasPrice"
4
- });
5
- return BigInt(t);
6
- }
1
+ const o = "2.35.1";
7
2
  export {
8
- r as getGasPrice
3
+ o as version
9
4
  };
package/dist/index83.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index181.cjs"),q=require("./index185.cjs"),m=require("./index155.cjs"),y=require("./index162.cjs");async function T(i,{address:a,blockHash:g,fromBlock:o,toBlock:s,event:n,events:c,args:u,strict:L}={}){const b=L??!1,t=c??(n?[n]:void 0);let e=[];t&&(e=[t.flatMap(p=>l.encodeEventTopics({abi:[p],eventName:p.name,args:c?void 0:u}))],n&&(e=e[0]));let r;g?r=await i.request({method:"eth_getLogs",params:[{address:a,topics:e,blockHash:g}]}):r=await i.request({method:"eth_getLogs",params:[{address:a,topics:e,fromBlock:typeof o=="bigint"?m.numberToHex(o):o,toBlock:typeof s=="bigint"?m.numberToHex(s):s}]});const d=r.map(f=>y.formatLog(f));return t?q.parseEventLogs({abi:t,args:u,logs:d,strict:b}):d}exports.getLogs=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index38.cjs");class n extends t.BaseError{constructor({blockHash:r,blockNumber:e}){let o="Block";r&&(o=`Block at hash "${r}"`),e&&(o=`Block at number "${e}"`),super(`${o} could not be found.`,{name:"BlockNotFoundError"})}}exports.BlockNotFoundError=n;
package/dist/index83.js CHANGED
@@ -1,38 +1,10 @@
1
- import { encodeEventTopics as h } from "./index181.js";
2
- import { parseEventLogs as l } from "./index185.js";
3
- import { numberToHex as u } from "./index155.js";
4
- import { formatLog as y } from "./index162.js";
5
- async function T(n, { address: a, blockHash: m, fromBlock: o, toBlock: i, event: r, events: f, args: g, strict: L } = {}) {
6
- const b = L ?? !1, e = f ?? (r ? [r] : void 0);
7
- let t = [];
8
- e && (t = [e.flatMap((c) => h({
9
- abi: [c],
10
- eventName: c.name,
11
- args: f ? void 0 : g
12
- }))], r && (t = t[0]));
13
- let s;
14
- m ? s = await n.request({
15
- method: "eth_getLogs",
16
- params: [{ address: a, topics: t, blockHash: m }]
17
- }) : s = await n.request({
18
- method: "eth_getLogs",
19
- params: [
20
- {
21
- address: a,
22
- topics: t,
23
- fromBlock: typeof o == "bigint" ? u(o) : o,
24
- toBlock: typeof i == "bigint" ? u(i) : i
25
- }
26
- ]
27
- });
28
- const p = s.map((d) => y(d));
29
- return e ? l({
30
- abi: e,
31
- args: g,
32
- logs: p,
33
- strict: b
34
- }) : p;
1
+ import { BaseError as e } from "./index38.js";
2
+ class d extends e {
3
+ constructor({ blockHash: r, blockNumber: t }) {
4
+ let o = "Block";
5
+ r && (o = `Block at hash "${r}"`), t && (o = `Block at number "${t}"`), super(`${o} could not be found.`, { name: "BlockNotFoundError" });
6
+ }
35
7
  }
36
8
  export {
37
- T as getLogs
9
+ d as BlockNotFoundError
38
10
  };
package/dist/index84.cjs CHANGED
@@ -1 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index155.cjs"),u=require("./index252.cjs");async function i(o,{address:t,blockNumber:e,blockTag:r,storageKeys:n}){const a=r??"latest",c=e!==void 0?s.numberToHex(e):void 0,f=await o.request({method:"eth_getProof",params:[t,n,c||a]});return u.formatProof(f)}exports.getProof=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("./index47.cjs"),C=require("./index85.cjs"),P=require("./index86.cjs"),v=require("./index80.cjs"),E=require("./index87.cjs"),$=require("./index88.cjs"),j=require("./index89.cjs"),h=require("./index90.cjs"),x=require("./index79.cjs"),m=require("./index38.cjs"),F=require("./index91.cjs"),w=require("./index92.cjs"),O=require("./index93.cjs");class q extends m.BaseError{constructor(e,{account:o,docsPath:c,chain:n,data:l,gas:a,gasPrice:u,maxFeePerGas:r,maxPriorityFeePerGas:t,nonce:i,to:s,value:d,stateOverride:f}){var p;const b=o?A.parseAccount(o):void 0;let y=w.prettyPrint({from:b==null?void 0:b.address,to:s,value:typeof d<"u"&&`${j.formatEther(d)} ${((p=n==null?void 0:n.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:l,gas:a,gasPrice:typeof u<"u"&&`${h.formatGwei(u)} gwei`,maxFeePerGas:typeof r<"u"&&`${h.formatGwei(r)} gwei`,maxPriorityFeePerGas:typeof t<"u"&&`${h.formatGwei(t)} gwei`,nonce:i});f&&(y+=`
2
+ ${F.prettyStateOverride(f)}`),super(e.shortMessage,{cause:e,docsPath:c,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class M extends m.BaseError{constructor(e,{abi:o,args:c,contractAddress:n,docsPath:l,functionName:a,sender:u}){const r=$.getAbiItem({abi:o,args:c,name:a}),t=r?E.formatAbiItemWithArgs({abiItem:r,args:c,includeFunctionName:!1,includeName:!1}):void 0,i=r?v.formatAbiItem(r,{includeName:!0}):void 0,s=w.prettyPrint({address:n&&O.getContractAddress(n),function:i,args:t&&t!=="()"&&`${[...Array((a==null?void 0:a.length)??0).keys()].map(()=>" ").join("")}${t}`,sender:u});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:l,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],s&&"Contract Call:",s].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=o,this.args=c,this.cause=e,this.contractAddress=n,this.functionName=a,this.sender=u}}class I extends m.BaseError{constructor({abi:e,data:o,functionName:c,message:n}){let l,a,u,r;if(o&&o!=="0x")try{a=P.decodeErrorResult({abi:e,data:o});const{abiItem:i,errorName:s,args:d}=a;if(s==="Error")r=d[0];else if(s==="Panic"){const[f]=d;r=C.panicReasons[f]}else{const f=i?v.formatAbiItem(i,{includeName:!0}):void 0,b=i&&d?E.formatAbiItemWithArgs({abiItem:i,args:d,includeFunctionName:!1,includeName:!1}):void 0;u=[f?`Error: ${f}`:"",b&&b!=="()"?` ${[...Array((s==null?void 0:s.length)??0).keys()].map(()=>" ").join("")}${b}`:""]}}catch(i){l=i}else n&&(r=n);let t;l instanceof x.AbiErrorSignatureNotFoundError&&(t=l.signature,u=[`Unable to decode signature "${t}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`]),super(r&&r!=="execution reverted"||t?[`The contract function "${c}" reverted with the following ${t?"signature":"reason"}:`,r||t].join(`
3
+ `):`The contract function "${c}" reverted.`,{cause:l,metaMessages:u,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=a,this.raw=o,this.reason=r,this.signature=t}}class R extends m.BaseError{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class T extends m.BaseError{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class B extends m.BaseError{constructor({data:e,message:o}){super(o||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}exports.CallExecutionError=q;exports.ContractFunctionExecutionError=M;exports.ContractFunctionRevertedError=I;exports.ContractFunctionZeroDataError=R;exports.CounterfactualDeploymentFailedError=T;exports.RawContractError=B;
package/dist/index84.js CHANGED
@@ -1,12 +1,218 @@
1
- import { numberToHex as c } from "./index155.js";
2
- import { formatProof as s } from "./index252.js";
3
- async function d(t, { address: e, blockNumber: o, blockTag: r, storageKeys: n }) {
4
- const f = r ?? "latest", a = o !== void 0 ? c(o) : void 0, m = await t.request({
5
- method: "eth_getProof",
6
- params: [e, n, a || f]
7
- });
8
- return s(m);
1
+ import { parseAccount as $ } from "./index47.js";
2
+ import { panicReasons as A } from "./index85.js";
3
+ import { decodeErrorResult as C } from "./index86.js";
4
+ import { formatAbiItem as v } from "./index80.js";
5
+ import { formatAbiItemWithArgs as w } from "./index87.js";
6
+ import { getAbiItem as P } from "./index88.js";
7
+ import { formatEther as j } from "./index89.js";
8
+ import { formatGwei as p } from "./index90.js";
9
+ import { AbiErrorSignatureNotFoundError as x } from "./index79.js";
10
+ import { BaseError as b } from "./index38.js";
11
+ import { prettyStateOverride as O } from "./index91.js";
12
+ import { prettyPrint as E } from "./index92.js";
13
+ import { getContractAddress as F } from "./index93.js";
14
+ class H extends b {
15
+ constructor(e, { account: o, docsPath: c, chain: n, data: l, gas: a, gasPrice: u, maxFeePerGas: r, maxPriorityFeePerGas: t, nonce: i, to: s, value: d, stateOverride: f }) {
16
+ var y;
17
+ const m = o ? $(o) : void 0;
18
+ let g = E({
19
+ from: m == null ? void 0 : m.address,
20
+ to: s,
21
+ value: typeof d < "u" && `${j(d)} ${((y = n == null ? void 0 : n.nativeCurrency) == null ? void 0 : y.symbol) || "ETH"}`,
22
+ data: l,
23
+ gas: a,
24
+ gasPrice: typeof u < "u" && `${p(u)} gwei`,
25
+ maxFeePerGas: typeof r < "u" && `${p(r)} gwei`,
26
+ maxPriorityFeePerGas: typeof t < "u" && `${p(t)} gwei`,
27
+ nonce: i
28
+ });
29
+ f && (g += `
30
+ ${O(f)}`), super(e.shortMessage, {
31
+ cause: e,
32
+ docsPath: c,
33
+ metaMessages: [
34
+ ...e.metaMessages ? [...e.metaMessages, " "] : [],
35
+ "Raw Call Arguments:",
36
+ g
37
+ ].filter(Boolean),
38
+ name: "CallExecutionError"
39
+ }), Object.defineProperty(this, "cause", {
40
+ enumerable: !0,
41
+ configurable: !0,
42
+ writable: !0,
43
+ value: void 0
44
+ }), this.cause = e;
45
+ }
46
+ }
47
+ class U extends b {
48
+ constructor(e, { abi: o, args: c, contractAddress: n, docsPath: l, functionName: a, sender: u }) {
49
+ const r = P({ abi: o, args: c, name: a }), t = r ? w({
50
+ abiItem: r,
51
+ args: c,
52
+ includeFunctionName: !1,
53
+ includeName: !1
54
+ }) : void 0, i = r ? v(r, { includeName: !0 }) : void 0, s = E({
55
+ address: n && F(n),
56
+ function: i,
57
+ args: t && t !== "()" && `${[...Array((a == null ? void 0 : a.length) ?? 0).keys()].map(() => " ").join("")}${t}`,
58
+ sender: u
59
+ });
60
+ super(e.shortMessage || `An unknown error occurred while executing the contract function "${a}".`, {
61
+ cause: e,
62
+ docsPath: l,
63
+ metaMessages: [
64
+ ...e.metaMessages ? [...e.metaMessages, " "] : [],
65
+ s && "Contract Call:",
66
+ s
67
+ ].filter(Boolean),
68
+ name: "ContractFunctionExecutionError"
69
+ }), Object.defineProperty(this, "abi", {
70
+ enumerable: !0,
71
+ configurable: !0,
72
+ writable: !0,
73
+ value: void 0
74
+ }), Object.defineProperty(this, "args", {
75
+ enumerable: !0,
76
+ configurable: !0,
77
+ writable: !0,
78
+ value: void 0
79
+ }), Object.defineProperty(this, "cause", {
80
+ enumerable: !0,
81
+ configurable: !0,
82
+ writable: !0,
83
+ value: void 0
84
+ }), Object.defineProperty(this, "contractAddress", {
85
+ enumerable: !0,
86
+ configurable: !0,
87
+ writable: !0,
88
+ value: void 0
89
+ }), Object.defineProperty(this, "formattedArgs", {
90
+ enumerable: !0,
91
+ configurable: !0,
92
+ writable: !0,
93
+ value: void 0
94
+ }), Object.defineProperty(this, "functionName", {
95
+ enumerable: !0,
96
+ configurable: !0,
97
+ writable: !0,
98
+ value: void 0
99
+ }), Object.defineProperty(this, "sender", {
100
+ enumerable: !0,
101
+ configurable: !0,
102
+ writable: !0,
103
+ value: void 0
104
+ }), this.abi = o, this.args = c, this.cause = e, this.contractAddress = n, this.functionName = a, this.sender = u;
105
+ }
106
+ }
107
+ class Y extends b {
108
+ constructor({ abi: e, data: o, functionName: c, message: n }) {
109
+ let l, a, u, r;
110
+ if (o && o !== "0x")
111
+ try {
112
+ a = C({ abi: e, data: o });
113
+ const { abiItem: i, errorName: s, args: d } = a;
114
+ if (s === "Error")
115
+ r = d[0];
116
+ else if (s === "Panic") {
117
+ const [f] = d;
118
+ r = A[f];
119
+ } else {
120
+ const f = i ? v(i, { includeName: !0 }) : void 0, m = i && d ? w({
121
+ abiItem: i,
122
+ args: d,
123
+ includeFunctionName: !1,
124
+ includeName: !1
125
+ }) : void 0;
126
+ u = [
127
+ f ? `Error: ${f}` : "",
128
+ m && m !== "()" ? ` ${[...Array((s == null ? void 0 : s.length) ?? 0).keys()].map(() => " ").join("")}${m}` : ""
129
+ ];
130
+ }
131
+ } catch (i) {
132
+ l = i;
133
+ }
134
+ else n && (r = n);
135
+ let t;
136
+ l instanceof x && (t = l.signature, u = [
137
+ `Unable to decode signature "${t}" as it was not found on the provided ABI.`,
138
+ "Make sure you are using the correct ABI and that the error exists on it.",
139
+ `You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`
140
+ ]), super(r && r !== "execution reverted" || t ? [
141
+ `The contract function "${c}" reverted with the following ${t ? "signature" : "reason"}:`,
142
+ r || t
143
+ ].join(`
144
+ `) : `The contract function "${c}" reverted.`, {
145
+ cause: l,
146
+ metaMessages: u,
147
+ name: "ContractFunctionRevertedError"
148
+ }), Object.defineProperty(this, "data", {
149
+ enumerable: !0,
150
+ configurable: !0,
151
+ writable: !0,
152
+ value: void 0
153
+ }), Object.defineProperty(this, "raw", {
154
+ enumerable: !0,
155
+ configurable: !0,
156
+ writable: !0,
157
+ value: void 0
158
+ }), Object.defineProperty(this, "reason", {
159
+ enumerable: !0,
160
+ configurable: !0,
161
+ writable: !0,
162
+ value: void 0
163
+ }), Object.defineProperty(this, "signature", {
164
+ enumerable: !0,
165
+ configurable: !0,
166
+ writable: !0,
167
+ value: void 0
168
+ }), this.data = a, this.raw = o, this.reason = r, this.signature = t;
169
+ }
170
+ }
171
+ class J extends b {
172
+ constructor({ functionName: e }) {
173
+ super(`The contract function "${e}" returned no data ("0x").`, {
174
+ metaMessages: [
175
+ "This could be due to any of the following:",
176
+ ` - The contract does not have the function "${e}",`,
177
+ " - The parameters passed to the contract function may be invalid, or",
178
+ " - The address is not a contract."
179
+ ],
180
+ name: "ContractFunctionZeroDataError"
181
+ });
182
+ }
183
+ }
184
+ class K extends b {
185
+ constructor({ factory: e }) {
186
+ super(`Deployment for counterfactual contract call failed${e ? ` for factory "${e}".` : ""}`, {
187
+ metaMessages: [
188
+ "Please ensure:",
189
+ "- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).",
190
+ "- The `factoryData` is a valid encoded function call for contract deployment function on the factory."
191
+ ],
192
+ name: "CounterfactualDeploymentFailedError"
193
+ });
194
+ }
195
+ }
196
+ class L extends b {
197
+ constructor({ data: e, message: o }) {
198
+ super(o || "", { name: "RawContractError" }), Object.defineProperty(this, "code", {
199
+ enumerable: !0,
200
+ configurable: !0,
201
+ writable: !0,
202
+ value: 3
203
+ }), Object.defineProperty(this, "data", {
204
+ enumerable: !0,
205
+ configurable: !0,
206
+ writable: !0,
207
+ value: void 0
208
+ }), this.data = e;
209
+ }
9
210
  }
10
211
  export {
11
- d as getProof
212
+ H as CallExecutionError,
213
+ U as ContractFunctionExecutionError,
214
+ Y as ContractFunctionRevertedError,
215
+ J as ContractFunctionZeroDataError,
216
+ K as CounterfactualDeploymentFailedError,
217
+ L as RawContractError
12
218
  };
package/dist/index85.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index155.cjs");async function d(t,{address:a,blockNumber:e,blockTag:n="latest",slot:o}){const r=e!==void 0?u.numberToHex(e):void 0;return await t.request({method:"eth_getStorageAt",params:[a,o,r||n]})}exports.getStorageAt=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},o={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},t={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};exports.panicReasons=e;exports.solidityError=o;exports.solidityPanic=t;
package/dist/index85.js CHANGED
@@ -1,11 +1,34 @@
1
- import { numberToHex as d } from "./index155.js";
2
- async function i(e, { address: a, blockNumber: t, blockTag: n = "latest", slot: o }) {
3
- const r = t !== void 0 ? d(t) : void 0;
4
- return await e.request({
5
- method: "eth_getStorageAt",
6
- params: [a, o, r || n]
7
- });
8
- }
1
+ const e = {
2
+ 1: "An `assert` condition failed.",
3
+ 17: "Arithmetic operation resulted in underflow or overflow.",
4
+ 18: "Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",
5
+ 33: "Attempted to convert to an invalid type.",
6
+ 34: "Attempted to access a storage byte array that is incorrectly encoded.",
7
+ 49: "Performed `.pop()` on an empty array",
8
+ 50: "Array index is out of bounds.",
9
+ 65: "Allocated too much memory or created an array which is too large.",
10
+ 81: "Attempted to call a zero-initialized variable of internal function type."
11
+ }, o = {
12
+ inputs: [
13
+ {
14
+ name: "message",
15
+ type: "string"
16
+ }
17
+ ],
18
+ name: "Error",
19
+ type: "error"
20
+ }, t = {
21
+ inputs: [
22
+ {
23
+ name: "reason",
24
+ type: "uint256"
25
+ }
26
+ ],
27
+ name: "Panic",
28
+ type: "error"
29
+ };
9
30
  export {
10
- i as getStorageAt
31
+ e as panicReasons,
32
+ o as solidityError,
33
+ t as solidityPanic
11
34
  };
package/dist/index86.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index140.cjs"),s=require("./index155.cjs"),g=require("./index161.cjs");async function l(t,{blockHash:a,blockNumber:n,blockTag:T,hash:r,index:o}){var c,d,m;const u=T||"latest",i=n!==void 0?s.numberToHex(n):void 0;let e=null;if(r?e=await t.request({method:"eth_getTransactionByHash",params:[r]},{dedupe:!0}):a?e=await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[a,s.numberToHex(o)]},{dedupe:!0}):e=await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[i||u,s.numberToHex(o)]},{dedupe:!!i}),!e)throw new f.TransactionNotFoundError({blockHash:a,blockNumber:n,blockTag:u,hash:r,index:o});return(((m=(d=(c=t.chain)==null?void 0:c.formatters)==null?void 0:d.transaction)==null?void 0:m.format)||g.formatTransaction)(e)}exports.getTransaction=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index85.cjs"),n=require("./index79.cjs"),c=require("./index110.cjs"),u=require("./index116.cjs"),d=require("./index107.cjs"),l=require("./index80.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/index86.js CHANGED
@@ -1,29 +1,24 @@
1
- import { TransactionNotFoundError as p } from "./index140.js";
2
- import { numberToHex as s } from "./index155.js";
3
- import { formatTransaction as T } from "./index161.js";
4
- async function h(e, { blockHash: a, blockNumber: r, blockTag: c, hash: o, index: n }) {
5
- var i, u, f;
6
- const m = c || "latest", d = r !== void 0 ? s(r) : void 0;
7
- let t = null;
8
- if (o ? t = await e.request({
9
- method: "eth_getTransactionByHash",
10
- params: [o]
11
- }, { dedupe: !0 }) : a ? t = await e.request({
12
- method: "eth_getTransactionByBlockHashAndIndex",
13
- params: [a, s(n)]
14
- }, { dedupe: !0 }) : t = await e.request({
15
- method: "eth_getTransactionByBlockNumberAndIndex",
16
- params: [d || m, s(n)]
17
- }, { dedupe: !!d }), !t)
18
- throw new p({
19
- blockHash: a,
20
- blockNumber: r,
21
- blockTag: m,
22
- hash: o,
23
- index: n
1
+ import { solidityError as m, solidityPanic as s } from "./index85.js";
2
+ import { AbiDecodingZeroDataError as c, AbiErrorSignatureNotFoundError as d } from "./index79.js";
3
+ import { slice as e } from "./index110.js";
4
+ import { toFunctionSelector as u } from "./index116.js";
5
+ import { decodeAbiParameters as f } from "./index107.js";
6
+ import { formatAbiItem as p } from "./index80.js";
7
+ function y(n) {
8
+ const { abi: a, data: t } = n, o = e(t, 0, 4);
9
+ if (o === "0x")
10
+ throw new c();
11
+ const r = [...a || [], m, s].find((i) => i.type === "error" && o === u(p(i)));
12
+ if (!r)
13
+ throw new d(o, {
14
+ docsPath: "/docs/contract/decodeErrorResult"
24
15
  });
25
- return (((f = (u = (i = e.chain) == null ? void 0 : i.formatters) == null ? void 0 : u.transaction) == null ? void 0 : f.format) || T)(t);
16
+ return {
17
+ abiItem: r,
18
+ args: "inputs" in r && r.inputs && r.inputs.length > 0 ? f(r.inputs, e(t, 4)) : void 0,
19
+ errorName: r.name
20
+ };
26
21
  }
27
22
  export {
28
- h as getTransaction
23
+ y as decodeErrorResult
29
24
  };
package/dist/index87.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index32.cjs"),i=require("./index74.cjs"),g=require("./index86.cjs");async function b(r,{hash:n,transactionReceipt:e}){const[c,o]=await Promise.all([u.getAction(r,i.getBlockNumber,"getBlockNumber")({}),n?u.getAction(r,g.getTransaction,"getTransaction")({hash:n}):void 0]),t=(e==null?void 0:e.blockNumber)||(o==null?void 0:o.blockNumber);return t?c-t+1n:0n}exports.getTransactionConfirmations=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index44.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/index87.js CHANGED
@@ -1,13 +1,8 @@
1
- import { getAction as b } from "./index32.js";
2
- import { getBlockNumber as t } from "./index74.js";
3
- import { getTransaction as f } from "./index86.js";
4
- async function N(m, { hash: n, transactionReceipt: o }) {
5
- const [e, r] = await Promise.all([
6
- b(m, t, "getBlockNumber")({}),
7
- n ? b(m, f, "getTransaction")({ hash: n }) : void 0
8
- ]), u = (o == null ? void 0 : o.blockNumber) || (r == null ? void 0 : r.blockNumber);
9
- return u ? e - u + 1n : 0n;
1
+ import { stringify as o } from "./index44.js";
2
+ function p({ abiItem: n, args: r, includeFunctionName: f = !0, includeName: i = !1 }) {
3
+ if ("name" in n && "inputs" in n && n.inputs)
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(", ")})`;
10
5
  }
11
6
  export {
12
- N as getTransactionConfirmations
7
+ p as formatAbiItemWithArgs
13
8
  };
package/dist/index88.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index187.cjs"),u=require("./index155.cjs");async function i(e,{address:n,blockTag:o="latest",blockNumber:t}){const r=await e.request({method:"eth_getTransactionCount",params:[n,typeof t=="bigint"?u.numberToHex(t):o]},{dedupe:!!t});return a.hexToNumber(r)}exports.getTransactionCount=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index79.cjs"),g=require("./index138.cjs"),p=require("./index122.cjs"),m=require("./index118.cjs"),b=require("./index116.cjs");function A(s){const{abi:o,args:n=[],name:t}=s,u=g.isHex(t,{strict:!1}),i=o.filter(e=>u?e.type==="function"?b.toFunctionSelector(e)===t:e.type==="event"?m.toEventSelector(e)===t:!1:"name"in e&&e.name===t);if(i.length===0)return;if(i.length===1)return i[0];let r;for(const e of i){if(!("inputs"in e))continue;if(!n||n.length===0){if(!e.inputs||e.inputs.length===0)return e;continue}if(!e.inputs||e.inputs.length===0||e.inputs.length!==n.length)continue;if(n.every((c,d)=>{const a="inputs"in e&&e.inputs[d];return a?f(c,a):!1})){if(r&&"inputs"in r&&r.inputs){const c=l(e.inputs,r.inputs,n);if(c)throw new y.AbiItemAmbiguityError({abiItem:e,type:c[0]},{abiItem:r,type:c[1]})}r=e}}return r||i[0]}function f(s,o){const n=typeof s,t=o.type;switch(t){case"address":return p.isAddress(s,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return t==="tuple"&&"components"in o?Object.values(o.components).every((u,i)=>f(Object.values(s)[i],u)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(t)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(t)?n==="string"||s instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(t)?Array.isArray(s)&&s.every(u=>f(u,{...o,type:t.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function l(s,o,n){for(const t in s){const u=s[t],i=o[t];if(u.type==="tuple"&&i.type==="tuple"&&"components"in u&&"components"in i)return l(u.components,i.components,n[t]);const r=[u.type,i.type];if(r.includes("address")&&r.includes("bytes20")?!0:r.includes("address")&&r.includes("string")?p.isAddress(n[t],{strict:!1}):r.includes("address")&&r.includes("bytes")?p.isAddress(n[t],{strict:!1}):!1)return r}}exports.getAbiItem=A;exports.getAmbiguousTypes=l;exports.isArgOfType=f;
package/dist/index88.js CHANGED
@@ -1,17 +1,76 @@
1
- import { hexToNumber as r } from "./index187.js";
2
- import { numberToHex as i } from "./index155.js";
3
- async function m(o, { address: e, blockTag: n = "latest", blockNumber: t }) {
4
- const a = await o.request({
5
- method: "eth_getTransactionCount",
6
- params: [
7
- e,
8
- typeof t == "bigint" ? i(t) : n
9
- ]
10
- }, {
11
- dedupe: !!t
12
- });
13
- return r(a);
1
+ import { AbiItemAmbiguityError as y } from "./index79.js";
2
+ import { isHex as d } from "./index138.js";
3
+ import { isAddress as f } from "./index122.js";
4
+ import { toEventSelector as g } from "./index118.js";
5
+ import { toFunctionSelector as b } from "./index116.js";
6
+ function x(s) {
7
+ const { abi: o, args: n = [], name: e } = s, u = d(e, { strict: !1 }), i = o.filter((t) => u ? t.type === "function" ? b(t) === e : t.type === "event" ? g(t) === e : !1 : "name" in t && t.name === e);
8
+ if (i.length === 0)
9
+ return;
10
+ if (i.length === 1)
11
+ return i[0];
12
+ let r;
13
+ for (const t of i) {
14
+ if (!("inputs" in t))
15
+ continue;
16
+ if (!n || n.length === 0) {
17
+ if (!t.inputs || t.inputs.length === 0)
18
+ return t;
19
+ continue;
20
+ }
21
+ if (!t.inputs || t.inputs.length === 0 || t.inputs.length !== n.length)
22
+ continue;
23
+ if (n.every((c, m) => {
24
+ const l = "inputs" in t && t.inputs[m];
25
+ return l ? p(c, l) : !1;
26
+ })) {
27
+ if (r && "inputs" in r && r.inputs) {
28
+ const c = a(t.inputs, r.inputs, n);
29
+ if (c)
30
+ throw new y({
31
+ abiItem: t,
32
+ type: c[0]
33
+ }, {
34
+ abiItem: r,
35
+ type: c[1]
36
+ });
37
+ }
38
+ r = t;
39
+ }
40
+ }
41
+ return r || i[0];
42
+ }
43
+ function p(s, o) {
44
+ const n = typeof s, e = o.type;
45
+ switch (e) {
46
+ case "address":
47
+ return f(s, { strict: !1 });
48
+ case "bool":
49
+ return n === "boolean";
50
+ case "function":
51
+ return n === "string";
52
+ case "string":
53
+ return n === "string";
54
+ default:
55
+ return e === "tuple" && "components" in o ? Object.values(o.components).every((u, i) => p(Object.values(s)[i], u)) : /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(e) ? n === "number" || n === "bigint" : /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(e) ? n === "string" || s instanceof Uint8Array : /[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(e) ? Array.isArray(s) && s.every((u) => p(u, {
56
+ ...o,
57
+ // Pop off `[]` or `[M]` from end of type
58
+ type: e.replace(/(\[[0-9]{0,}\])$/, "")
59
+ })) : !1;
60
+ }
61
+ }
62
+ function a(s, o, n) {
63
+ for (const e in s) {
64
+ const u = s[e], i = o[e];
65
+ if (u.type === "tuple" && i.type === "tuple" && "components" in u && "components" in i)
66
+ return a(u.components, i.components, n[e]);
67
+ const r = [u.type, i.type];
68
+ if (r.includes("address") && r.includes("bytes20") ? !0 : r.includes("address") && r.includes("string") ? f(n[e], { strict: !1 }) : r.includes("address") && r.includes("bytes") ? f(n[e], { strict: !1 }) : !1)
69
+ return r;
70
+ }
14
71
  }
15
72
  export {
16
- m as getTransactionCount
73
+ x as getAbiItem,
74
+ a as getAmbiguousTypes,
75
+ p as isArgOfType
17
76
  };
package/dist/index89.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index22.cjs"),_=require("./index127.cjs"),x=require("./index41.cjs"),O=require("./index132.cjs"),T=require("./index175.cjs"),B=require("./index182.cjs"),L=require("./index219.cjs"),z=require("./index225.cjs"),M=require("./index32.cjs"),Z=require("./index36.cjs");async function $(l,m){var D;const{account:w,authorizationList:j,allowFailure:u=!0,batchSize:k,blockNumber:C,blockTag:p,multicallAddress:R,stateOverride:N}=m,d=m.contracts,q=k??(typeof((D=l.batch)==null?void 0:D.multicall)=="object"&&l.batch.multicall.batchSize||1024);let g=R;if(!g){if(!l.chain)throw new Error("client chain not configured. multicallAddress is required.");g=L.getChainContractAddress({blockNumber:C,chain:l.chain,contract:"multicall3"})}const r=[[]];let a=0,f=0;for(let t=0;t<d.length;t++){const{abi:c,address:s,args:e,functionName:i}=d[t];try{const n=B.encodeFunctionData({abi:c,args:e,functionName:i});f+=(n.length-2)/2,q>0&&f>q&&r[a].length>0&&(a++,f=(n.length-2)/2,r[a]=[]),r[a]=[...r[a],{allowFailure:!0,callData:n,target:s}]}catch(n){const b=z.getContractError(n,{abi:c,address:s,args:e,docsPath:"/docs/contract/multicall",functionName:i,sender:w});if(!u)throw b;r[a]=[...r[a],{allowFailure:!0,callData:"0x",target:s}]}}const A=await Promise.allSettled(r.map(t=>M.getAction(l,Z.readContract,"readContract")({abi:v.multicall3Abi,account:w,address:g,args:[t],authorizationList:j,blockNumber:C,blockTag:p,functionName:"aggregate3",stateOverride:N}))),o=[];for(let t=0;t<A.length;t++){const c=A[t];if(c.status==="rejected"){if(!u)throw c.reason;for(let e=0;e<r[t].length;e++)o.push({status:"failure",error:c.reason,result:void 0});continue}const s=c.value;for(let e=0;e<s.length;e++){const{returnData:i,success:n}=s[e],{callData:b}=r[t][e],{abi:S,address:P,functionName:E,args:F}=d[o.length];try{if(b==="0x")throw new _.AbiDecodingZeroDataError;if(!n)throw new O.RawContractError({data:i});const h=T.decodeFunctionResult({abi:S,args:F,data:i,functionName:E});o.push(u?{result:h,status:"success"}:h)}catch(h){const y=z.getContractError(h,{abi:S,address:P,args:F,docsPath:"/docs/contract/multicall",functionName:E});if(!u)throw y;o.push({error:y,result:void 0,status:"failure"})}}}if(o.length!==d.length)throw new x.BaseError("multicall results mismatch");return o}exports.multicall=$;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index77.cjs"),i=require("./index170.cjs");function n(t,e="wei"){return i.formatUnits(t,r.etherUnits[e])}exports.formatEther=n;