@gardenfi/swap 0.1.3-beta.16 → 0.1.3-beta.18

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 (354) hide show
  1. package/dist/index102.cjs +1 -1
  2. package/dist/index102.js +1 -1
  3. package/dist/index106.cjs +1 -1
  4. package/dist/index106.js +1 -1
  5. package/dist/index107.cjs +1 -1
  6. package/dist/index107.js +7 -7
  7. package/dist/index109.cjs +1 -1
  8. package/dist/index109.js +4 -4
  9. package/dist/index110.cjs +1 -1
  10. package/dist/index110.js +3 -3
  11. package/dist/index116.cjs +1 -1
  12. package/dist/index116.js +1 -1
  13. package/dist/index119.cjs +1 -1
  14. package/dist/index119.js +1 -1
  15. package/dist/index120.cjs +1 -1
  16. package/dist/index120.js +1 -1
  17. package/dist/index123.cjs +1 -1
  18. package/dist/index123.js +2 -2
  19. package/dist/index124.cjs +1 -1
  20. package/dist/index124.js +7 -7
  21. package/dist/index129.cjs +1 -1
  22. package/dist/index129.js +3 -3
  23. package/dist/index130.cjs +1 -1
  24. package/dist/index130.js +1 -1
  25. package/dist/index131.cjs +1 -1
  26. package/dist/index131.js +2 -2
  27. package/dist/index132.cjs +1 -1
  28. package/dist/index132.js +1 -1
  29. package/dist/index133.cjs +1 -1
  30. package/dist/index133.js +3 -3
  31. package/dist/index134.cjs +1 -1
  32. package/dist/index134.js +2 -2
  33. package/dist/index135.cjs +1 -1
  34. package/dist/index135.js +1 -1
  35. package/dist/index136.cjs +1 -1
  36. package/dist/index136.js +1 -1
  37. package/dist/index137.cjs +1 -1
  38. package/dist/index137.js +1 -1
  39. package/dist/index138.cjs +1 -1
  40. package/dist/index138.js +1 -1
  41. package/dist/index141.cjs +1 -1
  42. package/dist/index141.js +4 -4
  43. package/dist/index142.cjs +1 -1
  44. package/dist/index142.js +1 -1
  45. package/dist/index143.cjs +1 -1
  46. package/dist/index143.js +3 -3
  47. package/dist/index146.cjs +1 -1
  48. package/dist/index146.js +1 -1
  49. package/dist/index148.cjs +1 -1
  50. package/dist/index148.js +1 -1
  51. package/dist/index149.cjs +1 -1
  52. package/dist/index149.js +1 -1
  53. package/dist/index151.cjs +1 -1
  54. package/dist/index151.js +1 -1
  55. package/dist/index152.cjs +1 -1
  56. package/dist/index152.js +1 -1
  57. package/dist/index157.cjs +1 -1
  58. package/dist/index157.js +1 -1
  59. package/dist/index159.cjs +1 -1
  60. package/dist/index159.js +1 -1
  61. package/dist/index161.cjs +1 -1
  62. package/dist/index161.js +1 -1
  63. package/dist/index162.cjs +1 -1
  64. package/dist/index162.js +1 -1
  65. package/dist/index163.cjs +1 -1
  66. package/dist/index163.js +1 -1
  67. package/dist/index164.cjs +1 -1
  68. package/dist/index164.js +4 -4
  69. package/dist/index165.cjs +1 -1
  70. package/dist/index165.js +3 -3
  71. package/dist/index170.cjs +1 -1
  72. package/dist/index170.js +2 -2
  73. package/dist/index171.cjs +1 -1
  74. package/dist/index171.js +3 -3
  75. package/dist/index172.cjs +1 -1
  76. package/dist/index172.js +2 -2
  77. package/dist/index173.cjs +1 -1
  78. package/dist/index173.js +2 -2
  79. package/dist/index174.cjs +1 -1
  80. package/dist/index174.js +2 -2
  81. package/dist/index175.cjs +1 -1
  82. package/dist/index175.js +2 -2
  83. package/dist/index176.cjs +1 -1
  84. package/dist/index176.js +2 -2
  85. package/dist/index179.cjs +1 -1
  86. package/dist/index179.js +1 -1
  87. package/dist/index18.cjs +1 -1
  88. package/dist/index18.js +3 -3
  89. package/dist/index184.cjs +1 -1
  90. package/dist/index184.js +1 -1
  91. package/dist/index19.cjs +1 -1
  92. package/dist/index19.js +18 -18
  93. package/dist/index20.cjs +1 -1
  94. package/dist/index20.js +2 -2
  95. package/dist/index21.cjs +1 -1
  96. package/dist/index21.js +4 -4
  97. package/dist/index216.cjs +1 -1
  98. package/dist/index216.js +1 -1
  99. package/dist/index217.cjs +1 -1
  100. package/dist/index217.js +1 -1
  101. package/dist/index24.cjs +1 -1
  102. package/dist/index24.js +2 -2
  103. package/dist/index245.cjs +1 -1
  104. package/dist/index245.js +1 -1
  105. package/dist/index262.cjs +1 -1
  106. package/dist/index262.js +1 -1
  107. package/dist/index265.cjs +1 -1
  108. package/dist/index265.js +1 -1
  109. package/dist/index271.cjs +1 -1
  110. package/dist/index271.js +41 -14
  111. package/dist/index272.cjs +1 -1
  112. package/dist/index272.js +12 -23
  113. package/dist/index273.cjs +1 -1
  114. package/dist/index273.js +24 -12
  115. package/dist/index274.cjs +1 -1
  116. package/dist/index274.js +12 -9
  117. package/dist/index275.cjs +1 -1
  118. package/dist/index275.js +9 -30
  119. package/dist/index276.cjs +1 -1
  120. package/dist/index276.js +31 -2
  121. package/dist/index277.cjs +1 -1
  122. package/dist/index277.js +2 -48
  123. package/dist/index278.cjs +1 -1
  124. package/dist/index278.js +46 -10
  125. package/dist/index279.cjs +1 -1
  126. package/dist/index279.js +10 -173
  127. package/dist/index280.cjs +1 -2
  128. package/dist/index280.js +154 -71
  129. package/dist/index281.cjs +2 -1
  130. package/dist/index281.js +90 -39
  131. package/dist/index282.cjs +1 -1
  132. package/dist/index282.js +40 -4
  133. package/dist/index283.cjs +1 -1
  134. package/dist/index283.js +4 -163
  135. package/dist/index284.cjs +1 -1
  136. package/dist/index284.js +164 -5
  137. package/dist/index285.cjs +1 -1
  138. package/dist/index285.js +5 -41
  139. package/dist/index302.cjs +1 -1
  140. package/dist/index302.js +7 -37
  141. package/dist/index303.cjs +1 -1
  142. package/dist/index303.js +36 -14
  143. package/dist/index304.cjs +1 -1
  144. package/dist/index304.js +15 -8
  145. package/dist/index305.cjs +1 -1
  146. package/dist/index305.js +8 -7
  147. package/dist/index306.cjs +1 -1
  148. package/dist/index306.js +10 -43
  149. package/dist/index307.cjs +1 -1
  150. package/dist/index307.js +16 -320
  151. package/dist/index308.cjs +1 -1
  152. package/dist/index308.js +21 -604
  153. package/dist/index309.cjs +1 -1
  154. package/dist/index309.js +14 -110
  155. package/dist/index310.cjs +1 -1
  156. package/dist/index310.js +13 -167
  157. package/dist/index311.cjs +1 -1
  158. package/dist/index311.js +13 -300
  159. package/dist/index312.cjs +1 -1
  160. package/dist/index312.js +9 -93
  161. package/dist/index313.cjs +1 -1
  162. package/dist/index313.js +13 -54
  163. package/dist/index314.cjs +1 -1
  164. package/dist/index314.js +23 -51
  165. package/dist/index315.cjs +1 -1
  166. package/dist/index315.js +30 -43
  167. package/dist/index316.cjs +2 -1
  168. package/dist/index316.js +18 -15
  169. package/dist/index317.cjs +1 -1
  170. package/dist/index317.js +14 -317
  171. package/dist/index318.cjs +1 -1
  172. package/dist/index318.js +41 -58
  173. package/dist/index319.cjs +1 -1
  174. package/dist/index319.js +319 -18
  175. package/dist/index320.cjs +1 -1
  176. package/dist/index320.js +602 -26
  177. package/dist/index321.cjs +1 -1
  178. package/dist/index321.js +110 -4
  179. package/dist/index322.cjs +1 -7
  180. package/dist/index322.js +166 -236
  181. package/dist/index323.cjs +1 -1
  182. package/dist/index323.js +302 -48
  183. package/dist/index324.cjs +1 -1
  184. package/dist/index324.js +92 -211
  185. package/dist/index325.cjs +1 -1
  186. package/dist/index325.js +49 -74
  187. package/dist/index326.cjs +1 -1
  188. package/dist/index326.js +51 -27
  189. package/dist/index327.cjs +1 -1
  190. package/dist/index327.js +42 -74
  191. package/dist/index328.cjs +1 -1
  192. package/dist/index328.js +15 -9
  193. package/dist/index329.cjs +1 -1
  194. package/dist/index329.js +317 -16
  195. package/dist/index330.cjs +1 -1
  196. package/dist/index330.js +57 -20
  197. package/dist/index331.cjs +1 -1
  198. package/dist/index331.js +18 -12
  199. package/dist/index332.cjs +1 -1
  200. package/dist/index332.js +29 -13
  201. package/dist/index333.cjs +1 -1
  202. package/dist/index333.js +3 -14
  203. package/dist/index334.cjs +7 -1
  204. package/dist/index334.js +237 -9
  205. package/dist/index335.cjs +1 -1
  206. package/dist/index335.js +48 -16
  207. package/dist/index336.cjs +1 -1
  208. package/dist/index336.js +209 -22
  209. package/dist/index337.cjs +1 -1
  210. package/dist/index337.js +80 -30
  211. package/dist/index338.cjs +1 -2
  212. package/dist/index338.js +29 -18
  213. package/dist/index339.cjs +1 -1
  214. package/dist/index339.js +75 -13
  215. package/dist/index350.cjs +1 -1
  216. package/dist/index350.js +1 -1
  217. package/dist/index351.cjs +1 -1
  218. package/dist/index351.js +3 -3
  219. package/dist/index352.cjs +1 -2
  220. package/dist/index352.js +4 -193
  221. package/dist/index353.cjs +2 -1
  222. package/dist/index353.js +168 -52
  223. package/dist/index354.cjs +1 -1
  224. package/dist/index354.js +65 -331
  225. package/dist/index355.cjs +1 -1
  226. package/dist/index355.js +332 -149
  227. package/dist/index356.cjs +1 -1
  228. package/dist/index356.js +161 -5
  229. package/dist/index357.cjs +1 -1
  230. package/dist/index357.js +5 -5
  231. package/dist/index358.cjs +1 -1
  232. package/dist/index358.js +1 -1
  233. package/dist/index360.cjs +1 -1
  234. package/dist/index360.js +1 -1
  235. package/dist/index364.cjs +1 -1
  236. package/dist/index364.js +3 -94
  237. package/dist/index365.cjs +1 -1
  238. package/dist/index365.js +137 -25
  239. package/dist/index366.cjs +1 -1
  240. package/dist/index366.js +129 -144
  241. package/dist/index367.cjs +1 -1
  242. package/dist/index367.js +71 -331
  243. package/dist/index368.cjs +1 -1
  244. package/dist/index368.js +28 -3
  245. package/dist/index369.cjs +1 -1
  246. package/dist/index369.js +143 -135
  247. package/dist/index370.cjs +1 -1
  248. package/dist/index370.js +343 -264
  249. package/dist/index371.cjs +1 -1
  250. package/dist/index371.js +73 -170
  251. package/dist/index372.cjs +1 -1
  252. package/dist/index372.js +32 -10
  253. package/dist/index373.cjs +1 -1
  254. package/dist/index373.js +5 -107
  255. package/dist/index374.cjs +1 -1
  256. package/dist/index374.js +275 -5
  257. package/dist/index375.cjs +1 -1
  258. package/dist/index375.js +170 -73
  259. package/dist/index376.cjs +1 -1
  260. package/dist/index376.js +10 -10
  261. package/dist/index377.cjs +1 -1
  262. package/dist/index377.js +105 -29
  263. package/dist/index378.cjs +1 -1
  264. package/dist/index378.js +9 -133
  265. package/dist/index384.cjs +1 -1
  266. package/dist/index384.js +2 -22
  267. package/dist/index385.cjs +1 -1
  268. package/dist/index385.js +22 -2
  269. package/dist/index386.cjs +1 -1
  270. package/dist/index386.js +59 -106
  271. package/dist/index387.cjs +1 -1
  272. package/dist/index387.js +110 -3
  273. package/dist/index388.cjs +1 -1
  274. package/dist/index388.js +3 -63
  275. package/dist/index41.cjs +1 -1
  276. package/dist/index41.js +1 -1
  277. package/dist/index42.cjs +1 -1
  278. package/dist/index42.js +12 -88
  279. package/dist/index43.cjs +1 -1
  280. package/dist/index43.js +58 -13
  281. package/dist/index44.cjs +1 -1
  282. package/dist/index44.js +522 -12
  283. package/dist/index45.cjs +1 -1
  284. package/dist/index45.js +30 -59
  285. package/dist/index46.cjs +1 -1
  286. package/dist/index46.js +26 -522
  287. package/dist/index47.cjs +1 -1
  288. package/dist/index47.js +12 -16
  289. package/dist/index48.cjs +1 -1
  290. package/dist/index48.js +34 -11
  291. package/dist/index49.cjs +1 -1
  292. package/dist/index49.js +16 -14
  293. package/dist/index50.cjs +1 -1
  294. package/dist/index50.js +16 -37
  295. package/dist/index51.cjs +1 -1
  296. package/dist/index51.js +17 -14
  297. package/dist/index52.cjs +1 -1
  298. package/dist/index52.js +19 -17
  299. package/dist/index53.cjs +1 -1
  300. package/dist/index53.js +42 -17
  301. package/dist/index54.cjs +1 -1
  302. package/dist/index54.js +39 -15
  303. package/dist/index55.cjs +1 -1
  304. package/dist/index55.js +29 -49
  305. package/dist/index56.cjs +1 -1
  306. package/dist/index56.js +29 -46
  307. package/dist/index57.cjs +1 -1
  308. package/dist/index57.js +19 -25
  309. package/dist/index58.cjs +1 -1
  310. package/dist/index58.js +18 -27
  311. package/dist/index59.cjs +1 -1
  312. package/dist/index59.js +14 -16
  313. package/dist/index60.cjs +1 -1
  314. package/dist/index60.js +24 -14
  315. package/dist/index61.cjs +1 -1
  316. package/dist/index61.js +34 -17
  317. package/dist/index62.cjs +1 -1
  318. package/dist/index62.js +33 -19
  319. package/dist/index63.cjs +1 -1
  320. package/dist/index63.js +15 -45
  321. package/dist/index64.cjs +1 -1
  322. package/dist/index64.js +14 -52
  323. package/dist/index65.cjs +1 -1
  324. package/dist/index65.js +86 -13
  325. package/dist/index66.cjs +1 -1
  326. package/dist/index66.js +13 -13
  327. package/dist/index68.cjs +1 -1
  328. package/dist/index68.js +3 -3
  329. package/dist/index70.cjs +1 -1
  330. package/dist/index70.js +1 -1
  331. package/dist/index71.cjs +1 -1
  332. package/dist/index71.js +12 -19
  333. package/dist/index72.cjs +1 -1
  334. package/dist/index72.js +36 -12
  335. package/dist/index73.cjs +1 -1
  336. package/dist/index73.js +41 -36
  337. package/dist/index74.cjs +1 -1
  338. package/dist/index74.js +39 -38
  339. package/dist/index75.cjs +1 -1
  340. package/dist/index75.js +24 -42
  341. package/dist/index76.cjs +1 -1
  342. package/dist/index76.js +52 -22
  343. package/dist/index77.cjs +1 -1
  344. package/dist/index77.js +25 -52
  345. package/dist/index78.cjs +1 -1
  346. package/dist/index78.js +20 -28
  347. package/dist/index80.cjs +1 -1
  348. package/dist/index80.js +13 -13
  349. package/dist/index84.cjs +1 -1
  350. package/dist/index84.js +1 -1
  351. package/dist/index95.cjs +1 -1
  352. package/dist/index95.js +2 -2
  353. package/dist/src/lib/store/swapStore.d.ts +1 -1
  354. package/package.json +5 -5
