@gardenfi/swap 0.1.3-beta.20 → 0.1.3-beta.21

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 (566) hide show
  1. package/dist/index100.cjs +1 -1
  2. package/dist/index100.js +3 -3
  3. package/dist/index105.cjs +1 -1
  4. package/dist/index105.js +2 -2
  5. package/dist/index106.cjs +1 -1
  6. package/dist/index106.js +2 -2
  7. package/dist/index107.cjs +1 -1
  8. package/dist/index107.js +6 -6
  9. package/dist/index108.cjs +1 -1
  10. package/dist/index108.js +2 -2
  11. package/dist/index112.cjs +1 -1
  12. package/dist/index112.js +34 -41
  13. package/dist/index113.cjs +1 -1
  14. package/dist/index113.js +3 -79
  15. package/dist/index114.cjs +1 -1
  16. package/dist/index114.js +10 -3
  17. package/dist/index115.cjs +1 -1
  18. package/dist/index115.js +116 -32
  19. package/dist/index116.cjs +1 -1
  20. package/dist/index116.js +58 -112
  21. package/dist/index117.cjs +1 -1
  22. package/dist/index117.js +25 -4
  23. package/dist/index118.cjs +1 -1
  24. package/dist/index118.js +35 -14
  25. package/dist/index119.cjs +1 -1
  26. package/dist/index119.js +41 -11
  27. package/dist/index120.cjs +1 -1
  28. package/dist/index120.js +57 -17
  29. package/dist/index121.cjs +1 -1
  30. package/dist/index121.js +38 -56
  31. package/dist/index122.cjs +1 -1
  32. package/dist/index122.js +9 -20
  33. package/dist/index123.cjs +1 -1
  34. package/dist/index123.js +32 -14
  35. package/dist/index124.cjs +1 -1
  36. package/dist/index124.js +32 -280
  37. package/dist/index125.cjs +1 -1
  38. package/dist/index125.js +8 -572
  39. package/dist/index126.cjs +1 -1
  40. package/dist/index126.js +28 -32
  41. package/dist/index127.cjs +1 -1
  42. package/dist/index127.js +50 -3
  43. package/dist/index128.cjs +1 -1
  44. package/dist/index128.js +69 -8
  45. package/dist/index129.cjs +1 -1
  46. package/dist/index129.js +41 -116
  47. package/dist/index130.cjs +1 -1
  48. package/dist/index130.js +73 -57
  49. package/dist/index131.cjs +1 -1
  50. package/dist/index131.js +7 -23
  51. package/dist/index132.cjs +1 -1
  52. package/dist/index132.js +6 -36
  53. package/dist/index133.cjs +1 -1
  54. package/dist/index133.js +17 -41
  55. package/dist/index134.cjs +1 -1
  56. package/dist/index134.js +8 -58
  57. package/dist/index135.cjs +1 -1
  58. package/dist/index135.js +13 -40
  59. package/dist/index136.cjs +1 -1
  60. package/dist/index136.js +7 -9
  61. package/dist/index137.cjs +1 -1
  62. package/dist/index137.js +15 -30
  63. package/dist/index138.cjs +1 -1
  64. package/dist/index138.js +46 -36
  65. package/dist/index139.cjs +1 -1
  66. package/dist/index139.js +13 -9
  67. package/dist/index140.cjs +1 -1
  68. package/dist/index140.js +15 -28
  69. package/dist/index141.cjs +1 -1
  70. package/dist/index141.js +13 -50
  71. package/dist/index142.cjs +1 -1
  72. package/dist/index142.js +6 -70
  73. package/dist/index143.cjs +1 -1
  74. package/dist/index143.js +35 -41
  75. package/dist/index144.cjs +1 -1
  76. package/dist/index144.js +9 -77
  77. package/dist/index145.cjs +1 -1
  78. package/dist/index145.js +7 -7
  79. package/dist/index146.cjs +1 -1
  80. package/dist/index146.js +29 -6
  81. package/dist/index147.cjs +1 -1
  82. package/dist/index147.js +10 -17
  83. package/dist/index148.cjs +1 -1
  84. package/dist/index148.js +14 -8
  85. package/dist/index149.cjs +1 -1
  86. package/dist/index149.js +12 -13
  87. package/dist/index150.cjs +1 -1
  88. package/dist/index150.js +121 -7
  89. package/dist/index151.cjs +1 -1
  90. package/dist/index151.js +82 -16
  91. package/dist/index152.cjs +1 -1
  92. package/dist/index152.js +173 -42
  93. package/dist/index153.cjs +1 -1
  94. package/dist/index153.js +44 -13
  95. package/dist/index154.cjs +1 -1
  96. package/dist/index154.js +4 -14
  97. package/dist/index155.cjs +1 -1
  98. package/dist/index155.js +14 -13
  99. package/dist/index156.cjs +1 -1
  100. package/dist/index156.js +13 -5
  101. package/dist/index157.cjs +1 -1
  102. package/dist/index157.js +102 -34
  103. package/dist/index158.cjs +1 -1
  104. package/dist/index158.js +75 -9
  105. package/dist/index159.cjs +1 -1
  106. package/dist/index159.js +89 -8
  107. package/dist/index160.cjs +1 -1
  108. package/dist/index160.js +150 -28
  109. package/dist/index161.cjs +1 -1
  110. package/dist/index161.js +138 -10
  111. package/dist/index162.cjs +1 -1
  112. package/dist/index162.js +69 -14
  113. package/dist/index163.cjs +1 -1
  114. package/dist/index163.js +23 -12
  115. package/dist/index164.cjs +1 -1
  116. package/dist/index164.js +155 -112
  117. package/dist/index165.cjs +1 -1
  118. package/dist/index165.js +6 -82
  119. package/dist/index166.cjs +1 -1
  120. package/dist/index166.js +13 -177
  121. package/dist/index167.cjs +1 -1
  122. package/dist/index167.js +19 -44
  123. package/dist/index168.cjs +1 -1
  124. package/dist/index168.js +106 -6
  125. package/dist/index169.cjs +1 -1
  126. package/dist/index169.js +78 -14
  127. package/dist/index170.cjs +1 -1
  128. package/dist/index170.js +9 -14
  129. package/dist/index171.cjs +1 -1
  130. package/dist/index171.js +26 -101
  131. package/dist/index172.cjs +1 -1
  132. package/dist/index172.js +87 -72
  133. package/dist/index173.cjs +1 -1
  134. package/dist/index173.js +3 -90
  135. package/dist/index174.cjs +1 -1
  136. package/dist/index174.js +2 -152
  137. package/dist/index175.cjs +2 -1
  138. package/dist/index175.js +3 -139
  139. package/dist/index176.cjs +1 -1
  140. package/dist/index176.js +9 -70
  141. package/dist/index177.cjs +20 -1
  142. package/dist/index177.js +326 -23
  143. package/dist/index178.cjs +1 -1
  144. package/dist/index178.js +13 -164
  145. package/dist/index179.cjs +2 -1
  146. package/dist/index179.js +59 -6
  147. package/dist/index180.cjs +1 -1
  148. package/dist/index180.js +2 -14
  149. package/dist/index181.cjs +1 -1
  150. package/dist/index181.js +7 -19
  151. package/dist/index182.cjs +1 -1
  152. package/dist/index182.js +32 -107
  153. package/dist/index183.cjs +1 -1
  154. package/dist/index183.js +21 -78
  155. package/dist/index184.cjs +1 -1
  156. package/dist/index184.js +5 -9
  157. package/dist/index185.cjs +1 -1
  158. package/dist/index185.js +71 -26
  159. package/dist/index186.cjs +1 -1
  160. package/dist/index186.js +5 -90
  161. package/dist/index187.cjs +1 -1
  162. package/dist/index187.js +6 -3
  163. package/dist/index188.cjs +9 -1
  164. package/dist/index188.js +36 -2
  165. package/dist/index189.cjs +2 -2
  166. package/dist/index189.js +121 -3
  167. package/dist/index190.cjs +1 -1
  168. package/dist/index190.js +3 -9
  169. package/dist/index191.cjs +1 -20
  170. package/dist/index191.js +13 -321
  171. package/dist/index192.cjs +1 -1
  172. package/dist/index192.js +31 -11
  173. package/dist/index193.cjs +1 -2
  174. package/dist/index193.js +30 -54
  175. package/dist/index194.cjs +1 -1
  176. package/dist/index194.js +24 -2
  177. package/dist/index195.cjs +1 -1
  178. package/dist/index195.js +7 -6
  179. package/dist/index196.cjs +4 -1
  180. package/dist/index196.js +195 -32
  181. package/dist/index197.cjs +1 -1
  182. package/dist/index197.js +2 -22
  183. package/dist/index198.cjs +3 -1
  184. package/dist/index198.js +451 -5
  185. package/dist/index199.cjs +1 -1
  186. package/dist/index199.js +22 -68
  187. package/dist/index200.cjs +1 -1
  188. package/dist/index200.js +161 -5
  189. package/dist/index201.cjs +1 -1
  190. package/dist/index201.js +127 -5
  191. package/dist/index202.cjs +1 -9
  192. package/dist/index202.js +33 -30
  193. package/dist/index203.cjs +1 -2
  194. package/dist/index203.js +27 -120
  195. package/dist/index204.cjs +1 -1
  196. package/dist/index204.js +56 -3
  197. package/dist/index205.cjs +1 -1
  198. package/dist/index205.js +186 -13
  199. package/dist/index206.cjs +1 -1
  200. package/dist/index206.js +4 -34
  201. package/dist/index207.cjs +1 -1
  202. package/dist/index207.js +71 -33
  203. package/dist/index208.cjs +1 -1
  204. package/dist/index208.js +14 -17
  205. package/dist/index209.cjs +1 -1
  206. package/dist/index209.js +3 -9
  207. package/dist/index210.cjs +1 -4
  208. package/dist/index210.js +16 -194
  209. package/dist/index211.cjs +1 -1
  210. package/dist/index211.js +24 -2
  211. package/dist/index212.cjs +1 -3
  212. package/dist/index212.js +34 -451
  213. package/dist/index213.cjs +1 -1
  214. package/dist/index213.js +3 -28
  215. package/dist/index214.cjs +1 -1
  216. package/dist/index214.js +27 -161
  217. package/dist/index215.cjs +1 -1
  218. package/dist/index215.js +35 -126
  219. package/dist/index216.cjs +1 -1
  220. package/dist/index216.js +8 -38
  221. package/dist/index217.cjs +1 -1
  222. package/dist/index217.js +25 -27
  223. package/dist/index218.cjs +1 -1
  224. package/dist/index218.js +27 -54
  225. package/dist/index219.cjs +1 -1
  226. package/dist/index219.js +72 -188
  227. package/dist/index220.cjs +1 -1
  228. package/dist/index220.js +22 -4
  229. package/dist/index221.cjs +1 -1
  230. package/dist/index221.js +8 -73
  231. package/dist/index222.cjs +1 -1
  232. package/dist/index222.js +9 -19
  233. package/dist/index223.cjs +1 -1
  234. package/dist/index223.js +12 -3
  235. package/dist/index224.cjs +1 -1
  236. package/dist/index224.js +6 -16
  237. package/dist/index225.cjs +1 -1
  238. package/dist/index225.js +6 -23
  239. package/dist/index226.cjs +1 -1
  240. package/dist/index226.js +12 -33
  241. package/dist/index227.cjs +1 -1
  242. package/dist/index227.js +33 -3
  243. package/dist/index228.cjs +1 -1
  244. package/dist/index228.js +5 -28
  245. package/dist/index229.cjs +1 -1
  246. package/dist/index229.js +34 -33
  247. package/dist/index230.cjs +1 -1
  248. package/dist/index230.js +111 -8
  249. package/dist/index231.cjs +1 -1
  250. package/dist/index231.js +47 -23
  251. package/dist/index232.cjs +1 -1
  252. package/dist/index232.js +32 -28
  253. package/dist/index233.cjs +1 -1
  254. package/dist/index233.js +8 -75
  255. package/dist/index234.cjs +1 -1
  256. package/dist/index234.js +7 -21
  257. package/dist/index235.cjs +1 -1
  258. package/dist/index235.js +16 -8
  259. package/dist/index236.cjs +1 -1
  260. package/dist/index236.js +22 -10
  261. package/dist/index237.cjs +1 -1
  262. package/dist/index237.js +104 -11
  263. package/dist/index238.cjs +1 -1
  264. package/dist/index238.js +3 -7
  265. package/dist/index239.cjs +1 -1
  266. package/dist/index239.js +5 -6
  267. package/dist/index240.cjs +1 -1
  268. package/dist/index240.js +31 -13
  269. package/dist/index241.cjs +1 -1
  270. package/dist/index241.js +19 -31
  271. package/dist/index242.cjs +1 -1
  272. package/dist/index242.js +4 -5
  273. package/dist/index243.cjs +1 -1
  274. package/dist/index243.js +17 -37
  275. package/dist/index244.cjs +1 -1
  276. package/dist/index244.js +5 -111
  277. package/dist/index245.cjs +1 -1
  278. package/dist/index245.js +8 -49
  279. package/dist/index246.cjs +1 -1
  280. package/dist/index246.js +100 -29
  281. package/dist/index247.cjs +1 -1
  282. package/dist/index247.js +64 -8
  283. package/dist/index248.cjs +1 -1
  284. package/dist/index248.js +6 -7
  285. package/dist/index249.cjs +1 -1
  286. package/dist/index249.js +27 -16
  287. package/dist/index250.cjs +1 -1
  288. package/dist/index250.js +34 -22
  289. package/dist/index251.cjs +1 -1
  290. package/dist/index251.js +16 -104
  291. package/dist/index252.cjs +1 -1
  292. package/dist/index252.js +79 -3
  293. package/dist/index253.cjs +1 -1
  294. package/dist/index253.js +2 -6
  295. package/dist/index254.cjs +1 -1
  296. package/dist/index254.js +14 -31
  297. package/dist/index255.cjs +1 -1
  298. package/dist/index255.js +18 -20
  299. package/dist/index256.cjs +1 -1
  300. package/dist/index256.js +17 -3
  301. package/dist/index257.cjs +1 -1
  302. package/dist/index257.js +10 -17
  303. package/dist/index258.cjs +1 -1
  304. package/dist/index258.js +79 -5
  305. package/dist/index259.cjs +1 -1
  306. package/dist/index259.js +3 -9
  307. package/dist/index260.cjs +1 -1
  308. package/dist/index260.js +28 -99
  309. package/dist/index261.cjs +1 -1
  310. package/dist/index261.js +112 -61
  311. package/dist/index262.cjs +1 -1
  312. package/dist/index262.js +4 -7
  313. package/dist/index263.cjs +1 -1
  314. package/dist/index263.js +14 -26
  315. package/dist/index264.cjs +1 -1
  316. package/dist/index264.js +11 -34
  317. package/dist/index265.cjs +1 -1
  318. package/dist/index265.js +18 -16
  319. package/dist/index266.cjs +1 -1
  320. package/dist/index266.js +54 -74
  321. package/dist/index267.cjs +1 -1
  322. package/dist/index267.js +21 -2
  323. package/dist/index268.cjs +1 -1
  324. package/dist/index268.js +14 -15
  325. package/dist/index269.cjs +1 -1
  326. package/dist/index269.js +282 -16
  327. package/dist/index270.cjs +1 -1
  328. package/dist/index270.js +573 -17
  329. package/dist/index271.cjs +1 -1
  330. package/dist/index271.js +41 -11
  331. package/dist/index272.cjs +1 -1
  332. package/dist/index272.js +1 -1
  333. package/dist/index273.cjs +1 -1
  334. package/dist/index273.js +2 -2
  335. package/dist/index278.cjs +1 -1
  336. package/dist/index278.js +2 -2
  337. package/dist/index304.cjs +1 -1
  338. package/dist/index304.js +1 -1
  339. package/dist/index305.cjs +1 -1
  340. package/dist/index305.js +9 -43
  341. package/dist/index306.cjs +1 -1
  342. package/dist/index306.js +9 -320
  343. package/dist/index307.cjs +1 -1
  344. package/dist/index307.js +15 -604
  345. package/dist/index308.cjs +1 -1
  346. package/dist/index308.js +22 -109
  347. package/dist/index309.cjs +1 -1
  348. package/dist/index309.js +13 -167
  349. package/dist/index31.cjs +1 -1
  350. package/dist/index31.js +1 -1
  351. package/dist/index310.cjs +1 -1
  352. package/dist/index310.js +12 -300
  353. package/dist/index311.cjs +1 -1
  354. package/dist/index311.js +14 -93
  355. package/dist/index312.cjs +1 -1
  356. package/dist/index312.js +7 -54
  357. package/dist/index313.cjs +1 -1
  358. package/dist/index313.js +14 -52
  359. package/dist/index314.cjs +1 -1
  360. package/dist/index314.js +24 -43
  361. package/dist/index315.cjs +1 -1
  362. package/dist/index315.js +31 -15
  363. package/dist/index316.cjs +2 -1
  364. package/dist/index316.js +18 -317
  365. package/dist/index317.cjs +1 -1
  366. package/dist/index317.js +13 -58
  367. package/dist/index318.cjs +1 -1
  368. package/dist/index318.js +11 -19
  369. package/dist/index319.cjs +1 -1
  370. package/dist/index319.js +11 -28
  371. package/dist/index32.cjs +1 -1
  372. package/dist/index32.js +1 -1
  373. package/dist/index320.cjs +1 -1
  374. package/dist/index320.js +33 -3
  375. package/dist/index321.cjs +1 -7
  376. package/dist/index321.js +107 -229
  377. package/dist/index322.cjs +1 -1
  378. package/dist/index322.js +104 -48
  379. package/dist/index323.cjs +1 -1
  380. package/dist/index323.js +6 -212
  381. package/dist/index324.cjs +1 -1
  382. package/dist/index324.js +6 -81
  383. package/dist/index325.cjs +1 -1
  384. package/dist/index325.js +24 -27
  385. package/dist/index326.cjs +1 -1
  386. package/dist/index326.js +13 -73
  387. package/dist/index327.cjs +1 -1
  388. package/dist/index327.js +213 -7
  389. package/dist/index328.cjs +1 -1
  390. package/dist/index328.js +43 -10
  391. package/dist/index329.cjs +1 -1
  392. package/dist/index329.js +320 -16
  393. package/dist/index330.cjs +1 -1
  394. package/dist/index330.js +604 -21
  395. package/dist/index331.cjs +1 -1
  396. package/dist/index331.js +110 -14
  397. package/dist/index332.cjs +1 -1
  398. package/dist/index332.js +167 -13
  399. package/dist/index333.cjs +1 -1
  400. package/dist/index333.js +300 -13
  401. package/dist/index334.cjs +1 -1
  402. package/dist/index334.js +93 -9
  403. package/dist/index335.cjs +1 -1
  404. package/dist/index335.js +54 -13
  405. package/dist/index336.cjs +1 -1
  406. package/dist/index336.js +51 -23
  407. package/dist/index337.cjs +1 -1
  408. package/dist/index337.js +43 -30
  409. package/dist/index338.cjs +1 -2
  410. package/dist/index338.js +15 -18
  411. package/dist/index339.cjs +1 -1
  412. package/dist/index339.js +317 -14
  413. package/dist/index340.cjs +1 -1
  414. package/dist/index340.js +59 -11
  415. package/dist/index341.cjs +1 -1
  416. package/dist/index341.js +19 -12
  417. package/dist/index342.cjs +1 -1
  418. package/dist/index342.js +27 -31
  419. package/dist/index343.cjs +1 -1
  420. package/dist/index343.js +3 -115
  421. package/dist/index344.cjs +7 -1
  422. package/dist/index344.js +237 -6
  423. package/dist/index345.cjs +1 -1
  424. package/dist/index345.js +47 -6
  425. package/dist/index346.cjs +1 -1
  426. package/dist/index346.js +208 -99
  427. package/dist/index347.cjs +1 -1
  428. package/dist/index347.js +76 -21
  429. package/dist/index348.cjs +1 -1
  430. package/dist/index348.js +28 -15
  431. package/dist/index349.cjs +1 -1
  432. package/dist/index349.js +71 -209
  433. package/dist/index350.cjs +1 -1
  434. package/dist/index350.js +1 -1
  435. package/dist/index351.cjs +1 -1
  436. package/dist/index351.js +1 -1
  437. package/dist/index359.cjs +1 -1
  438. package/dist/index359.js +2 -2
  439. package/dist/index361.cjs +1 -1
  440. package/dist/index361.js +204 -50
  441. package/dist/index362.cjs +1 -1
  442. package/dist/index362.js +50 -204
  443. package/dist/index364.cjs +1 -1
  444. package/dist/index364.js +3 -94
  445. package/dist/index365.cjs +1 -1
  446. package/dist/index365.js +137 -25
  447. package/dist/index366.cjs +1 -1
  448. package/dist/index366.js +129 -144
  449. package/dist/index367.cjs +1 -1
  450. package/dist/index367.js +74 -350
  451. package/dist/index368.cjs +1 -1
  452. package/dist/index368.js +2 -276
  453. package/dist/index369.cjs +1 -1
  454. package/dist/index369.js +43 -171
  455. package/dist/index370.cjs +1 -1
  456. package/dist/index370.js +658 -10
  457. package/dist/index371.cjs +1 -1
  458. package/dist/index371.js +171 -101
  459. package/dist/index372.cjs +1 -1
  460. package/dist/index372.js +94 -5
  461. package/dist/index373.cjs +1 -1
  462. package/dist/index373.js +27 -72
  463. package/dist/index374.cjs +1 -1
  464. package/dist/index374.js +148 -9
  465. package/dist/index375.cjs +1 -1
  466. package/dist/index375.js +354 -31
  467. package/dist/index376.cjs +1 -1
  468. package/dist/index376.js +73 -3
  469. package/dist/index377.cjs +1 -1
  470. package/dist/index377.js +29 -138
  471. package/dist/index378.cjs +1 -1
  472. package/dist/index378.js +5 -133
  473. package/dist/index379.cjs +1 -1
  474. package/dist/index379.js +102 -73
  475. package/dist/index38.cjs +1 -1
  476. package/dist/index38.js +2 -2
  477. package/dist/index380.cjs +1 -1
  478. package/dist/index380.js +10 -2
  479. package/dist/index381.cjs +1 -1
  480. package/dist/index381.js +274 -41
  481. package/dist/index382.cjs +1 -1
  482. package/dist/index382.js +171 -658
  483. package/dist/index383.cjs +1 -1
  484. package/dist/index383.js +8 -176
  485. package/dist/index386.cjs +1 -1
  486. package/dist/index386.js +59 -106
  487. package/dist/index387.cjs +1 -1
  488. package/dist/index387.js +110 -3
  489. package/dist/index388.cjs +1 -1
  490. package/dist/index388.js +3 -63
  491. package/dist/index389.cjs +1 -1
  492. package/dist/index389.js +2 -2
  493. package/dist/index44.cjs +1 -1
  494. package/dist/index44.js +2 -2
  495. package/dist/index45.cjs +1 -1
  496. package/dist/index45.js +5 -5
  497. package/dist/index47.cjs +1 -1
  498. package/dist/index47.js +1 -1
  499. package/dist/index48.cjs +1 -1
  500. package/dist/index48.js +1 -1
  501. package/dist/index49.cjs +1 -1
  502. package/dist/index49.js +1 -1
  503. package/dist/index50.cjs +1 -1
  504. package/dist/index50.js +2 -2
  505. package/dist/index51.cjs +1 -1
  506. package/dist/index51.js +1 -1
  507. package/dist/index52.cjs +1 -1
  508. package/dist/index52.js +1 -1
  509. package/dist/index53.cjs +1 -1
  510. package/dist/index53.js +1 -1
  511. package/dist/index54.cjs +1 -1
  512. package/dist/index54.js +1 -1
  513. package/dist/index55.cjs +1 -1
  514. package/dist/index55.js +2 -2
  515. package/dist/index56.cjs +1 -1
  516. package/dist/index56.js +2 -2
  517. package/dist/index57.cjs +1 -1
  518. package/dist/index57.js +1 -1
  519. package/dist/index58.cjs +1 -1
  520. package/dist/index58.js +1 -1
  521. package/dist/index59.cjs +1 -1
  522. package/dist/index59.js +1 -1
  523. package/dist/index60.cjs +1 -1
  524. package/dist/index60.js +1 -1
  525. package/dist/index61.cjs +1 -1
  526. package/dist/index61.js +1 -1
  527. package/dist/index62.cjs +1 -1
  528. package/dist/index62.js +1 -1
  529. package/dist/index63.cjs +1 -1
  530. package/dist/index63.js +2 -2
  531. package/dist/index64.cjs +1 -1
  532. package/dist/index64.js +2 -2
  533. package/dist/index67.cjs +1 -1
  534. package/dist/index67.js +17 -32
  535. package/dist/index68.cjs +1 -1
  536. package/dist/index68.js +9 -14
  537. package/dist/index69.cjs +1 -1
  538. package/dist/index69.js +32 -17
  539. package/dist/index70.cjs +1 -1
  540. package/dist/index70.js +14 -9
  541. package/dist/index79.cjs +1 -1
  542. package/dist/index79.js +10 -10
  543. package/dist/index80.cjs +1 -1
  544. package/dist/index80.js +15 -15
  545. package/dist/index81.cjs +1 -1
  546. package/dist/index81.js +1 -1
  547. package/dist/index82.cjs +1 -1
  548. package/dist/index82.js +1 -1
  549. package/dist/index84.cjs +1 -1
  550. package/dist/index84.js +1 -1
  551. package/dist/index85.cjs +1 -1
  552. package/dist/index85.js +3 -3
  553. package/dist/index86.cjs +1 -1
  554. package/dist/index86.js +9 -9
  555. package/dist/index88.cjs +1 -1
  556. package/dist/index88.js +1 -1
  557. package/dist/index89.cjs +1 -1
  558. package/dist/index89.js +1 -1
  559. package/dist/index97.cjs +1 -1
  560. package/dist/index97.js +13 -13
  561. package/dist/index98.cjs +1 -1
  562. package/dist/index98.js +2 -2
  563. package/dist/index99.cjs +1 -1
  564. package/dist/index99.js +2 -2
  565. package/dist/src/lib/store/swapStore.d.ts +1 -1
  566. package/package.json +5 -5
