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