@paraswap/dex-lib 2.43.0 → 2.44.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/build/abi/swETH.json +1086 -0
  2. package/build/config.js +1 -0
  3. package/build/config.js.map +1 -1
  4. package/build/dex/index.js +7 -1
  5. package/build/dex/index.js.map +1 -1
  6. package/build/dex/simple-exchange.d.ts +2 -0
  7. package/build/dex/simple-exchange.js +5 -0
  8. package/build/dex/simple-exchange.js.map +1 -1
  9. package/build/dex/solidly/solidly.js +1 -0
  10. package/build/dex/solidly/solidly.js.map +1 -1
  11. package/build/dex/swell/config.d.ts +14 -0
  12. package/build/dex/swell/config.js +22 -0
  13. package/build/dex/swell/config.js.map +1 -0
  14. package/build/dex/swell/swell.d.ts +60 -0
  15. package/build/dex/swell/swell.js +153 -0
  16. package/build/dex/swell/swell.js.map +1 -0
  17. package/build/dex/swell/sweth-pool.d.ts +16 -0
  18. package/build/dex/swell/sweth-pool.js +38 -0
  19. package/build/dex/swell/sweth-pool.js.map +1 -0
  20. package/build/dex/swell/type.d.ts +3 -0
  21. package/build/dex/swell/type.js +3 -0
  22. package/build/dex/swell/type.js.map +1 -0
  23. package/build/dex/swell/utils.d.ts +4 -0
  24. package/build/dex/swell/utils.js +22 -0
  25. package/build/dex/swell/utils.js.map +1 -0
  26. package/package.json +1 -1
  27. package/src/abi/swETH.json +1086 -0
  28. package/src/config.ts +1 -0
  29. package/src/dex/index.ts +4 -1
  30. package/src/dex/simple-exchange.ts +8 -1
  31. package/src/dex/solidly/solidly.ts +1 -0
  32. package/src/dex/swell/config.ts +27 -0
  33. package/src/dex/swell/swell-e2e.test.ts +53 -0
  34. package/src/dex/swell/swell.ts +234 -0
  35. package/src/dex/swell/sweth-pool.ts +58 -0
  36. package/src/dex/swell/type.ts +3 -0
  37. package/src/dex/swell/utils.ts +29 -0
  38. package/tests/constants-e2e.ts +4 -0