package/dist/index387.js CHANGED
@@ -1,5 +1,112 @@
1
- import { blake2b as b } from "./index389.js";
2
- const e = b;
1
+ /*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */
2
+ function x(e) {
3
+ return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
4
+ }
5
+ function g(e, r) {
6
+ return Array.isArray(r) ? r.length === 0 ? !0 : e ? r.every((t) => typeof t == "string") : r.every((t) => Number.isSafeInteger(t)) : !1;
7
+ }
8
+ function w(e, r) {
9
+ if (typeof r != "string")
10
+ throw new Error(`${e}: string expected`);
11
+ return !0;
12
+ }
13
+ function b(e) {
14
+ if (!Number.isSafeInteger(e))
15
+ throw new Error(`invalid integer: ${e}`);
16
+ }
17
+ function h(e) {
18
+ if (!Array.isArray(e))
19
+ throw new Error("array expected");
20
+ }
21
+ function A(e, r) {
22
+ if (!g(!0, r))
23
+ throw new Error(`${e}: array of strings expected`);
24
+ }
25
+ function E(e, r) {
26
+ if (!g(!1, r))
27
+ throw new Error(`${e}: array of numbers expected`);
28
+ }
29
+ // @__NO_SIDE_EFFECTS__
30
+ function m(...e) {
31
+ const r = (n) => n, t = (n, a) => (o) => n(a(o)), c = e.map((n) => n.encode).reduceRight(t, r), i = e.map((n) => n.decode).reduce(t, r);
32
+ return { encode: c, decode: i };
33
+ }
34
+ // @__NO_SIDE_EFFECTS__
35
+ function $(e) {
36
+ const r = typeof e == "string" ? e.split("") : e, t = r.length;
37
+ A("alphabet", r);
38
+ const c = new Map(r.map((i, n) => [i, n]));
39
+ return {
40
+ encode: (i) => (h(i), i.map((n) => {
41
+ if (!Number.isSafeInteger(n) || n < 0 || n >= t)
42
+ throw new Error(`alphabet.encode: digit index outside alphabet "${n}". Allowed: ${e}`);
43
+ return r[n];
44
+ })),
45
+ decode: (i) => (h(i), i.map((n) => {
46
+ w("alphabet.decode", n);
47
+ const a = c.get(n);
48
+ if (a === void 0)
49
+ throw new Error(`Unknown letter: "${n}". Allowed: ${e}`);
50
+ return a;
51
+ }))
52
+ };
53
+ }
54
+ // @__NO_SIDE_EFFECTS__
55
+ function R(e = "") {
56
+ return w("join", e), {
57
+ encode: (r) => (A("join.decode", r), r.join(e)),
58
+ decode: (r) => (w("join.decode", r), r.split(e))
59
+ };
60
+ }
61
+ function p(e, r, t) {
62
+ if (r < 2)
63
+ throw new Error(`convertRadix: invalid from=${r}, base cannot be less than 2`);
64
+ if (t < 2)
65
+ throw new Error(`convertRadix: invalid to=${t}, base cannot be less than 2`);
66
+ if (h(e), !e.length)
67
+ return [];
68
+ let c = 0;
69
+ const i = [], n = Array.from(e, (o) => {
70
+ if (b(o), o < 0 || o >= r)
71
+ throw new Error(`invalid integer: ${o}`);
72
+ return o;
73
+ }), a = n.length;
74
+ for (; ; ) {
75
+ let o = 0, d = !0;
76
+ for (let s = c; s < a; s++) {
77
+ const y = n[s], l = r * o, f = l + y;
78
+ if (!Number.isSafeInteger(f) || l / r !== o || f - y !== l)
79
+ throw new Error("convertRadix: carry overflow");
80
+ const v = f / t;
81
+ o = f % t;
82
+ const u = Math.floor(v);
83
+ if (n[s] = u, !Number.isSafeInteger(u) || u * t + o !== f)
84
+ throw new Error("convertRadix: carry overflow");
85
+ if (d)
86
+ u ? d = !1 : c = s;
87
+ else continue;
88
+ }
89
+ if (i.push(o), d)
90
+ break;
91
+ }
92
+ for (let o = 0; o < e.length - 1 && e[o] === 0; o++)
93
+ i.push(0);
94
+ return i.reverse();
95
+ }
96
+ // @__NO_SIDE_EFFECTS__
97
+ function j(e) {
98
+ b(e);
99
+ const r = 2 ** 8;
100
+ return {
101
+ encode: (t) => {
102
+ if (!x(t))
103
+ throw new Error("radix.encode input should be Uint8Array");
104
+ return p(Array.from(t), r, e);
105
+ },
106
+ decode: (t) => (E("radix.decode", t), Uint8Array.from(p(t, e, r)))
107
+ };
108
+ }
109
+ const N = /* @__NO_SIDE_EFFECTS__ */ (e) => /* @__PURE__ */ m(/* @__PURE__ */ j(58), /* @__PURE__ */ $(e), /* @__PURE__ */ R("")), S = /* @__PURE__ */ N("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");
3
110
  export {
4
- e as blake2b
111
+ S as base58
5
112
  };
