@gardenfi/utils 2.1.2-beta.11 → 2.1.2-beta.12

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 (597) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +20 -21
  3. package/dist/index100.cjs +1 -1
  4. package/dist/index100.js +15 -7
  5. package/dist/index101.cjs +1 -1
  6. package/dist/index101.js +65 -26
  7. package/dist/index102.cjs +1 -1
  8. package/dist/index102.js +11 -10
  9. package/dist/index103.cjs +1 -1
  10. package/dist/index103.js +13 -9
  11. package/dist/index104.cjs +1 -1
  12. package/dist/index104.js +8 -115
  13. package/dist/index105.cjs +1 -1
  14. package/dist/index105.js +10 -80
  15. package/dist/index106.cjs +1 -1
  16. package/dist/index106.js +25 -180
  17. package/dist/index107.cjs +1 -1
  18. package/dist/index107.js +9 -6
  19. package/dist/index108.cjs +3 -1
  20. package/dist/index108.js +110 -13
  21. package/dist/index109.cjs +1 -1
  22. package/dist/index109.js +51 -13
  23. package/dist/index110.cjs +1 -1
  24. package/dist/index110.js +24 -93
  25. package/dist/index111.cjs +1 -1
  26. package/dist/index111.js +113 -73
  27. package/dist/index112.cjs +20 -1
  28. package/dist/index112.js +326 -88
  29. package/dist/index113.cjs +1 -1
  30. package/dist/index113.js +78 -136
  31. package/dist/index114.cjs +1 -1
  32. package/dist/index114.js +30 -69
  33. package/dist/index115.cjs +4 -1
  34. package/dist/index115.js +194 -23
  35. package/dist/index116.cjs +1 -1
  36. package/dist/index116.js +24 -109
  37. package/dist/index117.cjs +1 -1
  38. package/dist/index117.js +181 -6
  39. package/dist/index118.cjs +1 -1
  40. package/dist/index118.js +12 -50
  41. package/dist/index119.cjs +1 -1
  42. package/dist/index119.js +24 -16
  43. package/dist/index120.cjs +1 -1
  44. package/dist/index120.js +3 -11
  45. package/dist/index121.cjs +1 -1
  46. package/dist/index121.js +88 -5
  47. package/dist/index122.cjs +1 -1
  48. package/dist/index122.js +32 -10
  49. package/dist/index123.cjs +1 -1
  50. package/dist/index123.js +15 -3
  51. package/dist/index124.cjs +1 -1
  52. package/dist/index124.js +2 -27
  53. package/dist/index125.cjs +1 -1
  54. package/dist/index125.js +75 -4
  55. package/dist/index126.cjs +1 -1
  56. package/dist/index126.js +138 -6
  57. package/dist/index127.cjs +3 -1
  58. package/dist/index127.js +449 -45
  59. package/dist/index128.cjs +1 -1
  60. package/dist/index128.js +58 -119
  61. package/dist/index129.cjs +1 -1
  62. package/dist/index129.js +5 -6
  63. package/dist/index130.cjs +1 -1
  64. package/dist/index130.js +68 -20
  65. package/dist/index131.cjs +1 -1
  66. package/dist/index131.js +5 -17
  67. package/dist/index132.cjs +1 -1
  68. package/dist/index132.js +21 -40
  69. package/dist/index133.cjs +1 -1
  70. package/dist/index133.js +3 -21
  71. package/dist/index134.cjs +1 -1
  72. package/dist/index134.js +10 -11
  73. package/dist/index135.cjs +1 -1
  74. package/dist/index135.js +47 -6
  75. package/dist/index136.cjs +2 -1
  76. package/dist/index136.js +23 -105
  77. package/dist/index137.cjs +1 -1
  78. package/dist/index137.js +14 -3
  79. package/dist/index138.cjs +1 -1
  80. package/dist/index138.js +27 -4
  81. package/dist/index139.cjs +1 -1
  82. package/dist/index139.js +8 -9
  83. package/dist/index140.cjs +1 -1
  84. package/dist/index140.js +39 -2
  85. package/dist/index141.cjs +1 -2
  86. package/dist/index141.js +9 -3
  87. package/dist/index142.cjs +1 -20
  88. package/dist/index142.js +9 -326
  89. package/dist/index143.cjs +1 -1
  90. package/dist/index143.js +14 -12
  91. package/dist/index144.cjs +1 -1
  92. package/dist/index144.js +93 -4
  93. package/dist/index145.cjs +1 -1
  94. package/dist/index145.js +21 -2
  95. package/dist/index146.cjs +1 -1
  96. package/dist/index146.js +4 -7
  97. package/dist/index147.cjs +1 -3
  98. package/dist/index147.js +6 -215
  99. package/dist/index148.cjs +1 -1
  100. package/dist/index148.js +27 -32
  101. package/dist/index149.cjs +1 -1
  102. package/dist/index149.js +9 -21
  103. package/dist/index150.cjs +1 -1
  104. package/dist/index150.js +8 -5
  105. package/dist/index151.cjs +1 -1
  106. package/dist/index151.js +9 -72
  107. package/dist/index152.cjs +1 -1
  108. package/dist/index152.js +11 -5
  109. package/dist/index153.cjs +1 -1
  110. package/dist/index153.js +13 -5
  111. package/dist/index154.cjs +1 -9
  112. package/dist/index154.js +14 -35
  113. package/dist/index155.cjs +1 -3
  114. package/dist/index155.js +7 -110
  115. package/dist/index156.cjs +1 -1
  116. package/dist/index156.js +22 -3
  117. package/dist/index157.cjs +1 -1
  118. package/dist/index157.js +6 -23
  119. package/dist/index158.cjs +1 -3
  120. package/dist/index158.js +21 -451
  121. package/dist/index159.cjs +1 -2
  122. package/dist/index159.js +39 -53
  123. package/dist/index160.cjs +1 -1
  124. package/dist/index160.js +16 -25
  125. package/dist/index161.cjs +1 -1
  126. package/dist/index161.js +20 -32
  127. package/dist/index162.cjs +1 -1
  128. package/dist/index162.js +79 -34
  129. package/dist/index163.cjs +1 -4
  130. package/dist/index163.js +42 -192
  131. package/dist/index164.cjs +1 -1
  132. package/dist/index164.js +11 -8
  133. package/dist/index165.cjs +1 -1
  134. package/dist/index165.js +51 -17
  135. package/dist/index166.cjs +1 -1
  136. package/dist/index166.js +3 -27
  137. package/dist/index167.cjs +1 -1
  138. package/dist/index167.js +4 -7
  139. package/dist/index168.cjs +1 -1
  140. package/dist/index168.js +5 -7
  141. package/dist/index169.cjs +1 -1
  142. package/dist/index169.js +11 -16
  143. package/dist/index170.cjs +1 -1
  144. package/dist/index170.js +13 -18
  145. package/dist/index171.cjs +1 -1
  146. package/dist/index171.js +13 -21
  147. package/dist/index172.cjs +1 -1
  148. package/dist/index172.js +5 -51
  149. package/dist/index173.cjs +1 -1
  150. package/dist/index173.js +13 -11
  151. package/dist/index174.cjs +1 -1
  152. package/dist/index174.js +92 -150
  153. package/dist/index175.cjs +1 -1
  154. package/dist/index175.js +6 -127
  155. package/dist/index176.cjs +1 -1
  156. package/dist/index176.js +150 -37
  157. package/dist/index177.cjs +1 -1
  158. package/dist/index177.js +35 -6
  159. package/dist/index178.cjs +1 -1
  160. package/dist/index178.js +31 -27
  161. package/dist/index179.cjs +1 -1
  162. package/dist/index179.js +8 -190
  163. package/dist/index18.cjs +1 -1
  164. package/dist/index18.js +8 -8
  165. package/dist/index180.cjs +1 -1
  166. package/dist/index180.js +69 -4
  167. package/dist/index181.cjs +1 -1
  168. package/dist/index181.js +8 -61
  169. package/dist/index182.cjs +1 -1
  170. package/dist/index182.js +72 -3
  171. package/dist/index183.cjs +1 -1
  172. package/dist/index183.js +19 -20
  173. package/dist/index184.cjs +1 -1
  174. package/dist/index184.js +108 -14
  175. package/dist/index185.cjs +1 -1
  176. package/dist/index185.js +23 -23
  177. package/dist/index186.cjs +1 -1
  178. package/dist/index186.js +50 -34
  179. package/dist/index187.cjs +1 -1
  180. package/dist/index187.js +107 -3
  181. package/dist/index188.cjs +1 -1
  182. package/dist/index188.js +9 -19
  183. package/dist/index189.cjs +1 -1
  184. package/dist/index189.js +2 -28
  185. package/dist/index190.cjs +2 -1
  186. package/dist/index190.js +3 -37
  187. package/dist/index191.cjs +1 -1
  188. package/dist/index191.js +13 -10
  189. package/dist/index192.cjs +1 -1
  190. package/dist/index192.js +4 -25
  191. package/dist/index193.cjs +1 -1
  192. package/dist/index193.js +2 -29
  193. package/dist/index194.cjs +1 -1
  194. package/dist/index194.js +30 -64
  195. package/dist/index195.cjs +1 -1
  196. package/dist/index195.js +21 -9
  197. package/dist/index196.cjs +1 -1
  198. package/dist/index196.js +5 -24
  199. package/dist/index197.cjs +1 -1
  200. package/dist/index197.js +5 -24
  201. package/dist/index198.cjs +1 -1
  202. package/dist/index198.js +5 -3
  203. package/dist/index199.cjs +9 -1
  204. package/dist/index199.js +35 -14
  205. package/dist/index20.cjs +1 -1
  206. package/dist/index20.js +2 -2
  207. package/dist/index200.cjs +1 -1
  208. package/dist/index200.js +3 -81
  209. package/dist/index201.cjs +1 -1
  210. package/dist/index201.js +26 -5
  211. package/dist/index202.cjs +1 -1
  212. package/dist/index202.js +32 -22
  213. package/dist/index203.cjs +1 -1
  214. package/dist/index203.js +35 -42
  215. package/dist/index204.cjs +1 -1
  216. package/dist/index204.js +8 -5
  217. package/dist/index205.cjs +1 -1
  218. package/dist/index205.js +12 -11
  219. package/dist/index206.cjs +1 -1
  220. package/dist/index206.js +18 -19
  221. package/dist/index207.cjs +1 -1
  222. package/dist/index207.js +24 -75
  223. package/dist/index208.cjs +1 -1
  224. package/dist/index208.js +9 -2
  225. package/dist/index209.cjs +1 -1
  226. package/dist/index209.js +51 -33
  227. package/dist/index210.cjs +1 -1
  228. package/dist/index210.js +8 -111
  229. package/dist/index211.cjs +1 -1
  230. package/dist/index211.js +7 -49
  231. package/dist/index212.cjs +1 -1
  232. package/dist/index212.js +17 -31
  233. package/dist/index213.cjs +1 -1
  234. package/dist/index213.js +161 -8
  235. package/dist/index214.cjs +1 -1
  236. package/dist/index214.js +127 -6
  237. package/dist/index215.cjs +1 -1
  238. package/dist/index215.js +38 -6
  239. package/dist/index216.cjs +1 -1
  240. package/dist/index216.js +27 -11
  241. package/dist/index217.cjs +1 -1
  242. package/dist/index217.js +190 -9
  243. package/dist/index218.cjs +1 -1
  244. package/dist/index218.js +4 -14
  245. package/dist/index219.cjs +1 -1
  246. package/dist/index219.js +3 -33
  247. package/dist/index22.cjs +1 -1
  248. package/dist/index22.js +8 -8
  249. package/dist/index220.cjs +1 -1
  250. package/dist/index220.js +21 -5
  251. package/dist/index221.cjs +1 -1
  252. package/dist/index221.js +16 -7
  253. package/dist/index222.cjs +1 -1
  254. package/dist/index222.js +11 -8
  255. package/dist/index223.cjs +1 -1
  256. package/dist/index223.js +30 -16
  257. package/dist/index224.cjs +1 -1
  258. package/dist/index224.js +3 -32
  259. package/dist/index225.cjs +1 -1
  260. package/dist/index225.js +27 -20
  261. package/dist/index226.cjs +1 -1
  262. package/dist/index226.js +25 -3
  263. package/dist/index227.cjs +1 -1
  264. package/dist/index227.js +28 -17
  265. package/dist/index228.cjs +1 -1
  266. package/dist/index228.js +6 -10
  267. package/dist/index229.cjs +1 -1
  268. package/dist/index229.js +22 -20
  269. package/dist/index23.cjs +1 -1
  270. package/dist/index23.js +2 -2
  271. package/dist/index230.cjs +1 -1
  272. package/dist/index230.js +37 -22
  273. package/dist/index231.cjs +1 -1
  274. package/dist/index231.js +42 -5
  275. package/dist/index232.cjs +1 -1
  276. package/dist/index232.js +78 -8
  277. package/dist/index233.cjs +1 -1
  278. package/dist/index233.js +2 -105
  279. package/dist/index234.cjs +1 -1
  280. package/dist/index234.js +33 -108
  281. package/dist/index235.cjs +1 -1
  282. package/dist/index235.js +48 -17
  283. package/dist/index236.cjs +1 -1
  284. package/dist/index236.js +6 -17
  285. package/dist/index237.cjs +1 -1
  286. package/dist/index237.js +6 -10
  287. package/dist/index238.cjs +1 -1
  288. package/dist/index238.js +31 -15
  289. package/dist/index239.cjs +1 -1
  290. package/dist/index239.js +5 -23
  291. package/dist/index24.cjs +1 -1
  292. package/dist/index24.js +5 -5
  293. package/dist/index240.cjs +1 -1
  294. package/dist/index240.js +9 -2
  295. package/dist/index241.cjs +1 -1
  296. package/dist/index241.js +3 -13
  297. package/dist/index242.cjs +1 -1
  298. package/dist/index242.js +17 -12
  299. package/dist/index243.cjs +1 -1
  300. package/dist/index243.js +10 -47
  301. package/dist/index244.cjs +1 -1
  302. package/dist/index244.js +5 -11
  303. package/dist/index245.cjs +1 -1
  304. package/dist/index245.js +8 -7
  305. package/dist/index246.cjs +1 -1
  306. package/dist/index246.js +104 -9
  307. package/dist/index247.cjs +1 -1
  308. package/dist/index247.js +112 -13
  309. package/dist/index248.cjs +1 -1
  310. package/dist/index248.js +17 -13
  311. package/dist/index249.cjs +1 -1
  312. package/dist/index249.js +171 -9
  313. package/dist/index25.cjs +1 -1
  314. package/dist/index25.js +3 -3
  315. package/dist/index250.cjs +1 -1
  316. package/dist/index250.js +17 -30
  317. package/dist/index251.cjs +1 -1
  318. package/dist/index251.js +25 -24
  319. package/dist/index252.cjs +1 -1
  320. package/dist/index252.js +13 -12
  321. package/dist/index253.cjs +1 -1
  322. package/dist/index253.js +15 -24
  323. package/dist/index254.cjs +1 -2
  324. package/dist/index254.js +5 -24
  325. package/dist/index255.cjs +1 -1
  326. package/dist/index255.js +12 -12
  327. package/dist/index256.cjs +1 -1
  328. package/dist/index256.js +10 -15
  329. package/dist/index257.cjs +1 -1
  330. package/dist/index257.js +16 -52
  331. package/dist/index258.cjs +1 -1
  332. package/dist/index258.js +3 -16
  333. package/dist/index259.cjs +1 -1
  334. package/dist/index259.js +129 -212
  335. package/dist/index26.cjs +1 -1
  336. package/dist/index26.js +1 -1
  337. package/dist/index260.cjs +1 -1
  338. package/dist/index260.js +109 -24
  339. package/dist/index261.cjs +2 -1
  340. package/dist/index261.js +127 -31
  341. package/dist/index262.cjs +1 -2
  342. package/dist/index262.js +139 -25
  343. package/dist/index263.cjs +1 -1
  344. package/dist/index263.js +10 -2
  345. package/dist/index264.cjs +2 -1
  346. package/dist/index264.js +41 -5
  347. package/dist/index265.cjs +1 -1
  348. package/dist/index265.js +2 -11
  349. package/dist/index266.cjs +1 -1
  350. package/dist/index266.js +5 -19
  351. package/dist/index267.cjs +1 -1
  352. package/dist/index267.js +10 -8
  353. package/dist/index268.cjs +1 -1
  354. package/dist/index268.js +19 -66
  355. package/dist/index269.cjs +1 -1
  356. package/dist/index269.js +8 -65
  357. package/dist/index27.cjs +1 -1
  358. package/dist/index27.js +1 -1
  359. package/dist/index270.cjs +1 -1
  360. package/dist/index270.js +56 -176
  361. package/dist/index271.cjs +1 -1
  362. package/dist/index271.js +63 -20
  363. package/dist/index272.cjs +1 -1
  364. package/dist/index272.js +181 -37
  365. package/dist/index273.cjs +1 -1
  366. package/dist/index273.js +21 -75
  367. package/dist/index274.cjs +1 -1
  368. package/dist/index274.js +22 -20
  369. package/dist/index275.cjs +1 -1
  370. package/dist/index275.js +69 -9
  371. package/dist/index276.cjs +1 -1
  372. package/dist/index276.js +34 -7
  373. package/dist/index277.cjs +1 -1
  374. package/dist/index277.js +16 -12
  375. package/dist/index278.cjs +1 -2
  376. package/dist/index278.js +13 -18
  377. package/dist/index279.cjs +1 -1
  378. package/dist/index279.js +12 -13
  379. package/dist/index28.cjs +1 -1
  380. package/dist/index28.js +2 -2
  381. package/dist/index280.cjs +2 -1
  382. package/dist/index280.js +18 -11
  383. package/dist/index281.cjs +1 -1
  384. package/dist/index281.js +13 -6
  385. package/dist/index282.cjs +1 -1
  386. package/dist/index282.js +12 -7
  387. package/dist/index283.cjs +1 -1
  388. package/dist/index283.js +16 -26
  389. package/dist/index284.cjs +1 -1
  390. package/dist/index284.js +216 -60
  391. package/dist/index285.cjs +1 -1
  392. package/dist/index285.js +5 -69
  393. package/dist/index286.cjs +1 -1
  394. package/dist/index286.js +7 -35
  395. package/dist/index287.cjs +1 -1
  396. package/dist/index287.js +25 -17
  397. package/dist/index288.cjs +1 -1
  398. package/dist/index288.js +33 -2
  399. package/dist/index289.cjs +1 -1
  400. package/dist/index289.js +17 -139
  401. package/dist/index29.cjs +1 -1
  402. package/dist/index29.js +16 -37
  403. package/dist/index290.cjs +1 -1
  404. package/dist/index290.js +57 -142
  405. package/dist/index291.cjs +1 -1
  406. package/dist/index291.js +67 -9
  407. package/dist/index292.cjs +1 -1
  408. package/dist/index292.js +9 -111
  409. package/dist/index293.cjs +1 -2
  410. package/dist/index293.js +18 -133
  411. package/dist/index294.cjs +1 -1
  412. package/dist/index294.js +28 -11
  413. package/dist/index295.cjs +1 -1
  414. package/dist/index295.js +37 -18
  415. package/dist/index296.cjs +2 -1
  416. package/dist/index296.js +67 -2
  417. package/dist/index297.cjs +1 -1
  418. package/dist/index297.js +7 -40
  419. package/dist/index298.cjs +1 -1
  420. package/dist/index298.js +55 -635
  421. package/dist/index299.cjs +1 -1
  422. package/dist/index299.js +71 -200
  423. package/dist/index30.cjs +1 -1
  424. package/dist/index30.js +3 -3
  425. package/dist/index300.cjs +1 -1
  426. package/dist/index300.js +4 -173
  427. package/dist/index301.cjs +1 -1
  428. package/dist/index301.js +192 -16
  429. package/dist/index302.cjs +1 -1
  430. package/dist/index302.js +4 -68
  431. package/dist/index303.cjs +1 -2
  432. package/dist/index303.js +39 -65
  433. package/dist/index304.cjs +1 -1
  434. package/dist/index304.js +68 -4
  435. package/dist/index305.cjs +1 -1
  436. package/dist/index305.js +2 -41
  437. package/dist/index306.cjs +1 -1
  438. package/dist/index306.js +40 -7
  439. package/dist/index307.cjs +1 -1
  440. package/dist/index307.js +635 -55
  441. package/dist/index308.cjs +1 -1
  442. package/dist/index308.js +200 -71
  443. package/dist/index309.cjs +1 -1
  444. package/dist/index309.js +173 -4
  445. package/dist/index31.cjs +1 -1
  446. package/dist/index31.js +10 -25
  447. package/dist/index310.cjs +1 -1
  448. package/dist/index310.js +16 -192
  449. package/dist/index311.cjs +1 -1
  450. package/dist/index311.js +4 -63
  451. package/dist/index312.cjs +1 -1
  452. package/dist/index312.js +102 -42
  453. package/dist/index313.cjs +1 -1
  454. package/dist/index313.js +63 -4
  455. package/dist/index314.cjs +1 -1
  456. package/dist/index314.js +5 -105
  457. package/dist/index315.cjs +1 -1
  458. package/dist/index315.js +45 -5
  459. package/dist/index32.cjs +1 -1
  460. package/dist/index32.js +18 -6
  461. package/dist/index33.cjs +1 -1
  462. package/dist/index33.js +123 -13
  463. package/dist/index34.cjs +1 -1
  464. package/dist/index34.js +60 -15
  465. package/dist/index35.cjs +1 -1
  466. package/dist/index35.js +23 -5
  467. package/dist/index36.cjs +1 -1
  468. package/dist/index36.js +10 -13
  469. package/dist/index37.cjs +1 -1
  470. package/dist/index37.js +20 -10
  471. package/dist/index38.cjs +1 -1
  472. package/dist/index38.js +6 -12
  473. package/dist/index39.cjs +1 -1
  474. package/dist/index39.js +10 -11
  475. package/dist/index40.cjs +1 -1
  476. package/dist/index40.js +32 -13
  477. package/dist/index41.cjs +1 -1
  478. package/dist/index41.js +16 -33
  479. package/dist/index42.cjs +1 -1
  480. package/dist/index42.js +15 -54
  481. package/dist/index43.cjs +1 -1
  482. package/dist/index43.js +7 -16
  483. package/dist/index44.cjs +1 -1
  484. package/dist/index44.js +33 -5
  485. package/dist/index45.cjs +1 -1
  486. package/dist/index45.js +24 -8
  487. package/dist/index46.cjs +1 -1
  488. package/dist/index46.js +20 -169
  489. package/dist/index47.cjs +1 -1
  490. package/dist/index47.js +56 -101
  491. package/dist/index48.cjs +1 -1
  492. package/dist/index48.js +40 -3
  493. package/dist/index49.cjs +1 -1
  494. package/dist/index49.js +37 -21
  495. package/dist/index5.cjs +1 -1
  496. package/dist/index5.js +19 -47
  497. package/dist/index50.cjs +1 -1
  498. package/dist/index50.js +162 -7
  499. package/dist/index51.cjs +1 -1
  500. package/dist/index51.js +110 -30
  501. package/dist/index52.cjs +1 -1
  502. package/dist/index52.js +3 -29
  503. package/dist/index53.cjs +1 -1
  504. package/dist/index53.js +2 -17
  505. package/dist/index54.cjs +1 -1
  506. package/dist/index54.js +4 -34
  507. package/dist/index55.cjs +2 -1
  508. package/dist/index55.js +58 -43
  509. package/dist/index56.cjs +2 -1
  510. package/dist/index56.js +53 -150
  511. package/dist/index57.cjs +3 -1
  512. package/dist/index57.js +211 -31
  513. package/dist/index58.cjs +1 -1
  514. package/dist/index58.js +12 -37
  515. package/dist/index59.cjs +1 -2
  516. package/dist/index59.js +11 -58
  517. package/dist/index60.cjs +1 -1
  518. package/dist/index60.js +24 -32
  519. package/dist/index61.cjs +1 -1
  520. package/dist/index61.js +28 -15
  521. package/dist/index62.cjs +1 -1
  522. package/dist/index62.js +47 -8
  523. package/dist/index63.cjs +1 -1
  524. package/dist/index63.js +20 -2
  525. package/dist/index64.cjs +1 -1
  526. package/dist/index64.js +11 -26
  527. package/dist/index65.cjs +1 -1
  528. package/dist/index65.js +38 -29
  529. package/dist/index66.cjs +1 -1
  530. package/dist/index66.js +9 -9
  531. package/dist/index67.cjs +1 -1
  532. package/dist/index67.js +7 -68
  533. package/dist/index68.cjs +1 -1
  534. package/dist/index68.js +31 -9
  535. package/dist/index69.cjs +1 -1
  536. package/dist/index69.js +36 -28
  537. package/dist/index70.cjs +1 -1
  538. package/dist/index70.js +34 -69
  539. package/dist/index71.cjs +1 -1
  540. package/dist/index71.js +9 -19
  541. package/dist/index72.cjs +1 -1
  542. package/dist/index72.js +29 -110
  543. package/dist/index73.cjs +1 -1
  544. package/dist/index73.js +22 -60
  545. package/dist/index74.cjs +1 -1
  546. package/dist/index74.js +82 -21
  547. package/dist/index75.cjs +1 -1
  548. package/dist/index75.js +47 -37
  549. package/dist/index76.cjs +1 -1
  550. package/dist/index76.js +22 -36
  551. package/dist/index77.cjs +1 -1
  552. package/dist/index77.js +38 -55
  553. package/dist/index78.cjs +1 -1
  554. package/dist/index78.js +17 -162
  555. package/dist/index79.cjs +1 -1
  556. package/dist/index79.js +6 -40
  557. package/dist/index80.cjs +1 -1
  558. package/dist/index80.js +33 -9
  559. package/dist/index81.cjs +1 -1
  560. package/dist/index81.js +8 -35
  561. package/dist/index82.cjs +1 -1
  562. package/dist/index82.js +12 -8
  563. package/dist/index83.cjs +1 -1
  564. package/dist/index83.js +107 -48
  565. package/dist/index84.cjs +1 -1
  566. package/dist/index84.js +8 -85
  567. package/dist/index85.cjs +1 -1
  568. package/dist/index85.js +6 -41
  569. package/dist/index86.cjs +1 -1
  570. package/dist/index86.js +7 -8
  571. package/dist/index87.cjs +1 -1
  572. package/dist/index87.js +21 -6
  573. package/dist/index88.cjs +1 -1
  574. package/dist/index88.js +8 -17
  575. package/dist/index89.cjs +1 -1
  576. package/dist/index89.js +31 -8
  577. package/dist/index90.cjs +1 -1
  578. package/dist/index90.js +1 -1
  579. package/dist/index91.cjs +1 -1
  580. package/dist/index91.js +1 -1
  581. package/dist/index93.cjs +1 -1
  582. package/dist/index93.js +16 -46
  583. package/dist/index94.cjs +1 -1
  584. package/dist/index94.js +73 -13
  585. package/dist/index95.cjs +1 -1
  586. package/dist/index95.js +34 -15
  587. package/dist/index96.cjs +1 -1
  588. package/dist/index96.js +46 -13
  589. package/dist/index97.cjs +1 -1
  590. package/dist/index97.js +14 -6
  591. package/dist/index98.cjs +1 -1
  592. package/dist/index98.js +11 -33
  593. package/dist/index99.cjs +1 -1
  594. package/dist/index99.js +9 -9
  595. package/dist/src/lib/digestKey/digestKey.d.ts +4 -2
  596. package/dist/src/lib/result.d.ts +13 -9
  597. package/package.json +1 -1
