@ripe-finance/sdk 1.13.2 → 1.14.2

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 (173) hide show
  1. package/dist/contracts/AuctionHouse.d.ts +126 -60
  2. package/dist/contracts/AuctionHouse.d.ts.map +1 -1
  3. package/dist/contracts/AuctionHouse.js +145 -75
  4. package/dist/contracts/CreditEngine.d.ts +679 -242
  5. package/dist/contracts/CreditEngine.d.ts.map +1 -1
  6. package/dist/contracts/CreditEngine.js +790 -276
  7. package/dist/contracts/CreditRedeem.d.ts +475 -0
  8. package/dist/contracts/CreditRedeem.d.ts.map +1 -0
  9. package/dist/contracts/CreditRedeem.js +551 -0
  10. package/dist/contracts/Deleverage.d.ts +929 -0
  11. package/dist/contracts/Deleverage.d.ts.map +1 -0
  12. package/dist/contracts/Deleverage.js +1095 -0
  13. package/dist/contracts/RedStone.d.ts +1581 -0
  14. package/dist/contracts/RedStone.d.ts.map +1 -0
  15. package/dist/contracts/{AgentFactory_v2.js → RedStone.js} +1077 -682
  16. package/dist/contracts/RipePoolAero.d.ts +5 -5
  17. package/dist/contracts/RipePoolAero.d.ts.map +1 -1
  18. package/dist/contracts/SwitchboardAlpha.d.ts +56 -0
  19. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  20. package/dist/contracts/SwitchboardAlpha.js +73 -1
  21. package/dist/contracts/SwitchboardDelta.d.ts +115 -0
  22. package/dist/contracts/SwitchboardDelta.d.ts.map +1 -1
  23. package/dist/contracts/SwitchboardDelta.js +144 -1
  24. package/dist/contracts/Teller.d.ts +419 -0
  25. package/dist/contracts/Teller.d.ts.map +1 -1
  26. package/dist/contracts/Teller.js +531 -1
  27. package/dist/contracts/TellerUtils.d.ts +819 -0
  28. package/dist/contracts/TellerUtils.d.ts.map +1 -0
  29. package/dist/contracts/TellerUtils.js +994 -0
  30. package/dist/contracts/UnderscoreVault.d.ts +1028 -0
  31. package/dist/contracts/UnderscoreVault.d.ts.map +1 -0
  32. package/dist/contracts/UnderscoreVault.js +1243 -0
  33. package/dist/contracts/UndyVaultPrices.d.ts +1781 -0
  34. package/dist/contracts/UndyVaultPrices.d.ts.map +1 -0
  35. package/dist/contracts/{AgentFactory.js → UndyVaultPrices.js} +1185 -1024
  36. package/dist/contracts/index.d.ts +7 -0
  37. package/dist/contracts/index.d.ts.map +1 -1
  38. package/dist/contracts/index.js +7 -0
  39. package/dist/contracts/sdk.d.ts +14 -0
  40. package/dist/contracts/sdk.d.ts.map +1 -1
  41. package/dist/contracts/sdk.js +14 -0
  42. package/dist/contracts/{LegoMorpho.d.ts → wsuperOETHbPrices.d.ts} +610 -573
  43. package/dist/contracts/wsuperOETHbPrices.d.ts.map +1 -0
  44. package/dist/contracts/{LegoMorpho.js → wsuperOETHbPrices.js} +654 -632
  45. package/dist/index.d.ts +327 -31
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +21 -0
  48. package/package.json +2 -2
  49. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  50. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  51. package/dist/contracts/AddyRegistry.js +0 -1392
  52. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  53. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  54. package/dist/contracts/AddyRegistry_v1.js +0 -594
  55. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  56. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  57. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  58. package/dist/contracts/Agent.d.ts +0 -2709
  59. package/dist/contracts/Agent.d.ts.map +0 -1
  60. package/dist/contracts/Agent.js +0 -3458
  61. package/dist/contracts/AgentFactory.d.ts +0 -1665
  62. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  63. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  64. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  65. package/dist/contracts/AgentFactory_v1.js +0 -1336
  66. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  67. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  68. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  69. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  70. package/dist/contracts/AgentTemplate.js +0 -3370
  71. package/dist/contracts/Agent_v1.d.ts +0 -2631
  72. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  73. package/dist/contracts/Agent_v1.js +0 -3372
  74. package/dist/contracts/Agent_v2.d.ts +0 -2709
  75. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  76. package/dist/contracts/Agent_v2.js +0 -3458
  77. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  78. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  79. package/dist/contracts/ChainlinkFeeds.js +0 -900
  80. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  81. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  82. package/dist/contracts/LegoAaveV3.js +0 -1330
  83. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  84. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  85. package/dist/contracts/LegoAeroClassic.js +0 -1546
  86. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  87. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  88. package/dist/contracts/LegoAeroSlipstream.js +0 -1671
  89. package/dist/contracts/LegoCommon.d.ts +0 -164
  90. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  91. package/dist/contracts/LegoCommon.js +0 -202
  92. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  93. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  94. package/dist/contracts/LegoCompoundV3.js +0 -1365
  95. package/dist/contracts/LegoCredit.d.ts +0 -140
  96. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  97. package/dist/contracts/LegoCredit.js +0 -179
  98. package/dist/contracts/LegoCurve.d.ts +0 -1189
  99. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  100. package/dist/contracts/LegoCurve.js +0 -1519
  101. package/dist/contracts/LegoDex.d.ts +0 -587
  102. package/dist/contracts/LegoDex.d.ts.map +0 -1
  103. package/dist/contracts/LegoDex.js +0 -774
  104. package/dist/contracts/LegoEuler.d.ts +0 -1074
  105. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  106. package/dist/contracts/LegoEuler.js +0 -1383
  107. package/dist/contracts/LegoFluid.d.ts +0 -1025
  108. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  109. package/dist/contracts/LegoFluid.js +0 -1320
  110. package/dist/contracts/LegoHelper.d.ts +0 -1563
  111. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  112. package/dist/contracts/LegoHelper.js +0 -1947
  113. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  114. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  115. package/dist/contracts/LegoMoonwell.js +0 -1342
  116. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  117. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  118. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  119. package/dist/contracts/LegoRegistry.js +0 -1368
  120. package/dist/contracts/LegoSky.d.ts +0 -923
  121. package/dist/contracts/LegoSky.d.ts.map +0 -1
  122. package/dist/contracts/LegoSky.js +0 -1180
  123. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  124. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  125. package/dist/contracts/LegoUniswapV2.js +0 -1546
  126. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  127. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  128. package/dist/contracts/LegoUniswapV3.js +0 -1718
  129. package/dist/contracts/LegoYield.d.ts +0 -390
  130. package/dist/contracts/LegoYield.d.ts.map +0 -1
  131. package/dist/contracts/LegoYield.js +0 -511
  132. package/dist/contracts/OracleParser.d.ts +0 -207
  133. package/dist/contracts/OracleParser.d.ts.map +0 -1
  134. package/dist/contracts/OracleParser.js +0 -264
  135. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  136. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  137. package/dist/contracts/OracleRegistry.js +0 -1562
  138. package/dist/contracts/PriceSheets.d.ts +0 -1127
  139. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  140. package/dist/contracts/PriceSheets.js +0 -1383
  141. package/dist/contracts/PythFeeds.d.ts +0 -640
  142. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  143. package/dist/contracts/PythFeeds.js +0 -813
  144. package/dist/contracts/RipePool.d.ts +0 -1264
  145. package/dist/contracts/RipePool.d.ts.map +0 -1
  146. package/dist/contracts/RipePool.js +0 -1627
  147. package/dist/contracts/StorkFeeds.d.ts +0 -640
  148. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  149. package/dist/contracts/StorkFeeds.js +0 -813
  150. package/dist/contracts/UserWallet.d.ts +0 -1975
  151. package/dist/contracts/UserWallet.d.ts.map +0 -1
  152. package/dist/contracts/UserWallet.js +0 -2577
  153. package/dist/contracts/UserWalletConfig.d.ts +0 -1852
  154. package/dist/contracts/UserWalletConfig.d.ts.map +0 -1
  155. package/dist/contracts/UserWalletConfig.js +0 -2263
  156. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  157. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  158. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  159. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  160. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  161. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  162. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  163. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  164. package/dist/contracts/UserWallet_v1.js +0 -2581
  165. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  166. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  167. package/dist/contracts/UserWallet_v2.js +0 -2553
  168. package/dist/contracts/WalletConfig.d.ts +0 -1398
  169. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  170. package/dist/contracts/WalletConfig.js +0 -1674
  171. package/dist/contracts/WalletFunds.d.ts +0 -1978
  172. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  173. package/dist/contracts/WalletFunds.js +0 -2579
