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