package/dist/index388.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index353.cjs"),a=require("./index280.cjs");function d(r){let i=!0,t="",e=0,n="",o=!1;for(let s=0;s<r.length;s++){const u=r[s];if(["(",")",","].includes(u)&&(i=!0),u==="("&&e++,u===")"&&e--,!!i){if(e===0){if(u===" "&&["event","function","error",""].includes(n))n="";else if(n+=u,u===")"){o=!0;break}continue}if(u===" "){r[s-1]!==","&&t!==","&&t!==",("&&(t="",i=!1);continue}n+=u,t+=u}}if(!o)throw new a.BaseError("Unable to normalize signature.");return n}function l(r,i){const t=typeof r,e=i.type;switch(e){case"address":return c.validate(r,{strict:!1});case"bool":return t==="boolean";case"function":return t==="string";case"string":return t==="string";default:return e==="tuple"&&"components"in i?Object.values(i.components).every((n,o)=>l(Object.values(r)[o],n)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(e)?t==="number"||t==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(e)?t==="string"||r instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(e)?Array.isArray(r)&&r.every(n=>l(n,{...i,type:e.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function f(r,i,t){for(const e in r){const n=r[e],o=i[e];if(n.type==="tuple"&&o.type==="tuple"&&"components"in n&&"components"in o)return f(n.components,o.components,t[e]);const s=[n.type,o.type];if(s.includes("address")&&s.includes("bytes20")?!0:s.includes("address")&&s.includes("string")?c.validate(t[e],{strict:!1}):s.includes("address")&&s.includes("bytes")?c.validate(t[e],{strict:!1}):!1)return s}}exports.getAmbiguousTypes=f;exports.isArgOfType=l;exports.normalizeSignature=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index389.cjs"),b=e.blake2b;exports.blake2b=b;
package/dist/index388.js CHANGED
@@ -1,65 +1,5 @@
1
- import { validate as c } from "./index353.js";
2
- import { BaseError as f } from "./index280.js";
3
- function y(r) {
4
- let i = !0, t = "", e = 0, n = "", o = !1;
5
- for (let s = 0; s < r.length; s++) {
6
- const u = r[s];
7
- if (["(", ")", ","].includes(u) && (i = !0), u === "(" && e++, u === ")" && e--, !!i) {
8
- if (e === 0) {
9
- if (u === " " && ["event", "function", "error", ""].includes(n))
10
- n = "";
11
- else if (n += u, u === ")") {
12
- o = !0;
13
- break;
14
- }
15
- continue;
16
- }
17
- if (u === " ") {
18
- r[s - 1] !== "," && t !== "," && t !== ",(" && (t = "", i = !1);
19
- continue;
20
- }
21
- n += u, t += u;
22
- }
23
- }
24
- if (!o)
25
- throw new f("Unable to normalize signature.");
26
- return n;
27
- }
28
- function l(r, i) {
29
- const t = typeof r, e = i.type;
30
- switch (e) {
31
- case "address":
32
- return c(r, { strict: !1 });
33
- case "bool":
34
- return t === "boolean";
35
- case "function":
36
- return t === "string";
37
- case "string":
38
- return t === "string";
39
- default:
40
- return e === "tuple" && "components" in i ? Object.values(i.components).every((n, o) => l(Object.values(r)[o], n)) : /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(e) ? t === "number" || t === "bigint" : /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(e) ? t === "string" || r instanceof Uint8Array : /[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(e) ? Array.isArray(r) && r.every((n) => l(n, {
41
- ...i,
42
- // Pop off `[]` or `[M]` from end of type
43
- type: e.replace(/(\[[0-9]{0,}\])$/, "")
44
- })) : !1;
45
- }
46
- }
47
- function a(r, i, t) {
48
- for (const e in r) {
49
- const n = r[e], o = i[e];
50
- if (n.type === "tuple" && o.type === "tuple" && "components" in n && "components" in o)
51
- return a(n.components, o.components, t[e]);
52
- const s = [n.type, o.type];
53
- if (s.includes("address") && s.includes("bytes20") ? !0 : s.includes("address") && s.includes("string") ? c(t[e], {
54
- strict: !1
55
- }) : s.includes("address") && s.includes("bytes") ? c(t[e], {
56
- strict: !1
57
- }) : !1)
58
- return s;
59
- }
60
- }
1
+ import { blake2b as b } from "./index389.js";
2
+ const e = b;
61
3
  export {
62
- a as getAmbiguousTypes,
63
- l as isArgOfType,
64
- y as normalizeSignature
4
+ e as blake2b
65
5
  };
package/dist/index41.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),a=require("@gardenfi/garden-book"),c=require("framer-motion"),N=require("./index71.cjs"),b=require("./index6.cjs"),i=require("./index12.cjs"),v=({show:n,chains:r,hide:m,onClick:u})=>{const[l,f]=e.useState(""),d=e.useRef(null),{isMobile:p}=N.viewPortStore(),{showFeesAndRateDetails:h,showBtcAddress:g}=b.swapStore(),w=(h?g?i.HEIGHTS.large:i.HEIGHTS.medium:i.HEIGHTS.small)-i.BUFFER_HEIGHT.medium,x={initial:{x:"100%",opacity:0},animate:{x:n?0:"100%",opacity:n?1:0},transition:{type:"tween",ease:"easeInOut",stiffness:200,damping:25,mass:.8,duration:.4}},y={initial:{y:"100%",opacity:0},animate:{y:n?0:"100%",opacity:n?1:0},transition:{type:"tween",ease:"easeInOut",stiffness:200,damping:25,mass:.8,duration:.4}},o=e.useMemo(()=>l?r.filter(t=>t.chainName.toLowerCase().includes(l.toLowerCase())).sort((t,s)=>t.chainName.localeCompare(s.chainName)):r.sort((t,s)=>t.chainName.localeCompare(s.chainName)),[r,l]),E=t=>{f(t.target.value)};return e.createElement(c.AnimatePresence,null,e.createElement(c.motion.div,{...p?y:x,className:"absolute left-0 top-0 z-50 w-full rounded-[16px] p-2"},e.createElement("div",{className:"transition-left left-auto top-60 z-40 flex w-full flex-col gap-3 duration-700 ease-cubic-in-out"},e.createElement("div",{className:"flex items-center justify-between p-1"},e.createElement(a.Typography,{size:"h4",weight:"medium"},"Select chain"),e.createElement(a.ArrowLeftIcon,{onClick:m,className:"cursor-pointer"})),e.createElement("div",{className:"flex w-full items-center justify-between rounded-2xl bg-white/50 px-4 py-[10px]"},e.createElement("div",{className:"flex flex-grow items-center"},e.createElement(a.Typography,{size:"h4",weight:"medium",className:"gf-w-full"},e.createElement("input",{ref:d,className:"w-full bg-transparent outline-none placeholder:text-mid-grey focus:outline-none",type:"text",value:l,placeholder:"Search chains",onChange:E}))),e.createElement(a.SearchIcon,null)),e.createElement("div",{className:"flex h-full flex-col overflow-auto rounded-2xl bg-white"},e.createElement(a.GradientScroll,{height:w,gradientHeight:42,className:"rounded-2xl"},e.createElement("div",{className:"flex w-full flex-col pb-2 pt-2"},o.length>0?o.map(t=>e.createElement("div",{key:t.chainId,className:"flex w-full cursor-pointer items-center justify-between hover:bg-off-white",onClick:()=>u(t)},e.createElement("div",{className:"flex w-full items-center gap-4 px-[14px] py-2"},e.createElement("img",{src:t.iconUrl,alt:t.chainName,className:"h-5 w-5 rounded-full"}),e.createElement(a.Typography,{size:"h5",breakpoints:{sm:"h4"},weight:"regular"},t.chainName)))):e.createElement("div",{className:"flex min-h-[334px] w-full items-center justify-center"},e.createElement(a.Typography,{size:"h4",weight:"medium",className:"text-center text-mid-grey"},"No chains found."))))))))};exports.AvailableChainsSidebar=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),a=require("@gardenfi/garden-book"),c=require("framer-motion"),N=require("./index78.cjs"),b=require("./index6.cjs"),i=require("./index12.cjs"),v=({show:n,chains:r,hide:m,onClick:u})=>{const[l,f]=e.useState(""),d=e.useRef(null),{isMobile:p}=N.viewPortStore(),{showFeesAndRateDetails:h,showBtcAddress:g}=b.swapStore(),w=(h?g?i.HEIGHTS.large:i.HEIGHTS.medium:i.HEIGHTS.small)-i.BUFFER_HEIGHT.medium,x={initial:{x:"100%",opacity:0},animate:{x:n?0:"100%",opacity:n?1:0},transition:{type:"tween",ease:"easeInOut",stiffness:200,damping:25,mass:.8,duration:.4}},y={initial:{y:"100%",opacity:0},animate:{y:n?0:"100%",opacity:n?1:0},transition:{type:"tween",ease:"easeInOut",stiffness:200,damping:25,mass:.8,duration:.4}},o=e.useMemo(()=>l?r.filter(t=>t.chainName.toLowerCase().includes(l.toLowerCase())).sort((t,s)=>t.chainName.localeCompare(s.chainName)):r.sort((t,s)=>t.chainName.localeCompare(s.chainName)),[r,l]),E=t=>{f(t.target.value)};return e.createElement(c.AnimatePresence,null,e.createElement(c.motion.div,{...p?y:x,className:"absolute left-0 top-0 z-50 w-full rounded-[16px] p-2"},e.createElement("div",{className:"transition-left left-auto top-60 z-40 flex w-full flex-col gap-3 duration-700 ease-cubic-in-out"},e.createElement("div",{className:"flex items-center justify-between p-1"},e.createElement(a.Typography,{size:"h4",weight:"medium"},"Select chain"),e.createElement(a.ArrowLeftIcon,{onClick:m,className:"cursor-pointer"})),e.createElement("div",{className:"flex w-full items-center justify-between rounded-2xl bg-white/50 px-4 py-[10px]"},e.createElement("div",{className:"flex flex-grow items-center"},e.createElement(a.Typography,{size:"h4",weight:"medium",className:"gf-w-full"},e.createElement("input",{ref:d,className:"w-full bg-transparent outline-none placeholder:text-mid-grey focus:outline-none",type:"text",value:l,placeholder:"Search chains",onChange:E}))),e.createElement(a.SearchIcon,null)),e.createElement("div",{className:"flex h-full flex-col overflow-auto rounded-2xl bg-white"},e.createElement(a.GradientScroll,{height:w,gradientHeight:42,className:"rounded-2xl"},e.createElement("div",{className:"flex w-full flex-col pb-2 pt-2"},o.length>0?o.map(t=>e.createElement("div",{key:t.chainId,className:"flex w-full cursor-pointer items-center justify-between hover:bg-off-white",onClick:()=>u(t)},e.createElement("div",{className:"flex w-full items-center gap-4 px-[14px] py-2"},e.createElement("img",{src:t.iconUrl,alt:t.chainName,className:"h-5 w-5 rounded-full"}),e.createElement(a.Typography,{size:"h5",breakpoints:{sm:"h4"},weight:"regular"},t.chainName)))):e.createElement("div",{className:"flex min-h-[334px] w-full items-center justify-center"},e.createElement(a.Typography,{size:"h4",weight:"medium",className:"text-center text-mid-grey"},"No chains found."))))))))};exports.AvailableChainsSidebar=v;
package/dist/index41.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import e, { useState as E, useRef as y, useMemo as v } from "react";
2
2
  import { Typography as l, ArrowLeftIcon as b, SearchIcon as C, GradientScroll as S } from "@gardenfi/garden-book";