@@ -1,1627 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /* @ts-nocheck */
5
- import { singleQuery, mutate } from '@dappql/async';
6
- export const abi = [
7
- {
8
- name: 'Transfer',
9
- inputs: [
10
- {
11
- name: 'sender',
12
- type: 'address',
13
- indexed: true,
14
- },
15
- {
16
- name: 'receiver',
17
- type: 'address',
18
- indexed: true,
19
- },
20
- {
21
- name: 'value',
22
- type: 'uint256',
23
- indexed: false,
24
- },
25
- ],
26
- anonymous: false,
27
- type: 'event',
28
- },
29
- {
30
- name: 'Approval',
31
- inputs: [
32
- {
33
- name: 'owner',
34
- type: 'address',
35
- indexed: true,
36
- },
37
- {
38
- name: 'spender',
39
- type: 'address',
40
- indexed: true,
41
- },
42
- {
43
- name: 'value',
44
- type: 'uint256',
45
- indexed: false,
46
- },
47
- ],
48
- anonymous: false,
49
- type: 'event',
50
- },
51
- {
52
- name: 'TokenExchange',
53
- inputs: [
54
- {
55
- name: 'buyer',
56
- type: 'address',
57
- indexed: true,
58
- },
59
- {
60
- name: 'sold_id',
61
- type: 'uint256',
62
- indexed: false,
63
- },
64
- {
65
- name: 'tokens_sold',
66
- type: 'uint256',
67
- indexed: false,
68
- },
69
- {
70
- name: 'bought_id',
71
- type: 'uint256',
72
- indexed: false,
73
- },
74
- {
75
- name: 'tokens_bought',
76
- type: 'uint256',
77
- indexed: false,
78
- },
79
- {
80
- name: 'fee',
81
- type: 'uint256',
82
- indexed: false,
83
- },
84
- {
85
- name: 'packed_price_scale',
86
- type: 'uint256',
87
- indexed: false,
88
- },
89
- ],
90
- anonymous: false,
91
- type: 'event',
92
- },
93
- {
94
- name: 'AddLiquidity',
95
- inputs: [
96
- {
97
- name: 'provider',
98
- type: 'address',
99
- indexed: true,
100
- },
101
- {
102
- name: 'token_amounts',
103
- type: 'uint256[2]',
104
- indexed: false,
105
- },
106
- {
107
- name: 'fee',
108
- type: 'uint256',
109
- indexed: false,
110
- },
111
- {
112
- name: 'token_supply',
113
- type: 'uint256',
114
- indexed: false,
115
- },
116
- {
117
- name: 'packed_price_scale',
118
- type: 'uint256',
119
- indexed: false,
120
- },
121
- ],
122
- anonymous: false,
123
- type: 'event',
124
- },
125
- {
126
- name: 'RemoveLiquidity',
127
- inputs: [
128
- {
129
- name: 'provider',
130
- type: 'address',
131
- indexed: true,
132
- },
133
- {
134
- name: 'token_amounts',
135
- type: 'uint256[2]',
136
- indexed: false,
137
- },
138
- {
139
- name: 'token_supply',
140
- type: 'uint256',
141
- indexed: false,
142
- },
143
- ],
144
- anonymous: false,
145
- type: 'event',
146
- },
147
- {
148
- name: 'RemoveLiquidityOne',
149
- inputs: [
150
- {
151
- name: 'provider',
152
- type: 'address',
153
- indexed: true,
154
- },
155
- {
156
- name: 'token_amount',
157
- type: 'uint256',
158
- indexed: false,
159
- },
160
- {
161
- name: 'coin_index',
162
- type: 'uint256',
163
- indexed: false,
164
- },
165
- {
166
- name: 'coin_amount',
167
- type: 'uint256',
168
- indexed: false,
169
- },
170
- {
171
- name: 'approx_fee',
172
- type: 'uint256',
173
- indexed: false,
174
- },
175
- {
176
- name: 'packed_price_scale',
177
- type: 'uint256',
178
- indexed: false,
179
- },
180
- ],
181
- anonymous: false,
182
- type: 'event',
183
- },
184
- {
185
- name: 'NewParameters',
186
- inputs: [
187
- {
188
- name: 'mid_fee',
189
- type: 'uint256',
190
- indexed: false,
191
- },
192
- {
193
- name: 'out_fee',
194
- type: 'uint256',
195
- indexed: false,
196
- },
197
- {
198
- name: 'fee_gamma',
199
- type: 'uint256',
200
- indexed: false,
201
- },
202
- {
203
- name: 'allowed_extra_profit',
204
- type: 'uint256',
205
- indexed: false,
206
- },
207
- {
208
- name: 'adjustment_step',
209
- type: 'uint256',
210
- indexed: false,
211
- },
212
- {
213
- name: 'ma_time',
214
- type: 'uint256',
215
- indexed: false,
216
- },
217
- ],
218
- anonymous: false,
219
- type: 'event',
220
- },
221
- {
222
- name: 'RampAgamma',
223
- inputs: [
224
- {
225
- name: 'initial_A',
226
- type: 'uint256',
227
- indexed: false,
228
- },
229
- {
230
- name: 'future_A',
231
- type: 'uint256',
232
- indexed: false,
233
- },
234
- {
235
- name: 'initial_gamma',
236
- type: 'uint256',
237
- indexed: false,
238
- },
239
- {
240
- name: 'future_gamma',
241
- type: 'uint256',
242
- indexed: false,
243
- },
244
- {
245
- name: 'initial_time',
246
- type: 'uint256',
247
- indexed: false,
248
- },
249
- {
250
- name: 'future_time',
251
- type: 'uint256',
252
- indexed: false,
253
- },
254
- ],
255
- anonymous: false,
256
- type: 'event',
257
- },
258
- {
259
- name: 'StopRampA',
260
- inputs: [
261
- {
262
- name: 'current_A',
263
- type: 'uint256',
264
- indexed: false,
265
- },
266
- {
267
- name: 'current_gamma',
268
- type: 'uint256',
269
- indexed: false,
270
- },
271
- {
272
- name: 'time',
273
- type: 'uint256',
274
- indexed: false,
275
- },
276
- ],
277
- anonymous: false,
278
- type: 'event',
279
- },
280
- {
281
- name: 'ClaimAdminFee',
282
- inputs: [
283
- {
284
- name: 'admin',
285
- type: 'address',
286
- indexed: true,
287
- },
288
- {
289
- name: 'tokens',
290
- type: 'uint256[2]',
291
- indexed: false,
292
- },
293
- ],
294
- anonymous: false,
295
- type: 'event',
296
- },
297
- {
298
- stateMutability: 'nonpayable',
299
- type: 'constructor',
300
- inputs: [
301
- {
302
- name: '_name',
303
- type: 'string',
304
- },
305
- {
306
- name: '_symbol',
307
- type: 'string',
308
- },
309
- {
310
- name: '_coins',
311
- type: 'address[2]',
312
- },
313
- {
314
- name: '_math',
315
- type: 'address',
316
- },
317
- {
318
- name: '_salt',
319
- type: 'bytes32',
320
- },
321
- {
322
- name: 'packed_precisions',
323
- type: 'uint256',
324
- },
325
- {
326
- name: 'packed_gamma_A',
327
- type: 'uint256',
328
- },
329
- {
330
- name: 'packed_fee_params',
331
- type: 'uint256',
332
- },
333
- {
334
- name: 'packed_rebalancing_params',
335
- type: 'uint256',
336
- },
337
- {
338
- name: 'initial_price',
339
- type: 'uint256',
340
- },
341
- ],
342
- outputs: [],
343
- },
344
- {
345
- stateMutability: 'nonpayable',
346
- type: 'function',
347
- name: 'exchange',
348
- inputs: [
349
- {
350
- name: 'i',
351
- type: 'uint256',
352
- },
353
- {
354
- name: 'j',
355
- type: 'uint256',
356
- },
357
- {
358
- name: 'dx',
359
- type: 'uint256',
360
- },
361
- {
362
- name: 'min_dy',
363
- type: 'uint256',
364
- },
365
- ],
366
- outputs: [
367
- {
368
- name: '',
369
- type: 'uint256',
370
- },
371
- ],
372
- },
373
- {
374
- stateMutability: 'nonpayable',
375
- type: 'function',
376
- name: 'exchange',
377
- inputs: [
378
- {
379
- name: 'i',
380
- type: 'uint256',
381
- },
382
- {
383
- name: 'j',
384
- type: 'uint256',
385
- },
386
- {
387
- name: 'dx',
388
- type: 'uint256',
389
- },
390
- {
391
- name: 'min_dy',
392
- type: 'uint256',
393
- },
394
- {
395
- name: 'receiver',
396
- type: 'address',
397
- },
398
- ],
399
- outputs: [
400
- {
401
- name: '',
402
- type: 'uint256',
403
- },
404
- ],
405
- },
406
- {
407
- stateMutability: 'nonpayable',
408
- type: 'function',
409
- name: 'exchange_received',
410
- inputs: [
411
- {
412
- name: 'i',
413
- type: 'uint256',
414
- },
415
- {
416
- name: 'j',
417
- type: 'uint256',
418
- },
419
- {
420
- name: 'dx',
421
- type: 'uint256',
422
- },
423
- {
424
- name: 'min_dy',
425
- type: 'uint256',
426
- },
427
- ],
428
- outputs: [
429
- {
430
- name: '',
431
- type: 'uint256',
432
- },
433
- ],
434
- },
435
- {
436
- stateMutability: 'nonpayable',
437
- type: 'function',
438
- name: 'exchange_received',
439
- inputs: [
440
- {
441
- name: 'i',
442
- type: 'uint256',
443
- },
444
- {
445
- name: 'j',
446
- type: 'uint256',
447
- },
448
- {
449
- name: 'dx',
450
- type: 'uint256',
451
- },
452
- {
453
- name: 'min_dy',
454
- type: 'uint256',
455
- },
456
- {
457
- name: 'receiver',
458
- type: 'address',
459
- },
460
- ],
461
- outputs: [
462
- {
463
- name: '',
464
- type: 'uint256',
465
- },
466
- ],
467
- },
468
- {
469
- stateMutability: 'nonpayable',
470
- type: 'function',
471
- name: 'add_liquidity',
472
- inputs: [
473
- {
474
- name: 'amounts',
475
- type: 'uint256[2]',
476
- },
477
- {
478
- name: 'min_mint_amount',
479
- type: 'uint256',
480
- },
481
- ],
482
- outputs: [
483
- {
484
- name: '',
485
- type: 'uint256',
486
- },
487
- ],
488
- },
489
- {
490
- stateMutability: 'nonpayable',
491
- type: 'function',
492
- name: 'add_liquidity',
493
- inputs: [
494
- {
495
- name: 'amounts',
496
- type: 'uint256[2]',
497
- },
498
- {
499
- name: 'min_mint_amount',
500
- type: 'uint256',
501
- },
502
- {
503
- name: 'receiver',
504
- type: 'address',
505
- },
506
- ],
507
- outputs: [
508
- {
509
- name: '',
510
- type: 'uint256',
511
- },
512
- ],
513
- },
514
- {
515
- stateMutability: 'nonpayable',
516
- type: 'function',
517
- name: 'remove_liquidity',
518
- inputs: [
519
- {
520
- name: '_amount',
521
- type: 'uint256',
522
- },
523
- {
524
- name: 'min_amounts',
525
- type: 'uint256[2]',
526
- },
527
- ],
528
- outputs: [
529
- {
530
- name: '',
531
- type: 'uint256[2]',
532
- },
533
- ],
534
- },
535
- {
536
- stateMutability: 'nonpayable',
537
- type: 'function',
538
- name: 'remove_liquidity',
539
- inputs: [
540
- {
541
- name: '_amount',
542
- type: 'uint256',
543
- },
544
- {
545
- name: 'min_amounts',
546
- type: 'uint256[2]',
547
- },
548
- {
549
- name: 'receiver',
550
- type: 'address',
551
- },
552
- ],
553
- outputs: [
554
- {
555
- name: '',
556
- type: 'uint256[2]',
557
- },
558
- ],
559
- },
560
- {
561
- stateMutability: 'nonpayable',
562
- type: 'function',
563
- name: 'remove_liquidity_one_coin',
564
- inputs: [
565
- {
566
- name: 'token_amount',
567
- type: 'uint256',
568
- },
569
- {
570
- name: 'i',
571
- type: 'uint256',
572
- },
573
- {
574
- name: 'min_amount',
575
- type: 'uint256',
576
- },
577
- ],
578
- outputs: [
579
- {
580
- name: '',
581
- type: 'uint256',
582
- },
583
- ],
584
- },
585
- {
586
- stateMutability: 'nonpayable',
587
- type: 'function',
588
- name: 'remove_liquidity_one_coin',
589
- inputs: [
590
- {
591
- name: 'token_amount',
592
- type: 'uint256',
593
- },
594
- {
595
- name: 'i',
596
- type: 'uint256',
597
- },
598
- {
599
- name: 'min_amount',
600
- type: 'uint256',
601
- },
602
- {
603
- name: 'receiver',
604
- type: 'address',
605
- },
606
- ],
607
- outputs: [
608
- {
609
- name: '',
610
- type: 'uint256',
611
- },
612
- ],
613
- },
614
- {
615
- stateMutability: 'nonpayable',
616
- type: 'function',
617
- name: 'transferFrom',
618
- inputs: [
619
- {
620
- name: '_from',
621
- type: 'address',
622
- },
623
- {
624
- name: '_to',
625
- type: 'address',
626
- },
627
- {
628
- name: '_value',
629
- type: 'uint256',
630
- },
631
- ],
632
- outputs: [
633
- {
634
- name: '',
635
- type: 'bool',
636
- },
637
- ],
638
- },
639
- {
640
- stateMutability: 'nonpayable',
641
- type: 'function',
642
- name: 'transfer',
643
- inputs: [
644
- {
645
- name: '_to',
646
- type: 'address',
647
- },
648
- {
649
- name: '_value',
650
- type: 'uint256',
651
- },
652
- ],
653
- outputs: [
654
- {
655
- name: '',
656
- type: 'bool',
657
- },
658
- ],
659
- },
660
- {
661
- stateMutability: 'nonpayable',
662
- type: 'function',
663
- name: 'approve',
664
- inputs: [
665
- {
666
- name: '_spender',
667
- type: 'address',
668
- },
669
- {
670
- name: '_value',
671
- type: 'uint256',
672
- },
673
- ],
674
- outputs: [
675
- {
676
- name: '',
677
- type: 'bool',
678
- },
679
- ],
680
- },
681
- {
682
- stateMutability: 'nonpayable',
683
- type: 'function',
684
- name: 'permit',
685
- inputs: [
686
- {
687
- name: '_owner',
688
- type: 'address',
689
- },
690
- {
691
- name: '_spender',
692
- type: 'address',
693
- },
694
- {
695
- name: '_value',
696
- type: 'uint256',
697
- },
698
- {
699
- name: '_deadline',
700
- type: 'uint256',
701
- },
702
- {
703
- name: '_v',
704
- type: 'uint8',
705
- },
706
- {
707
- name: '_r',
708
- type: 'bytes32',
709
- },
710
- {
711
- name: '_s',
712
- type: 'bytes32',
713
- },
714
- ],
715
- outputs: [
716
- {
717
- name: '',
718
- type: 'bool',
719
- },
720
- ],
721
- },
722
- {
723
- stateMutability: 'view',
724
- type: 'function',
725
- name: 'fee_receiver',
726
- inputs: [],
727
- outputs: [
728
- {
729
- name: '',
730
- type: 'address',
731
- },
732
- ],
733
- },
734
- {
735
- stateMutability: 'view',
736
- type: 'function',
737
- name: 'admin',
738
- inputs: [],
739
- outputs: [
740
- {
741
- name: '',
742
- type: 'address',
743
- },
744
- ],
745
- },
746
- {
747
- stateMutability: 'view',
748
- type: 'function',
749
- name: 'calc_token_amount',
750
- inputs: [
751
- {
752
- name: 'amounts',
753
- type: 'uint256[2]',
754
- },
755
- {
756
- name: 'deposit',
757
- type: 'bool',
758
- },
759
- ],
760
- outputs: [
761
- {
762
- name: '',
763
- type: 'uint256',
764
- },
765
- ],
766
- },
767
- {
768
- stateMutability: 'view',
769
- type: 'function',
770
- name: 'get_dy',
771
- inputs: [
772
- {
773
- name: 'i',
774
- type: 'uint256',
775
- },
776
- {
777
- name: 'j',
778
- type: 'uint256',
779
- },
780
- {
781
- name: 'dx',
782
- type: 'uint256',
783
- },
784
- ],
785
- outputs: [
786
- {
787
- name: '',
788
- type: 'uint256',
789
- },
790
- ],
791
- },
792
- {
793
- stateMutability: 'view',
794
- type: 'function',
795
- name: 'get_dx',
796
- inputs: [
797
- {
798
- name: 'i',
799
- type: 'uint256',
800
- },
801
- {
802
- name: 'j',
803
- type: 'uint256',
804
- },
805
- {
806
- name: 'dy',
807
- type: 'uint256',
808
- },
809
- ],
810
- outputs: [
811
- {
812
- name: '',
813
- type: 'uint256',
814
- },
815
- ],
816
- },
817
- {
818
- stateMutability: 'view',
819
- type: 'function',
820
- name: 'lp_price',
821
- inputs: [],
822
- outputs: [
823
- {
824
- name: '',
825
- type: 'uint256',
826
- },
827
- ],
828
- },
829
- {
830
- stateMutability: 'view',
831
- type: 'function',
832
- name: 'get_virtual_price',
833
- inputs: [],
834
- outputs: [
835
- {
836
- name: '',
837
- type: 'uint256',
838
- },
839
- ],
840
- },
841
- {
842
- stateMutability: 'view',
843
- type: 'function',
844
- name: 'price_oracle',
845
- inputs: [],
846
- outputs: [
847
- {
848
- name: '',
849
- type: 'uint256',
850
- },
851
- ],
852
- },
853
- {
854
- stateMutability: 'view',
855
- type: 'function',
856
- name: 'price_scale',
857
- inputs: [],
858
- outputs: [
859
- {
860
- name: '',
861
- type: 'uint256',
862
- },
863
- ],
864
- },
865
- {
866
- stateMutability: 'view',
867
- type: 'function',
868
- name: 'fee',
869
- inputs: [],
870
- outputs: [
871
- {
872
- name: '',
873
- type: 'uint256',
874
- },
875
- ],
876
- },
877
- {
878
- stateMutability: 'view',
879
- type: 'function',
880
- name: 'calc_withdraw_one_coin',
881
- inputs: [
882
- {
883
- name: 'token_amount',
884
- type: 'uint256',
885
- },
886
- {
887
- name: 'i',
888
- type: 'uint256',
889
- },
890
- ],
891
- outputs: [
892
- {
893
- name: '',
894
- type: 'uint256',
895
- },
896
- ],
897
- },
898
- {
899
- stateMutability: 'view',
900
- type: 'function',
901
- name: 'calc_token_fee',
902
- inputs: [
903
- {
904
- name: 'amounts',
905
- type: 'uint256[2]',
906
- },
907
- {
908
- name: 'xp',
909
- type: 'uint256[2]',
910
- },
911
- ],
912
- outputs: [
913
- {
914
- name: '',
915
- type: 'uint256',
916
- },
917
- ],
918
- },
919
- {
920
- stateMutability: 'view',
921
- type: 'function',
922
- name: 'A',
923
- inputs: [],
924
- outputs: [
925
- {
926
- name: '',
927
- type: 'uint256',
928
- },
929
- ],
930
- },
931
- {
932
- stateMutability: 'view',
933
- type: 'function',
934
- name: 'gamma',
935
- inputs: [],
936
- outputs: [
937
- {
938
- name: '',
939
- type: 'uint256',
940
- },
941
- ],
942
- },
943
- {
944
- stateMutability: 'view',
945
- type: 'function',
946
- name: 'mid_fee',
947
- inputs: [],
948
- outputs: [
949
- {
950
- name: '',
951
- type: 'uint256',
952
- },
953
- ],
954
- },
955
- {
956
- stateMutability: 'view',
957
- type: 'function',
958
- name: 'out_fee',
959
- inputs: [],
960
- outputs: [
961
- {
962
- name: '',
963
- type: 'uint256',
964
- },
965
- ],
966
- },
967
- {
968
- stateMutability: 'view',
969
- type: 'function',
970
- name: 'fee_gamma',
971
- inputs: [],
972
- outputs: [
973
- {
974
- name: '',
975
- type: 'uint256',
976
- },
977
- ],
978
- },
979
- {
980
- stateMutability: 'view',
981
- type: 'function',
982
- name: 'allowed_extra_profit',
983
- inputs: [],
984
- outputs: [
985
- {
986
- name: '',
987
- type: 'uint256',
988
- },
989
- ],
990
- },
991
- {
992
- stateMutability: 'view',
993
- type: 'function',
994
- name: 'adjustment_step',
995
- inputs: [],
996
- outputs: [
997
- {
998
- name: '',
999
- type: 'uint256',
1000
- },
1001
- ],
1002
- },
1003
- {
1004
- stateMutability: 'view',
1005
- type: 'function',
1006
- name: 'ma_time',
1007
- inputs: [],
1008
- outputs: [
1009
- {
1010
- name: '',
1011
- type: 'uint256',
1012
- },
1013
- ],
1014
- },
1015
- {
1016
- stateMutability: 'view',
1017
- type: 'function',
1018
- name: 'precisions',
1019
- inputs: [],
1020
- outputs: [
1021
- {
1022
- name: '',
1023
- type: 'uint256[2]',
1024
- },
1025
- ],
1026
- },
1027
- {
1028
- stateMutability: 'view',
1029
- type: 'function',
1030
- name: 'fee_calc',
1031
- inputs: [
1032
- {
1033
- name: 'xp',
1034
- type: 'uint256[2]',
1035
- },
1036
- ],
1037
- outputs: [
1038
- {
1039
- name: '',
1040
- type: 'uint256',
1041
- },
1042
- ],
1043
- },
1044
- {
1045
- stateMutability: 'view',
1046
- type: 'function',
1047
- name: 'DOMAIN_SEPARATOR',
1048
- inputs: [],
1049
- outputs: [
1050
- {
1051
- name: '',
1052
- type: 'bytes32',
1053
- },
1054
- ],
1055
- },
1056
- {
1057
- stateMutability: 'nonpayable',
1058
- type: 'function',
1059
- name: 'ramp_A_gamma',
1060
- inputs: [
1061
- {
1062
- name: 'future_A',
1063
- type: 'uint256',
1064
- },
1065
- {
1066
- name: 'future_gamma',
1067
- type: 'uint256',
1068
- },
1069
- {
1070
- name: 'future_time',
1071
- type: 'uint256',
1072
- },
1073
- ],
1074
- outputs: [],
1075
- },
1076
- {
1077
- stateMutability: 'nonpayable',
1078
- type: 'function',
1079
- name: 'stop_ramp_A_gamma',
1080
- inputs: [],
1081
- outputs: [],
1082
- },
1083
- {
1084
- stateMutability: 'nonpayable',
1085
- type: 'function',
1086
- name: 'apply_new_parameters',
1087
- inputs: [
1088
- {
1089
- name: '_new_mid_fee',
1090
- type: 'uint256',
1091
- },
1092
- {
1093
- name: '_new_out_fee',
1094
- type: 'uint256',
1095
- },
1096
- {
1097
- name: '_new_fee_gamma',
1098
- type: 'uint256',
1099
- },
1100
- {
1101
- name: '_new_allowed_extra_profit',
1102
- type: 'uint256',
1103
- },
1104
- {
1105
- name: '_new_adjustment_step',
1106
- type: 'uint256',
1107
- },
1108
- {
1109
- name: '_new_ma_time',
1110
- type: 'uint256',
1111
- },
1112
- ],
1113
- outputs: [],
1114
- },
1115
- {
1116
- stateMutability: 'view',
1117
- type: 'function',
1118
- name: 'MATH',
1119
- inputs: [],
1120
- outputs: [
1121
- {
1122
- name: '',
1123
- type: 'address',
1124
- },
1125
- ],
1126
- },
1127
- {
1128
- stateMutability: 'view',
1129
- type: 'function',
1130
- name: 'coins',
1131
- inputs: [
1132
- {
1133
- name: 'arg0',
1134
- type: 'uint256',
1135
- },
1136
- ],
1137
- outputs: [
1138
- {
1139
- name: '',
1140
- type: 'address',
1141
- },
1142
- ],
1143
- },
1144
- {
1145
- stateMutability: 'view',
1146
- type: 'function',
1147
- name: 'factory',
1148
- inputs: [],
1149
- outputs: [
1150
- {
1151
- name: '',
1152
- type: 'address',
1153
- },
1154
- ],
1155
- },
1156
- {
1157
- stateMutability: 'view',
1158
- type: 'function',
1159
- name: 'last_prices',
1160
- inputs: [],
1161
- outputs: [
1162
- {
1163
- name: '',
1164
- type: 'uint256',
1165
- },
1166
- ],
1167
- },
1168
- {
1169
- stateMutability: 'view',
1170
- type: 'function',
1171
- name: 'last_timestamp',
1172
- inputs: [],
1173
- outputs: [
1174
- {
1175
- name: '',
1176
- type: 'uint256',
1177
- },
1178
- ],
1179
- },
1180
- {
1181
- stateMutability: 'view',
1182
- type: 'function',
1183
- name: 'initial_A_gamma',
1184
- inputs: [],
1185
- outputs: [
1186
- {
1187
- name: '',
1188
- type: 'uint256',
1189
- },
1190
- ],
1191
- },
1192
- {
1193
- stateMutability: 'view',
1194
- type: 'function',
1195
- name: 'initial_A_gamma_time',
1196
- inputs: [],
1197
- outputs: [
1198
- {
1199
- name: '',
1200
- type: 'uint256',
1201
- },
1202
- ],
1203
- },
1204
- {
1205
- stateMutability: 'view',
1206
- type: 'function',
1207
- name: 'future_A_gamma',
1208
- inputs: [],
1209
- outputs: [
1210
- {
1211
- name: '',
1212
- type: 'uint256',
1213
- },
1214
- ],
1215
- },
1216
- {
1217
- stateMutability: 'view',
1218
- type: 'function',
1219
- name: 'future_A_gamma_time',
1220
- inputs: [],
1221
- outputs: [
1222
- {
1223
- name: '',
1224
- type: 'uint256',
1225
- },
1226
- ],
1227
- },
1228
- {
1229
- stateMutability: 'view',
1230
- type: 'function',
1231
- name: 'balances',
1232
- inputs: [
1233
- {
1234
- name: 'arg0',
1235
- type: 'uint256',
1236
- },
1237
- ],
1238
- outputs: [
1239
- {
1240
- name: '',
1241
- type: 'uint256',
1242
- },
1243
- ],
1244
- },
1245
- {
1246
- stateMutability: 'view',
1247
- type: 'function',
1248
- name: 'D',
1249
- inputs: [],
1250
- outputs: [
1251
- {
1252
- name: '',
1253
- type: 'uint256',
1254
- },
1255
- ],
1256
- },
1257
- {
1258
- stateMutability: 'view',
1259
- type: 'function',
1260
- name: 'xcp_profit',
1261
- inputs: [],
1262
- outputs: [
1263
- {
1264
- name: '',
1265
- type: 'uint256',
1266
- },
1267
- ],
1268
- },
1269
- {
1270
- stateMutability: 'view',
1271
- type: 'function',
1272
- name: 'xcp_profit_a',
1273
- inputs: [],
1274
- outputs: [
1275
- {
1276
- name: '',
1277
- type: 'uint256',
1278
- },
1279
- ],
1280
- },
1281
- {
1282
- stateMutability: 'view',
1283
- type: 'function',
1284
- name: 'virtual_price',
1285
- inputs: [],
1286
- outputs: [
1287
- {
1288
- name: '',
1289
- type: 'uint256',
1290
- },
1291
- ],
1292
- },
1293
- {
1294
- stateMutability: 'view',
1295
- type: 'function',
1296
- name: 'packed_rebalancing_params',
1297
- inputs: [],
1298
- outputs: [
1299
- {
1300
- name: '',
1301
- type: 'uint256',
1302
- },
1303
- ],
1304
- },
1305
- {
1306
- stateMutability: 'view',
1307
- type: 'function',
1308
- name: 'packed_fee_params',
1309
- inputs: [],
1310
- outputs: [
1311
- {
1312
- name: '',
1313
- type: 'uint256',
1314
- },
1315
- ],
1316
- },
1317
- {
1318
- stateMutability: 'view',
1319
- type: 'function',
1320
- name: 'ADMIN_FEE',
1321
- inputs: [],
1322
- outputs: [
1323
- {
1324
- name: '',
1325
- type: 'uint256',
1326
- },
1327
- ],
1328
- },
1329
- {
1330
- stateMutability: 'view',
1331
- type: 'function',
1332
- name: 'name',
1333
- inputs: [],
1334
- outputs: [
1335
- {
1336
- name: '',
1337
- type: 'string',
1338
- },
1339
- ],
1340
- },
1341
- {
1342
- stateMutability: 'view',
1343
- type: 'function',
1344
- name: 'symbol',
1345
- inputs: [],
1346
- outputs: [
1347
- {
1348
- name: '',
1349
- type: 'string',
1350
- },
1351
- ],
1352
- },
1353
- {
1354
- stateMutability: 'view',
1355
- type: 'function',
1356
- name: 'decimals',
1357
- inputs: [],
1358
- outputs: [
1359
- {
1360
- name: '',
1361
- type: 'uint8',
1362
- },
1363
- ],
1364
- },
1365
- {
1366
- stateMutability: 'view',
1367
- type: 'function',
1368
- name: 'version',
1369
- inputs: [],
1370
- outputs: [
1371
- {
1372
- name: '',
1373
- type: 'string',
1374
- },
1375
- ],
1376
- },
1377
- {
1378
- stateMutability: 'view',
1379
- type: 'function',
1380
- name: 'balanceOf',
1381
- inputs: [
1382
- {
1383
- name: 'arg0',
1384
- type: 'address',
1385
- },
1386
- ],
1387
- outputs: [
1388
- {
1389
- name: '',
1390
- type: 'uint256',
1391
- },
1392
- ],
1393
- },
1394
- {
1395
- stateMutability: 'view',
1396
- type: 'function',
1397
- name: 'allowance',
1398
- inputs: [
1399
- {
1400
- name: 'arg0',
1401
- type: 'address',
1402
- },
1403
- {
1404
- name: 'arg1',
1405
- type: 'address',
1406
- },
1407
- ],
1408
- outputs: [
1409
- {
1410
- name: '',
1411
- type: 'uint256',
1412
- },
1413
- ],
1414
- },
1415
- {
1416
- stateMutability: 'view',
1417
- type: 'function',
1418
- name: 'totalSupply',
1419
- inputs: [],
1420
- outputs: [
1421
- {
1422
- name: '',
1423
- type: 'uint256',
1424
- },
1425
- ],
1426
- },
1427
- {
1428
- stateMutability: 'view',
1429
- type: 'function',
1430
- name: 'nonces',
1431
- inputs: [
1432
- {
1433
- name: 'arg0',
1434
- type: 'address',
1435
- },
1436
- ],
1437
- outputs: [
1438
- {
1439
- name: '',
1440
- type: 'uint256',
1441
- },
1442
- ],
1443
- },
1444
- {
1445
- stateMutability: 'view',
1446
- type: 'function',
1447
- name: 'salt',
1448
- inputs: [],
1449
- outputs: [
1450
- {
1451
- name: '',
1452
- type: 'bytes32',
1453
- },
1454
- ],
1455
- },
1456
- ];
1457
- export const deployAddress = '0xF8D92a9531205AB2Dd0Bc623CDF4A6Ab4c3a2526';
1458
- function getRequest(method, args, contractAddressOrOptions) {
1459
- const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1460
- const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1461
- const call = {
1462
- contractName: 'RipePool',
1463
- method,
1464
- args,
1465
- address,
1466
- deployAddress,
1467
- defaultValue,
1468
- getAbi: () => abi,
1469
- with: (options) => {
1470
- call.address = options.contractAddress;
1471
- call.defaultValue = options.defaultValue;
1472
- return call;
1473
- },
1474
- defaultTo: (defaultValue) => {
1475
- call.defaultValue = defaultValue;
1476
- return call;
1477
- },
1478
- at: (address) => {
1479
- call.address = address;
1480
- return call;
1481
- },
1482
- };
1483
- return call;
1484
- }
1485
- export const call = {
1486
- fee_receiver: (...args) => getRequest('fee_receiver', args),
1487
- admin: (...args) => getRequest('admin', args),
1488
- calc_token_amount: (...args) => getRequest('calc_token_amount', args),
1489
- get_dy: (...args) => getRequest('get_dy', args),
1490
- get_dx: (...args) => getRequest('get_dx', args),
1491
- lp_price: (...args) => getRequest('lp_price', args),
1492
- get_virtual_price: (...args) => getRequest('get_virtual_price', args),
1493
- price_oracle: (...args) => getRequest('price_oracle', args),
1494
- price_scale: (...args) => getRequest('price_scale', args),
1495
- fee: (...args) => getRequest('fee', args),
1496
- calc_withdraw_one_coin: (...args) => getRequest('calc_withdraw_one_coin', args),
1497
- calc_token_fee: (...args) => getRequest('calc_token_fee', args),
1498
- A: (...args) => getRequest('A', args),
1499
- gamma: (...args) => getRequest('gamma', args),
1500
- mid_fee: (...args) => getRequest('mid_fee', args),
1501
- out_fee: (...args) => getRequest('out_fee', args),
1502
- fee_gamma: (...args) => getRequest('fee_gamma', args),
1503
- allowed_extra_profit: (...args) => getRequest('allowed_extra_profit', args),
1504
- adjustment_step: (...args) => getRequest('adjustment_step', args),
1505
- ma_time: (...args) => getRequest('ma_time', args),
1506
- precisions: (...args) => getRequest('precisions', args),
1507
- fee_calc: (...args) => getRequest('fee_calc', args),
1508
- DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
1509
- MATH: (...args) => getRequest('MATH', args),
1510
- coins: (...args) => getRequest('coins', args),
1511
- factory: (...args) => getRequest('factory', args),
1512
- last_prices: (...args) => getRequest('last_prices', args),
1513
- last_timestamp: (...args) => getRequest('last_timestamp', args),
1514
- initial_A_gamma: (...args) => getRequest('initial_A_gamma', args),
1515
- initial_A_gamma_time: (...args) => getRequest('initial_A_gamma_time', args),
1516
- future_A_gamma: (...args) => getRequest('future_A_gamma', args),
1517
- future_A_gamma_time: (...args) => getRequest('future_A_gamma_time', args),
1518
- balances: (...args) => getRequest('balances', args),
1519
- D: (...args) => getRequest('D', args),
1520
- xcp_profit: (...args) => getRequest('xcp_profit', args),
1521
- xcp_profit_a: (...args) => getRequest('xcp_profit_a', args),
1522
- virtual_price: (...args) => getRequest('virtual_price', args),
1523
- packed_rebalancing_params: (...args) => getRequest('packed_rebalancing_params', args),
1524
- packed_fee_params: (...args) => getRequest('packed_fee_params', args),
1525
- ADMIN_FEE: (...args) => getRequest('ADMIN_FEE', args),
1526
- name: (...args) => getRequest('name', args),
1527
- symbol: (...args) => getRequest('symbol', args),
1528
- decimals: (...args) => getRequest('decimals', args),
1529
- version: (...args) => getRequest('version', args),
1530
- balanceOf: (...args) => getRequest('balanceOf', args),
1531
- allowance: (...args) => getRequest('allowance', args),
1532
- totalSupply: (...args) => getRequest('totalSupply', args),
1533
- nonces: (...args) => getRequest('nonces', args),
1534
- salt: (...args) => getRequest('salt', args),
1535
- };
1536
- function getMutation(functionName) {
1537
- return {
1538
- contractName: 'RipePool',
1539
- functionName,
1540
- deployAddress,
1541
- argsType: undefined,
1542
- getAbi: () => abi,
1543
- };
1544
- }
1545
- export const mutation = {
1546
- exchange: getMutation('exchange'),
1547
- exchange_received: getMutation('exchange_received'),
1548
- add_liquidity: getMutation('add_liquidity'),
1549
- remove_liquidity: getMutation('remove_liquidity'),
1550
- remove_liquidity_one_coin: getMutation('remove_liquidity_one_coin'),
1551
- transferFrom: getMutation('transferFrom'),
1552
- transfer: getMutation('transfer'),
1553
- approve: getMutation('approve'),
1554
- permit: getMutation('permit'),
1555
- ramp_A_gamma: getMutation('ramp_A_gamma'),
1556
- stop_ramp_A_gamma: getMutation('stop_ramp_A_gamma'),
1557
- apply_new_parameters: getMutation('apply_new_parameters'),
1558
- };
1559
- export function toSdk(publicClient, walletClient) {
1560
- return {
1561
- deployAddress,
1562
- abi,
1563
- // Queries
1564
- fee_receiver: (...args) => singleQuery(publicClient, call.fee_receiver(...args)),
1565
- admin: (...args) => singleQuery(publicClient, call.admin(...args)),
1566
- calc_token_amount: (...args) => singleQuery(publicClient, call.calc_token_amount(...args)),
1567
- get_dy: (...args) => singleQuery(publicClient, call.get_dy(...args)),
1568
- get_dx: (...args) => singleQuery(publicClient, call.get_dx(...args)),
1569
- lp_price: (...args) => singleQuery(publicClient, call.lp_price(...args)),
1570
- get_virtual_price: (...args) => singleQuery(publicClient, call.get_virtual_price(...args)),
1571
- price_oracle: (...args) => singleQuery(publicClient, call.price_oracle(...args)),
1572
- price_scale: (...args) => singleQuery(publicClient, call.price_scale(...args)),
1573
- fee: (...args) => singleQuery(publicClient, call.fee(...args)),
1574
- calc_withdraw_one_coin: (...args) => singleQuery(publicClient, call.calc_withdraw_one_coin(...args)),
1575
- calc_token_fee: (...args) => singleQuery(publicClient, call.calc_token_fee(...args)),
1576
- A: (...args) => singleQuery(publicClient, call.A(...args)),
1577
- gamma: (...args) => singleQuery(publicClient, call.gamma(...args)),
1578
- mid_fee: (...args) => singleQuery(publicClient, call.mid_fee(...args)),
1579
- out_fee: (...args) => singleQuery(publicClient, call.out_fee(...args)),
1580
- fee_gamma: (...args) => singleQuery(publicClient, call.fee_gamma(...args)),
1581
- allowed_extra_profit: (...args) => singleQuery(publicClient, call.allowed_extra_profit(...args)),
1582
- adjustment_step: (...args) => singleQuery(publicClient, call.adjustment_step(...args)),
1583
- ma_time: (...args) => singleQuery(publicClient, call.ma_time(...args)),
1584
- precisions: (...args) => singleQuery(publicClient, call.precisions(...args)),
1585
- fee_calc: (...args) => singleQuery(publicClient, call.fee_calc(...args)),
1586
- DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args)),
1587
- MATH: (...args) => singleQuery(publicClient, call.MATH(...args)),
1588
- coins: (...args) => singleQuery(publicClient, call.coins(...args)),
1589
- factory: (...args) => singleQuery(publicClient, call.factory(...args)),
1590
- last_prices: (...args) => singleQuery(publicClient, call.last_prices(...args)),
1591
- last_timestamp: (...args) => singleQuery(publicClient, call.last_timestamp(...args)),
1592
- initial_A_gamma: (...args) => singleQuery(publicClient, call.initial_A_gamma(...args)),
1593
- initial_A_gamma_time: (...args) => singleQuery(publicClient, call.initial_A_gamma_time(...args)),
1594
- future_A_gamma: (...args) => singleQuery(publicClient, call.future_A_gamma(...args)),
1595
- future_A_gamma_time: (...args) => singleQuery(publicClient, call.future_A_gamma_time(...args)),
1596
- balances: (...args) => singleQuery(publicClient, call.balances(...args)),
1597
- D: (...args) => singleQuery(publicClient, call.D(...args)),
1598
- xcp_profit: (...args) => singleQuery(publicClient, call.xcp_profit(...args)),
1599
- xcp_profit_a: (...args) => singleQuery(publicClient, call.xcp_profit_a(...args)),
1600
- virtual_price: (...args) => singleQuery(publicClient, call.virtual_price(...args)),
1601
- packed_rebalancing_params: (...args) => singleQuery(publicClient, call.packed_rebalancing_params(...args)),
1602
- packed_fee_params: (...args) => singleQuery(publicClient, call.packed_fee_params(...args)),
1603
- ADMIN_FEE: (...args) => singleQuery(publicClient, call.ADMIN_FEE(...args)),
1604
- name: (...args) => singleQuery(publicClient, call.name(...args)),
1605
- symbol: (...args) => singleQuery(publicClient, call.symbol(...args)),
1606
- decimals: (...args) => singleQuery(publicClient, call.decimals(...args)),
1607
- version: (...args) => singleQuery(publicClient, call.version(...args)),
1608
- balanceOf: (...args) => singleQuery(publicClient, call.balanceOf(...args)),
1609
- allowance: (...args) => singleQuery(publicClient, call.allowance(...args)),
1610
- totalSupply: (...args) => singleQuery(publicClient, call.totalSupply(...args)),
1611
- nonces: (...args) => singleQuery(publicClient, call.nonces(...args)),
1612
- salt: (...args) => singleQuery(publicClient, call.salt(...args)),
1613
- // Mutations
1614
- exchange: (...args) => mutate(walletClient, mutation.exchange)(...args),
1615
- exchange_received: (...args) => mutate(walletClient, mutation.exchange_received)(...args),
1616
- add_liquidity: (...args) => mutate(walletClient, mutation.add_liquidity)(...args),
1617
- remove_liquidity: (...args) => mutate(walletClient, mutation.remove_liquidity)(...args),
1618
- remove_liquidity_one_coin: (...args) => mutate(walletClient, mutation.remove_liquidity_one_coin)(...args),
1619
- transferFrom: (...args) => mutate(walletClient, mutation.transferFrom)(...args),
1620
- transfer: (...args) => mutate(walletClient, mutation.transfer)(...args),
1621
- approve: (...args) => mutate(walletClient, mutation.approve)(...args),
1622
- permit: (...args) => mutate(walletClient, mutation.permit)(...args),
1623
- ramp_A_gamma: (...args) => mutate(walletClient, mutation.ramp_A_gamma)(...args),
1624
- stop_ramp_A_gamma: (...args) => mutate(walletClient, mutation.stop_ramp_A_gamma)(...args),
1625
- apply_new_parameters: (...args) => mutate(walletClient, mutation.apply_new_parameters)(...args),
1626
- };
1627
- }