@gitmyabi-stg/msy 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -0
- package/contracts/ERC1967Proxy.d.ts +144 -0
- package/contracts/ERC1967Proxy.js +180 -0
- package/contracts/ERC1967Proxy.ts +209 -0
- package/contracts/StakedmsUSD.d.ts +2934 -0
- package/contracts/StakedmsUSD.js +3207 -0
- package/contracts/StakedmsUSD.ts +3927 -0
- package/contracts/index.d.ts +4 -0
- package/contracts/index.js +10 -0
- package/contracts/index.ts +5 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +43 -0
|
@@ -0,0 +1,2934 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* StakedmsUSD ABI
|
|
4
|
+
*
|
|
5
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
6
|
+
*/
|
|
7
|
+
export declare const StakedmsUSDAbi: readonly [{
|
|
8
|
+
readonly inputs: readonly [];
|
|
9
|
+
readonly stateMutability: "nonpayable";
|
|
10
|
+
readonly type: "constructor";
|
|
11
|
+
}, {
|
|
12
|
+
readonly inputs: readonly [{
|
|
13
|
+
readonly internalType: "address";
|
|
14
|
+
readonly name: "target";
|
|
15
|
+
readonly type: "address";
|
|
16
|
+
}];
|
|
17
|
+
readonly name: "AddressEmptyCode";
|
|
18
|
+
readonly type: "error";
|
|
19
|
+
}, {
|
|
20
|
+
readonly inputs: readonly [{
|
|
21
|
+
readonly internalType: "address";
|
|
22
|
+
readonly name: "account";
|
|
23
|
+
readonly type: "address";
|
|
24
|
+
}];
|
|
25
|
+
readonly name: "AddressInsufficientBalance";
|
|
26
|
+
readonly type: "error";
|
|
27
|
+
}, {
|
|
28
|
+
readonly inputs: readonly [];
|
|
29
|
+
readonly name: "AlreadySet";
|
|
30
|
+
readonly type: "error";
|
|
31
|
+
}, {
|
|
32
|
+
readonly inputs: readonly [{
|
|
33
|
+
readonly internalType: "uint256";
|
|
34
|
+
readonly name: "currentTimestamp";
|
|
35
|
+
readonly type: "uint256";
|
|
36
|
+
}, {
|
|
37
|
+
readonly internalType: "uint256";
|
|
38
|
+
readonly name: "endTimestamp";
|
|
39
|
+
readonly type: "uint256";
|
|
40
|
+
}];
|
|
41
|
+
readonly name: "CooldownNotFinished";
|
|
42
|
+
readonly type: "error";
|
|
43
|
+
}, {
|
|
44
|
+
readonly inputs: readonly [];
|
|
45
|
+
readonly name: "CoverageRatioZero";
|
|
46
|
+
readonly type: "error";
|
|
47
|
+
}, {
|
|
48
|
+
readonly inputs: readonly [];
|
|
49
|
+
readonly name: "DelayNotPassed";
|
|
50
|
+
readonly type: "error";
|
|
51
|
+
}, {
|
|
52
|
+
readonly inputs: readonly [];
|
|
53
|
+
readonly name: "DepositsDisabled";
|
|
54
|
+
readonly type: "error";
|
|
55
|
+
}, {
|
|
56
|
+
readonly inputs: readonly [{
|
|
57
|
+
readonly internalType: "address";
|
|
58
|
+
readonly name: "implementation";
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
}];
|
|
61
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
62
|
+
readonly type: "error";
|
|
63
|
+
}, {
|
|
64
|
+
readonly inputs: readonly [];
|
|
65
|
+
readonly name: "ERC1967NonPayable";
|
|
66
|
+
readonly type: "error";
|
|
67
|
+
}, {
|
|
68
|
+
readonly inputs: readonly [{
|
|
69
|
+
readonly internalType: "address";
|
|
70
|
+
readonly name: "spender";
|
|
71
|
+
readonly type: "address";
|
|
72
|
+
}, {
|
|
73
|
+
readonly internalType: "uint256";
|
|
74
|
+
readonly name: "allowance";
|
|
75
|
+
readonly type: "uint256";
|
|
76
|
+
}, {
|
|
77
|
+
readonly internalType: "uint256";
|
|
78
|
+
readonly name: "needed";
|
|
79
|
+
readonly type: "uint256";
|
|
80
|
+
}];
|
|
81
|
+
readonly name: "ERC20InsufficientAllowance";
|
|
82
|
+
readonly type: "error";
|
|
83
|
+
}, {
|
|
84
|
+
readonly inputs: readonly [{
|
|
85
|
+
readonly internalType: "address";
|
|
86
|
+
readonly name: "sender";
|
|
87
|
+
readonly type: "address";
|
|
88
|
+
}, {
|
|
89
|
+
readonly internalType: "uint256";
|
|
90
|
+
readonly name: "balance";
|
|
91
|
+
readonly type: "uint256";
|
|
92
|
+
}, {
|
|
93
|
+
readonly internalType: "uint256";
|
|
94
|
+
readonly name: "needed";
|
|
95
|
+
readonly type: "uint256";
|
|
96
|
+
}];
|
|
97
|
+
readonly name: "ERC20InsufficientBalance";
|
|
98
|
+
readonly type: "error";
|
|
99
|
+
}, {
|
|
100
|
+
readonly inputs: readonly [{
|
|
101
|
+
readonly internalType: "address";
|
|
102
|
+
readonly name: "approver";
|
|
103
|
+
readonly type: "address";
|
|
104
|
+
}];
|
|
105
|
+
readonly name: "ERC20InvalidApprover";
|
|
106
|
+
readonly type: "error";
|
|
107
|
+
}, {
|
|
108
|
+
readonly inputs: readonly [{
|
|
109
|
+
readonly internalType: "address";
|
|
110
|
+
readonly name: "receiver";
|
|
111
|
+
readonly type: "address";
|
|
112
|
+
}];
|
|
113
|
+
readonly name: "ERC20InvalidReceiver";
|
|
114
|
+
readonly type: "error";
|
|
115
|
+
}, {
|
|
116
|
+
readonly inputs: readonly [{
|
|
117
|
+
readonly internalType: "address";
|
|
118
|
+
readonly name: "sender";
|
|
119
|
+
readonly type: "address";
|
|
120
|
+
}];
|
|
121
|
+
readonly name: "ERC20InvalidSender";
|
|
122
|
+
readonly type: "error";
|
|
123
|
+
}, {
|
|
124
|
+
readonly inputs: readonly [{
|
|
125
|
+
readonly internalType: "address";
|
|
126
|
+
readonly name: "spender";
|
|
127
|
+
readonly type: "address";
|
|
128
|
+
}];
|
|
129
|
+
readonly name: "ERC20InvalidSpender";
|
|
130
|
+
readonly type: "error";
|
|
131
|
+
}, {
|
|
132
|
+
readonly inputs: readonly [{
|
|
133
|
+
readonly internalType: "address";
|
|
134
|
+
readonly name: "receiver";
|
|
135
|
+
readonly type: "address";
|
|
136
|
+
}, {
|
|
137
|
+
readonly internalType: "uint256";
|
|
138
|
+
readonly name: "assets";
|
|
139
|
+
readonly type: "uint256";
|
|
140
|
+
}, {
|
|
141
|
+
readonly internalType: "uint256";
|
|
142
|
+
readonly name: "max";
|
|
143
|
+
readonly type: "uint256";
|
|
144
|
+
}];
|
|
145
|
+
readonly name: "ERC4626ExceededMaxDeposit";
|
|
146
|
+
readonly type: "error";
|
|
147
|
+
}, {
|
|
148
|
+
readonly inputs: readonly [{
|
|
149
|
+
readonly internalType: "address";
|
|
150
|
+
readonly name: "receiver";
|
|
151
|
+
readonly type: "address";
|
|
152
|
+
}, {
|
|
153
|
+
readonly internalType: "uint256";
|
|
154
|
+
readonly name: "shares";
|
|
155
|
+
readonly type: "uint256";
|
|
156
|
+
}, {
|
|
157
|
+
readonly internalType: "uint256";
|
|
158
|
+
readonly name: "max";
|
|
159
|
+
readonly type: "uint256";
|
|
160
|
+
}];
|
|
161
|
+
readonly name: "ERC4626ExceededMaxMint";
|
|
162
|
+
readonly type: "error";
|
|
163
|
+
}, {
|
|
164
|
+
readonly inputs: readonly [{
|
|
165
|
+
readonly internalType: "address";
|
|
166
|
+
readonly name: "owner";
|
|
167
|
+
readonly type: "address";
|
|
168
|
+
}, {
|
|
169
|
+
readonly internalType: "uint256";
|
|
170
|
+
readonly name: "shares";
|
|
171
|
+
readonly type: "uint256";
|
|
172
|
+
}, {
|
|
173
|
+
readonly internalType: "uint256";
|
|
174
|
+
readonly name: "max";
|
|
175
|
+
readonly type: "uint256";
|
|
176
|
+
}];
|
|
177
|
+
readonly name: "ERC4626ExceededMaxRedeem";
|
|
178
|
+
readonly type: "error";
|
|
179
|
+
}, {
|
|
180
|
+
readonly inputs: readonly [{
|
|
181
|
+
readonly internalType: "address";
|
|
182
|
+
readonly name: "owner";
|
|
183
|
+
readonly type: "address";
|
|
184
|
+
}, {
|
|
185
|
+
readonly internalType: "uint256";
|
|
186
|
+
readonly name: "assets";
|
|
187
|
+
readonly type: "uint256";
|
|
188
|
+
}, {
|
|
189
|
+
readonly internalType: "uint256";
|
|
190
|
+
readonly name: "max";
|
|
191
|
+
readonly type: "uint256";
|
|
192
|
+
}];
|
|
193
|
+
readonly name: "ERC4626ExceededMaxWithdraw";
|
|
194
|
+
readonly type: "error";
|
|
195
|
+
}, {
|
|
196
|
+
readonly inputs: readonly [];
|
|
197
|
+
readonly name: "ExcessiveRedeemAmount";
|
|
198
|
+
readonly type: "error";
|
|
199
|
+
}, {
|
|
200
|
+
readonly inputs: readonly [];
|
|
201
|
+
readonly name: "ExcessiveWithdrawAmount";
|
|
202
|
+
readonly type: "error";
|
|
203
|
+
}, {
|
|
204
|
+
readonly inputs: readonly [];
|
|
205
|
+
readonly name: "FailedInnerCall";
|
|
206
|
+
readonly type: "error";
|
|
207
|
+
}, {
|
|
208
|
+
readonly inputs: readonly [];
|
|
209
|
+
readonly name: "ImplementationMismatch";
|
|
210
|
+
readonly type: "error";
|
|
211
|
+
}, {
|
|
212
|
+
readonly inputs: readonly [];
|
|
213
|
+
readonly name: "InvalidAmount";
|
|
214
|
+
readonly type: "error";
|
|
215
|
+
}, {
|
|
216
|
+
readonly inputs: readonly [];
|
|
217
|
+
readonly name: "InvalidCooldown";
|
|
218
|
+
readonly type: "error";
|
|
219
|
+
}, {
|
|
220
|
+
readonly inputs: readonly [];
|
|
221
|
+
readonly name: "InvalidInitialization";
|
|
222
|
+
readonly type: "error";
|
|
223
|
+
}, {
|
|
224
|
+
readonly inputs: readonly [];
|
|
225
|
+
readonly name: "InvalidRatio";
|
|
226
|
+
readonly type: "error";
|
|
227
|
+
}, {
|
|
228
|
+
readonly inputs: readonly [];
|
|
229
|
+
readonly name: "InvalidToken";
|
|
230
|
+
readonly type: "error";
|
|
231
|
+
}, {
|
|
232
|
+
readonly inputs: readonly [];
|
|
233
|
+
readonly name: "InvalidZeroAddress";
|
|
234
|
+
readonly type: "error";
|
|
235
|
+
}, {
|
|
236
|
+
readonly inputs: readonly [];
|
|
237
|
+
readonly name: "MathOverflowedMulDiv";
|
|
238
|
+
readonly type: "error";
|
|
239
|
+
}, {
|
|
240
|
+
readonly inputs: readonly [];
|
|
241
|
+
readonly name: "MinDelayNotMet";
|
|
242
|
+
readonly type: "error";
|
|
243
|
+
}, {
|
|
244
|
+
readonly inputs: readonly [];
|
|
245
|
+
readonly name: "MinSharesViolation";
|
|
246
|
+
readonly type: "error";
|
|
247
|
+
}, {
|
|
248
|
+
readonly inputs: readonly [{
|
|
249
|
+
readonly internalType: "address";
|
|
250
|
+
readonly name: "";
|
|
251
|
+
readonly type: "address";
|
|
252
|
+
}];
|
|
253
|
+
readonly name: "NotAuthorized";
|
|
254
|
+
readonly type: "error";
|
|
255
|
+
}, {
|
|
256
|
+
readonly inputs: readonly [];
|
|
257
|
+
readonly name: "NotInitializing";
|
|
258
|
+
readonly type: "error";
|
|
259
|
+
}, {
|
|
260
|
+
readonly inputs: readonly [];
|
|
261
|
+
readonly name: "NothingToUnstake";
|
|
262
|
+
readonly type: "error";
|
|
263
|
+
}, {
|
|
264
|
+
readonly inputs: readonly [];
|
|
265
|
+
readonly name: "NullAddress";
|
|
266
|
+
readonly type: "error";
|
|
267
|
+
}, {
|
|
268
|
+
readonly inputs: readonly [];
|
|
269
|
+
readonly name: "OperationNotAllowed";
|
|
270
|
+
readonly type: "error";
|
|
271
|
+
}, {
|
|
272
|
+
readonly inputs: readonly [{
|
|
273
|
+
readonly internalType: "address";
|
|
274
|
+
readonly name: "owner";
|
|
275
|
+
readonly type: "address";
|
|
276
|
+
}];
|
|
277
|
+
readonly name: "OwnableInvalidOwner";
|
|
278
|
+
readonly type: "error";
|
|
279
|
+
}, {
|
|
280
|
+
readonly inputs: readonly [{
|
|
281
|
+
readonly internalType: "address";
|
|
282
|
+
readonly name: "account";
|
|
283
|
+
readonly type: "address";
|
|
284
|
+
}];
|
|
285
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
286
|
+
readonly type: "error";
|
|
287
|
+
}, {
|
|
288
|
+
readonly inputs: readonly [];
|
|
289
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
290
|
+
readonly type: "error";
|
|
291
|
+
}, {
|
|
292
|
+
readonly inputs: readonly [{
|
|
293
|
+
readonly internalType: "address";
|
|
294
|
+
readonly name: "token";
|
|
295
|
+
readonly type: "address";
|
|
296
|
+
}];
|
|
297
|
+
readonly name: "SafeERC20FailedOperation";
|
|
298
|
+
readonly type: "error";
|
|
299
|
+
}, {
|
|
300
|
+
readonly inputs: readonly [];
|
|
301
|
+
readonly name: "SlippageExceeded";
|
|
302
|
+
readonly type: "error";
|
|
303
|
+
}, {
|
|
304
|
+
readonly inputs: readonly [];
|
|
305
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
306
|
+
readonly type: "error";
|
|
307
|
+
}, {
|
|
308
|
+
readonly inputs: readonly [{
|
|
309
|
+
readonly internalType: "bytes32";
|
|
310
|
+
readonly name: "slot";
|
|
311
|
+
readonly type: "bytes32";
|
|
312
|
+
}];
|
|
313
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
314
|
+
readonly type: "error";
|
|
315
|
+
}, {
|
|
316
|
+
readonly anonymous: false;
|
|
317
|
+
readonly inputs: readonly [{
|
|
318
|
+
readonly indexed: true;
|
|
319
|
+
readonly internalType: "address";
|
|
320
|
+
readonly name: "owner";
|
|
321
|
+
readonly type: "address";
|
|
322
|
+
}, {
|
|
323
|
+
readonly indexed: true;
|
|
324
|
+
readonly internalType: "address";
|
|
325
|
+
readonly name: "spender";
|
|
326
|
+
readonly type: "address";
|
|
327
|
+
}, {
|
|
328
|
+
readonly indexed: false;
|
|
329
|
+
readonly internalType: "uint256";
|
|
330
|
+
readonly name: "value";
|
|
331
|
+
readonly type: "uint256";
|
|
332
|
+
}];
|
|
333
|
+
readonly name: "Approval";
|
|
334
|
+
readonly type: "event";
|
|
335
|
+
}, {
|
|
336
|
+
readonly anonymous: false;
|
|
337
|
+
readonly inputs: readonly [{
|
|
338
|
+
readonly indexed: false;
|
|
339
|
+
readonly internalType: "uint256";
|
|
340
|
+
readonly name: "";
|
|
341
|
+
readonly type: "uint256";
|
|
342
|
+
}];
|
|
343
|
+
readonly name: "AssetBurned";
|
|
344
|
+
readonly type: "event";
|
|
345
|
+
}, {
|
|
346
|
+
readonly anonymous: false;
|
|
347
|
+
readonly inputs: readonly [{
|
|
348
|
+
readonly indexed: false;
|
|
349
|
+
readonly internalType: "uint24";
|
|
350
|
+
readonly name: "previousDuration";
|
|
351
|
+
readonly type: "uint24";
|
|
352
|
+
}, {
|
|
353
|
+
readonly indexed: false;
|
|
354
|
+
readonly internalType: "uint24";
|
|
355
|
+
readonly name: "newDuration";
|
|
356
|
+
readonly type: "uint24";
|
|
357
|
+
}];
|
|
358
|
+
readonly name: "CooldownDurationUpdated";
|
|
359
|
+
readonly type: "event";
|
|
360
|
+
}, {
|
|
361
|
+
readonly anonymous: false;
|
|
362
|
+
readonly inputs: readonly [{
|
|
363
|
+
readonly indexed: false;
|
|
364
|
+
readonly internalType: "address";
|
|
365
|
+
readonly name: "account";
|
|
366
|
+
readonly type: "address";
|
|
367
|
+
}, {
|
|
368
|
+
readonly indexed: false;
|
|
369
|
+
readonly internalType: "uint256";
|
|
370
|
+
readonly name: "oldTime";
|
|
371
|
+
readonly type: "uint256";
|
|
372
|
+
}, {
|
|
373
|
+
readonly indexed: false;
|
|
374
|
+
readonly internalType: "uint256";
|
|
375
|
+
readonly name: "newTime";
|
|
376
|
+
readonly type: "uint256";
|
|
377
|
+
}];
|
|
378
|
+
readonly name: "CooldownEndtimeUpdated";
|
|
379
|
+
readonly type: "event";
|
|
380
|
+
}, {
|
|
381
|
+
readonly anonymous: false;
|
|
382
|
+
readonly inputs: readonly [{
|
|
383
|
+
readonly indexed: false;
|
|
384
|
+
readonly internalType: "uint256";
|
|
385
|
+
readonly name: "";
|
|
386
|
+
readonly type: "uint256";
|
|
387
|
+
}];
|
|
388
|
+
readonly name: "CoverageRatioUpdated";
|
|
389
|
+
readonly type: "event";
|
|
390
|
+
}, {
|
|
391
|
+
readonly anonymous: false;
|
|
392
|
+
readonly inputs: readonly [{
|
|
393
|
+
readonly indexed: true;
|
|
394
|
+
readonly internalType: "address";
|
|
395
|
+
readonly name: "sender";
|
|
396
|
+
readonly type: "address";
|
|
397
|
+
}, {
|
|
398
|
+
readonly indexed: true;
|
|
399
|
+
readonly internalType: "address";
|
|
400
|
+
readonly name: "owner";
|
|
401
|
+
readonly type: "address";
|
|
402
|
+
}, {
|
|
403
|
+
readonly indexed: false;
|
|
404
|
+
readonly internalType: "uint256";
|
|
405
|
+
readonly name: "assets";
|
|
406
|
+
readonly type: "uint256";
|
|
407
|
+
}, {
|
|
408
|
+
readonly indexed: false;
|
|
409
|
+
readonly internalType: "uint256";
|
|
410
|
+
readonly name: "shares";
|
|
411
|
+
readonly type: "uint256";
|
|
412
|
+
}];
|
|
413
|
+
readonly name: "Deposit";
|
|
414
|
+
readonly type: "event";
|
|
415
|
+
}, {
|
|
416
|
+
readonly anonymous: false;
|
|
417
|
+
readonly inputs: readonly [{
|
|
418
|
+
readonly indexed: false;
|
|
419
|
+
readonly internalType: "bool";
|
|
420
|
+
readonly name: "";
|
|
421
|
+
readonly type: "bool";
|
|
422
|
+
}];
|
|
423
|
+
readonly name: "DepositsToggled";
|
|
424
|
+
readonly type: "event";
|
|
425
|
+
}, {
|
|
426
|
+
readonly anonymous: false;
|
|
427
|
+
readonly inputs: readonly [{
|
|
428
|
+
readonly indexed: false;
|
|
429
|
+
readonly internalType: "address";
|
|
430
|
+
readonly name: "";
|
|
431
|
+
readonly type: "address";
|
|
432
|
+
}];
|
|
433
|
+
readonly name: "FeeSiloUpdated";
|
|
434
|
+
readonly type: "event";
|
|
435
|
+
}, {
|
|
436
|
+
readonly anonymous: false;
|
|
437
|
+
readonly inputs: readonly [{
|
|
438
|
+
readonly indexed: false;
|
|
439
|
+
readonly internalType: "uint64";
|
|
440
|
+
readonly name: "version";
|
|
441
|
+
readonly type: "uint64";
|
|
442
|
+
}];
|
|
443
|
+
readonly name: "Initialized";
|
|
444
|
+
readonly type: "event";
|
|
445
|
+
}, {
|
|
446
|
+
readonly anonymous: false;
|
|
447
|
+
readonly inputs: readonly [{
|
|
448
|
+
readonly indexed: true;
|
|
449
|
+
readonly internalType: "address";
|
|
450
|
+
readonly name: "from";
|
|
451
|
+
readonly type: "address";
|
|
452
|
+
}, {
|
|
453
|
+
readonly indexed: true;
|
|
454
|
+
readonly internalType: "address";
|
|
455
|
+
readonly name: "to";
|
|
456
|
+
readonly type: "address";
|
|
457
|
+
}, {
|
|
458
|
+
readonly indexed: false;
|
|
459
|
+
readonly internalType: "uint256";
|
|
460
|
+
readonly name: "amount";
|
|
461
|
+
readonly type: "uint256";
|
|
462
|
+
}];
|
|
463
|
+
readonly name: "LockedAmountRedistributed";
|
|
464
|
+
readonly type: "event";
|
|
465
|
+
}, {
|
|
466
|
+
readonly anonymous: false;
|
|
467
|
+
readonly inputs: readonly [{
|
|
468
|
+
readonly indexed: true;
|
|
469
|
+
readonly internalType: "address";
|
|
470
|
+
readonly name: "previousOwner";
|
|
471
|
+
readonly type: "address";
|
|
472
|
+
}, {
|
|
473
|
+
readonly indexed: true;
|
|
474
|
+
readonly internalType: "address";
|
|
475
|
+
readonly name: "newOwner";
|
|
476
|
+
readonly type: "address";
|
|
477
|
+
}];
|
|
478
|
+
readonly name: "OwnershipTransferred";
|
|
479
|
+
readonly type: "event";
|
|
480
|
+
}, {
|
|
481
|
+
readonly anonymous: false;
|
|
482
|
+
readonly inputs: readonly [{
|
|
483
|
+
readonly indexed: false;
|
|
484
|
+
readonly internalType: "address";
|
|
485
|
+
readonly name: "";
|
|
486
|
+
readonly type: "address";
|
|
487
|
+
}];
|
|
488
|
+
readonly name: "RewarderUpdated";
|
|
489
|
+
readonly type: "event";
|
|
490
|
+
}, {
|
|
491
|
+
readonly anonymous: false;
|
|
492
|
+
readonly inputs: readonly [{
|
|
493
|
+
readonly indexed: true;
|
|
494
|
+
readonly internalType: "uint256";
|
|
495
|
+
readonly name: "amount";
|
|
496
|
+
readonly type: "uint256";
|
|
497
|
+
}];
|
|
498
|
+
readonly name: "RewardsReceived";
|
|
499
|
+
readonly type: "event";
|
|
500
|
+
}, {
|
|
501
|
+
readonly anonymous: false;
|
|
502
|
+
readonly inputs: readonly [{
|
|
503
|
+
readonly indexed: false;
|
|
504
|
+
readonly internalType: "address";
|
|
505
|
+
readonly name: "previousSilo";
|
|
506
|
+
readonly type: "address";
|
|
507
|
+
}, {
|
|
508
|
+
readonly indexed: false;
|
|
509
|
+
readonly internalType: "address";
|
|
510
|
+
readonly name: "newSilo";
|
|
511
|
+
readonly type: "address";
|
|
512
|
+
}];
|
|
513
|
+
readonly name: "SiloUpdated";
|
|
514
|
+
readonly type: "event";
|
|
515
|
+
}, {
|
|
516
|
+
readonly anonymous: false;
|
|
517
|
+
readonly inputs: readonly [{
|
|
518
|
+
readonly indexed: false;
|
|
519
|
+
readonly internalType: "uint16";
|
|
520
|
+
readonly name: "";
|
|
521
|
+
readonly type: "uint16";
|
|
522
|
+
}];
|
|
523
|
+
readonly name: "TaxRateUpdated";
|
|
524
|
+
readonly type: "event";
|
|
525
|
+
}, {
|
|
526
|
+
readonly anonymous: false;
|
|
527
|
+
readonly inputs: readonly [{
|
|
528
|
+
readonly indexed: true;
|
|
529
|
+
readonly internalType: "address";
|
|
530
|
+
readonly name: "from";
|
|
531
|
+
readonly type: "address";
|
|
532
|
+
}, {
|
|
533
|
+
readonly indexed: true;
|
|
534
|
+
readonly internalType: "address";
|
|
535
|
+
readonly name: "to";
|
|
536
|
+
readonly type: "address";
|
|
537
|
+
}, {
|
|
538
|
+
readonly indexed: false;
|
|
539
|
+
readonly internalType: "uint256";
|
|
540
|
+
readonly name: "value";
|
|
541
|
+
readonly type: "uint256";
|
|
542
|
+
}];
|
|
543
|
+
readonly name: "Transfer";
|
|
544
|
+
readonly type: "event";
|
|
545
|
+
}, {
|
|
546
|
+
readonly anonymous: false;
|
|
547
|
+
readonly inputs: readonly [{
|
|
548
|
+
readonly indexed: false;
|
|
549
|
+
readonly internalType: "address";
|
|
550
|
+
readonly name: "caller";
|
|
551
|
+
readonly type: "address";
|
|
552
|
+
}, {
|
|
553
|
+
readonly indexed: false;
|
|
554
|
+
readonly internalType: "address";
|
|
555
|
+
readonly name: "receiver";
|
|
556
|
+
readonly type: "address";
|
|
557
|
+
}, {
|
|
558
|
+
readonly indexed: false;
|
|
559
|
+
readonly internalType: "uint256";
|
|
560
|
+
readonly name: "assets";
|
|
561
|
+
readonly type: "uint256";
|
|
562
|
+
}, {
|
|
563
|
+
readonly indexed: false;
|
|
564
|
+
readonly internalType: "uint256";
|
|
565
|
+
readonly name: "amountForRedeemer";
|
|
566
|
+
readonly type: "uint256";
|
|
567
|
+
}];
|
|
568
|
+
readonly name: "Unstake";
|
|
569
|
+
readonly type: "event";
|
|
570
|
+
}, {
|
|
571
|
+
readonly anonymous: false;
|
|
572
|
+
readonly inputs: readonly [{
|
|
573
|
+
readonly indexed: true;
|
|
574
|
+
readonly internalType: "address";
|
|
575
|
+
readonly name: "canceledImplementation";
|
|
576
|
+
readonly type: "address";
|
|
577
|
+
}];
|
|
578
|
+
readonly name: "UpgradeCanceled";
|
|
579
|
+
readonly type: "event";
|
|
580
|
+
}, {
|
|
581
|
+
readonly anonymous: false;
|
|
582
|
+
readonly inputs: readonly [{
|
|
583
|
+
readonly indexed: false;
|
|
584
|
+
readonly internalType: "uint256";
|
|
585
|
+
readonly name: "oldDelay";
|
|
586
|
+
readonly type: "uint256";
|
|
587
|
+
}, {
|
|
588
|
+
readonly indexed: false;
|
|
589
|
+
readonly internalType: "uint256";
|
|
590
|
+
readonly name: "newDelay";
|
|
591
|
+
readonly type: "uint256";
|
|
592
|
+
}];
|
|
593
|
+
readonly name: "UpgradeDelayUpdated";
|
|
594
|
+
readonly type: "event";
|
|
595
|
+
}, {
|
|
596
|
+
readonly anonymous: false;
|
|
597
|
+
readonly inputs: readonly [{
|
|
598
|
+
readonly indexed: true;
|
|
599
|
+
readonly internalType: "address";
|
|
600
|
+
readonly name: "newImplementation";
|
|
601
|
+
readonly type: "address";
|
|
602
|
+
}, {
|
|
603
|
+
readonly indexed: false;
|
|
604
|
+
readonly internalType: "uint256";
|
|
605
|
+
readonly name: "availableAt";
|
|
606
|
+
readonly type: "uint256";
|
|
607
|
+
}];
|
|
608
|
+
readonly name: "UpgradeScheduled";
|
|
609
|
+
readonly type: "event";
|
|
610
|
+
}, {
|
|
611
|
+
readonly anonymous: false;
|
|
612
|
+
readonly inputs: readonly [{
|
|
613
|
+
readonly indexed: true;
|
|
614
|
+
readonly internalType: "address";
|
|
615
|
+
readonly name: "implementation";
|
|
616
|
+
readonly type: "address";
|
|
617
|
+
}];
|
|
618
|
+
readonly name: "Upgraded";
|
|
619
|
+
readonly type: "event";
|
|
620
|
+
}, {
|
|
621
|
+
readonly anonymous: false;
|
|
622
|
+
readonly inputs: readonly [{
|
|
623
|
+
readonly indexed: true;
|
|
624
|
+
readonly internalType: "address";
|
|
625
|
+
readonly name: "sender";
|
|
626
|
+
readonly type: "address";
|
|
627
|
+
}, {
|
|
628
|
+
readonly indexed: true;
|
|
629
|
+
readonly internalType: "address";
|
|
630
|
+
readonly name: "receiver";
|
|
631
|
+
readonly type: "address";
|
|
632
|
+
}, {
|
|
633
|
+
readonly indexed: true;
|
|
634
|
+
readonly internalType: "address";
|
|
635
|
+
readonly name: "owner";
|
|
636
|
+
readonly type: "address";
|
|
637
|
+
}, {
|
|
638
|
+
readonly indexed: false;
|
|
639
|
+
readonly internalType: "uint256";
|
|
640
|
+
readonly name: "assets";
|
|
641
|
+
readonly type: "uint256";
|
|
642
|
+
}, {
|
|
643
|
+
readonly indexed: false;
|
|
644
|
+
readonly internalType: "uint256";
|
|
645
|
+
readonly name: "shares";
|
|
646
|
+
readonly type: "uint256";
|
|
647
|
+
}];
|
|
648
|
+
readonly name: "Withdraw";
|
|
649
|
+
readonly type: "event";
|
|
650
|
+
}, {
|
|
651
|
+
readonly anonymous: false;
|
|
652
|
+
readonly inputs: readonly [{
|
|
653
|
+
readonly indexed: false;
|
|
654
|
+
readonly internalType: "address";
|
|
655
|
+
readonly name: "";
|
|
656
|
+
readonly type: "address";
|
|
657
|
+
}];
|
|
658
|
+
readonly name: "msUSDSiloUpdated";
|
|
659
|
+
readonly type: "event";
|
|
660
|
+
}, {
|
|
661
|
+
readonly inputs: readonly [];
|
|
662
|
+
readonly name: "DEFAULT_UPGRADE_DELAY";
|
|
663
|
+
readonly outputs: readonly [{
|
|
664
|
+
readonly internalType: "uint256";
|
|
665
|
+
readonly name: "";
|
|
666
|
+
readonly type: "uint256";
|
|
667
|
+
}];
|
|
668
|
+
readonly stateMutability: "view";
|
|
669
|
+
readonly type: "function";
|
|
670
|
+
}, {
|
|
671
|
+
readonly inputs: readonly [];
|
|
672
|
+
readonly name: "MAX_COOLDOWN_DURATION";
|
|
673
|
+
readonly outputs: readonly [{
|
|
674
|
+
readonly internalType: "uint24";
|
|
675
|
+
readonly name: "";
|
|
676
|
+
readonly type: "uint24";
|
|
677
|
+
}];
|
|
678
|
+
readonly stateMutability: "view";
|
|
679
|
+
readonly type: "function";
|
|
680
|
+
}, {
|
|
681
|
+
readonly inputs: readonly [];
|
|
682
|
+
readonly name: "MIN_SHARES";
|
|
683
|
+
readonly outputs: readonly [{
|
|
684
|
+
readonly internalType: "uint256";
|
|
685
|
+
readonly name: "";
|
|
686
|
+
readonly type: "uint256";
|
|
687
|
+
}];
|
|
688
|
+
readonly stateMutability: "view";
|
|
689
|
+
readonly type: "function";
|
|
690
|
+
}, {
|
|
691
|
+
readonly inputs: readonly [];
|
|
692
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
693
|
+
readonly outputs: readonly [{
|
|
694
|
+
readonly internalType: "string";
|
|
695
|
+
readonly name: "";
|
|
696
|
+
readonly type: "string";
|
|
697
|
+
}];
|
|
698
|
+
readonly stateMutability: "view";
|
|
699
|
+
readonly type: "function";
|
|
700
|
+
}, {
|
|
701
|
+
readonly inputs: readonly [];
|
|
702
|
+
readonly name: "activationTime";
|
|
703
|
+
readonly outputs: readonly [{
|
|
704
|
+
readonly internalType: "uint256";
|
|
705
|
+
readonly name: "";
|
|
706
|
+
readonly type: "uint256";
|
|
707
|
+
}];
|
|
708
|
+
readonly stateMutability: "view";
|
|
709
|
+
readonly type: "function";
|
|
710
|
+
}, {
|
|
711
|
+
readonly inputs: readonly [{
|
|
712
|
+
readonly internalType: "address";
|
|
713
|
+
readonly name: "owner";
|
|
714
|
+
readonly type: "address";
|
|
715
|
+
}, {
|
|
716
|
+
readonly internalType: "address";
|
|
717
|
+
readonly name: "spender";
|
|
718
|
+
readonly type: "address";
|
|
719
|
+
}];
|
|
720
|
+
readonly name: "allowance";
|
|
721
|
+
readonly outputs: readonly [{
|
|
722
|
+
readonly internalType: "uint256";
|
|
723
|
+
readonly name: "";
|
|
724
|
+
readonly type: "uint256";
|
|
725
|
+
}];
|
|
726
|
+
readonly stateMutability: "view";
|
|
727
|
+
readonly type: "function";
|
|
728
|
+
}, {
|
|
729
|
+
readonly inputs: readonly [{
|
|
730
|
+
readonly internalType: "address";
|
|
731
|
+
readonly name: "spender";
|
|
732
|
+
readonly type: "address";
|
|
733
|
+
}, {
|
|
734
|
+
readonly internalType: "uint256";
|
|
735
|
+
readonly name: "value";
|
|
736
|
+
readonly type: "uint256";
|
|
737
|
+
}];
|
|
738
|
+
readonly name: "approve";
|
|
739
|
+
readonly outputs: readonly [{
|
|
740
|
+
readonly internalType: "bool";
|
|
741
|
+
readonly name: "";
|
|
742
|
+
readonly type: "bool";
|
|
743
|
+
}];
|
|
744
|
+
readonly stateMutability: "nonpayable";
|
|
745
|
+
readonly type: "function";
|
|
746
|
+
}, {
|
|
747
|
+
readonly inputs: readonly [];
|
|
748
|
+
readonly name: "asset";
|
|
749
|
+
readonly outputs: readonly [{
|
|
750
|
+
readonly internalType: "address";
|
|
751
|
+
readonly name: "";
|
|
752
|
+
readonly type: "address";
|
|
753
|
+
}];
|
|
754
|
+
readonly stateMutability: "view";
|
|
755
|
+
readonly type: "function";
|
|
756
|
+
}, {
|
|
757
|
+
readonly inputs: readonly [{
|
|
758
|
+
readonly internalType: "address";
|
|
759
|
+
readonly name: "account";
|
|
760
|
+
readonly type: "address";
|
|
761
|
+
}];
|
|
762
|
+
readonly name: "balanceOf";
|
|
763
|
+
readonly outputs: readonly [{
|
|
764
|
+
readonly internalType: "uint256";
|
|
765
|
+
readonly name: "";
|
|
766
|
+
readonly type: "uint256";
|
|
767
|
+
}];
|
|
768
|
+
readonly stateMutability: "view";
|
|
769
|
+
readonly type: "function";
|
|
770
|
+
}, {
|
|
771
|
+
readonly inputs: readonly [{
|
|
772
|
+
readonly internalType: "uint256";
|
|
773
|
+
readonly name: "amount";
|
|
774
|
+
readonly type: "uint256";
|
|
775
|
+
}];
|
|
776
|
+
readonly name: "burnAsset";
|
|
777
|
+
readonly outputs: readonly [];
|
|
778
|
+
readonly stateMutability: "nonpayable";
|
|
779
|
+
readonly type: "function";
|
|
780
|
+
}, {
|
|
781
|
+
readonly inputs: readonly [];
|
|
782
|
+
readonly name: "cancelScheduledUpgrade";
|
|
783
|
+
readonly outputs: readonly [];
|
|
784
|
+
readonly stateMutability: "nonpayable";
|
|
785
|
+
readonly type: "function";
|
|
786
|
+
}, {
|
|
787
|
+
readonly inputs: readonly [{
|
|
788
|
+
readonly internalType: "uint256";
|
|
789
|
+
readonly name: "shares";
|
|
790
|
+
readonly type: "uint256";
|
|
791
|
+
}];
|
|
792
|
+
readonly name: "convertToAssets";
|
|
793
|
+
readonly outputs: readonly [{
|
|
794
|
+
readonly internalType: "uint256";
|
|
795
|
+
readonly name: "";
|
|
796
|
+
readonly type: "uint256";
|
|
797
|
+
}];
|
|
798
|
+
readonly stateMutability: "view";
|
|
799
|
+
readonly type: "function";
|
|
800
|
+
}, {
|
|
801
|
+
readonly inputs: readonly [{
|
|
802
|
+
readonly internalType: "uint256";
|
|
803
|
+
readonly name: "assets";
|
|
804
|
+
readonly type: "uint256";
|
|
805
|
+
}];
|
|
806
|
+
readonly name: "convertToShares";
|
|
807
|
+
readonly outputs: readonly [{
|
|
808
|
+
readonly internalType: "uint256";
|
|
809
|
+
readonly name: "";
|
|
810
|
+
readonly type: "uint256";
|
|
811
|
+
}];
|
|
812
|
+
readonly stateMutability: "view";
|
|
813
|
+
readonly type: "function";
|
|
814
|
+
}, {
|
|
815
|
+
readonly inputs: readonly [{
|
|
816
|
+
readonly internalType: "uint256";
|
|
817
|
+
readonly name: "assets";
|
|
818
|
+
readonly type: "uint256";
|
|
819
|
+
}, {
|
|
820
|
+
readonly internalType: "address";
|
|
821
|
+
readonly name: "owner";
|
|
822
|
+
readonly type: "address";
|
|
823
|
+
}];
|
|
824
|
+
readonly name: "cooldownAssets";
|
|
825
|
+
readonly outputs: readonly [{
|
|
826
|
+
readonly internalType: "uint256";
|
|
827
|
+
readonly name: "";
|
|
828
|
+
readonly type: "uint256";
|
|
829
|
+
}];
|
|
830
|
+
readonly stateMutability: "nonpayable";
|
|
831
|
+
readonly type: "function";
|
|
832
|
+
}, {
|
|
833
|
+
readonly inputs: readonly [];
|
|
834
|
+
readonly name: "cooldownDuration";
|
|
835
|
+
readonly outputs: readonly [{
|
|
836
|
+
readonly internalType: "uint24";
|
|
837
|
+
readonly name: "";
|
|
838
|
+
readonly type: "uint24";
|
|
839
|
+
}];
|
|
840
|
+
readonly stateMutability: "view";
|
|
841
|
+
readonly type: "function";
|
|
842
|
+
}, {
|
|
843
|
+
readonly inputs: readonly [{
|
|
844
|
+
readonly internalType: "uint256";
|
|
845
|
+
readonly name: "shares";
|
|
846
|
+
readonly type: "uint256";
|
|
847
|
+
}, {
|
|
848
|
+
readonly internalType: "address";
|
|
849
|
+
readonly name: "owner";
|
|
850
|
+
readonly type: "address";
|
|
851
|
+
}];
|
|
852
|
+
readonly name: "cooldownShares";
|
|
853
|
+
readonly outputs: readonly [{
|
|
854
|
+
readonly internalType: "uint256";
|
|
855
|
+
readonly name: "";
|
|
856
|
+
readonly type: "uint256";
|
|
857
|
+
}];
|
|
858
|
+
readonly stateMutability: "nonpayable";
|
|
859
|
+
readonly type: "function";
|
|
860
|
+
}, {
|
|
861
|
+
readonly inputs: readonly [{
|
|
862
|
+
readonly internalType: "address";
|
|
863
|
+
readonly name: "";
|
|
864
|
+
readonly type: "address";
|
|
865
|
+
}];
|
|
866
|
+
readonly name: "cooldowns";
|
|
867
|
+
readonly outputs: readonly [{
|
|
868
|
+
readonly internalType: "uint104";
|
|
869
|
+
readonly name: "cooldownEnd";
|
|
870
|
+
readonly type: "uint104";
|
|
871
|
+
}, {
|
|
872
|
+
readonly internalType: "uint256";
|
|
873
|
+
readonly name: "underlyingAmount";
|
|
874
|
+
readonly type: "uint256";
|
|
875
|
+
}];
|
|
876
|
+
readonly stateMutability: "view";
|
|
877
|
+
readonly type: "function";
|
|
878
|
+
}, {
|
|
879
|
+
readonly inputs: readonly [];
|
|
880
|
+
readonly name: "coverageRatio";
|
|
881
|
+
readonly outputs: readonly [{
|
|
882
|
+
readonly internalType: "uint256";
|
|
883
|
+
readonly name: "";
|
|
884
|
+
readonly type: "uint256";
|
|
885
|
+
}];
|
|
886
|
+
readonly stateMutability: "view";
|
|
887
|
+
readonly type: "function";
|
|
888
|
+
}, {
|
|
889
|
+
readonly inputs: readonly [];
|
|
890
|
+
readonly name: "decimals";
|
|
891
|
+
readonly outputs: readonly [{
|
|
892
|
+
readonly internalType: "uint8";
|
|
893
|
+
readonly name: "";
|
|
894
|
+
readonly type: "uint8";
|
|
895
|
+
}];
|
|
896
|
+
readonly stateMutability: "view";
|
|
897
|
+
readonly type: "function";
|
|
898
|
+
}, {
|
|
899
|
+
readonly inputs: readonly [{
|
|
900
|
+
readonly internalType: "uint256";
|
|
901
|
+
readonly name: "assets";
|
|
902
|
+
readonly type: "uint256";
|
|
903
|
+
}, {
|
|
904
|
+
readonly internalType: "address";
|
|
905
|
+
readonly name: "receiver";
|
|
906
|
+
readonly type: "address";
|
|
907
|
+
}];
|
|
908
|
+
readonly name: "deposit";
|
|
909
|
+
readonly outputs: readonly [{
|
|
910
|
+
readonly internalType: "uint256";
|
|
911
|
+
readonly name: "";
|
|
912
|
+
readonly type: "uint256";
|
|
913
|
+
}];
|
|
914
|
+
readonly stateMutability: "nonpayable";
|
|
915
|
+
readonly type: "function";
|
|
916
|
+
}, {
|
|
917
|
+
readonly inputs: readonly [];
|
|
918
|
+
readonly name: "depositsEnabled";
|
|
919
|
+
readonly outputs: readonly [{
|
|
920
|
+
readonly internalType: "bool";
|
|
921
|
+
readonly name: "";
|
|
922
|
+
readonly type: "bool";
|
|
923
|
+
}];
|
|
924
|
+
readonly stateMutability: "view";
|
|
925
|
+
readonly type: "function";
|
|
926
|
+
}, {
|
|
927
|
+
readonly inputs: readonly [];
|
|
928
|
+
readonly name: "feeSilo";
|
|
929
|
+
readonly outputs: readonly [{
|
|
930
|
+
readonly internalType: "address";
|
|
931
|
+
readonly name: "";
|
|
932
|
+
readonly type: "address";
|
|
933
|
+
}];
|
|
934
|
+
readonly stateMutability: "view";
|
|
935
|
+
readonly type: "function";
|
|
936
|
+
}, {
|
|
937
|
+
readonly inputs: readonly [{
|
|
938
|
+
readonly internalType: "address";
|
|
939
|
+
readonly name: "_asset";
|
|
940
|
+
readonly type: "address";
|
|
941
|
+
}, {
|
|
942
|
+
readonly internalType: "address";
|
|
943
|
+
readonly name: "_initialRewarder";
|
|
944
|
+
readonly type: "address";
|
|
945
|
+
}, {
|
|
946
|
+
readonly internalType: "address";
|
|
947
|
+
readonly name: "_owner";
|
|
948
|
+
readonly type: "address";
|
|
949
|
+
}, {
|
|
950
|
+
readonly internalType: "string";
|
|
951
|
+
readonly name: "_name";
|
|
952
|
+
readonly type: "string";
|
|
953
|
+
}, {
|
|
954
|
+
readonly internalType: "string";
|
|
955
|
+
readonly name: "_symbol";
|
|
956
|
+
readonly type: "string";
|
|
957
|
+
}];
|
|
958
|
+
readonly name: "initialize";
|
|
959
|
+
readonly outputs: readonly [];
|
|
960
|
+
readonly stateMutability: "nonpayable";
|
|
961
|
+
readonly type: "function";
|
|
962
|
+
}, {
|
|
963
|
+
readonly inputs: readonly [];
|
|
964
|
+
readonly name: "lastDistributionTimestamp";
|
|
965
|
+
readonly outputs: readonly [{
|
|
966
|
+
readonly internalType: "uint256";
|
|
967
|
+
readonly name: "";
|
|
968
|
+
readonly type: "uint256";
|
|
969
|
+
}];
|
|
970
|
+
readonly stateMutability: "view";
|
|
971
|
+
readonly type: "function";
|
|
972
|
+
}, {
|
|
973
|
+
readonly inputs: readonly [{
|
|
974
|
+
readonly internalType: "address";
|
|
975
|
+
readonly name: "";
|
|
976
|
+
readonly type: "address";
|
|
977
|
+
}];
|
|
978
|
+
readonly name: "maxDeposit";
|
|
979
|
+
readonly outputs: readonly [{
|
|
980
|
+
readonly internalType: "uint256";
|
|
981
|
+
readonly name: "";
|
|
982
|
+
readonly type: "uint256";
|
|
983
|
+
}];
|
|
984
|
+
readonly stateMutability: "view";
|
|
985
|
+
readonly type: "function";
|
|
986
|
+
}, {
|
|
987
|
+
readonly inputs: readonly [{
|
|
988
|
+
readonly internalType: "address";
|
|
989
|
+
readonly name: "";
|
|
990
|
+
readonly type: "address";
|
|
991
|
+
}];
|
|
992
|
+
readonly name: "maxMint";
|
|
993
|
+
readonly outputs: readonly [{
|
|
994
|
+
readonly internalType: "uint256";
|
|
995
|
+
readonly name: "";
|
|
996
|
+
readonly type: "uint256";
|
|
997
|
+
}];
|
|
998
|
+
readonly stateMutability: "view";
|
|
999
|
+
readonly type: "function";
|
|
1000
|
+
}, {
|
|
1001
|
+
readonly inputs: readonly [{
|
|
1002
|
+
readonly internalType: "address";
|
|
1003
|
+
readonly name: "owner";
|
|
1004
|
+
readonly type: "address";
|
|
1005
|
+
}];
|
|
1006
|
+
readonly name: "maxRedeem";
|
|
1007
|
+
readonly outputs: readonly [{
|
|
1008
|
+
readonly internalType: "uint256";
|
|
1009
|
+
readonly name: "";
|
|
1010
|
+
readonly type: "uint256";
|
|
1011
|
+
}];
|
|
1012
|
+
readonly stateMutability: "view";
|
|
1013
|
+
readonly type: "function";
|
|
1014
|
+
}, {
|
|
1015
|
+
readonly inputs: readonly [{
|
|
1016
|
+
readonly internalType: "address";
|
|
1017
|
+
readonly name: "owner";
|
|
1018
|
+
readonly type: "address";
|
|
1019
|
+
}];
|
|
1020
|
+
readonly name: "maxWithdraw";
|
|
1021
|
+
readonly outputs: readonly [{
|
|
1022
|
+
readonly internalType: "uint256";
|
|
1023
|
+
readonly name: "";
|
|
1024
|
+
readonly type: "uint256";
|
|
1025
|
+
}];
|
|
1026
|
+
readonly stateMutability: "view";
|
|
1027
|
+
readonly type: "function";
|
|
1028
|
+
}, {
|
|
1029
|
+
readonly inputs: readonly [{
|
|
1030
|
+
readonly internalType: "uint256";
|
|
1031
|
+
readonly name: "shares";
|
|
1032
|
+
readonly type: "uint256";
|
|
1033
|
+
}, {
|
|
1034
|
+
readonly internalType: "address";
|
|
1035
|
+
readonly name: "receiver";
|
|
1036
|
+
readonly type: "address";
|
|
1037
|
+
}];
|
|
1038
|
+
readonly name: "mint";
|
|
1039
|
+
readonly outputs: readonly [{
|
|
1040
|
+
readonly internalType: "uint256";
|
|
1041
|
+
readonly name: "";
|
|
1042
|
+
readonly type: "uint256";
|
|
1043
|
+
}];
|
|
1044
|
+
readonly stateMutability: "nonpayable";
|
|
1045
|
+
readonly type: "function";
|
|
1046
|
+
}, {
|
|
1047
|
+
readonly inputs: readonly [{
|
|
1048
|
+
readonly internalType: "uint256";
|
|
1049
|
+
readonly name: "amount";
|
|
1050
|
+
readonly type: "uint256";
|
|
1051
|
+
}];
|
|
1052
|
+
readonly name: "mintRewards";
|
|
1053
|
+
readonly outputs: readonly [];
|
|
1054
|
+
readonly stateMutability: "nonpayable";
|
|
1055
|
+
readonly type: "function";
|
|
1056
|
+
}, {
|
|
1057
|
+
readonly inputs: readonly [];
|
|
1058
|
+
readonly name: "name";
|
|
1059
|
+
readonly outputs: readonly [{
|
|
1060
|
+
readonly internalType: "string";
|
|
1061
|
+
readonly name: "";
|
|
1062
|
+
readonly type: "string";
|
|
1063
|
+
}];
|
|
1064
|
+
readonly stateMutability: "view";
|
|
1065
|
+
readonly type: "function";
|
|
1066
|
+
}, {
|
|
1067
|
+
readonly inputs: readonly [];
|
|
1068
|
+
readonly name: "owner";
|
|
1069
|
+
readonly outputs: readonly [{
|
|
1070
|
+
readonly internalType: "address";
|
|
1071
|
+
readonly name: "";
|
|
1072
|
+
readonly type: "address";
|
|
1073
|
+
}];
|
|
1074
|
+
readonly stateMutability: "view";
|
|
1075
|
+
readonly type: "function";
|
|
1076
|
+
}, {
|
|
1077
|
+
readonly inputs: readonly [];
|
|
1078
|
+
readonly name: "pendingImplementation";
|
|
1079
|
+
readonly outputs: readonly [{
|
|
1080
|
+
readonly internalType: "address";
|
|
1081
|
+
readonly name: "";
|
|
1082
|
+
readonly type: "address";
|
|
1083
|
+
}];
|
|
1084
|
+
readonly stateMutability: "view";
|
|
1085
|
+
readonly type: "function";
|
|
1086
|
+
}, {
|
|
1087
|
+
readonly inputs: readonly [{
|
|
1088
|
+
readonly internalType: "uint256";
|
|
1089
|
+
readonly name: "assets";
|
|
1090
|
+
readonly type: "uint256";
|
|
1091
|
+
}];
|
|
1092
|
+
readonly name: "previewDeposit";
|
|
1093
|
+
readonly outputs: readonly [{
|
|
1094
|
+
readonly internalType: "uint256";
|
|
1095
|
+
readonly name: "";
|
|
1096
|
+
readonly type: "uint256";
|
|
1097
|
+
}];
|
|
1098
|
+
readonly stateMutability: "view";
|
|
1099
|
+
readonly type: "function";
|
|
1100
|
+
}, {
|
|
1101
|
+
readonly inputs: readonly [{
|
|
1102
|
+
readonly internalType: "uint256";
|
|
1103
|
+
readonly name: "shares";
|
|
1104
|
+
readonly type: "uint256";
|
|
1105
|
+
}];
|
|
1106
|
+
readonly name: "previewMint";
|
|
1107
|
+
readonly outputs: readonly [{
|
|
1108
|
+
readonly internalType: "uint256";
|
|
1109
|
+
readonly name: "";
|
|
1110
|
+
readonly type: "uint256";
|
|
1111
|
+
}];
|
|
1112
|
+
readonly stateMutability: "view";
|
|
1113
|
+
readonly type: "function";
|
|
1114
|
+
}, {
|
|
1115
|
+
readonly inputs: readonly [{
|
|
1116
|
+
readonly internalType: "uint256";
|
|
1117
|
+
readonly name: "shares";
|
|
1118
|
+
readonly type: "uint256";
|
|
1119
|
+
}];
|
|
1120
|
+
readonly name: "previewRedeem";
|
|
1121
|
+
readonly outputs: readonly [{
|
|
1122
|
+
readonly internalType: "uint256";
|
|
1123
|
+
readonly name: "";
|
|
1124
|
+
readonly type: "uint256";
|
|
1125
|
+
}];
|
|
1126
|
+
readonly stateMutability: "view";
|
|
1127
|
+
readonly type: "function";
|
|
1128
|
+
}, {
|
|
1129
|
+
readonly inputs: readonly [{
|
|
1130
|
+
readonly internalType: "uint256";
|
|
1131
|
+
readonly name: "assets";
|
|
1132
|
+
readonly type: "uint256";
|
|
1133
|
+
}];
|
|
1134
|
+
readonly name: "previewWithdraw";
|
|
1135
|
+
readonly outputs: readonly [{
|
|
1136
|
+
readonly internalType: "uint256";
|
|
1137
|
+
readonly name: "";
|
|
1138
|
+
readonly type: "uint256";
|
|
1139
|
+
}];
|
|
1140
|
+
readonly stateMutability: "view";
|
|
1141
|
+
readonly type: "function";
|
|
1142
|
+
}, {
|
|
1143
|
+
readonly inputs: readonly [];
|
|
1144
|
+
readonly name: "proxiableUUID";
|
|
1145
|
+
readonly outputs: readonly [{
|
|
1146
|
+
readonly internalType: "bytes32";
|
|
1147
|
+
readonly name: "";
|
|
1148
|
+
readonly type: "bytes32";
|
|
1149
|
+
}];
|
|
1150
|
+
readonly stateMutability: "view";
|
|
1151
|
+
readonly type: "function";
|
|
1152
|
+
}, {
|
|
1153
|
+
readonly inputs: readonly [{
|
|
1154
|
+
readonly internalType: "uint256";
|
|
1155
|
+
readonly name: "shares";
|
|
1156
|
+
readonly type: "uint256";
|
|
1157
|
+
}, {
|
|
1158
|
+
readonly internalType: "address";
|
|
1159
|
+
readonly name: "receiver";
|
|
1160
|
+
readonly type: "address";
|
|
1161
|
+
}, {
|
|
1162
|
+
readonly internalType: "address";
|
|
1163
|
+
readonly name: "owner";
|
|
1164
|
+
readonly type: "address";
|
|
1165
|
+
}];
|
|
1166
|
+
readonly name: "redeem";
|
|
1167
|
+
readonly outputs: readonly [{
|
|
1168
|
+
readonly internalType: "uint256";
|
|
1169
|
+
readonly name: "";
|
|
1170
|
+
readonly type: "uint256";
|
|
1171
|
+
}];
|
|
1172
|
+
readonly stateMutability: "nonpayable";
|
|
1173
|
+
readonly type: "function";
|
|
1174
|
+
}, {
|
|
1175
|
+
readonly inputs: readonly [];
|
|
1176
|
+
readonly name: "renounceOwnership";
|
|
1177
|
+
readonly outputs: readonly [];
|
|
1178
|
+
readonly stateMutability: "nonpayable";
|
|
1179
|
+
readonly type: "function";
|
|
1180
|
+
}, {
|
|
1181
|
+
readonly inputs: readonly [{
|
|
1182
|
+
readonly internalType: "address";
|
|
1183
|
+
readonly name: "token";
|
|
1184
|
+
readonly type: "address";
|
|
1185
|
+
}, {
|
|
1186
|
+
readonly internalType: "uint256";
|
|
1187
|
+
readonly name: "amount";
|
|
1188
|
+
readonly type: "uint256";
|
|
1189
|
+
}, {
|
|
1190
|
+
readonly internalType: "address";
|
|
1191
|
+
readonly name: "to";
|
|
1192
|
+
readonly type: "address";
|
|
1193
|
+
}];
|
|
1194
|
+
readonly name: "rescueTokens";
|
|
1195
|
+
readonly outputs: readonly [];
|
|
1196
|
+
readonly stateMutability: "nonpayable";
|
|
1197
|
+
readonly type: "function";
|
|
1198
|
+
}, {
|
|
1199
|
+
readonly inputs: readonly [];
|
|
1200
|
+
readonly name: "rewarder";
|
|
1201
|
+
readonly outputs: readonly [{
|
|
1202
|
+
readonly internalType: "address";
|
|
1203
|
+
readonly name: "";
|
|
1204
|
+
readonly type: "address";
|
|
1205
|
+
}];
|
|
1206
|
+
readonly stateMutability: "view";
|
|
1207
|
+
readonly type: "function";
|
|
1208
|
+
}, {
|
|
1209
|
+
readonly inputs: readonly [{
|
|
1210
|
+
readonly internalType: "address";
|
|
1211
|
+
readonly name: "newImpl";
|
|
1212
|
+
readonly type: "address";
|
|
1213
|
+
}];
|
|
1214
|
+
readonly name: "scheduleUpgrade";
|
|
1215
|
+
readonly outputs: readonly [];
|
|
1216
|
+
readonly stateMutability: "nonpayable";
|
|
1217
|
+
readonly type: "function";
|
|
1218
|
+
}, {
|
|
1219
|
+
readonly inputs: readonly [{
|
|
1220
|
+
readonly internalType: "uint24";
|
|
1221
|
+
readonly name: "duration";
|
|
1222
|
+
readonly type: "uint24";
|
|
1223
|
+
}];
|
|
1224
|
+
readonly name: "setCooldownDuration";
|
|
1225
|
+
readonly outputs: readonly [];
|
|
1226
|
+
readonly stateMutability: "nonpayable";
|
|
1227
|
+
readonly type: "function";
|
|
1228
|
+
}, {
|
|
1229
|
+
readonly inputs: readonly [{
|
|
1230
|
+
readonly internalType: "uint256";
|
|
1231
|
+
readonly name: "_ratio";
|
|
1232
|
+
readonly type: "uint256";
|
|
1233
|
+
}];
|
|
1234
|
+
readonly name: "setCoverageRatio";
|
|
1235
|
+
readonly outputs: readonly [];
|
|
1236
|
+
readonly stateMutability: "nonpayable";
|
|
1237
|
+
readonly type: "function";
|
|
1238
|
+
}, {
|
|
1239
|
+
readonly inputs: readonly [{
|
|
1240
|
+
readonly internalType: "address";
|
|
1241
|
+
readonly name: "_silo";
|
|
1242
|
+
readonly type: "address";
|
|
1243
|
+
}];
|
|
1244
|
+
readonly name: "setFeeSilo";
|
|
1245
|
+
readonly outputs: readonly [];
|
|
1246
|
+
readonly stateMutability: "nonpayable";
|
|
1247
|
+
readonly type: "function";
|
|
1248
|
+
}, {
|
|
1249
|
+
readonly inputs: readonly [{
|
|
1250
|
+
readonly internalType: "address";
|
|
1251
|
+
readonly name: "_rewarder";
|
|
1252
|
+
readonly type: "address";
|
|
1253
|
+
}];
|
|
1254
|
+
readonly name: "setRewarder";
|
|
1255
|
+
readonly outputs: readonly [];
|
|
1256
|
+
readonly stateMutability: "nonpayable";
|
|
1257
|
+
readonly type: "function";
|
|
1258
|
+
}, {
|
|
1259
|
+
readonly inputs: readonly [{
|
|
1260
|
+
readonly internalType: "address";
|
|
1261
|
+
readonly name: "_silo";
|
|
1262
|
+
readonly type: "address";
|
|
1263
|
+
}];
|
|
1264
|
+
readonly name: "setSilo";
|
|
1265
|
+
readonly outputs: readonly [];
|
|
1266
|
+
readonly stateMutability: "nonpayable";
|
|
1267
|
+
readonly type: "function";
|
|
1268
|
+
}, {
|
|
1269
|
+
readonly inputs: readonly [{
|
|
1270
|
+
readonly internalType: "uint16";
|
|
1271
|
+
readonly name: "newTaxRate";
|
|
1272
|
+
readonly type: "uint16";
|
|
1273
|
+
}];
|
|
1274
|
+
readonly name: "setTaxRate";
|
|
1275
|
+
readonly outputs: readonly [];
|
|
1276
|
+
readonly stateMutability: "nonpayable";
|
|
1277
|
+
readonly type: "function";
|
|
1278
|
+
}, {
|
|
1279
|
+
readonly inputs: readonly [{
|
|
1280
|
+
readonly internalType: "uint256";
|
|
1281
|
+
readonly name: "newDelay";
|
|
1282
|
+
readonly type: "uint256";
|
|
1283
|
+
}];
|
|
1284
|
+
readonly name: "setUpgradeDelay";
|
|
1285
|
+
readonly outputs: readonly [];
|
|
1286
|
+
readonly stateMutability: "nonpayable";
|
|
1287
|
+
readonly type: "function";
|
|
1288
|
+
}, {
|
|
1289
|
+
readonly inputs: readonly [];
|
|
1290
|
+
readonly name: "silo";
|
|
1291
|
+
readonly outputs: readonly [{
|
|
1292
|
+
readonly internalType: "contract msUSDSilo";
|
|
1293
|
+
readonly name: "";
|
|
1294
|
+
readonly type: "address";
|
|
1295
|
+
}];
|
|
1296
|
+
readonly stateMutability: "view";
|
|
1297
|
+
readonly type: "function";
|
|
1298
|
+
}, {
|
|
1299
|
+
readonly inputs: readonly [];
|
|
1300
|
+
readonly name: "symbol";
|
|
1301
|
+
readonly outputs: readonly [{
|
|
1302
|
+
readonly internalType: "string";
|
|
1303
|
+
readonly name: "";
|
|
1304
|
+
readonly type: "string";
|
|
1305
|
+
}];
|
|
1306
|
+
readonly stateMutability: "view";
|
|
1307
|
+
readonly type: "function";
|
|
1308
|
+
}, {
|
|
1309
|
+
readonly inputs: readonly [];
|
|
1310
|
+
readonly name: "taxRate";
|
|
1311
|
+
readonly outputs: readonly [{
|
|
1312
|
+
readonly internalType: "uint16";
|
|
1313
|
+
readonly name: "";
|
|
1314
|
+
readonly type: "uint16";
|
|
1315
|
+
}];
|
|
1316
|
+
readonly stateMutability: "view";
|
|
1317
|
+
readonly type: "function";
|
|
1318
|
+
}, {
|
|
1319
|
+
readonly inputs: readonly [];
|
|
1320
|
+
readonly name: "toggleDeposits";
|
|
1321
|
+
readonly outputs: readonly [];
|
|
1322
|
+
readonly stateMutability: "nonpayable";
|
|
1323
|
+
readonly type: "function";
|
|
1324
|
+
}, {
|
|
1325
|
+
readonly inputs: readonly [];
|
|
1326
|
+
readonly name: "totalAssets";
|
|
1327
|
+
readonly outputs: readonly [{
|
|
1328
|
+
readonly internalType: "uint256";
|
|
1329
|
+
readonly name: "";
|
|
1330
|
+
readonly type: "uint256";
|
|
1331
|
+
}];
|
|
1332
|
+
readonly stateMutability: "view";
|
|
1333
|
+
readonly type: "function";
|
|
1334
|
+
}, {
|
|
1335
|
+
readonly inputs: readonly [];
|
|
1336
|
+
readonly name: "totalSupply";
|
|
1337
|
+
readonly outputs: readonly [{
|
|
1338
|
+
readonly internalType: "uint256";
|
|
1339
|
+
readonly name: "";
|
|
1340
|
+
readonly type: "uint256";
|
|
1341
|
+
}];
|
|
1342
|
+
readonly stateMutability: "view";
|
|
1343
|
+
readonly type: "function";
|
|
1344
|
+
}, {
|
|
1345
|
+
readonly inputs: readonly [{
|
|
1346
|
+
readonly internalType: "address";
|
|
1347
|
+
readonly name: "to";
|
|
1348
|
+
readonly type: "address";
|
|
1349
|
+
}, {
|
|
1350
|
+
readonly internalType: "uint256";
|
|
1351
|
+
readonly name: "value";
|
|
1352
|
+
readonly type: "uint256";
|
|
1353
|
+
}];
|
|
1354
|
+
readonly name: "transfer";
|
|
1355
|
+
readonly outputs: readonly [{
|
|
1356
|
+
readonly internalType: "bool";
|
|
1357
|
+
readonly name: "";
|
|
1358
|
+
readonly type: "bool";
|
|
1359
|
+
}];
|
|
1360
|
+
readonly stateMutability: "nonpayable";
|
|
1361
|
+
readonly type: "function";
|
|
1362
|
+
}, {
|
|
1363
|
+
readonly inputs: readonly [{
|
|
1364
|
+
readonly internalType: "address";
|
|
1365
|
+
readonly name: "from";
|
|
1366
|
+
readonly type: "address";
|
|
1367
|
+
}, {
|
|
1368
|
+
readonly internalType: "address";
|
|
1369
|
+
readonly name: "to";
|
|
1370
|
+
readonly type: "address";
|
|
1371
|
+
}, {
|
|
1372
|
+
readonly internalType: "uint256";
|
|
1373
|
+
readonly name: "value";
|
|
1374
|
+
readonly type: "uint256";
|
|
1375
|
+
}];
|
|
1376
|
+
readonly name: "transferFrom";
|
|
1377
|
+
readonly outputs: readonly [{
|
|
1378
|
+
readonly internalType: "bool";
|
|
1379
|
+
readonly name: "";
|
|
1380
|
+
readonly type: "bool";
|
|
1381
|
+
}];
|
|
1382
|
+
readonly stateMutability: "nonpayable";
|
|
1383
|
+
readonly type: "function";
|
|
1384
|
+
}, {
|
|
1385
|
+
readonly inputs: readonly [{
|
|
1386
|
+
readonly internalType: "address";
|
|
1387
|
+
readonly name: "newOwner";
|
|
1388
|
+
readonly type: "address";
|
|
1389
|
+
}];
|
|
1390
|
+
readonly name: "transferOwnership";
|
|
1391
|
+
readonly outputs: readonly [];
|
|
1392
|
+
readonly stateMutability: "nonpayable";
|
|
1393
|
+
readonly type: "function";
|
|
1394
|
+
}, {
|
|
1395
|
+
readonly inputs: readonly [{
|
|
1396
|
+
readonly internalType: "address";
|
|
1397
|
+
readonly name: "receiver";
|
|
1398
|
+
readonly type: "address";
|
|
1399
|
+
}];
|
|
1400
|
+
readonly name: "unstake";
|
|
1401
|
+
readonly outputs: readonly [];
|
|
1402
|
+
readonly stateMutability: "nonpayable";
|
|
1403
|
+
readonly type: "function";
|
|
1404
|
+
}, {
|
|
1405
|
+
readonly inputs: readonly [{
|
|
1406
|
+
readonly internalType: "address";
|
|
1407
|
+
readonly name: "account";
|
|
1408
|
+
readonly type: "address";
|
|
1409
|
+
}, {
|
|
1410
|
+
readonly internalType: "uint104";
|
|
1411
|
+
readonly name: "newCooldownEnd";
|
|
1412
|
+
readonly type: "uint104";
|
|
1413
|
+
}];
|
|
1414
|
+
readonly name: "updateExistingCooldown";
|
|
1415
|
+
readonly outputs: readonly [];
|
|
1416
|
+
readonly stateMutability: "nonpayable";
|
|
1417
|
+
readonly type: "function";
|
|
1418
|
+
}, {
|
|
1419
|
+
readonly inputs: readonly [];
|
|
1420
|
+
readonly name: "upgradeDelay";
|
|
1421
|
+
readonly outputs: readonly [{
|
|
1422
|
+
readonly internalType: "uint256";
|
|
1423
|
+
readonly name: "";
|
|
1424
|
+
readonly type: "uint256";
|
|
1425
|
+
}];
|
|
1426
|
+
readonly stateMutability: "view";
|
|
1427
|
+
readonly type: "function";
|
|
1428
|
+
}, {
|
|
1429
|
+
readonly inputs: readonly [{
|
|
1430
|
+
readonly internalType: "address";
|
|
1431
|
+
readonly name: "newImplementation";
|
|
1432
|
+
readonly type: "address";
|
|
1433
|
+
}, {
|
|
1434
|
+
readonly internalType: "bytes";
|
|
1435
|
+
readonly name: "data";
|
|
1436
|
+
readonly type: "bytes";
|
|
1437
|
+
}];
|
|
1438
|
+
readonly name: "upgradeToAndCall";
|
|
1439
|
+
readonly outputs: readonly [];
|
|
1440
|
+
readonly stateMutability: "payable";
|
|
1441
|
+
readonly type: "function";
|
|
1442
|
+
}, {
|
|
1443
|
+
readonly inputs: readonly [{
|
|
1444
|
+
readonly internalType: "uint256";
|
|
1445
|
+
readonly name: "assets";
|
|
1446
|
+
readonly type: "uint256";
|
|
1447
|
+
}, {
|
|
1448
|
+
readonly internalType: "address";
|
|
1449
|
+
readonly name: "receiver";
|
|
1450
|
+
readonly type: "address";
|
|
1451
|
+
}, {
|
|
1452
|
+
readonly internalType: "address";
|
|
1453
|
+
readonly name: "owner";
|
|
1454
|
+
readonly type: "address";
|
|
1455
|
+
}];
|
|
1456
|
+
readonly name: "withdraw";
|
|
1457
|
+
readonly outputs: readonly [{
|
|
1458
|
+
readonly internalType: "uint256";
|
|
1459
|
+
readonly name: "";
|
|
1460
|
+
readonly type: "uint256";
|
|
1461
|
+
}];
|
|
1462
|
+
readonly stateMutability: "nonpayable";
|
|
1463
|
+
readonly type: "function";
|
|
1464
|
+
}];
|
|
1465
|
+
/**
|
|
1466
|
+
* Type-safe ABI for StakedmsUSD
|
|
1467
|
+
*/
|
|
1468
|
+
export type StakedmsUSDAbi = typeof StakedmsUSDAbi;
|
|
1469
|
+
/**
|
|
1470
|
+
* Contract instance type for StakedmsUSD
|
|
1471
|
+
*/
|
|
1472
|
+
export type StakedmsUSDContract = any;
|
|
1473
|
+
/**
|
|
1474
|
+
* StakedmsUSD Contract Class
|
|
1475
|
+
*
|
|
1476
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1477
|
+
*
|
|
1478
|
+
* @example
|
|
1479
|
+
* ```typescript
|
|
1480
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1481
|
+
* import { mainnet } from 'viem/chains';
|
|
1482
|
+
* import { StakedmsUSD } from 'StakedmsUSD';
|
|
1483
|
+
*
|
|
1484
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1485
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1486
|
+
*
|
|
1487
|
+
* const contract = new StakedmsUSD('0x...', { publicClient, walletClient });
|
|
1488
|
+
*
|
|
1489
|
+
* // Read functions
|
|
1490
|
+
* const result = await contract.balanceOf('0x...');
|
|
1491
|
+
*
|
|
1492
|
+
* // Write functions
|
|
1493
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
1494
|
+
*
|
|
1495
|
+
* // Simulate transactions (dry-run)
|
|
1496
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
1497
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
1498
|
+
*
|
|
1499
|
+
* // Watch events
|
|
1500
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1501
|
+
* console.log('Transfer event:', event);
|
|
1502
|
+
* });
|
|
1503
|
+
* ```
|
|
1504
|
+
*/
|
|
1505
|
+
export declare class StakedmsUSD {
|
|
1506
|
+
private contract;
|
|
1507
|
+
private contractAddress;
|
|
1508
|
+
private publicClient;
|
|
1509
|
+
constructor(address: Address, clients: {
|
|
1510
|
+
publicClient: PublicClient;
|
|
1511
|
+
walletClient?: WalletClient;
|
|
1512
|
+
});
|
|
1513
|
+
/**
|
|
1514
|
+
* Get the contract address
|
|
1515
|
+
*/
|
|
1516
|
+
get address(): Address;
|
|
1517
|
+
/**
|
|
1518
|
+
* Get the underlying viem contract instance.
|
|
1519
|
+
*/
|
|
1520
|
+
getContract(): StakedmsUSDContract;
|
|
1521
|
+
/**
|
|
1522
|
+
* DEFAULT_UPGRADE_DELAY
|
|
1523
|
+
* view
|
|
1524
|
+
*/
|
|
1525
|
+
DEFAULT_UPGRADE_DELAY(): Promise<bigint>;
|
|
1526
|
+
/**
|
|
1527
|
+
* MAX_COOLDOWN_DURATION
|
|
1528
|
+
* view
|
|
1529
|
+
*/
|
|
1530
|
+
MAX_COOLDOWN_DURATION(): Promise<bigint>;
|
|
1531
|
+
/**
|
|
1532
|
+
* MIN_SHARES
|
|
1533
|
+
* view
|
|
1534
|
+
*/
|
|
1535
|
+
MIN_SHARES(): Promise<bigint>;
|
|
1536
|
+
/**
|
|
1537
|
+
* UPGRADE_INTERFACE_VERSION
|
|
1538
|
+
* view
|
|
1539
|
+
*/
|
|
1540
|
+
UPGRADE_INTERFACE_VERSION(): Promise<string>;
|
|
1541
|
+
/**
|
|
1542
|
+
* activationTime
|
|
1543
|
+
* view
|
|
1544
|
+
*/
|
|
1545
|
+
activationTime(): Promise<bigint>;
|
|
1546
|
+
/**
|
|
1547
|
+
* allowance
|
|
1548
|
+
* view
|
|
1549
|
+
*/
|
|
1550
|
+
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
1551
|
+
/**
|
|
1552
|
+
* asset
|
|
1553
|
+
* view
|
|
1554
|
+
*/
|
|
1555
|
+
asset(): Promise<`0x${string}`>;
|
|
1556
|
+
/**
|
|
1557
|
+
* balanceOf
|
|
1558
|
+
* view
|
|
1559
|
+
*/
|
|
1560
|
+
balanceOf(account: `0x${string}`): Promise<bigint>;
|
|
1561
|
+
/**
|
|
1562
|
+
* convertToAssets
|
|
1563
|
+
* view
|
|
1564
|
+
*/
|
|
1565
|
+
convertToAssets(shares: bigint): Promise<bigint>;
|
|
1566
|
+
/**
|
|
1567
|
+
* convertToShares
|
|
1568
|
+
* view
|
|
1569
|
+
*/
|
|
1570
|
+
convertToShares(assets: bigint): Promise<bigint>;
|
|
1571
|
+
/**
|
|
1572
|
+
* cooldownDuration
|
|
1573
|
+
* view
|
|
1574
|
+
*/
|
|
1575
|
+
cooldownDuration(): Promise<bigint>;
|
|
1576
|
+
/**
|
|
1577
|
+
* cooldowns
|
|
1578
|
+
* view
|
|
1579
|
+
*/
|
|
1580
|
+
cooldowns(arg0: `0x${string}`): Promise<[bigint, bigint]>;
|
|
1581
|
+
/**
|
|
1582
|
+
* coverageRatio
|
|
1583
|
+
* view
|
|
1584
|
+
*/
|
|
1585
|
+
coverageRatio(): Promise<bigint>;
|
|
1586
|
+
/**
|
|
1587
|
+
* decimals
|
|
1588
|
+
* view
|
|
1589
|
+
*/
|
|
1590
|
+
decimals(): Promise<bigint>;
|
|
1591
|
+
/**
|
|
1592
|
+
* depositsEnabled
|
|
1593
|
+
* view
|
|
1594
|
+
*/
|
|
1595
|
+
depositsEnabled(): Promise<boolean>;
|
|
1596
|
+
/**
|
|
1597
|
+
* feeSilo
|
|
1598
|
+
* view
|
|
1599
|
+
*/
|
|
1600
|
+
feeSilo(): Promise<`0x${string}`>;
|
|
1601
|
+
/**
|
|
1602
|
+
* lastDistributionTimestamp
|
|
1603
|
+
* view
|
|
1604
|
+
*/
|
|
1605
|
+
lastDistributionTimestamp(): Promise<bigint>;
|
|
1606
|
+
/**
|
|
1607
|
+
* maxDeposit
|
|
1608
|
+
* view
|
|
1609
|
+
*/
|
|
1610
|
+
maxDeposit(arg0: `0x${string}`): Promise<bigint>;
|
|
1611
|
+
/**
|
|
1612
|
+
* maxMint
|
|
1613
|
+
* view
|
|
1614
|
+
*/
|
|
1615
|
+
maxMint(arg0: `0x${string}`): Promise<bigint>;
|
|
1616
|
+
/**
|
|
1617
|
+
* maxRedeem
|
|
1618
|
+
* view
|
|
1619
|
+
*/
|
|
1620
|
+
maxRedeem(owner: `0x${string}`): Promise<bigint>;
|
|
1621
|
+
/**
|
|
1622
|
+
* maxWithdraw
|
|
1623
|
+
* view
|
|
1624
|
+
*/
|
|
1625
|
+
maxWithdraw(owner: `0x${string}`): Promise<bigint>;
|
|
1626
|
+
/**
|
|
1627
|
+
* name
|
|
1628
|
+
* view
|
|
1629
|
+
*/
|
|
1630
|
+
name(): Promise<string>;
|
|
1631
|
+
/**
|
|
1632
|
+
* owner
|
|
1633
|
+
* view
|
|
1634
|
+
*/
|
|
1635
|
+
owner(): Promise<`0x${string}`>;
|
|
1636
|
+
/**
|
|
1637
|
+
* pendingImplementation
|
|
1638
|
+
* view
|
|
1639
|
+
*/
|
|
1640
|
+
pendingImplementation(): Promise<`0x${string}`>;
|
|
1641
|
+
/**
|
|
1642
|
+
* previewDeposit
|
|
1643
|
+
* view
|
|
1644
|
+
*/
|
|
1645
|
+
previewDeposit(assets: bigint): Promise<bigint>;
|
|
1646
|
+
/**
|
|
1647
|
+
* previewMint
|
|
1648
|
+
* view
|
|
1649
|
+
*/
|
|
1650
|
+
previewMint(shares: bigint): Promise<bigint>;
|
|
1651
|
+
/**
|
|
1652
|
+
* previewRedeem
|
|
1653
|
+
* view
|
|
1654
|
+
*/
|
|
1655
|
+
previewRedeem(shares: bigint): Promise<bigint>;
|
|
1656
|
+
/**
|
|
1657
|
+
* previewWithdraw
|
|
1658
|
+
* view
|
|
1659
|
+
*/
|
|
1660
|
+
previewWithdraw(assets: bigint): Promise<bigint>;
|
|
1661
|
+
/**
|
|
1662
|
+
* proxiableUUID
|
|
1663
|
+
* view
|
|
1664
|
+
*/
|
|
1665
|
+
proxiableUUID(): Promise<`0x${string}`>;
|
|
1666
|
+
/**
|
|
1667
|
+
* rewarder
|
|
1668
|
+
* view
|
|
1669
|
+
*/
|
|
1670
|
+
rewarder(): Promise<`0x${string}`>;
|
|
1671
|
+
/**
|
|
1672
|
+
* silo
|
|
1673
|
+
* view
|
|
1674
|
+
*/
|
|
1675
|
+
silo(): Promise<`0x${string}`>;
|
|
1676
|
+
/**
|
|
1677
|
+
* symbol
|
|
1678
|
+
* view
|
|
1679
|
+
*/
|
|
1680
|
+
symbol(): Promise<string>;
|
|
1681
|
+
/**
|
|
1682
|
+
* taxRate
|
|
1683
|
+
* view
|
|
1684
|
+
*/
|
|
1685
|
+
taxRate(): Promise<bigint>;
|
|
1686
|
+
/**
|
|
1687
|
+
* totalAssets
|
|
1688
|
+
* view
|
|
1689
|
+
*/
|
|
1690
|
+
totalAssets(): Promise<bigint>;
|
|
1691
|
+
/**
|
|
1692
|
+
* totalSupply
|
|
1693
|
+
* view
|
|
1694
|
+
*/
|
|
1695
|
+
totalSupply(): Promise<bigint>;
|
|
1696
|
+
/**
|
|
1697
|
+
* upgradeDelay
|
|
1698
|
+
* view
|
|
1699
|
+
*/
|
|
1700
|
+
upgradeDelay(): Promise<bigint>;
|
|
1701
|
+
/**
|
|
1702
|
+
* approve
|
|
1703
|
+
* nonpayable
|
|
1704
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1705
|
+
*/
|
|
1706
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
1707
|
+
accessList?: import('viem').AccessList;
|
|
1708
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1709
|
+
chain?: import('viem').Chain | null;
|
|
1710
|
+
dataSuffix?: `0x${string}`;
|
|
1711
|
+
gas?: bigint;
|
|
1712
|
+
gasPrice?: bigint;
|
|
1713
|
+
maxFeePerGas?: bigint;
|
|
1714
|
+
maxPriorityFeePerGas?: bigint;
|
|
1715
|
+
nonce?: number;
|
|
1716
|
+
value?: bigint;
|
|
1717
|
+
}): Promise<`0x${string}`>;
|
|
1718
|
+
/**
|
|
1719
|
+
* burnAsset
|
|
1720
|
+
* nonpayable
|
|
1721
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1722
|
+
*/
|
|
1723
|
+
burnAsset(amount: bigint, options?: {
|
|
1724
|
+
accessList?: import('viem').AccessList;
|
|
1725
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1726
|
+
chain?: import('viem').Chain | null;
|
|
1727
|
+
dataSuffix?: `0x${string}`;
|
|
1728
|
+
gas?: bigint;
|
|
1729
|
+
gasPrice?: bigint;
|
|
1730
|
+
maxFeePerGas?: bigint;
|
|
1731
|
+
maxPriorityFeePerGas?: bigint;
|
|
1732
|
+
nonce?: number;
|
|
1733
|
+
value?: bigint;
|
|
1734
|
+
}): Promise<`0x${string}`>;
|
|
1735
|
+
/**
|
|
1736
|
+
* cancelScheduledUpgrade
|
|
1737
|
+
* nonpayable
|
|
1738
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1739
|
+
*/
|
|
1740
|
+
cancelScheduledUpgrade(options?: {
|
|
1741
|
+
accessList?: import('viem').AccessList;
|
|
1742
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1743
|
+
chain?: import('viem').Chain | null;
|
|
1744
|
+
dataSuffix?: `0x${string}`;
|
|
1745
|
+
gas?: bigint;
|
|
1746
|
+
gasPrice?: bigint;
|
|
1747
|
+
maxFeePerGas?: bigint;
|
|
1748
|
+
maxPriorityFeePerGas?: bigint;
|
|
1749
|
+
nonce?: number;
|
|
1750
|
+
value?: bigint;
|
|
1751
|
+
}): Promise<`0x${string}`>;
|
|
1752
|
+
/**
|
|
1753
|
+
* cooldownAssets
|
|
1754
|
+
* nonpayable
|
|
1755
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1756
|
+
*/
|
|
1757
|
+
cooldownAssets(assets: bigint, owner: `0x${string}`, options?: {
|
|
1758
|
+
accessList?: import('viem').AccessList;
|
|
1759
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1760
|
+
chain?: import('viem').Chain | null;
|
|
1761
|
+
dataSuffix?: `0x${string}`;
|
|
1762
|
+
gas?: bigint;
|
|
1763
|
+
gasPrice?: bigint;
|
|
1764
|
+
maxFeePerGas?: bigint;
|
|
1765
|
+
maxPriorityFeePerGas?: bigint;
|
|
1766
|
+
nonce?: number;
|
|
1767
|
+
value?: bigint;
|
|
1768
|
+
}): Promise<`0x${string}`>;
|
|
1769
|
+
/**
|
|
1770
|
+
* cooldownShares
|
|
1771
|
+
* nonpayable
|
|
1772
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1773
|
+
*/
|
|
1774
|
+
cooldownShares(shares: bigint, owner: `0x${string}`, options?: {
|
|
1775
|
+
accessList?: import('viem').AccessList;
|
|
1776
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1777
|
+
chain?: import('viem').Chain | null;
|
|
1778
|
+
dataSuffix?: `0x${string}`;
|
|
1779
|
+
gas?: bigint;
|
|
1780
|
+
gasPrice?: bigint;
|
|
1781
|
+
maxFeePerGas?: bigint;
|
|
1782
|
+
maxPriorityFeePerGas?: bigint;
|
|
1783
|
+
nonce?: number;
|
|
1784
|
+
value?: bigint;
|
|
1785
|
+
}): Promise<`0x${string}`>;
|
|
1786
|
+
/**
|
|
1787
|
+
* deposit
|
|
1788
|
+
* nonpayable
|
|
1789
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1790
|
+
*/
|
|
1791
|
+
deposit(assets: bigint, receiver: `0x${string}`, options?: {
|
|
1792
|
+
accessList?: import('viem').AccessList;
|
|
1793
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1794
|
+
chain?: import('viem').Chain | null;
|
|
1795
|
+
dataSuffix?: `0x${string}`;
|
|
1796
|
+
gas?: bigint;
|
|
1797
|
+
gasPrice?: bigint;
|
|
1798
|
+
maxFeePerGas?: bigint;
|
|
1799
|
+
maxPriorityFeePerGas?: bigint;
|
|
1800
|
+
nonce?: number;
|
|
1801
|
+
value?: bigint;
|
|
1802
|
+
}): Promise<`0x${string}`>;
|
|
1803
|
+
/**
|
|
1804
|
+
* initialize
|
|
1805
|
+
* nonpayable
|
|
1806
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1807
|
+
*/
|
|
1808
|
+
initialize(_asset: `0x${string}`, _initialRewarder: `0x${string}`, _owner: `0x${string}`, _name: string, _symbol: string, options?: {
|
|
1809
|
+
accessList?: import('viem').AccessList;
|
|
1810
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1811
|
+
chain?: import('viem').Chain | null;
|
|
1812
|
+
dataSuffix?: `0x${string}`;
|
|
1813
|
+
gas?: bigint;
|
|
1814
|
+
gasPrice?: bigint;
|
|
1815
|
+
maxFeePerGas?: bigint;
|
|
1816
|
+
maxPriorityFeePerGas?: bigint;
|
|
1817
|
+
nonce?: number;
|
|
1818
|
+
value?: bigint;
|
|
1819
|
+
}): Promise<`0x${string}`>;
|
|
1820
|
+
/**
|
|
1821
|
+
* mint
|
|
1822
|
+
* nonpayable
|
|
1823
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1824
|
+
*/
|
|
1825
|
+
mint(shares: bigint, receiver: `0x${string}`, options?: {
|
|
1826
|
+
accessList?: import('viem').AccessList;
|
|
1827
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1828
|
+
chain?: import('viem').Chain | null;
|
|
1829
|
+
dataSuffix?: `0x${string}`;
|
|
1830
|
+
gas?: bigint;
|
|
1831
|
+
gasPrice?: bigint;
|
|
1832
|
+
maxFeePerGas?: bigint;
|
|
1833
|
+
maxPriorityFeePerGas?: bigint;
|
|
1834
|
+
nonce?: number;
|
|
1835
|
+
value?: bigint;
|
|
1836
|
+
}): Promise<`0x${string}`>;
|
|
1837
|
+
/**
|
|
1838
|
+
* mintRewards
|
|
1839
|
+
* nonpayable
|
|
1840
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1841
|
+
*/
|
|
1842
|
+
mintRewards(amount: bigint, options?: {
|
|
1843
|
+
accessList?: import('viem').AccessList;
|
|
1844
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1845
|
+
chain?: import('viem').Chain | null;
|
|
1846
|
+
dataSuffix?: `0x${string}`;
|
|
1847
|
+
gas?: bigint;
|
|
1848
|
+
gasPrice?: bigint;
|
|
1849
|
+
maxFeePerGas?: bigint;
|
|
1850
|
+
maxPriorityFeePerGas?: bigint;
|
|
1851
|
+
nonce?: number;
|
|
1852
|
+
value?: bigint;
|
|
1853
|
+
}): Promise<`0x${string}`>;
|
|
1854
|
+
/**
|
|
1855
|
+
* redeem
|
|
1856
|
+
* nonpayable
|
|
1857
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1858
|
+
*/
|
|
1859
|
+
redeem(shares: bigint, receiver: `0x${string}`, owner: `0x${string}`, options?: {
|
|
1860
|
+
accessList?: import('viem').AccessList;
|
|
1861
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1862
|
+
chain?: import('viem').Chain | null;
|
|
1863
|
+
dataSuffix?: `0x${string}`;
|
|
1864
|
+
gas?: bigint;
|
|
1865
|
+
gasPrice?: bigint;
|
|
1866
|
+
maxFeePerGas?: bigint;
|
|
1867
|
+
maxPriorityFeePerGas?: bigint;
|
|
1868
|
+
nonce?: number;
|
|
1869
|
+
value?: bigint;
|
|
1870
|
+
}): Promise<`0x${string}`>;
|
|
1871
|
+
/**
|
|
1872
|
+
* renounceOwnership
|
|
1873
|
+
* nonpayable
|
|
1874
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1875
|
+
*/
|
|
1876
|
+
renounceOwnership(options?: {
|
|
1877
|
+
accessList?: import('viem').AccessList;
|
|
1878
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1879
|
+
chain?: import('viem').Chain | null;
|
|
1880
|
+
dataSuffix?: `0x${string}`;
|
|
1881
|
+
gas?: bigint;
|
|
1882
|
+
gasPrice?: bigint;
|
|
1883
|
+
maxFeePerGas?: bigint;
|
|
1884
|
+
maxPriorityFeePerGas?: bigint;
|
|
1885
|
+
nonce?: number;
|
|
1886
|
+
value?: bigint;
|
|
1887
|
+
}): Promise<`0x${string}`>;
|
|
1888
|
+
/**
|
|
1889
|
+
* rescueTokens
|
|
1890
|
+
* nonpayable
|
|
1891
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1892
|
+
*/
|
|
1893
|
+
rescueTokens(token: `0x${string}`, amount: bigint, to: `0x${string}`, options?: {
|
|
1894
|
+
accessList?: import('viem').AccessList;
|
|
1895
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1896
|
+
chain?: import('viem').Chain | null;
|
|
1897
|
+
dataSuffix?: `0x${string}`;
|
|
1898
|
+
gas?: bigint;
|
|
1899
|
+
gasPrice?: bigint;
|
|
1900
|
+
maxFeePerGas?: bigint;
|
|
1901
|
+
maxPriorityFeePerGas?: bigint;
|
|
1902
|
+
nonce?: number;
|
|
1903
|
+
value?: bigint;
|
|
1904
|
+
}): Promise<`0x${string}`>;
|
|
1905
|
+
/**
|
|
1906
|
+
* scheduleUpgrade
|
|
1907
|
+
* nonpayable
|
|
1908
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1909
|
+
*/
|
|
1910
|
+
scheduleUpgrade(newImpl: `0x${string}`, options?: {
|
|
1911
|
+
accessList?: import('viem').AccessList;
|
|
1912
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1913
|
+
chain?: import('viem').Chain | null;
|
|
1914
|
+
dataSuffix?: `0x${string}`;
|
|
1915
|
+
gas?: bigint;
|
|
1916
|
+
gasPrice?: bigint;
|
|
1917
|
+
maxFeePerGas?: bigint;
|
|
1918
|
+
maxPriorityFeePerGas?: bigint;
|
|
1919
|
+
nonce?: number;
|
|
1920
|
+
value?: bigint;
|
|
1921
|
+
}): Promise<`0x${string}`>;
|
|
1922
|
+
/**
|
|
1923
|
+
* setCooldownDuration
|
|
1924
|
+
* nonpayable
|
|
1925
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1926
|
+
*/
|
|
1927
|
+
setCooldownDuration(duration: bigint, options?: {
|
|
1928
|
+
accessList?: import('viem').AccessList;
|
|
1929
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1930
|
+
chain?: import('viem').Chain | null;
|
|
1931
|
+
dataSuffix?: `0x${string}`;
|
|
1932
|
+
gas?: bigint;
|
|
1933
|
+
gasPrice?: bigint;
|
|
1934
|
+
maxFeePerGas?: bigint;
|
|
1935
|
+
maxPriorityFeePerGas?: bigint;
|
|
1936
|
+
nonce?: number;
|
|
1937
|
+
value?: bigint;
|
|
1938
|
+
}): Promise<`0x${string}`>;
|
|
1939
|
+
/**
|
|
1940
|
+
* setCoverageRatio
|
|
1941
|
+
* nonpayable
|
|
1942
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1943
|
+
*/
|
|
1944
|
+
setCoverageRatio(_ratio: bigint, options?: {
|
|
1945
|
+
accessList?: import('viem').AccessList;
|
|
1946
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1947
|
+
chain?: import('viem').Chain | null;
|
|
1948
|
+
dataSuffix?: `0x${string}`;
|
|
1949
|
+
gas?: bigint;
|
|
1950
|
+
gasPrice?: bigint;
|
|
1951
|
+
maxFeePerGas?: bigint;
|
|
1952
|
+
maxPriorityFeePerGas?: bigint;
|
|
1953
|
+
nonce?: number;
|
|
1954
|
+
value?: bigint;
|
|
1955
|
+
}): Promise<`0x${string}`>;
|
|
1956
|
+
/**
|
|
1957
|
+
* setFeeSilo
|
|
1958
|
+
* nonpayable
|
|
1959
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1960
|
+
*/
|
|
1961
|
+
setFeeSilo(_silo: `0x${string}`, options?: {
|
|
1962
|
+
accessList?: import('viem').AccessList;
|
|
1963
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1964
|
+
chain?: import('viem').Chain | null;
|
|
1965
|
+
dataSuffix?: `0x${string}`;
|
|
1966
|
+
gas?: bigint;
|
|
1967
|
+
gasPrice?: bigint;
|
|
1968
|
+
maxFeePerGas?: bigint;
|
|
1969
|
+
maxPriorityFeePerGas?: bigint;
|
|
1970
|
+
nonce?: number;
|
|
1971
|
+
value?: bigint;
|
|
1972
|
+
}): Promise<`0x${string}`>;
|
|
1973
|
+
/**
|
|
1974
|
+
* setRewarder
|
|
1975
|
+
* nonpayable
|
|
1976
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1977
|
+
*/
|
|
1978
|
+
setRewarder(_rewarder: `0x${string}`, options?: {
|
|
1979
|
+
accessList?: import('viem').AccessList;
|
|
1980
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1981
|
+
chain?: import('viem').Chain | null;
|
|
1982
|
+
dataSuffix?: `0x${string}`;
|
|
1983
|
+
gas?: bigint;
|
|
1984
|
+
gasPrice?: bigint;
|
|
1985
|
+
maxFeePerGas?: bigint;
|
|
1986
|
+
maxPriorityFeePerGas?: bigint;
|
|
1987
|
+
nonce?: number;
|
|
1988
|
+
value?: bigint;
|
|
1989
|
+
}): Promise<`0x${string}`>;
|
|
1990
|
+
/**
|
|
1991
|
+
* setSilo
|
|
1992
|
+
* nonpayable
|
|
1993
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1994
|
+
*/
|
|
1995
|
+
setSilo(_silo: `0x${string}`, options?: {
|
|
1996
|
+
accessList?: import('viem').AccessList;
|
|
1997
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1998
|
+
chain?: import('viem').Chain | null;
|
|
1999
|
+
dataSuffix?: `0x${string}`;
|
|
2000
|
+
gas?: bigint;
|
|
2001
|
+
gasPrice?: bigint;
|
|
2002
|
+
maxFeePerGas?: bigint;
|
|
2003
|
+
maxPriorityFeePerGas?: bigint;
|
|
2004
|
+
nonce?: number;
|
|
2005
|
+
value?: bigint;
|
|
2006
|
+
}): Promise<`0x${string}`>;
|
|
2007
|
+
/**
|
|
2008
|
+
* setTaxRate
|
|
2009
|
+
* nonpayable
|
|
2010
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2011
|
+
*/
|
|
2012
|
+
setTaxRate(newTaxRate: bigint, options?: {
|
|
2013
|
+
accessList?: import('viem').AccessList;
|
|
2014
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2015
|
+
chain?: import('viem').Chain | null;
|
|
2016
|
+
dataSuffix?: `0x${string}`;
|
|
2017
|
+
gas?: bigint;
|
|
2018
|
+
gasPrice?: bigint;
|
|
2019
|
+
maxFeePerGas?: bigint;
|
|
2020
|
+
maxPriorityFeePerGas?: bigint;
|
|
2021
|
+
nonce?: number;
|
|
2022
|
+
value?: bigint;
|
|
2023
|
+
}): Promise<`0x${string}`>;
|
|
2024
|
+
/**
|
|
2025
|
+
* setUpgradeDelay
|
|
2026
|
+
* nonpayable
|
|
2027
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2028
|
+
*/
|
|
2029
|
+
setUpgradeDelay(newDelay: bigint, options?: {
|
|
2030
|
+
accessList?: import('viem').AccessList;
|
|
2031
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2032
|
+
chain?: import('viem').Chain | null;
|
|
2033
|
+
dataSuffix?: `0x${string}`;
|
|
2034
|
+
gas?: bigint;
|
|
2035
|
+
gasPrice?: bigint;
|
|
2036
|
+
maxFeePerGas?: bigint;
|
|
2037
|
+
maxPriorityFeePerGas?: bigint;
|
|
2038
|
+
nonce?: number;
|
|
2039
|
+
value?: bigint;
|
|
2040
|
+
}): Promise<`0x${string}`>;
|
|
2041
|
+
/**
|
|
2042
|
+
* toggleDeposits
|
|
2043
|
+
* nonpayable
|
|
2044
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2045
|
+
*/
|
|
2046
|
+
toggleDeposits(options?: {
|
|
2047
|
+
accessList?: import('viem').AccessList;
|
|
2048
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2049
|
+
chain?: import('viem').Chain | null;
|
|
2050
|
+
dataSuffix?: `0x${string}`;
|
|
2051
|
+
gas?: bigint;
|
|
2052
|
+
gasPrice?: bigint;
|
|
2053
|
+
maxFeePerGas?: bigint;
|
|
2054
|
+
maxPriorityFeePerGas?: bigint;
|
|
2055
|
+
nonce?: number;
|
|
2056
|
+
value?: bigint;
|
|
2057
|
+
}): Promise<`0x${string}`>;
|
|
2058
|
+
/**
|
|
2059
|
+
* transfer
|
|
2060
|
+
* nonpayable
|
|
2061
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2062
|
+
*/
|
|
2063
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
2064
|
+
accessList?: import('viem').AccessList;
|
|
2065
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2066
|
+
chain?: import('viem').Chain | null;
|
|
2067
|
+
dataSuffix?: `0x${string}`;
|
|
2068
|
+
gas?: bigint;
|
|
2069
|
+
gasPrice?: bigint;
|
|
2070
|
+
maxFeePerGas?: bigint;
|
|
2071
|
+
maxPriorityFeePerGas?: bigint;
|
|
2072
|
+
nonce?: number;
|
|
2073
|
+
value?: bigint;
|
|
2074
|
+
}): Promise<`0x${string}`>;
|
|
2075
|
+
/**
|
|
2076
|
+
* transferFrom
|
|
2077
|
+
* nonpayable
|
|
2078
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2079
|
+
*/
|
|
2080
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
2081
|
+
accessList?: import('viem').AccessList;
|
|
2082
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2083
|
+
chain?: import('viem').Chain | null;
|
|
2084
|
+
dataSuffix?: `0x${string}`;
|
|
2085
|
+
gas?: bigint;
|
|
2086
|
+
gasPrice?: bigint;
|
|
2087
|
+
maxFeePerGas?: bigint;
|
|
2088
|
+
maxPriorityFeePerGas?: bigint;
|
|
2089
|
+
nonce?: number;
|
|
2090
|
+
value?: bigint;
|
|
2091
|
+
}): Promise<`0x${string}`>;
|
|
2092
|
+
/**
|
|
2093
|
+
* transferOwnership
|
|
2094
|
+
* nonpayable
|
|
2095
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2096
|
+
*/
|
|
2097
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
2098
|
+
accessList?: import('viem').AccessList;
|
|
2099
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2100
|
+
chain?: import('viem').Chain | null;
|
|
2101
|
+
dataSuffix?: `0x${string}`;
|
|
2102
|
+
gas?: bigint;
|
|
2103
|
+
gasPrice?: bigint;
|
|
2104
|
+
maxFeePerGas?: bigint;
|
|
2105
|
+
maxPriorityFeePerGas?: bigint;
|
|
2106
|
+
nonce?: number;
|
|
2107
|
+
value?: bigint;
|
|
2108
|
+
}): Promise<`0x${string}`>;
|
|
2109
|
+
/**
|
|
2110
|
+
* unstake
|
|
2111
|
+
* nonpayable
|
|
2112
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2113
|
+
*/
|
|
2114
|
+
unstake(receiver: `0x${string}`, options?: {
|
|
2115
|
+
accessList?: import('viem').AccessList;
|
|
2116
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2117
|
+
chain?: import('viem').Chain | null;
|
|
2118
|
+
dataSuffix?: `0x${string}`;
|
|
2119
|
+
gas?: bigint;
|
|
2120
|
+
gasPrice?: bigint;
|
|
2121
|
+
maxFeePerGas?: bigint;
|
|
2122
|
+
maxPriorityFeePerGas?: bigint;
|
|
2123
|
+
nonce?: number;
|
|
2124
|
+
value?: bigint;
|
|
2125
|
+
}): Promise<`0x${string}`>;
|
|
2126
|
+
/**
|
|
2127
|
+
* updateExistingCooldown
|
|
2128
|
+
* nonpayable
|
|
2129
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2130
|
+
*/
|
|
2131
|
+
updateExistingCooldown(account: `0x${string}`, newCooldownEnd: bigint, options?: {
|
|
2132
|
+
accessList?: import('viem').AccessList;
|
|
2133
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2134
|
+
chain?: import('viem').Chain | null;
|
|
2135
|
+
dataSuffix?: `0x${string}`;
|
|
2136
|
+
gas?: bigint;
|
|
2137
|
+
gasPrice?: bigint;
|
|
2138
|
+
maxFeePerGas?: bigint;
|
|
2139
|
+
maxPriorityFeePerGas?: bigint;
|
|
2140
|
+
nonce?: number;
|
|
2141
|
+
value?: bigint;
|
|
2142
|
+
}): Promise<`0x${string}`>;
|
|
2143
|
+
/**
|
|
2144
|
+
* upgradeToAndCall
|
|
2145
|
+
* payable
|
|
2146
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2147
|
+
*/
|
|
2148
|
+
upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
|
|
2149
|
+
accessList?: import('viem').AccessList;
|
|
2150
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2151
|
+
chain?: import('viem').Chain | null;
|
|
2152
|
+
dataSuffix?: `0x${string}`;
|
|
2153
|
+
gas?: bigint;
|
|
2154
|
+
gasPrice?: bigint;
|
|
2155
|
+
maxFeePerGas?: bigint;
|
|
2156
|
+
maxPriorityFeePerGas?: bigint;
|
|
2157
|
+
nonce?: number;
|
|
2158
|
+
value?: bigint;
|
|
2159
|
+
}): Promise<`0x${string}`>;
|
|
2160
|
+
/**
|
|
2161
|
+
* withdraw
|
|
2162
|
+
* nonpayable
|
|
2163
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2164
|
+
*/
|
|
2165
|
+
withdraw(assets: bigint, receiver: `0x${string}`, owner: `0x${string}`, options?: {
|
|
2166
|
+
accessList?: import('viem').AccessList;
|
|
2167
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2168
|
+
chain?: import('viem').Chain | null;
|
|
2169
|
+
dataSuffix?: `0x${string}`;
|
|
2170
|
+
gas?: bigint;
|
|
2171
|
+
gasPrice?: bigint;
|
|
2172
|
+
maxFeePerGas?: bigint;
|
|
2173
|
+
maxPriorityFeePerGas?: bigint;
|
|
2174
|
+
nonce?: number;
|
|
2175
|
+
value?: bigint;
|
|
2176
|
+
}): Promise<`0x${string}`>;
|
|
2177
|
+
/**
|
|
2178
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
2179
|
+
*
|
|
2180
|
+
* @example
|
|
2181
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
2182
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
2183
|
+
* console.log('Would succeed:', result.result);
|
|
2184
|
+
*/
|
|
2185
|
+
get simulate(): {
|
|
2186
|
+
/**
|
|
2187
|
+
* Simulate approve
|
|
2188
|
+
* Returns gas estimate and result without sending transaction
|
|
2189
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2190
|
+
*/
|
|
2191
|
+
approve(spender: `0x${string}`, value: bigint, options?: {
|
|
2192
|
+
accessList?: import("viem").AccessList;
|
|
2193
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2194
|
+
chain?: import("viem").Chain | null;
|
|
2195
|
+
dataSuffix?: `0x${string}`;
|
|
2196
|
+
gas?: bigint;
|
|
2197
|
+
gasPrice?: bigint;
|
|
2198
|
+
maxFeePerGas?: bigint;
|
|
2199
|
+
maxPriorityFeePerGas?: bigint;
|
|
2200
|
+
nonce?: number;
|
|
2201
|
+
value?: bigint;
|
|
2202
|
+
}): Promise<boolean>;
|
|
2203
|
+
/**
|
|
2204
|
+
* Simulate burnAsset
|
|
2205
|
+
* Returns gas estimate and result without sending transaction
|
|
2206
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2207
|
+
*/
|
|
2208
|
+
burnAsset(amount: bigint, options?: {
|
|
2209
|
+
accessList?: import("viem").AccessList;
|
|
2210
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2211
|
+
chain?: import("viem").Chain | null;
|
|
2212
|
+
dataSuffix?: `0x${string}`;
|
|
2213
|
+
gas?: bigint;
|
|
2214
|
+
gasPrice?: bigint;
|
|
2215
|
+
maxFeePerGas?: bigint;
|
|
2216
|
+
maxPriorityFeePerGas?: bigint;
|
|
2217
|
+
nonce?: number;
|
|
2218
|
+
value?: bigint;
|
|
2219
|
+
}): Promise<void>;
|
|
2220
|
+
/**
|
|
2221
|
+
* Simulate cancelScheduledUpgrade
|
|
2222
|
+
* Returns gas estimate and result without sending transaction
|
|
2223
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2224
|
+
*/
|
|
2225
|
+
cancelScheduledUpgrade(options?: {
|
|
2226
|
+
accessList?: import("viem").AccessList;
|
|
2227
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2228
|
+
chain?: import("viem").Chain | null;
|
|
2229
|
+
dataSuffix?: `0x${string}`;
|
|
2230
|
+
gas?: bigint;
|
|
2231
|
+
gasPrice?: bigint;
|
|
2232
|
+
maxFeePerGas?: bigint;
|
|
2233
|
+
maxPriorityFeePerGas?: bigint;
|
|
2234
|
+
nonce?: number;
|
|
2235
|
+
value?: bigint;
|
|
2236
|
+
}): Promise<void>;
|
|
2237
|
+
/**
|
|
2238
|
+
* Simulate cooldownAssets
|
|
2239
|
+
* Returns gas estimate and result without sending transaction
|
|
2240
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2241
|
+
*/
|
|
2242
|
+
cooldownAssets(assets: bigint, owner: `0x${string}`, options?: {
|
|
2243
|
+
accessList?: import("viem").AccessList;
|
|
2244
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2245
|
+
chain?: import("viem").Chain | null;
|
|
2246
|
+
dataSuffix?: `0x${string}`;
|
|
2247
|
+
gas?: bigint;
|
|
2248
|
+
gasPrice?: bigint;
|
|
2249
|
+
maxFeePerGas?: bigint;
|
|
2250
|
+
maxPriorityFeePerGas?: bigint;
|
|
2251
|
+
nonce?: number;
|
|
2252
|
+
value?: bigint;
|
|
2253
|
+
}): Promise<bigint>;
|
|
2254
|
+
/**
|
|
2255
|
+
* Simulate cooldownShares
|
|
2256
|
+
* Returns gas estimate and result without sending transaction
|
|
2257
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2258
|
+
*/
|
|
2259
|
+
cooldownShares(shares: bigint, owner: `0x${string}`, options?: {
|
|
2260
|
+
accessList?: import("viem").AccessList;
|
|
2261
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2262
|
+
chain?: import("viem").Chain | null;
|
|
2263
|
+
dataSuffix?: `0x${string}`;
|
|
2264
|
+
gas?: bigint;
|
|
2265
|
+
gasPrice?: bigint;
|
|
2266
|
+
maxFeePerGas?: bigint;
|
|
2267
|
+
maxPriorityFeePerGas?: bigint;
|
|
2268
|
+
nonce?: number;
|
|
2269
|
+
value?: bigint;
|
|
2270
|
+
}): Promise<bigint>;
|
|
2271
|
+
/**
|
|
2272
|
+
* Simulate deposit
|
|
2273
|
+
* Returns gas estimate and result without sending transaction
|
|
2274
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2275
|
+
*/
|
|
2276
|
+
deposit(assets: bigint, receiver: `0x${string}`, options?: {
|
|
2277
|
+
accessList?: import("viem").AccessList;
|
|
2278
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2279
|
+
chain?: import("viem").Chain | null;
|
|
2280
|
+
dataSuffix?: `0x${string}`;
|
|
2281
|
+
gas?: bigint;
|
|
2282
|
+
gasPrice?: bigint;
|
|
2283
|
+
maxFeePerGas?: bigint;
|
|
2284
|
+
maxPriorityFeePerGas?: bigint;
|
|
2285
|
+
nonce?: number;
|
|
2286
|
+
value?: bigint;
|
|
2287
|
+
}): Promise<bigint>;
|
|
2288
|
+
/**
|
|
2289
|
+
* Simulate initialize
|
|
2290
|
+
* Returns gas estimate and result without sending transaction
|
|
2291
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2292
|
+
*/
|
|
2293
|
+
initialize(_asset: `0x${string}`, _initialRewarder: `0x${string}`, _owner: `0x${string}`, _name: string, _symbol: string, options?: {
|
|
2294
|
+
accessList?: import("viem").AccessList;
|
|
2295
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2296
|
+
chain?: import("viem").Chain | null;
|
|
2297
|
+
dataSuffix?: `0x${string}`;
|
|
2298
|
+
gas?: bigint;
|
|
2299
|
+
gasPrice?: bigint;
|
|
2300
|
+
maxFeePerGas?: bigint;
|
|
2301
|
+
maxPriorityFeePerGas?: bigint;
|
|
2302
|
+
nonce?: number;
|
|
2303
|
+
value?: bigint;
|
|
2304
|
+
}): Promise<void>;
|
|
2305
|
+
/**
|
|
2306
|
+
* Simulate mint
|
|
2307
|
+
* Returns gas estimate and result without sending transaction
|
|
2308
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2309
|
+
*/
|
|
2310
|
+
mint(shares: bigint, receiver: `0x${string}`, options?: {
|
|
2311
|
+
accessList?: import("viem").AccessList;
|
|
2312
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2313
|
+
chain?: import("viem").Chain | null;
|
|
2314
|
+
dataSuffix?: `0x${string}`;
|
|
2315
|
+
gas?: bigint;
|
|
2316
|
+
gasPrice?: bigint;
|
|
2317
|
+
maxFeePerGas?: bigint;
|
|
2318
|
+
maxPriorityFeePerGas?: bigint;
|
|
2319
|
+
nonce?: number;
|
|
2320
|
+
value?: bigint;
|
|
2321
|
+
}): Promise<bigint>;
|
|
2322
|
+
/**
|
|
2323
|
+
* Simulate mintRewards
|
|
2324
|
+
* Returns gas estimate and result without sending transaction
|
|
2325
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2326
|
+
*/
|
|
2327
|
+
mintRewards(amount: bigint, options?: {
|
|
2328
|
+
accessList?: import("viem").AccessList;
|
|
2329
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2330
|
+
chain?: import("viem").Chain | null;
|
|
2331
|
+
dataSuffix?: `0x${string}`;
|
|
2332
|
+
gas?: bigint;
|
|
2333
|
+
gasPrice?: bigint;
|
|
2334
|
+
maxFeePerGas?: bigint;
|
|
2335
|
+
maxPriorityFeePerGas?: bigint;
|
|
2336
|
+
nonce?: number;
|
|
2337
|
+
value?: bigint;
|
|
2338
|
+
}): Promise<void>;
|
|
2339
|
+
/**
|
|
2340
|
+
* Simulate redeem
|
|
2341
|
+
* Returns gas estimate and result without sending transaction
|
|
2342
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2343
|
+
*/
|
|
2344
|
+
redeem(shares: bigint, receiver: `0x${string}`, owner: `0x${string}`, options?: {
|
|
2345
|
+
accessList?: import("viem").AccessList;
|
|
2346
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2347
|
+
chain?: import("viem").Chain | null;
|
|
2348
|
+
dataSuffix?: `0x${string}`;
|
|
2349
|
+
gas?: bigint;
|
|
2350
|
+
gasPrice?: bigint;
|
|
2351
|
+
maxFeePerGas?: bigint;
|
|
2352
|
+
maxPriorityFeePerGas?: bigint;
|
|
2353
|
+
nonce?: number;
|
|
2354
|
+
value?: bigint;
|
|
2355
|
+
}): Promise<bigint>;
|
|
2356
|
+
/**
|
|
2357
|
+
* Simulate renounceOwnership
|
|
2358
|
+
* Returns gas estimate and result without sending transaction
|
|
2359
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2360
|
+
*/
|
|
2361
|
+
renounceOwnership(options?: {
|
|
2362
|
+
accessList?: import("viem").AccessList;
|
|
2363
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2364
|
+
chain?: import("viem").Chain | null;
|
|
2365
|
+
dataSuffix?: `0x${string}`;
|
|
2366
|
+
gas?: bigint;
|
|
2367
|
+
gasPrice?: bigint;
|
|
2368
|
+
maxFeePerGas?: bigint;
|
|
2369
|
+
maxPriorityFeePerGas?: bigint;
|
|
2370
|
+
nonce?: number;
|
|
2371
|
+
value?: bigint;
|
|
2372
|
+
}): Promise<void>;
|
|
2373
|
+
/**
|
|
2374
|
+
* Simulate rescueTokens
|
|
2375
|
+
* Returns gas estimate and result without sending transaction
|
|
2376
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2377
|
+
*/
|
|
2378
|
+
rescueTokens(token: `0x${string}`, amount: bigint, to: `0x${string}`, options?: {
|
|
2379
|
+
accessList?: import("viem").AccessList;
|
|
2380
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2381
|
+
chain?: import("viem").Chain | null;
|
|
2382
|
+
dataSuffix?: `0x${string}`;
|
|
2383
|
+
gas?: bigint;
|
|
2384
|
+
gasPrice?: bigint;
|
|
2385
|
+
maxFeePerGas?: bigint;
|
|
2386
|
+
maxPriorityFeePerGas?: bigint;
|
|
2387
|
+
nonce?: number;
|
|
2388
|
+
value?: bigint;
|
|
2389
|
+
}): Promise<void>;
|
|
2390
|
+
/**
|
|
2391
|
+
* Simulate scheduleUpgrade
|
|
2392
|
+
* Returns gas estimate and result without sending transaction
|
|
2393
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2394
|
+
*/
|
|
2395
|
+
scheduleUpgrade(newImpl: `0x${string}`, options?: {
|
|
2396
|
+
accessList?: import("viem").AccessList;
|
|
2397
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2398
|
+
chain?: import("viem").Chain | null;
|
|
2399
|
+
dataSuffix?: `0x${string}`;
|
|
2400
|
+
gas?: bigint;
|
|
2401
|
+
gasPrice?: bigint;
|
|
2402
|
+
maxFeePerGas?: bigint;
|
|
2403
|
+
maxPriorityFeePerGas?: bigint;
|
|
2404
|
+
nonce?: number;
|
|
2405
|
+
value?: bigint;
|
|
2406
|
+
}): Promise<void>;
|
|
2407
|
+
/**
|
|
2408
|
+
* Simulate setCooldownDuration
|
|
2409
|
+
* Returns gas estimate and result without sending transaction
|
|
2410
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2411
|
+
*/
|
|
2412
|
+
setCooldownDuration(duration: bigint, options?: {
|
|
2413
|
+
accessList?: import("viem").AccessList;
|
|
2414
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2415
|
+
chain?: import("viem").Chain | null;
|
|
2416
|
+
dataSuffix?: `0x${string}`;
|
|
2417
|
+
gas?: bigint;
|
|
2418
|
+
gasPrice?: bigint;
|
|
2419
|
+
maxFeePerGas?: bigint;
|
|
2420
|
+
maxPriorityFeePerGas?: bigint;
|
|
2421
|
+
nonce?: number;
|
|
2422
|
+
value?: bigint;
|
|
2423
|
+
}): Promise<void>;
|
|
2424
|
+
/**
|
|
2425
|
+
* Simulate setCoverageRatio
|
|
2426
|
+
* Returns gas estimate and result without sending transaction
|
|
2427
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2428
|
+
*/
|
|
2429
|
+
setCoverageRatio(_ratio: bigint, options?: {
|
|
2430
|
+
accessList?: import("viem").AccessList;
|
|
2431
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2432
|
+
chain?: import("viem").Chain | null;
|
|
2433
|
+
dataSuffix?: `0x${string}`;
|
|
2434
|
+
gas?: bigint;
|
|
2435
|
+
gasPrice?: bigint;
|
|
2436
|
+
maxFeePerGas?: bigint;
|
|
2437
|
+
maxPriorityFeePerGas?: bigint;
|
|
2438
|
+
nonce?: number;
|
|
2439
|
+
value?: bigint;
|
|
2440
|
+
}): Promise<void>;
|
|
2441
|
+
/**
|
|
2442
|
+
* Simulate setFeeSilo
|
|
2443
|
+
* Returns gas estimate and result without sending transaction
|
|
2444
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2445
|
+
*/
|
|
2446
|
+
setFeeSilo(_silo: `0x${string}`, options?: {
|
|
2447
|
+
accessList?: import("viem").AccessList;
|
|
2448
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2449
|
+
chain?: import("viem").Chain | null;
|
|
2450
|
+
dataSuffix?: `0x${string}`;
|
|
2451
|
+
gas?: bigint;
|
|
2452
|
+
gasPrice?: bigint;
|
|
2453
|
+
maxFeePerGas?: bigint;
|
|
2454
|
+
maxPriorityFeePerGas?: bigint;
|
|
2455
|
+
nonce?: number;
|
|
2456
|
+
value?: bigint;
|
|
2457
|
+
}): Promise<void>;
|
|
2458
|
+
/**
|
|
2459
|
+
* Simulate setRewarder
|
|
2460
|
+
* Returns gas estimate and result without sending transaction
|
|
2461
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2462
|
+
*/
|
|
2463
|
+
setRewarder(_rewarder: `0x${string}`, options?: {
|
|
2464
|
+
accessList?: import("viem").AccessList;
|
|
2465
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2466
|
+
chain?: import("viem").Chain | null;
|
|
2467
|
+
dataSuffix?: `0x${string}`;
|
|
2468
|
+
gas?: bigint;
|
|
2469
|
+
gasPrice?: bigint;
|
|
2470
|
+
maxFeePerGas?: bigint;
|
|
2471
|
+
maxPriorityFeePerGas?: bigint;
|
|
2472
|
+
nonce?: number;
|
|
2473
|
+
value?: bigint;
|
|
2474
|
+
}): Promise<void>;
|
|
2475
|
+
/**
|
|
2476
|
+
* Simulate setSilo
|
|
2477
|
+
* Returns gas estimate and result without sending transaction
|
|
2478
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2479
|
+
*/
|
|
2480
|
+
setSilo(_silo: `0x${string}`, options?: {
|
|
2481
|
+
accessList?: import("viem").AccessList;
|
|
2482
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2483
|
+
chain?: import("viem").Chain | null;
|
|
2484
|
+
dataSuffix?: `0x${string}`;
|
|
2485
|
+
gas?: bigint;
|
|
2486
|
+
gasPrice?: bigint;
|
|
2487
|
+
maxFeePerGas?: bigint;
|
|
2488
|
+
maxPriorityFeePerGas?: bigint;
|
|
2489
|
+
nonce?: number;
|
|
2490
|
+
value?: bigint;
|
|
2491
|
+
}): Promise<void>;
|
|
2492
|
+
/**
|
|
2493
|
+
* Simulate setTaxRate
|
|
2494
|
+
* Returns gas estimate and result without sending transaction
|
|
2495
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2496
|
+
*/
|
|
2497
|
+
setTaxRate(newTaxRate: bigint, options?: {
|
|
2498
|
+
accessList?: import("viem").AccessList;
|
|
2499
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2500
|
+
chain?: import("viem").Chain | null;
|
|
2501
|
+
dataSuffix?: `0x${string}`;
|
|
2502
|
+
gas?: bigint;
|
|
2503
|
+
gasPrice?: bigint;
|
|
2504
|
+
maxFeePerGas?: bigint;
|
|
2505
|
+
maxPriorityFeePerGas?: bigint;
|
|
2506
|
+
nonce?: number;
|
|
2507
|
+
value?: bigint;
|
|
2508
|
+
}): Promise<void>;
|
|
2509
|
+
/**
|
|
2510
|
+
* Simulate setUpgradeDelay
|
|
2511
|
+
* Returns gas estimate and result without sending transaction
|
|
2512
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2513
|
+
*/
|
|
2514
|
+
setUpgradeDelay(newDelay: bigint, options?: {
|
|
2515
|
+
accessList?: import("viem").AccessList;
|
|
2516
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2517
|
+
chain?: import("viem").Chain | null;
|
|
2518
|
+
dataSuffix?: `0x${string}`;
|
|
2519
|
+
gas?: bigint;
|
|
2520
|
+
gasPrice?: bigint;
|
|
2521
|
+
maxFeePerGas?: bigint;
|
|
2522
|
+
maxPriorityFeePerGas?: bigint;
|
|
2523
|
+
nonce?: number;
|
|
2524
|
+
value?: bigint;
|
|
2525
|
+
}): Promise<void>;
|
|
2526
|
+
/**
|
|
2527
|
+
* Simulate toggleDeposits
|
|
2528
|
+
* Returns gas estimate and result without sending transaction
|
|
2529
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2530
|
+
*/
|
|
2531
|
+
toggleDeposits(options?: {
|
|
2532
|
+
accessList?: import("viem").AccessList;
|
|
2533
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2534
|
+
chain?: import("viem").Chain | null;
|
|
2535
|
+
dataSuffix?: `0x${string}`;
|
|
2536
|
+
gas?: bigint;
|
|
2537
|
+
gasPrice?: bigint;
|
|
2538
|
+
maxFeePerGas?: bigint;
|
|
2539
|
+
maxPriorityFeePerGas?: bigint;
|
|
2540
|
+
nonce?: number;
|
|
2541
|
+
value?: bigint;
|
|
2542
|
+
}): Promise<void>;
|
|
2543
|
+
/**
|
|
2544
|
+
* Simulate transfer
|
|
2545
|
+
* Returns gas estimate and result without sending transaction
|
|
2546
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2547
|
+
*/
|
|
2548
|
+
transfer(to: `0x${string}`, value: bigint, options?: {
|
|
2549
|
+
accessList?: import("viem").AccessList;
|
|
2550
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2551
|
+
chain?: import("viem").Chain | null;
|
|
2552
|
+
dataSuffix?: `0x${string}`;
|
|
2553
|
+
gas?: bigint;
|
|
2554
|
+
gasPrice?: bigint;
|
|
2555
|
+
maxFeePerGas?: bigint;
|
|
2556
|
+
maxPriorityFeePerGas?: bigint;
|
|
2557
|
+
nonce?: number;
|
|
2558
|
+
value?: bigint;
|
|
2559
|
+
}): Promise<boolean>;
|
|
2560
|
+
/**
|
|
2561
|
+
* Simulate transferFrom
|
|
2562
|
+
* Returns gas estimate and result without sending transaction
|
|
2563
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2564
|
+
*/
|
|
2565
|
+
transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
|
|
2566
|
+
accessList?: import("viem").AccessList;
|
|
2567
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2568
|
+
chain?: import("viem").Chain | null;
|
|
2569
|
+
dataSuffix?: `0x${string}`;
|
|
2570
|
+
gas?: bigint;
|
|
2571
|
+
gasPrice?: bigint;
|
|
2572
|
+
maxFeePerGas?: bigint;
|
|
2573
|
+
maxPriorityFeePerGas?: bigint;
|
|
2574
|
+
nonce?: number;
|
|
2575
|
+
value?: bigint;
|
|
2576
|
+
}): Promise<boolean>;
|
|
2577
|
+
/**
|
|
2578
|
+
* Simulate transferOwnership
|
|
2579
|
+
* Returns gas estimate and result without sending transaction
|
|
2580
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2581
|
+
*/
|
|
2582
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
2583
|
+
accessList?: import("viem").AccessList;
|
|
2584
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2585
|
+
chain?: import("viem").Chain | null;
|
|
2586
|
+
dataSuffix?: `0x${string}`;
|
|
2587
|
+
gas?: bigint;
|
|
2588
|
+
gasPrice?: bigint;
|
|
2589
|
+
maxFeePerGas?: bigint;
|
|
2590
|
+
maxPriorityFeePerGas?: bigint;
|
|
2591
|
+
nonce?: number;
|
|
2592
|
+
value?: bigint;
|
|
2593
|
+
}): Promise<void>;
|
|
2594
|
+
/**
|
|
2595
|
+
* Simulate unstake
|
|
2596
|
+
* Returns gas estimate and result without sending transaction
|
|
2597
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2598
|
+
*/
|
|
2599
|
+
unstake(receiver: `0x${string}`, options?: {
|
|
2600
|
+
accessList?: import("viem").AccessList;
|
|
2601
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2602
|
+
chain?: import("viem").Chain | null;
|
|
2603
|
+
dataSuffix?: `0x${string}`;
|
|
2604
|
+
gas?: bigint;
|
|
2605
|
+
gasPrice?: bigint;
|
|
2606
|
+
maxFeePerGas?: bigint;
|
|
2607
|
+
maxPriorityFeePerGas?: bigint;
|
|
2608
|
+
nonce?: number;
|
|
2609
|
+
value?: bigint;
|
|
2610
|
+
}): Promise<void>;
|
|
2611
|
+
/**
|
|
2612
|
+
* Simulate updateExistingCooldown
|
|
2613
|
+
* Returns gas estimate and result without sending transaction
|
|
2614
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2615
|
+
*/
|
|
2616
|
+
updateExistingCooldown(account: `0x${string}`, newCooldownEnd: bigint, options?: {
|
|
2617
|
+
accessList?: import("viem").AccessList;
|
|
2618
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2619
|
+
chain?: import("viem").Chain | null;
|
|
2620
|
+
dataSuffix?: `0x${string}`;
|
|
2621
|
+
gas?: bigint;
|
|
2622
|
+
gasPrice?: bigint;
|
|
2623
|
+
maxFeePerGas?: bigint;
|
|
2624
|
+
maxPriorityFeePerGas?: bigint;
|
|
2625
|
+
nonce?: number;
|
|
2626
|
+
value?: bigint;
|
|
2627
|
+
}): Promise<void>;
|
|
2628
|
+
/**
|
|
2629
|
+
* Simulate upgradeToAndCall
|
|
2630
|
+
* Returns gas estimate and result without sending transaction
|
|
2631
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2632
|
+
*/
|
|
2633
|
+
upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
|
|
2634
|
+
accessList?: import("viem").AccessList;
|
|
2635
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2636
|
+
chain?: import("viem").Chain | null;
|
|
2637
|
+
dataSuffix?: `0x${string}`;
|
|
2638
|
+
gas?: bigint;
|
|
2639
|
+
gasPrice?: bigint;
|
|
2640
|
+
maxFeePerGas?: bigint;
|
|
2641
|
+
maxPriorityFeePerGas?: bigint;
|
|
2642
|
+
nonce?: number;
|
|
2643
|
+
value?: bigint;
|
|
2644
|
+
}): Promise<void>;
|
|
2645
|
+
/**
|
|
2646
|
+
* Simulate withdraw
|
|
2647
|
+
* Returns gas estimate and result without sending transaction
|
|
2648
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2649
|
+
*/
|
|
2650
|
+
withdraw(assets: bigint, receiver: `0x${string}`, owner: `0x${string}`, options?: {
|
|
2651
|
+
accessList?: import("viem").AccessList;
|
|
2652
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2653
|
+
chain?: import("viem").Chain | null;
|
|
2654
|
+
dataSuffix?: `0x${string}`;
|
|
2655
|
+
gas?: bigint;
|
|
2656
|
+
gasPrice?: bigint;
|
|
2657
|
+
maxFeePerGas?: bigint;
|
|
2658
|
+
maxPriorityFeePerGas?: bigint;
|
|
2659
|
+
nonce?: number;
|
|
2660
|
+
value?: bigint;
|
|
2661
|
+
}): Promise<bigint>;
|
|
2662
|
+
};
|
|
2663
|
+
/**
|
|
2664
|
+
* Watch contract events
|
|
2665
|
+
*
|
|
2666
|
+
* @example
|
|
2667
|
+
* // Watch all Transfer events
|
|
2668
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
2669
|
+
* console.log('Transfer:', event);
|
|
2670
|
+
* });
|
|
2671
|
+
*
|
|
2672
|
+
* // Stop watching
|
|
2673
|
+
* unwatch();
|
|
2674
|
+
*/
|
|
2675
|
+
get watch(): {
|
|
2676
|
+
/**
|
|
2677
|
+
* Watch Approval events
|
|
2678
|
+
* @param callback Function to call when event is emitted
|
|
2679
|
+
* @param filter Optional filter for indexed parameters
|
|
2680
|
+
* @returns Unwatch function to stop listening
|
|
2681
|
+
*/
|
|
2682
|
+
Approval: (callback: (event: {
|
|
2683
|
+
owner: `0x${string}`;
|
|
2684
|
+
spender: `0x${string}`;
|
|
2685
|
+
value: bigint;
|
|
2686
|
+
}) => void, filter?: {
|
|
2687
|
+
owner?: `0x${string}` | `0x${string}`[] | null;
|
|
2688
|
+
spender?: `0x${string}` | `0x${string}`[] | null;
|
|
2689
|
+
}) => () => void;
|
|
2690
|
+
/**
|
|
2691
|
+
* Watch AssetBurned events
|
|
2692
|
+
* @param callback Function to call when event is emitted
|
|
2693
|
+
* @param filter Optional filter for indexed parameters
|
|
2694
|
+
* @returns Unwatch function to stop listening
|
|
2695
|
+
*/
|
|
2696
|
+
AssetBurned: (callback: (event: {
|
|
2697
|
+
arg0: bigint;
|
|
2698
|
+
}) => void) => () => void;
|
|
2699
|
+
/**
|
|
2700
|
+
* Watch CooldownDurationUpdated events
|
|
2701
|
+
* @param callback Function to call when event is emitted
|
|
2702
|
+
* @param filter Optional filter for indexed parameters
|
|
2703
|
+
* @returns Unwatch function to stop listening
|
|
2704
|
+
*/
|
|
2705
|
+
CooldownDurationUpdated: (callback: (event: {
|
|
2706
|
+
previousDuration: bigint;
|
|
2707
|
+
newDuration: bigint;
|
|
2708
|
+
}) => void) => () => void;
|
|
2709
|
+
/**
|
|
2710
|
+
* Watch CooldownEndtimeUpdated events
|
|
2711
|
+
* @param callback Function to call when event is emitted
|
|
2712
|
+
* @param filter Optional filter for indexed parameters
|
|
2713
|
+
* @returns Unwatch function to stop listening
|
|
2714
|
+
*/
|
|
2715
|
+
CooldownEndtimeUpdated: (callback: (event: {
|
|
2716
|
+
account: `0x${string}`;
|
|
2717
|
+
oldTime: bigint;
|
|
2718
|
+
newTime: bigint;
|
|
2719
|
+
}) => void) => () => void;
|
|
2720
|
+
/**
|
|
2721
|
+
* Watch CoverageRatioUpdated events
|
|
2722
|
+
* @param callback Function to call when event is emitted
|
|
2723
|
+
* @param filter Optional filter for indexed parameters
|
|
2724
|
+
* @returns Unwatch function to stop listening
|
|
2725
|
+
*/
|
|
2726
|
+
CoverageRatioUpdated: (callback: (event: {
|
|
2727
|
+
arg0: bigint;
|
|
2728
|
+
}) => void) => () => void;
|
|
2729
|
+
/**
|
|
2730
|
+
* Watch Deposit events
|
|
2731
|
+
* @param callback Function to call when event is emitted
|
|
2732
|
+
* @param filter Optional filter for indexed parameters
|
|
2733
|
+
* @returns Unwatch function to stop listening
|
|
2734
|
+
*/
|
|
2735
|
+
Deposit: (callback: (event: {
|
|
2736
|
+
sender: `0x${string}`;
|
|
2737
|
+
owner: `0x${string}`;
|
|
2738
|
+
assets: bigint;
|
|
2739
|
+
shares: bigint;
|
|
2740
|
+
}) => void, filter?: {
|
|
2741
|
+
sender?: `0x${string}` | `0x${string}`[] | null;
|
|
2742
|
+
owner?: `0x${string}` | `0x${string}`[] | null;
|
|
2743
|
+
}) => () => void;
|
|
2744
|
+
/**
|
|
2745
|
+
* Watch DepositsToggled events
|
|
2746
|
+
* @param callback Function to call when event is emitted
|
|
2747
|
+
* @param filter Optional filter for indexed parameters
|
|
2748
|
+
* @returns Unwatch function to stop listening
|
|
2749
|
+
*/
|
|
2750
|
+
DepositsToggled: (callback: (event: {
|
|
2751
|
+
arg0: boolean;
|
|
2752
|
+
}) => void) => () => void;
|
|
2753
|
+
/**
|
|
2754
|
+
* Watch FeeSiloUpdated events
|
|
2755
|
+
* @param callback Function to call when event is emitted
|
|
2756
|
+
* @param filter Optional filter for indexed parameters
|
|
2757
|
+
* @returns Unwatch function to stop listening
|
|
2758
|
+
*/
|
|
2759
|
+
FeeSiloUpdated: (callback: (event: {
|
|
2760
|
+
arg0: `0x${string}`;
|
|
2761
|
+
}) => void) => () => void;
|
|
2762
|
+
/**
|
|
2763
|
+
* Watch Initialized events
|
|
2764
|
+
* @param callback Function to call when event is emitted
|
|
2765
|
+
* @param filter Optional filter for indexed parameters
|
|
2766
|
+
* @returns Unwatch function to stop listening
|
|
2767
|
+
*/
|
|
2768
|
+
Initialized: (callback: (event: {
|
|
2769
|
+
version: bigint;
|
|
2770
|
+
}) => void) => () => void;
|
|
2771
|
+
/**
|
|
2772
|
+
* Watch LockedAmountRedistributed events
|
|
2773
|
+
* @param callback Function to call when event is emitted
|
|
2774
|
+
* @param filter Optional filter for indexed parameters
|
|
2775
|
+
* @returns Unwatch function to stop listening
|
|
2776
|
+
*/
|
|
2777
|
+
LockedAmountRedistributed: (callback: (event: {
|
|
2778
|
+
from: `0x${string}`;
|
|
2779
|
+
to: `0x${string}`;
|
|
2780
|
+
amount: bigint;
|
|
2781
|
+
}) => void, filter?: {
|
|
2782
|
+
from?: `0x${string}` | `0x${string}`[] | null;
|
|
2783
|
+
to?: `0x${string}` | `0x${string}`[] | null;
|
|
2784
|
+
}) => () => void;
|
|
2785
|
+
/**
|
|
2786
|
+
* Watch OwnershipTransferred events
|
|
2787
|
+
* @param callback Function to call when event is emitted
|
|
2788
|
+
* @param filter Optional filter for indexed parameters
|
|
2789
|
+
* @returns Unwatch function to stop listening
|
|
2790
|
+
*/
|
|
2791
|
+
OwnershipTransferred: (callback: (event: {
|
|
2792
|
+
previousOwner: `0x${string}`;
|
|
2793
|
+
newOwner: `0x${string}`;
|
|
2794
|
+
}) => void, filter?: {
|
|
2795
|
+
previousOwner?: `0x${string}` | `0x${string}`[] | null;
|
|
2796
|
+
newOwner?: `0x${string}` | `0x${string}`[] | null;
|
|
2797
|
+
}) => () => void;
|
|
2798
|
+
/**
|
|
2799
|
+
* Watch RewarderUpdated events
|
|
2800
|
+
* @param callback Function to call when event is emitted
|
|
2801
|
+
* @param filter Optional filter for indexed parameters
|
|
2802
|
+
* @returns Unwatch function to stop listening
|
|
2803
|
+
*/
|
|
2804
|
+
RewarderUpdated: (callback: (event: {
|
|
2805
|
+
arg0: `0x${string}`;
|
|
2806
|
+
}) => void) => () => void;
|
|
2807
|
+
/**
|
|
2808
|
+
* Watch RewardsReceived events
|
|
2809
|
+
* @param callback Function to call when event is emitted
|
|
2810
|
+
* @param filter Optional filter for indexed parameters
|
|
2811
|
+
* @returns Unwatch function to stop listening
|
|
2812
|
+
*/
|
|
2813
|
+
RewardsReceived: (callback: (event: {
|
|
2814
|
+
amount: bigint;
|
|
2815
|
+
}) => void, filter?: {
|
|
2816
|
+
amount?: bigint | bigint[] | null;
|
|
2817
|
+
}) => () => void;
|
|
2818
|
+
/**
|
|
2819
|
+
* Watch SiloUpdated events
|
|
2820
|
+
* @param callback Function to call when event is emitted
|
|
2821
|
+
* @param filter Optional filter for indexed parameters
|
|
2822
|
+
* @returns Unwatch function to stop listening
|
|
2823
|
+
*/
|
|
2824
|
+
SiloUpdated: (callback: (event: {
|
|
2825
|
+
previousSilo: `0x${string}`;
|
|
2826
|
+
newSilo: `0x${string}`;
|
|
2827
|
+
}) => void) => () => void;
|
|
2828
|
+
/**
|
|
2829
|
+
* Watch TaxRateUpdated events
|
|
2830
|
+
* @param callback Function to call when event is emitted
|
|
2831
|
+
* @param filter Optional filter for indexed parameters
|
|
2832
|
+
* @returns Unwatch function to stop listening
|
|
2833
|
+
*/
|
|
2834
|
+
TaxRateUpdated: (callback: (event: {
|
|
2835
|
+
arg0: bigint;
|
|
2836
|
+
}) => void) => () => void;
|
|
2837
|
+
/**
|
|
2838
|
+
* Watch Transfer events
|
|
2839
|
+
* @param callback Function to call when event is emitted
|
|
2840
|
+
* @param filter Optional filter for indexed parameters
|
|
2841
|
+
* @returns Unwatch function to stop listening
|
|
2842
|
+
*/
|
|
2843
|
+
Transfer: (callback: (event: {
|
|
2844
|
+
from: `0x${string}`;
|
|
2845
|
+
to: `0x${string}`;
|
|
2846
|
+
value: bigint;
|
|
2847
|
+
}) => void, filter?: {
|
|
2848
|
+
from?: `0x${string}` | `0x${string}`[] | null;
|
|
2849
|
+
to?: `0x${string}` | `0x${string}`[] | null;
|
|
2850
|
+
}) => () => void;
|
|
2851
|
+
/**
|
|
2852
|
+
* Watch Unstake events
|
|
2853
|
+
* @param callback Function to call when event is emitted
|
|
2854
|
+
* @param filter Optional filter for indexed parameters
|
|
2855
|
+
* @returns Unwatch function to stop listening
|
|
2856
|
+
*/
|
|
2857
|
+
Unstake: (callback: (event: {
|
|
2858
|
+
caller: `0x${string}`;
|
|
2859
|
+
receiver: `0x${string}`;
|
|
2860
|
+
assets: bigint;
|
|
2861
|
+
amountForRedeemer: bigint;
|
|
2862
|
+
}) => void) => () => void;
|
|
2863
|
+
/**
|
|
2864
|
+
* Watch UpgradeCanceled events
|
|
2865
|
+
* @param callback Function to call when event is emitted
|
|
2866
|
+
* @param filter Optional filter for indexed parameters
|
|
2867
|
+
* @returns Unwatch function to stop listening
|
|
2868
|
+
*/
|
|
2869
|
+
UpgradeCanceled: (callback: (event: {
|
|
2870
|
+
canceledImplementation: `0x${string}`;
|
|
2871
|
+
}) => void, filter?: {
|
|
2872
|
+
canceledImplementation?: `0x${string}` | `0x${string}`[] | null;
|
|
2873
|
+
}) => () => void;
|
|
2874
|
+
/**
|
|
2875
|
+
* Watch UpgradeDelayUpdated events
|
|
2876
|
+
* @param callback Function to call when event is emitted
|
|
2877
|
+
* @param filter Optional filter for indexed parameters
|
|
2878
|
+
* @returns Unwatch function to stop listening
|
|
2879
|
+
*/
|
|
2880
|
+
UpgradeDelayUpdated: (callback: (event: {
|
|
2881
|
+
oldDelay: bigint;
|
|
2882
|
+
newDelay: bigint;
|
|
2883
|
+
}) => void) => () => void;
|
|
2884
|
+
/**
|
|
2885
|
+
* Watch UpgradeScheduled events
|
|
2886
|
+
* @param callback Function to call when event is emitted
|
|
2887
|
+
* @param filter Optional filter for indexed parameters
|
|
2888
|
+
* @returns Unwatch function to stop listening
|
|
2889
|
+
*/
|
|
2890
|
+
UpgradeScheduled: (callback: (event: {
|
|
2891
|
+
newImplementation: `0x${string}`;
|
|
2892
|
+
availableAt: bigint;
|
|
2893
|
+
}) => void, filter?: {
|
|
2894
|
+
newImplementation?: `0x${string}` | `0x${string}`[] | null;
|
|
2895
|
+
}) => () => void;
|
|
2896
|
+
/**
|
|
2897
|
+
* Watch Upgraded events
|
|
2898
|
+
* @param callback Function to call when event is emitted
|
|
2899
|
+
* @param filter Optional filter for indexed parameters
|
|
2900
|
+
* @returns Unwatch function to stop listening
|
|
2901
|
+
*/
|
|
2902
|
+
Upgraded: (callback: (event: {
|
|
2903
|
+
implementation: `0x${string}`;
|
|
2904
|
+
}) => void, filter?: {
|
|
2905
|
+
implementation?: `0x${string}` | `0x${string}`[] | null;
|
|
2906
|
+
}) => () => void;
|
|
2907
|
+
/**
|
|
2908
|
+
* Watch Withdraw events
|
|
2909
|
+
* @param callback Function to call when event is emitted
|
|
2910
|
+
* @param filter Optional filter for indexed parameters
|
|
2911
|
+
* @returns Unwatch function to stop listening
|
|
2912
|
+
*/
|
|
2913
|
+
Withdraw: (callback: (event: {
|
|
2914
|
+
sender: `0x${string}`;
|
|
2915
|
+
receiver: `0x${string}`;
|
|
2916
|
+
owner: `0x${string}`;
|
|
2917
|
+
assets: bigint;
|
|
2918
|
+
shares: bigint;
|
|
2919
|
+
}) => void, filter?: {
|
|
2920
|
+
sender?: `0x${string}` | `0x${string}`[] | null;
|
|
2921
|
+
receiver?: `0x${string}` | `0x${string}`[] | null;
|
|
2922
|
+
owner?: `0x${string}` | `0x${string}`[] | null;
|
|
2923
|
+
}) => () => void;
|
|
2924
|
+
/**
|
|
2925
|
+
* Watch msUSDSiloUpdated events
|
|
2926
|
+
* @param callback Function to call when event is emitted
|
|
2927
|
+
* @param filter Optional filter for indexed parameters
|
|
2928
|
+
* @returns Unwatch function to stop listening
|
|
2929
|
+
*/
|
|
2930
|
+
msUSDSiloUpdated: (callback: (event: {
|
|
2931
|
+
arg0: `0x${string}`;
|
|
2932
|
+
}) => void) => () => void;
|
|
2933
|
+
};
|
|
2934
|
+
}
|