@hinkal/common 0.0.113 → 0.0.115

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 (270) hide show
  1. package/assets/{snarkjsWorkerLauncher-fuD5h_j0.js → snarkjsWorkerLauncher-CaBCnle3.js} +283 -257
  2. package/assets/snarkjsWorkerLogic-BAbiO5gj.js +17935 -0
  3. package/assets/snarkjsWorkerLogic-wHJfYCfg.js +15636 -0
  4. package/assets/{utxoWorkerLogic-CtFLQiAX.js → utxoWorkerLogic-BGFm-Zl2.js} +2 -2
  5. package/assets/{zkProofWorkerLauncher-J3Ts5_Ba.js → zkProofWorkerLauncher-BteYxRBn.js} +1 -1
  6. package/assets/{zkProofWorkerLogic-CPNuu61R.js → zkProofWorkerLogic-DiLbAhAo.js} +8354 -8298
  7. package/common.mjs +644 -0
  8. package/common10.mjs +30 -0
  9. package/common100.mjs +156 -0
  10. package/common101.mjs +568 -0
  11. package/common102.mjs +1603 -0
  12. package/common103.mjs +1764 -0
  13. package/common104.mjs +2030 -0
  14. package/common105.mjs +701 -0
  15. package/common106.mjs +480 -0
  16. package/common107.mjs +2082 -0
  17. package/common108.mjs +39 -0
  18. package/common109.mjs +24 -0
  19. package/common11.mjs +30 -0
  20. package/common110.mjs +41 -0
  21. package/common111.mjs +206 -0
  22. package/common112.mjs +48 -0
  23. package/common113.mjs +39 -0
  24. package/common114.mjs +70 -0
  25. package/common115.mjs +67 -0
  26. package/common116.mjs +5 -0
  27. package/common117.mjs +61 -0
  28. package/common118.mjs +20 -0
  29. package/common119.mjs +7 -0
  30. package/common12.mjs +58 -0
  31. package/common120.mjs +22 -0
  32. package/common121.mjs +16 -0
  33. package/common122.mjs +57 -0
  34. package/common123.mjs +45 -0
  35. package/common124.mjs +57 -0
  36. package/common125.mjs +229 -0
  37. package/common126.mjs +203 -0
  38. package/common127.mjs +29 -0
  39. package/common128.mjs +38 -0
  40. package/common129.mjs +15 -0
  41. package/common13.mjs +156 -0
  42. package/common130.mjs +105 -0
  43. package/common131.mjs +4 -0
  44. package/common132.mjs +14 -0
  45. package/common133.mjs +7 -0
  46. package/common134.mjs +6 -0
  47. package/common135.mjs +8 -0
  48. package/common136.mjs +40 -0
  49. package/common137.mjs +41 -0
  50. package/common138.mjs +72 -0
  51. package/common139.mjs +107 -0
  52. package/common14.mjs +32 -0
  53. package/common140.mjs +9 -0
  54. package/common141.mjs +10 -0
  55. package/common142.mjs +97 -0
  56. package/common143.mjs +65 -0
  57. package/common144.mjs +61 -0
  58. package/common145.mjs +95 -0
  59. package/common146.mjs +129 -0
  60. package/common147.mjs +105 -0
  61. package/common148.mjs +96 -0
  62. package/common149.mjs +18 -0
  63. package/common15.mjs +16 -0
  64. package/common150.mjs +45 -0
  65. package/common151.mjs +41 -0
  66. package/common152.mjs +108 -0
  67. package/common153.mjs +40 -0
  68. package/common154.mjs +19 -0
  69. package/common155.mjs +24 -0
  70. package/common156.mjs +21 -0
  71. package/common157.mjs +22 -0
  72. package/common158.mjs +4 -0
  73. package/common159.mjs +4 -0
  74. package/common16.mjs +6 -0
  75. package/common160.mjs +15 -0
  76. package/common161.mjs +13 -0
  77. package/common162.mjs +4 -0
  78. package/common163.mjs +15 -0
  79. package/common164.mjs +36 -0
  80. package/common165.mjs +58 -0
  81. package/common166.mjs +27 -0
  82. package/common167.mjs +15 -0
  83. package/common168.mjs +25 -0
  84. package/common169.mjs +4 -0
  85. package/common17.mjs +6877 -0
  86. package/common170.mjs +85 -0
  87. package/common171.mjs +2251 -0
  88. package/common172.mjs +856 -0
  89. package/common173.mjs +973 -0
  90. package/common174.mjs +1255 -0
  91. package/common175.mjs +591 -0
  92. package/common176.mjs +1392 -0
  93. package/common177.mjs +463 -0
  94. package/common178.mjs +137 -0
  95. package/common179.mjs +2700 -0
  96. package/common18.mjs +7415 -0
  97. package/common180.mjs +946 -0
  98. package/common181.mjs +973 -0
  99. package/common182.mjs +1327 -0
  100. package/common183.mjs +591 -0
  101. package/common184.mjs +1455 -0
  102. package/common185.mjs +490 -0
  103. package/common186.mjs +137 -0
  104. package/common187.mjs +2768 -0
  105. package/common188.mjs +8 -0
  106. package/common189.mjs +14 -0
  107. package/common19.mjs +11427 -0
  108. package/common190.mjs +115623 -0
  109. package/common191.mjs +42 -0
  110. package/common192.mjs +1022 -0
  111. package/common193.mjs +1423 -0
  112. package/common194.mjs +208 -0
  113. package/common195.mjs +340 -0
  114. package/common196.mjs +674 -0
  115. package/common197.mjs +1002 -0
  116. package/common198.mjs +883 -0
  117. package/common199.mjs +262 -0
  118. package/common2.mjs +67 -0
  119. package/common20.mjs +7417 -0
  120. package/common200.mjs +264 -0
  121. package/common201.mjs +173 -0
  122. package/common202.mjs +999 -0
  123. package/common203.mjs +80 -0
  124. package/common204.mjs +56 -0
  125. package/common205.mjs +42 -0
  126. package/common206.mjs +14 -0
  127. package/common207.mjs +4 -0
  128. package/common208.mjs +62 -0
  129. package/common209.mjs +4 -0
  130. package/common21.mjs +7439 -0
  131. package/common210.mjs +4 -0
  132. package/common211.mjs +58 -0
  133. package/common212.mjs +40 -0
  134. package/common213.mjs +45 -0
  135. package/common214.mjs +36 -0
  136. package/common215.mjs +32 -0
  137. package/common216.mjs +44 -0
  138. package/common217.mjs +32 -0
  139. package/common218.mjs +38 -0
  140. package/common219.mjs +9 -0
  141. package/common22.mjs +7411 -0
  142. package/common220.mjs +32 -0
  143. package/common221.mjs +47 -0
  144. package/common222.mjs +14 -0
  145. package/common223.mjs +30 -0
  146. package/common224.mjs +91 -0
  147. package/common225.mjs +112 -0
  148. package/common226.mjs +96 -0
  149. package/common227.mjs +30 -0
  150. package/common228.mjs +138 -0
  151. package/common229.mjs +18 -0
  152. package/common23.mjs +8425 -0
  153. package/common230.mjs +42 -0
  154. package/common231.mjs +60 -0
  155. package/common232.mjs +48 -0
  156. package/common233.mjs +47 -0
  157. package/common234.mjs +44 -0
  158. package/common235.mjs +74 -0
  159. package/common236.mjs +4 -0
  160. package/common237.mjs +60 -0
  161. package/common238.mjs +4 -0
  162. package/common239.mjs +30 -0
  163. package/common24.mjs +9600 -0
  164. package/common240.mjs +4 -0
  165. package/common241.mjs +153 -0
  166. package/common242.mjs +31 -0
  167. package/common243.mjs +30 -0
  168. package/common244.mjs +68 -0
  169. package/common245.mjs +57 -0
  170. package/common246.mjs +97 -0
  171. package/common247.mjs +36 -0
  172. package/common248.mjs +43 -0
  173. package/common249.mjs +44 -0
  174. package/common25.mjs +13283 -0
  175. package/common250.mjs +59 -0
  176. package/common251.mjs +75 -0
  177. package/{snarkjsWorkerLogic-CVna_BW9.mjs → common252.mjs} +1 -1
  178. package/common253.mjs +66 -0
  179. package/common254.mjs +70 -0
  180. package/common255.mjs +211 -0
  181. package/common256.mjs +8 -0
  182. package/{workerProxy-BDj498Ht.mjs → common257.mjs} +1 -1
  183. package/common26.mjs +4329 -0
  184. package/common27.mjs +4329 -0
  185. package/common28.mjs +204 -0
  186. package/common29.mjs +57 -0
  187. package/common3.mjs +27 -0
  188. package/common30.mjs +276 -0
  189. package/common31.mjs +118 -0
  190. package/common32.mjs +157 -0
  191. package/common33.mjs +29 -0
  192. package/common34.mjs +26 -0
  193. package/common35.mjs +53 -0
  194. package/common36.mjs +55 -0
  195. package/common37.mjs +18 -0
  196. package/common38.mjs +636 -0
  197. package/common39.mjs +24 -0
  198. package/common4.mjs +37 -0
  199. package/common40.mjs +13 -0
  200. package/common41.mjs +27 -0
  201. package/common42.mjs +15 -0
  202. package/common43.mjs +24 -0
  203. package/common44.mjs +253 -0
  204. package/common45.mjs +26 -0
  205. package/common46.mjs +15 -0
  206. package/common47.mjs +9 -0
  207. package/common48.mjs +25 -0
  208. package/common49.mjs +40 -0
  209. package/common5.mjs +37 -0
  210. package/common50.mjs +41 -0
  211. package/common51.mjs +90 -0
  212. package/common52.mjs +10 -0
  213. package/common53.mjs +299 -0
  214. package/common54.mjs +101 -0
  215. package/common55.mjs +83 -0
  216. package/common56.mjs +112 -0
  217. package/common57.mjs +140 -0
  218. package/common58.mjs +95 -0
  219. package/common59.mjs +98 -0
  220. package/common6.mjs +32 -0
  221. package/common60.mjs +5 -0
  222. package/common61.mjs +91 -0
  223. package/common62.mjs +66 -0
  224. package/common63.mjs +49 -0
  225. package/common64.mjs +177 -0
  226. package/common65.mjs +8 -0
  227. package/common66.mjs +131 -0
  228. package/common67.mjs +132 -0
  229. package/common68.mjs +59 -0
  230. package/common69.mjs +35 -0
  231. package/common7.mjs +37 -0
  232. package/common70.mjs +118 -0
  233. package/common71.mjs +134 -0
  234. package/common72.mjs +33 -0
  235. package/common73.mjs +29 -0
  236. package/common74.mjs +218 -0
  237. package/common75.mjs +194 -0
  238. package/common76.mjs +62 -0
  239. package/common77.mjs +181 -0
  240. package/common78.mjs +83 -0
  241. package/common79.mjs +9 -0
  242. package/common8.mjs +38 -0
  243. package/common80.mjs +21 -0
  244. package/common81.mjs +184 -0
  245. package/common82.mjs +53 -0
  246. package/common83.mjs +35 -0
  247. package/common84.mjs +7 -0
  248. package/common85.mjs +4 -0
  249. package/common86.mjs +350 -0
  250. package/common87.mjs +570 -0
  251. package/common88.mjs +519 -0
  252. package/common89.mjs +1422 -0
  253. package/common9.mjs +41 -0
  254. package/common90.mjs +1136 -0
  255. package/common91.mjs +334 -0
  256. package/common92.mjs +291 -0
  257. package/common93.mjs +205 -0
  258. package/common94.mjs +201 -0
  259. package/common95.mjs +89 -0
  260. package/common96.mjs +721 -0
  261. package/common97.mjs +346 -0
  262. package/common98.mjs +542 -0
  263. package/common99.mjs +393 -0
  264. package/package.json +4 -4
  265. package/assets/snarkjsWorkerLogic-B6N4z_eM.js +0 -12136
  266. package/assets/snarkjsWorkerLogic-Fv0M38Mc.js +0 -12087
  267. package/index-DXElTGy9.mjs +0 -254449
  268. package/index.js +0 -457
  269. package/utxoWorkerLogic-B1Hh-bq4.mjs +0 -64
  270. package/zkProofWorkerLogic-D9rxuuiK.mjs +0 -60
