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