@@ -0,0 +1,1086 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "stateMutability": "nonpayable",
5
+ "type": "constructor"
6
+ },
7
+ {
8
+ "inputs": [
9
+ {
10
+ "internalType": "address",
11
+ "name": "_address",
12
+ "type": "address"
13
+ }
14
+ ],
15
+ "name": "AddressAlreadyInWhitelist",
16
+ "type": "error"
17
+ },
18
+ {
19
+ "inputs": [
20
+ {
21
+ "internalType": "address",
22
+ "name": "_address",
23
+ "type": "address"
24
+ }
25
+ ],
26
+ "name": "AddressMissingFromWhitelist",
27
+ "type": "error"
28
+ },
29
+ {
30
+ "inputs": [],
31
+ "name": "BotMethodsPaused",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "inputs": [],
36
+ "name": "CannotBeZeroAddress",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [],
41
+ "name": "CannotReferSelf",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [],
46
+ "name": "CannotRepriceWithZeroSwETHSupply",
47
+ "type": "error"
48
+ },
49
+ {
50
+ "inputs": [],
51
+ "name": "CoreMethodsPaused",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "InvalidETHDeposit",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [],
61
+ "name": "InvalidMethodCall",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "InvalidPreRewardETHReserves",
67
+ "type": "error"
68
+ },
69
+ {
70
+ "inputs": [],
71
+ "name": "NoActiveValidators",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "NoTokensToWithdraw",
77
+ "type": "error"
78
+ },
79
+ {
80
+ "inputs": [
81
+ {
82
+ "internalType": "uint256",
83
+ "name": "remainingTime",
84
+ "type": "uint256"
85
+ }
86
+ ],
87
+ "name": "NotEnoughTimeElapsedForReprice",
88
+ "type": "error"
89
+ },
90
+ {
91
+ "inputs": [],
92
+ "name": "NotInWhitelist",
93
+ "type": "error"
94
+ },
95
+ {
96
+ "inputs": [
97
+ {
98
+ "internalType": "uint256",
99
+ "name": "x",
100
+ "type": "uint256"
101
+ },
102
+ {
103
+ "internalType": "uint256",
104
+ "name": "y",
105
+ "type": "uint256"
106
+ }
107
+ ],
108
+ "name": "PRBMath_MulDiv18_Overflow",
109
+ "type": "error"
110
+ },
111
+ {
112
+ "inputs": [
113
+ {
114
+ "internalType": "uint256",
115
+ "name": "x",
116
+ "type": "uint256"
117
+ },
118
+ {
119
+ "internalType": "uint256",
120
+ "name": "y",
121
+ "type": "uint256"
122
+ },
123
+ {
124
+ "internalType": "uint256",
125
+ "name": "denominator",
126
+ "type": "uint256"
127
+ }
128
+ ],
129
+ "name": "PRBMath_MulDiv_Overflow",
130
+ "type": "error"
131
+ },
132
+ {
133
+ "inputs": [
134
+ {
135
+ "internalType": "uint256",
136
+ "name": "repriceDiff",
137
+ "type": "uint256"
138
+ },
139
+ {
140
+ "internalType": "uint256",
141
+ "name": "maximumRepriceDiff",
142
+ "type": "uint256"
143
+ }
144
+ ],
145
+ "name": "RepriceDifferenceTooLarge",
146
+ "type": "error"
147
+ },
148
+ {
149
+ "inputs": [
150
+ {
151
+ "internalType": "uint256",
152
+ "name": "repriceswETHDiff",
153
+ "type": "uint256"
154
+ },
155
+ {
156
+ "internalType": "uint256",
157
+ "name": "maximumswETHRepriceDiff",
158
+ "type": "uint256"
159
+ }
160
+ ],
161
+ "name": "RepriceswETHDifferenceTooLarge",
162
+ "type": "error"
163
+ },
164
+ {
165
+ "inputs": [],
166
+ "name": "RewardPercentageTotalOverflow",
167
+ "type": "error"
168
+ },
169
+ {
170
+ "inputs": [],
171
+ "name": "WhitelistAlreadyDisabled",
172
+ "type": "error"
173
+ },
174
+ {
175
+ "inputs": [],
176
+ "name": "WhitelistAlreadyEnabled",
177
+ "type": "error"
178
+ },
179
+ {
180
+ "anonymous": false,
181
+ "inputs": [
182
+ {
183
+ "indexed": true,
184
+ "internalType": "address",
185
+ "name": "_address",
186
+ "type": "address"
187
+ }
188
+ ],
189
+ "name": "AddedToWhitelist",
190
+ "type": "event"
191
+ },
192
+ {
193
+ "anonymous": false,
194
+ "inputs": [
195
+ {
196
+ "indexed": true,
197
+ "internalType": "address",
198
+ "name": "owner",
199
+ "type": "address"
200
+ },
201
+ {
202
+ "indexed": true,
203
+ "internalType": "address",
204
+ "name": "spender",
205
+ "type": "address"
206
+ },
207
+ {
208
+ "indexed": false,
209
+ "internalType": "uint256",
210
+ "name": "value",
211
+ "type": "uint256"
212
+ }
213
+ ],
214
+ "name": "Approval",
215
+ "type": "event"
216
+ },
217
+ {
218
+ "anonymous": false,
219
+ "inputs": [
220
+ {
221
+ "indexed": true,
222
+ "internalType": "address",
223
+ "name": "from",
224
+ "type": "address"
225
+ },
226
+ {
227
+ "indexed": false,
228
+ "internalType": "uint256",
229
+ "name": "amount",
230
+ "type": "uint256"
231
+ },
232
+ {
233
+ "indexed": false,
234
+ "internalType": "uint256",
235
+ "name": "swETHMinted",
236
+ "type": "uint256"
237
+ },
238
+ {
239
+ "indexed": false,
240
+ "internalType": "uint256",
241
+ "name": "newTotalETHDeposited",
242
+ "type": "uint256"
243
+ },
244
+ {
245
+ "indexed": true,
246
+ "internalType": "address",
247
+ "name": "referral",
248
+ "type": "address"
249
+ }
250
+ ],
251
+ "name": "ETHDepositReceived",
252
+ "type": "event"
253
+ },
254
+ {
255
+ "anonymous": false,
256
+ "inputs": [
257
+ {
258
+ "indexed": true,
259
+ "internalType": "address",
260
+ "name": "to",
261
+ "type": "address"
262
+ },
263
+ {
264
+ "indexed": false,
265
+ "internalType": "uint256",
266
+ "name": "swETHBurned",
267
+ "type": "uint256"
268
+ },
269
+ {
270
+ "indexed": false,
271
+ "internalType": "uint256",
272
+ "name": "ethReturned",
273
+ "type": "uint256"
274
+ }
275
+ ],
276
+ "name": "ETHWithdrawn",
277
+ "type": "event"
278
+ },
279
+ {
280
+ "anonymous": false,
281
+ "inputs": [
282
+ {
283
+ "indexed": false,
284
+ "internalType": "uint8",
285
+ "name": "version",
286
+ "type": "uint8"
287
+ }
288
+ ],
289
+ "name": "Initialized",
290
+ "type": "event"
291
+ },
292
+ {
293
+ "anonymous": false,
294
+ "inputs": [
295
+ {
296
+ "indexed": false,
297
+ "internalType": "uint256",
298
+ "name": "_oldMaximumRepriceDifferencePercentage",
299
+ "type": "uint256"
300
+ },
301
+ {
302
+ "indexed": false,
303
+ "internalType": "uint256",
304
+ "name": "_newMaximumRepriceDifferencePercentage",
305
+ "type": "uint256"
306
+ }
307
+ ],
308
+ "name": "MaximumRepriceDifferencePercentageUpdated",
309
+ "type": "event"
310
+ },
311
+ {
312
+ "anonymous": false,
313
+ "inputs": [
314
+ {
315
+ "indexed": false,
316
+ "internalType": "uint256",
317
+ "name": "_oldMaximumRepriceswETHDifferencePercentage",
318
+ "type": "uint256"
319
+ },
320
+ {
321
+ "indexed": false,
322
+ "internalType": "uint256",
323
+ "name": "_newMaximumRepriceswETHDifferencePercentage",
324
+ "type": "uint256"
325
+ }
326
+ ],
327
+ "name": "MaximumRepriceswETHDifferencePercentageUpdated",
328
+ "type": "event"
329
+ },
330
+ {
331
+ "anonymous": false,
332
+ "inputs": [
333
+ {
334
+ "indexed": false,
335
+ "internalType": "uint256",
336
+ "name": "_oldMinimumRepriceTime",
337
+ "type": "uint256"
338
+ },
339
+ {
340
+ "indexed": false,
341
+ "internalType": "uint256",
342
+ "name": "_newMinimumRepriceTime",
343
+ "type": "uint256"
344
+ }
345
+ ],
346
+ "name": "MinimumRepriceTimeUpdated",
347
+ "type": "event"
348
+ },
349
+ {
350
+ "anonymous": false,
351
+ "inputs": [
352
+ {
353
+ "indexed": false,
354
+ "internalType": "uint256",
355
+ "name": "oldPercentage",
356
+ "type": "uint256"
357
+ },
358
+ {
359
+ "indexed": false,
360
+ "internalType": "uint256",
361
+ "name": "newPercentage",
362
+ "type": "uint256"
363
+ }
364
+ ],
365
+ "name": "NodeOperatorRewardPercentageUpdate",
366
+ "type": "event"
367
+ },
368
+ {
369
+ "anonymous": false,
370
+ "inputs": [
371
+ {
372
+ "indexed": true,
373
+ "internalType": "address",
374
+ "name": "_address",
375
+ "type": "address"
376
+ }
377
+ ],
378
+ "name": "RemovedFromWhitelist",
379
+ "type": "event"
380
+ },
381
+ {
382
+ "anonymous": false,
383
+ "inputs": [
384
+ {
385
+ "indexed": false,
386
+ "internalType": "uint256",
387
+ "name": "newEthReserves",
388
+ "type": "uint256"
389
+ },
390
+ {
391
+ "indexed": false,
392
+ "internalType": "uint256",
393
+ "name": "newSwETHToETHRate",
394
+ "type": "uint256"
395
+ },
396
+ {
397
+ "indexed": false,
398
+ "internalType": "uint256",
399
+ "name": "nodeOperatorRewards",
400
+ "type": "uint256"
401
+ },
402
+ {
403
+ "indexed": false,
404
+ "internalType": "uint256",
405
+ "name": "swellTreasuryRewards",
406
+ "type": "uint256"
407
+ },
408
+ {
409
+ "indexed": false,
410
+ "internalType": "uint256",
411
+ "name": "totalETHDeposited",
412
+ "type": "uint256"
413
+ }
414
+ ],
415
+ "name": "Reprice",
416
+ "type": "event"
417
+ },
418
+ {
419
+ "anonymous": false,
420
+ "inputs": [
421
+ {
422
+ "indexed": false,
423
+ "internalType": "uint256",
424
+ "name": "oldPercentage",
425
+ "type": "uint256"
426
+ },
427
+ {
428
+ "indexed": false,
429
+ "internalType": "uint256",
430
+ "name": "newPercentage",
431
+ "type": "uint256"
432
+ }
433
+ ],
434
+ "name": "SwellTreasuryRewardPercentageUpdate",
435
+ "type": "event"
436
+ },
437
+ {
438
+ "anonymous": false,
439
+ "inputs": [
440
+ {
441
+ "indexed": true,
442
+ "internalType": "address",
443
+ "name": "from",
444
+ "type": "address"
445
+ },
446
+ {
447
+ "indexed": true,
448
+ "internalType": "address",
449
+ "name": "to",
450
+ "type": "address"
451
+ },
452
+ {
453
+ "indexed": false,
454
+ "internalType": "uint256",
455
+ "name": "value",
456
+ "type": "uint256"
457
+ }
458
+ ],
459
+ "name": "Transfer",
460
+ "type": "event"
461
+ },
462
+ {
463
+ "anonymous": false,
464
+ "inputs": [],
465
+ "name": "WhitelistDisabled",
466
+ "type": "event"
467
+ },
468
+ {
469
+ "anonymous": false,
470
+ "inputs": [],
471
+ "name": "WhitelistEnabled",
472
+ "type": "event"
473
+ },
474
+ {
475
+ "stateMutability": "nonpayable",
476
+ "type": "fallback"
477
+ },
478
+ {
479
+ "inputs": [],
480
+ "name": "AccessControlManager",
481
+ "outputs": [
482
+ {
483
+ "internalType": "contract IAccessControlManager",
484
+ "name": "",
485
+ "type": "address"
486
+ }
487
+ ],
488
+ "stateMutability": "view",
489
+ "type": "function"
490
+ },
491
+ {
492
+ "inputs": [
493
+ {
494
+ "internalType": "address",
495
+ "name": "_address",
496
+ "type": "address"
497
+ }
498
+ ],
499
+ "name": "addToWhitelist",
500
+ "outputs": [],
501
+ "stateMutability": "nonpayable",
502
+ "type": "function"
503
+ },
504
+ {
505
+ "inputs": [
506
+ {
507
+ "internalType": "address",
508
+ "name": "owner",
509
+ "type": "address"
510
+ },
511
+ {
512
+ "internalType": "address",
513
+ "name": "spender",
514
+ "type": "address"
515
+ }
516
+ ],
517
+ "name": "allowance",
518
+ "outputs": [
519
+ {
520
+ "internalType": "uint256",
521
+ "name": "",
522
+ "type": "uint256"
523
+ }
524
+ ],
525
+ "stateMutability": "view",
526
+ "type": "function"
527
+ },
528
+ {
529
+ "inputs": [
530
+ {
531
+ "internalType": "address",
532
+ "name": "spender",
533
+ "type": "address"
534
+ },
535
+ {
536
+ "internalType": "uint256",
537
+ "name": "amount",
538
+ "type": "uint256"
539
+ }
540
+ ],
541
+ "name": "approve",
542
+ "outputs": [
543
+ {
544
+ "internalType": "bool",
545
+ "name": "",
546
+ "type": "bool"
547
+ }
548
+ ],
549
+ "stateMutability": "nonpayable",
550
+ "type": "function"
551
+ },
552
+ {
553
+ "inputs": [
554
+ {
555
+ "internalType": "address",
556
+ "name": "account",
557
+ "type": "address"
558
+ }
559
+ ],
560
+ "name": "balanceOf",
561
+ "outputs": [
562
+ {
563
+ "internalType": "uint256",
564
+ "name": "",
565
+ "type": "uint256"
566
+ }
567
+ ],
568
+ "stateMutability": "view",
569
+ "type": "function"
570
+ },
571
+ {
572
+ "inputs": [
573
+ {
574
+ "internalType": "address[]",
575
+ "name": "_addresses",
576
+ "type": "address[]"
577
+ }
578
+ ],
579
+ "name": "batchAddToWhitelist",
580
+ "outputs": [],
581
+ "stateMutability": "nonpayable",
582
+ "type": "function"
583
+ },
584
+ {
585
+ "inputs": [
586
+ {
587
+ "internalType": "address[]",
588
+ "name": "_addresses",
589
+ "type": "address[]"
590
+ }
591
+ ],
592
+ "name": "batchRemoveFromWhitelist",
593
+ "outputs": [],
594
+ "stateMutability": "nonpayable",
595
+ "type": "function"
596
+ },
597
+ {
598
+ "inputs": [],
599
+ "name": "decimals",
600
+ "outputs": [
601
+ {
602
+ "internalType": "uint8",
603
+ "name": "",
604
+ "type": "uint8"
605
+ }
606
+ ],
607
+ "stateMutability": "view",
608
+ "type": "function"
609
+ },
610
+ {
611
+ "inputs": [
612
+ {
613
+ "internalType": "address",
614
+ "name": "spender",
615
+ "type": "address"
616
+ },
617
+ {
618
+ "internalType": "uint256",
619
+ "name": "subtractedValue",
620
+ "type": "uint256"
621
+ }
622
+ ],
623
+ "name": "decreaseAllowance",
624
+ "outputs": [
625
+ {
626
+ "internalType": "bool",
627
+ "name": "",
628
+ "type": "bool"
629
+ }
630
+ ],
631
+ "stateMutability": "nonpayable",
632
+ "type": "function"
633
+ },
634
+ {
635
+ "inputs": [],
636
+ "name": "deposit",
637
+ "outputs": [],
638
+ "stateMutability": "payable",
639
+ "type": "function"
640
+ },
641
+ {
642
+ "inputs": [
643
+ {
644
+ "internalType": "address",
645
+ "name": "referral",
646
+ "type": "address"
647
+ }
648
+ ],
649
+ "name": "depositWithReferral",
650
+ "outputs": [],
651
+ "stateMutability": "payable",
652
+ "type": "function"
653
+ },
654
+ {
655
+ "inputs": [],
656
+ "name": "disableWhitelist",
657
+ "outputs": [],
658
+ "stateMutability": "nonpayable",
659
+ "type": "function"
660
+ },
661
+ {
662
+ "inputs": [],
663
+ "name": "enableWhitelist",
664
+ "outputs": [],
665
+ "stateMutability": "nonpayable",
666
+ "type": "function"
667
+ },
668
+ {
669
+ "inputs": [],
670
+ "name": "ethToSwETHRate",
671
+ "outputs": [
672
+ {
673
+ "internalType": "uint256",
674
+ "name": "",
675
+ "type": "uint256"
676
+ }
677
+ ],
678
+ "stateMutability": "view",
679
+ "type": "function"
680
+ },
681
+ {
682
+ "inputs": [],
683
+ "name": "getRate",
684
+ "outputs": [
685
+ {
686
+ "internalType": "uint256",
687
+ "name": "",
688
+ "type": "uint256"
689
+ }
690
+ ],
691
+ "stateMutability": "view",
692
+ "type": "function"
693
+ },
694
+ {
695
+ "inputs": [
696
+ {
697
+ "internalType": "address",
698
+ "name": "spender",
699
+ "type": "address"
700
+ },
701
+ {
702
+ "internalType": "uint256",
703
+ "name": "addedValue",
704
+ "type": "uint256"
705
+ }
706
+ ],
707
+ "name": "increaseAllowance",
708
+ "outputs": [
709
+ {
710
+ "internalType": "bool",
711
+ "name": "",
712
+ "type": "bool"
713
+ }
714
+ ],
715
+ "stateMutability": "nonpayable",
716
+ "type": "function"
717
+ },
718
+ {
719
+ "inputs": [
720
+ {
721
+ "internalType": "contract IAccessControlManager",
722
+ "name": "_accessControlManager",
723
+ "type": "address"
724
+ }
725
+ ],
726
+ "name": "initialize",
727
+ "outputs": [],
728
+ "stateMutability": "nonpayable",
729
+ "type": "function"
730
+ },
731
+ {
732
+ "inputs": [],
733
+ "name": "lastRepriceETHReserves",
734
+ "outputs": [
735
+ {
736
+ "internalType": "uint256",
737
+ "name": "",
738
+ "type": "uint256"
739
+ }
740
+ ],
741
+ "stateMutability": "view",
742
+ "type": "function"
743
+ },
744
+ {
745
+ "inputs": [],
746
+ "name": "lastRepriceUNIX",
747
+ "outputs": [
748
+ {
749
+ "internalType": "uint256",
750
+ "name": "",
751
+ "type": "uint256"
752
+ }
753
+ ],
754
+ "stateMutability": "view",
755
+ "type": "function"
756
+ },
757
+ {
758
+ "inputs": [],
759
+ "name": "maximumRepriceDifferencePercentage",
760
+ "outputs": [
761
+ {
762
+ "internalType": "uint256",
763
+ "name": "",
764
+ "type": "uint256"
765
+ }
766
+ ],
767
+ "stateMutability": "view",
768
+ "type": "function"
769
+ },
770
+ {
771
+ "inputs": [],
772
+ "name": "maximumRepriceswETHDifferencePercentage",
773
+ "outputs": [
774
+ {
775
+ "internalType": "uint256",
776
+ "name": "",
777
+ "type": "uint256"
778
+ }
779
+ ],
780
+ "stateMutability": "view",
781
+ "type": "function"
782
+ },
783
+ {
784
+ "inputs": [],
785
+ "name": "minimumRepriceTime",
786
+ "outputs": [
787
+ {
788
+ "internalType": "uint256",
789
+ "name": "",
790
+ "type": "uint256"
791
+ }
792
+ ],
793
+ "stateMutability": "view",
794
+ "type": "function"
795
+ },
796
+ {
797
+ "inputs": [],
798
+ "name": "name",
799
+ "outputs": [
800
+ {
801
+ "internalType": "string",
802
+ "name": "",
803
+ "type": "string"
804
+ }
805
+ ],
806
+ "stateMutability": "view",
807
+ "type": "function"
808
+ },
809
+ {
810
+ "inputs": [],
811
+ "name": "nodeOperatorRewardPercentage",
812
+ "outputs": [
813
+ {
814
+ "internalType": "uint256",
815
+ "name": "",
816
+ "type": "uint256"
817
+ }
818
+ ],
819
+ "stateMutability": "view",
820
+ "type": "function"
821
+ },
822
+ {
823
+ "inputs": [
824
+ {
825
+ "internalType": "address",
826
+ "name": "_address",
827
+ "type": "address"
828
+ }
829
+ ],
830
+ "name": "removeFromWhitelist",
831
+ "outputs": [],
832
+ "stateMutability": "nonpayable",
833
+ "type": "function"
834
+ },
835
+ {
836
+ "inputs": [
837
+ {
838
+ "internalType": "uint256",
839
+ "name": "_preRewardETHReserves",
840
+ "type": "uint256"
841
+ },
842
+ {
843
+ "internalType": "uint256",
844
+ "name": "_newETHRewards",
845
+ "type": "uint256"
846
+ },
847
+ {
848
+ "internalType": "uint256",
849
+ "name": "_swETHTotalSupply",
850
+ "type": "uint256"
851
+ }
852
+ ],
853
+ "name": "reprice",
854
+ "outputs": [],
855
+ "stateMutability": "nonpayable",
856
+ "type": "function"
857
+ },
858
+ {
859
+ "inputs": [
860
+ {
861
+ "internalType": "uint256",
862
+ "name": "_maximumRepriceDifferencePercentage",
863
+ "type": "uint256"
864
+ }
865
+ ],
866
+ "name": "setMaximumRepriceDifferencePercentage",
867
+ "outputs": [],
868
+ "stateMutability": "nonpayable",
869
+ "type": "function"
870
+ },
871
+ {
872
+ "inputs": [
873
+ {
874
+ "internalType": "uint256",
875
+ "name": "_maximumRepriceswETHDifferencePercentage",
876
+ "type": "uint256"
877
+ }
878
+ ],
879
+ "name": "setMaximumRepriceswETHDifferencePercentage",
880
+ "outputs": [],
881
+ "stateMutability": "nonpayable",
882
+ "type": "function"
883
+ },
884
+ {
885
+ "inputs": [
886
+ {
887
+ "internalType": "uint256",
888
+ "name": "_minimumRepriceTime",
889
+ "type": "uint256"
890
+ }
891
+ ],
892
+ "name": "setMinimumRepriceTime",
893
+ "outputs": [],
894
+ "stateMutability": "nonpayable",
895
+ "type": "function"
896
+ },
897
+ {
898
+ "inputs": [
899
+ {
900
+ "internalType": "uint256",
901
+ "name": "_newNodeOperatorRewardPercentage",
902
+ "type": "uint256"
903
+ }
904
+ ],
905
+ "name": "setNodeOperatorRewardPercentage",
906
+ "outputs": [],
907
+ "stateMutability": "nonpayable",
908
+ "type": "function"
909
+ },
910
+ {
911
+ "inputs": [
912
+ {
913
+ "internalType": "uint256",
914
+ "name": "_newSwellTreasuryRewardPercentage",
915
+ "type": "uint256"
916
+ }
917
+ ],
918
+ "name": "setSwellTreasuryRewardPercentage",
919
+ "outputs": [],
920
+ "stateMutability": "nonpayable",
921
+ "type": "function"
922
+ },
923
+ {
924
+ "inputs": [],
925
+ "name": "swETHToETHRate",
926
+ "outputs": [
927
+ {
928
+ "internalType": "uint256",
929
+ "name": "",
930
+ "type": "uint256"
931
+ }
932
+ ],
933
+ "stateMutability": "view",
934
+ "type": "function"
935
+ },
936
+ {
937
+ "inputs": [],
938
+ "name": "swellTreasuryRewardPercentage",
939
+ "outputs": [
940
+ {
941
+ "internalType": "uint256",
942
+ "name": "",
943
+ "type": "uint256"
944
+ }
945
+ ],
946
+ "stateMutability": "view",
947
+ "type": "function"
948
+ },
949
+ {
950
+ "inputs": [],
951
+ "name": "symbol",
952
+ "outputs": [
953
+ {
954
+ "internalType": "string",
955
+ "name": "",
956
+ "type": "string"
957
+ }
958
+ ],
959
+ "stateMutability": "view",
960
+ "type": "function"
961
+ },
962
+ {
963
+ "inputs": [],
964
+ "name": "totalETHDeposited",
965
+ "outputs": [
966
+ {
967
+ "internalType": "uint256",
968
+ "name": "",
969
+ "type": "uint256"
970
+ }
971
+ ],
972
+ "stateMutability": "view",
973
+ "type": "function"
974
+ },
975
+ {
976
+ "inputs": [],
977
+ "name": "totalSupply",
978
+ "outputs": [
979
+ {
980
+ "internalType": "uint256",
981
+ "name": "",
982
+ "type": "uint256"
983
+ }
984
+ ],
985
+ "stateMutability": "view",
986
+ "type": "function"
987
+ },
988
+ {
989
+ "inputs": [
990
+ {
991
+ "internalType": "address",
992
+ "name": "to",
993
+ "type": "address"
994
+ },
995
+ {
996
+ "internalType": "uint256",
997
+ "name": "amount",
998
+ "type": "uint256"
999
+ }
1000
+ ],
1001
+ "name": "transfer",
1002
+ "outputs": [
1003
+ {
1004
+ "internalType": "bool",
1005
+ "name": "",
1006
+ "type": "bool"
1007
+ }
1008
+ ],
1009
+ "stateMutability": "nonpayable",
1010
+ "type": "function"
1011
+ },
1012
+ {
1013
+ "inputs": [
1014
+ {
1015
+ "internalType": "address",
1016
+ "name": "from",
1017
+ "type": "address"
1018
+ },
1019
+ {
1020
+ "internalType": "address",
1021
+ "name": "to",
1022
+ "type": "address"
1023
+ },
1024
+ {
1025
+ "internalType": "uint256",
1026
+ "name": "amount",
1027
+ "type": "uint256"
1028
+ }
1029
+ ],
1030
+ "name": "transferFrom",
1031
+ "outputs": [
1032
+ {
1033
+ "internalType": "bool",
1034
+ "name": "",
1035
+ "type": "bool"
1036
+ }
1037
+ ],
1038
+ "stateMutability": "nonpayable",
1039
+ "type": "function"
1040
+ },
1041
+ {
1042
+ "inputs": [],
1043
+ "name": "whitelistEnabled",
1044
+ "outputs": [
1045
+ {
1046
+ "internalType": "bool",
1047
+ "name": "",
1048
+ "type": "bool"
1049
+ }
1050
+ ],
1051
+ "stateMutability": "view",
1052
+ "type": "function"
1053
+ },
1054
+ {
1055
+ "inputs": [
1056
+ {
1057
+ "internalType": "address",
1058
+ "name": "",
1059
+ "type": "address"
1060
+ }
1061
+ ],
1062
+ "name": "whitelistedAddresses",
1063
+ "outputs": [
1064
+ {
1065
+ "internalType": "bool",
1066
+ "name": "",
1067
+ "type": "bool"
1068
+ }
1069
+ ],
1070
+ "stateMutability": "view",
1071
+ "type": "function"
1072
+ },
1073
+ {
1074
+ "inputs": [
1075
+ {
1076
+ "internalType": "contract IERC20",
1077
+ "name": "_token",
1078
+ "type": "address"
1079
+ }
1080
+ ],
1081
+ "name": "withdrawERC20",
1082
+ "outputs": [],
1083
+ "stateMutability": "nonpayable",
1084
+ "type": "function"
1085
+ }
1086
+ ]