package/dist/index45.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./index183.cjs"),H=require("./index184.cjs"),U=require("./index185.cjs"),_=require("./index186.cjs"),k=require("./index181.cjs");function v(h,r={}){const{batch:o,fetchFn:l,fetchOptions:u,key:q="http",methods:d,name:y="HTTP JSON-RPC",onFetchRequest:f,onFetchResponse:R,retryDelay:w,raw:S}=r;return({chain:n,retryCount:m,timeout:C})=>{const{batchSize:b=1e3,wait:T=0}=typeof o=="object"?o:{},B=r.retryCount??m,c=C??r.timeout??1e4,e=h||(n==null?void 0:n.rpcUrls.default.http[0]);if(!e)throw new H.UrlRequiredError;const a=_.getHttpRpcClient(e,{fetchFn:l,fetchOptions:u,onRequest:f,onResponse:R,timeout:c});return k.createTransport({key:q,methods:d,name:y,async request({method:F,params:O}){const i={method:F,params:O},{schedule:P}=U.createBatchScheduler({id:e,wait:T,shouldSplitBatch(t){return t.length>b},fn:t=>a.request({body:t}),sort:(t,j)=>t.id-j.id}),g=async t=>o?P(t):[await a.request({body:t})],[{error:s,result:p}]=await g(i);if(S)return{error:s,result:p};if(s)throw new E.RpcRequestError({body:i,error:s,url:e});return p},retryCount:B,retryDelay:w,timeout:c,type:"http"},{fetchOptions:u,url:e})}}exports.http=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./index169.cjs"),H=require("./index170.cjs"),U=require("./index171.cjs"),_=require("./index172.cjs"),k=require("./index167.cjs");function v(h,r={}){const{batch:o,fetchFn:l,fetchOptions:u,key:q="http",methods:d,name:y="HTTP JSON-RPC",onFetchRequest:f,onFetchResponse:R,retryDelay:w,raw:S}=r;return({chain:n,retryCount:m,timeout:C})=>{const{batchSize:b=1e3,wait:T=0}=typeof o=="object"?o:{},B=r.retryCount??m,c=C??r.timeout??1e4,e=h||(n==null?void 0:n.rpcUrls.default.http[0]);if(!e)throw new H.UrlRequiredError;const a=_.getHttpRpcClient(e,{fetchFn:l,fetchOptions:u,onRequest:f,onResponse:R,timeout:c});return k.createTransport({key:q,methods:d,name:y,async request({method:F,params:O}){const i={method:F,params:O},{schedule:P}=U.createBatchScheduler({id:e,wait:T,shouldSplitBatch(t){return t.length>b},fn:t=>a.request({body:t}),sort:(t,j)=>t.id-j.id}),g=async t=>o?P(t):[await a.request({body:t})],[{error:s,result:p}]=await g(i);if(S)return{error:s,result:p};if(s)throw new E.RpcRequestError({body:i,error:s,url:e});return p},retryCount:B,retryDelay:w,timeout:c,type:"http"},{fetchOptions:u,url:e})}}exports.http=v;
package/dist/index45.js CHANGED
@@ -1,8 +1,8 @@
1
- import { RpcRequestError as U } from "./index183.js";
2
- import { UrlRequiredError as _ } from "./index184.js";
3
- import { createBatchScheduler as j } from "./index185.js";
4
- import { getHttpRpcClient as k } from "./index186.js";
5
- import { createTransport as x } from "./index181.js";
1
+ import { RpcRequestError as U } from "./index169.js";
2
+ import { UrlRequiredError as _ } from "./index170.js";
3
+ import { createBatchScheduler as j } from "./index171.js";
4
+ import { getHttpRpcClient as k } from "./index172.js";
5
+ import { createTransport as x } from "./index167.js";
6
6
  function v(l, r = {}) {
7
7
  const { batch: o, fetchFn: m, fetchOptions: u, key: a = "http", methods: f, name: y = "HTTP JSON-RPC", onFetchRequest: d, onFetchResponse: R, retryDelay: w, raw: q } = r;
8
8
  return ({ chain: n, retryCount: C, timeout: S }) => {
package/dist/index47.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index69.cjs"),t=e.defineChain({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}});exports.mainnet=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index67.cjs"),t=e.defineChain({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}});exports.mainnet=t;
package/dist/index47.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineChain as e } from "./index69.js";
1
+ import { defineChain as e } from "./index67.js";
2
2
  const t = /* @__PURE__ */ e({
3
3
  id: 1,
4
4
  name: "Ethereum",
package/dist/index48.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index69.cjs"),a=r.defineChain({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}});exports.arbitrum=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index67.cjs"),a=r.defineChain({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}});exports.arbitrum=a;
package/dist/index48.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineChain as a } from "./index69.js";
1
+ import { defineChain as a } from "./index67.js";
2
2
  const t = /* @__PURE__ */ a({
3
3
  id: 42161,
4
4
  name: "Arbitrum One",
package/dist/index49.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index69.cjs"),o=e.defineChain({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}});exports.polygon=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index67.cjs"),o=e.defineChain({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}});exports.polygon=o;
package/dist/index49.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineChain as o } from "./index69.js";
1
+ import { defineChain as o } from "./index67.js";
2
2
  const e = /* @__PURE__ */ o({
3
3
  id: 137,
4
4
  name: "Polygon",
package/dist/index50.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index70.cjs"),a=require("./index69.cjs"),e=1,i=a.defineChain({...t.chainConfig,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...t.chainConfig.contracts,disputeGameFactory:{[e]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[e]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[e]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[e]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:e});exports.optimism=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index68.cjs"),a=require("./index67.cjs"),e=1,i=a.defineChain({...t.chainConfig,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...t.chainConfig.contracts,disputeGameFactory:{[e]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[e]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[e]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[e]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:e});exports.optimism=i;
package/dist/index50.js CHANGED
@@ -1,5 +1,5 @@
1
- import { chainConfig as t } from "./index70.js";
2
- import { defineChain as a } from "./index69.js";
1
+ import { chainConfig as t } from "./index68.js";
2
+ import { defineChain as a } from "./index67.js";
3
3
  const e = 1, s = /* @__PURE__ */ a({
4
4
  ...t,
5
5
  id: 10,
package/dist/index51.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index69.cjs"),c=e.defineChain({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}});exports.bsc=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index67.cjs"),c=e.defineChain({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}});exports.bsc=c;
package/dist/index51.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineChain as a } from "./index69.js";
1
+ import { defineChain as a } from "./index67.js";
2
2
  const t = /* @__PURE__ */ a({
3
3
  id: 56,
4
4
  name: "BNB Smart Chain",
package/dist/index52.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index69.cjs"),a=e.defineChain({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}});exports.avalanche=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index67.cjs"),a=e.defineChain({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}});exports.avalanche=a;
package/dist/index52.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineChain as a } from "./index69.js";
1
+ import { defineChain as a } from "./index67.js";
2
2
  const t = /* @__PURE__ */ a({
3
3
  id: 43114,
4
4
  name: "Avalanche",
package/dist/index53.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index69.cjs"),a=e.defineChain({id:421614,name:"Arbitrum Sepolia",blockTime:250,nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io",apiUrl:"https://api-sepolia.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0});exports.arbitrumSepolia=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index67.cjs"),a=e.defineChain({id:421614,name:"Arbitrum Sepolia",blockTime:250,nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io",apiUrl:"https://api-sepolia.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0});exports.arbitrumSepolia=a;
package/dist/index53.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineChain as a } from "./index69.js";
1
+ import { defineChain as a } from "./index67.js";
2
2
  const e = /* @__PURE__ */ a({
3
3
  id: 421614,
4
4
  name: "Arbitrum Sepolia",
package/dist/index54.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index69.cjs"),a=e.defineChain({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0});exports.sepolia=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index67.cjs"),a=e.defineChain({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0});exports.sepolia=a;
package/dist/index54.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineChain as e } from "./index69.js";
1
+ import { defineChain as e } from "./index67.js";
2
2
  const t = /* @__PURE__ */ e({
3
3
  id: 11155111,
4
4
  name: "Sepolia",
package/dist/index55.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index70.cjs"),t=require("./index69.cjs"),e=11155111,s=t.defineChain({...a.chainConfig,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...a.chainConfig.contracts,disputeGameFactory:{[e]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[e]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[e]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[e]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:e});({...s});exports.baseSepolia=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index68.cjs"),t=require("./index67.cjs"),e=11155111,s=t.defineChain({...a.chainConfig,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...a.chainConfig.contracts,disputeGameFactory:{[e]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[e]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[e]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[e]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:e});({...s});exports.baseSepolia=s;
package/dist/index55.js CHANGED
@@ -1,5 +1,5 @@
1
- import { chainConfig as a } from "./index70.js";
2
- import { defineChain as t } from "./index69.js";
1
+ import { chainConfig as a } from "./index68.js";
2
+ import { defineChain as t } from "./index67.js";
3
3
  const e = 11155111, r = /* @__PURE__ */ t({
4
4
  ...a,
5
5
  id: 84532,
package/dist/index56.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index70.cjs"),t=require("./index69.cjs"),e=1,r=t.defineChain({...a.chainConfig,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...a.chainConfig.contracts,disputeGameFactory:{[e]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[e]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[e]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[e]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:e});({...r});exports.base=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index68.cjs"),t=require("./index67.cjs"),e=1,r=t.defineChain({...a.chainConfig,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...a.chainConfig.contracts,disputeGameFactory:{[e]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[e]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[e]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[e]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:e});({...r});exports.base=r;
package/dist/index56.js CHANGED
@@ -1,5 +1,5 @@
1
- import { chainConfig as a } from "./index70.js";
2
- import { defineChain as r } from "./index69.js";
1
+ import { chainConfig as a } from "./index68.js";
2
+ import { defineChain as r } from "./index67.js";
3
3
  const e = 1, t = /* @__PURE__ */ r({
4
4
  ...a,
5
5
  id: 8453,
package/dist/index57.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index69.cjs"),r=e.defineChain({id:80084,name:"Berachain bArtio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:109269},ensRegistry:{address:"0xB0eef18971290b333450586D33dcA6cE122651D2",blockCreated:7736794},ensUniversalResolver:{address:"0x41692Ef1EA0C79E6b73077E4A67572D2BDbD7057",blockCreated:7736795}},ensTlds:[".bera"],rpcUrls:{default:{http:["https://bartio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain bArtio Beratrail",url:"https://bartio.beratrail.io"}},testnet:!0});exports.berachainTestnetbArtio=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index67.cjs"),r=e.defineChain({id:80084,name:"Berachain bArtio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:109269},ensRegistry:{address:"0xB0eef18971290b333450586D33dcA6cE122651D2",blockCreated:7736794},ensUniversalResolver:{address:"0x41692Ef1EA0C79E6b73077E4A67572D2BDbD7057",blockCreated:7736795}},ensTlds:[".bera"],rpcUrls:{default:{http:["https://bartio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain bArtio Beratrail",url:"https://bartio.beratrail.io"}},testnet:!0});exports.berachainTestnetbArtio=r;
package/dist/index57.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineChain as e } from "./index69.js";
1
+ import { defineChain as e } from "./index67.js";
2
2
  const a = /* @__PURE__ */ e({
3
3
  id: 80084,
4
4
  name: "Berachain bArtio",
package/dist/index58.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index69.cjs"),a=e.defineChain({id:80094,name:"Berachain",blockTime:2e3,nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},ensRegistry:{address:"0x5b22280886a2f5e09a49bea7e320eab0e5320e28",blockCreated:877007},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:9310021}},rpcUrls:{default:{http:["https://rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://berascan.com"}},ensTlds:[".bera"],testnet:!1});exports.berachain=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index67.cjs"),a=e.defineChain({id:80094,name:"Berachain",blockTime:2e3,nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},ensRegistry:{address:"0x5b22280886a2f5e09a49bea7e320eab0e5320e28",blockCreated:877007},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:9310021}},rpcUrls:{default:{http:["https://rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://berascan.com"}},ensTlds:[".bera"],testnet:!1});exports.berachain=a;
package/dist/index58.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineChain as e } from "./index69.js";
1
+ import { defineChain as e } from "./index67.js";
2
2
  const r = /* @__PURE__ */ e({
3
3
  id: 80094,
4
4
  name: "Berachain",
package/dist/index59.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index69.cjs"),t=e.defineChain({id:10143,name:"Monad Testnet",blockTime:400,nativeCurrency:{name:"Testnet MON Token",symbol:"MON",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.monad.xyz"]}},blockExplorers:{default:{name:"Monad Testnet explorer",url:"https://testnet.monadexplorer.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:251449}},testnet:!0});exports.monadTestnet=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index67.cjs"),t=e.defineChain({id:10143,name:"Monad Testnet",blockTime:400,nativeCurrency:{name:"Testnet MON Token",symbol:"MON",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.monad.xyz"]}},blockExplorers:{default:{name:"Monad Testnet explorer",url:"https://testnet.monadexplorer.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:251449}},testnet:!0});exports.monadTestnet=t;
package/dist/index59.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineChain as e } from "./index69.js";
1
+ import { defineChain as e } from "./index67.js";
2
2
  const n = /* @__PURE__ */ e({
3
3
  id: 10143,
4
4
  name: "Monad Testnet",
package/dist/index60.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index69.cjs"),r=1,t=e.defineChain({id:21e6,name:"Corn",nativeCurrency:{decimals:18,name:"Bitcorn",symbol:"BTCN"},rpcUrls:{default:{http:["https://21000000.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Corn Explorer",url:"https://cornscan.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/21000000/etherscan/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3228}},sourceId:r});exports.corn=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index67.cjs"),r=1,t=e.defineChain({id:21e6,name:"Corn",nativeCurrency:{decimals:18,name:"Bitcorn",symbol:"BTCN"},rpcUrls:{default:{http:["https://21000000.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Corn Explorer",url:"https://cornscan.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/21000000/etherscan/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3228}},sourceId:r});exports.corn=t;
package/dist/index60.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineChain as r } from "./index69.js";
1
+ import { defineChain as r } from "./index67.js";
2
2
  const e = 1, o = /* @__PURE__ */ r({
3
3
  id: 21e6,
4
4
  name: "Corn",
package/dist/index61.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index69.cjs"),t=e.defineChain({id:97,name:"BNB Smart Chain Testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{default:{name:"BscScan",url:"https://testnet.bscscan.com",apiUrl:"https://api-testnet.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0});exports.bscTestnet=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index67.cjs"),t=e.defineChain({id:97,name:"BNB Smart Chain Testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{default:{name:"BscScan",url:"https://testnet.bscscan.com",apiUrl:"https://api-testnet.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0});exports.bscTestnet=t;
package/dist/index61.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineChain as t } from "./index69.js";
1
+ import { defineChain as t } from "./index67.js";
2
2
  const a = /* @__PURE__ */ t({
3
3
  id: 97,
4
4
  name: "BNB Smart Chain Testnet",
package/dist/index62.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index69.cjs"),e=t.defineChain({id:5042002,name:"Arc Testnet",nativeCurrency:{name:"USDC",symbol:"USDC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.arc.network","https://rpc.quicknode.testnet.arc.network","https://rpc.blockdaemon.testnet.arc.network"],webSocket:["wss://rpc.testnet.arc.network","wss://rpc.quicknode.testnet.arc.network"]}},blockExplorers:{default:{name:"ArcScan",url:"https://testnet.arcscan.app",apiUrl:"https://testnet.arcscan.app/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0});exports.arcTestnet=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index67.cjs"),e=t.defineChain({id:5042002,name:"Arc Testnet",nativeCurrency:{name:"USDC",symbol:"USDC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.arc.network","https://rpc.quicknode.testnet.arc.network","https://rpc.blockdaemon.testnet.arc.network"],webSocket:["wss://rpc.testnet.arc.network","wss://rpc.quicknode.testnet.arc.network"]}},blockExplorers:{default:{name:"ArcScan",url:"https://testnet.arcscan.app",apiUrl:"https://testnet.arcscan.app/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0});exports.arcTestnet=e;
package/dist/index62.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineChain as t } from "./index69.js";
1
+ import { defineChain as t } from "./index67.js";
2
2
  const r = /* @__PURE__ */ t({
3
3
  id: 5042002,
4
4
  name: "Arc Testnet",
package/dist/index63.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index70.cjs"),c=require("./index69.cjs"),e=11155111,i=c.defineChain({...a.chainConfig,id:763373,name:"Ink Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel-sepolia.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer-sepolia.inkonchain.com/",apiUrl:"https://explorer-sepolia.inkonchain.com/api/v2"}},contracts:{...a.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},disputeGameFactory:{[e]:{address:"0x860e626c700af381133d9f4af31412a2d1db3d5d"}},portal:{[e]:{address:"0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7"}},l1StandardBridge:{[e]:{address:"0x33f60714bbd74d62b66d79213c348614de51901c"}}},testnet:!0,sourceId:e});exports.inkSepolia=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index68.cjs"),c=require("./index67.cjs"),e=11155111,i=c.defineChain({...a.chainConfig,id:763373,name:"Ink Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel-sepolia.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer-sepolia.inkonchain.com/",apiUrl:"https://explorer-sepolia.inkonchain.com/api/v2"}},contracts:{...a.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},disputeGameFactory:{[e]:{address:"0x860e626c700af381133d9f4af31412a2d1db3d5d"}},portal:{[e]:{address:"0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7"}},l1StandardBridge:{[e]:{address:"0x33f60714bbd74d62b66d79213c348614de51901c"}}},testnet:!0,sourceId:e});exports.inkSepolia=i;
package/dist/index63.js CHANGED
@@ -1,5 +1,5 @@
1
- import { chainConfig as a } from "./index70.js";
2
- import { defineChain as c } from "./index69.js";
1
+ import { chainConfig as a } from "./index68.js";
2
+ import { defineChain as c } from "./index67.js";
3
3
  const e = 11155111, r = /* @__PURE__ */ c({
4
4
  ...a,
5
5
  id: 763373,
package/dist/index64.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index70.cjs"),c=require("./index69.cjs"),e=1,a=c.defineChain({...n.chainConfig,id:57073,name:"Ink",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel.inkonchain.com","https://rpc-qnd.inkonchain.com"],webSocket:["wss://rpc-gel.inkonchain.com","wss://rpc-qnd.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.inkonchain.com",apiUrl:"https://explorer.inkonchain.com/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},...n.chainConfig.contracts,disputeGameFactory:{[e]:{address:"0x10d7b35078d3baabb96dd45a9143b94be65b12cd"}},portal:{[e]:{address:"0x5d66c1782664115999c47c9fa5cd031f495d3e4f"}},l1StandardBridge:{[e]:{address:"0x88ff1e5b602916615391f55854588efcbb7663f0"}}},testnet:!1,sourceId:e});exports.ink=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index68.cjs"),c=require("./index67.cjs"),e=1,a=c.defineChain({...n.chainConfig,id:57073,name:"Ink",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel.inkonchain.com","https://rpc-qnd.inkonchain.com"],webSocket:["wss://rpc-gel.inkonchain.com","wss://rpc-qnd.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.inkonchain.com",apiUrl:"https://explorer.inkonchain.com/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},...n.chainConfig.contracts,disputeGameFactory:{[e]:{address:"0x10d7b35078d3baabb96dd45a9143b94be65b12cd"}},portal:{[e]:{address:"0x5d66c1782664115999c47c9fa5cd031f495d3e4f"}},l1StandardBridge:{[e]:{address:"0x88ff1e5b602916615391f55854588efcbb7663f0"}}},testnet:!1,sourceId:e});exports.ink=a;
package/dist/index64.js CHANGED
@@ -1,5 +1,5 @@
1
- import { chainConfig as e } from "./index70.js";
2
- import { defineChain as n } from "./index69.js";
1
+ import { chainConfig as e } from "./index68.js";
2
+ import { defineChain as n } from "./index67.js";
3
3
  const c = 1, r = /* @__PURE__ */ n({
4
4
  ...e,
5
5
  id: 57073,
package/dist/index67.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={initial:{opacity:0},animate:{opacity:1,transition:{duration:.2,ease:"easeInOut"}},exit:{opacity:0,transition:{duration:.2,ease:"easeInOut"}}},a={initial:{opacity:0,height:0},animate:{opacity:1,height:"auto",transition:{duration:.4,opacity:{delay:.23,ease:"easeOut"},ease:"easeOut"}},exit:{opacity:0,height:0,transition:{duration:.2,height:{delay:.23,ease:"easeOut"},ease:"easeOut"}}};exports.delayedFadeAnimation=e;exports.expandWithDelayAnimation=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function c(r){const n={formatters:void 0,fees:void 0,serializers:void 0,...r};function t(i){return e=>{const s=typeof e=="function"?e(i):e,o={...i,...s};return Object.assign(o,{extend:t(o)})}}return Object.assign(n,{extend:t(n)})}exports.defineChain=c;
package/dist/index67.js CHANGED
@@ -1,35 +1,20 @@
1
- const a = {
2
- initial: { opacity: 0 },
3
- animate: {
4
- opacity: 1,
5
- transition: { duration: 0.2, ease: "easeInOut" }
6
- },
7
- exit: {
8
- opacity: 0,
9
- transition: { duration: 0.2, ease: "easeInOut" }
1
+ function r(c) {
2
+ const n = {
3
+ formatters: void 0,
4
+ fees: void 0,
5
+ serializers: void 0,
6
+ ...c
7
+ };
8
+ function t(i) {
9
+ return (e) => {
10
+ const o = typeof e == "function" ? e(i) : e, s = { ...i, ...o };
11
+ return Object.assign(s, { extend: t(s) });
12
+ };
10
13
  }
11
- }, t = {
12
- initial: { opacity: 0, height: 0 },
13
- animate: {
14
- opacity: 1,
15
- height: "auto",
16
- transition: {
17
- duration: 0.4,
18
- opacity: { delay: 0.23, ease: "easeOut" },
19
- ease: "easeOut"
20
- }
21
- },
22
- exit: {
23
- opacity: 0,
24
- height: 0,
25
- transition: {
26
- duration: 0.2,
27
- height: { delay: 0.23, ease: "easeOut" },
28
- ease: "easeOut"
29
- }
30
- }
31
- };
14
+ return Object.assign(n, {
15
+ extend: t(n)
16
+ });
17
+ }
32
18
  export {
33
- a as delayedFadeAnimation,
34
- t as expandWithDelayAnimation
19
+ r as defineChain
35
20
  };
package/dist/index68.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("@gardenfi/garden-book"),c=require("framer-motion"),m=require("./index67.cjs"),o=require("./index6.cjs"),i=require("./index112.cjs"),g=({refundAddress:a,receiveAddress:r,networkFeesValue:l})=>{const{outputAsset:s,outputAmount:n}=o.swapStore();return e.createElement(c.motion.div,{className:"flex flex-col",...m.expandWithDelayAnimation},e.createElement("div",{className:"h-full"},e.createElement("div",{className:"flex items-center justify-between px-4 pt-1"},e.createElement("div",{className:"flex items-center gap-1"},e.createElement(t.Typography,{size:"h5",weight:"regular",className:"!text-mid-grey"},"Network fee")),e.createElement("div",{className:"flex gap-5 py-1"},e.createElement(t.Typography,{size:"h5",weight:"regular"},l===0?"Free":"$"+l))),e.createElement("div",{className:"flex items-center justify-between px-4"},e.createElement("div",{className:"flex items-center gap-1"},e.createElement(t.Typography,{size:"h5",weight:"regular",className:"!text-mid-grey"},"Minimum received")),e.createElement("div",{className:"flex gap-5 py-1"},e.createElement(t.Typography,{size:"h5",weight:"regular"},n," ",s==null?void 0:s.symbol))),(r||a)&&e.createElement(e.Fragment,null,e.createElement("div",{className:"flex flex-col items-stretch justify-center"},r&&e.createElement(i.AddressDetails,{address:r}),a&&e.createElement(i.AddressDetails,{address:a,isRefund:!0})))))};exports.SwapSavingsAndAddresses=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index71.cjs"),e=require("./index72.cjs"),t=require("./index73.cjs"),s={blockTime:2e3,contracts:r.contracts,formatters:e.formatters,serializers:t.serializers};exports.chainConfig=s;
package/dist/index68.js CHANGED
@@ -1,17 +1,12 @@
1
- import e from "react";
2
- import { Typography as t } from "@gardenfi/garden-book";
3
- import { motion as c } from "framer-motion";
4
- import { expandWithDelayAnimation as n } from "./index67.js";
5
- import { swapStore as o } from "./index6.js";
6
- import { AddressDetails as i } from "./index112.js";
7
- const h = ({
8
- refundAddress: a,
9
- receiveAddress: m,
10
- networkFeesValue: r
11
- }) => {
12
- const { outputAsset: l, outputAmount: s } = o();
13
- return /* @__PURE__ */ e.createElement(c.div, { className: "flex flex-col", ...n }, /* @__PURE__ */ e.createElement("div", { className: "h-full" }, /* @__PURE__ */ e.createElement("div", { className: "flex items-center justify-between px-4 pt-1" }, /* @__PURE__ */ e.createElement("div", { className: "flex items-center gap-1" }, /* @__PURE__ */ e.createElement(t, { size: "h5", weight: "regular", className: "!text-mid-grey" }, "Network fee")), /* @__PURE__ */ e.createElement("div", { className: "flex gap-5 py-1" }, /* @__PURE__ */ e.createElement(t, { size: "h5", weight: "regular" }, r === 0 ? "Free" : "$" + r))), /* @__PURE__ */ e.createElement("div", { className: "flex items-center justify-between px-4" }, /* @__PURE__ */ e.createElement("div", { className: "flex items-center gap-1" }, /* @__PURE__ */ e.createElement(t, { size: "h5", weight: "regular", className: "!text-mid-grey" }, "Minimum received")), /* @__PURE__ */ e.createElement("div", { className: "flex gap-5 py-1" }, /* @__PURE__ */ e.createElement(t, { size: "h5", weight: "regular" }, s, " ", l == null ? void 0 : l.symbol))), (m || a) && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "flex flex-col items-stretch justify-center" }, m && /* @__PURE__ */ e.createElement(i, { address: m }), a && /* @__PURE__ */ e.createElement(i, { address: a, isRefund: !0 })))));
1
+ import { contracts as o } from "./index71.js";
2
+ import { formatters as r } from "./index72.js";
3
+ import { serializers as t } from "./index73.js";
4
+ const e = {
5
+ blockTime: 2e3,
6
+ contracts: o,
7
+ formatters: r,
8
+ serializers: t
14
9
  };
15
10
  export {
16
- h as SwapSavingsAndAddresses
11
+ e as chainConfig
17
12
  };
package/dist/index69.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function c(r){const n={formatters:void 0,fees:void 0,serializers:void 0,...r};function t(i){return e=>{const s=typeof e=="function"?e(i):e,o={...i,...s};return Object.assign(o,{extend:t(o)})}}return Object.assign(n,{extend:t(n)})}exports.defineChain=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={initial:{opacity:0},animate:{opacity:1,transition:{duration:.2,ease:"easeInOut"}},exit:{opacity:0,transition:{duration:.2,ease:"easeInOut"}}},a={initial:{opacity:0,height:0},animate:{opacity:1,height:"auto",transition:{duration:.4,opacity:{delay:.23,ease:"easeOut"},ease:"easeOut"}},exit:{opacity:0,height:0,transition:{duration:.2,height:{delay:.23,ease:"easeOut"},ease:"easeOut"}}};exports.delayedFadeAnimation=e;exports.expandWithDelayAnimation=a;
package/dist/index69.js CHANGED
@@ -1,20 +1,35 @@
1
- function r(c) {
2
- const n = {
3
- formatters: void 0,
4
- fees: void 0,
5
- serializers: void 0,
6
- ...c
7
- };
8
- function t(i) {
9
- return (e) => {
10
- const o = typeof e == "function" ? e(i) : e, s = { ...i, ...o };
11
- return Object.assign(s, { extend: t(s) });
12
- };
1
+ const a = {
2
+ initial: { opacity: 0 },
3
+ animate: {
4
+ opacity: 1,
5
+ transition: { duration: 0.2, ease: "easeInOut" }
6
+ },
7
+ exit: {
8
+ opacity: 0,
9
+ transition: { duration: 0.2, ease: "easeInOut" }
13
10
  }
14
- return Object.assign(n, {
15
- extend: t(n)
16
- });
17
- }
11
+ }, t = {
12
+ initial: { opacity: 0, height: 0 },
13
+ animate: {
14
+ opacity: 1,
15
+ height: "auto",
16
+ transition: {
17
+ duration: 0.4,
18
+ opacity: { delay: 0.23, ease: "easeOut" },
19
+ ease: "easeOut"
20
+ }
21
+ },
22
+ exit: {
23
+ opacity: 0,
24
+ height: 0,
25
+ transition: {
26
+ duration: 0.2,
27
+ height: { delay: 0.23, ease: "easeOut" },
28
+ ease: "easeOut"
29
+ }
30
+ }
31
+ };
18
32
  export {
19
- r as defineChain
33
+ a as delayedFadeAnimation,
34
+ t as expandWithDelayAnimation
20
35
  };
package/dist/index70.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index71.cjs"),e=require("./index72.cjs"),t=require("./index73.cjs"),s={blockTime:2e3,contracts:r.contracts,formatters:e.formatters,serializers:t.serializers};exports.chainConfig=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("@gardenfi/garden-book"),c=require("framer-motion"),m=require("./index69.cjs"),o=require("./index6.cjs"),i=require("./index271.cjs"),g=({refundAddress:a,receiveAddress:r,networkFeesValue:l})=>{const{outputAsset:s,outputAmount:n}=o.swapStore();return e.createElement(c.motion.div,{className:"flex flex-col",...m.expandWithDelayAnimation},e.createElement("div",{className:"h-full"},e.createElement("div",{className:"flex items-center justify-between px-4 pt-1"},e.createElement("div",{className:"flex items-center gap-1"},e.createElement(t.Typography,{size:"h5",weight:"regular",className:"!text-mid-grey"},"Network fee")),e.createElement("div",{className:"flex gap-5 py-1"},e.createElement(t.Typography,{size:"h5",weight:"regular"},l===0?"Free":"$"+l))),e.createElement("div",{className:"flex items-center justify-between px-4"},e.createElement("div",{className:"flex items-center gap-1"},e.createElement(t.Typography,{size:"h5",weight:"regular",className:"!text-mid-grey"},"Minimum received")),e.createElement("div",{className:"flex gap-5 py-1"},e.createElement(t.Typography,{size:"h5",weight:"regular"},n," ",s==null?void 0:s.symbol))),(r||a)&&e.createElement(e.Fragment,null,e.createElement("div",{className:"flex flex-col items-stretch justify-center"},r&&e.createElement(i.AddressDetails,{address:r}),a&&e.createElement(i.AddressDetails,{address:a,isRefund:!0})))))};exports.SwapSavingsAndAddresses=g;
package/dist/index70.js CHANGED
@@ -1,12 +1,17 @@
1
- import { contracts as o } from "./index71.js";
2
- import { formatters as r } from "./index72.js";
3
- import { serializers as t } from "./index73.js";
4
- const e = {
5
- blockTime: 2e3,
6
- contracts: o,
7
- formatters: r,
8
- serializers: t
1
+ import e from "react";
2
+ import { Typography as t } from "@gardenfi/garden-book";
3
+ import { motion as c } from "framer-motion";
4
+ import { expandWithDelayAnimation as n } from "./index69.js";
5
+ import { swapStore as o } from "./index6.js";
6
+ import { AddressDetails as i } from "./index271.js";
7
+ const h = ({
8
+ refundAddress: a,
9
+ receiveAddress: m,
10
+ networkFeesValue: r
11
+ }) => {
12
+ const { outputAsset: l, outputAmount: s } = o();
13
+ return /* @__PURE__ */ e.createElement(c.div, { className: "flex flex-col", ...n }, /* @__PURE__ */ e.createElement("div", { className: "h-full" }, /* @__PURE__ */ e.createElement("div", { className: "flex items-center justify-between px-4 pt-1" }, /* @__PURE__ */ e.createElement("div", { className: "flex items-center gap-1" }, /* @__PURE__ */ e.createElement(t, { size: "h5", weight: "regular", className: "!text-mid-grey" }, "Network fee")), /* @__PURE__ */ e.createElement("div", { className: "flex gap-5 py-1" }, /* @__PURE__ */ e.createElement(t, { size: "h5", weight: "regular" }, r === 0 ? "Free" : "$" + r))), /* @__PURE__ */ e.createElement("div", { className: "flex items-center justify-between px-4" }, /* @__PURE__ */ e.createElement("div", { className: "flex items-center gap-1" }, /* @__PURE__ */ e.createElement(t, { size: "h5", weight: "regular", className: "!text-mid-grey" }, "Minimum received")), /* @__PURE__ */ e.createElement("div", { className: "flex gap-5 py-1" }, /* @__PURE__ */ e.createElement(t, { size: "h5", weight: "regular" }, s, " ", l == null ? void 0 : l.symbol))), (m || a) && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "flex flex-col items-stretch justify-center" }, m && /* @__PURE__ */ e.createElement(i, { address: m }), a && /* @__PURE__ */ e.createElement(i, { address: a, isRefund: !0 })))));
9
14
  };
10
15
  export {
11
- e as chainConfig
16
+ h as SwapSavingsAndAddresses
12
17
  };
package/dist/index79.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index117.cjs"),d=require("./index118.cjs"),h=require("./index119.cjs"),u=require("./index120.cjs"),w=require("./index80.cjs"),r=require("./index121.cjs"),v=require("./index122.cjs"),y=require("./index113.cjs"),n=require("./index123.cjs"),c=require("./index124.cjs"),k=require("./index125.cjs"),S=Symbol.for("@mysten/SuiClient");class M extends u.Experimental_BaseClient{constructor(e){super({network:e.network??"unknown"}),this.jsonRpc=this,this.transport=e.transport??new y.JsonRpcHTTPTransport({url:e.url}),this.core=new k.JSONRpcCoreClient({jsonRpcClient:this,mvr:e.mvr})}get[S](){return!0}async getRpcApiVersion({signal:e}={}){return(await this.transport.request({method:"rpc.discover",params:[],signal:e})).info.version}async getCoins({coinType:e,owner:a,cursor:s,limit:t,signal:o}){if(!a||!r.isValidSuiAddress(r.normalizeSuiAddress(a)))throw new Error("Invalid Sui address");return e&&c.hasMvrName(e)&&(e=(await this.core.mvr.resolveType({type:e})).type),await this.transport.request({method:"suix_getCoins",params:[a,e,s,t],signal:o})}async getAllCoins(e){if(!e.owner||!r.isValidSuiAddress(r.normalizeSuiAddress(e.owner)))throw new Error("Invalid Sui address");return await this.transport.request({method:"suix_getAllCoins",params:[e.owner,e.cursor,e.limit],signal:e.signal})}async getBalance({owner:e,coinType:a,signal:s}){if(!e||!r.isValidSuiAddress(r.normalizeSuiAddress(e)))throw new Error("Invalid Sui address");return a&&c.hasMvrName(a)&&(a=(await this.core.mvr.resolveType({type:a})).type),await this.transport.request({method:"suix_getBalance",params:[e,a],signal:s})}async getAllBalances(e){if(!e.owner||!r.isValidSuiAddress(r.normalizeSuiAddress(e.owner)))throw new Error("Invalid Sui address");return await this.transport.request({method:"suix_getAllBalances",params:[e.owner],signal:e.signal})}async getCoinMetadata({coinType:e,signal:a}){return e&&c.hasMvrName(e)&&(e=(await this.core.mvr.resolveType({type:e})).type),await this.transport.request({method:"suix_getCoinMetadata",params:[e],signal:a})}async getTotalSupply({coinType:e,signal:a}){return e&&c.hasMvrName(e)&&(e=(await this.core.mvr.resolveType({type:e})).type),await this.transport.request({method:"suix_getTotalSupply",params:[e],signal:a})}async call(e,a,{signal:s}={}){return await this.transport.request({method:e,params:a,signal:s})}async getMoveFunctionArgTypes({package:e,module:a,function:s,signal:t}){return e&&n.isValidNamedPackage(e)&&(e=(await this.core.mvr.resolvePackage({package:e})).package),await this.transport.request({method:"sui_getMoveFunctionArgTypes",params:[e,a,s],signal:t})}async getNormalizedMoveModulesByPackage({package:e,signal:a}){return e&&n.isValidNamedPackage(e)&&(e=(await this.core.mvr.resolvePackage({package:e})).package),await this.transport.request({method:"sui_getNormalizedMoveModulesByPackage",params:[e],signal:a})}async getNormalizedMoveModule({package:e,module:a,signal:s}){return e&&n.isValidNamedPackage(e)&&(e=(await this.core.mvr.resolvePackage({package:e})).package),await this.transport.request({method:"sui_getNormalizedMoveModule",params:[e,a],signal:s})}async getNormalizedMoveFunction({package:e,module:a,function:s,signal:t}){return e&&n.isValidNamedPackage(e)&&(e=(await this.core.mvr.resolvePackage({package:e})).package),await this.transport.request({method:"sui_getNormalizedMoveFunction",params:[e,a,s],signal:t})}async getNormalizedMoveStruct({package:e,module:a,struct:s,signal:t}){return e&&n.isValidNamedPackage(e)&&(e=(await this.core.mvr.resolvePackage({package:e})).package),await this.transport.request({method:"sui_getNormalizedMoveStruct",params:[e,a,s],signal:t})}async getOwnedObjects(e){if(!e.owner||!r.isValidSuiAddress(r.normalizeSuiAddress(e.owner)))throw new Error("Invalid Sui address");const a=e.filter?{...e.filter}:void 0;return a&&"MoveModule"in a&&n.isValidNamedPackage(a.MoveModule.package)?a.MoveModule={module:a.MoveModule.module,package:(await this.core.mvr.resolvePackage({package:a.MoveModule.package})).package}:a&&"StructType"in a&&c.hasMvrName(a.StructType)&&(a.StructType=(await this.core.mvr.resolveType({type:a.StructType})).type),await this.transport.request({method:"suix_getOwnedObjects",params:[e.owner,{filter:a,options:e.options},e.cursor,e.limit],signal:e.signal})}async getObject(e){if(!e.id||!r.isValidSuiObjectId(r.normalizeSuiObjectId(e.id)))throw new Error("Invalid Sui Object id");return await this.transport.request({method:"sui_getObject",params:[e.id,e.options],signal:e.signal})}async tryGetPastObject(e){return await this.transport.request({method:"sui_tryGetPastObject",params:[e.id,e.version,e.options],signal:e.signal})}async multiGetObjects(e){if(e.ids.forEach(s=>{if(!s||!r.isValidSuiObjectId(r.normalizeSuiObjectId(s)))throw new Error(`Invalid Sui Object id ${s}`)}),e.ids.length!==new Set(e.ids).size)throw new Error(`Duplicate object ids in batch call ${e.ids}`);return await this.transport.request({method:"sui_multiGetObjects",params:[e.ids,e.options],signal:e.signal})}async queryTransactionBlocks({filter:e,options:a,cursor:s,limit:t,order:o,signal:i}){return e&&"MoveFunction"in e&&n.isValidNamedPackage(e.MoveFunction.package)&&(e={...e,MoveFunction:{package:(await this.core.mvr.resolvePackage({package:e.MoveFunction.package})).package}}),await this.transport.request({method:"suix_queryTransactionBlocks",params:[{filter:e,options:a},s,t,(o||"descending")==="descending"],signal:i})}async getTransactionBlock(e){if(!r.isValidTransactionDigest(e.digest))throw new Error("Invalid Transaction digest");return await this.transport.request({method:"sui_getTransactionBlock",params:[e.digest,e.options],signal:e.signal})}async multiGetTransactionBlocks(e){if(e.digests.forEach(s=>{if(!r.isValidTransactionDigest(s))throw new Error(`Invalid Transaction digest ${s}`)}),e.digests.length!==new Set(e.digests).size)throw new Error(`Duplicate digests in batch call ${e.digests}`);return await this.transport.request({method:"sui_multiGetTransactionBlocks",params:[e.digests,e.options],signal:e.signal})}async executeTransactionBlock({transactionBlock:e,signature:a,options:s,requestType:t,signal:o}){const i=await this.transport.request({method:"sui_executeTransactionBlock",params:[typeof e=="string"?e:d.toBase64(e),Array.isArray(a)?a:[a],s],signal:o});if(t==="WaitForLocalExecution")try{await this.waitForTransaction({digest:i.digest})}catch{}return i}async signAndExecuteTransaction({transaction:e,signer:a,...s}){let t;e instanceof Uint8Array?t=e:(e.setSenderIfNotSet(a.toSuiAddress()),t=await e.build({client:this}));const{signature:o,bytes:i}=await a.signTransaction(t);return this.executeTransactionBlock({transactionBlock:i,signature:o,...s})}async getTotalTransactionBlocks({signal:e}={}){const a=await this.transport.request({method:"sui_getTotalTransactionBlocks",params:[],signal:e});return BigInt(a)}async getReferenceGasPrice({signal:e}={}){const a=await this.transport.request({method:"suix_getReferenceGasPrice",params:[],signal:e});return BigInt(a)}async getStakes(e){if(!e.owner||!r.isValidSuiAddress(r.normalizeSuiAddress(e.owner)))throw new Error("Invalid Sui address");return await this.transport.request({method:"suix_getStakes",params:[e.owner],signal:e.signal})}async getStakesByIds(e){return e.stakedSuiIds.forEach(a=>{if(!a||!r.isValidSuiObjectId(r.normalizeSuiObjectId(a)))throw new Error(`Invalid Sui Stake id ${a}`)}),await this.transport.request({method:"suix_getStakesByIds",params:[e.stakedSuiIds],signal:e.signal})}async getLatestSuiSystemState({signal:e}={}){return await this.transport.request({method:"suix_getLatestSuiSystemState",params:[],signal:e})}async queryEvents({query:e,cursor:a,limit:s,order:t,signal:o}){return e&&"MoveEventType"in e&&c.hasMvrName(e.MoveEventType)&&(e={...e,MoveEventType:(await this.core.mvr.resolveType({type:e.MoveEventType})).type}),e&&"MoveEventModule"in e&&n.isValidNamedPackage(e.MoveEventModule.package)&&(e={...e,MoveEventModule:{module:e.MoveEventModule.module,package:(await this.core.mvr.resolvePackage({package:e.MoveEventModule.package})).package}}),"MoveModule"in e&&n.isValidNamedPackage(e.MoveModule.package)&&(e={...e,MoveModule:{module:e.MoveModule.module,package:(await this.core.mvr.resolvePackage({package:e.MoveModule.package})).package}}),await this.transport.request({method:"suix_queryEvents",params:[e,a,s,(t||"descending")==="descending"],signal:o})}async subscribeEvent(e){return this.transport.subscribe({method:"suix_subscribeEvent",unsubscribe:"suix_unsubscribeEvent",params:[e.filter],onMessage:e.onMessage,signal:e.signal})}async subscribeTransaction(e){return this.transport.subscribe({method:"suix_subscribeTransaction",unsubscribe:"suix_unsubscribeTransaction",params:[e.filter],onMessage:e.onMessage,signal:e.signal})}async devInspectTransactionBlock(e){var s,t;let a;if(w.isTransaction(e.transactionBlock))e.transactionBlock.setSenderIfNotSet(e.sender),a=d.toBase64(await e.transactionBlock.build({client:this,onlyTransactionKind:!0}));else if(typeof e.transactionBlock=="string")a=e.transactionBlock;else if(e.transactionBlock instanceof Uint8Array)a=d.toBase64(e.transactionBlock);else throw new Error("Unknown transaction block format.");return(s=e.signal)==null||s.throwIfAborted(),await this.transport.request({method:"sui_devInspectTransactionBlock",params:[e.sender,a,(t=e.gasPrice)==null?void 0:t.toString(),e.epoch],signal:e.signal})}async dryRunTransactionBlock(e){return await this.transport.request({method:"sui_dryRunTransactionBlock",params:[typeof e.transactionBlock=="string"?e.transactionBlock:d.toBase64(e.transactionBlock)]})}async getDynamicFields(e){if(!e.parentId||!r.isValidSuiObjectId(r.normalizeSuiObjectId(e.parentId)))throw new Error("Invalid Sui Object id");return await this.transport.request({method:"suix_getDynamicFields",params:[e.parentId,e.cursor,e.limit],signal:e.signal})}async getDynamicFieldObject(e){return await this.transport.request({method:"suix_getDynamicFieldObject",params:[e.parentId,e.name],signal:e.signal})}async getLatestCheckpointSequenceNumber({signal:e}={}){const a=await this.transport.request({method:"sui_getLatestCheckpointSequenceNumber",params:[],signal:e});return String(a)}async getCheckpoint(e){return await this.transport.request({method:"sui_getCheckpoint",params:[e.id],signal:e.signal})}async getCheckpoints(e){return await this.transport.request({method:"sui_getCheckpoints",params:[e.cursor,e==null?void 0:e.limit,e.descendingOrder],signal:e.signal})}async getCommitteeInfo(e){return await this.transport.request({method:"suix_getCommitteeInfo",params:[e==null?void 0:e.epoch],signal:e==null?void 0:e.signal})}async getNetworkMetrics({signal:e}={}){return await this.transport.request({method:"suix_getNetworkMetrics",params:[],signal:e})}async getAddressMetrics({signal:e}={}){return await this.transport.request({method:"suix_getLatestAddressMetrics",params:[],signal:e})}async getEpochMetrics(e){return await this.transport.request({method:"suix_getEpochMetrics",params:[e==null?void 0:e.cursor,e==null?void 0:e.limit,e==null?void 0:e.descendingOrder],signal:e==null?void 0:e.signal})}async getAllEpochAddressMetrics(e){return await this.transport.request({method:"suix_getAllEpochAddressMetrics",params:[e==null?void 0:e.descendingOrder],signal:e==null?void 0:e.signal})}async getEpochs(e){return await this.transport.request({method:"suix_getEpochs",params:[e==null?void 0:e.cursor,e==null?void 0:e.limit,e==null?void 0:e.descendingOrder],signal:e==null?void 0:e.signal})}async getMoveCallMetrics({signal:e}={}){return await this.transport.request({method:"suix_getMoveCallMetrics",params:[],signal:e})}async getCurrentEpoch({signal:e}={}){return await this.transport.request({method:"suix_getCurrentEpoch",params:[],signal:e})}async getValidatorsApy({signal:e}={}){return await this.transport.request({method:"suix_getValidatorsApy",params:[],signal:e})}async getChainIdentifier({signal:e}={}){const a=await this.getCheckpoint({id:"0",signal:e}),s=m.fromBase58(a.digest);return h.toHex(s.slice(0,4))}async resolveNameServiceAddress(e){return await this.transport.request({method:"suix_resolveNameServiceAddress",params:[e.name],signal:e.signal})}async resolveNameServiceNames({format:e="dot",...a}){const{nextCursor:s,hasNextPage:t,data:o}=await this.transport.request({method:"suix_resolveNameServiceNames",params:[a.address,a.cursor,a.limit],signal:a.signal});return{hasNextPage:t,nextCursor:s,data:o.map(i=>v.normalizeSuiNSName(i,e))}}async getProtocolConfig(e){return await this.transport.request({method:"sui_getProtocolConfig",params:[e==null?void 0:e.version],signal:e==null?void 0:e.signal})}async verifyZkLoginSignature(e){return await this.transport.request({method:"sui_verifyZkLoginSignature",params:[e.bytes,e.signature,e.intentScope,e.author],signal:e.signal})}async waitForTransaction({signal:e,timeout:a=60*1e3,pollInterval:s=2*1e3,...t}){const o=AbortSignal.timeout(a),i=new Promise((l,g)=>{o.addEventListener("abort",()=>g(o.reason))});for(i.catch(()=>{});!o.aborted;){e==null||e.throwIfAborted();try{return await this.getTransactionBlock(t)}catch{await Promise.race([new Promise(l=>setTimeout(l,s)),i])}}throw o.throwIfAborted(),new Error("Unexpected error while waiting for transaction block.")}}exports.SuiJsonRpcClient=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index262.cjs"),d=require("./index263.cjs"),h=require("./index264.cjs"),u=require("./index265.cjs"),w=require("./index80.cjs"),r=require("./index266.cjs"),v=require("./index267.cjs"),y=require("./index258.cjs"),n=require("./index268.cjs"),c=require("./index269.cjs"),k=require("./index270.cjs"),S=Symbol.for("@mysten/SuiClient");class M extends u.Experimental_BaseClient{constructor(e){super({network:e.network??"unknown"}),this.jsonRpc=this,this.transport=e.transport??new y.JsonRpcHTTPTransport({url:e.url}),this.core=new k.JSONRpcCoreClient({jsonRpcClient:this,mvr:e.mvr})}get[S](){return!0}async getRpcApiVersion({signal:e}={}){return(await this.transport.request({method:"rpc.discover",params:[],signal:e})).info.version}async getCoins({coinType:e,owner:a,cursor:s,limit:t,signal:o}){if(!a||!r.isValidSuiAddress(r.normalizeSuiAddress(a)))throw new Error("Invalid Sui address");return e&&c.hasMvrName(e)&&(e=(await this.core.mvr.resolveType({type:e})).type),await this.transport.request({method:"suix_getCoins",params:[a,e,s,t],signal:o})}async getAllCoins(e){if(!e.owner||!r.isValidSuiAddress(r.normalizeSuiAddress(e.owner)))throw new Error("Invalid Sui address");return await this.transport.request({method:"suix_getAllCoins",params:[e.owner,e.cursor,e.limit],signal:e.signal})}async getBalance({owner:e,coinType:a,signal:s}){if(!e||!r.isValidSuiAddress(r.normalizeSuiAddress(e)))throw new Error("Invalid Sui address");return a&&c.hasMvrName(a)&&(a=(await this.core.mvr.resolveType({type:a})).type),await this.transport.request({method:"suix_getBalance",params:[e,a],signal:s})}async getAllBalances(e){if(!e.owner||!r.isValidSuiAddress(r.normalizeSuiAddress(e.owner)))throw new Error("Invalid Sui address");return await this.transport.request({method:"suix_getAllBalances",params:[e.owner],signal:e.signal})}async getCoinMetadata({coinType:e,signal:a}){return e&&c.hasMvrName(e)&&(e=(await this.core.mvr.resolveType({type:e})).type),await this.transport.request({method:"suix_getCoinMetadata",params:[e],signal:a})}async getTotalSupply({coinType:e,signal:a}){return e&&c.hasMvrName(e)&&(e=(await this.core.mvr.resolveType({type:e})).type),await this.transport.request({method:"suix_getTotalSupply",params:[e],signal:a})}async call(e,a,{signal:s}={}){return await this.transport.request({method:e,params:a,signal:s})}async getMoveFunctionArgTypes({package:e,module:a,function:s,signal:t}){return e&&n.isValidNamedPackage(e)&&(e=(await this.core.mvr.resolvePackage({package:e})).package),await this.transport.request({method:"sui_getMoveFunctionArgTypes",params:[e,a,s],signal:t})}async getNormalizedMoveModulesByPackage({package:e,signal:a}){return e&&n.isValidNamedPackage(e)&&(e=(await this.core.mvr.resolvePackage({package:e})).package),await this.transport.request({method:"sui_getNormalizedMoveModulesByPackage",params:[e],signal:a})}async getNormalizedMoveModule({package:e,module:a,signal:s}){return e&&n.isValidNamedPackage(e)&&(e=(await this.core.mvr.resolvePackage({package:e})).package),await this.transport.request({method:"sui_getNormalizedMoveModule",params:[e,a],signal:s})}async getNormalizedMoveFunction({package:e,module:a,function:s,signal:t}){return e&&n.isValidNamedPackage(e)&&(e=(await this.core.mvr.resolvePackage({package:e})).package),await this.transport.request({method:"sui_getNormalizedMoveFunction",params:[e,a,s],signal:t})}async getNormalizedMoveStruct({package:e,module:a,struct:s,signal:t}){return e&&n.isValidNamedPackage(e)&&(e=(await this.core.mvr.resolvePackage({package:e})).package),await this.transport.request({method:"sui_getNormalizedMoveStruct",params:[e,a,s],signal:t})}async getOwnedObjects(e){if(!e.owner||!r.isValidSuiAddress(r.normalizeSuiAddress(e.owner)))throw new Error("Invalid Sui address");const a=e.filter?{...e.filter}:void 0;return a&&"MoveModule"in a&&n.isValidNamedPackage(a.MoveModule.package)?a.MoveModule={module:a.MoveModule.module,package:(await this.core.mvr.resolvePackage({package:a.MoveModule.package})).package}:a&&"StructType"in a&&c.hasMvrName(a.StructType)&&(a.StructType=(await this.core.mvr.resolveType({type:a.StructType})).type),await this.transport.request({method:"suix_getOwnedObjects",params:[e.owner,{filter:a,options:e.options},e.cursor,e.limit],signal:e.signal})}async getObject(e){if(!e.id||!r.isValidSuiObjectId(r.normalizeSuiObjectId(e.id)))throw new Error("Invalid Sui Object id");return await this.transport.request({method:"sui_getObject",params:[e.id,e.options],signal:e.signal})}async tryGetPastObject(e){return await this.transport.request({method:"sui_tryGetPastObject",params:[e.id,e.version,e.options],signal:e.signal})}async multiGetObjects(e){if(e.ids.forEach(s=>{if(!s||!r.isValidSuiObjectId(r.normalizeSuiObjectId(s)))throw new Error(`Invalid Sui Object id ${s}`)}),e.ids.length!==new Set(e.ids).size)throw new Error(`Duplicate object ids in batch call ${e.ids}`);return await this.transport.request({method:"sui_multiGetObjects",params:[e.ids,e.options],signal:e.signal})}async queryTransactionBlocks({filter:e,options:a,cursor:s,limit:t,order:o,signal:i}){return e&&"MoveFunction"in e&&n.isValidNamedPackage(e.MoveFunction.package)&&(e={...e,MoveFunction:{package:(await this.core.mvr.resolvePackage({package:e.MoveFunction.package})).package}}),await this.transport.request({method:"suix_queryTransactionBlocks",params:[{filter:e,options:a},s,t,(o||"descending")==="descending"],signal:i})}async getTransactionBlock(e){if(!r.isValidTransactionDigest(e.digest))throw new Error("Invalid Transaction digest");return await this.transport.request({method:"sui_getTransactionBlock",params:[e.digest,e.options],signal:e.signal})}async multiGetTransactionBlocks(e){if(e.digests.forEach(s=>{if(!r.isValidTransactionDigest(s))throw new Error(`Invalid Transaction digest ${s}`)}),e.digests.length!==new Set(e.digests).size)throw new Error(`Duplicate digests in batch call ${e.digests}`);return await this.transport.request({method:"sui_multiGetTransactionBlocks",params:[e.digests,e.options],signal:e.signal})}async executeTransactionBlock({transactionBlock:e,signature:a,options:s,requestType:t,signal:o}){const i=await this.transport.request({method:"sui_executeTransactionBlock",params:[typeof e=="string"?e:d.toBase64(e),Array.isArray(a)?a:[a],s],signal:o});if(t==="WaitForLocalExecution")try{await this.waitForTransaction({digest:i.digest})}catch{}return i}async signAndExecuteTransaction({transaction:e,signer:a,...s}){let t;e instanceof Uint8Array?t=e:(e.setSenderIfNotSet(a.toSuiAddress()),t=await e.build({client:this}));const{signature:o,bytes:i}=await a.signTransaction(t);return this.executeTransactionBlock({transactionBlock:i,signature:o,...s})}async getTotalTransactionBlocks({signal:e}={}){const a=await this.transport.request({method:"sui_getTotalTransactionBlocks",params:[],signal:e});return BigInt(a)}async getReferenceGasPrice({signal:e}={}){const a=await this.transport.request({method:"suix_getReferenceGasPrice",params:[],signal:e});return BigInt(a)}async getStakes(e){if(!e.owner||!r.isValidSuiAddress(r.normalizeSuiAddress(e.owner)))throw new Error("Invalid Sui address");return await this.transport.request({method:"suix_getStakes",params:[e.owner],signal:e.signal})}async getStakesByIds(e){return e.stakedSuiIds.forEach(a=>{if(!a||!r.isValidSuiObjectId(r.normalizeSuiObjectId(a)))throw new Error(`Invalid Sui Stake id ${a}`)}),await this.transport.request({method:"suix_getStakesByIds",params:[e.stakedSuiIds],signal:e.signal})}async getLatestSuiSystemState({signal:e}={}){return await this.transport.request({method:"suix_getLatestSuiSystemState",params:[],signal:e})}async queryEvents({query:e,cursor:a,limit:s,order:t,signal:o}){return e&&"MoveEventType"in e&&c.hasMvrName(e.MoveEventType)&&(e={...e,MoveEventType:(await this.core.mvr.resolveType({type:e.MoveEventType})).type}),e&&"MoveEventModule"in e&&n.isValidNamedPackage(e.MoveEventModule.package)&&(e={...e,MoveEventModule:{module:e.MoveEventModule.module,package:(await this.core.mvr.resolvePackage({package:e.MoveEventModule.package})).package}}),"MoveModule"in e&&n.isValidNamedPackage(e.MoveModule.package)&&(e={...e,MoveModule:{module:e.MoveModule.module,package:(await this.core.mvr.resolvePackage({package:e.MoveModule.package})).package}}),await this.transport.request({method:"suix_queryEvents",params:[e,a,s,(t||"descending")==="descending"],signal:o})}async subscribeEvent(e){return this.transport.subscribe({method:"suix_subscribeEvent",unsubscribe:"suix_unsubscribeEvent",params:[e.filter],onMessage:e.onMessage,signal:e.signal})}async subscribeTransaction(e){return this.transport.subscribe({method:"suix_subscribeTransaction",unsubscribe:"suix_unsubscribeTransaction",params:[e.filter],onMessage:e.onMessage,signal:e.signal})}async devInspectTransactionBlock(e){var s,t;let a;if(w.isTransaction(e.transactionBlock))e.transactionBlock.setSenderIfNotSet(e.sender),a=d.toBase64(await e.transactionBlock.build({client:this,onlyTransactionKind:!0}));else if(typeof e.transactionBlock=="string")a=e.transactionBlock;else if(e.transactionBlock instanceof Uint8Array)a=d.toBase64(e.transactionBlock);else throw new Error("Unknown transaction block format.");return(s=e.signal)==null||s.throwIfAborted(),await this.transport.request({method:"sui_devInspectTransactionBlock",params:[e.sender,a,(t=e.gasPrice)==null?void 0:t.toString(),e.epoch],signal:e.signal})}async dryRunTransactionBlock(e){return await this.transport.request({method:"sui_dryRunTransactionBlock",params:[typeof e.transactionBlock=="string"?e.transactionBlock:d.toBase64(e.transactionBlock)]})}async getDynamicFields(e){if(!e.parentId||!r.isValidSuiObjectId(r.normalizeSuiObjectId(e.parentId)))throw new Error("Invalid Sui Object id");return await this.transport.request({method:"suix_getDynamicFields",params:[e.parentId,e.cursor,e.limit],signal:e.signal})}async getDynamicFieldObject(e){return await this.transport.request({method:"suix_getDynamicFieldObject",params:[e.parentId,e.name],signal:e.signal})}async getLatestCheckpointSequenceNumber({signal:e}={}){const a=await this.transport.request({method:"sui_getLatestCheckpointSequenceNumber",params:[],signal:e});return String(a)}async getCheckpoint(e){return await this.transport.request({method:"sui_getCheckpoint",params:[e.id],signal:e.signal})}async getCheckpoints(e){return await this.transport.request({method:"sui_getCheckpoints",params:[e.cursor,e==null?void 0:e.limit,e.descendingOrder],signal:e.signal})}async getCommitteeInfo(e){return await this.transport.request({method:"suix_getCommitteeInfo",params:[e==null?void 0:e.epoch],signal:e==null?void 0:e.signal})}async getNetworkMetrics({signal:e}={}){return await this.transport.request({method:"suix_getNetworkMetrics",params:[],signal:e})}async getAddressMetrics({signal:e}={}){return await this.transport.request({method:"suix_getLatestAddressMetrics",params:[],signal:e})}async getEpochMetrics(e){return await this.transport.request({method:"suix_getEpochMetrics",params:[e==null?void 0:e.cursor,e==null?void 0:e.limit,e==null?void 0:e.descendingOrder],signal:e==null?void 0:e.signal})}async getAllEpochAddressMetrics(e){return await this.transport.request({method:"suix_getAllEpochAddressMetrics",params:[e==null?void 0:e.descendingOrder],signal:e==null?void 0:e.signal})}async getEpochs(e){return await this.transport.request({method:"suix_getEpochs",params:[e==null?void 0:e.cursor,e==null?void 0:e.limit,e==null?void 0:e.descendingOrder],signal:e==null?void 0:e.signal})}async getMoveCallMetrics({signal:e}={}){return await this.transport.request({method:"suix_getMoveCallMetrics",params:[],signal:e})}async getCurrentEpoch({signal:e}={}){return await this.transport.request({method:"suix_getCurrentEpoch",params:[],signal:e})}async getValidatorsApy({signal:e}={}){return await this.transport.request({method:"suix_getValidatorsApy",params:[],signal:e})}async getChainIdentifier({signal:e}={}){const a=await this.getCheckpoint({id:"0",signal:e}),s=m.fromBase58(a.digest);return h.toHex(s.slice(0,4))}async resolveNameServiceAddress(e){return await this.transport.request({method:"suix_resolveNameServiceAddress",params:[e.name],signal:e.signal})}async resolveNameServiceNames({format:e="dot",...a}){const{nextCursor:s,hasNextPage:t,data:o}=await this.transport.request({method:"suix_resolveNameServiceNames",params:[a.address,a.cursor,a.limit],signal:a.signal});return{hasNextPage:t,nextCursor:s,data:o.map(i=>v.normalizeSuiNSName(i,e))}}async getProtocolConfig(e){return await this.transport.request({method:"sui_getProtocolConfig",params:[e==null?void 0:e.version],signal:e==null?void 0:e.signal})}async verifyZkLoginSignature(e){return await this.transport.request({method:"sui_verifyZkLoginSignature",params:[e.bytes,e.signature,e.intentScope,e.author],signal:e.signal})}async waitForTransaction({signal:e,timeout:a=60*1e3,pollInterval:s=2*1e3,...t}){const o=AbortSignal.timeout(a),i=new Promise((l,g)=>{o.addEventListener("abort",()=>g(o.reason))});for(i.catch(()=>{});!o.aborted;){e==null||e.throwIfAborted();try{return await this.getTransactionBlock(t)}catch{await Promise.race([new Promise(l=>setTimeout(l,s)),i])}}throw o.throwIfAborted(),new Error("Unexpected error while waiting for transaction block.")}}exports.SuiJsonRpcClient=M;
package/dist/index79.js CHANGED
@@ -1,14 +1,14 @@
1
- import { fromBase58 as u } from "./index117.js";
2
- import { toBase64 as d } from "./index118.js";
3
- import { toHex as y } from "./index119.js";
4
- import { Experimental_BaseClient as k } from "./index120.js";
1
+ import { fromBase58 as u } from "./index262.js";
2
+ import { toBase64 as d } from "./index263.js";
3
+ import { toHex as y } from "./index264.js";
4
+ import { Experimental_BaseClient as k } from "./index265.js";
5
5
  import { isTransaction as f } from "./index80.js";
6
- import { isValidSuiAddress as n, normalizeSuiAddress as c, isValidSuiObjectId as m, normalizeSuiObjectId as g, isValidTransactionDigest as w } from "./index121.js";
7
- import { normalizeSuiNSName as M } from "./index122.js";
8
- import { JsonRpcHTTPTransport as S } from "./index113.js";
9
- import { isValidNamedPackage as i } from "./index123.js";
10
- import { hasMvrName as l } from "./index124.js";
11
- import { JSONRpcCoreClient as b } from "./index125.js";
6
+ import { isValidSuiAddress as n, normalizeSuiAddress as c, isValidSuiObjectId as m, normalizeSuiObjectId as g, isValidTransactionDigest as w } from "./index266.js";
7
+ import { normalizeSuiNSName as M } from "./index267.js";
8
+ import { JsonRpcHTTPTransport as S } from "./index258.js";
9
+ import { isValidNamedPackage as i } from "./index268.js";
10
+ import { hasMvrName as l } from "./index269.js";
11
+ import { JSONRpcCoreClient as b } from "./index270.js";
12
12
  const _ = Symbol.for("@mysten/SuiClient");
13
13
  class j extends k {
14
14
  /**