package/dist/index315.js CHANGED
@@ -1,7 +1,47 @@
1
- import { LruMap as c } from "./index317.js";
2
- const e = {
3
- checksum: /* @__PURE__ */ new c(8192)
4
- }, m = e.checksum;
1
+ import { size as d, SizeOverflowError as u, SizeExceedsPaddingSizeError as a } from "./index313.js";
2
+ function p(e, t) {
3
+ if (d(e) > t)
4
+ throw new u({
5
+ givenSize: d(e),
6
+ maxSize: t
7
+ });
8
+ }
9
+ const n = {
10
+ zero: 48,
11
+ nine: 57,
12
+ A: 65,
13
+ F: 70,
14
+ a: 97,
15
+ f: 102
16
+ };
17
+ function s(e) {
18
+ if (e >= n.zero && e <= n.nine)
19
+ return e - n.zero;
20
+ if (e >= n.A && e <= n.F)
21
+ return e - (n.A - 10);
22
+ if (e >= n.a && e <= n.f)
23
+ return e - (n.a - 10);
24
+ }
25
+ function S(e, t = {}) {
26
+ const { dir: z, size: i = 32 } = t;
27
+ if (i === 0)
28
+ return e;
29
+ if (e.length > i)
30
+ throw new a({
31
+ size: e.length,
32
+ targetSize: i,
33
+ type: "Bytes"
34
+ });
35
+ const o = new Uint8Array(i);
36
+ for (let r = 0; r < i; r++) {
37
+ const f = z === "right";
38
+ o[f ? r : i - r - 1] = e[f ? r : e.length - r - 1];
39
+ }
40
+ return o;
41
+ }
5
42
  export {
6
- m as checksum
43
+ p as assertSize,
44
+ n as charCodeMap,
45
+ s as charCodeToBase16,
46
+ S as pad
7
47
  };
