@gardenfi/core 0.2.0-beta.74 → 0.2.0-beta.76

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 (303) hide show
  1. package/dist/index.cjs +31 -1
  2. package/dist/index.js +7813 -27
  3. package/dist/src/index.d.ts +1 -1
  4. package/dist/src/lib/evm/relay/evmRelay.d.ts +1 -1
  5. package/dist/src/lib/evm/relay/evmRelay.types.d.ts +1 -1
  6. package/dist/src/lib/utils.d.ts +2 -0
  7. package/package.json +1 -1
  8. package/dist/index10.cjs +0 -1
  9. package/dist/index10.js +0 -101
  10. package/dist/index100.cjs +0 -1
  11. package/dist/index100.js +0 -37
  12. package/dist/index101.cjs +0 -1
  13. package/dist/index101.js +0 -369
  14. package/dist/index102.cjs +0 -1
  15. package/dist/index102.js +0 -23
  16. package/dist/index103.cjs +0 -1
  17. package/dist/index103.js +0 -58
  18. package/dist/index104.cjs +0 -1
  19. package/dist/index104.js +0 -5
  20. package/dist/index105.cjs +0 -1
  21. package/dist/index105.js +0 -51
  22. package/dist/index106.cjs +0 -1
  23. package/dist/index106.js +0 -28
  24. package/dist/index107.cjs +0 -1
  25. package/dist/index107.js +0 -4
  26. package/dist/index108.cjs +0 -1
  27. package/dist/index108.js +0 -4
  28. package/dist/index109.cjs +0 -1
  29. package/dist/index109.js +0 -64
  30. package/dist/index11.cjs +0 -20
  31. package/dist/index11.js +0 -380
  32. package/dist/index110.cjs +0 -1
  33. package/dist/index110.js +0 -37
  34. package/dist/index111.cjs +0 -1
  35. package/dist/index111.js +0 -7
  36. package/dist/index112.cjs +0 -1
  37. package/dist/index112.js +0 -4
  38. package/dist/index113.cjs +0 -1
  39. package/dist/index113.js +0 -60
  40. package/dist/index114.cjs +0 -1
  41. package/dist/index114.js +0 -4
  42. package/dist/index115.cjs +0 -1
  43. package/dist/index115.js +0 -42
  44. package/dist/index116.cjs +0 -1
  45. package/dist/index116.js +0 -45
  46. package/dist/index117.cjs +0 -1
  47. package/dist/index117.js +0 -20
  48. package/dist/index118.cjs +0 -1
  49. package/dist/index118.js +0 -111
  50. package/dist/index119.cjs +0 -1
  51. package/dist/index119.js +0 -23
  52. package/dist/index12.cjs +0 -1
  53. package/dist/index12.js +0 -22
  54. package/dist/index120.cjs +0 -1
  55. package/dist/index120.js +0 -228
  56. package/dist/index121.cjs +0 -1
  57. package/dist/index121.js +0 -6
  58. package/dist/index122.cjs +0 -1
  59. package/dist/index122.js +0 -160
  60. package/dist/index123.cjs +0 -1
  61. package/dist/index123.js +0 -4
  62. package/dist/index124.cjs +0 -1
  63. package/dist/index124.js +0 -75
  64. package/dist/index125.cjs +0 -1
  65. package/dist/index125.js +0 -107
  66. package/dist/index126.cjs +0 -1
  67. package/dist/index126.js +0 -15
  68. package/dist/index127.cjs +0 -1
  69. package/dist/index127.js +0 -35
  70. package/dist/index128.cjs +0 -1
  71. package/dist/index128.js +0 -4
  72. package/dist/index129.cjs +0 -1
  73. package/dist/index129.js +0 -32
  74. package/dist/index13.cjs +0 -1
  75. package/dist/index13.js +0 -396
  76. package/dist/index130.cjs +0 -1
  77. package/dist/index130.js +0 -21
  78. package/dist/index131.cjs +0 -1
  79. package/dist/index131.js +0 -4
  80. package/dist/index132.cjs +0 -1
  81. package/dist/index132.js +0 -358
  82. package/dist/index133.cjs +0 -1
  83. package/dist/index133.js +0 -241
  84. package/dist/index134.cjs +0 -1
  85. package/dist/index134.js +0 -70
  86. package/dist/index135.cjs +0 -1
  87. package/dist/index135.js +0 -64
  88. package/dist/index136.cjs +0 -1
  89. package/dist/index136.js +0 -14
  90. package/dist/index137.cjs +0 -1
  91. package/dist/index137.js +0 -47
  92. package/dist/index138.cjs +0 -1
  93. package/dist/index138.js +0 -65
  94. package/dist/index139.cjs +0 -1
  95. package/dist/index139.js +0 -228
  96. package/dist/index14.cjs +0 -1
  97. package/dist/index14.js +0 -23
  98. package/dist/index140.cjs +0 -1
  99. package/dist/index140.js +0 -5
  100. package/dist/index141.cjs +0 -1
  101. package/dist/index141.js +0 -171
  102. package/dist/index142.cjs +0 -1
  103. package/dist/index142.js +0 -30
  104. package/dist/index143.cjs +0 -1
  105. package/dist/index143.js +0 -23
  106. package/dist/index144.cjs +0 -1
  107. package/dist/index144.js +0 -72
  108. package/dist/index145.cjs +0 -1
  109. package/dist/index145.js +0 -130
  110. package/dist/index146.cjs +0 -1
  111. package/dist/index146.js +0 -9
  112. package/dist/index147.cjs +0 -1
  113. package/dist/index147.js +0 -4
  114. package/dist/index148.cjs +0 -1
  115. package/dist/index148.js +0 -28
  116. package/dist/index149.cjs +0 -1
  117. package/dist/index149.js +0 -4
  118. package/dist/index15.cjs +0 -1
  119. package/dist/index15.js +0 -4
  120. package/dist/index16.cjs +0 -1
  121. package/dist/index16.js +0 -34
  122. package/dist/index17.cjs +0 -1
  123. package/dist/index17.js +0 -27
  124. package/dist/index18.cjs +0 -1
  125. package/dist/index18.js +0 -33
  126. package/dist/index19.cjs +0 -1
  127. package/dist/index19.js +0 -32
  128. package/dist/index2.cjs +0 -1
  129. package/dist/index2.js +0 -412
  130. package/dist/index20.cjs +0 -1
  131. package/dist/index20.js +0 -55
  132. package/dist/index21.cjs +0 -1
  133. package/dist/index21.js +0 -11
  134. package/dist/index22.cjs +0 -1
  135. package/dist/index22.js +0 -11
  136. package/dist/index23.cjs +0 -1
  137. package/dist/index23.js +0 -140
  138. package/dist/index24.cjs +0 -1
  139. package/dist/index24.js +0 -4
  140. package/dist/index25.cjs +0 -1
  141. package/dist/index25.js +0 -15
  142. package/dist/index26.cjs +0 -1
  143. package/dist/index26.js +0 -39
  144. package/dist/index27.cjs +0 -1
  145. package/dist/index27.js +0 -44
  146. package/dist/index28.cjs +0 -1
  147. package/dist/index28.js +0 -30
  148. package/dist/index29.cjs +0 -1
  149. package/dist/index29.js +0 -17
  150. package/dist/index3.cjs +0 -1
  151. package/dist/index3.js +0 -5
  152. package/dist/index30.cjs +0 -1
  153. package/dist/index30.js +0 -26
  154. package/dist/index31.cjs +0 -1
  155. package/dist/index31.js +0 -28
  156. package/dist/index32.cjs +0 -1
  157. package/dist/index32.js +0 -57
  158. package/dist/index33.cjs +0 -1
  159. package/dist/index33.js +0 -30
  160. package/dist/index34.cjs +0 -3
  161. package/dist/index34.js +0 -30
  162. package/dist/index35.cjs +0 -1
  163. package/dist/index35.js +0 -17
  164. package/dist/index36.cjs +0 -2
  165. package/dist/index36.js +0 -27
  166. package/dist/index37.cjs +0 -1
  167. package/dist/index37.js +0 -43
  168. package/dist/index38.cjs +0 -1
  169. package/dist/index38.js +0 -201
  170. package/dist/index39.cjs +0 -1
  171. package/dist/index39.js +0 -4
  172. package/dist/index4.cjs +0 -1
  173. package/dist/index4.js +0 -18
  174. package/dist/index40.cjs +0 -1
  175. package/dist/index40.js +0 -4
  176. package/dist/index41.cjs +0 -1
  177. package/dist/index41.js +0 -4
  178. package/dist/index42.cjs +0 -1
  179. package/dist/index42.js +0 -15
  180. package/dist/index43.cjs +0 -1
  181. package/dist/index43.js +0 -14
  182. package/dist/index44.cjs +0 -1
  183. package/dist/index44.js +0 -6
  184. package/dist/index45.cjs +0 -1
  185. package/dist/index45.js +0 -48
  186. package/dist/index46.cjs +0 -1
  187. package/dist/index46.js +0 -45
  188. package/dist/index47.cjs +0 -1
  189. package/dist/index47.js +0 -174
  190. package/dist/index48.cjs +0 -1
  191. package/dist/index48.js +0 -15
  192. package/dist/index49.cjs +0 -1
  193. package/dist/index49.js +0 -7
  194. package/dist/index5.cjs +0 -1
  195. package/dist/index5.js +0 -110
  196. package/dist/index50.cjs +0 -1
  197. package/dist/index50.js +0 -19
  198. package/dist/index51.cjs +0 -1
  199. package/dist/index51.js +0 -14
  200. package/dist/index52.cjs +0 -1
  201. package/dist/index52.js +0 -177
  202. package/dist/index53.cjs +0 -1
  203. package/dist/index53.js +0 -24
  204. package/dist/index54.cjs +0 -1
  205. package/dist/index54.js +0 -4
  206. package/dist/index55.cjs +0 -1
  207. package/dist/index55.js +0 -37
  208. package/dist/index56.cjs +0 -1
  209. package/dist/index56.js +0 -11
  210. package/dist/index57.cjs +0 -1
  211. package/dist/index57.js +0 -37
  212. package/dist/index58.cjs +0 -1
  213. package/dist/index58.js +0 -58
  214. package/dist/index59.cjs +0 -2
  215. package/dist/index59.js +0 -62
  216. package/dist/index6.cjs +0 -1
  217. package/dist/index6.js +0 -5
  218. package/dist/index60.cjs +0 -1
  219. package/dist/index60.js +0 -6
  220. package/dist/index61.cjs +0 -1
  221. package/dist/index61.js +0 -130
  222. package/dist/index62.cjs +0 -2
  223. package/dist/index62.js +0 -45
  224. package/dist/index63.cjs +0 -1
  225. package/dist/index63.js +0 -11
  226. package/dist/index64.cjs +0 -1
  227. package/dist/index64.js +0 -13
  228. package/dist/index65.cjs +0 -1
  229. package/dist/index65.js +0 -14
  230. package/dist/index66.cjs +0 -1
  231. package/dist/index66.js +0 -16
  232. package/dist/index67.cjs +0 -1
  233. package/dist/index67.js +0 -9
  234. package/dist/index68.cjs +0 -1
  235. package/dist/index68.js +0 -20
  236. package/dist/index69.cjs +0 -1
  237. package/dist/index69.js +0 -81
  238. package/dist/index7.cjs +0 -1
  239. package/dist/index7.js +0 -76
  240. package/dist/index70.cjs +0 -1
  241. package/dist/index70.js +0 -17
  242. package/dist/index71.cjs +0 -1
  243. package/dist/index71.js +0 -21
  244. package/dist/index72.cjs +0 -1
  245. package/dist/index72.js +0 -9
  246. package/dist/index73.cjs +0 -1
  247. package/dist/index73.js +0 -24
  248. package/dist/index74.cjs +0 -1
  249. package/dist/index74.js +0 -16
  250. package/dist/index75.cjs +0 -1
  251. package/dist/index75.js +0 -4
  252. package/dist/index76.cjs +0 -1
  253. package/dist/index76.js +0 -4
  254. package/dist/index77.cjs +0 -2
  255. package/dist/index77.js +0 -37
  256. package/dist/index78.cjs +0 -1
  257. package/dist/index78.js +0 -8
  258. package/dist/index79.cjs +0 -1
  259. package/dist/index79.js +0 -22
  260. package/dist/index8.cjs +0 -1
  261. package/dist/index8.js +0 -62
  262. package/dist/index80.cjs +0 -1
  263. package/dist/index80.js +0 -34
  264. package/dist/index81.cjs +0 -1
  265. package/dist/index81.js +0 -4
  266. package/dist/index82.cjs +0 -6
  267. package/dist/index82.js +0 -949
  268. package/dist/index83.cjs +0 -1
  269. package/dist/index83.js +0 -4
  270. package/dist/index84.cjs +0 -1
  271. package/dist/index84.js +0 -64
  272. package/dist/index85.cjs +0 -1
  273. package/dist/index85.js +0 -35
  274. package/dist/index86.cjs +0 -1
  275. package/dist/index86.js +0 -89
  276. package/dist/index87.cjs +0 -1
  277. package/dist/index87.js +0 -15
  278. package/dist/index88.cjs +0 -1
  279. package/dist/index88.js +0 -9
  280. package/dist/index89.cjs +0 -1
  281. package/dist/index89.js +0 -115
  282. package/dist/index9.cjs +0 -1
  283. package/dist/index9.js +0 -63
  284. package/dist/index90.cjs +0 -1
  285. package/dist/index90.js +0 -9
  286. package/dist/index91.cjs +0 -1
  287. package/dist/index91.js +0 -35
  288. package/dist/index92.cjs +0 -1
  289. package/dist/index92.js +0 -4
  290. package/dist/index93.cjs +0 -1
  291. package/dist/index93.js +0 -40
  292. package/dist/index94.cjs +0 -1
  293. package/dist/index94.js +0 -31
  294. package/dist/index95.cjs +0 -1
  295. package/dist/index95.js +0 -23
  296. package/dist/index96.cjs +0 -1
  297. package/dist/index96.js +0 -9
  298. package/dist/index97.cjs +0 -1
  299. package/dist/index97.js +0 -7
  300. package/dist/index98.cjs +0 -1
  301. package/dist/index98.js +0 -13
  302. package/dist/index99.cjs +0 -1
  303. package/dist/index99.js +0 -22
