@underscore-finance/sdk 1.2.3 → 1.2.4
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.
- package/dist/contracts/LevgVault.d.ts +2054 -0
- package/dist/contracts/LevgVault.d.ts.map +1 -0
- package/dist/contracts/LevgVault.js +2702 -0
- package/dist/contracts/index.d.ts +1 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +1 -0
- package/dist/contracts/sdk.d.ts +2 -0
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2054 @@
|
|
|
1
|
+
import { PublicClient, WalletClient } from 'viem';
|
|
2
|
+
type ExtractArgs<T> = T extends (...args: infer P) => any ? P : never;
|
|
3
|
+
type Address = `0x${string}`;
|
|
4
|
+
export declare const abi: readonly [{
|
|
5
|
+
readonly anonymous: false;
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly indexed: true;
|
|
8
|
+
readonly name: "sender";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly indexed: true;
|
|
12
|
+
readonly name: "owner";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}, {
|
|
15
|
+
readonly indexed: false;
|
|
16
|
+
readonly name: "assets";
|
|
17
|
+
readonly type: "uint256";
|
|
18
|
+
}, {
|
|
19
|
+
readonly indexed: false;
|
|
20
|
+
readonly name: "shares";
|
|
21
|
+
readonly type: "uint256";
|
|
22
|
+
}];
|
|
23
|
+
readonly name: "Deposit";
|
|
24
|
+
readonly type: "event";
|
|
25
|
+
}, {
|
|
26
|
+
readonly anonymous: false;
|
|
27
|
+
readonly inputs: readonly [{
|
|
28
|
+
readonly indexed: true;
|
|
29
|
+
readonly name: "sender";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
}, {
|
|
32
|
+
readonly indexed: true;
|
|
33
|
+
readonly name: "receiver";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
}, {
|
|
36
|
+
readonly indexed: true;
|
|
37
|
+
readonly name: "owner";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
}, {
|
|
40
|
+
readonly indexed: false;
|
|
41
|
+
readonly name: "assets";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
}, {
|
|
44
|
+
readonly indexed: false;
|
|
45
|
+
readonly name: "shares";
|
|
46
|
+
readonly type: "uint256";
|
|
47
|
+
}];
|
|
48
|
+
readonly name: "Withdraw";
|
|
49
|
+
readonly type: "event";
|
|
50
|
+
}, {
|
|
51
|
+
readonly anonymous: false;
|
|
52
|
+
readonly inputs: readonly [{
|
|
53
|
+
readonly indexed: false;
|
|
54
|
+
readonly name: "amount";
|
|
55
|
+
readonly type: "uint256";
|
|
56
|
+
}, {
|
|
57
|
+
readonly indexed: true;
|
|
58
|
+
readonly name: "recipient";
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
}];
|
|
61
|
+
readonly name: "LeftoversSwept";
|
|
62
|
+
readonly type: "event";
|
|
63
|
+
}, {
|
|
64
|
+
readonly anonymous: false;
|
|
65
|
+
readonly inputs: readonly [{
|
|
66
|
+
readonly indexed: true;
|
|
67
|
+
readonly name: "sender";
|
|
68
|
+
readonly type: "address";
|
|
69
|
+
}, {
|
|
70
|
+
readonly indexed: true;
|
|
71
|
+
readonly name: "recipient";
|
|
72
|
+
readonly type: "address";
|
|
73
|
+
}, {
|
|
74
|
+
readonly indexed: false;
|
|
75
|
+
readonly name: "amount";
|
|
76
|
+
readonly type: "uint256";
|
|
77
|
+
}];
|
|
78
|
+
readonly name: "Transfer";
|
|
79
|
+
readonly type: "event";
|
|
80
|
+
}, {
|
|
81
|
+
readonly anonymous: false;
|
|
82
|
+
readonly inputs: readonly [{
|
|
83
|
+
readonly indexed: true;
|
|
84
|
+
readonly name: "owner";
|
|
85
|
+
readonly type: "address";
|
|
86
|
+
}, {
|
|
87
|
+
readonly indexed: true;
|
|
88
|
+
readonly name: "spender";
|
|
89
|
+
readonly type: "address";
|
|
90
|
+
}, {
|
|
91
|
+
readonly indexed: false;
|
|
92
|
+
readonly name: "amount";
|
|
93
|
+
readonly type: "uint256";
|
|
94
|
+
}];
|
|
95
|
+
readonly name: "Approval";
|
|
96
|
+
readonly type: "event";
|
|
97
|
+
}, {
|
|
98
|
+
readonly anonymous: false;
|
|
99
|
+
readonly inputs: readonly [{
|
|
100
|
+
readonly indexed: true;
|
|
101
|
+
readonly name: "addr";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
}, {
|
|
104
|
+
readonly indexed: false;
|
|
105
|
+
readonly name: "isBlacklisted";
|
|
106
|
+
readonly type: "bool";
|
|
107
|
+
}];
|
|
108
|
+
readonly name: "BlacklistModified";
|
|
109
|
+
readonly type: "event";
|
|
110
|
+
}, {
|
|
111
|
+
readonly anonymous: false;
|
|
112
|
+
readonly inputs: readonly [{
|
|
113
|
+
readonly indexed: false;
|
|
114
|
+
readonly name: "isPaused";
|
|
115
|
+
readonly type: "bool";
|
|
116
|
+
}];
|
|
117
|
+
readonly name: "TokenPauseModified";
|
|
118
|
+
readonly type: "event";
|
|
119
|
+
}, {
|
|
120
|
+
readonly anonymous: false;
|
|
121
|
+
readonly inputs: readonly [{
|
|
122
|
+
readonly indexed: false;
|
|
123
|
+
readonly name: "op";
|
|
124
|
+
readonly type: "uint8";
|
|
125
|
+
}, {
|
|
126
|
+
readonly indexed: true;
|
|
127
|
+
readonly name: "asset1";
|
|
128
|
+
readonly type: "address";
|
|
129
|
+
}, {
|
|
130
|
+
readonly indexed: true;
|
|
131
|
+
readonly name: "asset2";
|
|
132
|
+
readonly type: "address";
|
|
133
|
+
}, {
|
|
134
|
+
readonly indexed: false;
|
|
135
|
+
readonly name: "amount1";
|
|
136
|
+
readonly type: "uint256";
|
|
137
|
+
}, {
|
|
138
|
+
readonly indexed: false;
|
|
139
|
+
readonly name: "amount2";
|
|
140
|
+
readonly type: "uint256";
|
|
141
|
+
}, {
|
|
142
|
+
readonly indexed: false;
|
|
143
|
+
readonly name: "usdValue";
|
|
144
|
+
readonly type: "uint256";
|
|
145
|
+
}, {
|
|
146
|
+
readonly indexed: false;
|
|
147
|
+
readonly name: "legoId";
|
|
148
|
+
readonly type: "uint256";
|
|
149
|
+
}, {
|
|
150
|
+
readonly indexed: true;
|
|
151
|
+
readonly name: "signer";
|
|
152
|
+
readonly type: "address";
|
|
153
|
+
}];
|
|
154
|
+
readonly name: "LevgVaultAction";
|
|
155
|
+
readonly type: "event";
|
|
156
|
+
}, {
|
|
157
|
+
readonly anonymous: false;
|
|
158
|
+
readonly inputs: readonly [{
|
|
159
|
+
readonly indexed: true;
|
|
160
|
+
readonly name: "collateralVaultToken";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
}, {
|
|
163
|
+
readonly indexed: false;
|
|
164
|
+
readonly name: "legoId";
|
|
165
|
+
readonly type: "uint256";
|
|
166
|
+
}, {
|
|
167
|
+
readonly indexed: false;
|
|
168
|
+
readonly name: "ripeVaultId";
|
|
169
|
+
readonly type: "uint256";
|
|
170
|
+
}];
|
|
171
|
+
readonly name: "CollateralVaultTokenSet";
|
|
172
|
+
readonly type: "event";
|
|
173
|
+
}, {
|
|
174
|
+
readonly anonymous: false;
|
|
175
|
+
readonly inputs: readonly [{
|
|
176
|
+
readonly indexed: true;
|
|
177
|
+
readonly name: "leverageVaultToken";
|
|
178
|
+
readonly type: "address";
|
|
179
|
+
}, {
|
|
180
|
+
readonly indexed: false;
|
|
181
|
+
readonly name: "legoId";
|
|
182
|
+
readonly type: "uint256";
|
|
183
|
+
}, {
|
|
184
|
+
readonly indexed: false;
|
|
185
|
+
readonly name: "ripeVaultId";
|
|
186
|
+
readonly type: "uint256";
|
|
187
|
+
}];
|
|
188
|
+
readonly name: "LeverageVaultTokenSet";
|
|
189
|
+
readonly type: "event";
|
|
190
|
+
}, {
|
|
191
|
+
readonly anonymous: false;
|
|
192
|
+
readonly inputs: readonly [{
|
|
193
|
+
readonly indexed: false;
|
|
194
|
+
readonly name: "usdcSlippage";
|
|
195
|
+
readonly type: "uint256";
|
|
196
|
+
}, {
|
|
197
|
+
readonly indexed: false;
|
|
198
|
+
readonly name: "greenSlippage";
|
|
199
|
+
readonly type: "uint256";
|
|
200
|
+
}];
|
|
201
|
+
readonly name: "SlippagesSet";
|
|
202
|
+
readonly type: "event";
|
|
203
|
+
}, {
|
|
204
|
+
readonly anonymous: false;
|
|
205
|
+
readonly inputs: readonly [{
|
|
206
|
+
readonly indexed: true;
|
|
207
|
+
readonly name: "levgVaultHelper";
|
|
208
|
+
readonly type: "address";
|
|
209
|
+
}];
|
|
210
|
+
readonly name: "LevgVaultHelperSet";
|
|
211
|
+
readonly type: "event";
|
|
212
|
+
}, {
|
|
213
|
+
readonly anonymous: false;
|
|
214
|
+
readonly inputs: readonly [{
|
|
215
|
+
readonly indexed: false;
|
|
216
|
+
readonly name: "maxDebtRatio";
|
|
217
|
+
readonly type: "uint256";
|
|
218
|
+
}];
|
|
219
|
+
readonly name: "MaxDebtRatioSet";
|
|
220
|
+
readonly type: "event";
|
|
221
|
+
}, {
|
|
222
|
+
readonly inputs: readonly [];
|
|
223
|
+
readonly name: "name";
|
|
224
|
+
readonly outputs: readonly [{
|
|
225
|
+
readonly name: "";
|
|
226
|
+
readonly type: "string";
|
|
227
|
+
}];
|
|
228
|
+
readonly stateMutability: "view";
|
|
229
|
+
readonly type: "function";
|
|
230
|
+
}, {
|
|
231
|
+
readonly inputs: readonly [];
|
|
232
|
+
readonly name: "symbol";
|
|
233
|
+
readonly outputs: readonly [{
|
|
234
|
+
readonly name: "";
|
|
235
|
+
readonly type: "string";
|
|
236
|
+
}];
|
|
237
|
+
readonly stateMutability: "view";
|
|
238
|
+
readonly type: "function";
|
|
239
|
+
}, {
|
|
240
|
+
readonly inputs: readonly [];
|
|
241
|
+
readonly name: "decimals";
|
|
242
|
+
readonly outputs: readonly [{
|
|
243
|
+
readonly name: "";
|
|
244
|
+
readonly type: "uint8";
|
|
245
|
+
}];
|
|
246
|
+
readonly stateMutability: "view";
|
|
247
|
+
readonly type: "function";
|
|
248
|
+
}, {
|
|
249
|
+
readonly inputs: readonly [{
|
|
250
|
+
readonly name: "_recipient";
|
|
251
|
+
readonly type: "address";
|
|
252
|
+
}, {
|
|
253
|
+
readonly name: "_amount";
|
|
254
|
+
readonly type: "uint256";
|
|
255
|
+
}];
|
|
256
|
+
readonly name: "transfer";
|
|
257
|
+
readonly outputs: readonly [{
|
|
258
|
+
readonly name: "";
|
|
259
|
+
readonly type: "bool";
|
|
260
|
+
}];
|
|
261
|
+
readonly stateMutability: "nonpayable";
|
|
262
|
+
readonly type: "function";
|
|
263
|
+
}, {
|
|
264
|
+
readonly inputs: readonly [{
|
|
265
|
+
readonly name: "_sender";
|
|
266
|
+
readonly type: "address";
|
|
267
|
+
}, {
|
|
268
|
+
readonly name: "_recipient";
|
|
269
|
+
readonly type: "address";
|
|
270
|
+
}, {
|
|
271
|
+
readonly name: "_amount";
|
|
272
|
+
readonly type: "uint256";
|
|
273
|
+
}];
|
|
274
|
+
readonly name: "transferFrom";
|
|
275
|
+
readonly outputs: readonly [{
|
|
276
|
+
readonly name: "";
|
|
277
|
+
readonly type: "bool";
|
|
278
|
+
}];
|
|
279
|
+
readonly stateMutability: "nonpayable";
|
|
280
|
+
readonly type: "function";
|
|
281
|
+
}, {
|
|
282
|
+
readonly inputs: readonly [{
|
|
283
|
+
readonly name: "_spender";
|
|
284
|
+
readonly type: "address";
|
|
285
|
+
}, {
|
|
286
|
+
readonly name: "_amount";
|
|
287
|
+
readonly type: "uint256";
|
|
288
|
+
}];
|
|
289
|
+
readonly name: "approve";
|
|
290
|
+
readonly outputs: readonly [{
|
|
291
|
+
readonly name: "";
|
|
292
|
+
readonly type: "bool";
|
|
293
|
+
}];
|
|
294
|
+
readonly stateMutability: "nonpayable";
|
|
295
|
+
readonly type: "function";
|
|
296
|
+
}, {
|
|
297
|
+
readonly inputs: readonly [{
|
|
298
|
+
readonly name: "_spender";
|
|
299
|
+
readonly type: "address";
|
|
300
|
+
}, {
|
|
301
|
+
readonly name: "_amount";
|
|
302
|
+
readonly type: "uint256";
|
|
303
|
+
}];
|
|
304
|
+
readonly name: "increaseAllowance";
|
|
305
|
+
readonly outputs: readonly [{
|
|
306
|
+
readonly name: "";
|
|
307
|
+
readonly type: "bool";
|
|
308
|
+
}];
|
|
309
|
+
readonly stateMutability: "nonpayable";
|
|
310
|
+
readonly type: "function";
|
|
311
|
+
}, {
|
|
312
|
+
readonly inputs: readonly [{
|
|
313
|
+
readonly name: "_spender";
|
|
314
|
+
readonly type: "address";
|
|
315
|
+
}, {
|
|
316
|
+
readonly name: "_amount";
|
|
317
|
+
readonly type: "uint256";
|
|
318
|
+
}];
|
|
319
|
+
readonly name: "decreaseAllowance";
|
|
320
|
+
readonly outputs: readonly [{
|
|
321
|
+
readonly name: "";
|
|
322
|
+
readonly type: "bool";
|
|
323
|
+
}];
|
|
324
|
+
readonly stateMutability: "nonpayable";
|
|
325
|
+
readonly type: "function";
|
|
326
|
+
}, {
|
|
327
|
+
readonly inputs: readonly [{
|
|
328
|
+
readonly name: "_amount";
|
|
329
|
+
readonly type: "uint256";
|
|
330
|
+
}];
|
|
331
|
+
readonly name: "burn";
|
|
332
|
+
readonly outputs: readonly [{
|
|
333
|
+
readonly name: "";
|
|
334
|
+
readonly type: "bool";
|
|
335
|
+
}];
|
|
336
|
+
readonly stateMutability: "nonpayable";
|
|
337
|
+
readonly type: "function";
|
|
338
|
+
}, {
|
|
339
|
+
readonly inputs: readonly [];
|
|
340
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
341
|
+
readonly outputs: readonly [{
|
|
342
|
+
readonly name: "";
|
|
343
|
+
readonly type: "bytes32";
|
|
344
|
+
}];
|
|
345
|
+
readonly stateMutability: "view";
|
|
346
|
+
readonly type: "function";
|
|
347
|
+
}, {
|
|
348
|
+
readonly inputs: readonly [{
|
|
349
|
+
readonly name: "_owner";
|
|
350
|
+
readonly type: "address";
|
|
351
|
+
}, {
|
|
352
|
+
readonly name: "_spender";
|
|
353
|
+
readonly type: "address";
|
|
354
|
+
}, {
|
|
355
|
+
readonly name: "_value";
|
|
356
|
+
readonly type: "uint256";
|
|
357
|
+
}, {
|
|
358
|
+
readonly name: "_deadline";
|
|
359
|
+
readonly type: "uint256";
|
|
360
|
+
}, {
|
|
361
|
+
readonly name: "_signature";
|
|
362
|
+
readonly type: "bytes";
|
|
363
|
+
}];
|
|
364
|
+
readonly name: "permit";
|
|
365
|
+
readonly outputs: readonly [{
|
|
366
|
+
readonly name: "";
|
|
367
|
+
readonly type: "bool";
|
|
368
|
+
}];
|
|
369
|
+
readonly stateMutability: "nonpayable";
|
|
370
|
+
readonly type: "function";
|
|
371
|
+
}, {
|
|
372
|
+
readonly inputs: readonly [{
|
|
373
|
+
readonly name: "_addr";
|
|
374
|
+
readonly type: "address";
|
|
375
|
+
}, {
|
|
376
|
+
readonly name: "_shouldBlacklist";
|
|
377
|
+
readonly type: "bool";
|
|
378
|
+
}];
|
|
379
|
+
readonly name: "setBlacklist";
|
|
380
|
+
readonly outputs: readonly [{
|
|
381
|
+
readonly name: "";
|
|
382
|
+
readonly type: "bool";
|
|
383
|
+
}];
|
|
384
|
+
readonly stateMutability: "nonpayable";
|
|
385
|
+
readonly type: "function";
|
|
386
|
+
}, {
|
|
387
|
+
readonly inputs: readonly [{
|
|
388
|
+
readonly name: "_addr";
|
|
389
|
+
readonly type: "address";
|
|
390
|
+
}];
|
|
391
|
+
readonly name: "burnBlacklistTokens";
|
|
392
|
+
readonly outputs: readonly [{
|
|
393
|
+
readonly name: "";
|
|
394
|
+
readonly type: "bool";
|
|
395
|
+
}];
|
|
396
|
+
readonly stateMutability: "nonpayable";
|
|
397
|
+
readonly type: "function";
|
|
398
|
+
}, {
|
|
399
|
+
readonly inputs: readonly [{
|
|
400
|
+
readonly name: "_addr";
|
|
401
|
+
readonly type: "address";
|
|
402
|
+
}, {
|
|
403
|
+
readonly name: "_amount";
|
|
404
|
+
readonly type: "uint256";
|
|
405
|
+
}];
|
|
406
|
+
readonly name: "burnBlacklistTokens";
|
|
407
|
+
readonly outputs: readonly [{
|
|
408
|
+
readonly name: "";
|
|
409
|
+
readonly type: "bool";
|
|
410
|
+
}];
|
|
411
|
+
readonly stateMutability: "nonpayable";
|
|
412
|
+
readonly type: "function";
|
|
413
|
+
}, {
|
|
414
|
+
readonly inputs: readonly [{
|
|
415
|
+
readonly name: "_shouldPause";
|
|
416
|
+
readonly type: "bool";
|
|
417
|
+
}];
|
|
418
|
+
readonly name: "pause";
|
|
419
|
+
readonly outputs: readonly [];
|
|
420
|
+
readonly stateMutability: "nonpayable";
|
|
421
|
+
readonly type: "function";
|
|
422
|
+
}, {
|
|
423
|
+
readonly inputs: readonly [];
|
|
424
|
+
readonly name: "undyHq";
|
|
425
|
+
readonly outputs: readonly [{
|
|
426
|
+
readonly name: "";
|
|
427
|
+
readonly type: "address";
|
|
428
|
+
}];
|
|
429
|
+
readonly stateMutability: "view";
|
|
430
|
+
readonly type: "function";
|
|
431
|
+
}, {
|
|
432
|
+
readonly inputs: readonly [{
|
|
433
|
+
readonly name: "arg0";
|
|
434
|
+
readonly type: "address";
|
|
435
|
+
}];
|
|
436
|
+
readonly name: "blacklisted";
|
|
437
|
+
readonly outputs: readonly [{
|
|
438
|
+
readonly name: "";
|
|
439
|
+
readonly type: "bool";
|
|
440
|
+
}];
|
|
441
|
+
readonly stateMutability: "view";
|
|
442
|
+
readonly type: "function";
|
|
443
|
+
}, {
|
|
444
|
+
readonly inputs: readonly [];
|
|
445
|
+
readonly name: "isPaused";
|
|
446
|
+
readonly outputs: readonly [{
|
|
447
|
+
readonly name: "";
|
|
448
|
+
readonly type: "bool";
|
|
449
|
+
}];
|
|
450
|
+
readonly stateMutability: "view";
|
|
451
|
+
readonly type: "function";
|
|
452
|
+
}, {
|
|
453
|
+
readonly inputs: readonly [{
|
|
454
|
+
readonly name: "arg0";
|
|
455
|
+
readonly type: "address";
|
|
456
|
+
}];
|
|
457
|
+
readonly name: "balanceOf";
|
|
458
|
+
readonly outputs: readonly [{
|
|
459
|
+
readonly name: "";
|
|
460
|
+
readonly type: "uint256";
|
|
461
|
+
}];
|
|
462
|
+
readonly stateMutability: "view";
|
|
463
|
+
readonly type: "function";
|
|
464
|
+
}, {
|
|
465
|
+
readonly inputs: readonly [{
|
|
466
|
+
readonly name: "arg0";
|
|
467
|
+
readonly type: "address";
|
|
468
|
+
}, {
|
|
469
|
+
readonly name: "arg1";
|
|
470
|
+
readonly type: "address";
|
|
471
|
+
}];
|
|
472
|
+
readonly name: "allowance";
|
|
473
|
+
readonly outputs: readonly [{
|
|
474
|
+
readonly name: "";
|
|
475
|
+
readonly type: "uint256";
|
|
476
|
+
}];
|
|
477
|
+
readonly stateMutability: "view";
|
|
478
|
+
readonly type: "function";
|
|
479
|
+
}, {
|
|
480
|
+
readonly inputs: readonly [];
|
|
481
|
+
readonly name: "totalSupply";
|
|
482
|
+
readonly outputs: readonly [{
|
|
483
|
+
readonly name: "";
|
|
484
|
+
readonly type: "uint256";
|
|
485
|
+
}];
|
|
486
|
+
readonly stateMutability: "view";
|
|
487
|
+
readonly type: "function";
|
|
488
|
+
}, {
|
|
489
|
+
readonly inputs: readonly [];
|
|
490
|
+
readonly name: "TOKEN_NAME";
|
|
491
|
+
readonly outputs: readonly [{
|
|
492
|
+
readonly name: "";
|
|
493
|
+
readonly type: "string";
|
|
494
|
+
}];
|
|
495
|
+
readonly stateMutability: "view";
|
|
496
|
+
readonly type: "function";
|
|
497
|
+
}, {
|
|
498
|
+
readonly inputs: readonly [];
|
|
499
|
+
readonly name: "TOKEN_SYMBOL";
|
|
500
|
+
readonly outputs: readonly [{
|
|
501
|
+
readonly name: "";
|
|
502
|
+
readonly type: "string";
|
|
503
|
+
}];
|
|
504
|
+
readonly stateMutability: "view";
|
|
505
|
+
readonly type: "function";
|
|
506
|
+
}, {
|
|
507
|
+
readonly inputs: readonly [];
|
|
508
|
+
readonly name: "TOKEN_DECIMALS";
|
|
509
|
+
readonly outputs: readonly [{
|
|
510
|
+
readonly name: "";
|
|
511
|
+
readonly type: "uint8";
|
|
512
|
+
}];
|
|
513
|
+
readonly stateMutability: "view";
|
|
514
|
+
readonly type: "function";
|
|
515
|
+
}, {
|
|
516
|
+
readonly inputs: readonly [];
|
|
517
|
+
readonly name: "VERSION";
|
|
518
|
+
readonly outputs: readonly [{
|
|
519
|
+
readonly name: "";
|
|
520
|
+
readonly type: "string";
|
|
521
|
+
}];
|
|
522
|
+
readonly stateMutability: "view";
|
|
523
|
+
readonly type: "function";
|
|
524
|
+
}, {
|
|
525
|
+
readonly inputs: readonly [{
|
|
526
|
+
readonly name: "arg0";
|
|
527
|
+
readonly type: "address";
|
|
528
|
+
}];
|
|
529
|
+
readonly name: "nonces";
|
|
530
|
+
readonly outputs: readonly [{
|
|
531
|
+
readonly name: "";
|
|
532
|
+
readonly type: "uint256";
|
|
533
|
+
}];
|
|
534
|
+
readonly stateMutability: "view";
|
|
535
|
+
readonly type: "function";
|
|
536
|
+
}, {
|
|
537
|
+
readonly inputs: readonly [{
|
|
538
|
+
readonly name: "_legoId";
|
|
539
|
+
readonly type: "uint256";
|
|
540
|
+
}, {
|
|
541
|
+
readonly name: "_asset";
|
|
542
|
+
readonly type: "address";
|
|
543
|
+
}];
|
|
544
|
+
readonly name: "depositForYield";
|
|
545
|
+
readonly outputs: readonly [{
|
|
546
|
+
readonly name: "";
|
|
547
|
+
readonly type: "uint256";
|
|
548
|
+
}, {
|
|
549
|
+
readonly name: "";
|
|
550
|
+
readonly type: "address";
|
|
551
|
+
}, {
|
|
552
|
+
readonly name: "";
|
|
553
|
+
readonly type: "uint256";
|
|
554
|
+
}, {
|
|
555
|
+
readonly name: "";
|
|
556
|
+
readonly type: "uint256";
|
|
557
|
+
}];
|
|
558
|
+
readonly stateMutability: "nonpayable";
|
|
559
|
+
readonly type: "function";
|
|
560
|
+
}, {
|
|
561
|
+
readonly inputs: readonly [{
|
|
562
|
+
readonly name: "_legoId";
|
|
563
|
+
readonly type: "uint256";
|
|
564
|
+
}, {
|
|
565
|
+
readonly name: "_asset";
|
|
566
|
+
readonly type: "address";
|
|
567
|
+
}, {
|
|
568
|
+
readonly name: "_vaultAddr";
|
|
569
|
+
readonly type: "address";
|
|
570
|
+
}];
|
|
571
|
+
readonly name: "depositForYield";
|
|
572
|
+
readonly outputs: readonly [{
|
|
573
|
+
readonly name: "";
|
|
574
|
+
readonly type: "uint256";
|
|
575
|
+
}, {
|
|
576
|
+
readonly name: "";
|
|
577
|
+
readonly type: "address";
|
|
578
|
+
}, {
|
|
579
|
+
readonly name: "";
|
|
580
|
+
readonly type: "uint256";
|
|
581
|
+
}, {
|
|
582
|
+
readonly name: "";
|
|
583
|
+
readonly type: "uint256";
|
|
584
|
+
}];
|
|
585
|
+
readonly stateMutability: "nonpayable";
|
|
586
|
+
readonly type: "function";
|
|
587
|
+
}, {
|
|
588
|
+
readonly inputs: readonly [{
|
|
589
|
+
readonly name: "_legoId";
|
|
590
|
+
readonly type: "uint256";
|
|
591
|
+
}, {
|
|
592
|
+
readonly name: "_asset";
|
|
593
|
+
readonly type: "address";
|
|
594
|
+
}, {
|
|
595
|
+
readonly name: "_vaultAddr";
|
|
596
|
+
readonly type: "address";
|
|
597
|
+
}, {
|
|
598
|
+
readonly name: "_amount";
|
|
599
|
+
readonly type: "uint256";
|
|
600
|
+
}];
|
|
601
|
+
readonly name: "depositForYield";
|
|
602
|
+
readonly outputs: readonly [{
|
|
603
|
+
readonly name: "";
|
|
604
|
+
readonly type: "uint256";
|
|
605
|
+
}, {
|
|
606
|
+
readonly name: "";
|
|
607
|
+
readonly type: "address";
|
|
608
|
+
}, {
|
|
609
|
+
readonly name: "";
|
|
610
|
+
readonly type: "uint256";
|
|
611
|
+
}, {
|
|
612
|
+
readonly name: "";
|
|
613
|
+
readonly type: "uint256";
|
|
614
|
+
}];
|
|
615
|
+
readonly stateMutability: "nonpayable";
|
|
616
|
+
readonly type: "function";
|
|
617
|
+
}, {
|
|
618
|
+
readonly inputs: readonly [{
|
|
619
|
+
readonly name: "_legoId";
|
|
620
|
+
readonly type: "uint256";
|
|
621
|
+
}, {
|
|
622
|
+
readonly name: "_asset";
|
|
623
|
+
readonly type: "address";
|
|
624
|
+
}, {
|
|
625
|
+
readonly name: "_vaultAddr";
|
|
626
|
+
readonly type: "address";
|
|
627
|
+
}, {
|
|
628
|
+
readonly name: "_amount";
|
|
629
|
+
readonly type: "uint256";
|
|
630
|
+
}, {
|
|
631
|
+
readonly name: "_extraData";
|
|
632
|
+
readonly type: "bytes32";
|
|
633
|
+
}];
|
|
634
|
+
readonly name: "depositForYield";
|
|
635
|
+
readonly outputs: readonly [{
|
|
636
|
+
readonly name: "";
|
|
637
|
+
readonly type: "uint256";
|
|
638
|
+
}, {
|
|
639
|
+
readonly name: "";
|
|
640
|
+
readonly type: "address";
|
|
641
|
+
}, {
|
|
642
|
+
readonly name: "";
|
|
643
|
+
readonly type: "uint256";
|
|
644
|
+
}, {
|
|
645
|
+
readonly name: "";
|
|
646
|
+
readonly type: "uint256";
|
|
647
|
+
}];
|
|
648
|
+
readonly stateMutability: "nonpayable";
|
|
649
|
+
readonly type: "function";
|
|
650
|
+
}, {
|
|
651
|
+
readonly inputs: readonly [{
|
|
652
|
+
readonly name: "_legoId";
|
|
653
|
+
readonly type: "uint256";
|
|
654
|
+
}, {
|
|
655
|
+
readonly name: "_vaultToken";
|
|
656
|
+
readonly type: "address";
|
|
657
|
+
}];
|
|
658
|
+
readonly name: "withdrawFromYield";
|
|
659
|
+
readonly outputs: readonly [{
|
|
660
|
+
readonly name: "";
|
|
661
|
+
readonly type: "uint256";
|
|
662
|
+
}, {
|
|
663
|
+
readonly name: "";
|
|
664
|
+
readonly type: "address";
|
|
665
|
+
}, {
|
|
666
|
+
readonly name: "";
|
|
667
|
+
readonly type: "uint256";
|
|
668
|
+
}, {
|
|
669
|
+
readonly name: "";
|
|
670
|
+
readonly type: "uint256";
|
|
671
|
+
}];
|
|
672
|
+
readonly stateMutability: "nonpayable";
|
|
673
|
+
readonly type: "function";
|
|
674
|
+
}, {
|
|
675
|
+
readonly inputs: readonly [{
|
|
676
|
+
readonly name: "_legoId";
|
|
677
|
+
readonly type: "uint256";
|
|
678
|
+
}, {
|
|
679
|
+
readonly name: "_vaultToken";
|
|
680
|
+
readonly type: "address";
|
|
681
|
+
}, {
|
|
682
|
+
readonly name: "_amount";
|
|
683
|
+
readonly type: "uint256";
|
|
684
|
+
}];
|
|
685
|
+
readonly name: "withdrawFromYield";
|
|
686
|
+
readonly outputs: readonly [{
|
|
687
|
+
readonly name: "";
|
|
688
|
+
readonly type: "uint256";
|
|
689
|
+
}, {
|
|
690
|
+
readonly name: "";
|
|
691
|
+
readonly type: "address";
|
|
692
|
+
}, {
|
|
693
|
+
readonly name: "";
|
|
694
|
+
readonly type: "uint256";
|
|
695
|
+
}, {
|
|
696
|
+
readonly name: "";
|
|
697
|
+
readonly type: "uint256";
|
|
698
|
+
}];
|
|
699
|
+
readonly stateMutability: "nonpayable";
|
|
700
|
+
readonly type: "function";
|
|
701
|
+
}, {
|
|
702
|
+
readonly inputs: readonly [{
|
|
703
|
+
readonly name: "_legoId";
|
|
704
|
+
readonly type: "uint256";
|
|
705
|
+
}, {
|
|
706
|
+
readonly name: "_vaultToken";
|
|
707
|
+
readonly type: "address";
|
|
708
|
+
}, {
|
|
709
|
+
readonly name: "_amount";
|
|
710
|
+
readonly type: "uint256";
|
|
711
|
+
}, {
|
|
712
|
+
readonly name: "_extraData";
|
|
713
|
+
readonly type: "bytes32";
|
|
714
|
+
}];
|
|
715
|
+
readonly name: "withdrawFromYield";
|
|
716
|
+
readonly outputs: readonly [{
|
|
717
|
+
readonly name: "";
|
|
718
|
+
readonly type: "uint256";
|
|
719
|
+
}, {
|
|
720
|
+
readonly name: "";
|
|
721
|
+
readonly type: "address";
|
|
722
|
+
}, {
|
|
723
|
+
readonly name: "";
|
|
724
|
+
readonly type: "uint256";
|
|
725
|
+
}, {
|
|
726
|
+
readonly name: "";
|
|
727
|
+
readonly type: "uint256";
|
|
728
|
+
}];
|
|
729
|
+
readonly stateMutability: "nonpayable";
|
|
730
|
+
readonly type: "function";
|
|
731
|
+
}, {
|
|
732
|
+
readonly inputs: readonly [{
|
|
733
|
+
readonly name: "_legoId";
|
|
734
|
+
readonly type: "uint256";
|
|
735
|
+
}, {
|
|
736
|
+
readonly name: "_vaultToken";
|
|
737
|
+
readonly type: "address";
|
|
738
|
+
}, {
|
|
739
|
+
readonly name: "_amount";
|
|
740
|
+
readonly type: "uint256";
|
|
741
|
+
}, {
|
|
742
|
+
readonly name: "_extraData";
|
|
743
|
+
readonly type: "bytes32";
|
|
744
|
+
}, {
|
|
745
|
+
readonly name: "_isSpecialTx";
|
|
746
|
+
readonly type: "bool";
|
|
747
|
+
}];
|
|
748
|
+
readonly name: "withdrawFromYield";
|
|
749
|
+
readonly outputs: readonly [{
|
|
750
|
+
readonly name: "";
|
|
751
|
+
readonly type: "uint256";
|
|
752
|
+
}, {
|
|
753
|
+
readonly name: "";
|
|
754
|
+
readonly type: "address";
|
|
755
|
+
}, {
|
|
756
|
+
readonly name: "";
|
|
757
|
+
readonly type: "uint256";
|
|
758
|
+
}, {
|
|
759
|
+
readonly name: "";
|
|
760
|
+
readonly type: "uint256";
|
|
761
|
+
}];
|
|
762
|
+
readonly stateMutability: "nonpayable";
|
|
763
|
+
readonly type: "function";
|
|
764
|
+
}, {
|
|
765
|
+
readonly inputs: readonly [{
|
|
766
|
+
readonly components: readonly [{
|
|
767
|
+
readonly name: "legoId";
|
|
768
|
+
readonly type: "uint256";
|
|
769
|
+
}, {
|
|
770
|
+
readonly name: "amountIn";
|
|
771
|
+
readonly type: "uint256";
|
|
772
|
+
}, {
|
|
773
|
+
readonly name: "minAmountOut";
|
|
774
|
+
readonly type: "uint256";
|
|
775
|
+
}, {
|
|
776
|
+
readonly name: "tokenPath";
|
|
777
|
+
readonly type: "address[]";
|
|
778
|
+
}, {
|
|
779
|
+
readonly name: "poolPath";
|
|
780
|
+
readonly type: "address[]";
|
|
781
|
+
}];
|
|
782
|
+
readonly name: "_instructions";
|
|
783
|
+
readonly type: "tuple[]";
|
|
784
|
+
}];
|
|
785
|
+
readonly name: "swapTokens";
|
|
786
|
+
readonly outputs: readonly [{
|
|
787
|
+
readonly name: "";
|
|
788
|
+
readonly type: "address";
|
|
789
|
+
}, {
|
|
790
|
+
readonly name: "";
|
|
791
|
+
readonly type: "uint256";
|
|
792
|
+
}, {
|
|
793
|
+
readonly name: "";
|
|
794
|
+
readonly type: "address";
|
|
795
|
+
}, {
|
|
796
|
+
readonly name: "";
|
|
797
|
+
readonly type: "uint256";
|
|
798
|
+
}, {
|
|
799
|
+
readonly name: "";
|
|
800
|
+
readonly type: "uint256";
|
|
801
|
+
}];
|
|
802
|
+
readonly stateMutability: "nonpayable";
|
|
803
|
+
readonly type: "function";
|
|
804
|
+
}, {
|
|
805
|
+
readonly inputs: readonly [{
|
|
806
|
+
readonly name: "_legoId";
|
|
807
|
+
readonly type: "uint256";
|
|
808
|
+
}, {
|
|
809
|
+
readonly name: "_asset";
|
|
810
|
+
readonly type: "address";
|
|
811
|
+
}];
|
|
812
|
+
readonly name: "addCollateral";
|
|
813
|
+
readonly outputs: readonly [{
|
|
814
|
+
readonly name: "";
|
|
815
|
+
readonly type: "uint256";
|
|
816
|
+
}, {
|
|
817
|
+
readonly name: "";
|
|
818
|
+
readonly type: "uint256";
|
|
819
|
+
}];
|
|
820
|
+
readonly stateMutability: "nonpayable";
|
|
821
|
+
readonly type: "function";
|
|
822
|
+
}, {
|
|
823
|
+
readonly inputs: readonly [{
|
|
824
|
+
readonly name: "_legoId";
|
|
825
|
+
readonly type: "uint256";
|
|
826
|
+
}, {
|
|
827
|
+
readonly name: "_asset";
|
|
828
|
+
readonly type: "address";
|
|
829
|
+
}, {
|
|
830
|
+
readonly name: "_amount";
|
|
831
|
+
readonly type: "uint256";
|
|
832
|
+
}];
|
|
833
|
+
readonly name: "addCollateral";
|
|
834
|
+
readonly outputs: readonly [{
|
|
835
|
+
readonly name: "";
|
|
836
|
+
readonly type: "uint256";
|
|
837
|
+
}, {
|
|
838
|
+
readonly name: "";
|
|
839
|
+
readonly type: "uint256";
|
|
840
|
+
}];
|
|
841
|
+
readonly stateMutability: "nonpayable";
|
|
842
|
+
readonly type: "function";
|
|
843
|
+
}, {
|
|
844
|
+
readonly inputs: readonly [{
|
|
845
|
+
readonly name: "_legoId";
|
|
846
|
+
readonly type: "uint256";
|
|
847
|
+
}, {
|
|
848
|
+
readonly name: "_asset";
|
|
849
|
+
readonly type: "address";
|
|
850
|
+
}, {
|
|
851
|
+
readonly name: "_amount";
|
|
852
|
+
readonly type: "uint256";
|
|
853
|
+
}, {
|
|
854
|
+
readonly name: "_extraData";
|
|
855
|
+
readonly type: "bytes32";
|
|
856
|
+
}];
|
|
857
|
+
readonly name: "addCollateral";
|
|
858
|
+
readonly outputs: readonly [{
|
|
859
|
+
readonly name: "";
|
|
860
|
+
readonly type: "uint256";
|
|
861
|
+
}, {
|
|
862
|
+
readonly name: "";
|
|
863
|
+
readonly type: "uint256";
|
|
864
|
+
}];
|
|
865
|
+
readonly stateMutability: "nonpayable";
|
|
866
|
+
readonly type: "function";
|
|
867
|
+
}, {
|
|
868
|
+
readonly inputs: readonly [{
|
|
869
|
+
readonly name: "_legoId";
|
|
870
|
+
readonly type: "uint256";
|
|
871
|
+
}, {
|
|
872
|
+
readonly name: "_asset";
|
|
873
|
+
readonly type: "address";
|
|
874
|
+
}];
|
|
875
|
+
readonly name: "removeCollateral";
|
|
876
|
+
readonly outputs: readonly [{
|
|
877
|
+
readonly name: "";
|
|
878
|
+
readonly type: "uint256";
|
|
879
|
+
}, {
|
|
880
|
+
readonly name: "";
|
|
881
|
+
readonly type: "uint256";
|
|
882
|
+
}];
|
|
883
|
+
readonly stateMutability: "nonpayable";
|
|
884
|
+
readonly type: "function";
|
|
885
|
+
}, {
|
|
886
|
+
readonly inputs: readonly [{
|
|
887
|
+
readonly name: "_legoId";
|
|
888
|
+
readonly type: "uint256";
|
|
889
|
+
}, {
|
|
890
|
+
readonly name: "_asset";
|
|
891
|
+
readonly type: "address";
|
|
892
|
+
}, {
|
|
893
|
+
readonly name: "_amount";
|
|
894
|
+
readonly type: "uint256";
|
|
895
|
+
}];
|
|
896
|
+
readonly name: "removeCollateral";
|
|
897
|
+
readonly outputs: readonly [{
|
|
898
|
+
readonly name: "";
|
|
899
|
+
readonly type: "uint256";
|
|
900
|
+
}, {
|
|
901
|
+
readonly name: "";
|
|
902
|
+
readonly type: "uint256";
|
|
903
|
+
}];
|
|
904
|
+
readonly stateMutability: "nonpayable";
|
|
905
|
+
readonly type: "function";
|
|
906
|
+
}, {
|
|
907
|
+
readonly inputs: readonly [{
|
|
908
|
+
readonly name: "_legoId";
|
|
909
|
+
readonly type: "uint256";
|
|
910
|
+
}, {
|
|
911
|
+
readonly name: "_asset";
|
|
912
|
+
readonly type: "address";
|
|
913
|
+
}, {
|
|
914
|
+
readonly name: "_amount";
|
|
915
|
+
readonly type: "uint256";
|
|
916
|
+
}, {
|
|
917
|
+
readonly name: "_extraData";
|
|
918
|
+
readonly type: "bytes32";
|
|
919
|
+
}];
|
|
920
|
+
readonly name: "removeCollateral";
|
|
921
|
+
readonly outputs: readonly [{
|
|
922
|
+
readonly name: "";
|
|
923
|
+
readonly type: "uint256";
|
|
924
|
+
}, {
|
|
925
|
+
readonly name: "";
|
|
926
|
+
readonly type: "uint256";
|
|
927
|
+
}];
|
|
928
|
+
readonly stateMutability: "nonpayable";
|
|
929
|
+
readonly type: "function";
|
|
930
|
+
}, {
|
|
931
|
+
readonly inputs: readonly [{
|
|
932
|
+
readonly name: "_legoId";
|
|
933
|
+
readonly type: "uint256";
|
|
934
|
+
}, {
|
|
935
|
+
readonly name: "_borrowAsset";
|
|
936
|
+
readonly type: "address";
|
|
937
|
+
}];
|
|
938
|
+
readonly name: "borrow";
|
|
939
|
+
readonly outputs: readonly [{
|
|
940
|
+
readonly name: "";
|
|
941
|
+
readonly type: "uint256";
|
|
942
|
+
}, {
|
|
943
|
+
readonly name: "";
|
|
944
|
+
readonly type: "uint256";
|
|
945
|
+
}];
|
|
946
|
+
readonly stateMutability: "nonpayable";
|
|
947
|
+
readonly type: "function";
|
|
948
|
+
}, {
|
|
949
|
+
readonly inputs: readonly [{
|
|
950
|
+
readonly name: "_legoId";
|
|
951
|
+
readonly type: "uint256";
|
|
952
|
+
}, {
|
|
953
|
+
readonly name: "_borrowAsset";
|
|
954
|
+
readonly type: "address";
|
|
955
|
+
}, {
|
|
956
|
+
readonly name: "_amount";
|
|
957
|
+
readonly type: "uint256";
|
|
958
|
+
}];
|
|
959
|
+
readonly name: "borrow";
|
|
960
|
+
readonly outputs: readonly [{
|
|
961
|
+
readonly name: "";
|
|
962
|
+
readonly type: "uint256";
|
|
963
|
+
}, {
|
|
964
|
+
readonly name: "";
|
|
965
|
+
readonly type: "uint256";
|
|
966
|
+
}];
|
|
967
|
+
readonly stateMutability: "nonpayable";
|
|
968
|
+
readonly type: "function";
|
|
969
|
+
}, {
|
|
970
|
+
readonly inputs: readonly [{
|
|
971
|
+
readonly name: "_legoId";
|
|
972
|
+
readonly type: "uint256";
|
|
973
|
+
}, {
|
|
974
|
+
readonly name: "_borrowAsset";
|
|
975
|
+
readonly type: "address";
|
|
976
|
+
}, {
|
|
977
|
+
readonly name: "_amount";
|
|
978
|
+
readonly type: "uint256";
|
|
979
|
+
}, {
|
|
980
|
+
readonly name: "_extraData";
|
|
981
|
+
readonly type: "bytes32";
|
|
982
|
+
}];
|
|
983
|
+
readonly name: "borrow";
|
|
984
|
+
readonly outputs: readonly [{
|
|
985
|
+
readonly name: "";
|
|
986
|
+
readonly type: "uint256";
|
|
987
|
+
}, {
|
|
988
|
+
readonly name: "";
|
|
989
|
+
readonly type: "uint256";
|
|
990
|
+
}];
|
|
991
|
+
readonly stateMutability: "nonpayable";
|
|
992
|
+
readonly type: "function";
|
|
993
|
+
}, {
|
|
994
|
+
readonly inputs: readonly [{
|
|
995
|
+
readonly name: "_legoId";
|
|
996
|
+
readonly type: "uint256";
|
|
997
|
+
}, {
|
|
998
|
+
readonly name: "_paymentAsset";
|
|
999
|
+
readonly type: "address";
|
|
1000
|
+
}];
|
|
1001
|
+
readonly name: "repayDebt";
|
|
1002
|
+
readonly outputs: readonly [{
|
|
1003
|
+
readonly name: "";
|
|
1004
|
+
readonly type: "uint256";
|
|
1005
|
+
}, {
|
|
1006
|
+
readonly name: "";
|
|
1007
|
+
readonly type: "uint256";
|
|
1008
|
+
}];
|
|
1009
|
+
readonly stateMutability: "nonpayable";
|
|
1010
|
+
readonly type: "function";
|
|
1011
|
+
}, {
|
|
1012
|
+
readonly inputs: readonly [{
|
|
1013
|
+
readonly name: "_legoId";
|
|
1014
|
+
readonly type: "uint256";
|
|
1015
|
+
}, {
|
|
1016
|
+
readonly name: "_paymentAsset";
|
|
1017
|
+
readonly type: "address";
|
|
1018
|
+
}, {
|
|
1019
|
+
readonly name: "_paymentAmount";
|
|
1020
|
+
readonly type: "uint256";
|
|
1021
|
+
}];
|
|
1022
|
+
readonly name: "repayDebt";
|
|
1023
|
+
readonly outputs: readonly [{
|
|
1024
|
+
readonly name: "";
|
|
1025
|
+
readonly type: "uint256";
|
|
1026
|
+
}, {
|
|
1027
|
+
readonly name: "";
|
|
1028
|
+
readonly type: "uint256";
|
|
1029
|
+
}];
|
|
1030
|
+
readonly stateMutability: "nonpayable";
|
|
1031
|
+
readonly type: "function";
|
|
1032
|
+
}, {
|
|
1033
|
+
readonly inputs: readonly [{
|
|
1034
|
+
readonly name: "_legoId";
|
|
1035
|
+
readonly type: "uint256";
|
|
1036
|
+
}, {
|
|
1037
|
+
readonly name: "_paymentAsset";
|
|
1038
|
+
readonly type: "address";
|
|
1039
|
+
}, {
|
|
1040
|
+
readonly name: "_paymentAmount";
|
|
1041
|
+
readonly type: "uint256";
|
|
1042
|
+
}, {
|
|
1043
|
+
readonly name: "_extraData";
|
|
1044
|
+
readonly type: "bytes32";
|
|
1045
|
+
}];
|
|
1046
|
+
readonly name: "repayDebt";
|
|
1047
|
+
readonly outputs: readonly [{
|
|
1048
|
+
readonly name: "";
|
|
1049
|
+
readonly type: "uint256";
|
|
1050
|
+
}, {
|
|
1051
|
+
readonly name: "";
|
|
1052
|
+
readonly type: "uint256";
|
|
1053
|
+
}];
|
|
1054
|
+
readonly stateMutability: "nonpayable";
|
|
1055
|
+
readonly type: "function";
|
|
1056
|
+
}, {
|
|
1057
|
+
readonly inputs: readonly [{
|
|
1058
|
+
readonly name: "_legoId";
|
|
1059
|
+
readonly type: "uint256";
|
|
1060
|
+
}];
|
|
1061
|
+
readonly name: "claimIncentives";
|
|
1062
|
+
readonly outputs: readonly [{
|
|
1063
|
+
readonly name: "";
|
|
1064
|
+
readonly type: "uint256";
|
|
1065
|
+
}, {
|
|
1066
|
+
readonly name: "";
|
|
1067
|
+
readonly type: "uint256";
|
|
1068
|
+
}];
|
|
1069
|
+
readonly stateMutability: "nonpayable";
|
|
1070
|
+
readonly type: "function";
|
|
1071
|
+
}, {
|
|
1072
|
+
readonly inputs: readonly [{
|
|
1073
|
+
readonly name: "_legoId";
|
|
1074
|
+
readonly type: "uint256";
|
|
1075
|
+
}, {
|
|
1076
|
+
readonly name: "_rewardToken";
|
|
1077
|
+
readonly type: "address";
|
|
1078
|
+
}];
|
|
1079
|
+
readonly name: "claimIncentives";
|
|
1080
|
+
readonly outputs: readonly [{
|
|
1081
|
+
readonly name: "";
|
|
1082
|
+
readonly type: "uint256";
|
|
1083
|
+
}, {
|
|
1084
|
+
readonly name: "";
|
|
1085
|
+
readonly type: "uint256";
|
|
1086
|
+
}];
|
|
1087
|
+
readonly stateMutability: "nonpayable";
|
|
1088
|
+
readonly type: "function";
|
|
1089
|
+
}, {
|
|
1090
|
+
readonly inputs: readonly [{
|
|
1091
|
+
readonly name: "_legoId";
|
|
1092
|
+
readonly type: "uint256";
|
|
1093
|
+
}, {
|
|
1094
|
+
readonly name: "_rewardToken";
|
|
1095
|
+
readonly type: "address";
|
|
1096
|
+
}, {
|
|
1097
|
+
readonly name: "_rewardAmount";
|
|
1098
|
+
readonly type: "uint256";
|
|
1099
|
+
}];
|
|
1100
|
+
readonly name: "claimIncentives";
|
|
1101
|
+
readonly outputs: readonly [{
|
|
1102
|
+
readonly name: "";
|
|
1103
|
+
readonly type: "uint256";
|
|
1104
|
+
}, {
|
|
1105
|
+
readonly name: "";
|
|
1106
|
+
readonly type: "uint256";
|
|
1107
|
+
}];
|
|
1108
|
+
readonly stateMutability: "nonpayable";
|
|
1109
|
+
readonly type: "function";
|
|
1110
|
+
}, {
|
|
1111
|
+
readonly inputs: readonly [{
|
|
1112
|
+
readonly name: "_legoId";
|
|
1113
|
+
readonly type: "uint256";
|
|
1114
|
+
}, {
|
|
1115
|
+
readonly name: "_rewardToken";
|
|
1116
|
+
readonly type: "address";
|
|
1117
|
+
}, {
|
|
1118
|
+
readonly name: "_rewardAmount";
|
|
1119
|
+
readonly type: "uint256";
|
|
1120
|
+
}, {
|
|
1121
|
+
readonly name: "_proofs";
|
|
1122
|
+
readonly type: "bytes32[]";
|
|
1123
|
+
}];
|
|
1124
|
+
readonly name: "claimIncentives";
|
|
1125
|
+
readonly outputs: readonly [{
|
|
1126
|
+
readonly name: "";
|
|
1127
|
+
readonly type: "uint256";
|
|
1128
|
+
}, {
|
|
1129
|
+
readonly name: "";
|
|
1130
|
+
readonly type: "uint256";
|
|
1131
|
+
}];
|
|
1132
|
+
readonly stateMutability: "nonpayable";
|
|
1133
|
+
readonly type: "function";
|
|
1134
|
+
}, {
|
|
1135
|
+
readonly inputs: readonly [{
|
|
1136
|
+
readonly name: "_vaultToken";
|
|
1137
|
+
readonly type: "address";
|
|
1138
|
+
}, {
|
|
1139
|
+
readonly name: "_legoId";
|
|
1140
|
+
readonly type: "uint256";
|
|
1141
|
+
}, {
|
|
1142
|
+
readonly name: "_ripeVaultId";
|
|
1143
|
+
readonly type: "uint256";
|
|
1144
|
+
}, {
|
|
1145
|
+
readonly name: "_shouldMaxWithdraw";
|
|
1146
|
+
readonly type: "bool";
|
|
1147
|
+
}];
|
|
1148
|
+
readonly name: "setCollateralVault";
|
|
1149
|
+
readonly outputs: readonly [];
|
|
1150
|
+
readonly stateMutability: "nonpayable";
|
|
1151
|
+
readonly type: "function";
|
|
1152
|
+
}, {
|
|
1153
|
+
readonly inputs: readonly [{
|
|
1154
|
+
readonly name: "_vaultToken";
|
|
1155
|
+
readonly type: "address";
|
|
1156
|
+
}, {
|
|
1157
|
+
readonly name: "_legoId";
|
|
1158
|
+
readonly type: "uint256";
|
|
1159
|
+
}, {
|
|
1160
|
+
readonly name: "_ripeVaultId";
|
|
1161
|
+
readonly type: "uint256";
|
|
1162
|
+
}, {
|
|
1163
|
+
readonly name: "_shouldMaxWithdraw";
|
|
1164
|
+
readonly type: "bool";
|
|
1165
|
+
}];
|
|
1166
|
+
readonly name: "setLeverageVault";
|
|
1167
|
+
readonly outputs: readonly [];
|
|
1168
|
+
readonly stateMutability: "nonpayable";
|
|
1169
|
+
readonly type: "function";
|
|
1170
|
+
}, {
|
|
1171
|
+
readonly inputs: readonly [{
|
|
1172
|
+
readonly name: "_usdcSlippage";
|
|
1173
|
+
readonly type: "uint256";
|
|
1174
|
+
}, {
|
|
1175
|
+
readonly name: "_greenSlippage";
|
|
1176
|
+
readonly type: "uint256";
|
|
1177
|
+
}];
|
|
1178
|
+
readonly name: "setSlippagesAllowed";
|
|
1179
|
+
readonly outputs: readonly [];
|
|
1180
|
+
readonly stateMutability: "nonpayable";
|
|
1181
|
+
readonly type: "function";
|
|
1182
|
+
}, {
|
|
1183
|
+
readonly inputs: readonly [{
|
|
1184
|
+
readonly name: "_levgVaultHelper";
|
|
1185
|
+
readonly type: "address";
|
|
1186
|
+
}];
|
|
1187
|
+
readonly name: "setLevgVaultHelper";
|
|
1188
|
+
readonly outputs: readonly [];
|
|
1189
|
+
readonly stateMutability: "nonpayable";
|
|
1190
|
+
readonly type: "function";
|
|
1191
|
+
}, {
|
|
1192
|
+
readonly inputs: readonly [{
|
|
1193
|
+
readonly name: "_ratio";
|
|
1194
|
+
readonly type: "uint256";
|
|
1195
|
+
}];
|
|
1196
|
+
readonly name: "setMaxDebtRatio";
|
|
1197
|
+
readonly outputs: readonly [];
|
|
1198
|
+
readonly stateMutability: "nonpayable";
|
|
1199
|
+
readonly type: "function";
|
|
1200
|
+
}, {
|
|
1201
|
+
readonly inputs: readonly [{
|
|
1202
|
+
readonly name: "_manager";
|
|
1203
|
+
readonly type: "address";
|
|
1204
|
+
}];
|
|
1205
|
+
readonly name: "addManager";
|
|
1206
|
+
readonly outputs: readonly [];
|
|
1207
|
+
readonly stateMutability: "nonpayable";
|
|
1208
|
+
readonly type: "function";
|
|
1209
|
+
}, {
|
|
1210
|
+
readonly inputs: readonly [{
|
|
1211
|
+
readonly name: "_manager";
|
|
1212
|
+
readonly type: "address";
|
|
1213
|
+
}];
|
|
1214
|
+
readonly name: "removeManager";
|
|
1215
|
+
readonly outputs: readonly [];
|
|
1216
|
+
readonly stateMutability: "nonpayable";
|
|
1217
|
+
readonly type: "function";
|
|
1218
|
+
}, {
|
|
1219
|
+
readonly inputs: readonly [{
|
|
1220
|
+
readonly name: "arg0";
|
|
1221
|
+
readonly type: "address";
|
|
1222
|
+
}];
|
|
1223
|
+
readonly name: "vaultToLegoId";
|
|
1224
|
+
readonly outputs: readonly [{
|
|
1225
|
+
readonly name: "";
|
|
1226
|
+
readonly type: "uint256";
|
|
1227
|
+
}];
|
|
1228
|
+
readonly stateMutability: "view";
|
|
1229
|
+
readonly type: "function";
|
|
1230
|
+
}, {
|
|
1231
|
+
readonly inputs: readonly [];
|
|
1232
|
+
readonly name: "levgVaultHelper";
|
|
1233
|
+
readonly outputs: readonly [{
|
|
1234
|
+
readonly name: "";
|
|
1235
|
+
readonly type: "address";
|
|
1236
|
+
}];
|
|
1237
|
+
readonly stateMutability: "view";
|
|
1238
|
+
readonly type: "function";
|
|
1239
|
+
}, {
|
|
1240
|
+
readonly inputs: readonly [];
|
|
1241
|
+
readonly name: "collateralAsset";
|
|
1242
|
+
readonly outputs: readonly [{
|
|
1243
|
+
readonly components: readonly [{
|
|
1244
|
+
readonly name: "vaultToken";
|
|
1245
|
+
readonly type: "address";
|
|
1246
|
+
}, {
|
|
1247
|
+
readonly name: "ripeVaultId";
|
|
1248
|
+
readonly type: "uint256";
|
|
1249
|
+
}];
|
|
1250
|
+
readonly name: "";
|
|
1251
|
+
readonly type: "tuple";
|
|
1252
|
+
}];
|
|
1253
|
+
readonly stateMutability: "view";
|
|
1254
|
+
readonly type: "function";
|
|
1255
|
+
}, {
|
|
1256
|
+
readonly inputs: readonly [];
|
|
1257
|
+
readonly name: "leverageAsset";
|
|
1258
|
+
readonly outputs: readonly [{
|
|
1259
|
+
readonly components: readonly [{
|
|
1260
|
+
readonly name: "vaultToken";
|
|
1261
|
+
readonly type: "address";
|
|
1262
|
+
}, {
|
|
1263
|
+
readonly name: "ripeVaultId";
|
|
1264
|
+
readonly type: "uint256";
|
|
1265
|
+
}];
|
|
1266
|
+
readonly name: "";
|
|
1267
|
+
readonly type: "tuple";
|
|
1268
|
+
}];
|
|
1269
|
+
readonly stateMutability: "view";
|
|
1270
|
+
readonly type: "function";
|
|
1271
|
+
}, {
|
|
1272
|
+
readonly inputs: readonly [{
|
|
1273
|
+
readonly name: "arg0";
|
|
1274
|
+
readonly type: "uint256";
|
|
1275
|
+
}];
|
|
1276
|
+
readonly name: "managers";
|
|
1277
|
+
readonly outputs: readonly [{
|
|
1278
|
+
readonly name: "";
|
|
1279
|
+
readonly type: "address";
|
|
1280
|
+
}];
|
|
1281
|
+
readonly stateMutability: "view";
|
|
1282
|
+
readonly type: "function";
|
|
1283
|
+
}, {
|
|
1284
|
+
readonly inputs: readonly [{
|
|
1285
|
+
readonly name: "arg0";
|
|
1286
|
+
readonly type: "address";
|
|
1287
|
+
}];
|
|
1288
|
+
readonly name: "indexOfManager";
|
|
1289
|
+
readonly outputs: readonly [{
|
|
1290
|
+
readonly name: "";
|
|
1291
|
+
readonly type: "uint256";
|
|
1292
|
+
}];
|
|
1293
|
+
readonly stateMutability: "view";
|
|
1294
|
+
readonly type: "function";
|
|
1295
|
+
}, {
|
|
1296
|
+
readonly inputs: readonly [];
|
|
1297
|
+
readonly name: "numManagers";
|
|
1298
|
+
readonly outputs: readonly [{
|
|
1299
|
+
readonly name: "";
|
|
1300
|
+
readonly type: "uint256";
|
|
1301
|
+
}];
|
|
1302
|
+
readonly stateMutability: "view";
|
|
1303
|
+
readonly type: "function";
|
|
1304
|
+
}, {
|
|
1305
|
+
readonly inputs: readonly [];
|
|
1306
|
+
readonly name: "usdcSlippageAllowed";
|
|
1307
|
+
readonly outputs: readonly [{
|
|
1308
|
+
readonly name: "";
|
|
1309
|
+
readonly type: "uint256";
|
|
1310
|
+
}];
|
|
1311
|
+
readonly stateMutability: "view";
|
|
1312
|
+
readonly type: "function";
|
|
1313
|
+
}, {
|
|
1314
|
+
readonly inputs: readonly [];
|
|
1315
|
+
readonly name: "greenSlippageAllowed";
|
|
1316
|
+
readonly outputs: readonly [{
|
|
1317
|
+
readonly name: "";
|
|
1318
|
+
readonly type: "uint256";
|
|
1319
|
+
}];
|
|
1320
|
+
readonly stateMutability: "view";
|
|
1321
|
+
readonly type: "function";
|
|
1322
|
+
}, {
|
|
1323
|
+
readonly inputs: readonly [];
|
|
1324
|
+
readonly name: "maxDebtRatio";
|
|
1325
|
+
readonly outputs: readonly [{
|
|
1326
|
+
readonly name: "";
|
|
1327
|
+
readonly type: "uint256";
|
|
1328
|
+
}];
|
|
1329
|
+
readonly stateMutability: "view";
|
|
1330
|
+
readonly type: "function";
|
|
1331
|
+
}, {
|
|
1332
|
+
readonly inputs: readonly [];
|
|
1333
|
+
readonly name: "netUserCapital";
|
|
1334
|
+
readonly outputs: readonly [{
|
|
1335
|
+
readonly name: "";
|
|
1336
|
+
readonly type: "uint256";
|
|
1337
|
+
}];
|
|
1338
|
+
readonly stateMutability: "view";
|
|
1339
|
+
readonly type: "function";
|
|
1340
|
+
}, {
|
|
1341
|
+
readonly inputs: readonly [];
|
|
1342
|
+
readonly name: "USDC";
|
|
1343
|
+
readonly outputs: readonly [{
|
|
1344
|
+
readonly name: "";
|
|
1345
|
+
readonly type: "address";
|
|
1346
|
+
}];
|
|
1347
|
+
readonly stateMutability: "view";
|
|
1348
|
+
readonly type: "function";
|
|
1349
|
+
}, {
|
|
1350
|
+
readonly inputs: readonly [];
|
|
1351
|
+
readonly name: "asset";
|
|
1352
|
+
readonly outputs: readonly [{
|
|
1353
|
+
readonly name: "";
|
|
1354
|
+
readonly type: "address";
|
|
1355
|
+
}];
|
|
1356
|
+
readonly stateMutability: "view";
|
|
1357
|
+
readonly type: "function";
|
|
1358
|
+
}, {
|
|
1359
|
+
readonly inputs: readonly [];
|
|
1360
|
+
readonly name: "totalAssets";
|
|
1361
|
+
readonly outputs: readonly [{
|
|
1362
|
+
readonly name: "";
|
|
1363
|
+
readonly type: "uint256";
|
|
1364
|
+
}];
|
|
1365
|
+
readonly stateMutability: "view";
|
|
1366
|
+
readonly type: "function";
|
|
1367
|
+
}, {
|
|
1368
|
+
readonly inputs: readonly [{
|
|
1369
|
+
readonly name: "_shouldGetMax";
|
|
1370
|
+
readonly type: "bool";
|
|
1371
|
+
}];
|
|
1372
|
+
readonly name: "getTotalAssets";
|
|
1373
|
+
readonly outputs: readonly [{
|
|
1374
|
+
readonly name: "";
|
|
1375
|
+
readonly type: "uint256";
|
|
1376
|
+
}];
|
|
1377
|
+
readonly stateMutability: "view";
|
|
1378
|
+
readonly type: "function";
|
|
1379
|
+
}, {
|
|
1380
|
+
readonly inputs: readonly [];
|
|
1381
|
+
readonly name: "isLeveragedVault";
|
|
1382
|
+
readonly outputs: readonly [{
|
|
1383
|
+
readonly name: "";
|
|
1384
|
+
readonly type: "bool";
|
|
1385
|
+
}];
|
|
1386
|
+
readonly stateMutability: "view";
|
|
1387
|
+
readonly type: "function";
|
|
1388
|
+
}, {
|
|
1389
|
+
readonly inputs: readonly [{
|
|
1390
|
+
readonly name: "_receiver";
|
|
1391
|
+
readonly type: "address";
|
|
1392
|
+
}];
|
|
1393
|
+
readonly name: "maxDeposit";
|
|
1394
|
+
readonly outputs: readonly [{
|
|
1395
|
+
readonly name: "";
|
|
1396
|
+
readonly type: "uint256";
|
|
1397
|
+
}];
|
|
1398
|
+
readonly stateMutability: "view";
|
|
1399
|
+
readonly type: "function";
|
|
1400
|
+
}, {
|
|
1401
|
+
readonly inputs: readonly [{
|
|
1402
|
+
readonly name: "_assets";
|
|
1403
|
+
readonly type: "uint256";
|
|
1404
|
+
}];
|
|
1405
|
+
readonly name: "previewDeposit";
|
|
1406
|
+
readonly outputs: readonly [{
|
|
1407
|
+
readonly name: "";
|
|
1408
|
+
readonly type: "uint256";
|
|
1409
|
+
}];
|
|
1410
|
+
readonly stateMutability: "view";
|
|
1411
|
+
readonly type: "function";
|
|
1412
|
+
}, {
|
|
1413
|
+
readonly inputs: readonly [{
|
|
1414
|
+
readonly name: "_assets";
|
|
1415
|
+
readonly type: "uint256";
|
|
1416
|
+
}];
|
|
1417
|
+
readonly name: "deposit";
|
|
1418
|
+
readonly outputs: readonly [{
|
|
1419
|
+
readonly name: "";
|
|
1420
|
+
readonly type: "uint256";
|
|
1421
|
+
}];
|
|
1422
|
+
readonly stateMutability: "nonpayable";
|
|
1423
|
+
readonly type: "function";
|
|
1424
|
+
}, {
|
|
1425
|
+
readonly inputs: readonly [{
|
|
1426
|
+
readonly name: "_assets";
|
|
1427
|
+
readonly type: "uint256";
|
|
1428
|
+
}, {
|
|
1429
|
+
readonly name: "_receiver";
|
|
1430
|
+
readonly type: "address";
|
|
1431
|
+
}];
|
|
1432
|
+
readonly name: "deposit";
|
|
1433
|
+
readonly outputs: readonly [{
|
|
1434
|
+
readonly name: "";
|
|
1435
|
+
readonly type: "uint256";
|
|
1436
|
+
}];
|
|
1437
|
+
readonly stateMutability: "nonpayable";
|
|
1438
|
+
readonly type: "function";
|
|
1439
|
+
}, {
|
|
1440
|
+
readonly inputs: readonly [{
|
|
1441
|
+
readonly name: "_assets";
|
|
1442
|
+
readonly type: "uint256";
|
|
1443
|
+
}, {
|
|
1444
|
+
readonly name: "_minAmountOut";
|
|
1445
|
+
readonly type: "uint256";
|
|
1446
|
+
}];
|
|
1447
|
+
readonly name: "depositWithMinAmountOut";
|
|
1448
|
+
readonly outputs: readonly [{
|
|
1449
|
+
readonly name: "";
|
|
1450
|
+
readonly type: "uint256";
|
|
1451
|
+
}];
|
|
1452
|
+
readonly stateMutability: "nonpayable";
|
|
1453
|
+
readonly type: "function";
|
|
1454
|
+
}, {
|
|
1455
|
+
readonly inputs: readonly [{
|
|
1456
|
+
readonly name: "_assets";
|
|
1457
|
+
readonly type: "uint256";
|
|
1458
|
+
}, {
|
|
1459
|
+
readonly name: "_minAmountOut";
|
|
1460
|
+
readonly type: "uint256";
|
|
1461
|
+
}, {
|
|
1462
|
+
readonly name: "_receiver";
|
|
1463
|
+
readonly type: "address";
|
|
1464
|
+
}];
|
|
1465
|
+
readonly name: "depositWithMinAmountOut";
|
|
1466
|
+
readonly outputs: readonly [{
|
|
1467
|
+
readonly name: "";
|
|
1468
|
+
readonly type: "uint256";
|
|
1469
|
+
}];
|
|
1470
|
+
readonly stateMutability: "nonpayable";
|
|
1471
|
+
readonly type: "function";
|
|
1472
|
+
}, {
|
|
1473
|
+
readonly inputs: readonly [{
|
|
1474
|
+
readonly name: "_receiver";
|
|
1475
|
+
readonly type: "address";
|
|
1476
|
+
}];
|
|
1477
|
+
readonly name: "maxMint";
|
|
1478
|
+
readonly outputs: readonly [{
|
|
1479
|
+
readonly name: "";
|
|
1480
|
+
readonly type: "uint256";
|
|
1481
|
+
}];
|
|
1482
|
+
readonly stateMutability: "view";
|
|
1483
|
+
readonly type: "function";
|
|
1484
|
+
}, {
|
|
1485
|
+
readonly inputs: readonly [{
|
|
1486
|
+
readonly name: "_shares";
|
|
1487
|
+
readonly type: "uint256";
|
|
1488
|
+
}];
|
|
1489
|
+
readonly name: "previewMint";
|
|
1490
|
+
readonly outputs: readonly [{
|
|
1491
|
+
readonly name: "";
|
|
1492
|
+
readonly type: "uint256";
|
|
1493
|
+
}];
|
|
1494
|
+
readonly stateMutability: "view";
|
|
1495
|
+
readonly type: "function";
|
|
1496
|
+
}, {
|
|
1497
|
+
readonly inputs: readonly [{
|
|
1498
|
+
readonly name: "_shares";
|
|
1499
|
+
readonly type: "uint256";
|
|
1500
|
+
}];
|
|
1501
|
+
readonly name: "mint";
|
|
1502
|
+
readonly outputs: readonly [{
|
|
1503
|
+
readonly name: "";
|
|
1504
|
+
readonly type: "uint256";
|
|
1505
|
+
}];
|
|
1506
|
+
readonly stateMutability: "nonpayable";
|
|
1507
|
+
readonly type: "function";
|
|
1508
|
+
}, {
|
|
1509
|
+
readonly inputs: readonly [{
|
|
1510
|
+
readonly name: "_shares";
|
|
1511
|
+
readonly type: "uint256";
|
|
1512
|
+
}, {
|
|
1513
|
+
readonly name: "_receiver";
|
|
1514
|
+
readonly type: "address";
|
|
1515
|
+
}];
|
|
1516
|
+
readonly name: "mint";
|
|
1517
|
+
readonly outputs: readonly [{
|
|
1518
|
+
readonly name: "";
|
|
1519
|
+
readonly type: "uint256";
|
|
1520
|
+
}];
|
|
1521
|
+
readonly stateMutability: "nonpayable";
|
|
1522
|
+
readonly type: "function";
|
|
1523
|
+
}, {
|
|
1524
|
+
readonly inputs: readonly [{
|
|
1525
|
+
readonly name: "_owner";
|
|
1526
|
+
readonly type: "address";
|
|
1527
|
+
}];
|
|
1528
|
+
readonly name: "maxWithdraw";
|
|
1529
|
+
readonly outputs: readonly [{
|
|
1530
|
+
readonly name: "";
|
|
1531
|
+
readonly type: "uint256";
|
|
1532
|
+
}];
|
|
1533
|
+
readonly stateMutability: "view";
|
|
1534
|
+
readonly type: "function";
|
|
1535
|
+
}, {
|
|
1536
|
+
readonly inputs: readonly [{
|
|
1537
|
+
readonly name: "_assets";
|
|
1538
|
+
readonly type: "uint256";
|
|
1539
|
+
}];
|
|
1540
|
+
readonly name: "previewWithdraw";
|
|
1541
|
+
readonly outputs: readonly [{
|
|
1542
|
+
readonly name: "";
|
|
1543
|
+
readonly type: "uint256";
|
|
1544
|
+
}];
|
|
1545
|
+
readonly stateMutability: "view";
|
|
1546
|
+
readonly type: "function";
|
|
1547
|
+
}, {
|
|
1548
|
+
readonly inputs: readonly [{
|
|
1549
|
+
readonly name: "_assets";
|
|
1550
|
+
readonly type: "uint256";
|
|
1551
|
+
}];
|
|
1552
|
+
readonly name: "withdraw";
|
|
1553
|
+
readonly outputs: readonly [{
|
|
1554
|
+
readonly name: "";
|
|
1555
|
+
readonly type: "uint256";
|
|
1556
|
+
}];
|
|
1557
|
+
readonly stateMutability: "nonpayable";
|
|
1558
|
+
readonly type: "function";
|
|
1559
|
+
}, {
|
|
1560
|
+
readonly inputs: readonly [{
|
|
1561
|
+
readonly name: "_assets";
|
|
1562
|
+
readonly type: "uint256";
|
|
1563
|
+
}, {
|
|
1564
|
+
readonly name: "_receiver";
|
|
1565
|
+
readonly type: "address";
|
|
1566
|
+
}];
|
|
1567
|
+
readonly name: "withdraw";
|
|
1568
|
+
readonly outputs: readonly [{
|
|
1569
|
+
readonly name: "";
|
|
1570
|
+
readonly type: "uint256";
|
|
1571
|
+
}];
|
|
1572
|
+
readonly stateMutability: "nonpayable";
|
|
1573
|
+
readonly type: "function";
|
|
1574
|
+
}, {
|
|
1575
|
+
readonly inputs: readonly [{
|
|
1576
|
+
readonly name: "_assets";
|
|
1577
|
+
readonly type: "uint256";
|
|
1578
|
+
}, {
|
|
1579
|
+
readonly name: "_receiver";
|
|
1580
|
+
readonly type: "address";
|
|
1581
|
+
}, {
|
|
1582
|
+
readonly name: "_owner";
|
|
1583
|
+
readonly type: "address";
|
|
1584
|
+
}];
|
|
1585
|
+
readonly name: "withdraw";
|
|
1586
|
+
readonly outputs: readonly [{
|
|
1587
|
+
readonly name: "";
|
|
1588
|
+
readonly type: "uint256";
|
|
1589
|
+
}];
|
|
1590
|
+
readonly stateMutability: "nonpayable";
|
|
1591
|
+
readonly type: "function";
|
|
1592
|
+
}, {
|
|
1593
|
+
readonly inputs: readonly [{
|
|
1594
|
+
readonly name: "_owner";
|
|
1595
|
+
readonly type: "address";
|
|
1596
|
+
}];
|
|
1597
|
+
readonly name: "maxRedeem";
|
|
1598
|
+
readonly outputs: readonly [{
|
|
1599
|
+
readonly name: "";
|
|
1600
|
+
readonly type: "uint256";
|
|
1601
|
+
}];
|
|
1602
|
+
readonly stateMutability: "view";
|
|
1603
|
+
readonly type: "function";
|
|
1604
|
+
}, {
|
|
1605
|
+
readonly inputs: readonly [{
|
|
1606
|
+
readonly name: "_shares";
|
|
1607
|
+
readonly type: "uint256";
|
|
1608
|
+
}];
|
|
1609
|
+
readonly name: "previewRedeem";
|
|
1610
|
+
readonly outputs: readonly [{
|
|
1611
|
+
readonly name: "";
|
|
1612
|
+
readonly type: "uint256";
|
|
1613
|
+
}];
|
|
1614
|
+
readonly stateMutability: "view";
|
|
1615
|
+
readonly type: "function";
|
|
1616
|
+
}, {
|
|
1617
|
+
readonly inputs: readonly [{
|
|
1618
|
+
readonly name: "_shares";
|
|
1619
|
+
readonly type: "uint256";
|
|
1620
|
+
}];
|
|
1621
|
+
readonly name: "redeem";
|
|
1622
|
+
readonly outputs: readonly [{
|
|
1623
|
+
readonly name: "";
|
|
1624
|
+
readonly type: "uint256";
|
|
1625
|
+
}];
|
|
1626
|
+
readonly stateMutability: "nonpayable";
|
|
1627
|
+
readonly type: "function";
|
|
1628
|
+
}, {
|
|
1629
|
+
readonly inputs: readonly [{
|
|
1630
|
+
readonly name: "_shares";
|
|
1631
|
+
readonly type: "uint256";
|
|
1632
|
+
}, {
|
|
1633
|
+
readonly name: "_receiver";
|
|
1634
|
+
readonly type: "address";
|
|
1635
|
+
}];
|
|
1636
|
+
readonly name: "redeem";
|
|
1637
|
+
readonly outputs: readonly [{
|
|
1638
|
+
readonly name: "";
|
|
1639
|
+
readonly type: "uint256";
|
|
1640
|
+
}];
|
|
1641
|
+
readonly stateMutability: "nonpayable";
|
|
1642
|
+
readonly type: "function";
|
|
1643
|
+
}, {
|
|
1644
|
+
readonly inputs: readonly [{
|
|
1645
|
+
readonly name: "_shares";
|
|
1646
|
+
readonly type: "uint256";
|
|
1647
|
+
}, {
|
|
1648
|
+
readonly name: "_receiver";
|
|
1649
|
+
readonly type: "address";
|
|
1650
|
+
}, {
|
|
1651
|
+
readonly name: "_owner";
|
|
1652
|
+
readonly type: "address";
|
|
1653
|
+
}];
|
|
1654
|
+
readonly name: "redeem";
|
|
1655
|
+
readonly outputs: readonly [{
|
|
1656
|
+
readonly name: "";
|
|
1657
|
+
readonly type: "uint256";
|
|
1658
|
+
}];
|
|
1659
|
+
readonly stateMutability: "nonpayable";
|
|
1660
|
+
readonly type: "function";
|
|
1661
|
+
}, {
|
|
1662
|
+
readonly inputs: readonly [{
|
|
1663
|
+
readonly name: "_shares";
|
|
1664
|
+
readonly type: "uint256";
|
|
1665
|
+
}, {
|
|
1666
|
+
readonly name: "_minAmountOut";
|
|
1667
|
+
readonly type: "uint256";
|
|
1668
|
+
}];
|
|
1669
|
+
readonly name: "redeemWithMinAmountOut";
|
|
1670
|
+
readonly outputs: readonly [{
|
|
1671
|
+
readonly name: "";
|
|
1672
|
+
readonly type: "uint256";
|
|
1673
|
+
}];
|
|
1674
|
+
readonly stateMutability: "nonpayable";
|
|
1675
|
+
readonly type: "function";
|
|
1676
|
+
}, {
|
|
1677
|
+
readonly inputs: readonly [{
|
|
1678
|
+
readonly name: "_shares";
|
|
1679
|
+
readonly type: "uint256";
|
|
1680
|
+
}, {
|
|
1681
|
+
readonly name: "_minAmountOut";
|
|
1682
|
+
readonly type: "uint256";
|
|
1683
|
+
}, {
|
|
1684
|
+
readonly name: "_receiver";
|
|
1685
|
+
readonly type: "address";
|
|
1686
|
+
}];
|
|
1687
|
+
readonly name: "redeemWithMinAmountOut";
|
|
1688
|
+
readonly outputs: readonly [{
|
|
1689
|
+
readonly name: "";
|
|
1690
|
+
readonly type: "uint256";
|
|
1691
|
+
}];
|
|
1692
|
+
readonly stateMutability: "nonpayable";
|
|
1693
|
+
readonly type: "function";
|
|
1694
|
+
}, {
|
|
1695
|
+
readonly inputs: readonly [{
|
|
1696
|
+
readonly name: "_shares";
|
|
1697
|
+
readonly type: "uint256";
|
|
1698
|
+
}, {
|
|
1699
|
+
readonly name: "_minAmountOut";
|
|
1700
|
+
readonly type: "uint256";
|
|
1701
|
+
}, {
|
|
1702
|
+
readonly name: "_receiver";
|
|
1703
|
+
readonly type: "address";
|
|
1704
|
+
}, {
|
|
1705
|
+
readonly name: "_owner";
|
|
1706
|
+
readonly type: "address";
|
|
1707
|
+
}];
|
|
1708
|
+
readonly name: "redeemWithMinAmountOut";
|
|
1709
|
+
readonly outputs: readonly [{
|
|
1710
|
+
readonly name: "";
|
|
1711
|
+
readonly type: "uint256";
|
|
1712
|
+
}];
|
|
1713
|
+
readonly stateMutability: "nonpayable";
|
|
1714
|
+
readonly type: "function";
|
|
1715
|
+
}, {
|
|
1716
|
+
readonly inputs: readonly [{
|
|
1717
|
+
readonly name: "_assets";
|
|
1718
|
+
readonly type: "uint256";
|
|
1719
|
+
}];
|
|
1720
|
+
readonly name: "convertToShares";
|
|
1721
|
+
readonly outputs: readonly [{
|
|
1722
|
+
readonly name: "";
|
|
1723
|
+
readonly type: "uint256";
|
|
1724
|
+
}];
|
|
1725
|
+
readonly stateMutability: "view";
|
|
1726
|
+
readonly type: "function";
|
|
1727
|
+
}, {
|
|
1728
|
+
readonly inputs: readonly [{
|
|
1729
|
+
readonly name: "_assets";
|
|
1730
|
+
readonly type: "uint256";
|
|
1731
|
+
}];
|
|
1732
|
+
readonly name: "convertToSharesSafe";
|
|
1733
|
+
readonly outputs: readonly [{
|
|
1734
|
+
readonly name: "";
|
|
1735
|
+
readonly type: "uint256";
|
|
1736
|
+
}];
|
|
1737
|
+
readonly stateMutability: "view";
|
|
1738
|
+
readonly type: "function";
|
|
1739
|
+
}, {
|
|
1740
|
+
readonly inputs: readonly [{
|
|
1741
|
+
readonly name: "_shares";
|
|
1742
|
+
readonly type: "uint256";
|
|
1743
|
+
}];
|
|
1744
|
+
readonly name: "convertToAssets";
|
|
1745
|
+
readonly outputs: readonly [{
|
|
1746
|
+
readonly name: "";
|
|
1747
|
+
readonly type: "uint256";
|
|
1748
|
+
}];
|
|
1749
|
+
readonly stateMutability: "view";
|
|
1750
|
+
readonly type: "function";
|
|
1751
|
+
}, {
|
|
1752
|
+
readonly inputs: readonly [{
|
|
1753
|
+
readonly name: "_shares";
|
|
1754
|
+
readonly type: "uint256";
|
|
1755
|
+
}];
|
|
1756
|
+
readonly name: "convertToAssetsSafe";
|
|
1757
|
+
readonly outputs: readonly [{
|
|
1758
|
+
readonly name: "";
|
|
1759
|
+
readonly type: "uint256";
|
|
1760
|
+
}];
|
|
1761
|
+
readonly stateMutability: "view";
|
|
1762
|
+
readonly type: "function";
|
|
1763
|
+
}, {
|
|
1764
|
+
readonly inputs: readonly [];
|
|
1765
|
+
readonly name: "sweepLeftovers";
|
|
1766
|
+
readonly outputs: readonly [{
|
|
1767
|
+
readonly name: "";
|
|
1768
|
+
readonly type: "uint256";
|
|
1769
|
+
}];
|
|
1770
|
+
readonly stateMutability: "nonpayable";
|
|
1771
|
+
readonly type: "function";
|
|
1772
|
+
}, {
|
|
1773
|
+
readonly inputs: readonly [{
|
|
1774
|
+
readonly name: "_asset";
|
|
1775
|
+
readonly type: "address";
|
|
1776
|
+
}, {
|
|
1777
|
+
readonly name: "_tokenName";
|
|
1778
|
+
readonly type: "string";
|
|
1779
|
+
}, {
|
|
1780
|
+
readonly name: "_tokenSymbol";
|
|
1781
|
+
readonly type: "string";
|
|
1782
|
+
}, {
|
|
1783
|
+
readonly name: "_undyHq";
|
|
1784
|
+
readonly type: "address";
|
|
1785
|
+
}, {
|
|
1786
|
+
readonly name: "_collateralVaultToken";
|
|
1787
|
+
readonly type: "address";
|
|
1788
|
+
}, {
|
|
1789
|
+
readonly name: "_collateralVaultTokenLegoId";
|
|
1790
|
+
readonly type: "uint256";
|
|
1791
|
+
}, {
|
|
1792
|
+
readonly name: "_collateralVaultTokenRipeVaultId";
|
|
1793
|
+
readonly type: "uint256";
|
|
1794
|
+
}, {
|
|
1795
|
+
readonly name: "_leverageVaultToken";
|
|
1796
|
+
readonly type: "address";
|
|
1797
|
+
}, {
|
|
1798
|
+
readonly name: "_leverageVaultTokenLegoId";
|
|
1799
|
+
readonly type: "uint256";
|
|
1800
|
+
}, {
|
|
1801
|
+
readonly name: "_leverageVaultTokenRipeVaultId";
|
|
1802
|
+
readonly type: "uint256";
|
|
1803
|
+
}, {
|
|
1804
|
+
readonly name: "_usdc";
|
|
1805
|
+
readonly type: "address";
|
|
1806
|
+
}, {
|
|
1807
|
+
readonly name: "_green";
|
|
1808
|
+
readonly type: "address";
|
|
1809
|
+
}, {
|
|
1810
|
+
readonly name: "_savingsGreen";
|
|
1811
|
+
readonly type: "address";
|
|
1812
|
+
}, {
|
|
1813
|
+
readonly name: "_minHqTimeLock";
|
|
1814
|
+
readonly type: "uint256";
|
|
1815
|
+
}, {
|
|
1816
|
+
readonly name: "_maxHqTimeLock";
|
|
1817
|
+
readonly type: "uint256";
|
|
1818
|
+
}, {
|
|
1819
|
+
readonly name: "_startingAgent";
|
|
1820
|
+
readonly type: "address";
|
|
1821
|
+
}, {
|
|
1822
|
+
readonly name: "_levgVaultHelper";
|
|
1823
|
+
readonly type: "address";
|
|
1824
|
+
}];
|
|
1825
|
+
readonly outputs: readonly [];
|
|
1826
|
+
readonly stateMutability: "nonpayable";
|
|
1827
|
+
readonly type: "constructor";
|
|
1828
|
+
}];
|
|
1829
|
+
export declare const deployAddress: Address | undefined;
|
|
1830
|
+
export type Contract = {
|
|
1831
|
+
calls: {
|
|
1832
|
+
name: () => Promise<string>;
|
|
1833
|
+
symbol: () => Promise<string>;
|
|
1834
|
+
decimals: () => Promise<number>;
|
|
1835
|
+
DOMAIN_SEPARATOR: () => Promise<`0x${string}`>;
|
|
1836
|
+
undyHq: () => Promise<`0x${string}`>;
|
|
1837
|
+
blacklisted: (arg0: `0x${string}`) => Promise<boolean>;
|
|
1838
|
+
isPaused: () => Promise<boolean>;
|
|
1839
|
+
balanceOf: (arg0: `0x${string}`) => Promise<bigint>;
|
|
1840
|
+
allowance: (arg0: `0x${string}`, arg1: `0x${string}`) => Promise<bigint>;
|
|
1841
|
+
totalSupply: () => Promise<bigint>;
|
|
1842
|
+
TOKEN_NAME: () => Promise<string>;
|
|
1843
|
+
TOKEN_SYMBOL: () => Promise<string>;
|
|
1844
|
+
TOKEN_DECIMALS: () => Promise<number>;
|
|
1845
|
+
VERSION: () => Promise<string>;
|
|
1846
|
+
nonces: (arg0: `0x${string}`) => Promise<bigint>;
|
|
1847
|
+
vaultToLegoId: (arg0: `0x${string}`) => Promise<bigint>;
|
|
1848
|
+
levgVaultHelper: () => Promise<`0x${string}`>;
|
|
1849
|
+
collateralAsset: () => Promise<{
|
|
1850
|
+
vaultToken: `0x${string}`;
|
|
1851
|
+
ripeVaultId: bigint;
|
|
1852
|
+
}>;
|
|
1853
|
+
leverageAsset: () => Promise<{
|
|
1854
|
+
vaultToken: `0x${string}`;
|
|
1855
|
+
ripeVaultId: bigint;
|
|
1856
|
+
}>;
|
|
1857
|
+
managers: (arg0: bigint) => Promise<`0x${string}`>;
|
|
1858
|
+
indexOfManager: (arg0: `0x${string}`) => Promise<bigint>;
|
|
1859
|
+
numManagers: () => Promise<bigint>;
|
|
1860
|
+
usdcSlippageAllowed: () => Promise<bigint>;
|
|
1861
|
+
greenSlippageAllowed: () => Promise<bigint>;
|
|
1862
|
+
maxDebtRatio: () => Promise<bigint>;
|
|
1863
|
+
netUserCapital: () => Promise<bigint>;
|
|
1864
|
+
USDC: () => Promise<`0x${string}`>;
|
|
1865
|
+
asset: () => Promise<`0x${string}`>;
|
|
1866
|
+
totalAssets: () => Promise<bigint>;
|
|
1867
|
+
getTotalAssets: (shouldGetMax: boolean) => Promise<bigint>;
|
|
1868
|
+
isLeveragedVault: () => Promise<boolean>;
|
|
1869
|
+
maxDeposit: (receiver: `0x${string}`) => Promise<bigint>;
|
|
1870
|
+
previewDeposit: (assets: bigint) => Promise<bigint>;
|
|
1871
|
+
maxMint: (receiver: `0x${string}`) => Promise<bigint>;
|
|
1872
|
+
previewMint: (shares: bigint) => Promise<bigint>;
|
|
1873
|
+
maxWithdraw: (owner: `0x${string}`) => Promise<bigint>;
|
|
1874
|
+
previewWithdraw: (assets: bigint) => Promise<bigint>;
|
|
1875
|
+
maxRedeem: (owner: `0x${string}`) => Promise<bigint>;
|
|
1876
|
+
previewRedeem: (shares: bigint) => Promise<bigint>;
|
|
1877
|
+
convertToShares: (assets: bigint) => Promise<bigint>;
|
|
1878
|
+
convertToSharesSafe: (assets: bigint) => Promise<bigint>;
|
|
1879
|
+
convertToAssets: (shares: bigint) => Promise<bigint>;
|
|
1880
|
+
convertToAssetsSafe: (shares: bigint) => Promise<bigint>;
|
|
1881
|
+
};
|
|
1882
|
+
mutations: {
|
|
1883
|
+
transfer: (recipient: `0x${string}`, amount: bigint) => Promise<boolean>;
|
|
1884
|
+
transferFrom: (sender: `0x${string}`, recipient: `0x${string}`, amount: bigint) => Promise<boolean>;
|
|
1885
|
+
approve: (spender: `0x${string}`, amount: bigint) => Promise<boolean>;
|
|
1886
|
+
increaseAllowance: (spender: `0x${string}`, amount: bigint) => Promise<boolean>;
|
|
1887
|
+
decreaseAllowance: (spender: `0x${string}`, amount: bigint) => Promise<boolean>;
|
|
1888
|
+
burn: (amount: bigint) => Promise<boolean>;
|
|
1889
|
+
permit: (owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, signature: `0x${string}`) => Promise<boolean>;
|
|
1890
|
+
setBlacklist: (addr: `0x${string}`, shouldBlacklist: boolean) => Promise<boolean>;
|
|
1891
|
+
burnBlacklistTokens: (addr: `0x${string}`, amount?: bigint) => Promise<boolean>;
|
|
1892
|
+
pause: (shouldPause: boolean) => Promise<void>;
|
|
1893
|
+
depositForYield: (legoId: bigint, asset: `0x${string}`, vaultAddr?: `0x${string}`, amount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
|
|
1894
|
+
withdrawFromYield: (legoId: bigint, vaultToken: `0x${string}`, amount?: bigint, extraData?: `0x${string}`, isSpecialTx?: boolean) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
|
|
1895
|
+
swapTokens: (instructions: {
|
|
1896
|
+
legoId: bigint;
|
|
1897
|
+
amountIn: bigint;
|
|
1898
|
+
minAmountOut: bigint;
|
|
1899
|
+
tokenPath: `0x${string}`[];
|
|
1900
|
+
poolPath: `0x${string}`[];
|
|
1901
|
+
}[]) => Promise<[`0x${string}`, bigint, `0x${string}`, bigint, bigint]>;
|
|
1902
|
+
addCollateral: (legoId: bigint, asset: `0x${string}`, amount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint]>;
|
|
1903
|
+
removeCollateral: (legoId: bigint, asset: `0x${string}`, amount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint]>;
|
|
1904
|
+
borrow: (legoId: bigint, borrowAsset: `0x${string}`, amount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint]>;
|
|
1905
|
+
repayDebt: (legoId: bigint, paymentAsset: `0x${string}`, paymentAmount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint]>;
|
|
1906
|
+
claimIncentives: (legoId: bigint, rewardToken?: `0x${string}`, rewardAmount?: bigint, proofs?: `0x${string}`[]) => Promise<[bigint, bigint]>;
|
|
1907
|
+
setCollateralVault: (vaultToken: `0x${string}`, legoId: bigint, ripeVaultId: bigint, shouldMaxWithdraw: boolean) => Promise<void>;
|
|
1908
|
+
setLeverageVault: (vaultToken: `0x${string}`, legoId: bigint, ripeVaultId: bigint, shouldMaxWithdraw: boolean) => Promise<void>;
|
|
1909
|
+
setSlippagesAllowed: (usdcSlippage: bigint, greenSlippage: bigint) => Promise<void>;
|
|
1910
|
+
setLevgVaultHelper: (levgVaultHelper: `0x${string}`) => Promise<void>;
|
|
1911
|
+
setMaxDebtRatio: (ratio: bigint) => Promise<void>;
|
|
1912
|
+
addManager: (manager: `0x${string}`) => Promise<void>;
|
|
1913
|
+
removeManager: (manager: `0x${string}`) => Promise<void>;
|
|
1914
|
+
deposit: (assets: bigint, receiver?: `0x${string}`) => Promise<bigint>;
|
|
1915
|
+
depositWithMinAmountOut: (assets: bigint, minAmountOut: bigint, receiver?: `0x${string}`) => Promise<bigint>;
|
|
1916
|
+
mint: (shares: bigint, receiver?: `0x${string}`) => Promise<bigint>;
|
|
1917
|
+
withdraw: (assets: bigint, receiver?: `0x${string}`, owner?: `0x${string}`) => Promise<bigint>;
|
|
1918
|
+
redeem: (shares: bigint, receiver?: `0x${string}`, owner?: `0x${string}`) => Promise<bigint>;
|
|
1919
|
+
redeemWithMinAmountOut: (shares: bigint, minAmountOut: bigint, receiver?: `0x${string}`, owner?: `0x${string}`) => Promise<bigint>;
|
|
1920
|
+
sweepLeftovers: () => Promise<bigint>;
|
|
1921
|
+
};
|
|
1922
|
+
events: {
|
|
1923
|
+
Deposit: (sender: `0x${string}`, owner: `0x${string}`, assets: bigint, shares: bigint) => Promise<void>;
|
|
1924
|
+
Withdraw: (sender: `0x${string}`, receiver: `0x${string}`, owner: `0x${string}`, assets: bigint, shares: bigint) => Promise<void>;
|
|
1925
|
+
LeftoversSwept: (amount: bigint, recipient: `0x${string}`) => Promise<void>;
|
|
1926
|
+
Transfer: (sender: `0x${string}`, recipient: `0x${string}`, amount: bigint) => Promise<void>;
|
|
1927
|
+
Approval: (owner: `0x${string}`, spender: `0x${string}`, amount: bigint) => Promise<void>;
|
|
1928
|
+
BlacklistModified: (addr: `0x${string}`, isBlacklisted: boolean) => Promise<void>;
|
|
1929
|
+
TokenPauseModified: (isPaused: boolean) => Promise<void>;
|
|
1930
|
+
LevgVaultAction: (op: number, asset1: `0x${string}`, asset2: `0x${string}`, amount1: bigint, amount2: bigint, usdValue: bigint, legoId: bigint, signer: `0x${string}`) => Promise<void>;
|
|
1931
|
+
CollateralVaultTokenSet: (collateralVaultToken: `0x${string}`, legoId: bigint, ripeVaultId: bigint) => Promise<void>;
|
|
1932
|
+
LeverageVaultTokenSet: (leverageVaultToken: `0x${string}`, legoId: bigint, ripeVaultId: bigint) => Promise<void>;
|
|
1933
|
+
SlippagesSet: (usdcSlippage: bigint, greenSlippage: bigint) => Promise<void>;
|
|
1934
|
+
LevgVaultHelperSet: (levgVaultHelper: `0x${string}`) => Promise<void>;
|
|
1935
|
+
MaxDebtRatioSet: (maxDebtRatio: bigint) => Promise<void>;
|
|
1936
|
+
};
|
|
1937
|
+
};
|
|
1938
|
+
export type Calls = keyof Contract['calls'];
|
|
1939
|
+
export type Request<M extends Calls> = {
|
|
1940
|
+
contractName: 'LevgVault';
|
|
1941
|
+
method: M;
|
|
1942
|
+
args: ExtractArgs<Contract['calls'][M]>;
|
|
1943
|
+
address: Address | undefined;
|
|
1944
|
+
deployAddress: Address | undefined;
|
|
1945
|
+
defaultValue: Awaited<ReturnType<Contract['calls'][M]>> | undefined;
|
|
1946
|
+
getAbi: () => typeof abi;
|
|
1947
|
+
with: (options: {
|
|
1948
|
+
contractAddress?: Address;
|
|
1949
|
+
defaultValue?: Awaited<ReturnType<Contract['calls'][M]>>;
|
|
1950
|
+
}) => Request<M>;
|
|
1951
|
+
defaultTo: (defaultValue: Awaited<ReturnType<Contract['calls'][M]>>) => Request<M>;
|
|
1952
|
+
at: (address: Address) => Request<M>;
|
|
1953
|
+
};
|
|
1954
|
+
export type CallReturn<M extends Calls> = NonNullable<Request<M>['defaultValue']>;
|
|
1955
|
+
declare function getRequest<M extends Calls>(method: M, args: ExtractArgs<Contract['calls'][M]>, contractAddressOrOptions?: Address | {
|
|
1956
|
+
contractAddress?: Address;
|
|
1957
|
+
defaultValue?: Awaited<ReturnType<Contract['calls'][M]>>;
|
|
1958
|
+
}): Request<M>;
|
|
1959
|
+
type CallType = {
|
|
1960
|
+
[K in Calls]: (...args: ExtractArgs<Contract['calls'][K]>) => ReturnType<typeof getRequest<K>>;
|
|
1961
|
+
};
|
|
1962
|
+
export declare const call: CallType;
|
|
1963
|
+
export type Mutations = keyof Contract['mutations'];
|
|
1964
|
+
export declare const mutation: {
|
|
1965
|
+
[K in Mutations]: {
|
|
1966
|
+
contractName: 'LevgVault';
|
|
1967
|
+
deployAddress: Address | undefined;
|
|
1968
|
+
getAbi: () => typeof abi;
|
|
1969
|
+
functionName: K;
|
|
1970
|
+
argsType: ExtractArgs<Contract['mutations'][K]> | undefined;
|
|
1971
|
+
};
|
|
1972
|
+
};
|
|
1973
|
+
export type SDK = {
|
|
1974
|
+
deployAddress: Address | undefined;
|
|
1975
|
+
abi: typeof abi;
|
|
1976
|
+
name: (...args: ExtractArgs<Contract['calls']['name']>) => Promise<CallReturn<'name'>>;
|
|
1977
|
+
symbol: (...args: ExtractArgs<Contract['calls']['symbol']>) => Promise<CallReturn<'symbol'>>;
|
|
1978
|
+
decimals: (...args: ExtractArgs<Contract['calls']['decimals']>) => Promise<CallReturn<'decimals'>>;
|
|
1979
|
+
DOMAIN_SEPARATOR: (...args: ExtractArgs<Contract['calls']['DOMAIN_SEPARATOR']>) => Promise<CallReturn<'DOMAIN_SEPARATOR'>>;
|
|
1980
|
+
undyHq: (...args: ExtractArgs<Contract['calls']['undyHq']>) => Promise<CallReturn<'undyHq'>>;
|
|
1981
|
+
blacklisted: (...args: ExtractArgs<Contract['calls']['blacklisted']>) => Promise<CallReturn<'blacklisted'>>;
|
|
1982
|
+
isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
|
|
1983
|
+
balanceOf: (...args: ExtractArgs<Contract['calls']['balanceOf']>) => Promise<CallReturn<'balanceOf'>>;
|
|
1984
|
+
allowance: (...args: ExtractArgs<Contract['calls']['allowance']>) => Promise<CallReturn<'allowance'>>;
|
|
1985
|
+
totalSupply: (...args: ExtractArgs<Contract['calls']['totalSupply']>) => Promise<CallReturn<'totalSupply'>>;
|
|
1986
|
+
TOKEN_NAME: (...args: ExtractArgs<Contract['calls']['TOKEN_NAME']>) => Promise<CallReturn<'TOKEN_NAME'>>;
|
|
1987
|
+
TOKEN_SYMBOL: (...args: ExtractArgs<Contract['calls']['TOKEN_SYMBOL']>) => Promise<CallReturn<'TOKEN_SYMBOL'>>;
|
|
1988
|
+
TOKEN_DECIMALS: (...args: ExtractArgs<Contract['calls']['TOKEN_DECIMALS']>) => Promise<CallReturn<'TOKEN_DECIMALS'>>;
|
|
1989
|
+
VERSION: (...args: ExtractArgs<Contract['calls']['VERSION']>) => Promise<CallReturn<'VERSION'>>;
|
|
1990
|
+
nonces: (...args: ExtractArgs<Contract['calls']['nonces']>) => Promise<CallReturn<'nonces'>>;
|
|
1991
|
+
vaultToLegoId: (...args: ExtractArgs<Contract['calls']['vaultToLegoId']>) => Promise<CallReturn<'vaultToLegoId'>>;
|
|
1992
|
+
levgVaultHelper: (...args: ExtractArgs<Contract['calls']['levgVaultHelper']>) => Promise<CallReturn<'levgVaultHelper'>>;
|
|
1993
|
+
collateralAsset: (...args: ExtractArgs<Contract['calls']['collateralAsset']>) => Promise<CallReturn<'collateralAsset'>>;
|
|
1994
|
+
leverageAsset: (...args: ExtractArgs<Contract['calls']['leverageAsset']>) => Promise<CallReturn<'leverageAsset'>>;
|
|
1995
|
+
managers: (...args: ExtractArgs<Contract['calls']['managers']>) => Promise<CallReturn<'managers'>>;
|
|
1996
|
+
indexOfManager: (...args: ExtractArgs<Contract['calls']['indexOfManager']>) => Promise<CallReturn<'indexOfManager'>>;
|
|
1997
|
+
numManagers: (...args: ExtractArgs<Contract['calls']['numManagers']>) => Promise<CallReturn<'numManagers'>>;
|
|
1998
|
+
usdcSlippageAllowed: (...args: ExtractArgs<Contract['calls']['usdcSlippageAllowed']>) => Promise<CallReturn<'usdcSlippageAllowed'>>;
|
|
1999
|
+
greenSlippageAllowed: (...args: ExtractArgs<Contract['calls']['greenSlippageAllowed']>) => Promise<CallReturn<'greenSlippageAllowed'>>;
|
|
2000
|
+
maxDebtRatio: (...args: ExtractArgs<Contract['calls']['maxDebtRatio']>) => Promise<CallReturn<'maxDebtRatio'>>;
|
|
2001
|
+
netUserCapital: (...args: ExtractArgs<Contract['calls']['netUserCapital']>) => Promise<CallReturn<'netUserCapital'>>;
|
|
2002
|
+
USDC: (...args: ExtractArgs<Contract['calls']['USDC']>) => Promise<CallReturn<'USDC'>>;
|
|
2003
|
+
asset: (...args: ExtractArgs<Contract['calls']['asset']>) => Promise<CallReturn<'asset'>>;
|
|
2004
|
+
totalAssets: (...args: ExtractArgs<Contract['calls']['totalAssets']>) => Promise<CallReturn<'totalAssets'>>;
|
|
2005
|
+
getTotalAssets: (...args: ExtractArgs<Contract['calls']['getTotalAssets']>) => Promise<CallReturn<'getTotalAssets'>>;
|
|
2006
|
+
isLeveragedVault: (...args: ExtractArgs<Contract['calls']['isLeveragedVault']>) => Promise<CallReturn<'isLeveragedVault'>>;
|
|
2007
|
+
maxDeposit: (...args: ExtractArgs<Contract['calls']['maxDeposit']>) => Promise<CallReturn<'maxDeposit'>>;
|
|
2008
|
+
previewDeposit: (...args: ExtractArgs<Contract['calls']['previewDeposit']>) => Promise<CallReturn<'previewDeposit'>>;
|
|
2009
|
+
maxMint: (...args: ExtractArgs<Contract['calls']['maxMint']>) => Promise<CallReturn<'maxMint'>>;
|
|
2010
|
+
previewMint: (...args: ExtractArgs<Contract['calls']['previewMint']>) => Promise<CallReturn<'previewMint'>>;
|
|
2011
|
+
maxWithdraw: (...args: ExtractArgs<Contract['calls']['maxWithdraw']>) => Promise<CallReturn<'maxWithdraw'>>;
|
|
2012
|
+
previewWithdraw: (...args: ExtractArgs<Contract['calls']['previewWithdraw']>) => Promise<CallReturn<'previewWithdraw'>>;
|
|
2013
|
+
maxRedeem: (...args: ExtractArgs<Contract['calls']['maxRedeem']>) => Promise<CallReturn<'maxRedeem'>>;
|
|
2014
|
+
previewRedeem: (...args: ExtractArgs<Contract['calls']['previewRedeem']>) => Promise<CallReturn<'previewRedeem'>>;
|
|
2015
|
+
convertToShares: (...args: ExtractArgs<Contract['calls']['convertToShares']>) => Promise<CallReturn<'convertToShares'>>;
|
|
2016
|
+
convertToSharesSafe: (...args: ExtractArgs<Contract['calls']['convertToSharesSafe']>) => Promise<CallReturn<'convertToSharesSafe'>>;
|
|
2017
|
+
convertToAssets: (...args: ExtractArgs<Contract['calls']['convertToAssets']>) => Promise<CallReturn<'convertToAssets'>>;
|
|
2018
|
+
convertToAssetsSafe: (...args: ExtractArgs<Contract['calls']['convertToAssetsSafe']>) => Promise<CallReturn<'convertToAssetsSafe'>>;
|
|
2019
|
+
transfer: (...args: ExtractArgs<Contract['mutations']['transfer']>) => Promise<Address>;
|
|
2020
|
+
transferFrom: (...args: ExtractArgs<Contract['mutations']['transferFrom']>) => Promise<Address>;
|
|
2021
|
+
approve: (...args: ExtractArgs<Contract['mutations']['approve']>) => Promise<Address>;
|
|
2022
|
+
increaseAllowance: (...args: ExtractArgs<Contract['mutations']['increaseAllowance']>) => Promise<Address>;
|
|
2023
|
+
decreaseAllowance: (...args: ExtractArgs<Contract['mutations']['decreaseAllowance']>) => Promise<Address>;
|
|
2024
|
+
burn: (...args: ExtractArgs<Contract['mutations']['burn']>) => Promise<Address>;
|
|
2025
|
+
permit: (...args: ExtractArgs<Contract['mutations']['permit']>) => Promise<Address>;
|
|
2026
|
+
setBlacklist: (...args: ExtractArgs<Contract['mutations']['setBlacklist']>) => Promise<Address>;
|
|
2027
|
+
burnBlacklistTokens: (...args: ExtractArgs<Contract['mutations']['burnBlacklistTokens']>) => Promise<Address>;
|
|
2028
|
+
pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
|
|
2029
|
+
depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
|
|
2030
|
+
withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
|
|
2031
|
+
swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
|
|
2032
|
+
addCollateral: (...args: ExtractArgs<Contract['mutations']['addCollateral']>) => Promise<Address>;
|
|
2033
|
+
removeCollateral: (...args: ExtractArgs<Contract['mutations']['removeCollateral']>) => Promise<Address>;
|
|
2034
|
+
borrow: (...args: ExtractArgs<Contract['mutations']['borrow']>) => Promise<Address>;
|
|
2035
|
+
repayDebt: (...args: ExtractArgs<Contract['mutations']['repayDebt']>) => Promise<Address>;
|
|
2036
|
+
claimIncentives: (...args: ExtractArgs<Contract['mutations']['claimIncentives']>) => Promise<Address>;
|
|
2037
|
+
setCollateralVault: (...args: ExtractArgs<Contract['mutations']['setCollateralVault']>) => Promise<Address>;
|
|
2038
|
+
setLeverageVault: (...args: ExtractArgs<Contract['mutations']['setLeverageVault']>) => Promise<Address>;
|
|
2039
|
+
setSlippagesAllowed: (...args: ExtractArgs<Contract['mutations']['setSlippagesAllowed']>) => Promise<Address>;
|
|
2040
|
+
setLevgVaultHelper: (...args: ExtractArgs<Contract['mutations']['setLevgVaultHelper']>) => Promise<Address>;
|
|
2041
|
+
setMaxDebtRatio: (...args: ExtractArgs<Contract['mutations']['setMaxDebtRatio']>) => Promise<Address>;
|
|
2042
|
+
addManager: (...args: ExtractArgs<Contract['mutations']['addManager']>) => Promise<Address>;
|
|
2043
|
+
removeManager: (...args: ExtractArgs<Contract['mutations']['removeManager']>) => Promise<Address>;
|
|
2044
|
+
deposit: (...args: ExtractArgs<Contract['mutations']['deposit']>) => Promise<Address>;
|
|
2045
|
+
depositWithMinAmountOut: (...args: ExtractArgs<Contract['mutations']['depositWithMinAmountOut']>) => Promise<Address>;
|
|
2046
|
+
mint: (...args: ExtractArgs<Contract['mutations']['mint']>) => Promise<Address>;
|
|
2047
|
+
withdraw: (...args: ExtractArgs<Contract['mutations']['withdraw']>) => Promise<Address>;
|
|
2048
|
+
redeem: (...args: ExtractArgs<Contract['mutations']['redeem']>) => Promise<Address>;
|
|
2049
|
+
redeemWithMinAmountOut: (...args: ExtractArgs<Contract['mutations']['redeemWithMinAmountOut']>) => Promise<Address>;
|
|
2050
|
+
sweepLeftovers: (...args: ExtractArgs<Contract['mutations']['sweepLeftovers']>) => Promise<Address>;
|
|
2051
|
+
};
|
|
2052
|
+
export declare function toSdk(deployAddress: Address, publicClient?: PublicClient, walletClient?: WalletClient): SDK;
|
|
2053
|
+
export {};
|
|
2054
|
+
//# sourceMappingURL=LevgVault.d.ts.map
|