package/common89.mjs ADDED
@@ -0,0 +1,1422 @@
1
+ const t = [
2
+ {
3
+ name: "TokenExchange",
4
+ inputs: [
5
+ {
6
+ name: "buyer",
7
+ type: "address",
8
+ indexed: !0
9
+ },
10
+ {
11
+ name: "sold_id",
12
+ type: "uint256",
13
+ indexed: !1
14
+ },
15
+ {
16
+ name: "tokens_sold",
17
+ type: "uint256",
18
+ indexed: !1
19
+ },
20
+ {
21
+ name: "bought_id",
22
+ type: "uint256",
23
+ indexed: !1
24
+ },
25
+ {
26
+ name: "tokens_bought",
27
+ type: "uint256",
28
+ indexed: !1
29
+ }
30
+ ],
31
+ anonymous: !1,
32
+ type: "event"
33
+ },
34
+ {
35
+ name: "AddLiquidity",
36
+ inputs: [
37
+ {
38
+ name: "provider",
39
+ type: "address",
40
+ indexed: !0
41
+ },
42
+ {
43
+ name: "token_amounts",
44
+ type: "uint256[2]",
45
+ indexed: !1
46
+ },
47
+ {
48
+ name: "fee",
49
+ type: "uint256",
50
+ indexed: !1
51
+ },
52
+ {
53
+ name: "token_supply",
54
+ type: "uint256",
55
+ indexed: !1
56
+ }
57
+ ],
58
+ anonymous: !1,
59
+ type: "event"
60
+ },
61
+ {
62
+ name: "RemoveLiquidity",
63
+ inputs: [
64
+ {
65
+ name: "provider",
66
+ type: "address",
67
+ indexed: !0
68
+ },
69
+ {
70
+ name: "token_amounts",
71
+ type: "uint256[2]",
72
+ indexed: !1
73
+ },
74
+ {
75
+ name: "token_supply",
76
+ type: "uint256",
77
+ indexed: !1
78
+ }
79
+ ],
80
+ anonymous: !1,
81
+ type: "event"
82
+ },
83
+ {
84
+ name: "RemoveLiquidityOne",
85
+ inputs: [
86
+ {
87
+ name: "provider",
88
+ type: "address",
89
+ indexed: !0
90
+ },
91
+ {
92
+ name: "token_amount",
93
+ type: "uint256",
94
+ indexed: !1
95
+ },
96
+ {
97
+ name: "coin_index",
98
+ type: "uint256",
99
+ indexed: !1
100
+ },
101
+ {
102
+ name: "coin_amount",
103
+ type: "uint256",
104
+ indexed: !1
105
+ }
106
+ ],
107
+ anonymous: !1,
108
+ type: "event"
109
+ },
110
+ {
111
+ name: "CommitNewParameters",
112
+ inputs: [
113
+ {
114
+ name: "deadline",
115
+ type: "uint256",
116
+ indexed: !0
117
+ },
118
+ {
119
+ name: "admin_fee",
120
+ type: "uint256",
121
+ indexed: !1
122
+ },
123
+ {
124
+ name: "mid_fee",
125
+ type: "uint256",
126
+ indexed: !1
127
+ },
128
+ {
129
+ name: "out_fee",
130
+ type: "uint256",
131
+ indexed: !1
132
+ },
133
+ {
134
+ name: "fee_gamma",
135
+ type: "uint256",
136
+ indexed: !1
137
+ },
138
+ {
139
+ name: "allowed_extra_profit",
140
+ type: "uint256",
141
+ indexed: !1
142
+ },
143
+ {
144
+ name: "adjustment_step",
145
+ type: "uint256",
146
+ indexed: !1
147
+ },
148
+ {
149
+ name: "ma_half_time",
150
+ type: "uint256",
151
+ indexed: !1
152
+ }
153
+ ],
154
+ anonymous: !1,
155
+ type: "event"
156
+ },
157
+ {
158
+ name: "NewParameters",
159
+ inputs: [
160
+ {
161
+ name: "admin_fee",
162
+ type: "uint256",
163
+ indexed: !1
164
+ },
165
+ {
166
+ name: "mid_fee",
167
+ type: "uint256",
168
+ indexed: !1
169
+ },
170
+ {
171
+ name: "out_fee",
172
+ type: "uint256",
173
+ indexed: !1
174
+ },
175
+ {
176
+ name: "fee_gamma",
177
+ type: "uint256",
178
+ indexed: !1
179
+ },
180
+ {
181
+ name: "allowed_extra_profit",
182
+ type: "uint256",
183
+ indexed: !1
184
+ },
185
+ {
186
+ name: "adjustment_step",
187
+ type: "uint256",
188
+ indexed: !1
189
+ },
190
+ {
191
+ name: "ma_half_time",
192
+ type: "uint256",
193
+ indexed: !1
194
+ }
195
+ ],
196
+ anonymous: !1,
197
+ type: "event"
198
+ },
199
+ {
200
+ name: "RampAgamma",
201
+ inputs: [
202
+ {
203
+ name: "initial_A",
204
+ type: "uint256",
205
+ indexed: !1
206
+ },
207
+ {
208
+ name: "future_A",
209
+ type: "uint256",
210
+ indexed: !1
211
+ },
212
+ {
213
+ name: "initial_gamma",
214
+ type: "uint256",
215
+ indexed: !1
216
+ },
217
+ {
218
+ name: "future_gamma",
219
+ type: "uint256",
220
+ indexed: !1
221
+ },
222
+ {
223
+ name: "initial_time",
224
+ type: "uint256",
225
+ indexed: !1
226
+ },
227
+ {
228
+ name: "future_time",
229
+ type: "uint256",
230
+ indexed: !1
231
+ }
232
+ ],
233
+ anonymous: !1,
234
+ type: "event"
235
+ },
236
+ {
237
+ name: "StopRampA",
238
+ inputs: [
239
+ {
240
+ name: "current_A",
241
+ type: "uint256",
242
+ indexed: !1
243
+ },
244
+ {
245
+ name: "current_gamma",
246
+ type: "uint256",
247
+ indexed: !1
248
+ },
249
+ {
250
+ name: "time",
251
+ type: "uint256",
252
+ indexed: !1
253
+ }
254
+ ],
255
+ anonymous: !1,
256
+ type: "event"
257
+ },
258
+ {
259
+ name: "ClaimAdminFee",
260
+ inputs: [
261
+ {
262
+ name: "admin",
263
+ type: "address",
264
+ indexed: !0
265
+ },
266
+ {
267
+ name: "tokens",
268
+ type: "uint256",
269
+ indexed: !1
270
+ }
271
+ ],
272
+ anonymous: !1,
273
+ type: "event"
274
+ },
275
+ {
276
+ stateMutability: "nonpayable",
277
+ type: "constructor",
278
+ inputs: [
279
+ {
280
+ name: "_weth",
281
+ type: "address"
282
+ }
283
+ ],
284
+ outputs: []
285
+ },
286
+ {
287
+ stateMutability: "payable",
288
+ type: "fallback"
289
+ },
290
+ {
291
+ stateMutability: "payable",
292
+ type: "function",
293
+ name: "exchange",
294
+ inputs: [
295
+ {
296
+ name: "i",
297
+ type: "uint256"
298
+ },
299
+ {
300
+ name: "j",
301
+ type: "uint256"
302
+ },
303
+ {
304
+ name: "dx",
305
+ type: "uint256"
306
+ },
307
+ {
308
+ name: "min_dy",
309
+ type: "uint256"
310
+ }
311
+ ],
312
+ outputs: [
313
+ {
314
+ name: "",
315
+ type: "uint256"
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ stateMutability: "payable",
321
+ type: "function",
322
+ name: "exchange",
323
+ inputs: [
324
+ {
325
+ name: "i",
326
+ type: "uint256"
327
+ },
328
+ {
329
+ name: "j",
330
+ type: "uint256"
331
+ },
332
+ {
333
+ name: "dx",
334
+ type: "uint256"
335
+ },
336
+ {
337
+ name: "min_dy",
338
+ type: "uint256"
339
+ },
340
+ {
341
+ name: "use_eth",
342
+ type: "bool"
343
+ }
344
+ ],
345
+ outputs: [
346
+ {
347
+ name: "",
348
+ type: "uint256"
349
+ }
350
+ ]
351
+ },
352
+ {
353
+ stateMutability: "payable",
354
+ type: "function",
355
+ name: "exchange",
356
+ inputs: [
357
+ {
358
+ name: "i",
359
+ type: "uint256"
360
+ },
361
+ {
362
+ name: "j",
363
+ type: "uint256"
364
+ },
365
+ {
366
+ name: "dx",
367
+ type: "uint256"
368
+ },
369
+ {
370
+ name: "min_dy",
371
+ type: "uint256"
372
+ },
373
+ {
374
+ name: "use_eth",
375
+ type: "bool"
376
+ },
377
+ {
378
+ name: "receiver",
379
+ type: "address"
380
+ }
381
+ ],
382
+ outputs: [
383
+ {
384
+ name: "",
385
+ type: "uint256"
386
+ }
387
+ ]
388
+ },
389
+ {
390
+ stateMutability: "payable",
391
+ type: "function",
392
+ name: "exchange_underlying",
393
+ inputs: [
394
+ {
395
+ name: "i",
396
+ type: "uint256"
397
+ },
398
+ {
399
+ name: "j",
400
+ type: "uint256"
401
+ },
402
+ {
403
+ name: "dx",
404
+ type: "uint256"
405
+ },
406
+ {
407
+ name: "min_dy",
408
+ type: "uint256"
409
+ }
410
+ ],
411
+ outputs: [
412
+ {
413
+ name: "",
414
+ type: "uint256"
415
+ }
416
+ ]
417
+ },
418
+ {
419
+ stateMutability: "payable",
420
+ type: "function",
421
+ name: "exchange_underlying",
422
+ inputs: [
423
+ {
424
+ name: "i",
425
+ type: "uint256"
426
+ },
427
+ {
428
+ name: "j",
429
+ type: "uint256"
430
+ },
431
+ {
432
+ name: "dx",
433
+ type: "uint256"
434
+ },
435
+ {
436
+ name: "min_dy",
437
+ type: "uint256"
438
+ },
439
+ {
440
+ name: "receiver",
441
+ type: "address"
442
+ }
443
+ ],
444
+ outputs: [
445
+ {
446
+ name: "",
447
+ type: "uint256"
448
+ }
449
+ ]
450
+ },
451
+ {
452
+ stateMutability: "payable",
453
+ type: "function",
454
+ name: "exchange_extended",
455
+ inputs: [
456
+ {
457
+ name: "i",
458
+ type: "uint256"
459
+ },
460
+ {
461
+ name: "j",
462
+ type: "uint256"
463
+ },
464
+ {
465
+ name: "dx",
466
+ type: "uint256"
467
+ },
468
+ {
469
+ name: "min_dy",
470
+ type: "uint256"
471
+ },
472
+ {
473
+ name: "use_eth",
474
+ type: "bool"
475
+ },
476
+ {
477
+ name: "sender",
478
+ type: "address"
479
+ },
480
+ {
481
+ name: "receiver",
482
+ type: "address"
483
+ },
484
+ {
485
+ name: "cb",
486
+ type: "bytes32"
487
+ }
488
+ ],
489
+ outputs: [
490
+ {
491
+ name: "",
492
+ type: "uint256"
493
+ }
494
+ ]
495
+ },
496
+ {
497
+ stateMutability: "payable",
498
+ type: "function",
499
+ name: "add_liquidity",
500
+ inputs: [
501
+ {
502
+ name: "amounts",
503
+ type: "uint256[2]"
504
+ },
505
+ {
506
+ name: "min_mint_amount",
507
+ type: "uint256"
508
+ }
509
+ ],
510
+ outputs: [
511
+ {
512
+ name: "",
513
+ type: "uint256"
514
+ }
515
+ ]
516
+ },
517
+ {
518
+ stateMutability: "payable",
519
+ type: "function",
520
+ name: "add_liquidity",
521
+ inputs: [
522
+ {
523
+ name: "amounts",
524
+ type: "uint256[2]"
525
+ },
526
+ {
527
+ name: "min_mint_amount",
528
+ type: "uint256"
529
+ },
530
+ {
531
+ name: "use_eth",
532
+ type: "bool"
533
+ }
534
+ ],
535
+ outputs: [
536
+ {
537
+ name: "",
538
+ type: "uint256"
539
+ }
540
+ ]
541
+ },
542
+ {
543
+ stateMutability: "payable",
544
+ type: "function",
545
+ name: "add_liquidity",
546
+ inputs: [
547
+ {
548
+ name: "amounts",
549
+ type: "uint256[2]"
550
+ },
551
+ {
552
+ name: "min_mint_amount",
553
+ type: "uint256"
554
+ },
555
+ {
556
+ name: "use_eth",
557
+ type: "bool"
558
+ },
559
+ {
560
+ name: "receiver",
561
+ type: "address"
562
+ }
563
+ ],
564
+ outputs: [
565
+ {
566
+ name: "",
567
+ type: "uint256"
568
+ }
569
+ ]
570
+ },
571
+ {
572
+ stateMutability: "nonpayable",
573
+ type: "function",
574
+ name: "remove_liquidity",
575
+ inputs: [
576
+ {
577
+ name: "_amount",
578
+ type: "uint256"
579
+ },
580
+ {
581
+ name: "min_amounts",
582
+ type: "uint256[2]"
583
+ }
584
+ ],
585
+ outputs: []
586
+ },
587
+ {
588
+ stateMutability: "nonpayable",
589
+ type: "function",
590
+ name: "remove_liquidity",
591
+ inputs: [
592
+ {
593
+ name: "_amount",
594
+ type: "uint256"
595
+ },
596
+ {
597
+ name: "min_amounts",
598
+ type: "uint256[2]"
599
+ },
600
+ {
601
+ name: "use_eth",
602
+ type: "bool"
603
+ }
604
+ ],
605
+ outputs: []
606
+ },
607
+ {
608
+ stateMutability: "nonpayable",
609
+ type: "function",
610
+ name: "remove_liquidity",
611
+ inputs: [
612
+ {
613
+ name: "_amount",
614
+ type: "uint256"
615
+ },
616
+ {
617
+ name: "min_amounts",
618
+ type: "uint256[2]"
619
+ },
620
+ {
621
+ name: "use_eth",
622
+ type: "bool"
623
+ },
624
+ {
625
+ name: "receiver",
626
+ type: "address"
627
+ }
628
+ ],
629
+ outputs: []
630
+ },
631
+ {
632
+ stateMutability: "nonpayable",
633
+ type: "function",
634
+ name: "remove_liquidity_one_coin",
635
+ inputs: [
636
+ {
637
+ name: "token_amount",
638
+ type: "uint256"
639
+ },
640
+ {
641
+ name: "i",
642
+ type: "uint256"
643
+ },
644
+ {
645
+ name: "min_amount",
646
+ type: "uint256"
647
+ }
648
+ ],
649
+ outputs: [
650
+ {
651
+ name: "",
652
+ type: "uint256"
653
+ }
654
+ ]
655
+ },
656
+ {
657
+ stateMutability: "nonpayable",
658
+ type: "function",
659
+ name: "remove_liquidity_one_coin",
660
+ inputs: [
661
+ {
662
+ name: "token_amount",
663
+ type: "uint256"
664
+ },
665
+ {
666
+ name: "i",
667
+ type: "uint256"
668
+ },
669
+ {
670
+ name: "min_amount",
671
+ type: "uint256"
672
+ },
673
+ {
674
+ name: "use_eth",
675
+ type: "bool"
676
+ }
677
+ ],
678
+ outputs: [
679
+ {
680
+ name: "",
681
+ type: "uint256"
682
+ }
683
+ ]
684
+ },
685
+ {
686
+ stateMutability: "nonpayable",
687
+ type: "function",
688
+ name: "remove_liquidity_one_coin",
689
+ inputs: [
690
+ {
691
+ name: "token_amount",
692
+ type: "uint256"
693
+ },
694
+ {
695
+ name: "i",
696
+ type: "uint256"
697
+ },
698
+ {
699
+ name: "min_amount",
700
+ type: "uint256"
701
+ },
702
+ {
703
+ name: "use_eth",
704
+ type: "bool"
705
+ },
706
+ {
707
+ name: "receiver",
708
+ type: "address"
709
+ }
710
+ ],
711
+ outputs: [
712
+ {
713
+ name: "",
714
+ type: "uint256"
715
+ }
716
+ ]
717
+ },
718
+ {
719
+ stateMutability: "nonpayable",
720
+ type: "function",
721
+ name: "claim_admin_fees",
722
+ inputs: [],
723
+ outputs: []
724
+ },
725
+ {
726
+ stateMutability: "nonpayable",
727
+ type: "function",
728
+ name: "ramp_A_gamma",
729
+ inputs: [
730
+ {
731
+ name: "future_A",
732
+ type: "uint256"
733
+ },
734
+ {
735
+ name: "future_gamma",
736
+ type: "uint256"
737
+ },
738
+ {
739
+ name: "future_time",
740
+ type: "uint256"
741
+ }
742
+ ],
743
+ outputs: []
744
+ },
745
+ {
746
+ stateMutability: "nonpayable",
747
+ type: "function",
748
+ name: "stop_ramp_A_gamma",
749
+ inputs: [],
750
+ outputs: []
751
+ },
752
+ {
753
+ stateMutability: "nonpayable",
754
+ type: "function",
755
+ name: "commit_new_parameters",
756
+ inputs: [
757
+ {
758
+ name: "_new_mid_fee",
759
+ type: "uint256"
760
+ },
761
+ {
762
+ name: "_new_out_fee",
763
+ type: "uint256"
764
+ },
765
+ {
766
+ name: "_new_admin_fee",
767
+ type: "uint256"
768
+ },
769
+ {
770
+ name: "_new_fee_gamma",
771
+ type: "uint256"
772
+ },
773
+ {
774
+ name: "_new_allowed_extra_profit",
775
+ type: "uint256"
776
+ },
777
+ {
778
+ name: "_new_adjustment_step",
779
+ type: "uint256"
780
+ },
781
+ {
782
+ name: "_new_ma_half_time",
783
+ type: "uint256"
784
+ }
785
+ ],
786
+ outputs: []
787
+ },
788
+ {
789
+ stateMutability: "nonpayable",
790
+ type: "function",
791
+ name: "apply_new_parameters",
792
+ inputs: [],
793
+ outputs: []
794
+ },
795
+ {
796
+ stateMutability: "nonpayable",
797
+ type: "function",
798
+ name: "revert_new_parameters",
799
+ inputs: [],
800
+ outputs: []
801
+ },
802
+ {
803
+ stateMutability: "view",
804
+ type: "function",
805
+ name: "get_dy",
806
+ inputs: [
807
+ {
808
+ name: "i",
809
+ type: "uint256"
810
+ },
811
+ {
812
+ name: "j",
813
+ type: "uint256"
814
+ },
815
+ {
816
+ name: "dx",
817
+ type: "uint256"
818
+ }
819
+ ],
820
+ outputs: [
821
+ {
822
+ name: "",
823
+ type: "uint256"
824
+ }
825
+ ]
826
+ },
827
+ {
828
+ stateMutability: "view",
829
+ type: "function",
830
+ name: "calc_token_amount",
831
+ inputs: [
832
+ {
833
+ name: "_amounts",
834
+ type: "uint256[3]"
835
+ },
836
+ {
837
+ name: "is_deposit",
838
+ type: "bool"
839
+ }
840
+ ],
841
+ outputs: [
842
+ {
843
+ name: "",
844
+ type: "uint256"
845
+ }
846
+ ]
847
+ },
848
+ {
849
+ stateMutability: "view",
850
+ type: "function",
851
+ name: "calc_withdraw_one_coin",
852
+ inputs: [
853
+ {
854
+ name: "token_amount",
855
+ type: "uint256"
856
+ },
857
+ {
858
+ name: "i",
859
+ type: "uint256"
860
+ }
861
+ ],
862
+ outputs: [
863
+ {
864
+ name: "",
865
+ type: "uint256"
866
+ }
867
+ ]
868
+ },
869
+ {
870
+ stateMutability: "view",
871
+ type: "function",
872
+ name: "lp_price",
873
+ inputs: [],
874
+ outputs: [
875
+ {
876
+ name: "",
877
+ type: "uint256"
878
+ }
879
+ ]
880
+ },
881
+ {
882
+ stateMutability: "view",
883
+ type: "function",
884
+ name: "A",
885
+ inputs: [],
886
+ outputs: [
887
+ {
888
+ name: "",
889
+ type: "uint256"
890
+ }
891
+ ]
892
+ },
893
+ {
894
+ stateMutability: "view",
895
+ type: "function",
896
+ name: "gamma",
897
+ inputs: [],
898
+ outputs: [
899
+ {
900
+ name: "",
901
+ type: "uint256"
902
+ }
903
+ ]
904
+ },
905
+ {
906
+ stateMutability: "view",
907
+ type: "function",
908
+ name: "fee",
909
+ inputs: [],
910
+ outputs: [
911
+ {
912
+ name: "",
913
+ type: "uint256"
914
+ }
915
+ ]
916
+ },
917
+ {
918
+ stateMutability: "view",
919
+ type: "function",
920
+ name: "get_virtual_price",
921
+ inputs: [],
922
+ outputs: [
923
+ {
924
+ name: "",
925
+ type: "uint256"
926
+ }
927
+ ]
928
+ },
929
+ {
930
+ stateMutability: "view",
931
+ type: "function",
932
+ name: "price_oracle",
933
+ inputs: [],
934
+ outputs: [
935
+ {
936
+ name: "",
937
+ type: "uint256"
938
+ }
939
+ ]
940
+ },
941
+ {
942
+ stateMutability: "nonpayable",
943
+ type: "function",
944
+ name: "initialize",
945
+ inputs: [
946
+ {
947
+ name: "A",
948
+ type: "uint256"
949
+ },
950
+ {
951
+ name: "gamma",
952
+ type: "uint256"
953
+ },
954
+ {
955
+ name: "mid_fee",
956
+ type: "uint256"
957
+ },
958
+ {
959
+ name: "out_fee",
960
+ type: "uint256"
961
+ },
962
+ {
963
+ name: "allowed_extra_profit",
964
+ type: "uint256"
965
+ },
966
+ {
967
+ name: "fee_gamma",
968
+ type: "uint256"
969
+ },
970
+ {
971
+ name: "adjustment_step",
972
+ type: "uint256"
973
+ },
974
+ {
975
+ name: "admin_fee",
976
+ type: "uint256"
977
+ },
978
+ {
979
+ name: "ma_half_time",
980
+ type: "uint256"
981
+ },
982
+ {
983
+ name: "initial_price",
984
+ type: "uint256"
985
+ },
986
+ {
987
+ name: "_token",
988
+ type: "address"
989
+ },
990
+ {
991
+ name: "_coins",
992
+ type: "address[2]"
993
+ },
994
+ {
995
+ name: "_precisions",
996
+ type: "uint256"
997
+ }
998
+ ],
999
+ outputs: []
1000
+ },
1001
+ {
1002
+ stateMutability: "view",
1003
+ type: "function",
1004
+ name: "token",
1005
+ inputs: [],
1006
+ outputs: [
1007
+ {
1008
+ name: "",
1009
+ type: "address"
1010
+ }
1011
+ ]
1012
+ },
1013
+ {
1014
+ stateMutability: "view",
1015
+ type: "function",
1016
+ name: "coins",
1017
+ inputs: [
1018
+ {
1019
+ name: "arg0",
1020
+ type: "uint256"
1021
+ }
1022
+ ],
1023
+ outputs: [
1024
+ {
1025
+ name: "",
1026
+ type: "address"
1027
+ }
1028
+ ]
1029
+ },
1030
+ {
1031
+ stateMutability: "view",
1032
+ type: "function",
1033
+ name: "price_scale",
1034
+ inputs: [],
1035
+ outputs: [
1036
+ {
1037
+ name: "",
1038
+ type: "uint256"
1039
+ }
1040
+ ]
1041
+ },
1042
+ {
1043
+ stateMutability: "view",
1044
+ type: "function",
1045
+ name: "last_prices",
1046
+ inputs: [],
1047
+ outputs: [
1048
+ {
1049
+ name: "",
1050
+ type: "uint256"
1051
+ }
1052
+ ]
1053
+ },
1054
+ {
1055
+ stateMutability: "view",
1056
+ type: "function",
1057
+ name: "last_prices_timestamp",
1058
+ inputs: [],
1059
+ outputs: [
1060
+ {
1061
+ name: "",
1062
+ type: "uint256"
1063
+ }
1064
+ ]
1065
+ },
1066
+ {
1067
+ stateMutability: "view",
1068
+ type: "function",
1069
+ name: "initial_A_gamma",
1070
+ inputs: [],
1071
+ outputs: [
1072
+ {
1073
+ name: "",
1074
+ type: "uint256"
1075
+ }
1076
+ ]
1077
+ },
1078
+ {
1079
+ stateMutability: "view",
1080
+ type: "function",
1081
+ name: "future_A_gamma",
1082
+ inputs: [],
1083
+ outputs: [
1084
+ {
1085
+ name: "",
1086
+ type: "uint256"
1087
+ }
1088
+ ]
1089
+ },
1090
+ {
1091
+ stateMutability: "view",
1092
+ type: "function",
1093
+ name: "initial_A_gamma_time",
1094
+ inputs: [],
1095
+ outputs: [
1096
+ {
1097
+ name: "",
1098
+ type: "uint256"
1099
+ }
1100
+ ]
1101
+ },
1102
+ {
1103
+ stateMutability: "view",
1104
+ type: "function",
1105
+ name: "future_A_gamma_time",
1106
+ inputs: [],
1107
+ outputs: [
1108
+ {
1109
+ name: "",
1110
+ type: "uint256"
1111
+ }
1112
+ ]
1113
+ },
1114
+ {
1115
+ stateMutability: "view",
1116
+ type: "function",
1117
+ name: "allowed_extra_profit",
1118
+ inputs: [],
1119
+ outputs: [
1120
+ {
1121
+ name: "",
1122
+ type: "uint256"
1123
+ }
1124
+ ]
1125
+ },
1126
+ {
1127
+ stateMutability: "view",
1128
+ type: "function",
1129
+ name: "future_allowed_extra_profit",
1130
+ inputs: [],
1131
+ outputs: [
1132
+ {
1133
+ name: "",
1134
+ type: "uint256"
1135
+ }
1136
+ ]
1137
+ },
1138
+ {
1139
+ stateMutability: "view",
1140
+ type: "function",
1141
+ name: "fee_gamma",
1142
+ inputs: [],
1143
+ outputs: [
1144
+ {
1145
+ name: "",
1146
+ type: "uint256"
1147
+ }
1148
+ ]
1149
+ },
1150
+ {
1151
+ stateMutability: "view",
1152
+ type: "function",
1153
+ name: "future_fee_gamma",
1154
+ inputs: [],
1155
+ outputs: [
1156
+ {
1157
+ name: "",
1158
+ type: "uint256"
1159
+ }
1160
+ ]
1161
+ },
1162
+ {
1163
+ stateMutability: "view",
1164
+ type: "function",
1165
+ name: "adjustment_step",
1166
+ inputs: [],
1167
+ outputs: [
1168
+ {
1169
+ name: "",
1170
+ type: "uint256"
1171
+ }
1172
+ ]
1173
+ },
1174
+ {
1175
+ stateMutability: "view",
1176
+ type: "function",
1177
+ name: "future_adjustment_step",
1178
+ inputs: [],
1179
+ outputs: [
1180
+ {
1181
+ name: "",
1182
+ type: "uint256"
1183
+ }
1184
+ ]
1185
+ },
1186
+ {
1187
+ stateMutability: "view",
1188
+ type: "function",
1189
+ name: "ma_half_time",
1190
+ inputs: [],
1191
+ outputs: [
1192
+ {
1193
+ name: "",
1194
+ type: "uint256"
1195
+ }
1196
+ ]
1197
+ },
1198
+ {
1199
+ stateMutability: "view",
1200
+ type: "function",
1201
+ name: "future_ma_half_time",
1202
+ inputs: [],
1203
+ outputs: [
1204
+ {
1205
+ name: "",
1206
+ type: "uint256"
1207
+ }
1208
+ ]
1209
+ },
1210
+ {
1211
+ stateMutability: "view",
1212
+ type: "function",
1213
+ name: "mid_fee",
1214
+ inputs: [],
1215
+ outputs: [
1216
+ {
1217
+ name: "",
1218
+ type: "uint256"
1219
+ }
1220
+ ]
1221
+ },
1222
+ {
1223
+ stateMutability: "view",
1224
+ type: "function",
1225
+ name: "out_fee",
1226
+ inputs: [],
1227
+ outputs: [
1228
+ {
1229
+ name: "",
1230
+ type: "uint256"
1231
+ }
1232
+ ]
1233
+ },
1234
+ {
1235
+ stateMutability: "view",
1236
+ type: "function",
1237
+ name: "admin_fee",
1238
+ inputs: [],
1239
+ outputs: [
1240
+ {
1241
+ name: "",
1242
+ type: "uint256"
1243
+ }
1244
+ ]
1245
+ },
1246
+ {
1247
+ stateMutability: "view",
1248
+ type: "function",
1249
+ name: "future_mid_fee",
1250
+ inputs: [],
1251
+ outputs: [
1252
+ {
1253
+ name: "",
1254
+ type: "uint256"
1255
+ }
1256
+ ]
1257
+ },
1258
+ {
1259
+ stateMutability: "view",
1260
+ type: "function",
1261
+ name: "future_out_fee",
1262
+ inputs: [],
1263
+ outputs: [
1264
+ {
1265
+ name: "",
1266
+ type: "uint256"
1267
+ }
1268
+ ]
1269
+ },
1270
+ {
1271
+ stateMutability: "view",
1272
+ type: "function",
1273
+ name: "future_admin_fee",
1274
+ inputs: [],
1275
+ outputs: [
1276
+ {
1277
+ name: "",
1278
+ type: "uint256"
1279
+ }
1280
+ ]
1281
+ },
1282
+ {
1283
+ stateMutability: "view",
1284
+ type: "function",
1285
+ name: "balances",
1286
+ inputs: [
1287
+ {
1288
+ name: "arg0",
1289
+ type: "uint256"
1290
+ }
1291
+ ],
1292
+ outputs: [
1293
+ {
1294
+ name: "",
1295
+ type: "uint256"
1296
+ }
1297
+ ]
1298
+ },
1299
+ {
1300
+ stateMutability: "view",
1301
+ type: "function",
1302
+ name: "D",
1303
+ inputs: [],
1304
+ outputs: [
1305
+ {
1306
+ name: "",
1307
+ type: "uint256"
1308
+ }
1309
+ ]
1310
+ },
1311
+ {
1312
+ stateMutability: "view",
1313
+ type: "function",
1314
+ name: "factory",
1315
+ inputs: [],
1316
+ outputs: [
1317
+ {
1318
+ name: "",
1319
+ type: "address"
1320
+ }
1321
+ ]
1322
+ },
1323
+ {
1324
+ stateMutability: "view",
1325
+ type: "function",
1326
+ name: "xcp_profit",
1327
+ inputs: [],
1328
+ outputs: [
1329
+ {
1330
+ name: "",
1331
+ type: "uint256"
1332
+ }
1333
+ ]
1334
+ },
1335
+ {
1336
+ stateMutability: "view",
1337
+ type: "function",
1338
+ name: "xcp_profit_a",
1339
+ inputs: [],
1340
+ outputs: [
1341
+ {
1342
+ name: "",
1343
+ type: "uint256"
1344
+ }
1345
+ ]
1346
+ },
1347
+ {
1348
+ stateMutability: "view",
1349
+ type: "function",
1350
+ name: "virtual_price",
1351
+ inputs: [],
1352
+ outputs: [
1353
+ {
1354
+ name: "",
1355
+ type: "uint256"
1356
+ }
1357
+ ]
1358
+ },
1359
+ {
1360
+ stateMutability: "view",
1361
+ type: "function",
1362
+ name: "admin_actions_deadline",
1363
+ inputs: [],
1364
+ outputs: [
1365
+ {
1366
+ name: "",
1367
+ type: "uint256"
1368
+ }
1369
+ ]
1370
+ },
1371
+ {
1372
+ stateMutability: "view",
1373
+ type: "function",
1374
+ name: "initial_A",
1375
+ inputs: [],
1376
+ outputs: [
1377
+ {
1378
+ name: "",
1379
+ type: "uint256"
1380
+ }
1381
+ ]
1382
+ },
1383
+ {
1384
+ stateMutability: "view",
1385
+ type: "function",
1386
+ name: "future_A",
1387
+ inputs: [],
1388
+ outputs: [
1389
+ {
1390
+ name: "",
1391
+ type: "uint256"
1392
+ }
1393
+ ]
1394
+ },
1395
+ {
1396
+ stateMutability: "view",
1397
+ type: "function",
1398
+ name: "initial_A_time",
1399
+ inputs: [],
1400
+ outputs: [
1401
+ {
1402
+ name: "",
1403
+ type: "uint256"
1404
+ }
1405
+ ]
1406
+ },
1407
+ {
1408
+ stateMutability: "view",
1409
+ type: "function",
1410
+ name: "future_A_time",
1411
+ inputs: [],
1412
+ outputs: [
1413
+ {
1414
+ name: "",
1415
+ type: "uint256"
1416
+ }
1417
+ ]
1418
+ }
1419
+ ];
1420
+ export {
1421
+ t as abi
1422
+ };