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