package/dist/index122.js DELETED
@@ -1,160 +0,0 @@
1
- import { __exports as o } from "./index123.js";
2
- import { s as c } from "./index55.js";
3
- var l = c.Buffer, h = l.isEncoding || function(t) {
4
- switch (t = "" + t, t && t.toLowerCase()) {
5
- case "hex":
6
- case "utf8":
7
- case "utf-8":
8
- case "ascii":
9
- case "binary":
10
- case "base64":
11
- case "ucs2":
12
- case "ucs-2":
13
- case "utf16le":
14
- case "utf-16le":
15
- case "raw":
16
- return !0;
17
- default:
18
- return !1;
19
- }
20
- };
21
- function d(t) {
22
- if (!t) return "utf8";
23
- for (var e; ; )
24
- switch (t) {
25
- case "utf8":
26
- case "utf-8":
27
- return "utf8";
28
- case "ucs2":
29
- case "ucs-2":
30
- case "utf16le":
31
- case "utf-16le":
32
- return "utf16le";
33
- case "latin1":
34
- case "binary":
35
- return "latin1";
36
- case "base64":
37
- case "ascii":
38
- case "hex":
39
- return t;
40
- default:
41
- if (e) return;
42
- t = ("" + t).toLowerCase(), e = !0;
43
- }
44
- }
45
- function u(t) {
46
- var e = d(t);
47
- if (typeof e != "string" && (l.isEncoding === h || !h(t))) throw new Error("Unknown encoding: " + t);
48
- return e || t;
49
- }
50
- o.StringDecoder = a;
51
- function a(t) {
52
- this.encoding = u(t);
53
- var e;
54
- switch (this.encoding) {
55
- case "utf16le":
56
- this.text = p, this.end = v, e = 4;
57
- break;
58
- case "utf8":
59
- this.fillLast = N, e = 4;
60
- break;
61
- case "base64":
62
- this.text = w, this.end = E, e = 3;
63
- break;
64
- default:
65
- this.write = T, this.end = S;
66
- return;
67
- }
68
- this.lastNeed = 0, this.lastTotal = 0, this.lastChar = l.allocUnsafe(e);
69
- }
70
- a.prototype.write = function(t) {
71
- if (t.length === 0) return "";
72
- var e, s;
73
- if (this.lastNeed) {
74
- if (e = this.fillLast(t), e === void 0) return "";
75
- s = this.lastNeed, this.lastNeed = 0;
76
- } else
77
- s = 0;
78
- return s < t.length ? e ? e + this.text(t, s) : this.text(t, s) : e || "";
79
- };
80
- a.prototype.end = C;
81
- a.prototype.text = x;
82
- a.prototype.fillLast = function(t) {
83
- if (this.lastNeed <= t.length)
84
- return t.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
85
- t.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, t.length), this.lastNeed -= t.length;
86
- };
87
- function n(t) {
88
- return t <= 127 ? 0 : t >> 5 === 6 ? 2 : t >> 4 === 14 ? 3 : t >> 3 === 30 ? 4 : t >> 6 === 2 ? -1 : -2;
89
- }
90
- function f(t, e, s) {
91
- var i = e.length - 1;
92
- if (i < s) return 0;
93
- var r = n(e[i]);
94
- return r >= 0 ? (r > 0 && (t.lastNeed = r - 1), r) : --i < s || r === -2 ? 0 : (r = n(e[i]), r >= 0 ? (r > 0 && (t.lastNeed = r - 2), r) : --i < s || r === -2 ? 0 : (r = n(e[i]), r >= 0 ? (r > 0 && (r === 2 ? r = 0 : t.lastNeed = r - 3), r) : 0));
95
- }
96
- function g(t, e, s) {
97
- if ((e[0] & 192) !== 128)
98
- return t.lastNeed = 0, "�";
99
- if (t.lastNeed > 1 && e.length > 1) {
100
- if ((e[1] & 192) !== 128)
101
- return t.lastNeed = 1, "�";
102
- if (t.lastNeed > 2 && e.length > 2 && (e[2] & 192) !== 128)
103
- return t.lastNeed = 2, "�";
104
- }
105
- }
106
- function N(t) {
107
- var e = this.lastTotal - this.lastNeed, s = g(this, t);
108
- if (s !== void 0) return s;
109
- if (this.lastNeed <= t.length)
110
- return t.copy(this.lastChar, e, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
111
- t.copy(this.lastChar, e, 0, t.length), this.lastNeed -= t.length;
112
- }
113
- function x(t, e) {
114
- var s = f(this, t, e);
115
- if (!this.lastNeed) return t.toString("utf8", e);
116
- this.lastTotal = s;
117
- var i = t.length - (s - this.lastNeed);
118
- return t.copy(this.lastChar, 0, i), t.toString("utf8", e, i);
119
- }
120
- function C(t) {
121
- var e = t && t.length ? this.write(t) : "";
122
- return this.lastNeed ? e + "�" : e;
123
- }
124
- function p(t, e) {
125
- if ((t.length - e) % 2 === 0) {
126
- var s = t.toString("utf16le", e);
127
- if (s) {
128
- var i = s.charCodeAt(s.length - 1);
129
- if (i >= 55296 && i <= 56319)
130
- return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = t[t.length - 2], this.lastChar[1] = t[t.length - 1], s.slice(0, -1);
131
- }
132
- return s;
133
- }
134
- return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = t[t.length - 1], t.toString("utf16le", e, t.length - 1);
135
- }
136
- function v(t) {
137
- var e = t && t.length ? this.write(t) : "";
138
- if (this.lastNeed) {
139
- var s = this.lastTotal - this.lastNeed;
140
- return e + this.lastChar.toString("utf16le", 0, s);
141
- }
142
- return e;
143
- }
144
- function w(t, e) {
145
- var s = (t.length - e) % 3;
146
- return s === 0 ? t.toString("base64", e) : (this.lastNeed = 3 - s, this.lastTotal = 3, s === 1 ? this.lastChar[0] = t[t.length - 1] : (this.lastChar[0] = t[t.length - 2], this.lastChar[1] = t[t.length - 1]), t.toString("base64", e, t.length - s));
147
- }
148
- function E(t) {
149
- var e = t && t.length ? this.write(t) : "";
150
- return this.lastNeed ? e + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : e;
151
- }
152
- function T(t) {
153
- return t.toString(this.encoding);
154
- }
155
- function S(t) {
156
- return t && t.length ? this.write(t) : "";
157
- }
158
- export {
159
- o as default
160
- };
package/dist/index123.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
package/dist/index123.js DELETED
@@ -1,4 +0,0 @@
1
- var r = {};
2
- export {
3
- r as __exports
4
- };
package/dist/index124.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index55.cjs");var b=C.safeBufferExports.Buffer;function m(w){if(w.length>=255)throw new TypeError("Alphabet too long");for(var d=new Uint8Array(256),u=0;u<d.length;u++)d[u]=255;for(var p=0;p<w.length;p++){var E=w.charAt(p),A=E.charCodeAt(0);if(d[A]!==255)throw new TypeError(E+" is ambiguous");d[A]=p}var g=w.length,z=w.charAt(0),M=Math.log(g)/Math.log(256),c=Math.log(256)/Math.log(g);function S(r){if((Array.isArray(r)||r instanceof Uint8Array)&&(r=b.from(r)),!b.isBuffer(r))throw new TypeError("Expected Buffer");if(r.length===0)return"";for(var e=0,l=0,t=0,o=r.length;t!==o&&r[t]===0;)t++,e++;for(var f=(o-t)*c+1>>>0,n=new Uint8Array(f);t!==o;){for(var h=r[t],i=0,a=f-1;(h!==0||i<l)&&a!==-1;a--,i++)h+=256*n[a]>>>0,n[a]=h%g>>>0,h=h/g>>>0;if(h!==0)throw new Error("Non-zero carry");l=i,t++}for(var v=f-l;v!==f&&n[v]===0;)v++;for(var s=z.repeat(e);v<f;++v)s+=w.charAt(n[v]);return s}function U(r){if(typeof r!="string")throw new TypeError("Expected String");if(r.length===0)return b.alloc(0);for(var e=0,l=0,t=0;r[e]===z;)l++,e++;for(var o=(r.length-e)*M+1>>>0,f=new Uint8Array(o);e<r.length;){var n=d[r.charCodeAt(e)];if(n===255)return;for(var h=0,i=o-1;(n!==0||h<t)&&i!==-1;i--,h++)n+=g*f[i]>>>0,f[i]=n%256>>>0,n=n/256>>>0;if(n!==0)throw new Error("Non-zero carry");t=h,e++}for(var a=o-t;a!==o&&f[a]===0;)a++;var v=b.allocUnsafe(l+(o-a));v.fill(0,0,l);for(var s=l;a!==o;)v[s++]=f[a++];return v}function y(r){var e=U(r);if(e)return e;throw new Error("Non-base"+g+" character")}return{encode:S,decodeUnsafe:U,decode:y}}var x=m;exports.src=x;
package/dist/index124.js DELETED
@@ -1,75 +0,0 @@
1
- import { s as N } from "./index55.js";
2
- var E = N.Buffer;
3
- function R(w) {
4
- if (w.length >= 255)
5
- throw new TypeError("Alphabet too long");
6
- for (var d = new Uint8Array(256), b = 0; b < d.length; b++)
7
- d[b] = 255;
8
- for (var p = 0; p < w.length; p++) {
9
- var A = w.charAt(p), z = A.charCodeAt(0);
10
- if (d[z] !== 255)
11
- throw new TypeError(A + " is ambiguous");
12
- d[z] = p;
13
- }
14
- var g = w.length, U = w.charAt(0), M = Math.log(g) / Math.log(256), m = Math.log(256) / Math.log(g);
15
- function C(r) {
16
- if ((Array.isArray(r) || r instanceof Uint8Array) && (r = E.from(r)), !E.isBuffer(r))
17
- throw new TypeError("Expected Buffer");
18
- if (r.length === 0)
19
- return "";
20
- for (var e = 0, l = 0, n = 0, o = r.length; n !== o && r[n] === 0; )
21
- n++, e++;
22
- for (var f = (o - n) * m + 1 >>> 0, a = new Uint8Array(f); n !== o; ) {
23
- for (var h = r[n], i = 0, t = f - 1; (h !== 0 || i < l) && t !== -1; t--, i++)
24
- h += 256 * a[t] >>> 0, a[t] = h % g >>> 0, h = h / g >>> 0;
25
- if (h !== 0)
26
- throw new Error("Non-zero carry");
27
- l = i, n++;
28
- }
29
- for (var v = f - l; v !== f && a[v] === 0; )
30
- v++;
31
- for (var s = U.repeat(e); v < f; ++v)
32
- s += w.charAt(a[v]);
33
- return s;
34
- }
35
- function u(r) {
36
- if (typeof r != "string")
37
- throw new TypeError("Expected String");
38
- if (r.length === 0)
39
- return E.alloc(0);
40
- for (var e = 0, l = 0, n = 0; r[e] === U; )
41
- l++, e++;
42
- for (var o = (r.length - e) * M + 1 >>> 0, f = new Uint8Array(o); e < r.length; ) {
43
- var a = d[r.charCodeAt(e)];
44
- if (a === 255)
45
- return;
46
- for (var h = 0, i = o - 1; (a !== 0 || h < n) && i !== -1; i--, h++)
47
- a += g * f[i] >>> 0, f[i] = a % 256 >>> 0, a = a / 256 >>> 0;
48
- if (a !== 0)
49
- throw new Error("Non-zero carry");
50
- n = h, e++;
51
- }
52
- for (var t = o - n; t !== o && f[t] === 0; )
53
- t++;
54
- var v = E.allocUnsafe(l + (o - t));
55
- v.fill(0, 0, l);
56
- for (var s = l; t !== o; )
57
- v[s++] = f[t++];
58
- return v;
59
- }
60
- function x(r) {
61
- var e = u(r);
62
- if (e)
63
- return e;
64
- throw new Error("Non-base" + g + " character");
65
- }
66
- return {
67
- encode: C,
68
- decodeUnsafe: u,
69
- decode: x
70
- };
71
- }
72
- var y = R;
73
- export {
74
- y as s
75
- };
package/dist/index125.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index129.cjs"),a=require("./index130.cjs"),c=require("./index110.cjs"),I=[],O=[],w=[],B=BigInt(0),f=BigInt(1),A=BigInt(2),S=BigInt(7),H=BigInt(256),T=BigInt(113);for(let i=0,t=f,s=1,n=0;i<24;i++){[s,n]=[n,(2*s+3*n)%5],I.push(2*(5*n+s)),O.push((i+1)*(i+2)/2%64);let o=B;for(let r=0;r<7;r++)t=(t<<f^(t>>S)*T)%H,t&A&&(o^=f<<(f<<BigInt(r))-f);w.push(o)}const[m,E]=a.split(w,!0),y=(i,t,s)=>s>32?a.rotlBH(i,t,s):a.rotlSH(i,t,s),b=(i,t,s)=>s>32?a.rotlBL(i,t,s):a.rotlSL(i,t,s);function L(i,t=24){const s=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let e=0;e<10;e++)s[e]=i[e]^i[e+10]^i[e+20]^i[e+30]^i[e+40];for(let e=0;e<10;e+=2){const h=(e+8)%10,p=(e+2)%10,d=s[p],u=s[p+1],_=y(d,u,1)^s[h],g=b(d,u,1)^s[h+1];for(let k=0;k<50;k+=10)i[e+k]^=_,i[e+k+1]^=g}let o=i[2],r=i[3];for(let e=0;e<24;e++){const h=O[e],p=y(o,r,h),d=b(o,r,h),u=I[e];o=i[u],r=i[u+1],i[u]=p,i[u+1]=d}for(let e=0;e<50;e+=10){for(let h=0;h<10;h++)s[h]=i[e+h];for(let h=0;h<10;h++)i[e+h]^=~s[(h+2)%10]&s[(h+4)%10]}i[0]^=m[n],i[1]^=E[n]}s.fill(0)}class x extends c.Hash{constructor(t,s,n,o=!1,r=24){if(super(),this.blockLen=t,this.suffix=s,this.outputLen=n,this.enableXOF=o,this.rounds=r,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,l.number(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=c.u32(this.state)}keccak(){c.isLE||c.byteSwap32(this.state32),L(this.state32,this.rounds),c.isLE||c.byteSwap32(this.state32),this.posOut=0,this.pos=0}update(t){l.exists(this);const{blockLen:s,state:n}=this;t=c.toBytes(t);const o=t.length;for(let r=0;r<o;){const e=Math.min(s-this.pos,o-r);for(let h=0;h<e;h++)n[this.pos++]^=t[r++];this.pos===s&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:s,pos:n,blockLen:o}=this;t[n]^=s,s&128&&n===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){l.exists(this,!1),l.bytes(t),this.finish();const s=this.state,{blockLen:n}=this;for(let o=0,r=t.length;o<r;){this.posOut>=n&&this.keccak();const e=Math.min(n-this.posOut,r-o);t.set(s.subarray(this.posOut,this.posOut+e),o),this.posOut+=e,o+=e}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return l.number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(l.output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:s,suffix:n,outputLen:o,rounds:r,enableXOF:e}=this;return t||(t=new x(s,n,o,e,r)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=r,t.suffix=n,t.outputLen=o,t.enableXOF=e,t.destroyed=this.destroyed,t}}const F=(i,t,s)=>c.wrapConstructor(()=>new x(t,i,s)),P=F(1,136,256/8);exports.Keccak=x;exports.keccakP=L;exports.keccak_256=P;
package/dist/index125.js DELETED
@@ -1,107 +0,0 @@
1
- import { number as d, exists as k, bytes as B, output as A } from "./index129.js";
2
- import { split as H, rotlBH as m, rotlSH as S, rotlBL as T, rotlSL as F } from "./index130.js";
3
- import { wrapConstructor as X, Hash as E, u32 as U, isLE as x, byteSwap32 as I, toBytes as P } from "./index110.js";
4
- const y = [], L = [], b = [], M = /* @__PURE__ */ BigInt(0), f = /* @__PURE__ */ BigInt(1), R = /* @__PURE__ */ BigInt(2), j = /* @__PURE__ */ BigInt(7), C = /* @__PURE__ */ BigInt(256), q = /* @__PURE__ */ BigInt(113);
5
- for (let e = 0, t = f, s = 1, n = 0; e < 24; e++) {
6
- [s, n] = [n, (2 * s + 3 * n) % 5], y.push(2 * (5 * n + s)), L.push((e + 1) * (e + 2) / 2 % 64);
7
- let o = M;
8
- for (let r = 0; r < 7; r++)
9
- t = (t << f ^ (t >> j) * q) % C, t & R && (o ^= f << (f << /* @__PURE__ */ BigInt(r)) - f);
10
- b.push(o);
11
- }
12
- const [v, z] = /* @__PURE__ */ H(b, !0), O = (e, t, s) => s > 32 ? m(e, t, s) : S(e, t, s), w = (e, t, s) => s > 32 ? T(e, t, s) : F(e, t, s);
13
- function D(e, t = 24) {
14
- const s = new Uint32Array(10);
15
- for (let n = 24 - t; n < 24; n++) {
16
- for (let i = 0; i < 10; i++)
17
- s[i] = e[i] ^ e[i + 10] ^ e[i + 20] ^ e[i + 30] ^ e[i + 40];
18
- for (let i = 0; i < 10; i += 2) {
19
- const h = (i + 8) % 10, l = (i + 2) % 10, u = s[l], c = s[l + 1], _ = O(u, c, 1) ^ s[h], g = w(u, c, 1) ^ s[h + 1];
20
- for (let a = 0; a < 50; a += 10)
21
- e[i + a] ^= _, e[i + a + 1] ^= g;
22
- }
23
- let o = e[2], r = e[3];
24
- for (let i = 0; i < 24; i++) {
25
- const h = L[i], l = O(o, r, h), u = w(o, r, h), c = y[i];
26
- o = e[c], r = e[c + 1], e[c] = l, e[c + 1] = u;
27
- }
28
- for (let i = 0; i < 50; i += 10) {
29
- for (let h = 0; h < 10; h++)
30
- s[h] = e[i + h];
31
- for (let h = 0; h < 10; h++)
32
- e[i + h] ^= ~s[(h + 2) % 10] & s[(h + 4) % 10];
33
- }
34
- e[0] ^= v[n], e[1] ^= z[n];
35
- }
36
- s.fill(0);
37
- }
38
- class p extends E {
39
- // NOTE: we accept arguments in bytes instead of bits here.
40
- constructor(t, s, n, o = !1, r = 24) {
41
- if (super(), this.blockLen = t, this.suffix = s, this.outputLen = n, this.enableXOF = o, this.rounds = r, this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, d(n), 0 >= this.blockLen || this.blockLen >= 200)
42
- throw new Error("Sha3 supports only keccak-f1600 function");
43
- this.state = new Uint8Array(200), this.state32 = U(this.state);
44
- }
45
- keccak() {
46
- x || I(this.state32), D(this.state32, this.rounds), x || I(this.state32), this.posOut = 0, this.pos = 0;
47
- }
48
- update(t) {
49
- k(this);
50
- const { blockLen: s, state: n } = this;
51
- t = P(t);
52
- const o = t.length;
53
- for (let r = 0; r < o; ) {
54
- const i = Math.min(s - this.pos, o - r);
55
- for (let h = 0; h < i; h++)
56
- n[this.pos++] ^= t[r++];
57
- this.pos === s && this.keccak();
58
- }
59
- return this;
60
- }
61
- finish() {
62
- if (this.finished)
63
- return;
64
- this.finished = !0;
65
- const { state: t, suffix: s, pos: n, blockLen: o } = this;
66
- t[n] ^= s, s & 128 && n === o - 1 && this.keccak(), t[o - 1] ^= 128, this.keccak();
67
- }
68
- writeInto(t) {
69
- k(this, !1), B(t), this.finish();
70
- const s = this.state, { blockLen: n } = this;
71
- for (let o = 0, r = t.length; o < r; ) {
72
- this.posOut >= n && this.keccak();
73
- const i = Math.min(n - this.posOut, r - o);
74
- t.set(s.subarray(this.posOut, this.posOut + i), o), this.posOut += i, o += i;
75
- }
76
- return t;
77
- }
78
- xofInto(t) {
79
- if (!this.enableXOF)
80
- throw new Error("XOF is not possible for this instance");
81
- return this.writeInto(t);
82
- }
83
- xof(t) {
84
- return d(t), this.xofInto(new Uint8Array(t));
85
- }
86
- digestInto(t) {
87
- if (A(t, this), this.finished)
88
- throw new Error("digest() was already called");
89
- return this.writeInto(t), this.destroy(), t;
90
- }
91
- digest() {
92
- return this.digestInto(new Uint8Array(this.outputLen));
93
- }
94
- destroy() {
95
- this.destroyed = !0, this.state.fill(0);
96
- }
97
- _cloneInto(t) {
98
- const { blockLen: s, suffix: n, outputLen: o, rounds: r, enableXOF: i } = this;
99
- return t || (t = new p(s, n, o, i, r)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = r, t.suffix = n, t.outputLen = o, t.enableXOF = i, t.destroyed = this.destroyed, t;
100
- }
101
- }
102
- const G = (e, t, s) => X(() => new p(t, e, s)), Q = /* @__PURE__ */ G(1, 136, 256 / 8);
103
- export {
104
- p as Keccak,
105
- D as keccakP,
106
- Q as keccak_256
107
- };
package/dist/index126.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index131.cjs"),_=require("./index132.cjs"),t=require("./index133.cjs"),i=require("./index134.cjs"),s=require("./index135.cjs"),u=require("./index136.cjs"),n=require("./index137.cjs"),o=require("./index138.cjs");(function(a,e){e=a.exports=_.__require(),e.Stream=e,e.Readable=e,e.Writable=t.__require(),e.Duplex=i.__require(),e.Transform=s._stream_transform,e.PassThrough=u._stream_passthrough,e.finished=n.endOfStream,e.pipeline=o.pipeline_1})(r.__module,r.__module.exports);var l=r.__module.exports;exports.readableBrowserExports=l;
package/dist/index126.js DELETED
@@ -1,15 +0,0 @@
1
- import { __module as e } from "./index131.js";
2
- import { __require as m } from "./index132.js";
3
- import { __require as i } from "./index133.js";
4
- import { __require as _ } from "./index134.js";
5
- import { _ as o } from "./index135.js";
6
- import { _ as s } from "./index136.js";
7
- import { e as t } from "./index137.js";
8
- import { p as f } from "./index138.js";
9
- (function(a, r) {
10
- r = a.exports = m(), r.Stream = r, r.Readable = r, r.Writable = i(), r.Duplex = _(), r.Transform = o, r.PassThrough = s, r.finished = t, r.pipeline = f;
11
- })(e, e.exports);
12
- var w = e.exports;
13
- export {
14
- w as r
15
- };
package/dist/index127.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index55.cjs");var n=a.safeBufferExports.Buffer;function f(t,i){this._block=n.alloc(t),this._finalSize=i,this._blockSize=t,this._len=0}f.prototype.update=function(t,i){typeof t=="string"&&(i=i||"utf8",t=n.from(t,i));for(var e=this._block,h=this._blockSize,s=t.length,r=this._len,l=0;l<s;){for(var c=r%h,_=Math.min(s-l,h-c),o=0;o<_;o++)e[c+o]=t[l+o];r+=_,l+=_,r%h===0&&this._update(e)}return this._len+=s,this};f.prototype.digest=function(t){var i=this._len%this._blockSize;this._block[i]=128,this._block.fill(0,i+1),i>=this._finalSize&&(this._update(this._block),this._block.fill(0));var e=this._len*8;if(e<=4294967295)this._block.writeUInt32BE(e,this._blockSize-4);else{var h=(e&4294967295)>>>0,s=(e-h)/4294967296;this._block.writeUInt32BE(s,this._blockSize-8),this._block.writeUInt32BE(h,this._blockSize-4)}this._update(this._block);var r=this._hash();return t?r.toString(t):r};f.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var b=f;exports.hash=b;
package/dist/index127.js DELETED
@@ -1,35 +0,0 @@
1
- import { s as b } from "./index55.js";
2
- var c = b.Buffer;
3
- function e(t, i) {
4
- this._block = c.alloc(t), this._finalSize = i, this._blockSize = t, this._len = 0;
5
- }
6
- e.prototype.update = function(t, i) {
7
- typeof t == "string" && (i = i || "utf8", t = c.from(t, i));
8
- for (var h = this._block, s = this._blockSize, f = t.length, r = this._len, o = 0; o < f; ) {
9
- for (var a = r % s, _ = Math.min(f - o, s - a), l = 0; l < _; l++)
10
- h[a + l] = t[o + l];
11
- r += _, o += _, r % s === 0 && this._update(h);
12
- }
13
- return this._len += f, this;
14
- };
15
- e.prototype.digest = function(t) {
16
- var i = this._len % this._blockSize;
17
- this._block[i] = 128, this._block.fill(0, i + 1), i >= this._finalSize && (this._update(this._block), this._block.fill(0));
18
- var h = this._len * 8;
19
- if (h <= 4294967295)
20
- this._block.writeUInt32BE(h, this._blockSize - 4);
21
- else {
22
- var s = (h & 4294967295) >>> 0, f = (h - s) / 4294967296;
23
- this._block.writeUInt32BE(f, this._blockSize - 8), this._block.writeUInt32BE(s, this._blockSize - 4);
24
- }
25
- this._update(this._block);
26
- var r = this._hash();
27
- return t ? r.toString(t) : r;
28
- };
29
- e.prototype._update = function() {
30
- throw new Error("_update must be implemented by subclass");
31
- };
32
- var u = e;
33
- export {
34
- u as h
35
- };
package/dist/index128.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";const t={};module.exports=t;
package/dist/index128.js DELETED
@@ -1,4 +0,0 @@
1
- const e = {};
2
- export {
3
- e as default
4
- };
package/dist/index129.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function n(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function o(e,...t){if(!n(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function s(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function u(e,t){o(e);const r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}exports.bytes=o;exports.exists=s;exports.isBytes=n;exports.number=i;exports.output=u;
package/dist/index129.js DELETED
@@ -1,32 +0,0 @@
1
- function i(e) {
2
- if (!Number.isSafeInteger(e) || e < 0)
3
- throw new Error(`positive integer expected, not ${e}`);
4
- }
5
- function n(e) {
6
- return e instanceof Uint8Array || e != null && typeof e == "object" && e.constructor.name === "Uint8Array";
7
- }
8
- function o(e, ...t) {
9
- if (!n(e))
10
- throw new Error("Uint8Array expected");
11
- if (t.length > 0 && !t.includes(e.length))
12
- throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`);
13
- }
14
- function f(e, t = !0) {
15
- if (e.destroyed)
16
- throw new Error("Hash instance has been destroyed");
17
- if (t && e.finished)
18
- throw new Error("Hash#digest() has already been called");
19
- }
20
- function s(e, t) {
21
- o(e);
22
- const r = t.outputLen;
23
- if (e.length < r)
24
- throw new Error(`digestInto() expects output buffer of length at least ${r}`);
25
- }
26
- export {
27
- o as bytes,
28
- f as exists,
29
- n as isBytes,
30
- i as number,
31
- s as output
32
- };
package/dist/index13.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=[{inputs:[{internalType:"address",name:"token_",type:"address"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"InvalidShortString",type:"error"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"StringTooLong",type:"error"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"orderID",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"secretHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Initiated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"orderID",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"secretHash",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"secret",type:"bytes"}],name:"Redeemed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"orderID",type:"bytes32"}],name:"Refunded",type:"event"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"redeemer",type:"address"},{internalType:"uint256",name:"timelock",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes32",name:"secretHash",type:"bytes32"}],name:"initiate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"redeemer",type:"address"},{internalType:"uint256",name:"timelock",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes32",name:"secretHash",type:"bytes32"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"initiateWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"orderID",type:"bytes32"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"instantRefund",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"redeemer",type:"address"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes32",name:"secretHash",type:"bytes32"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct HTLC.InitWithSig[]",name:"inits",type:"tuple[]"},{components:[{internalType:"bytes32",name:"orderID",type:"bytes32"},{internalType:"bytes",name:"secret",type:"bytes"}],internalType:"struct HTLC.Redeem[]",name:"redeems",type:"tuple[]"},{components:[{internalType:"bytes32",name:"orderID",type:"bytes32"}],internalType:"struct HTLC.Refund[]",name:"refunds",type:"tuple[]"}],name:"multicall",outputs:[{internalType:"bool[]",name:"results",type:"bool[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"orders",outputs:[{internalType:"bool",name:"isFulfilled",type:"bool"},{internalType:"address",name:"initiator",type:"address"},{internalType:"address",name:"redeemer",type:"address"},{internalType:"uint256",name:"initiatedAt",type:"uint256"},{internalType:"uint256",name:"timelock",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"orderID",type:"bytes32"},{internalType:"bytes",name:"secret",type:"bytes"}],name:"redeem",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"orderID",type:"bytes32"}],name:"refund",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"contract IERC20",name:"",type:"address"}],stateMutability:"view",type:"function"}];exports.AtomicSwapABI=e;