3
3
  import { AnimatePresence as I, motion as z } from "framer-motion";
4
- import { viewPortStore as A } from "./index71.js";
4
+ import { viewPortStore as A } from "./index78.js";
5
5
  import { swapStore as H } from "./index6.js";
6
6
  import { HEIGHTS as s, BUFFER_HEIGHT as R } from "./index12.js";
7
7
  const B = ({
package/dist/index42.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),g=require("@gardenfi/garden-book"),A=require("./index36.cjs"),t=require("@gardenfi/orderbook"),I=require("./index7.cjs"),a=require("./index34.cjs"),M=require("./index6.cjs"),w=require("./index12.cjs"),_=require("./index14.cjs"),v=require("@gardenfi/react-hooks"),R=r=>{switch(r){case t.OrderStatus.Created:return"Detecting deposit";case t.OrderStatus.Expired:return"Expired";case t.OrderStatus.Initiated:return"Deposit detected (0/1)";case t.OrderStatus.InitiateDetected:return"Deposit detected (0/1)";case t.OrderStatus.AwaitingRedeem:return"Redeeming";case t.OrderStatus.Refunded:case t.OrderStatus.AwaitingRefund:case t.OrderStatus.Redeemed:return"Completed";default:return"In progress..."}},k=({order:r,status:o,isLast:f,isFirst:S})=>{const{source_swap:c,destination_swap:i}=r,{allAssets:u}=I.assetInfoStore(),{currentNetwork:h,setActiveTab:O}=M.swapStore(),{setIsOpen:b,setOrder:E}=_.orderInProgressStore(),{garden:d}=v.useGarden(),n=e.useMemo(()=>a.getAssetFromSwap(c,u),[c,u]),s=e.useMemo(()=>a.getAssetFromSwap(i,u),[i,u]),l=e.useMemo(()=>o&&R(o),[o]),m=e.useMemo(()=>n&&a.formatAmount(c.amount,(n==null?void 0:n.decimals)??0,Math.min(n.decimals,8)),[c.amount,n]),p=e.useMemo(()=>s&&a.formatAmount(i.amount,(s==null?void 0:s.decimals)??0,Math.min(s.decimals,8)),[i.amount,s]),x=e.useMemo(()=>a.getDayDifference(r.created_at),[r.created_at]),q=()=>{if(!r.order_id||!d)return;if(o===t.OrderStatus.Created&&t.isBitcoin(r.source_swap.chain)){b(!0),O(w.tabs.swap),E(d,r.order_id);return}const y=w.getApiEndpoint(h).explorer;window.open(`${y}/order/${r.order_id}`,"_blank")};return!n||!s?null:e.createElement("div",null,!S&&e.createElement("div",{className:"h-px w-full bg-white/50"}),e.createElement("div",{className:`flex flex-col gap-1 p-4 ${f?"rounded-b-2xl":""} ${l!=="Expired"?"cursor-pointer hover:bg-white/50":""}`,onClick:q},e.createElement("div",{className:"flex flex-col gap-1"},m&&p&&e.createElement(A.SwapInfo,{sendAsset:n,receiveAsset:s,sendAmount:m,receiveAmount:p}),e.createElement("div",{className:"flex justify-between"},e.createElement(g.Typography,{size:"h5",weight:"regular"},l),e.createElement(g.Typography,{size:"h5",weight:"regular"},x)))))};exports.TransactionRow=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index125.cjs"),n=require("./index128.cjs");function l(e){const{key:t="public",name:i="Public Client"}=e;return c.createClient({...e,key:t,name:i,type:"publicClient"}).extend(n.publicActions)}exports.createPublicClient=l;
package/dist/index42.js CHANGED
@@ -1,90 +1,14 @@
1
- import a, { useMemo as o } from "react";
2
- import { Typography as f } from "@gardenfi/garden-book";
3
- import { SwapInfo as R } from "./index36.js";
4
- import { OrderStatus as t, isBitcoin as S } from "@gardenfi/orderbook";
5
- import { assetInfoStore as y } from "./index7.js";
6
- import { getAssetFromSwap as g, formatAmount as w, getDayDifference as C } from "./index34.js";
7
- import { swapStore as N } from "./index6.js";
8
- import { tabs as k, getApiEndpoint as O } from "./index12.js";
9
- import { orderInProgressStore as T } from "./index14.js";
10
- import { useGarden as $ } from "@gardenfi/react-hooks";
11
- const M = (e) => {
12
- switch (e) {
13
- case t.Created:
14
- return "Detecting deposit";
15
- case t.Expired:
16
- return "Expired";
17
- case t.Initiated:
18
- return "Deposit detected (0/1)";
19
- case t.InitiateDetected:
20
- return "Deposit detected (0/1)";
21
- case t.AwaitingRedeem:
22
- return "Redeeming";
23
- case t.Refunded:
24
- case t.AwaitingRefund:
25
- case t.Redeemed:
26
- return "Completed";
27
- default:
28
- return "In progress...";
29
- }
30
- }, K = ({
31
- order: e,
32
- status: i,
33
- isLast: h,
34
- isFirst: x
35
- }) => {
36
- const { source_swap: s, destination_swap: c } = e, { allAssets: m } = y(), { currentNetwork: E, setActiveTab: b } = N(), { setIsOpen: _, setOrder: v } = T(), { garden: d } = $(), r = o(
37
- () => g(s, m),
38
- [s, m]
39
- ), n = o(
40
- () => g(c, m),
41
- [c, m]
42
- ), l = o(
43
- () => i && M(i),
44
- [i]
45
- ), p = o(
46
- () => r && w(
47
- s.amount,
48
- (r == null ? void 0 : r.decimals) ?? 0,
49
- Math.min(r.decimals, 8)
50
- ),
51
- [s.amount, r]
52
- ), u = o(
53
- () => n && w(
54
- c.amount,
55
- (n == null ? void 0 : n.decimals) ?? 0,
56
- Math.min(n.decimals, 8)
57
- ),
58
- [c.amount, n]
59
- ), A = o(
60
- () => C(e.created_at),
61
- [e.created_at]
62
- ), D = () => {
63
- if (!e.order_id || !d) return;
64
- if (i === t.Created && S(e.source_swap.chain)) {
65
- _(!0), b(k.swap), v(d, e.order_id);
66
- return;
67
- }
68
- const I = O(E).explorer;
69
- window.open(`${I}/order/${e.order_id}`, "_blank");
70
- };
71
- return !r || !n ? null : /* @__PURE__ */ a.createElement("div", null, !x && /* @__PURE__ */ a.createElement("div", { className: "h-px w-full bg-white/50" }), /* @__PURE__ */ a.createElement(
72
- "div",
73
- {
74
- className: `flex flex-col gap-1 p-4 ${h ? "rounded-b-2xl" : ""} ${l !== "Expired" ? "cursor-pointer hover:bg-white/50" : ""}`,
75
- onClick: D
76
- },
77
- /* @__PURE__ */ a.createElement("div", { className: "flex flex-col gap-1" }, p && u && /* @__PURE__ */ a.createElement(
78
- R,
79
- {
80
- sendAsset: r,
81
- receiveAsset: n,
82
- sendAmount: p,
83
- receiveAmount: u
84
- }
85
- ), /* @__PURE__ */ a.createElement("div", { className: "flex justify-between" }, /* @__PURE__ */ a.createElement(f, { size: "h5", weight: "regular" }, l), /* @__PURE__ */ a.createElement(f, { size: "h5", weight: "regular" }, A)))
86
- ));
87
- };
1
+ import { createClient as n } from "./index125.js";
2
+ import { publicActions as c } from "./index128.js";
3
+ function u(t) {
4
+ const { key: e = "public", name: i = "Public Client" } = t;
5
+ return n({
6
+ ...t,
7
+ key: e,
8
+ name: i,
9
+ type: "publicClient"
10
+ }).extend(c);
11
+ }
88
12
  export {
89
- K as TransactionRow
13
+ u as createPublicClient
90
14
  };
package/dist/index43.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),l=require("framer-motion"),r=()=>{const t=()=>e.createElement("div",{className:"flex flex-col gap-1"},e.createElement("div",{className:"flex justify-between gap-4"},e.createElement("div",{className:"h-5 w-24 animate-pulse rounded-md bg-gray-200"}),e.createElement("div",{className:"h-5 w-6 animate-pulse rounded-full bg-gray-200"}),e.createElement("div",{className:"h-5 w-24 animate-pulse rounded-md bg-gray-200"})),e.createElement("div",{className:"flex justify-between"},e.createElement("div",{className:"h-4 w-28 animate-pulse rounded-md bg-gray-200"}),e.createElement("div",{className:"h-4 w-20 animate-pulse rounded-md bg-gray-200"})));return e.createElement(l.motion.div,{layout:!0,className:"flex flex-col"},Array.from({length:4}).map((n,a)=>e.createElement("div",{key:a,className:`bg-white/50 p-4 ${a===3?"rounded-b-2xl":""}`},t())))};exports.TransactionsSkeleton=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./index182.cjs"),H=require("./index183.cjs"),U=require("./index184.cjs"),_=require("./index185.cjs"),k=require("./index180.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/index43.js CHANGED
@@ -1,16 +1,61 @@
1
- import e from "react";
2
- import { motion as l } from "framer-motion";
3
- const s = () => {
4
- const t = () => /* @__PURE__ */ e.createElement("div", { className: "flex flex-col gap-1" }, /* @__PURE__ */ e.createElement("div", { className: "flex justify-between gap-4" }, /* @__PURE__ */ e.createElement("div", { className: "h-5 w-24 animate-pulse rounded-md bg-gray-200" }), /* @__PURE__ */ e.createElement("div", { className: "h-5 w-6 animate-pulse rounded-full bg-gray-200" }), /* @__PURE__ */ e.createElement("div", { className: "h-5 w-24 animate-pulse rounded-md bg-gray-200" })), /* @__PURE__ */ e.createElement("div", { className: "flex justify-between" }, /* @__PURE__ */ e.createElement("div", { className: "h-4 w-28 animate-pulse rounded-md bg-gray-200" }), /* @__PURE__ */ e.createElement("div", { className: "h-4 w-20 animate-pulse rounded-md bg-gray-200" })));
5
- return /* @__PURE__ */ e.createElement(l.div, { layout: !0, className: "flex flex-col" }, Array.from({ length: 4 }).map((m, a) => /* @__PURE__ */ e.createElement(
6
- "div",
7
- {
1
+ import { RpcRequestError as U } from "./index182.js";
2
+ import { UrlRequiredError as _ } from "./index183.js";
3
+ import { createBatchScheduler as j } from "./index184.js";
4
+ import { getHttpRpcClient as k } from "./index185.js";
5
+ import { createTransport as x } from "./index180.js";
6
+ function v(l, r = {}) {
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
+ return ({ chain: n, retryCount: C, timeout: S }) => {
9
+ const { batchSize: b = 1e3, wait: F = 0 } = typeof o == "object" ? o : {}, T = r.retryCount ?? C, c = S ?? r.timeout ?? 1e4, e = l || (n == null ? void 0 : n.rpcUrls.default.http[0]);
10
+ if (!e)
11
+ throw new _();
12
+ const p = k(e, {
13
+ fetchFn: m,
14
+ fetchOptions: u,
15
+ onRequest: d,
16
+ onResponse: R,
17
+ timeout: c
18
+ });
19
+ return x({
8
20
  key: a,
9
- className: `bg-white/50 p-4 ${a === 3 ? "rounded-b-2xl" : ""}`
10
- },
11
- t()
12
- )));
13
- };
21
+ methods: f,
22
+ name: y,
23
+ async request({ method: B, params: E }) {
24
+ const i = { method: B, params: E }, { schedule: H } = j({
25
+ id: e,
26
+ wait: F,
27
+ shouldSplitBatch(t) {
28
+ return t.length > b;
29
+ },
30
+ fn: (t) => p.request({
31
+ body: t
32
+ }),
33
+ sort: (t, P) => t.id - P.id
34
+ }), O = async (t) => o ? H(t) : [
35
+ await p.request({
36
+ body: t
37
+ })
38
+ ], [{ error: s, result: h }] = await O(i);
39
+ if (q)
40
+ return { error: s, result: h };
41
+ if (s)
42
+ throw new U({
43
+ body: i,
44
+ error: s,
45
+ url: e
46
+ });
47
+ return h;
48
+ },
49
+ retryCount: T,
50
+ retryDelay: w,
51
+ timeout: c,
52
+ type: "http"
53
+ }, {
54
+ fetchOptions: u,
55
+ url: e
56
+ });
57
+ };
58
+ }
14
59
  export {
15
- s as TransactionsSkeleton
60
+ v as http
16
61
  };
package/dist/index44.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index125.cjs"),n=require("./index128.cjs");function l(e){const{key:t="public",name:i="Public Client"}=e;return c.createClient({...e,key:t,name:i,type:"publicClient"}).extend(n.publicActions)}exports.createPublicClient=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],n=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],e=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],a=[...e,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],s=[...e,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],i=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],p=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],r=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],y=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],u=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}];exports.addressResolverAbi=p;exports.batchGatewayAbi=n;exports.erc1271Abi=r;exports.erc20Abi=u;exports.erc6492SignatureValidatorAbi=y;exports.multicall3Abi=t;exports.textResolverAbi=i;exports.universalResolverResolveAbi=a;exports.universalResolverReverseAbi=s;