@gitmyabi/yspendle-lpt 1.0.0
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/README.md +108 -0
- package/contracts/PendleLPCompounder_json.d.ts +1675 -0
- package/contracts/PendleLPCompounder_json.js +1575 -0
- package/contracts/PendleLPCompounder_json.ts +2181 -0
- package/contracts/TokenizedStrategy_json.d.ts +2144 -0
- package/contracts/TokenizedStrategy_json.js +2338 -0
- package/contracts/TokenizedStrategy_json.ts +2872 -0
- package/contracts/index.d.ts +4 -0
- package/contracts/index.js +10 -0
- package/contracts/index.ts +5 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +43 -0
|
@@ -0,0 +1,1675 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* PendleLPCompounder_json ABI
|
|
4
|
+
*
|
|
5
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PendleLPCompounder_jsonAbi: readonly [{
|
|
8
|
+
readonly inputs: readonly [{
|
|
9
|
+
readonly internalType: "address";
|
|
10
|
+
readonly name: "_asset";
|
|
11
|
+
readonly type: "address";
|
|
12
|
+
}, {
|
|
13
|
+
readonly internalType: "address";
|
|
14
|
+
readonly name: "_pendleStaking";
|
|
15
|
+
readonly type: "address";
|
|
16
|
+
}, {
|
|
17
|
+
readonly internalType: "address";
|
|
18
|
+
readonly name: "_PENDLE";
|
|
19
|
+
readonly type: "address";
|
|
20
|
+
}, {
|
|
21
|
+
readonly internalType: "uint24";
|
|
22
|
+
readonly name: "_feePENDLEtoBase";
|
|
23
|
+
readonly type: "uint24";
|
|
24
|
+
}, {
|
|
25
|
+
readonly internalType: "address";
|
|
26
|
+
readonly name: "_base";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
}, {
|
|
29
|
+
readonly internalType: "uint24";
|
|
30
|
+
readonly name: "_feeBaseToTargetToken";
|
|
31
|
+
readonly type: "uint24";
|
|
32
|
+
}, {
|
|
33
|
+
readonly internalType: "address";
|
|
34
|
+
readonly name: "_targetToken";
|
|
35
|
+
readonly type: "address";
|
|
36
|
+
}, {
|
|
37
|
+
readonly internalType: "address";
|
|
38
|
+
readonly name: "_GOV";
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
}, {
|
|
41
|
+
readonly internalType: "string";
|
|
42
|
+
readonly name: "_name";
|
|
43
|
+
readonly type: "string";
|
|
44
|
+
}];
|
|
45
|
+
readonly stateMutability: "nonpayable";
|
|
46
|
+
readonly type: "constructor";
|
|
47
|
+
}, {
|
|
48
|
+
readonly stateMutability: "nonpayable";
|
|
49
|
+
readonly type: "fallback";
|
|
50
|
+
}, {
|
|
51
|
+
readonly inputs: readonly [];
|
|
52
|
+
readonly name: "GOV";
|
|
53
|
+
readonly outputs: readonly [{
|
|
54
|
+
readonly internalType: "address";
|
|
55
|
+
readonly name: "";
|
|
56
|
+
readonly type: "address";
|
|
57
|
+
}];
|
|
58
|
+
readonly stateMutability: "view";
|
|
59
|
+
readonly type: "function";
|
|
60
|
+
}, {
|
|
61
|
+
readonly inputs: readonly [{
|
|
62
|
+
readonly internalType: "address";
|
|
63
|
+
readonly name: "_rewardToken";
|
|
64
|
+
readonly type: "address";
|
|
65
|
+
}, {
|
|
66
|
+
readonly internalType: "uint24";
|
|
67
|
+
readonly name: "_feeRewardTokenToBase";
|
|
68
|
+
readonly type: "uint24";
|
|
69
|
+
}];
|
|
70
|
+
readonly name: "addReward";
|
|
71
|
+
readonly outputs: readonly [];
|
|
72
|
+
readonly stateMutability: "nonpayable";
|
|
73
|
+
readonly type: "function";
|
|
74
|
+
}, {
|
|
75
|
+
readonly inputs: readonly [];
|
|
76
|
+
readonly name: "auction";
|
|
77
|
+
readonly outputs: readonly [{
|
|
78
|
+
readonly internalType: "address";
|
|
79
|
+
readonly name: "";
|
|
80
|
+
readonly type: "address";
|
|
81
|
+
}];
|
|
82
|
+
readonly stateMutability: "view";
|
|
83
|
+
readonly type: "function";
|
|
84
|
+
}, {
|
|
85
|
+
readonly inputs: readonly [];
|
|
86
|
+
readonly name: "auctionFactory";
|
|
87
|
+
readonly outputs: readonly [{
|
|
88
|
+
readonly internalType: "address";
|
|
89
|
+
readonly name: "";
|
|
90
|
+
readonly type: "address";
|
|
91
|
+
}];
|
|
92
|
+
readonly stateMutability: "view";
|
|
93
|
+
readonly type: "function";
|
|
94
|
+
}, {
|
|
95
|
+
readonly inputs: readonly [{
|
|
96
|
+
readonly internalType: "address";
|
|
97
|
+
readonly name: "_token";
|
|
98
|
+
readonly type: "address";
|
|
99
|
+
}];
|
|
100
|
+
readonly name: "auctionKicked";
|
|
101
|
+
readonly outputs: readonly [{
|
|
102
|
+
readonly internalType: "uint256";
|
|
103
|
+
readonly name: "";
|
|
104
|
+
readonly type: "uint256";
|
|
105
|
+
}];
|
|
106
|
+
readonly stateMutability: "nonpayable";
|
|
107
|
+
readonly type: "function";
|
|
108
|
+
}, {
|
|
109
|
+
readonly inputs: readonly [];
|
|
110
|
+
readonly name: "autocompound";
|
|
111
|
+
readonly outputs: readonly [{
|
|
112
|
+
readonly internalType: "bool";
|
|
113
|
+
readonly name: "";
|
|
114
|
+
readonly type: "bool";
|
|
115
|
+
}];
|
|
116
|
+
readonly stateMutability: "view";
|
|
117
|
+
readonly type: "function";
|
|
118
|
+
}, {
|
|
119
|
+
readonly inputs: readonly [{
|
|
120
|
+
readonly internalType: "address";
|
|
121
|
+
readonly name: "";
|
|
122
|
+
readonly type: "address";
|
|
123
|
+
}];
|
|
124
|
+
readonly name: "availableDepositLimit";
|
|
125
|
+
readonly outputs: readonly [{
|
|
126
|
+
readonly internalType: "uint256";
|
|
127
|
+
readonly name: "";
|
|
128
|
+
readonly type: "uint256";
|
|
129
|
+
}];
|
|
130
|
+
readonly stateMutability: "view";
|
|
131
|
+
readonly type: "function";
|
|
132
|
+
}, {
|
|
133
|
+
readonly inputs: readonly [{
|
|
134
|
+
readonly internalType: "address";
|
|
135
|
+
readonly name: "";
|
|
136
|
+
readonly type: "address";
|
|
137
|
+
}];
|
|
138
|
+
readonly name: "availableWithdrawLimit";
|
|
139
|
+
readonly outputs: readonly [{
|
|
140
|
+
readonly internalType: "uint256";
|
|
141
|
+
readonly name: "";
|
|
142
|
+
readonly type: "uint256";
|
|
143
|
+
}];
|
|
144
|
+
readonly stateMutability: "view";
|
|
145
|
+
readonly type: "function";
|
|
146
|
+
}, {
|
|
147
|
+
readonly inputs: readonly [];
|
|
148
|
+
readonly name: "balanceAsset";
|
|
149
|
+
readonly outputs: readonly [{
|
|
150
|
+
readonly internalType: "uint256";
|
|
151
|
+
readonly name: "";
|
|
152
|
+
readonly type: "uint256";
|
|
153
|
+
}];
|
|
154
|
+
readonly stateMutability: "view";
|
|
155
|
+
readonly type: "function";
|
|
156
|
+
}, {
|
|
157
|
+
readonly inputs: readonly [];
|
|
158
|
+
readonly name: "balanceStaked";
|
|
159
|
+
readonly outputs: readonly [{
|
|
160
|
+
readonly internalType: "uint256";
|
|
161
|
+
readonly name: "";
|
|
162
|
+
readonly type: "uint256";
|
|
163
|
+
}];
|
|
164
|
+
readonly stateMutability: "view";
|
|
165
|
+
readonly type: "function";
|
|
166
|
+
}, {
|
|
167
|
+
readonly inputs: readonly [];
|
|
168
|
+
readonly name: "base";
|
|
169
|
+
readonly outputs: readonly [{
|
|
170
|
+
readonly internalType: "address";
|
|
171
|
+
readonly name: "";
|
|
172
|
+
readonly type: "address";
|
|
173
|
+
}];
|
|
174
|
+
readonly stateMutability: "view";
|
|
175
|
+
readonly type: "function";
|
|
176
|
+
}, {
|
|
177
|
+
readonly inputs: readonly [];
|
|
178
|
+
readonly name: "claimRewards";
|
|
179
|
+
readonly outputs: readonly [];
|
|
180
|
+
readonly stateMutability: "nonpayable";
|
|
181
|
+
readonly type: "function";
|
|
182
|
+
}, {
|
|
183
|
+
readonly inputs: readonly [{
|
|
184
|
+
readonly internalType: "uint256";
|
|
185
|
+
readonly name: "_amount";
|
|
186
|
+
readonly type: "uint256";
|
|
187
|
+
}];
|
|
188
|
+
readonly name: "deployFunds";
|
|
189
|
+
readonly outputs: readonly [];
|
|
190
|
+
readonly stateMutability: "nonpayable";
|
|
191
|
+
readonly type: "function";
|
|
192
|
+
}, {
|
|
193
|
+
readonly inputs: readonly [];
|
|
194
|
+
readonly name: "doHealthCheck";
|
|
195
|
+
readonly outputs: readonly [{
|
|
196
|
+
readonly internalType: "bool";
|
|
197
|
+
readonly name: "";
|
|
198
|
+
readonly type: "bool";
|
|
199
|
+
}];
|
|
200
|
+
readonly stateMutability: "view";
|
|
201
|
+
readonly type: "function";
|
|
202
|
+
}, {
|
|
203
|
+
readonly inputs: readonly [{
|
|
204
|
+
readonly internalType: "uint256";
|
|
205
|
+
readonly name: "_amount";
|
|
206
|
+
readonly type: "uint256";
|
|
207
|
+
}];
|
|
208
|
+
readonly name: "freeFunds";
|
|
209
|
+
readonly outputs: readonly [];
|
|
210
|
+
readonly stateMutability: "nonpayable";
|
|
211
|
+
readonly type: "function";
|
|
212
|
+
}, {
|
|
213
|
+
readonly inputs: readonly [];
|
|
214
|
+
readonly name: "harvestAndReport";
|
|
215
|
+
readonly outputs: readonly [{
|
|
216
|
+
readonly internalType: "uint256";
|
|
217
|
+
readonly name: "_totalAssets";
|
|
218
|
+
readonly type: "uint256";
|
|
219
|
+
}];
|
|
220
|
+
readonly stateMutability: "nonpayable";
|
|
221
|
+
readonly type: "function";
|
|
222
|
+
}, {
|
|
223
|
+
readonly inputs: readonly [];
|
|
224
|
+
readonly name: "isExpired";
|
|
225
|
+
readonly outputs: readonly [{
|
|
226
|
+
readonly internalType: "bool";
|
|
227
|
+
readonly name: "";
|
|
228
|
+
readonly type: "bool";
|
|
229
|
+
}];
|
|
230
|
+
readonly stateMutability: "view";
|
|
231
|
+
readonly type: "function";
|
|
232
|
+
}, {
|
|
233
|
+
readonly inputs: readonly [{
|
|
234
|
+
readonly internalType: "address";
|
|
235
|
+
readonly name: "_token";
|
|
236
|
+
readonly type: "address";
|
|
237
|
+
}];
|
|
238
|
+
readonly name: "kickable";
|
|
239
|
+
readonly outputs: readonly [{
|
|
240
|
+
readonly internalType: "uint256";
|
|
241
|
+
readonly name: "";
|
|
242
|
+
readonly type: "uint256";
|
|
243
|
+
}];
|
|
244
|
+
readonly stateMutability: "view";
|
|
245
|
+
readonly type: "function";
|
|
246
|
+
}, {
|
|
247
|
+
readonly inputs: readonly [];
|
|
248
|
+
readonly name: "lossLimitRatio";
|
|
249
|
+
readonly outputs: readonly [{
|
|
250
|
+
readonly internalType: "uint256";
|
|
251
|
+
readonly name: "";
|
|
252
|
+
readonly type: "uint256";
|
|
253
|
+
}];
|
|
254
|
+
readonly stateMutability: "view";
|
|
255
|
+
readonly type: "function";
|
|
256
|
+
}, {
|
|
257
|
+
readonly inputs: readonly [];
|
|
258
|
+
readonly name: "minAmountToSell";
|
|
259
|
+
readonly outputs: readonly [{
|
|
260
|
+
readonly internalType: "uint256";
|
|
261
|
+
readonly name: "";
|
|
262
|
+
readonly type: "uint256";
|
|
263
|
+
}];
|
|
264
|
+
readonly stateMutability: "view";
|
|
265
|
+
readonly type: "function";
|
|
266
|
+
}, {
|
|
267
|
+
readonly inputs: readonly [{
|
|
268
|
+
readonly internalType: "address";
|
|
269
|
+
readonly name: "";
|
|
270
|
+
readonly type: "address";
|
|
271
|
+
}];
|
|
272
|
+
readonly name: "minAmountToSellMapping";
|
|
273
|
+
readonly outputs: readonly [{
|
|
274
|
+
readonly internalType: "uint256";
|
|
275
|
+
readonly name: "";
|
|
276
|
+
readonly type: "uint256";
|
|
277
|
+
}];
|
|
278
|
+
readonly stateMutability: "view";
|
|
279
|
+
readonly type: "function";
|
|
280
|
+
}, {
|
|
281
|
+
readonly inputs: readonly [{
|
|
282
|
+
readonly internalType: "address";
|
|
283
|
+
readonly name: "_token";
|
|
284
|
+
readonly type: "address";
|
|
285
|
+
}, {
|
|
286
|
+
readonly internalType: "uint256";
|
|
287
|
+
readonly name: "_amountTaken";
|
|
288
|
+
readonly type: "uint256";
|
|
289
|
+
}, {
|
|
290
|
+
readonly internalType: "uint256";
|
|
291
|
+
readonly name: "_amountPayed";
|
|
292
|
+
readonly type: "uint256";
|
|
293
|
+
}];
|
|
294
|
+
readonly name: "postTake";
|
|
295
|
+
readonly outputs: readonly [];
|
|
296
|
+
readonly stateMutability: "nonpayable";
|
|
297
|
+
readonly type: "function";
|
|
298
|
+
}, {
|
|
299
|
+
readonly inputs: readonly [{
|
|
300
|
+
readonly internalType: "address";
|
|
301
|
+
readonly name: "_token";
|
|
302
|
+
readonly type: "address";
|
|
303
|
+
}, {
|
|
304
|
+
readonly internalType: "uint256";
|
|
305
|
+
readonly name: "_amountToTake";
|
|
306
|
+
readonly type: "uint256";
|
|
307
|
+
}, {
|
|
308
|
+
readonly internalType: "uint256";
|
|
309
|
+
readonly name: "_amountToPay";
|
|
310
|
+
readonly type: "uint256";
|
|
311
|
+
}];
|
|
312
|
+
readonly name: "preTake";
|
|
313
|
+
readonly outputs: readonly [];
|
|
314
|
+
readonly stateMutability: "nonpayable";
|
|
315
|
+
readonly type: "function";
|
|
316
|
+
}, {
|
|
317
|
+
readonly inputs: readonly [];
|
|
318
|
+
readonly name: "profitLimitRatio";
|
|
319
|
+
readonly outputs: readonly [{
|
|
320
|
+
readonly internalType: "uint256";
|
|
321
|
+
readonly name: "";
|
|
322
|
+
readonly type: "uint256";
|
|
323
|
+
}];
|
|
324
|
+
readonly stateMutability: "view";
|
|
325
|
+
readonly type: "function";
|
|
326
|
+
}, {
|
|
327
|
+
readonly inputs: readonly [{
|
|
328
|
+
readonly internalType: "address";
|
|
329
|
+
readonly name: "_rewardToken";
|
|
330
|
+
readonly type: "address";
|
|
331
|
+
}];
|
|
332
|
+
readonly name: "removeReward";
|
|
333
|
+
readonly outputs: readonly [];
|
|
334
|
+
readonly stateMutability: "nonpayable";
|
|
335
|
+
readonly type: "function";
|
|
336
|
+
}, {
|
|
337
|
+
readonly inputs: readonly [];
|
|
338
|
+
readonly name: "removeTradeFactory";
|
|
339
|
+
readonly outputs: readonly [];
|
|
340
|
+
readonly stateMutability: "nonpayable";
|
|
341
|
+
readonly type: "function";
|
|
342
|
+
}, {
|
|
343
|
+
readonly inputs: readonly [];
|
|
344
|
+
readonly name: "rewardTokens";
|
|
345
|
+
readonly outputs: readonly [{
|
|
346
|
+
readonly internalType: "address[]";
|
|
347
|
+
readonly name: "";
|
|
348
|
+
readonly type: "address[]";
|
|
349
|
+
}];
|
|
350
|
+
readonly stateMutability: "view";
|
|
351
|
+
readonly type: "function";
|
|
352
|
+
}, {
|
|
353
|
+
readonly inputs: readonly [];
|
|
354
|
+
readonly name: "router";
|
|
355
|
+
readonly outputs: readonly [{
|
|
356
|
+
readonly internalType: "address";
|
|
357
|
+
readonly name: "";
|
|
358
|
+
readonly type: "address";
|
|
359
|
+
}];
|
|
360
|
+
readonly stateMutability: "view";
|
|
361
|
+
readonly type: "function";
|
|
362
|
+
}, {
|
|
363
|
+
readonly inputs: readonly [];
|
|
364
|
+
readonly name: "routerParams";
|
|
365
|
+
readonly outputs: readonly [{
|
|
366
|
+
readonly internalType: "uint256";
|
|
367
|
+
readonly name: "guessMin";
|
|
368
|
+
readonly type: "uint256";
|
|
369
|
+
}, {
|
|
370
|
+
readonly internalType: "uint256";
|
|
371
|
+
readonly name: "guessMax";
|
|
372
|
+
readonly type: "uint256";
|
|
373
|
+
}, {
|
|
374
|
+
readonly internalType: "uint256";
|
|
375
|
+
readonly name: "guessOffchain";
|
|
376
|
+
readonly type: "uint256";
|
|
377
|
+
}, {
|
|
378
|
+
readonly internalType: "uint256";
|
|
379
|
+
readonly name: "maxIteration";
|
|
380
|
+
readonly type: "uint256";
|
|
381
|
+
}, {
|
|
382
|
+
readonly internalType: "uint256";
|
|
383
|
+
readonly name: "eps";
|
|
384
|
+
readonly type: "uint256";
|
|
385
|
+
}];
|
|
386
|
+
readonly stateMutability: "view";
|
|
387
|
+
readonly type: "function";
|
|
388
|
+
}, {
|
|
389
|
+
readonly inputs: readonly [{
|
|
390
|
+
readonly internalType: "address";
|
|
391
|
+
readonly name: "_auction";
|
|
392
|
+
readonly type: "address";
|
|
393
|
+
}];
|
|
394
|
+
readonly name: "setAuction";
|
|
395
|
+
readonly outputs: readonly [];
|
|
396
|
+
readonly stateMutability: "nonpayable";
|
|
397
|
+
readonly type: "function";
|
|
398
|
+
}, {
|
|
399
|
+
readonly inputs: readonly [{
|
|
400
|
+
readonly internalType: "bool";
|
|
401
|
+
readonly name: "_autocompound";
|
|
402
|
+
readonly type: "bool";
|
|
403
|
+
}];
|
|
404
|
+
readonly name: "setAutocompound";
|
|
405
|
+
readonly outputs: readonly [];
|
|
406
|
+
readonly stateMutability: "nonpayable";
|
|
407
|
+
readonly type: "function";
|
|
408
|
+
}, {
|
|
409
|
+
readonly inputs: readonly [{
|
|
410
|
+
readonly internalType: "bool";
|
|
411
|
+
readonly name: "_doHealthCheck";
|
|
412
|
+
readonly type: "bool";
|
|
413
|
+
}];
|
|
414
|
+
readonly name: "setDoHealthCheck";
|
|
415
|
+
readonly outputs: readonly [];
|
|
416
|
+
readonly stateMutability: "nonpayable";
|
|
417
|
+
readonly type: "function";
|
|
418
|
+
}, {
|
|
419
|
+
readonly inputs: readonly [{
|
|
420
|
+
readonly internalType: "uint256";
|
|
421
|
+
readonly name: "_newLossLimitRatio";
|
|
422
|
+
readonly type: "uint256";
|
|
423
|
+
}];
|
|
424
|
+
readonly name: "setLossLimitRatio";
|
|
425
|
+
readonly outputs: readonly [];
|
|
426
|
+
readonly stateMutability: "nonpayable";
|
|
427
|
+
readonly type: "function";
|
|
428
|
+
}, {
|
|
429
|
+
readonly inputs: readonly [{
|
|
430
|
+
readonly internalType: "address";
|
|
431
|
+
readonly name: "_token";
|
|
432
|
+
readonly type: "address";
|
|
433
|
+
}, {
|
|
434
|
+
readonly internalType: "uint256";
|
|
435
|
+
readonly name: "_amount";
|
|
436
|
+
readonly type: "uint256";
|
|
437
|
+
}];
|
|
438
|
+
readonly name: "setMinAmountToSellMapping";
|
|
439
|
+
readonly outputs: readonly [];
|
|
440
|
+
readonly stateMutability: "nonpayable";
|
|
441
|
+
readonly type: "function";
|
|
442
|
+
}, {
|
|
443
|
+
readonly inputs: readonly [{
|
|
444
|
+
readonly internalType: "uint256";
|
|
445
|
+
readonly name: "_newProfitLimitRatio";
|
|
446
|
+
readonly type: "uint256";
|
|
447
|
+
}];
|
|
448
|
+
readonly name: "setProfitLimitRatio";
|
|
449
|
+
readonly outputs: readonly [];
|
|
450
|
+
readonly stateMutability: "nonpayable";
|
|
451
|
+
readonly type: "function";
|
|
452
|
+
}, {
|
|
453
|
+
readonly inputs: readonly [{
|
|
454
|
+
readonly internalType: "uint256";
|
|
455
|
+
readonly name: "_guessMin";
|
|
456
|
+
readonly type: "uint256";
|
|
457
|
+
}, {
|
|
458
|
+
readonly internalType: "uint256";
|
|
459
|
+
readonly name: "_guessMax";
|
|
460
|
+
readonly type: "uint256";
|
|
461
|
+
}, {
|
|
462
|
+
readonly internalType: "uint256";
|
|
463
|
+
readonly name: "_maxIteration";
|
|
464
|
+
readonly type: "uint256";
|
|
465
|
+
}, {
|
|
466
|
+
readonly internalType: "uint256";
|
|
467
|
+
readonly name: "_eps";
|
|
468
|
+
readonly type: "uint256";
|
|
469
|
+
}];
|
|
470
|
+
readonly name: "setRouterParams";
|
|
471
|
+
readonly outputs: readonly [];
|
|
472
|
+
readonly stateMutability: "nonpayable";
|
|
473
|
+
readonly type: "function";
|
|
474
|
+
}, {
|
|
475
|
+
readonly inputs: readonly [{
|
|
476
|
+
readonly internalType: "address";
|
|
477
|
+
readonly name: "_tradeFactory";
|
|
478
|
+
readonly type: "address";
|
|
479
|
+
}, {
|
|
480
|
+
readonly internalType: "bool";
|
|
481
|
+
readonly name: "_useTradeFactory";
|
|
482
|
+
readonly type: "bool";
|
|
483
|
+
}];
|
|
484
|
+
readonly name: "setTradeFactory";
|
|
485
|
+
readonly outputs: readonly [];
|
|
486
|
+
readonly stateMutability: "nonpayable";
|
|
487
|
+
readonly type: "function";
|
|
488
|
+
}, {
|
|
489
|
+
readonly inputs: readonly [{
|
|
490
|
+
readonly internalType: "address";
|
|
491
|
+
readonly name: "_token0";
|
|
492
|
+
readonly type: "address";
|
|
493
|
+
}, {
|
|
494
|
+
readonly internalType: "address";
|
|
495
|
+
readonly name: "_token1";
|
|
496
|
+
readonly type: "address";
|
|
497
|
+
}, {
|
|
498
|
+
readonly internalType: "uint24";
|
|
499
|
+
readonly name: "_fee";
|
|
500
|
+
readonly type: "uint24";
|
|
501
|
+
}];
|
|
502
|
+
readonly name: "setUniFees";
|
|
503
|
+
readonly outputs: readonly [];
|
|
504
|
+
readonly stateMutability: "nonpayable";
|
|
505
|
+
readonly type: "function";
|
|
506
|
+
}, {
|
|
507
|
+
readonly inputs: readonly [{
|
|
508
|
+
readonly internalType: "bool";
|
|
509
|
+
readonly name: "_useAuction";
|
|
510
|
+
readonly type: "bool";
|
|
511
|
+
}];
|
|
512
|
+
readonly name: "setUseAuction";
|
|
513
|
+
readonly outputs: readonly [];
|
|
514
|
+
readonly stateMutability: "nonpayable";
|
|
515
|
+
readonly type: "function";
|
|
516
|
+
}, {
|
|
517
|
+
readonly inputs: readonly [{
|
|
518
|
+
readonly internalType: "bool";
|
|
519
|
+
readonly name: "_useTradeFactory";
|
|
520
|
+
readonly type: "bool";
|
|
521
|
+
}];
|
|
522
|
+
readonly name: "setUseTradeFactory";
|
|
523
|
+
readonly outputs: readonly [];
|
|
524
|
+
readonly stateMutability: "nonpayable";
|
|
525
|
+
readonly type: "function";
|
|
526
|
+
}, {
|
|
527
|
+
readonly inputs: readonly [{
|
|
528
|
+
readonly internalType: "uint256";
|
|
529
|
+
readonly name: "_amount";
|
|
530
|
+
readonly type: "uint256";
|
|
531
|
+
}];
|
|
532
|
+
readonly name: "shutdownWithdraw";
|
|
533
|
+
readonly outputs: readonly [];
|
|
534
|
+
readonly stateMutability: "nonpayable";
|
|
535
|
+
readonly type: "function";
|
|
536
|
+
}, {
|
|
537
|
+
readonly inputs: readonly [{
|
|
538
|
+
readonly internalType: "address";
|
|
539
|
+
readonly name: "_token";
|
|
540
|
+
readonly type: "address";
|
|
541
|
+
}];
|
|
542
|
+
readonly name: "sweep";
|
|
543
|
+
readonly outputs: readonly [];
|
|
544
|
+
readonly stateMutability: "nonpayable";
|
|
545
|
+
readonly type: "function";
|
|
546
|
+
}, {
|
|
547
|
+
readonly inputs: readonly [];
|
|
548
|
+
readonly name: "targetToken";
|
|
549
|
+
readonly outputs: readonly [{
|
|
550
|
+
readonly internalType: "address";
|
|
551
|
+
readonly name: "";
|
|
552
|
+
readonly type: "address";
|
|
553
|
+
}];
|
|
554
|
+
readonly stateMutability: "view";
|
|
555
|
+
readonly type: "function";
|
|
556
|
+
}, {
|
|
557
|
+
readonly inputs: readonly [{
|
|
558
|
+
readonly internalType: "uint256";
|
|
559
|
+
readonly name: "_totalIdle";
|
|
560
|
+
readonly type: "uint256";
|
|
561
|
+
}];
|
|
562
|
+
readonly name: "tendThis";
|
|
563
|
+
readonly outputs: readonly [];
|
|
564
|
+
readonly stateMutability: "nonpayable";
|
|
565
|
+
readonly type: "function";
|
|
566
|
+
}, {
|
|
567
|
+
readonly inputs: readonly [];
|
|
568
|
+
readonly name: "tendTrigger";
|
|
569
|
+
readonly outputs: readonly [{
|
|
570
|
+
readonly internalType: "bool";
|
|
571
|
+
readonly name: "";
|
|
572
|
+
readonly type: "bool";
|
|
573
|
+
}, {
|
|
574
|
+
readonly internalType: "bytes";
|
|
575
|
+
readonly name: "";
|
|
576
|
+
readonly type: "bytes";
|
|
577
|
+
}];
|
|
578
|
+
readonly stateMutability: "view";
|
|
579
|
+
readonly type: "function";
|
|
580
|
+
}, {
|
|
581
|
+
readonly inputs: readonly [];
|
|
582
|
+
readonly name: "tokenizedStrategyAddress";
|
|
583
|
+
readonly outputs: readonly [{
|
|
584
|
+
readonly internalType: "address";
|
|
585
|
+
readonly name: "";
|
|
586
|
+
readonly type: "address";
|
|
587
|
+
}];
|
|
588
|
+
readonly stateMutability: "view";
|
|
589
|
+
readonly type: "function";
|
|
590
|
+
}, {
|
|
591
|
+
readonly inputs: readonly [];
|
|
592
|
+
readonly name: "tradeFactory";
|
|
593
|
+
readonly outputs: readonly [{
|
|
594
|
+
readonly internalType: "address";
|
|
595
|
+
readonly name: "";
|
|
596
|
+
readonly type: "address";
|
|
597
|
+
}];
|
|
598
|
+
readonly stateMutability: "view";
|
|
599
|
+
readonly type: "function";
|
|
600
|
+
}, {
|
|
601
|
+
readonly inputs: readonly [{
|
|
602
|
+
readonly internalType: "address";
|
|
603
|
+
readonly name: "";
|
|
604
|
+
readonly type: "address";
|
|
605
|
+
}, {
|
|
606
|
+
readonly internalType: "address";
|
|
607
|
+
readonly name: "";
|
|
608
|
+
readonly type: "address";
|
|
609
|
+
}];
|
|
610
|
+
readonly name: "uniFees";
|
|
611
|
+
readonly outputs: readonly [{
|
|
612
|
+
readonly internalType: "uint24";
|
|
613
|
+
readonly name: "";
|
|
614
|
+
readonly type: "uint24";
|
|
615
|
+
}];
|
|
616
|
+
readonly stateMutability: "view";
|
|
617
|
+
readonly type: "function";
|
|
618
|
+
}, {
|
|
619
|
+
readonly inputs: readonly [];
|
|
620
|
+
readonly name: "unwrapTargetTokenToSY";
|
|
621
|
+
readonly outputs: readonly [{
|
|
622
|
+
readonly internalType: "bool";
|
|
623
|
+
readonly name: "";
|
|
624
|
+
readonly type: "bool";
|
|
625
|
+
}];
|
|
626
|
+
readonly stateMutability: "view";
|
|
627
|
+
readonly type: "function";
|
|
628
|
+
}, {
|
|
629
|
+
readonly inputs: readonly [];
|
|
630
|
+
readonly name: "useAuction";
|
|
631
|
+
readonly outputs: readonly [{
|
|
632
|
+
readonly internalType: "bool";
|
|
633
|
+
readonly name: "";
|
|
634
|
+
readonly type: "bool";
|
|
635
|
+
}];
|
|
636
|
+
readonly stateMutability: "view";
|
|
637
|
+
readonly type: "function";
|
|
638
|
+
}, {
|
|
639
|
+
readonly inputs: readonly [];
|
|
640
|
+
readonly name: "useTradeFactory";
|
|
641
|
+
readonly outputs: readonly [{
|
|
642
|
+
readonly internalType: "bool";
|
|
643
|
+
readonly name: "";
|
|
644
|
+
readonly type: "bool";
|
|
645
|
+
}];
|
|
646
|
+
readonly stateMutability: "view";
|
|
647
|
+
readonly type: "function";
|
|
648
|
+
}, {
|
|
649
|
+
readonly stateMutability: "payable";
|
|
650
|
+
readonly type: "receive";
|
|
651
|
+
}];
|
|
652
|
+
/**
|
|
653
|
+
* Type-safe ABI for PendleLPCompounder_json
|
|
654
|
+
*/
|
|
655
|
+
export type PendleLPCompounder_jsonAbi = typeof PendleLPCompounder_jsonAbi;
|
|
656
|
+
/**
|
|
657
|
+
* Contract instance type for PendleLPCompounder_json
|
|
658
|
+
*/
|
|
659
|
+
export type PendleLPCompounder_jsonContract = any;
|
|
660
|
+
/**
|
|
661
|
+
* PendleLPCompounder_json Contract Class
|
|
662
|
+
*
|
|
663
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
664
|
+
*
|
|
665
|
+
* @example
|
|
666
|
+
* ```typescript
|
|
667
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
668
|
+
* import { mainnet } from 'viem/chains';
|
|
669
|
+
* import { PendleLPCompounder_json } from 'PendleLPCompounder_json';
|
|
670
|
+
*
|
|
671
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
672
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
673
|
+
*
|
|
674
|
+
* const contract = new PendleLPCompounder_json('0x...', { publicClient, walletClient });
|
|
675
|
+
*
|
|
676
|
+
* // Read functions
|
|
677
|
+
* const result = await contract.balanceOf('0x...');
|
|
678
|
+
*
|
|
679
|
+
* // Write functions
|
|
680
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
681
|
+
*
|
|
682
|
+
* // Simulate transactions (dry-run)
|
|
683
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
684
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
685
|
+
*
|
|
686
|
+
* // Watch events
|
|
687
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
688
|
+
* console.log('Transfer event:', event);
|
|
689
|
+
* });
|
|
690
|
+
* ```
|
|
691
|
+
*/
|
|
692
|
+
export declare class PendleLPCompounder_json {
|
|
693
|
+
private contract;
|
|
694
|
+
private contractAddress;
|
|
695
|
+
private publicClient;
|
|
696
|
+
constructor(address: Address, clients: {
|
|
697
|
+
publicClient: PublicClient;
|
|
698
|
+
walletClient?: WalletClient;
|
|
699
|
+
});
|
|
700
|
+
/**
|
|
701
|
+
* Get the contract address
|
|
702
|
+
*/
|
|
703
|
+
get address(): Address;
|
|
704
|
+
/**
|
|
705
|
+
* Get the underlying viem contract instance
|
|
706
|
+
*/
|
|
707
|
+
getContract(): PendleLPCompounder_jsonContract;
|
|
708
|
+
/**
|
|
709
|
+
* GOV
|
|
710
|
+
* view
|
|
711
|
+
*/
|
|
712
|
+
GOV(): Promise<`0x${string}`>;
|
|
713
|
+
/**
|
|
714
|
+
* auction
|
|
715
|
+
* view
|
|
716
|
+
*/
|
|
717
|
+
auction(): Promise<`0x${string}`>;
|
|
718
|
+
/**
|
|
719
|
+
* auctionFactory
|
|
720
|
+
* view
|
|
721
|
+
*/
|
|
722
|
+
auctionFactory(): Promise<`0x${string}`>;
|
|
723
|
+
/**
|
|
724
|
+
* autocompound
|
|
725
|
+
* view
|
|
726
|
+
*/
|
|
727
|
+
autocompound(): Promise<boolean>;
|
|
728
|
+
/**
|
|
729
|
+
* availableDepositLimit
|
|
730
|
+
* view
|
|
731
|
+
*/
|
|
732
|
+
availableDepositLimit(arg0: `0x${string}`): Promise<bigint>;
|
|
733
|
+
/**
|
|
734
|
+
* availableWithdrawLimit
|
|
735
|
+
* view
|
|
736
|
+
*/
|
|
737
|
+
availableWithdrawLimit(arg0: `0x${string}`): Promise<bigint>;
|
|
738
|
+
/**
|
|
739
|
+
* balanceAsset
|
|
740
|
+
* view
|
|
741
|
+
*/
|
|
742
|
+
balanceAsset(): Promise<bigint>;
|
|
743
|
+
/**
|
|
744
|
+
* balanceStaked
|
|
745
|
+
* view
|
|
746
|
+
*/
|
|
747
|
+
balanceStaked(): Promise<bigint>;
|
|
748
|
+
/**
|
|
749
|
+
* base
|
|
750
|
+
* view
|
|
751
|
+
*/
|
|
752
|
+
base(): Promise<`0x${string}`>;
|
|
753
|
+
/**
|
|
754
|
+
* doHealthCheck
|
|
755
|
+
* view
|
|
756
|
+
*/
|
|
757
|
+
doHealthCheck(): Promise<boolean>;
|
|
758
|
+
/**
|
|
759
|
+
* isExpired
|
|
760
|
+
* view
|
|
761
|
+
*/
|
|
762
|
+
isExpired(): Promise<boolean>;
|
|
763
|
+
/**
|
|
764
|
+
* kickable
|
|
765
|
+
* view
|
|
766
|
+
*/
|
|
767
|
+
kickable(_token: `0x${string}`): Promise<bigint>;
|
|
768
|
+
/**
|
|
769
|
+
* lossLimitRatio
|
|
770
|
+
* view
|
|
771
|
+
*/
|
|
772
|
+
lossLimitRatio(): Promise<bigint>;
|
|
773
|
+
/**
|
|
774
|
+
* minAmountToSell
|
|
775
|
+
* view
|
|
776
|
+
*/
|
|
777
|
+
minAmountToSell(): Promise<bigint>;
|
|
778
|
+
/**
|
|
779
|
+
* minAmountToSellMapping
|
|
780
|
+
* view
|
|
781
|
+
*/
|
|
782
|
+
minAmountToSellMapping(arg0: `0x${string}`): Promise<bigint>;
|
|
783
|
+
/**
|
|
784
|
+
* profitLimitRatio
|
|
785
|
+
* view
|
|
786
|
+
*/
|
|
787
|
+
profitLimitRatio(): Promise<bigint>;
|
|
788
|
+
/**
|
|
789
|
+
* rewardTokens
|
|
790
|
+
* view
|
|
791
|
+
*/
|
|
792
|
+
rewardTokens(): Promise<`0x${string}`[]>;
|
|
793
|
+
/**
|
|
794
|
+
* router
|
|
795
|
+
* view
|
|
796
|
+
*/
|
|
797
|
+
router(): Promise<`0x${string}`>;
|
|
798
|
+
/**
|
|
799
|
+
* routerParams
|
|
800
|
+
* view
|
|
801
|
+
*/
|
|
802
|
+
routerParams(): Promise<[bigint, bigint, bigint, bigint, bigint]>;
|
|
803
|
+
/**
|
|
804
|
+
* targetToken
|
|
805
|
+
* view
|
|
806
|
+
*/
|
|
807
|
+
targetToken(): Promise<`0x${string}`>;
|
|
808
|
+
/**
|
|
809
|
+
* tendTrigger
|
|
810
|
+
* view
|
|
811
|
+
*/
|
|
812
|
+
tendTrigger(): Promise<[boolean, `0x${string}`]>;
|
|
813
|
+
/**
|
|
814
|
+
* tokenizedStrategyAddress
|
|
815
|
+
* view
|
|
816
|
+
*/
|
|
817
|
+
tokenizedStrategyAddress(): Promise<`0x${string}`>;
|
|
818
|
+
/**
|
|
819
|
+
* tradeFactory
|
|
820
|
+
* view
|
|
821
|
+
*/
|
|
822
|
+
tradeFactory(): Promise<`0x${string}`>;
|
|
823
|
+
/**
|
|
824
|
+
* uniFees
|
|
825
|
+
* view
|
|
826
|
+
*/
|
|
827
|
+
uniFees(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
|
|
828
|
+
/**
|
|
829
|
+
* unwrapTargetTokenToSY
|
|
830
|
+
* view
|
|
831
|
+
*/
|
|
832
|
+
unwrapTargetTokenToSY(): Promise<boolean>;
|
|
833
|
+
/**
|
|
834
|
+
* useAuction
|
|
835
|
+
* view
|
|
836
|
+
*/
|
|
837
|
+
useAuction(): Promise<boolean>;
|
|
838
|
+
/**
|
|
839
|
+
* useTradeFactory
|
|
840
|
+
* view
|
|
841
|
+
*/
|
|
842
|
+
useTradeFactory(): Promise<boolean>;
|
|
843
|
+
/**
|
|
844
|
+
* addReward
|
|
845
|
+
* nonpayable
|
|
846
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
847
|
+
*/
|
|
848
|
+
addReward(_rewardToken: `0x${string}`, _feeRewardTokenToBase: bigint, options?: {
|
|
849
|
+
accessList?: import('viem').AccessList;
|
|
850
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
851
|
+
chain?: import('viem').Chain | null;
|
|
852
|
+
dataSuffix?: `0x${string}`;
|
|
853
|
+
gas?: bigint;
|
|
854
|
+
gasPrice?: bigint;
|
|
855
|
+
maxFeePerGas?: bigint;
|
|
856
|
+
maxPriorityFeePerGas?: bigint;
|
|
857
|
+
nonce?: number;
|
|
858
|
+
value?: bigint;
|
|
859
|
+
}): Promise<`0x${string}`>;
|
|
860
|
+
/**
|
|
861
|
+
* auctionKicked
|
|
862
|
+
* nonpayable
|
|
863
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
864
|
+
*/
|
|
865
|
+
auctionKicked(_token: `0x${string}`, options?: {
|
|
866
|
+
accessList?: import('viem').AccessList;
|
|
867
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
868
|
+
chain?: import('viem').Chain | null;
|
|
869
|
+
dataSuffix?: `0x${string}`;
|
|
870
|
+
gas?: bigint;
|
|
871
|
+
gasPrice?: bigint;
|
|
872
|
+
maxFeePerGas?: bigint;
|
|
873
|
+
maxPriorityFeePerGas?: bigint;
|
|
874
|
+
nonce?: number;
|
|
875
|
+
value?: bigint;
|
|
876
|
+
}): Promise<`0x${string}`>;
|
|
877
|
+
/**
|
|
878
|
+
* claimRewards
|
|
879
|
+
* nonpayable
|
|
880
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
881
|
+
*/
|
|
882
|
+
claimRewards(options?: {
|
|
883
|
+
accessList?: import('viem').AccessList;
|
|
884
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
885
|
+
chain?: import('viem').Chain | null;
|
|
886
|
+
dataSuffix?: `0x${string}`;
|
|
887
|
+
gas?: bigint;
|
|
888
|
+
gasPrice?: bigint;
|
|
889
|
+
maxFeePerGas?: bigint;
|
|
890
|
+
maxPriorityFeePerGas?: bigint;
|
|
891
|
+
nonce?: number;
|
|
892
|
+
value?: bigint;
|
|
893
|
+
}): Promise<`0x${string}`>;
|
|
894
|
+
/**
|
|
895
|
+
* deployFunds
|
|
896
|
+
* nonpayable
|
|
897
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
898
|
+
*/
|
|
899
|
+
deployFunds(_amount: bigint, options?: {
|
|
900
|
+
accessList?: import('viem').AccessList;
|
|
901
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
902
|
+
chain?: import('viem').Chain | null;
|
|
903
|
+
dataSuffix?: `0x${string}`;
|
|
904
|
+
gas?: bigint;
|
|
905
|
+
gasPrice?: bigint;
|
|
906
|
+
maxFeePerGas?: bigint;
|
|
907
|
+
maxPriorityFeePerGas?: bigint;
|
|
908
|
+
nonce?: number;
|
|
909
|
+
value?: bigint;
|
|
910
|
+
}): Promise<`0x${string}`>;
|
|
911
|
+
/**
|
|
912
|
+
* freeFunds
|
|
913
|
+
* nonpayable
|
|
914
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
915
|
+
*/
|
|
916
|
+
freeFunds(_amount: bigint, options?: {
|
|
917
|
+
accessList?: import('viem').AccessList;
|
|
918
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
919
|
+
chain?: import('viem').Chain | null;
|
|
920
|
+
dataSuffix?: `0x${string}`;
|
|
921
|
+
gas?: bigint;
|
|
922
|
+
gasPrice?: bigint;
|
|
923
|
+
maxFeePerGas?: bigint;
|
|
924
|
+
maxPriorityFeePerGas?: bigint;
|
|
925
|
+
nonce?: number;
|
|
926
|
+
value?: bigint;
|
|
927
|
+
}): Promise<`0x${string}`>;
|
|
928
|
+
/**
|
|
929
|
+
* harvestAndReport
|
|
930
|
+
* nonpayable
|
|
931
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
932
|
+
*/
|
|
933
|
+
harvestAndReport(options?: {
|
|
934
|
+
accessList?: import('viem').AccessList;
|
|
935
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
936
|
+
chain?: import('viem').Chain | null;
|
|
937
|
+
dataSuffix?: `0x${string}`;
|
|
938
|
+
gas?: bigint;
|
|
939
|
+
gasPrice?: bigint;
|
|
940
|
+
maxFeePerGas?: bigint;
|
|
941
|
+
maxPriorityFeePerGas?: bigint;
|
|
942
|
+
nonce?: number;
|
|
943
|
+
value?: bigint;
|
|
944
|
+
}): Promise<`0x${string}`>;
|
|
945
|
+
/**
|
|
946
|
+
* postTake
|
|
947
|
+
* nonpayable
|
|
948
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
949
|
+
*/
|
|
950
|
+
postTake(_token: `0x${string}`, _amountTaken: bigint, _amountPayed: bigint, options?: {
|
|
951
|
+
accessList?: import('viem').AccessList;
|
|
952
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
953
|
+
chain?: import('viem').Chain | null;
|
|
954
|
+
dataSuffix?: `0x${string}`;
|
|
955
|
+
gas?: bigint;
|
|
956
|
+
gasPrice?: bigint;
|
|
957
|
+
maxFeePerGas?: bigint;
|
|
958
|
+
maxPriorityFeePerGas?: bigint;
|
|
959
|
+
nonce?: number;
|
|
960
|
+
value?: bigint;
|
|
961
|
+
}): Promise<`0x${string}`>;
|
|
962
|
+
/**
|
|
963
|
+
* preTake
|
|
964
|
+
* nonpayable
|
|
965
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
966
|
+
*/
|
|
967
|
+
preTake(_token: `0x${string}`, _amountToTake: bigint, _amountToPay: bigint, options?: {
|
|
968
|
+
accessList?: import('viem').AccessList;
|
|
969
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
970
|
+
chain?: import('viem').Chain | null;
|
|
971
|
+
dataSuffix?: `0x${string}`;
|
|
972
|
+
gas?: bigint;
|
|
973
|
+
gasPrice?: bigint;
|
|
974
|
+
maxFeePerGas?: bigint;
|
|
975
|
+
maxPriorityFeePerGas?: bigint;
|
|
976
|
+
nonce?: number;
|
|
977
|
+
value?: bigint;
|
|
978
|
+
}): Promise<`0x${string}`>;
|
|
979
|
+
/**
|
|
980
|
+
* removeReward
|
|
981
|
+
* nonpayable
|
|
982
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
983
|
+
*/
|
|
984
|
+
removeReward(_rewardToken: `0x${string}`, options?: {
|
|
985
|
+
accessList?: import('viem').AccessList;
|
|
986
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
987
|
+
chain?: import('viem').Chain | null;
|
|
988
|
+
dataSuffix?: `0x${string}`;
|
|
989
|
+
gas?: bigint;
|
|
990
|
+
gasPrice?: bigint;
|
|
991
|
+
maxFeePerGas?: bigint;
|
|
992
|
+
maxPriorityFeePerGas?: bigint;
|
|
993
|
+
nonce?: number;
|
|
994
|
+
value?: bigint;
|
|
995
|
+
}): Promise<`0x${string}`>;
|
|
996
|
+
/**
|
|
997
|
+
* removeTradeFactory
|
|
998
|
+
* nonpayable
|
|
999
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1000
|
+
*/
|
|
1001
|
+
removeTradeFactory(options?: {
|
|
1002
|
+
accessList?: import('viem').AccessList;
|
|
1003
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1004
|
+
chain?: import('viem').Chain | null;
|
|
1005
|
+
dataSuffix?: `0x${string}`;
|
|
1006
|
+
gas?: bigint;
|
|
1007
|
+
gasPrice?: bigint;
|
|
1008
|
+
maxFeePerGas?: bigint;
|
|
1009
|
+
maxPriorityFeePerGas?: bigint;
|
|
1010
|
+
nonce?: number;
|
|
1011
|
+
value?: bigint;
|
|
1012
|
+
}): Promise<`0x${string}`>;
|
|
1013
|
+
/**
|
|
1014
|
+
* setAuction
|
|
1015
|
+
* nonpayable
|
|
1016
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1017
|
+
*/
|
|
1018
|
+
setAuction(_auction: `0x${string}`, options?: {
|
|
1019
|
+
accessList?: import('viem').AccessList;
|
|
1020
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1021
|
+
chain?: import('viem').Chain | null;
|
|
1022
|
+
dataSuffix?: `0x${string}`;
|
|
1023
|
+
gas?: bigint;
|
|
1024
|
+
gasPrice?: bigint;
|
|
1025
|
+
maxFeePerGas?: bigint;
|
|
1026
|
+
maxPriorityFeePerGas?: bigint;
|
|
1027
|
+
nonce?: number;
|
|
1028
|
+
value?: bigint;
|
|
1029
|
+
}): Promise<`0x${string}`>;
|
|
1030
|
+
/**
|
|
1031
|
+
* setAutocompound
|
|
1032
|
+
* nonpayable
|
|
1033
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1034
|
+
*/
|
|
1035
|
+
setAutocompound(_autocompound: boolean, options?: {
|
|
1036
|
+
accessList?: import('viem').AccessList;
|
|
1037
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1038
|
+
chain?: import('viem').Chain | null;
|
|
1039
|
+
dataSuffix?: `0x${string}`;
|
|
1040
|
+
gas?: bigint;
|
|
1041
|
+
gasPrice?: bigint;
|
|
1042
|
+
maxFeePerGas?: bigint;
|
|
1043
|
+
maxPriorityFeePerGas?: bigint;
|
|
1044
|
+
nonce?: number;
|
|
1045
|
+
value?: bigint;
|
|
1046
|
+
}): Promise<`0x${string}`>;
|
|
1047
|
+
/**
|
|
1048
|
+
* setDoHealthCheck
|
|
1049
|
+
* nonpayable
|
|
1050
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1051
|
+
*/
|
|
1052
|
+
setDoHealthCheck(_doHealthCheck: boolean, options?: {
|
|
1053
|
+
accessList?: import('viem').AccessList;
|
|
1054
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1055
|
+
chain?: import('viem').Chain | null;
|
|
1056
|
+
dataSuffix?: `0x${string}`;
|
|
1057
|
+
gas?: bigint;
|
|
1058
|
+
gasPrice?: bigint;
|
|
1059
|
+
maxFeePerGas?: bigint;
|
|
1060
|
+
maxPriorityFeePerGas?: bigint;
|
|
1061
|
+
nonce?: number;
|
|
1062
|
+
value?: bigint;
|
|
1063
|
+
}): Promise<`0x${string}`>;
|
|
1064
|
+
/**
|
|
1065
|
+
* setLossLimitRatio
|
|
1066
|
+
* nonpayable
|
|
1067
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1068
|
+
*/
|
|
1069
|
+
setLossLimitRatio(_newLossLimitRatio: bigint, options?: {
|
|
1070
|
+
accessList?: import('viem').AccessList;
|
|
1071
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1072
|
+
chain?: import('viem').Chain | null;
|
|
1073
|
+
dataSuffix?: `0x${string}`;
|
|
1074
|
+
gas?: bigint;
|
|
1075
|
+
gasPrice?: bigint;
|
|
1076
|
+
maxFeePerGas?: bigint;
|
|
1077
|
+
maxPriorityFeePerGas?: bigint;
|
|
1078
|
+
nonce?: number;
|
|
1079
|
+
value?: bigint;
|
|
1080
|
+
}): Promise<`0x${string}`>;
|
|
1081
|
+
/**
|
|
1082
|
+
* setMinAmountToSellMapping
|
|
1083
|
+
* nonpayable
|
|
1084
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1085
|
+
*/
|
|
1086
|
+
setMinAmountToSellMapping(_token: `0x${string}`, _amount: bigint, options?: {
|
|
1087
|
+
accessList?: import('viem').AccessList;
|
|
1088
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1089
|
+
chain?: import('viem').Chain | null;
|
|
1090
|
+
dataSuffix?: `0x${string}`;
|
|
1091
|
+
gas?: bigint;
|
|
1092
|
+
gasPrice?: bigint;
|
|
1093
|
+
maxFeePerGas?: bigint;
|
|
1094
|
+
maxPriorityFeePerGas?: bigint;
|
|
1095
|
+
nonce?: number;
|
|
1096
|
+
value?: bigint;
|
|
1097
|
+
}): Promise<`0x${string}`>;
|
|
1098
|
+
/**
|
|
1099
|
+
* setProfitLimitRatio
|
|
1100
|
+
* nonpayable
|
|
1101
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1102
|
+
*/
|
|
1103
|
+
setProfitLimitRatio(_newProfitLimitRatio: bigint, options?: {
|
|
1104
|
+
accessList?: import('viem').AccessList;
|
|
1105
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1106
|
+
chain?: import('viem').Chain | null;
|
|
1107
|
+
dataSuffix?: `0x${string}`;
|
|
1108
|
+
gas?: bigint;
|
|
1109
|
+
gasPrice?: bigint;
|
|
1110
|
+
maxFeePerGas?: bigint;
|
|
1111
|
+
maxPriorityFeePerGas?: bigint;
|
|
1112
|
+
nonce?: number;
|
|
1113
|
+
value?: bigint;
|
|
1114
|
+
}): Promise<`0x${string}`>;
|
|
1115
|
+
/**
|
|
1116
|
+
* setRouterParams
|
|
1117
|
+
* nonpayable
|
|
1118
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1119
|
+
*/
|
|
1120
|
+
setRouterParams(_guessMin: bigint, _guessMax: bigint, _maxIteration: bigint, _eps: bigint, options?: {
|
|
1121
|
+
accessList?: import('viem').AccessList;
|
|
1122
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1123
|
+
chain?: import('viem').Chain | null;
|
|
1124
|
+
dataSuffix?: `0x${string}`;
|
|
1125
|
+
gas?: bigint;
|
|
1126
|
+
gasPrice?: bigint;
|
|
1127
|
+
maxFeePerGas?: bigint;
|
|
1128
|
+
maxPriorityFeePerGas?: bigint;
|
|
1129
|
+
nonce?: number;
|
|
1130
|
+
value?: bigint;
|
|
1131
|
+
}): Promise<`0x${string}`>;
|
|
1132
|
+
/**
|
|
1133
|
+
* setTradeFactory
|
|
1134
|
+
* nonpayable
|
|
1135
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1136
|
+
*/
|
|
1137
|
+
setTradeFactory(_tradeFactory: `0x${string}`, _useTradeFactory: boolean, options?: {
|
|
1138
|
+
accessList?: import('viem').AccessList;
|
|
1139
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1140
|
+
chain?: import('viem').Chain | null;
|
|
1141
|
+
dataSuffix?: `0x${string}`;
|
|
1142
|
+
gas?: bigint;
|
|
1143
|
+
gasPrice?: bigint;
|
|
1144
|
+
maxFeePerGas?: bigint;
|
|
1145
|
+
maxPriorityFeePerGas?: bigint;
|
|
1146
|
+
nonce?: number;
|
|
1147
|
+
value?: bigint;
|
|
1148
|
+
}): Promise<`0x${string}`>;
|
|
1149
|
+
/**
|
|
1150
|
+
* setUniFees
|
|
1151
|
+
* nonpayable
|
|
1152
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1153
|
+
*/
|
|
1154
|
+
setUniFees(_token0: `0x${string}`, _token1: `0x${string}`, _fee: bigint, options?: {
|
|
1155
|
+
accessList?: import('viem').AccessList;
|
|
1156
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1157
|
+
chain?: import('viem').Chain | null;
|
|
1158
|
+
dataSuffix?: `0x${string}`;
|
|
1159
|
+
gas?: bigint;
|
|
1160
|
+
gasPrice?: bigint;
|
|
1161
|
+
maxFeePerGas?: bigint;
|
|
1162
|
+
maxPriorityFeePerGas?: bigint;
|
|
1163
|
+
nonce?: number;
|
|
1164
|
+
value?: bigint;
|
|
1165
|
+
}): Promise<`0x${string}`>;
|
|
1166
|
+
/**
|
|
1167
|
+
* setUseAuction
|
|
1168
|
+
* nonpayable
|
|
1169
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1170
|
+
*/
|
|
1171
|
+
setUseAuction(_useAuction: boolean, options?: {
|
|
1172
|
+
accessList?: import('viem').AccessList;
|
|
1173
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1174
|
+
chain?: import('viem').Chain | null;
|
|
1175
|
+
dataSuffix?: `0x${string}`;
|
|
1176
|
+
gas?: bigint;
|
|
1177
|
+
gasPrice?: bigint;
|
|
1178
|
+
maxFeePerGas?: bigint;
|
|
1179
|
+
maxPriorityFeePerGas?: bigint;
|
|
1180
|
+
nonce?: number;
|
|
1181
|
+
value?: bigint;
|
|
1182
|
+
}): Promise<`0x${string}`>;
|
|
1183
|
+
/**
|
|
1184
|
+
* setUseTradeFactory
|
|
1185
|
+
* nonpayable
|
|
1186
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1187
|
+
*/
|
|
1188
|
+
setUseTradeFactory(_useTradeFactory: boolean, options?: {
|
|
1189
|
+
accessList?: import('viem').AccessList;
|
|
1190
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1191
|
+
chain?: import('viem').Chain | null;
|
|
1192
|
+
dataSuffix?: `0x${string}`;
|
|
1193
|
+
gas?: bigint;
|
|
1194
|
+
gasPrice?: bigint;
|
|
1195
|
+
maxFeePerGas?: bigint;
|
|
1196
|
+
maxPriorityFeePerGas?: bigint;
|
|
1197
|
+
nonce?: number;
|
|
1198
|
+
value?: bigint;
|
|
1199
|
+
}): Promise<`0x${string}`>;
|
|
1200
|
+
/**
|
|
1201
|
+
* shutdownWithdraw
|
|
1202
|
+
* nonpayable
|
|
1203
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1204
|
+
*/
|
|
1205
|
+
shutdownWithdraw(_amount: bigint, options?: {
|
|
1206
|
+
accessList?: import('viem').AccessList;
|
|
1207
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1208
|
+
chain?: import('viem').Chain | null;
|
|
1209
|
+
dataSuffix?: `0x${string}`;
|
|
1210
|
+
gas?: bigint;
|
|
1211
|
+
gasPrice?: bigint;
|
|
1212
|
+
maxFeePerGas?: bigint;
|
|
1213
|
+
maxPriorityFeePerGas?: bigint;
|
|
1214
|
+
nonce?: number;
|
|
1215
|
+
value?: bigint;
|
|
1216
|
+
}): Promise<`0x${string}`>;
|
|
1217
|
+
/**
|
|
1218
|
+
* sweep
|
|
1219
|
+
* nonpayable
|
|
1220
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1221
|
+
*/
|
|
1222
|
+
sweep(_token: `0x${string}`, options?: {
|
|
1223
|
+
accessList?: import('viem').AccessList;
|
|
1224
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1225
|
+
chain?: import('viem').Chain | null;
|
|
1226
|
+
dataSuffix?: `0x${string}`;
|
|
1227
|
+
gas?: bigint;
|
|
1228
|
+
gasPrice?: bigint;
|
|
1229
|
+
maxFeePerGas?: bigint;
|
|
1230
|
+
maxPriorityFeePerGas?: bigint;
|
|
1231
|
+
nonce?: number;
|
|
1232
|
+
value?: bigint;
|
|
1233
|
+
}): Promise<`0x${string}`>;
|
|
1234
|
+
/**
|
|
1235
|
+
* tendThis
|
|
1236
|
+
* nonpayable
|
|
1237
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1238
|
+
*/
|
|
1239
|
+
tendThis(_totalIdle: bigint, options?: {
|
|
1240
|
+
accessList?: import('viem').AccessList;
|
|
1241
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1242
|
+
chain?: import('viem').Chain | null;
|
|
1243
|
+
dataSuffix?: `0x${string}`;
|
|
1244
|
+
gas?: bigint;
|
|
1245
|
+
gasPrice?: bigint;
|
|
1246
|
+
maxFeePerGas?: bigint;
|
|
1247
|
+
maxPriorityFeePerGas?: bigint;
|
|
1248
|
+
nonce?: number;
|
|
1249
|
+
value?: bigint;
|
|
1250
|
+
}): Promise<`0x${string}`>;
|
|
1251
|
+
/**
|
|
1252
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
1253
|
+
*
|
|
1254
|
+
* @example
|
|
1255
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
1256
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
1257
|
+
* console.log('Would succeed:', result.result);
|
|
1258
|
+
*/
|
|
1259
|
+
get simulate(): {
|
|
1260
|
+
/**
|
|
1261
|
+
* Simulate addReward
|
|
1262
|
+
* Returns gas estimate and result without sending transaction
|
|
1263
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1264
|
+
*/
|
|
1265
|
+
addReward(_rewardToken: `0x${string}`, _feeRewardTokenToBase: bigint, options?: {
|
|
1266
|
+
accessList?: import("viem").AccessList;
|
|
1267
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1268
|
+
chain?: import("viem").Chain | null;
|
|
1269
|
+
dataSuffix?: `0x${string}`;
|
|
1270
|
+
gas?: bigint;
|
|
1271
|
+
gasPrice?: bigint;
|
|
1272
|
+
maxFeePerGas?: bigint;
|
|
1273
|
+
maxPriorityFeePerGas?: bigint;
|
|
1274
|
+
nonce?: number;
|
|
1275
|
+
value?: bigint;
|
|
1276
|
+
}): Promise<void>;
|
|
1277
|
+
/**
|
|
1278
|
+
* Simulate auctionKicked
|
|
1279
|
+
* Returns gas estimate and result without sending transaction
|
|
1280
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1281
|
+
*/
|
|
1282
|
+
auctionKicked(_token: `0x${string}`, options?: {
|
|
1283
|
+
accessList?: import("viem").AccessList;
|
|
1284
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1285
|
+
chain?: import("viem").Chain | null;
|
|
1286
|
+
dataSuffix?: `0x${string}`;
|
|
1287
|
+
gas?: bigint;
|
|
1288
|
+
gasPrice?: bigint;
|
|
1289
|
+
maxFeePerGas?: bigint;
|
|
1290
|
+
maxPriorityFeePerGas?: bigint;
|
|
1291
|
+
nonce?: number;
|
|
1292
|
+
value?: bigint;
|
|
1293
|
+
}): Promise<bigint>;
|
|
1294
|
+
/**
|
|
1295
|
+
* Simulate claimRewards
|
|
1296
|
+
* Returns gas estimate and result without sending transaction
|
|
1297
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1298
|
+
*/
|
|
1299
|
+
claimRewards(options?: {
|
|
1300
|
+
accessList?: import("viem").AccessList;
|
|
1301
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1302
|
+
chain?: import("viem").Chain | null;
|
|
1303
|
+
dataSuffix?: `0x${string}`;
|
|
1304
|
+
gas?: bigint;
|
|
1305
|
+
gasPrice?: bigint;
|
|
1306
|
+
maxFeePerGas?: bigint;
|
|
1307
|
+
maxPriorityFeePerGas?: bigint;
|
|
1308
|
+
nonce?: number;
|
|
1309
|
+
value?: bigint;
|
|
1310
|
+
}): Promise<void>;
|
|
1311
|
+
/**
|
|
1312
|
+
* Simulate deployFunds
|
|
1313
|
+
* Returns gas estimate and result without sending transaction
|
|
1314
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1315
|
+
*/
|
|
1316
|
+
deployFunds(_amount: bigint, options?: {
|
|
1317
|
+
accessList?: import("viem").AccessList;
|
|
1318
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1319
|
+
chain?: import("viem").Chain | null;
|
|
1320
|
+
dataSuffix?: `0x${string}`;
|
|
1321
|
+
gas?: bigint;
|
|
1322
|
+
gasPrice?: bigint;
|
|
1323
|
+
maxFeePerGas?: bigint;
|
|
1324
|
+
maxPriorityFeePerGas?: bigint;
|
|
1325
|
+
nonce?: number;
|
|
1326
|
+
value?: bigint;
|
|
1327
|
+
}): Promise<void>;
|
|
1328
|
+
/**
|
|
1329
|
+
* Simulate freeFunds
|
|
1330
|
+
* Returns gas estimate and result without sending transaction
|
|
1331
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1332
|
+
*/
|
|
1333
|
+
freeFunds(_amount: bigint, options?: {
|
|
1334
|
+
accessList?: import("viem").AccessList;
|
|
1335
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1336
|
+
chain?: import("viem").Chain | null;
|
|
1337
|
+
dataSuffix?: `0x${string}`;
|
|
1338
|
+
gas?: bigint;
|
|
1339
|
+
gasPrice?: bigint;
|
|
1340
|
+
maxFeePerGas?: bigint;
|
|
1341
|
+
maxPriorityFeePerGas?: bigint;
|
|
1342
|
+
nonce?: number;
|
|
1343
|
+
value?: bigint;
|
|
1344
|
+
}): Promise<void>;
|
|
1345
|
+
/**
|
|
1346
|
+
* Simulate harvestAndReport
|
|
1347
|
+
* Returns gas estimate and result without sending transaction
|
|
1348
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1349
|
+
*/
|
|
1350
|
+
harvestAndReport(options?: {
|
|
1351
|
+
accessList?: import("viem").AccessList;
|
|
1352
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1353
|
+
chain?: import("viem").Chain | null;
|
|
1354
|
+
dataSuffix?: `0x${string}`;
|
|
1355
|
+
gas?: bigint;
|
|
1356
|
+
gasPrice?: bigint;
|
|
1357
|
+
maxFeePerGas?: bigint;
|
|
1358
|
+
maxPriorityFeePerGas?: bigint;
|
|
1359
|
+
nonce?: number;
|
|
1360
|
+
value?: bigint;
|
|
1361
|
+
}): Promise<bigint>;
|
|
1362
|
+
/**
|
|
1363
|
+
* Simulate postTake
|
|
1364
|
+
* Returns gas estimate and result without sending transaction
|
|
1365
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1366
|
+
*/
|
|
1367
|
+
postTake(_token: `0x${string}`, _amountTaken: bigint, _amountPayed: bigint, options?: {
|
|
1368
|
+
accessList?: import("viem").AccessList;
|
|
1369
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1370
|
+
chain?: import("viem").Chain | null;
|
|
1371
|
+
dataSuffix?: `0x${string}`;
|
|
1372
|
+
gas?: bigint;
|
|
1373
|
+
gasPrice?: bigint;
|
|
1374
|
+
maxFeePerGas?: bigint;
|
|
1375
|
+
maxPriorityFeePerGas?: bigint;
|
|
1376
|
+
nonce?: number;
|
|
1377
|
+
value?: bigint;
|
|
1378
|
+
}): Promise<void>;
|
|
1379
|
+
/**
|
|
1380
|
+
* Simulate preTake
|
|
1381
|
+
* Returns gas estimate and result without sending transaction
|
|
1382
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1383
|
+
*/
|
|
1384
|
+
preTake(_token: `0x${string}`, _amountToTake: bigint, _amountToPay: bigint, options?: {
|
|
1385
|
+
accessList?: import("viem").AccessList;
|
|
1386
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1387
|
+
chain?: import("viem").Chain | null;
|
|
1388
|
+
dataSuffix?: `0x${string}`;
|
|
1389
|
+
gas?: bigint;
|
|
1390
|
+
gasPrice?: bigint;
|
|
1391
|
+
maxFeePerGas?: bigint;
|
|
1392
|
+
maxPriorityFeePerGas?: bigint;
|
|
1393
|
+
nonce?: number;
|
|
1394
|
+
value?: bigint;
|
|
1395
|
+
}): Promise<void>;
|
|
1396
|
+
/**
|
|
1397
|
+
* Simulate removeReward
|
|
1398
|
+
* Returns gas estimate and result without sending transaction
|
|
1399
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1400
|
+
*/
|
|
1401
|
+
removeReward(_rewardToken: `0x${string}`, options?: {
|
|
1402
|
+
accessList?: import("viem").AccessList;
|
|
1403
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1404
|
+
chain?: import("viem").Chain | null;
|
|
1405
|
+
dataSuffix?: `0x${string}`;
|
|
1406
|
+
gas?: bigint;
|
|
1407
|
+
gasPrice?: bigint;
|
|
1408
|
+
maxFeePerGas?: bigint;
|
|
1409
|
+
maxPriorityFeePerGas?: bigint;
|
|
1410
|
+
nonce?: number;
|
|
1411
|
+
value?: bigint;
|
|
1412
|
+
}): Promise<void>;
|
|
1413
|
+
/**
|
|
1414
|
+
* Simulate removeTradeFactory
|
|
1415
|
+
* Returns gas estimate and result without sending transaction
|
|
1416
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1417
|
+
*/
|
|
1418
|
+
removeTradeFactory(options?: {
|
|
1419
|
+
accessList?: import("viem").AccessList;
|
|
1420
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1421
|
+
chain?: import("viem").Chain | null;
|
|
1422
|
+
dataSuffix?: `0x${string}`;
|
|
1423
|
+
gas?: bigint;
|
|
1424
|
+
gasPrice?: bigint;
|
|
1425
|
+
maxFeePerGas?: bigint;
|
|
1426
|
+
maxPriorityFeePerGas?: bigint;
|
|
1427
|
+
nonce?: number;
|
|
1428
|
+
value?: bigint;
|
|
1429
|
+
}): Promise<void>;
|
|
1430
|
+
/**
|
|
1431
|
+
* Simulate setAuction
|
|
1432
|
+
* Returns gas estimate and result without sending transaction
|
|
1433
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1434
|
+
*/
|
|
1435
|
+
setAuction(_auction: `0x${string}`, options?: {
|
|
1436
|
+
accessList?: import("viem").AccessList;
|
|
1437
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1438
|
+
chain?: import("viem").Chain | null;
|
|
1439
|
+
dataSuffix?: `0x${string}`;
|
|
1440
|
+
gas?: bigint;
|
|
1441
|
+
gasPrice?: bigint;
|
|
1442
|
+
maxFeePerGas?: bigint;
|
|
1443
|
+
maxPriorityFeePerGas?: bigint;
|
|
1444
|
+
nonce?: number;
|
|
1445
|
+
value?: bigint;
|
|
1446
|
+
}): Promise<void>;
|
|
1447
|
+
/**
|
|
1448
|
+
* Simulate setAutocompound
|
|
1449
|
+
* Returns gas estimate and result without sending transaction
|
|
1450
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1451
|
+
*/
|
|
1452
|
+
setAutocompound(_autocompound: boolean, options?: {
|
|
1453
|
+
accessList?: import("viem").AccessList;
|
|
1454
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1455
|
+
chain?: import("viem").Chain | null;
|
|
1456
|
+
dataSuffix?: `0x${string}`;
|
|
1457
|
+
gas?: bigint;
|
|
1458
|
+
gasPrice?: bigint;
|
|
1459
|
+
maxFeePerGas?: bigint;
|
|
1460
|
+
maxPriorityFeePerGas?: bigint;
|
|
1461
|
+
nonce?: number;
|
|
1462
|
+
value?: bigint;
|
|
1463
|
+
}): Promise<void>;
|
|
1464
|
+
/**
|
|
1465
|
+
* Simulate setDoHealthCheck
|
|
1466
|
+
* Returns gas estimate and result without sending transaction
|
|
1467
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1468
|
+
*/
|
|
1469
|
+
setDoHealthCheck(_doHealthCheck: boolean, options?: {
|
|
1470
|
+
accessList?: import("viem").AccessList;
|
|
1471
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1472
|
+
chain?: import("viem").Chain | null;
|
|
1473
|
+
dataSuffix?: `0x${string}`;
|
|
1474
|
+
gas?: bigint;
|
|
1475
|
+
gasPrice?: bigint;
|
|
1476
|
+
maxFeePerGas?: bigint;
|
|
1477
|
+
maxPriorityFeePerGas?: bigint;
|
|
1478
|
+
nonce?: number;
|
|
1479
|
+
value?: bigint;
|
|
1480
|
+
}): Promise<void>;
|
|
1481
|
+
/**
|
|
1482
|
+
* Simulate setLossLimitRatio
|
|
1483
|
+
* Returns gas estimate and result without sending transaction
|
|
1484
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1485
|
+
*/
|
|
1486
|
+
setLossLimitRatio(_newLossLimitRatio: bigint, options?: {
|
|
1487
|
+
accessList?: import("viem").AccessList;
|
|
1488
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1489
|
+
chain?: import("viem").Chain | null;
|
|
1490
|
+
dataSuffix?: `0x${string}`;
|
|
1491
|
+
gas?: bigint;
|
|
1492
|
+
gasPrice?: bigint;
|
|
1493
|
+
maxFeePerGas?: bigint;
|
|
1494
|
+
maxPriorityFeePerGas?: bigint;
|
|
1495
|
+
nonce?: number;
|
|
1496
|
+
value?: bigint;
|
|
1497
|
+
}): Promise<void>;
|
|
1498
|
+
/**
|
|
1499
|
+
* Simulate setMinAmountToSellMapping
|
|
1500
|
+
* Returns gas estimate and result without sending transaction
|
|
1501
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1502
|
+
*/
|
|
1503
|
+
setMinAmountToSellMapping(_token: `0x${string}`, _amount: bigint, options?: {
|
|
1504
|
+
accessList?: import("viem").AccessList;
|
|
1505
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1506
|
+
chain?: import("viem").Chain | null;
|
|
1507
|
+
dataSuffix?: `0x${string}`;
|
|
1508
|
+
gas?: bigint;
|
|
1509
|
+
gasPrice?: bigint;
|
|
1510
|
+
maxFeePerGas?: bigint;
|
|
1511
|
+
maxPriorityFeePerGas?: bigint;
|
|
1512
|
+
nonce?: number;
|
|
1513
|
+
value?: bigint;
|
|
1514
|
+
}): Promise<void>;
|
|
1515
|
+
/**
|
|
1516
|
+
* Simulate setProfitLimitRatio
|
|
1517
|
+
* Returns gas estimate and result without sending transaction
|
|
1518
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1519
|
+
*/
|
|
1520
|
+
setProfitLimitRatio(_newProfitLimitRatio: bigint, options?: {
|
|
1521
|
+
accessList?: import("viem").AccessList;
|
|
1522
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1523
|
+
chain?: import("viem").Chain | null;
|
|
1524
|
+
dataSuffix?: `0x${string}`;
|
|
1525
|
+
gas?: bigint;
|
|
1526
|
+
gasPrice?: bigint;
|
|
1527
|
+
maxFeePerGas?: bigint;
|
|
1528
|
+
maxPriorityFeePerGas?: bigint;
|
|
1529
|
+
nonce?: number;
|
|
1530
|
+
value?: bigint;
|
|
1531
|
+
}): Promise<void>;
|
|
1532
|
+
/**
|
|
1533
|
+
* Simulate setRouterParams
|
|
1534
|
+
* Returns gas estimate and result without sending transaction
|
|
1535
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1536
|
+
*/
|
|
1537
|
+
setRouterParams(_guessMin: bigint, _guessMax: bigint, _maxIteration: bigint, _eps: bigint, options?: {
|
|
1538
|
+
accessList?: import("viem").AccessList;
|
|
1539
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1540
|
+
chain?: import("viem").Chain | null;
|
|
1541
|
+
dataSuffix?: `0x${string}`;
|
|
1542
|
+
gas?: bigint;
|
|
1543
|
+
gasPrice?: bigint;
|
|
1544
|
+
maxFeePerGas?: bigint;
|
|
1545
|
+
maxPriorityFeePerGas?: bigint;
|
|
1546
|
+
nonce?: number;
|
|
1547
|
+
value?: bigint;
|
|
1548
|
+
}): Promise<void>;
|
|
1549
|
+
/**
|
|
1550
|
+
* Simulate setTradeFactory
|
|
1551
|
+
* Returns gas estimate and result without sending transaction
|
|
1552
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1553
|
+
*/
|
|
1554
|
+
setTradeFactory(_tradeFactory: `0x${string}`, _useTradeFactory: boolean, options?: {
|
|
1555
|
+
accessList?: import("viem").AccessList;
|
|
1556
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1557
|
+
chain?: import("viem").Chain | null;
|
|
1558
|
+
dataSuffix?: `0x${string}`;
|
|
1559
|
+
gas?: bigint;
|
|
1560
|
+
gasPrice?: bigint;
|
|
1561
|
+
maxFeePerGas?: bigint;
|
|
1562
|
+
maxPriorityFeePerGas?: bigint;
|
|
1563
|
+
nonce?: number;
|
|
1564
|
+
value?: bigint;
|
|
1565
|
+
}): Promise<void>;
|
|
1566
|
+
/**
|
|
1567
|
+
* Simulate setUniFees
|
|
1568
|
+
* Returns gas estimate and result without sending transaction
|
|
1569
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1570
|
+
*/
|
|
1571
|
+
setUniFees(_token0: `0x${string}`, _token1: `0x${string}`, _fee: bigint, options?: {
|
|
1572
|
+
accessList?: import("viem").AccessList;
|
|
1573
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1574
|
+
chain?: import("viem").Chain | null;
|
|
1575
|
+
dataSuffix?: `0x${string}`;
|
|
1576
|
+
gas?: bigint;
|
|
1577
|
+
gasPrice?: bigint;
|
|
1578
|
+
maxFeePerGas?: bigint;
|
|
1579
|
+
maxPriorityFeePerGas?: bigint;
|
|
1580
|
+
nonce?: number;
|
|
1581
|
+
value?: bigint;
|
|
1582
|
+
}): Promise<void>;
|
|
1583
|
+
/**
|
|
1584
|
+
* Simulate setUseAuction
|
|
1585
|
+
* Returns gas estimate and result without sending transaction
|
|
1586
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1587
|
+
*/
|
|
1588
|
+
setUseAuction(_useAuction: boolean, options?: {
|
|
1589
|
+
accessList?: import("viem").AccessList;
|
|
1590
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1591
|
+
chain?: import("viem").Chain | null;
|
|
1592
|
+
dataSuffix?: `0x${string}`;
|
|
1593
|
+
gas?: bigint;
|
|
1594
|
+
gasPrice?: bigint;
|
|
1595
|
+
maxFeePerGas?: bigint;
|
|
1596
|
+
maxPriorityFeePerGas?: bigint;
|
|
1597
|
+
nonce?: number;
|
|
1598
|
+
value?: bigint;
|
|
1599
|
+
}): Promise<void>;
|
|
1600
|
+
/**
|
|
1601
|
+
* Simulate setUseTradeFactory
|
|
1602
|
+
* Returns gas estimate and result without sending transaction
|
|
1603
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1604
|
+
*/
|
|
1605
|
+
setUseTradeFactory(_useTradeFactory: boolean, options?: {
|
|
1606
|
+
accessList?: import("viem").AccessList;
|
|
1607
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1608
|
+
chain?: import("viem").Chain | null;
|
|
1609
|
+
dataSuffix?: `0x${string}`;
|
|
1610
|
+
gas?: bigint;
|
|
1611
|
+
gasPrice?: bigint;
|
|
1612
|
+
maxFeePerGas?: bigint;
|
|
1613
|
+
maxPriorityFeePerGas?: bigint;
|
|
1614
|
+
nonce?: number;
|
|
1615
|
+
value?: bigint;
|
|
1616
|
+
}): Promise<void>;
|
|
1617
|
+
/**
|
|
1618
|
+
* Simulate shutdownWithdraw
|
|
1619
|
+
* Returns gas estimate and result without sending transaction
|
|
1620
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1621
|
+
*/
|
|
1622
|
+
shutdownWithdraw(_amount: bigint, options?: {
|
|
1623
|
+
accessList?: import("viem").AccessList;
|
|
1624
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1625
|
+
chain?: import("viem").Chain | null;
|
|
1626
|
+
dataSuffix?: `0x${string}`;
|
|
1627
|
+
gas?: bigint;
|
|
1628
|
+
gasPrice?: bigint;
|
|
1629
|
+
maxFeePerGas?: bigint;
|
|
1630
|
+
maxPriorityFeePerGas?: bigint;
|
|
1631
|
+
nonce?: number;
|
|
1632
|
+
value?: bigint;
|
|
1633
|
+
}): Promise<void>;
|
|
1634
|
+
/**
|
|
1635
|
+
* Simulate sweep
|
|
1636
|
+
* Returns gas estimate and result without sending transaction
|
|
1637
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1638
|
+
*/
|
|
1639
|
+
sweep(_token: `0x${string}`, options?: {
|
|
1640
|
+
accessList?: import("viem").AccessList;
|
|
1641
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1642
|
+
chain?: import("viem").Chain | null;
|
|
1643
|
+
dataSuffix?: `0x${string}`;
|
|
1644
|
+
gas?: bigint;
|
|
1645
|
+
gasPrice?: bigint;
|
|
1646
|
+
maxFeePerGas?: bigint;
|
|
1647
|
+
maxPriorityFeePerGas?: bigint;
|
|
1648
|
+
nonce?: number;
|
|
1649
|
+
value?: bigint;
|
|
1650
|
+
}): Promise<void>;
|
|
1651
|
+
/**
|
|
1652
|
+
* Simulate tendThis
|
|
1653
|
+
* Returns gas estimate and result without sending transaction
|
|
1654
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1655
|
+
*/
|
|
1656
|
+
tendThis(_totalIdle: bigint, options?: {
|
|
1657
|
+
accessList?: import("viem").AccessList;
|
|
1658
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1659
|
+
chain?: import("viem").Chain | null;
|
|
1660
|
+
dataSuffix?: `0x${string}`;
|
|
1661
|
+
gas?: bigint;
|
|
1662
|
+
gasPrice?: bigint;
|
|
1663
|
+
maxFeePerGas?: bigint;
|
|
1664
|
+
maxPriorityFeePerGas?: bigint;
|
|
1665
|
+
nonce?: number;
|
|
1666
|
+
value?: bigint;
|
|
1667
|
+
}): Promise<void>;
|
|
1668
|
+
};
|
|
1669
|
+
/**
|
|
1670
|
+
* Watch contract events
|
|
1671
|
+
*
|
|
1672
|
+
* Note: This contract has no events, so watch returns an empty object.
|
|
1673
|
+
*/
|
|
1674
|
+
get watch(): {};
|
|
1675
|
+
}
|