package/dist/index32.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index49.cjs"),c=require("./index45.cjs");function t(e){const s=c.keccak256(`0x${e.substring(4)}`).substring(26);return r.checksumAddress(`0x${s}`)}exports.publicKeyToAddress=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index112.cjs"),u=require("./index212.cjs"),d=require("./index217.cjs"),r="/docs/contract/encodeDeployData";function b(i){const{abi:a,args:o,bytecode:n}=i;if(!o||o.length===0)return n;const t=a.find(c=>"type"in c&&c.type==="constructor");if(!t)throw new e.AbiConstructorNotFoundError({docsPath:r});if(!("inputs"in t))throw new e.AbiConstructorParamsNotFoundError({docsPath:r});if(!t.inputs||t.inputs.length===0)throw new e.AbiConstructorParamsNotFoundError({docsPath:r});const s=d.encodeAbiParameters(t.inputs,o);return u.concatHex([n,s])}exports.encodeDeployData=b;
package/dist/index32.js CHANGED
@@ -1,9 +1,21 @@
1
- import { checksumAddress as e } from "./index49.js";
2
- import { keccak256 as o } from "./index45.js";
3
- function d(r) {
4
- const s = o(`0x${r.substring(4)}`).substring(26);
5
- return e(`0x${s}`);
1
+ import { AbiConstructorNotFoundError as p, AbiConstructorParamsNotFoundError as i } from "./index112.js";
2
+ import { concatHex as u } from "./index212.js";
3
+ import { encodeAbiParameters as d } from "./index217.js";
4
+ const r = "/docs/contract/encodeDeployData";
5
+ function w(c) {
6
+ const { abi: s, args: o, bytecode: n } = c;
7
+ if (!o || o.length === 0)
8
+ return n;
9
+ const t = s.find((e) => "type" in e && e.type === "constructor");
10
+ if (!t)
11
+ throw new p({ docsPath: r });
12
+ if (!("inputs" in t))
13
+ throw new i({ docsPath: r });
14
+ if (!t.inputs || t.inputs.length === 0)
15
+ throw new i({ docsPath: r });
16
+ const a = d(t.inputs, o);
17
+ return u([n, a]);
6
18
  }
7
19
  export {
8
- d as publicKeyToAddress
20
+ w as encodeDeployData
9
21
  };
package/dist/index33.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index29.cjs"),s=require("./index30.cjs"),a=require("./index40.cjs");let l=!1;async function g({hash:t,privateKey:i,to:e="object"}){const{r:u,s:c,recovery:r}=o.secp256k1.sign(t.slice(2),i.slice(2),{lowS:!0,extraEntropy:l}),n={r:s.numberToHex(u,{size:32}),s:s.numberToHex(c,{size:32}),v:r?28n:27n,yParity:r};return e==="bytes"||e==="hex"?a.serializeSignature({...n,to:e}):n}exports.sign=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./index52.cjs"),u=require("./index136.cjs"),G=require("./index55.cjs"),O=require("./index81.cjs"),j=require("./index155.cjs"),B=require("./index137.cjs"),U=require("./index59.cjs"),W=require("./index60.cjs"),l=require("./index43.cjs"),k=require("./index156.cjs"),D=require("./index63.cjs"),H=require("./index91.cjs"),x=require("./index83.cjs"),J=require("./index157.cjs"),f=new k.LruMap(128);async function K(t,e){var P,M,z,I;const{account:d=t.account,chain:n=t.chain,accessList:w,authorizationList:s,blobs:q,data:m,gas:T,gasPrice:g,maxFeePerBlobGas:y,maxFeePerGas:R,maxPriorityFeePerGas:A,nonce:E,value:C,...N}=e;if(typeof d>"u")throw new u.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});const r=d?_.parseAccount(d):null;try{D.assertRequest(e);const a=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await O.recoverAuthorizationAddress({authorization:s[0]}).catch(()=>{throw new G.BaseError("`to` is required. Could not infer from `authorizationList`.")})})();if((r==null?void 0:r.type)==="json-rpc"||r===null){let i;n!==null&&(i=await l.getAction(t,H.getChainId,"getChainId")({}),j.assertCurrentChain({currentChainId:i,chain:n}));const c=(z=(M=(P=t.chain)==null?void 0:P.formatters)==null?void 0:M.transactionRequest)==null?void 0:z.format,b=(c||W.formatTransactionRequest)({...U.extract(N,{format:c}),accessList:w,authorizationList:s,blobs:q,chainId:i,data:m,from:r==null?void 0:r.address,gas:T,gasPrice:g,maxFeePerBlobGas:y,maxFeePerGas:R,maxPriorityFeePerGas:A,nonce:E,to:a,value:C}),F=f.get(t.uid),L=F?"wallet_sendTransaction":"eth_sendTransaction";try{return await t.request({method:L,params:[b]},{retryCount:0})}catch(v){if(F===!1)throw v;const o=v;if(o.name==="InvalidInputRpcError"||o.name==="InvalidParamsRpcError"||o.name==="MethodNotFoundRpcError"||o.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[b]},{retryCount:0}).then(p=>(f.set(t.uid,!0),p)).catch(p=>{const h=p;throw h.name==="MethodNotFoundRpcError"||h.name==="MethodNotSupportedRpcError"?(f.set(t.uid,!1),o):h});throw o}}if((r==null?void 0:r.type)==="local"){const i=await l.getAction(t,x.prepareTransactionRequest,"prepareTransactionRequest")({account:r,accessList:w,authorizationList:s,blobs:q,chain:n,data:m,gas:T,gasPrice:g,maxFeePerBlobGas:y,maxFeePerGas:R,maxPriorityFeePerGas:A,nonce:E,nonceManager:r.nonceManager,parameters:[...x.defaultParameters,"sidecars"],value:C,...N,to:a}),c=(I=n==null?void 0:n.serializers)==null?void 0:I.transaction,S=await r.signTransaction(i,{serializer:c});return await l.getAction(t,J.sendRawTransaction,"sendRawTransaction")({serializedTransaction:S})}throw(r==null?void 0:r.type)==="smart"?new u.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new u.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransaction",type:r==null?void 0:r.type})}catch(a){throw a instanceof u.AccountTypeNotSupportedError?a:B.getTransactionError(a,{...e,account:r,chain:e.chain||void 0})}}exports.sendTransaction=K;
package/dist/index33.js CHANGED
@@ -1,16 +1,126 @@
1
- import { secp256k1 as u } from "./index29.js";
2
- import { numberToHex as i } from "./index30.js";
3
- import { serializeSignature as a } from "./index40.js";
4
- let m = !1;
5
- async function y({ hash: n, privateKey: s, to: r = "object" }) {
6
- const { r: o, s: c, recovery: e } = u.sign(n.slice(2), s.slice(2), { lowS: !0, extraEntropy: m }), t = {
7
- r: i(o, { size: 32 }),
8
- s: i(c, { size: 32 }),
9
- v: e ? 28n : 27n,
10
- yParity: e
11
- };
12
- return r === "bytes" || r === "hex" ? a({ ...t, to: r }) : t;
1
+ import { parseAccount as S } from "./index52.js";
2
+ import { AccountNotFoundError as _, AccountTypeNotSupportedError as p } from "./index136.js";
3
+ import { BaseError as G } from "./index55.js";
4
+ import { recoverAuthorizationAddress as B } from "./index81.js";
5
+ import { assertCurrentChain as O } from "./index155.js";
6
+ import { getTransactionError as U } from "./index137.js";
7
+ import { extract as W } from "./index59.js";
8
+ import { formatTransactionRequest as j } from "./index60.js";
9
+ import { getAction as f } from "./index43.js";
10
+ import { LruMap as k } from "./index156.js";
11
+ import { assertRequest as D } from "./index63.js";
12
+ import { getChainId as H } from "./index91.js";
13
+ import { prepareTransactionRequest as J, defaultParameters as K } from "./index83.js";
14
+ import { sendRawTransaction as Q } from "./index157.js";
15
+ const h = new k(128);
16
+ async function dr(t, o) {
17
+ var M, z, A, F;
18
+ const { account: d = t.account, chain: e = t.chain, accessList: w, authorizationList: s, blobs: l, data: y, gas: T, gasPrice: g, maxFeePerBlobGas: R, maxFeePerGas: E, maxPriorityFeePerGas: q, nonce: P, value: C, ...N } = o;
19
+ if (typeof d > "u")
20
+ throw new _({
21
+ docsPath: "/docs/actions/wallet/sendTransaction"
22
+ });
23
+ const r = d ? S(d) : null;
24
+ try {
25
+ D(o);
26
+ const a = await (async () => {
27
+ if (o.to)
28
+ return o.to;
29
+ if (o.to !== null && s && s.length > 0)
30
+ return await B({
31
+ authorization: s[0]
32
+ }).catch(() => {
33
+ throw new G("`to` is required. Could not infer from `authorizationList`.");
34
+ });
35
+ })();
36
+ if ((r == null ? void 0 : r.type) === "json-rpc" || r === null) {
37
+ let i;
38
+ e !== null && (i = await f(t, H, "getChainId")({}), O({
39
+ currentChainId: i,
40
+ chain: e
41
+ }));
42
+ const c = (A = (z = (M = t.chain) == null ? void 0 : M.formatters) == null ? void 0 : z.transactionRequest) == null ? void 0 : A.format, x = (c || j)({
43
+ // Pick out extra data that might exist on the chain's transaction request type.
44
+ ...W(N, { format: c }),
45
+ accessList: w,
46
+ authorizationList: s,
47
+ blobs: l,
48
+ chainId: i,
49
+ data: y,
50
+ from: r == null ? void 0 : r.address,
51
+ gas: T,
52
+ gasPrice: g,
53
+ maxFeePerBlobGas: R,
54
+ maxFeePerGas: E,
55
+ maxPriorityFeePerGas: q,
56
+ nonce: P,
57
+ to: a,
58
+ value: C
59
+ }), b = h.get(t.uid), L = b ? "wallet_sendTransaction" : "eth_sendTransaction";
60
+ try {
61
+ return await t.request({
62
+ method: L,
63
+ params: [x]
64
+ }, { retryCount: 0 });
65
+ } catch (v) {
66
+ if (b === !1)
67
+ throw v;
68
+ const n = v;
69
+ if (n.name === "InvalidInputRpcError" || n.name === "InvalidParamsRpcError" || n.name === "MethodNotFoundRpcError" || n.name === "MethodNotSupportedRpcError")
70
+ return await t.request({
71
+ method: "wallet_sendTransaction",
72
+ params: [x]
73
+ }, { retryCount: 0 }).then((m) => (h.set(t.uid, !0), m)).catch((m) => {
74
+ const u = m;
75
+ throw u.name === "MethodNotFoundRpcError" || u.name === "MethodNotSupportedRpcError" ? (h.set(t.uid, !1), n) : u;
76
+ });
77
+ throw n;
78
+ }
79
+ }
80
+ if ((r == null ? void 0 : r.type) === "local") {
81
+ const i = await f(t, J, "prepareTransactionRequest")({
82
+ account: r,
83
+ accessList: w,
84
+ authorizationList: s,
85
+ blobs: l,
86
+ chain: e,
87
+ data: y,
88
+ gas: T,
89
+ gasPrice: g,
90
+ maxFeePerBlobGas: R,
91
+ maxFeePerGas: E,
92
+ maxPriorityFeePerGas: q,
93
+ nonce: P,
94
+ nonceManager: r.nonceManager,
95
+ parameters: [...K, "sidecars"],
96
+ value: C,
97
+ ...N,
98
+ to: a
99
+ }), c = (F = e == null ? void 0 : e.serializers) == null ? void 0 : F.transaction, I = await r.signTransaction(i, {
100
+ serializer: c
101
+ });
102
+ return await f(t, Q, "sendRawTransaction")({
103
+ serializedTransaction: I
104
+ });
105
+ }
106
+ throw (r == null ? void 0 : r.type) === "smart" ? new p({
107
+ metaMessages: [
108
+ "Consider using the `sendUserOperation` Action instead."
109
+ ],
110
+ docsPath: "/docs/actions/bundler/sendUserOperation",
111
+ type: "smart"
112
+ }) : new p({
113
+ docsPath: "/docs/actions/wallet/sendTransaction",
114
+ type: r == null ? void 0 : r.type
115
+ });
116
+ } catch (a) {
117
+ throw a instanceof p ? a : U(a, {
118
+ ...o,
119
+ account: r,
120
+ chain: o.chain || void 0
121
+ });
122
+ }
13
123
  }
14
124
  export {
15
- y as sign
125
+ dr as sendTransaction
16
126
  };
package/dist/index34.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index43.cjs"),a=require("./index33.cjs");async function u(t){const{chainId:n,nonce:i,privateKey:r,to:o="object"}=t,s=t.contractAddress??t.address,e=await a.sign({hash:c.hashAuthorization({address:s,chainId:n,nonce:i}),privateKey:r,to:o});return o==="object"?{address:s,chainId:n,nonce:i,...e}:e}exports.signAuthorization=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index21.cjs"),q=require("./index35.cjs"),R=require("./index36.cjs"),b=require("./index37.cjs"),m=require("./index38.cjs"),y=require("./index30.cjs"),C=require("./index39.cjs"),w=require("./index40.cjs"),i=require("./index41.cjs"),B=require("./index42.cjs"),T=require("./index43.cjs"),x=require("./index44.cjs");async function N(c,s){const{blockNumber:u,blockTag:v,coinType:n,name:r,gatewayUrls:g,strict:h}=s,{chain:t}=c,f=(()=>{if(s.universalResolverAddress)return s.universalResolverAddress;if(!t)throw new Error("client chain not configured. universalResolverAddress is required.");return b.getChainContractAddress({blockNumber:u,chain:t,contract:"ensUniversalResolver"})})(),d=t==null?void 0:t.ensTlds;if(d&&!d.some(e=>r.endsWith(e)))return null;try{const e=R.encodeFunctionData({abi:a.addressResolverAbi,functionName:"addr",...n!=null?{args:[i.namehash(r),BigInt(n)]}:{args:[i.namehash(r)]}}),A={address:f,abi:a.universalResolverResolveAbi,functionName:"resolve",args:[y.toHex(B.packetToBytes(r)),e,g??[w.localBatchGatewayUrl]],blockNumber:u,blockTag:v},l=await T.getAction(c,x.readContract,"readContract")(A);if(l[0]==="0x")return null;const o=q.decodeFunctionResult({abi:a.addressResolverAbi,args:n!=null?[i.namehash(r),BigInt(n)]:void 0,functionName:"addr",data:l[0]});return o==="0x"||m.trim(o)==="0x00"?null:o}catch(e){if(h)throw e;if(C.isNullUniversalResolverError(e,"resolve"))return null;throw e}}exports.getEnsAddress=N;
package/dist/index34.js CHANGED
@@ -1,18 +1,63 @@
1
- import { hashAuthorization as a } from "./index43.js";
2
- import { sign as e } from "./index33.js";
3
- async function u(t) {
4
- const { chainId: o, nonce: n, privateKey: c, to: i = "object" } = t, r = t.contractAddress ?? t.address, s = await e({
5
- hash: a({ address: r, chainId: o, nonce: n }),
6
- privateKey: c,
7
- to: i
8
- });
9
- return i === "object" ? {
10
- address: r,
11
- chainId: o,
12
- nonce: n,
13
- ...s
14
- } : s;
1
+ import { addressResolverAbi as u, universalResolverResolveAbi as A } from "./index21.js";
2
+ import { decodeFunctionResult as R } from "./index35.js";
3
+ import { encodeFunctionData as h } from "./index36.js";
4
+ import { getChainContractAddress as b } from "./index37.js";
5
+ import { trim as w } from "./index38.js";
6
+ import { toHex as C } from "./index30.js";
7
+ import { isNullUniversalResolverError as y } from "./index39.js";
8
+ import { localBatchGatewayUrl as x } from "./index40.js";
9
+ import { namehash as i } from "./index41.js";
10
+ import { packetToBytes as N } from "./index42.js";
11
+ import { getAction as B } from "./index43.js";
12
+ import { readContract as T } from "./index44.js";
13
+ async function J(a, n) {
14
+ const { blockNumber: l, blockTag: m, coinType: o, name: e, gatewayUrls: f, strict: v } = n, { chain: t } = a, p = (() => {
15
+ if (n.universalResolverAddress)
16
+ return n.universalResolverAddress;
17
+ if (!t)
18
+ throw new Error("client chain not configured. universalResolverAddress is required.");
19
+ return b({
20
+ blockNumber: l,
21
+ chain: t,
22
+ contract: "ensUniversalResolver"
23
+ });
24
+ })(), c = t == null ? void 0 : t.ensTlds;
25
+ if (c && !c.some((r) => e.endsWith(r)))
26
+ return null;
27
+ try {
28
+ const r = h({
29
+ abi: u,
30
+ functionName: "addr",
31
+ ...o != null ? { args: [i(e), BigInt(o)] } : { args: [i(e)] }
32
+ }), g = {
33
+ address: p,
34
+ abi: A,
35
+ functionName: "resolve",
36
+ args: [
37
+ C(N(e)),
38
+ r,
39
+ f ?? [x]
40
+ ],
41
+ blockNumber: l,
42
+ blockTag: m
43
+ }, d = await B(a, T, "readContract")(g);
44
+ if (d[0] === "0x")
45
+ return null;
46
+ const s = R({
47
+ abi: u,
48
+ args: o != null ? [i(e), BigInt(o)] : void 0,
49
+ functionName: "addr",
50
+ data: d[0]
51
+ });
52
+ return s === "0x" || w(s) === "0x00" ? null : s;
53
+ } catch (r) {
54
+ if (v)
55
+ throw r;
56
+ if (y(r, "resolve"))
57
+ return null;
58
+ throw r;
59
+ }
15
60
  }
16
61
  export {
17
- u as signAuthorization
62
+ J as getEnsAddress
18
63
  };
package/dist/index35.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index44.cjs"),n=require("./index33.cjs");async function t({message:e,privateKey:s}){return await n.sign({hash:a.hashMessage(e),privateKey:s,to:"hex"})}exports.signMessage=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index112.cjs"),a=require("./index213.cjs"),b=require("./index94.cjs"),i="/docs/contract/decodeFunctionResult";function f(c){const{abi:r,args:d,functionName:n,data:s}=c;let e=r[0];if(n){const u=b.getAbiItem({abi:r,args:d,name:n});if(!u)throw new o.AbiFunctionNotFoundError(n,{docsPath:i});e=u}if(e.type!=="function")throw new o.AbiFunctionNotFoundError(void 0,{docsPath:i});if(!e.outputs)throw new o.AbiFunctionOutputsNotFoundError(e.name,{docsPath:i});const t=a.decodeAbiParameters(e.outputs,s);if(t&&t.length>1)return t;if(t&&t.length===1)return t[0]}exports.decodeFunctionResult=f;
package/dist/index35.js CHANGED
@@ -1,8 +1,26 @@
1
- import { hashMessage as e } from "./index44.js";
2
- import { sign as o } from "./index33.js";
3
- async function i({ message: s, privateKey: a }) {
4
- return await o({ hash: e(s), privateKey: a, to: "hex" });
1
+ import { AbiFunctionNotFoundError as u, AbiFunctionOutputsNotFoundError as s } from "./index112.js";
2
+ import { decodeAbiParameters as a } from "./index213.js";
3
+ import { getAbiItem as m } from "./index94.js";
4
+ const e = "/docs/contract/decodeFunctionResult";
5
+ function l(c) {
6
+ const { abi: r, args: d, functionName: o, data: f } = c;
7
+ let n = r[0];
8
+ if (o) {
9
+ const i = m({ abi: r, args: d, name: o });
10
+ if (!i)
11
+ throw new u(o, { docsPath: e });
12
+ n = i;
13
+ }
14
+ if (n.type !== "function")
15
+ throw new u(void 0, { docsPath: e });
16
+ if (!n.outputs)
17
+ throw new s(n.name, { docsPath: e });
18
+ const t = a(n.outputs, f);
19
+ if (t && t.length > 1)
20
+ return t;
21
+ if (t && t.length === 1)
22
+ return t[0];
5
23
  }
6
24
  export {
7
- i as signMessage
25
+ l as decodeFunctionResult
8
26
  };
package/dist/index36.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index45.cjs"),c=require("./index46.cjs"),o=require("./index33.cjs");async function u(i){const{privateKey:r,transaction:e,serializer:n=c.serializeTransaction}=i,a=e.type==="eip4844"?{...e,sidecars:!1}:e,s=await o.sign({hash:t.keccak256(n(a)),privateKey:r});return n(e,s)}exports.signTransaction=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index212.cjs"),s=require("./index217.cjs"),d=require("./index226.cjs");function b(n){const{args:c}=n,{abi:o,functionName:i}=(()=>{var e;return n.abi.length===1&&((e=n.functionName)!=null&&e.startsWith("0x"))?n:d.prepareEncodeFunctionData(n)})(),t=o[0],u=i,a="inputs"in t&&t.inputs?s.encodeAbiParameters(t.inputs,c??[]):void 0;return r.concatHex([u,a??"0x"])}exports.encodeFunctionData=b;
package/dist/index36.js CHANGED
@@ -1,16 +1,13 @@
1
- import { keccak256 as e } from "./index45.js";
2
- import { serializeTransaction as o } from "./index46.js";
3
- import { sign as c } from "./index33.js";
4
- async function u(n) {
5
- const { privateKey: a, transaction: r, serializer: i = o } = n, t = r.type === "eip4844" ? {
6
- ...r,
7
- sidecars: !1
8
- } : r, s = await c({
9
- hash: e(i(t)),
10
- privateKey: a
11
- });
12
- return i(r, s);
1
+ import { concatHex as a } from "./index212.js";
2
+ import { encodeAbiParameters as s } from "./index217.js";
3
+ import { prepareEncodeFunctionData as f } from "./index226.js";
4
+ function b(n) {
5
+ const { args: i } = n, { abi: c, functionName: e } = (() => {
6
+ var o;
7
+ return n.abi.length === 1 && ((o = n.functionName) != null && o.startsWith("0x")) ? n : f(n);
8
+ })(), t = c[0], u = e, r = "inputs" in t && t.inputs ? s(t.inputs, i ?? []) : void 0;
9
+ return a([u, r ?? "0x"]);
13
10
  }
14
11
  export {
15
- u as signTransaction
12
+ b as encodeFunctionData
16
13
  };
package/dist/index37.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index47.cjs"),s=require("./index33.cjs");async function i(e){const{privateKey:t,...a}=e;return await s.sign({hash:n.hashTypedData(a),privateKey:t,to:"hex"})}exports.signTypedData=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index56.cjs");function a({blockNumber:r,chain:t,contract:e}){var c;const o=(c=t==null?void 0:t.contracts)==null?void 0:c[e];if(!o)throw new n.ChainDoesNotSupportContract({chain:t,contract:{name:e}});if(r&&o.blockCreated&&o.blockCreated>r)throw new n.ChainDoesNotSupportContract({blockNumber:r,chain:t,contract:{name:e,blockCreated:o.blockCreated}});return o.address}exports.getChainContractAddress=a;
package/dist/index37.js CHANGED
@@ -1,13 +1,23 @@
1
- import { hashTypedData as o } from "./index47.js";
2
- import { sign as r } from "./index33.js";
3
- async function p(t) {
4
- const { privateKey: a, ...e } = t;
5
- return await r({
6
- hash: o(e),
7
- privateKey: a,
8
- to: "hex"
9
- });
1
+ import { ChainDoesNotSupportContract as d } from "./index56.js";
2
+ function n({ blockNumber: r, chain: t, contract: e }) {
3
+ var c;
4
+ const o = (c = t == null ? void 0 : t.contracts) == null ? void 0 : c[e];
5
+ if (!o)
6
+ throw new d({
7
+ chain: t,
8
+ contract: { name: e }
9
+ });
10
+ if (r && o.blockCreated && o.blockCreated > r)
11
+ throw new d({
12
+ blockNumber: r,
13
+ chain: t,
14
+ contract: {
15
+ name: e,
16
+ blockCreated: o.blockCreated
17
+ }
18
+ });
19
+ return o.address;
10
20
  }
11
21
  export {
12
- p as signTypedData
22
+ n as getChainContractAddress
13
23
  };
package/dist/index38.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index59.cjs");class r extends s.BaseError{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}exports.InvalidAddressError=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function g(e,{dir:i="left"}={}){let t=typeof e=="string"?e.replace("0x",""):e,n=0;for(let l=0;l<t.length-1&&t[i==="left"?l:t.length-l-1].toString()==="0";l++)n++;return t=i==="left"?t.slice(n):t.slice(0,t.length-n),typeof e=="string"?(t.length===1&&i==="right"&&(t=`${t}0`),`0x${t.length%2===1?`0${t}`:t}`):t}exports.trim=g;
package/dist/index38.js CHANGED
@@ -1,15 +1,9 @@
1
- import { BaseError as r } from "./index59.js";
2
- class d extends r {
3
- constructor({ address: s }) {
4
- super(`Address "${s}" is invalid.`, {
5
- metaMessages: [
6
- "- Address must be a hex value of 20 bytes (40 hex characters).",
7
- "- Address must match its checksum counterpart."
8
- ],
9
- name: "InvalidAddressError"
10
- });
11
- }
1
+ function f(e, { dir: n = "left" } = {}) {
2
+ let t = typeof e == "string" ? e.replace("0x", "") : e, i = 0;
3
+ for (let l = 0; l < t.length - 1 && t[n === "left" ? l : t.length - l - 1].toString() === "0"; l++)
4
+ i++;
5
+ return t = n === "left" ? t.slice(i) : t.slice(0, t.length - i), typeof e == "string" ? (t.length === 1 && n === "right" && (t = `${t}0`), `0x${t.length % 2 === 1 ? `0${t}` : t}`) : t;
12
6
  }
13
7
  export {
14
- d as InvalidAddressError
8
+ f as trim
15
9
  };
package/dist/index39.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index229.cjs"),i=require("./index49.cjs"),o=/^0x[a-fA-F0-9]{40}$/,t=new c.LruMap(8192);function f(e,n){const{strict:s=!0}=n??{},r=`${e}.${s}`;if(t.has(r))return t.get(r);const u=o.test(e)?e.toLowerCase()===e?!0:s?i.checksumAddress(e)===e:!0:!1;return t.set(r,u),u}exports.isAddress=f;exports.isAddressCache=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index194.cjs"),f=require("./index55.cjs"),i=require("./index57.cjs");function v(e,l){var t,o,n,a,s,u;if(!(e instanceof f.BaseError))return!1;const r=e.walk(c=>c instanceof i.ContractFunctionRevertedError);return r instanceof i.ContractFunctionRevertedError?!!(((t=r.data)==null?void 0:t.errorName)==="ResolverNotFound"||((o=r.data)==null?void 0:o.errorName)==="ResolverWildcardNotSupported"||((n=r.data)==null?void 0:n.errorName)==="ResolverNotContract"||((a=r.data)==null?void 0:a.errorName)==="ResolverError"||((s=r.data)==null?void 0:s.errorName)==="HttpError"||(u=r.reason)!=null&&u.includes("Wildcard on non-extended resolvers is not supported")||l==="reverse"&&r.reason===d.panicReasons[50]):!1}exports.isNullUniversalResolverError=v;
package/dist/index39.js CHANGED
@@ -1,14 +1,13 @@
1
- import { LruMap as u } from "./index229.js";
2
- import { checksumAddress as c } from "./index49.js";
3
- const i = /^0x[a-fA-F0-9]{40}$/, r = /* @__PURE__ */ new u(8192);
4
- function h(t, s) {
5
- const { strict: n = !0 } = s ?? {}, e = `${t}.${n}`;
6
- if (r.has(e))
7
- return r.get(e);
8
- const o = i.test(t) ? t.toLowerCase() === t ? !0 : n ? c(t) === t : !0 : !1;
9
- return r.set(e, o), o;
1
+ import { panicReasons as l } from "./index194.js";
2
+ import { BaseError as c } from "./index55.js";
3
+ import { ContractFunctionRevertedError as i } from "./index57.js";
4
+ function N(e, f) {
5
+ var t, o, n, a, s, u;
6
+ if (!(e instanceof c))
7
+ return !1;
8
+ const r = e.walk((d) => d instanceof i);
9
+ return r instanceof i ? !!(((t = r.data) == null ? void 0 : t.errorName) === "ResolverNotFound" || ((o = r.data) == null ? void 0 : o.errorName) === "ResolverWildcardNotSupported" || ((n = r.data) == null ? void 0 : n.errorName) === "ResolverNotContract" || ((a = r.data) == null ? void 0 : a.errorName) === "ResolverError" || ((s = r.data) == null ? void 0 : s.errorName) === "HttpError" || (u = r.reason) != null && u.includes("Wildcard on non-extended resolvers is not supported") || f === "reverse" && r.reason === l[50]) : !1;
10
10
  }
11
11
  export {
12
- h as isAddress,
13
- r as isAddressCache
12
+ N as isNullUniversalResolverError
14
13
  };
package/dist/index40.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index29.cjs"),n=require("./index41.cjs"),a=require("./index42.cjs");function g({r:i,s:o,to:u="hex",v:e,yParity:r}){const s=(()=>{if(r===0||r===1)return r;if(e&&(e===27n||e===28n||e>=35n))return e%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),t=`0x${new c.secp256k1.Signature(n.hexToBigInt(i),n.hexToBigInt(o)).toCompactHex()}${s===0?"1b":"1c"}`;return u==="hex"?t:a.hexToBytes(t)}exports.serializeSignature=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index21.cjs"),y=require("./index194.cjs"),d=require("./index221.cjs"),c=require("./index225.cjs"),b=require("./index227.cjs"),h="x-batch-gateway:true";async function q(e){const{data:o,ccipRequest:n}=e,{args:[u]}=d.decodeFunctionData({abi:r.batchGatewayAbi,data:o}),a=[],s=[];return await Promise.all(u.map(async(i,t)=>{try{s[t]=await n(i),a[t]=!1}catch(l){a[t]=!0,s[t]=g(l)}})),b.encodeFunctionResult({abi:r.batchGatewayAbi,functionName:"query",result:[a,s]})}function g(e){return e.name==="HttpRequestError"&&e.status?c.encodeErrorResult({abi:r.batchGatewayAbi,errorName:"HttpError",args:[e.status,e.shortMessage]}):c.encodeErrorResult({abi:[y.solidityError],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}exports.localBatchGatewayRequest=q;exports.localBatchGatewayUrl=h;
package/dist/index40.js CHANGED
@@ -1,16 +1,35 @@
1
- import { secp256k1 as f } from "./index29.js";
2
- import { hexToBigInt as t } from "./index41.js";
3
- import { hexToBytes as m } from "./index42.js";
4
- function s({ r: o, s: i, to: u = "hex", v: r, yParity: e }) {
5
- const a = (() => {
6
- if (e === 0 || e === 1)
7
- return e;
8
- if (r && (r === 27n || r === 28n || r >= 35n))
9
- return r % 2n === 0n ? 1 : 0;
10
- throw new Error("Invalid `v` or `yParity` value");
11
- })(), n = `0x${new f.Signature(t(o), t(i)).toCompactHex()}${a === 0 ? "1b" : "1c"}`;
12
- return u === "hex" ? n : m(n);
1
+ import { batchGatewayAbi as s } from "./index21.js";
2
+ import { solidityError as l } from "./index194.js";
3
+ import { decodeFunctionData as f } from "./index221.js";
4
+ import { encodeErrorResult as o } from "./index225.js";
5
+ import { encodeFunctionResult as p } from "./index227.js";
6
+ const E = "x-batch-gateway:true";
7
+ async function q(t) {
8
+ const { data: c, ccipRequest: n } = t, { args: [i] } = f({ abi: s, data: c }), e = [], r = [];
9
+ return await Promise.all(i.map(async (u, a) => {
10
+ try {
11
+ r[a] = await n(u), e[a] = !1;
12
+ } catch (m) {
13
+ e[a] = !0, r[a] = y(m);
14
+ }
15
+ })), p({
16
+ abi: s,
17
+ functionName: "query",
18
+ result: [e, r]
19
+ });
20
+ }
21
+ function y(t) {
22
+ return t.name === "HttpRequestError" && t.status ? o({
23
+ abi: s,
24
+ errorName: "HttpError",
25
+ args: [t.status, t.shortMessage]
26
+ }) : o({
27
+ abi: [l],
28
+ errorName: "Error",
29
+ args: ["shortMessage" in t ? t.shortMessage : t.message]
30
+ });
13
31
  }
14
32
  export {
15
- s as serializeSignature
33
+ q as localBatchGatewayRequest,
34
+ E as localBatchGatewayUrl
16
35
  };
package/dist/index41.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index160.cjs"),u=require("./index144.cjs"),t=require("./index177.cjs");function o(i,{size:e}){if(u.size(i)>e)throw new f.SizeOverflowError({givenSize:u.size(i),maxSize:e})}function z(i,e={}){const{signed:n}=e;e.size&&o(i,{size:e.size});const r=BigInt(i);if(!n)return r;const s=(i.length-2)/2,c=(1n<<BigInt(s)*8n-1n)-1n;return r<=c?r:r-BigInt(`0x${"f".padStart(s*2,"f")}`)-1n}function a(i,e={}){let n=i;if(e.size&&(o(n,{size:e.size}),n=t.trim(n)),t.trim(n)==="0x00")return!1;if(t.trim(n)==="0x01")return!0;throw new f.InvalidHexBooleanError(n)}function l(i,e={}){return Number(z(i,e))}exports.assertSize=o;exports.hexToBigInt=z;exports.hexToBool=a;exports.hexToNumber=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index212.cjs"),n=require("./index209.cjs"),r=require("./index30.cjs"),a=require("./index210.cjs"),h=require("./index211.cjs");function b(s){let e=new Uint8Array(32).fill(0);if(!s)return r.bytesToHex(e);const o=s.split(".");for(let t=o.length-1;t>=0;t-=1){const c=h.encodedLabelToLabelhash(o[t]),l=c?n.toBytes(c):a.keccak256(n.stringToBytes(o[t]),"bytes");e=a.keccak256(i.concat([e,l]),"bytes")}return r.bytesToHex(e)}exports.namehash=b;