@paraswap/dex-lib 3.8.31 → 3.8.32

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.
@@ -0,0 +1,1131 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ { "internalType": "string", "name": "name", "type": "string" },
5
+ {
6
+ "internalType": "contract IERC20",
7
+ "name": "stakedToken",
8
+ "type": "address"
9
+ },
10
+ {
11
+ "internalType": "contract IERC20",
12
+ "name": "rewardToken",
13
+ "type": "address"
14
+ },
15
+ { "internalType": "uint256", "name": "unstakeWindow", "type": "uint256" },
16
+ { "internalType": "address", "name": "rewardsVault", "type": "address" },
17
+ {
18
+ "internalType": "address",
19
+ "name": "emissionManager",
20
+ "type": "address"
21
+ }
22
+ ],
23
+ "stateMutability": "nonpayable",
24
+ "type": "constructor"
25
+ },
26
+ {
27
+ "inputs": [
28
+ { "internalType": "address", "name": "target", "type": "address" }
29
+ ],
30
+ "name": "AddressEmptyCode",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ { "internalType": "address", "name": "account", "type": "address" }
36
+ ],
37
+ "name": "AddressInsufficientBalance",
38
+ "type": "error"
39
+ },
40
+ { "inputs": [], "name": "ECDSAInvalidSignature", "type": "error" },
41
+ {
42
+ "inputs": [
43
+ { "internalType": "uint256", "name": "length", "type": "uint256" }
44
+ ],
45
+ "name": "ECDSAInvalidSignatureLength",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [{ "internalType": "bytes32", "name": "s", "type": "bytes32" }],
50
+ "name": "ECDSAInvalidSignatureS",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [
55
+ { "internalType": "address", "name": "spender", "type": "address" },
56
+ { "internalType": "uint256", "name": "allowance", "type": "uint256" },
57
+ { "internalType": "uint256", "name": "needed", "type": "uint256" }
58
+ ],
59
+ "name": "ERC20InsufficientAllowance",
60
+ "type": "error"
61
+ },
62
+ {
63
+ "inputs": [
64
+ { "internalType": "address", "name": "sender", "type": "address" },
65
+ { "internalType": "uint256", "name": "balance", "type": "uint256" },
66
+ { "internalType": "uint256", "name": "needed", "type": "uint256" }
67
+ ],
68
+ "name": "ERC20InsufficientBalance",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [
73
+ { "internalType": "address", "name": "approver", "type": "address" }
74
+ ],
75
+ "name": "ERC20InvalidApprover",
76
+ "type": "error"
77
+ },
78
+ {
79
+ "inputs": [
80
+ { "internalType": "address", "name": "receiver", "type": "address" }
81
+ ],
82
+ "name": "ERC20InvalidReceiver",
83
+ "type": "error"
84
+ },
85
+ {
86
+ "inputs": [
87
+ { "internalType": "address", "name": "sender", "type": "address" }
88
+ ],
89
+ "name": "ERC20InvalidSender",
90
+ "type": "error"
91
+ },
92
+ {
93
+ "inputs": [
94
+ { "internalType": "address", "name": "spender", "type": "address" }
95
+ ],
96
+ "name": "ERC20InvalidSpender",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [
101
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
102
+ ],
103
+ "name": "ERC2612ExpiredSignature",
104
+ "type": "error"
105
+ },
106
+ {
107
+ "inputs": [
108
+ { "internalType": "address", "name": "signer", "type": "address" },
109
+ { "internalType": "address", "name": "owner", "type": "address" }
110
+ ],
111
+ "name": "ERC2612InvalidSigner",
112
+ "type": "error"
113
+ },
114
+ { "inputs": [], "name": "FailedInnerCall", "type": "error" },
115
+ {
116
+ "inputs": [
117
+ { "internalType": "address", "name": "account", "type": "address" },
118
+ { "internalType": "uint256", "name": "currentNonce", "type": "uint256" }
119
+ ],
120
+ "name": "InvalidAccountNonce",
121
+ "type": "error"
122
+ },
123
+ { "inputs": [], "name": "InvalidInitialization", "type": "error" },
124
+ { "inputs": [], "name": "InvalidShortString", "type": "error" },
125
+ { "inputs": [], "name": "NotInitializing", "type": "error" },
126
+ {
127
+ "inputs": [
128
+ { "internalType": "uint8", "name": "bits", "type": "uint8" },
129
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
130
+ ],
131
+ "name": "SafeCastOverflowedUintDowncast",
132
+ "type": "error"
133
+ },
134
+ {
135
+ "inputs": [
136
+ { "internalType": "address", "name": "token", "type": "address" }
137
+ ],
138
+ "name": "SafeERC20FailedOperation",
139
+ "type": "error"
140
+ },
141
+ {
142
+ "inputs": [{ "internalType": "string", "name": "str", "type": "string" }],
143
+ "name": "StringTooLong",
144
+ "type": "error"
145
+ },
146
+ {
147
+ "anonymous": false,
148
+ "inputs": [
149
+ {
150
+ "indexed": true,
151
+ "internalType": "address",
152
+ "name": "owner",
153
+ "type": "address"
154
+ },
155
+ {
156
+ "indexed": true,
157
+ "internalType": "address",
158
+ "name": "spender",
159
+ "type": "address"
160
+ },
161
+ {
162
+ "indexed": false,
163
+ "internalType": "uint256",
164
+ "name": "value",
165
+ "type": "uint256"
166
+ }
167
+ ],
168
+ "name": "Approval",
169
+ "type": "event"
170
+ },
171
+ {
172
+ "anonymous": false,
173
+ "inputs": [
174
+ {
175
+ "indexed": true,
176
+ "internalType": "address",
177
+ "name": "asset",
178
+ "type": "address"
179
+ },
180
+ {
181
+ "indexed": false,
182
+ "internalType": "uint256",
183
+ "name": "emission",
184
+ "type": "uint256"
185
+ }
186
+ ],
187
+ "name": "AssetConfigUpdated",
188
+ "type": "event"
189
+ },
190
+ {
191
+ "anonymous": false,
192
+ "inputs": [
193
+ {
194
+ "indexed": true,
195
+ "internalType": "address",
196
+ "name": "asset",
197
+ "type": "address"
198
+ },
199
+ {
200
+ "indexed": false,
201
+ "internalType": "uint256",
202
+ "name": "index",
203
+ "type": "uint256"
204
+ }
205
+ ],
206
+ "name": "AssetIndexUpdated",
207
+ "type": "event"
208
+ },
209
+ {
210
+ "anonymous": false,
211
+ "inputs": [
212
+ {
213
+ "indexed": true,
214
+ "internalType": "address",
215
+ "name": "user",
216
+ "type": "address"
217
+ },
218
+ {
219
+ "indexed": false,
220
+ "internalType": "uint256",
221
+ "name": "amount",
222
+ "type": "uint256"
223
+ }
224
+ ],
225
+ "name": "Cooldown",
226
+ "type": "event"
227
+ },
228
+ {
229
+ "anonymous": false,
230
+ "inputs": [
231
+ {
232
+ "indexed": false,
233
+ "internalType": "uint256",
234
+ "name": "cooldownSeconds",
235
+ "type": "uint256"
236
+ }
237
+ ],
238
+ "name": "CooldownSecondsChanged",
239
+ "type": "event"
240
+ },
241
+ {
242
+ "anonymous": false,
243
+ "inputs": [
244
+ {
245
+ "indexed": false,
246
+ "internalType": "uint256",
247
+ "name": "endTimestamp",
248
+ "type": "uint256"
249
+ }
250
+ ],
251
+ "name": "DistributionEndChanged",
252
+ "type": "event"
253
+ },
254
+ {
255
+ "anonymous": false,
256
+ "inputs": [],
257
+ "name": "EIP712DomainChanged",
258
+ "type": "event"
259
+ },
260
+ {
261
+ "anonymous": false,
262
+ "inputs": [
263
+ {
264
+ "indexed": false,
265
+ "internalType": "uint216",
266
+ "name": "exchangeRate",
267
+ "type": "uint216"
268
+ }
269
+ ],
270
+ "name": "ExchangeRateChanged",
271
+ "type": "event"
272
+ },
273
+ {
274
+ "anonymous": false,
275
+ "inputs": [
276
+ {
277
+ "indexed": false,
278
+ "internalType": "uint256",
279
+ "name": "amount",
280
+ "type": "uint256"
281
+ }
282
+ ],
283
+ "name": "FundsReturned",
284
+ "type": "event"
285
+ },
286
+ {
287
+ "anonymous": false,
288
+ "inputs": [
289
+ {
290
+ "indexed": false,
291
+ "internalType": "uint64",
292
+ "name": "version",
293
+ "type": "uint64"
294
+ }
295
+ ],
296
+ "name": "Initialized",
297
+ "type": "event"
298
+ },
299
+ {
300
+ "anonymous": false,
301
+ "inputs": [
302
+ {
303
+ "indexed": false,
304
+ "internalType": "uint256",
305
+ "name": "newPercentage",
306
+ "type": "uint256"
307
+ }
308
+ ],
309
+ "name": "MaxSlashablePercentageChanged",
310
+ "type": "event"
311
+ },
312
+ {
313
+ "anonymous": false,
314
+ "inputs": [
315
+ {
316
+ "indexed": true,
317
+ "internalType": "address",
318
+ "name": "newPendingAdmin",
319
+ "type": "address"
320
+ },
321
+ {
322
+ "indexed": false,
323
+ "internalType": "uint256",
324
+ "name": "role",
325
+ "type": "uint256"
326
+ }
327
+ ],
328
+ "name": "PendingAdminChanged",
329
+ "type": "event"
330
+ },
331
+ {
332
+ "anonymous": false,
333
+ "inputs": [
334
+ {
335
+ "indexed": true,
336
+ "internalType": "address",
337
+ "name": "from",
338
+ "type": "address"
339
+ },
340
+ {
341
+ "indexed": true,
342
+ "internalType": "address",
343
+ "name": "to",
344
+ "type": "address"
345
+ },
346
+ {
347
+ "indexed": false,
348
+ "internalType": "uint256",
349
+ "name": "assets",
350
+ "type": "uint256"
351
+ },
352
+ {
353
+ "indexed": false,
354
+ "internalType": "uint256",
355
+ "name": "shares",
356
+ "type": "uint256"
357
+ }
358
+ ],
359
+ "name": "Redeem",
360
+ "type": "event"
361
+ },
362
+ {
363
+ "anonymous": false,
364
+ "inputs": [
365
+ {
366
+ "indexed": false,
367
+ "internalType": "address",
368
+ "name": "user",
369
+ "type": "address"
370
+ },
371
+ {
372
+ "indexed": false,
373
+ "internalType": "uint256",
374
+ "name": "amount",
375
+ "type": "uint256"
376
+ }
377
+ ],
378
+ "name": "RewardsAccrued",
379
+ "type": "event"
380
+ },
381
+ {
382
+ "anonymous": false,
383
+ "inputs": [
384
+ {
385
+ "indexed": true,
386
+ "internalType": "address",
387
+ "name": "from",
388
+ "type": "address"
389
+ },
390
+ {
391
+ "indexed": true,
392
+ "internalType": "address",
393
+ "name": "to",
394
+ "type": "address"
395
+ },
396
+ {
397
+ "indexed": false,
398
+ "internalType": "uint256",
399
+ "name": "amount",
400
+ "type": "uint256"
401
+ }
402
+ ],
403
+ "name": "RewardsClaimed",
404
+ "type": "event"
405
+ },
406
+ {
407
+ "anonymous": false,
408
+ "inputs": [
409
+ {
410
+ "indexed": true,
411
+ "internalType": "address",
412
+ "name": "newAdmin",
413
+ "type": "address"
414
+ },
415
+ {
416
+ "indexed": false,
417
+ "internalType": "uint256",
418
+ "name": "role",
419
+ "type": "uint256"
420
+ }
421
+ ],
422
+ "name": "RoleClaimed",
423
+ "type": "event"
424
+ },
425
+ {
426
+ "anonymous": false,
427
+ "inputs": [
428
+ {
429
+ "indexed": true,
430
+ "internalType": "address",
431
+ "name": "destination",
432
+ "type": "address"
433
+ },
434
+ {
435
+ "indexed": false,
436
+ "internalType": "uint256",
437
+ "name": "amount",
438
+ "type": "uint256"
439
+ }
440
+ ],
441
+ "name": "Slashed",
442
+ "type": "event"
443
+ },
444
+ {
445
+ "anonymous": false,
446
+ "inputs": [
447
+ {
448
+ "indexed": false,
449
+ "internalType": "uint256",
450
+ "name": "windowSeconds",
451
+ "type": "uint256"
452
+ }
453
+ ],
454
+ "name": "SlashingExitWindowDurationChanged",
455
+ "type": "event"
456
+ },
457
+ {
458
+ "anonymous": false,
459
+ "inputs": [],
460
+ "name": "SlashingSettled",
461
+ "type": "event"
462
+ },
463
+ {
464
+ "anonymous": false,
465
+ "inputs": [
466
+ {
467
+ "indexed": true,
468
+ "internalType": "address",
469
+ "name": "from",
470
+ "type": "address"
471
+ },
472
+ {
473
+ "indexed": true,
474
+ "internalType": "address",
475
+ "name": "to",
476
+ "type": "address"
477
+ },
478
+ {
479
+ "indexed": false,
480
+ "internalType": "uint256",
481
+ "name": "assets",
482
+ "type": "uint256"
483
+ },
484
+ {
485
+ "indexed": false,
486
+ "internalType": "uint256",
487
+ "name": "shares",
488
+ "type": "uint256"
489
+ }
490
+ ],
491
+ "name": "Staked",
492
+ "type": "event"
493
+ },
494
+ {
495
+ "anonymous": false,
496
+ "inputs": [
497
+ {
498
+ "indexed": true,
499
+ "internalType": "address",
500
+ "name": "from",
501
+ "type": "address"
502
+ },
503
+ {
504
+ "indexed": true,
505
+ "internalType": "address",
506
+ "name": "to",
507
+ "type": "address"
508
+ },
509
+ {
510
+ "indexed": false,
511
+ "internalType": "uint256",
512
+ "name": "value",
513
+ "type": "uint256"
514
+ }
515
+ ],
516
+ "name": "Transfer",
517
+ "type": "event"
518
+ },
519
+ {
520
+ "anonymous": false,
521
+ "inputs": [
522
+ {
523
+ "indexed": true,
524
+ "internalType": "address",
525
+ "name": "user",
526
+ "type": "address"
527
+ },
528
+ {
529
+ "indexed": true,
530
+ "internalType": "address",
531
+ "name": "asset",
532
+ "type": "address"
533
+ },
534
+ {
535
+ "indexed": false,
536
+ "internalType": "uint256",
537
+ "name": "index",
538
+ "type": "uint256"
539
+ }
540
+ ],
541
+ "name": "UserIndexUpdated",
542
+ "type": "event"
543
+ },
544
+ {
545
+ "inputs": [],
546
+ "name": "CLAIM_HELPER_ROLE",
547
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
548
+ "stateMutability": "view",
549
+ "type": "function"
550
+ },
551
+ {
552
+ "inputs": [],
553
+ "name": "COOLDOWN_ADMIN_ROLE",
554
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
555
+ "stateMutability": "view",
556
+ "type": "function"
557
+ },
558
+ {
559
+ "inputs": [],
560
+ "name": "DOMAIN_SEPARATOR",
561
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
562
+ "stateMutability": "view",
563
+ "type": "function"
564
+ },
565
+ {
566
+ "inputs": [],
567
+ "name": "EMISSION_MANAGER",
568
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
569
+ "stateMutability": "view",
570
+ "type": "function"
571
+ },
572
+ {
573
+ "inputs": [],
574
+ "name": "EXCHANGE_RATE_UNIT",
575
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
576
+ "stateMutability": "view",
577
+ "type": "function"
578
+ },
579
+ {
580
+ "inputs": [],
581
+ "name": "INITIAL_EXCHANGE_RATE",
582
+ "outputs": [{ "internalType": "uint216", "name": "", "type": "uint216" }],
583
+ "stateMutability": "view",
584
+ "type": "function"
585
+ },
586
+ {
587
+ "inputs": [],
588
+ "name": "LOWER_BOUND",
589
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
590
+ "stateMutability": "view",
591
+ "type": "function"
592
+ },
593
+ {
594
+ "inputs": [],
595
+ "name": "PRECISION",
596
+ "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
597
+ "stateMutability": "view",
598
+ "type": "function"
599
+ },
600
+ {
601
+ "inputs": [],
602
+ "name": "REWARDS_VAULT",
603
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
604
+ "stateMutability": "view",
605
+ "type": "function"
606
+ },
607
+ {
608
+ "inputs": [],
609
+ "name": "REWARD_TOKEN",
610
+ "outputs": [
611
+ { "internalType": "contract IERC20", "name": "", "type": "address" }
612
+ ],
613
+ "stateMutability": "view",
614
+ "type": "function"
615
+ },
616
+ {
617
+ "inputs": [],
618
+ "name": "SLASH_ADMIN_ROLE",
619
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
620
+ "stateMutability": "view",
621
+ "type": "function"
622
+ },
623
+ {
624
+ "inputs": [],
625
+ "name": "STAKED_TOKEN",
626
+ "outputs": [
627
+ { "internalType": "contract IERC20", "name": "", "type": "address" }
628
+ ],
629
+ "stateMutability": "view",
630
+ "type": "function"
631
+ },
632
+ {
633
+ "inputs": [],
634
+ "name": "UNSTAKE_WINDOW",
635
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
636
+ "stateMutability": "view",
637
+ "type": "function"
638
+ },
639
+ {
640
+ "inputs": [
641
+ { "internalType": "address", "name": "owner", "type": "address" },
642
+ { "internalType": "address", "name": "spender", "type": "address" }
643
+ ],
644
+ "name": "allowance",
645
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
646
+ "stateMutability": "view",
647
+ "type": "function"
648
+ },
649
+ {
650
+ "inputs": [
651
+ { "internalType": "address", "name": "spender", "type": "address" },
652
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
653
+ ],
654
+ "name": "approve",
655
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
656
+ "stateMutability": "nonpayable",
657
+ "type": "function"
658
+ },
659
+ {
660
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
661
+ "name": "assets",
662
+ "outputs": [
663
+ {
664
+ "internalType": "uint128",
665
+ "name": "emissionPerSecond",
666
+ "type": "uint128"
667
+ },
668
+ {
669
+ "internalType": "uint128",
670
+ "name": "lastUpdateTimestamp",
671
+ "type": "uint128"
672
+ },
673
+ { "internalType": "uint256", "name": "index", "type": "uint256" }
674
+ ],
675
+ "stateMutability": "view",
676
+ "type": "function"
677
+ },
678
+ {
679
+ "inputs": [
680
+ { "internalType": "address", "name": "account", "type": "address" }
681
+ ],
682
+ "name": "balanceOf",
683
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
684
+ "stateMutability": "view",
685
+ "type": "function"
686
+ },
687
+ {
688
+ "inputs": [
689
+ { "internalType": "address", "name": "to", "type": "address" },
690
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
691
+ ],
692
+ "name": "claimRewards",
693
+ "outputs": [],
694
+ "stateMutability": "nonpayable",
695
+ "type": "function"
696
+ },
697
+ {
698
+ "inputs": [
699
+ { "internalType": "address", "name": "to", "type": "address" },
700
+ { "internalType": "uint256", "name": "claimAmount", "type": "uint256" },
701
+ { "internalType": "uint256", "name": "redeemAmount", "type": "uint256" }
702
+ ],
703
+ "name": "claimRewardsAndRedeem",
704
+ "outputs": [],
705
+ "stateMutability": "nonpayable",
706
+ "type": "function"
707
+ },
708
+ {
709
+ "inputs": [
710
+ { "internalType": "address", "name": "from", "type": "address" },
711
+ { "internalType": "address", "name": "to", "type": "address" },
712
+ { "internalType": "uint256", "name": "claimAmount", "type": "uint256" },
713
+ { "internalType": "uint256", "name": "redeemAmount", "type": "uint256" }
714
+ ],
715
+ "name": "claimRewardsAndRedeemOnBehalf",
716
+ "outputs": [],
717
+ "stateMutability": "nonpayable",
718
+ "type": "function"
719
+ },
720
+ {
721
+ "inputs": [
722
+ { "internalType": "address", "name": "from", "type": "address" },
723
+ { "internalType": "address", "name": "to", "type": "address" },
724
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
725
+ ],
726
+ "name": "claimRewardsOnBehalf",
727
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
728
+ "stateMutability": "nonpayable",
729
+ "type": "function"
730
+ },
731
+ {
732
+ "inputs": [
733
+ { "internalType": "uint256", "name": "role", "type": "uint256" }
734
+ ],
735
+ "name": "claimRoleAdmin",
736
+ "outputs": [],
737
+ "stateMutability": "nonpayable",
738
+ "type": "function"
739
+ },
740
+ {
741
+ "inputs": [
742
+ {
743
+ "components": [
744
+ {
745
+ "internalType": "uint128",
746
+ "name": "emissionPerSecond",
747
+ "type": "uint128"
748
+ },
749
+ {
750
+ "internalType": "uint256",
751
+ "name": "totalStaked",
752
+ "type": "uint256"
753
+ },
754
+ {
755
+ "internalType": "address",
756
+ "name": "underlyingAsset",
757
+ "type": "address"
758
+ }
759
+ ],
760
+ "internalType": "struct DistributionTypes.AssetConfigInput[]",
761
+ "name": "assetsConfigInput",
762
+ "type": "tuple[]"
763
+ }
764
+ ],
765
+ "name": "configureAssets",
766
+ "outputs": [],
767
+ "stateMutability": "nonpayable",
768
+ "type": "function"
769
+ },
770
+ {
771
+ "inputs": [],
772
+ "name": "cooldown",
773
+ "outputs": [],
774
+ "stateMutability": "nonpayable",
775
+ "type": "function"
776
+ },
777
+ {
778
+ "inputs": [
779
+ { "internalType": "address", "name": "from", "type": "address" }
780
+ ],
781
+ "name": "cooldownOnBehalfOf",
782
+ "outputs": [],
783
+ "stateMutability": "nonpayable",
784
+ "type": "function"
785
+ },
786
+ {
787
+ "inputs": [],
788
+ "name": "decimals",
789
+ "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
790
+ "stateMutability": "view",
791
+ "type": "function"
792
+ },
793
+ {
794
+ "inputs": [],
795
+ "name": "distributionEnd",
796
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
797
+ "stateMutability": "view",
798
+ "type": "function"
799
+ },
800
+ {
801
+ "inputs": [],
802
+ "name": "eip712Domain",
803
+ "outputs": [
804
+ { "internalType": "bytes1", "name": "fields", "type": "bytes1" },
805
+ { "internalType": "string", "name": "name", "type": "string" },
806
+ { "internalType": "string", "name": "version", "type": "string" },
807
+ { "internalType": "uint256", "name": "chainId", "type": "uint256" },
808
+ {
809
+ "internalType": "address",
810
+ "name": "verifyingContract",
811
+ "type": "address"
812
+ },
813
+ { "internalType": "bytes32", "name": "salt", "type": "bytes32" },
814
+ { "internalType": "uint256[]", "name": "extensions", "type": "uint256[]" }
815
+ ],
816
+ "stateMutability": "view",
817
+ "type": "function"
818
+ },
819
+ {
820
+ "inputs": [
821
+ { "internalType": "uint256", "name": "role", "type": "uint256" }
822
+ ],
823
+ "name": "getAdmin",
824
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
825
+ "stateMutability": "view",
826
+ "type": "function"
827
+ },
828
+ {
829
+ "inputs": [],
830
+ "name": "getCooldownSeconds",
831
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
832
+ "stateMutability": "view",
833
+ "type": "function"
834
+ },
835
+ {
836
+ "inputs": [],
837
+ "name": "getExchangeRate",
838
+ "outputs": [{ "internalType": "uint216", "name": "", "type": "uint216" }],
839
+ "stateMutability": "view",
840
+ "type": "function"
841
+ },
842
+ {
843
+ "inputs": [],
844
+ "name": "getMaxSlashablePercentage",
845
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
846
+ "stateMutability": "view",
847
+ "type": "function"
848
+ },
849
+ {
850
+ "inputs": [
851
+ { "internalType": "uint256", "name": "role", "type": "uint256" }
852
+ ],
853
+ "name": "getPendingAdmin",
854
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
855
+ "stateMutability": "view",
856
+ "type": "function"
857
+ },
858
+ {
859
+ "inputs": [
860
+ { "internalType": "address", "name": "staker", "type": "address" }
861
+ ],
862
+ "name": "getTotalRewardsBalance",
863
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
864
+ "stateMutability": "view",
865
+ "type": "function"
866
+ },
867
+ {
868
+ "inputs": [
869
+ { "internalType": "address", "name": "user", "type": "address" },
870
+ { "internalType": "address", "name": "asset", "type": "address" }
871
+ ],
872
+ "name": "getUserAssetData",
873
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
874
+ "stateMutability": "view",
875
+ "type": "function"
876
+ },
877
+ {
878
+ "inputs": [],
879
+ "name": "inPostSlashingPeriod",
880
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
881
+ "stateMutability": "view",
882
+ "type": "function"
883
+ },
884
+ {
885
+ "inputs": [
886
+ { "internalType": "string", "name": "name", "type": "string" },
887
+ { "internalType": "string", "name": "symbol", "type": "string" },
888
+ { "internalType": "address", "name": "slashingAdmin", "type": "address" },
889
+ {
890
+ "internalType": "address",
891
+ "name": "cooldownPauseAdmin",
892
+ "type": "address"
893
+ },
894
+ { "internalType": "address", "name": "claimHelper", "type": "address" },
895
+ {
896
+ "internalType": "uint256",
897
+ "name": "maxSlashablePercentage",
898
+ "type": "uint256"
899
+ },
900
+ {
901
+ "internalType": "uint256",
902
+ "name": "cooldownSeconds",
903
+ "type": "uint256"
904
+ }
905
+ ],
906
+ "name": "initialize",
907
+ "outputs": [],
908
+ "stateMutability": "nonpayable",
909
+ "type": "function"
910
+ },
911
+ {
912
+ "inputs": [],
913
+ "name": "name",
914
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
915
+ "stateMutability": "view",
916
+ "type": "function"
917
+ },
918
+ {
919
+ "inputs": [
920
+ { "internalType": "address", "name": "owner", "type": "address" }
921
+ ],
922
+ "name": "nonces",
923
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
924
+ "stateMutability": "view",
925
+ "type": "function"
926
+ },
927
+ {
928
+ "inputs": [
929
+ { "internalType": "address", "name": "owner", "type": "address" },
930
+ { "internalType": "address", "name": "spender", "type": "address" },
931
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
932
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
933
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
934
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
935
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
936
+ ],
937
+ "name": "permit",
938
+ "outputs": [],
939
+ "stateMutability": "nonpayable",
940
+ "type": "function"
941
+ },
942
+ {
943
+ "inputs": [
944
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
945
+ ],
946
+ "name": "previewRedeem",
947
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
948
+ "stateMutability": "view",
949
+ "type": "function"
950
+ },
951
+ {
952
+ "inputs": [
953
+ { "internalType": "uint256", "name": "assets", "type": "uint256" }
954
+ ],
955
+ "name": "previewStake",
956
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
957
+ "stateMutability": "view",
958
+ "type": "function"
959
+ },
960
+ {
961
+ "inputs": [
962
+ { "internalType": "address", "name": "to", "type": "address" },
963
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
964
+ ],
965
+ "name": "redeem",
966
+ "outputs": [],
967
+ "stateMutability": "nonpayable",
968
+ "type": "function"
969
+ },
970
+ {
971
+ "inputs": [
972
+ { "internalType": "address", "name": "from", "type": "address" },
973
+ { "internalType": "address", "name": "to", "type": "address" },
974
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
975
+ ],
976
+ "name": "redeemOnBehalf",
977
+ "outputs": [],
978
+ "stateMutability": "nonpayable",
979
+ "type": "function"
980
+ },
981
+ {
982
+ "inputs": [
983
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
984
+ ],
985
+ "name": "returnFunds",
986
+ "outputs": [],
987
+ "stateMutability": "nonpayable",
988
+ "type": "function"
989
+ },
990
+ {
991
+ "inputs": [
992
+ {
993
+ "internalType": "uint256",
994
+ "name": "cooldownSeconds",
995
+ "type": "uint256"
996
+ }
997
+ ],
998
+ "name": "setCooldownSeconds",
999
+ "outputs": [],
1000
+ "stateMutability": "nonpayable",
1001
+ "type": "function"
1002
+ },
1003
+ {
1004
+ "inputs": [
1005
+ {
1006
+ "internalType": "uint256",
1007
+ "name": "newDistributionEnd",
1008
+ "type": "uint256"
1009
+ }
1010
+ ],
1011
+ "name": "setDistributionEnd",
1012
+ "outputs": [],
1013
+ "stateMutability": "nonpayable",
1014
+ "type": "function"
1015
+ },
1016
+ {
1017
+ "inputs": [
1018
+ { "internalType": "uint256", "name": "percentage", "type": "uint256" }
1019
+ ],
1020
+ "name": "setMaxSlashablePercentage",
1021
+ "outputs": [],
1022
+ "stateMutability": "nonpayable",
1023
+ "type": "function"
1024
+ },
1025
+ {
1026
+ "inputs": [
1027
+ { "internalType": "uint256", "name": "role", "type": "uint256" },
1028
+ {
1029
+ "internalType": "address",
1030
+ "name": "newPendingAdmin",
1031
+ "type": "address"
1032
+ }
1033
+ ],
1034
+ "name": "setPendingAdmin",
1035
+ "outputs": [],
1036
+ "stateMutability": "nonpayable",
1037
+ "type": "function"
1038
+ },
1039
+ {
1040
+ "inputs": [],
1041
+ "name": "settleSlashing",
1042
+ "outputs": [],
1043
+ "stateMutability": "nonpayable",
1044
+ "type": "function"
1045
+ },
1046
+ {
1047
+ "inputs": [
1048
+ { "internalType": "address", "name": "destination", "type": "address" },
1049
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
1050
+ ],
1051
+ "name": "slash",
1052
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1053
+ "stateMutability": "nonpayable",
1054
+ "type": "function"
1055
+ },
1056
+ {
1057
+ "inputs": [
1058
+ { "internalType": "address", "name": "to", "type": "address" },
1059
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
1060
+ ],
1061
+ "name": "stake",
1062
+ "outputs": [],
1063
+ "stateMutability": "nonpayable",
1064
+ "type": "function"
1065
+ },
1066
+ {
1067
+ "inputs": [
1068
+ { "internalType": "uint256", "name": "amount", "type": "uint256" },
1069
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
1070
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
1071
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
1072
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
1073
+ ],
1074
+ "name": "stakeWithPermit",
1075
+ "outputs": [],
1076
+ "stateMutability": "nonpayable",
1077
+ "type": "function"
1078
+ },
1079
+ {
1080
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1081
+ "name": "stakerRewardsToClaim",
1082
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1083
+ "stateMutability": "view",
1084
+ "type": "function"
1085
+ },
1086
+ {
1087
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1088
+ "name": "stakersCooldowns",
1089
+ "outputs": [
1090
+ { "internalType": "uint40", "name": "timestamp", "type": "uint40" },
1091
+ { "internalType": "uint216", "name": "amount", "type": "uint216" }
1092
+ ],
1093
+ "stateMutability": "view",
1094
+ "type": "function"
1095
+ },
1096
+ {
1097
+ "inputs": [],
1098
+ "name": "symbol",
1099
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
1100
+ "stateMutability": "view",
1101
+ "type": "function"
1102
+ },
1103
+ {
1104
+ "inputs": [],
1105
+ "name": "totalSupply",
1106
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1107
+ "stateMutability": "view",
1108
+ "type": "function"
1109
+ },
1110
+ {
1111
+ "inputs": [
1112
+ { "internalType": "address", "name": "to", "type": "address" },
1113
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
1114
+ ],
1115
+ "name": "transfer",
1116
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1117
+ "stateMutability": "nonpayable",
1118
+ "type": "function"
1119
+ },
1120
+ {
1121
+ "inputs": [
1122
+ { "internalType": "address", "name": "from", "type": "address" },
1123
+ { "internalType": "address", "name": "to", "type": "address" },
1124
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
1125
+ ],
1126
+ "name": "transferFrom",
1127
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1128
+ "stateMutability": "nonpayable",
1129
+ "type": "function"
1130
+ }
1131
+ ]