@lidofinance/lsv-cli 0.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.
@@ -0,0 +1,894 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VaultHubAbi = void 0;
4
+ exports.VaultHubAbi = [
5
+ {
6
+ inputs: [
7
+ {
8
+ internalType: "address",
9
+ name: "vault",
10
+ type: "address",
11
+ },
12
+ {
13
+ internalType: "int256",
14
+ name: "reserveRatio",
15
+ type: "int256",
16
+ },
17
+ {
18
+ internalType: "uint256",
19
+ name: "minReserveRatio",
20
+ type: "uint256",
21
+ },
22
+ ],
23
+ name: "AlreadyBalanced",
24
+ type: "error",
25
+ },
26
+ {
27
+ inputs: [
28
+ {
29
+ internalType: "address",
30
+ name: "vault",
31
+ type: "address",
32
+ },
33
+ {
34
+ internalType: "uint256",
35
+ name: "index",
36
+ type: "uint256",
37
+ },
38
+ ],
39
+ name: "AlreadyConnected",
40
+ type: "error",
41
+ },
42
+ {
43
+ inputs: [
44
+ {
45
+ internalType: "address",
46
+ name: "vault",
47
+ type: "address",
48
+ },
49
+ {
50
+ internalType: "uint256",
51
+ name: "capShares",
52
+ type: "uint256",
53
+ },
54
+ {
55
+ internalType: "uint256",
56
+ name: "maxCapShares",
57
+ type: "uint256",
58
+ },
59
+ ],
60
+ name: "CapTooHigh",
61
+ type: "error",
62
+ },
63
+ {
64
+ inputs: [
65
+ {
66
+ internalType: "address",
67
+ name: "vault",
68
+ type: "address",
69
+ },
70
+ {
71
+ internalType: "uint256",
72
+ name: "capVaultBalance",
73
+ type: "uint256",
74
+ },
75
+ {
76
+ internalType: "uint256",
77
+ name: "maxExternalBalance",
78
+ type: "uint256",
79
+ },
80
+ ],
81
+ name: "ExternalBalanceCapReached",
82
+ type: "error",
83
+ },
84
+ {
85
+ inputs: [
86
+ {
87
+ internalType: "address",
88
+ name: "vault",
89
+ type: "address",
90
+ },
91
+ {
92
+ internalType: "int256",
93
+ name: "reserveRatio",
94
+ type: "int256",
95
+ },
96
+ {
97
+ internalType: "uint256",
98
+ name: "minReserveRatio",
99
+ type: "uint256",
100
+ },
101
+ ],
102
+ name: "MinReserveRatioReached",
103
+ type: "error",
104
+ },
105
+ {
106
+ inputs: [
107
+ {
108
+ internalType: "address",
109
+ name: "vault",
110
+ type: "address",
111
+ },
112
+ {
113
+ internalType: "uint256",
114
+ name: "capShares",
115
+ type: "uint256",
116
+ },
117
+ ],
118
+ name: "MintCapReached",
119
+ type: "error",
120
+ },
121
+ {
122
+ inputs: [
123
+ {
124
+ internalType: "string",
125
+ name: "operation",
126
+ type: "string",
127
+ },
128
+ {
129
+ internalType: "address",
130
+ name: "addr",
131
+ type: "address",
132
+ },
133
+ ],
134
+ name: "NotAuthorized",
135
+ type: "error",
136
+ },
137
+ {
138
+ inputs: [
139
+ {
140
+ internalType: "address",
141
+ name: "vault",
142
+ type: "address",
143
+ },
144
+ ],
145
+ name: "NotConnectedToHub",
146
+ type: "error",
147
+ },
148
+ {
149
+ inputs: [
150
+ {
151
+ internalType: "address",
152
+ name: "vault",
153
+ type: "address",
154
+ },
155
+ {
156
+ internalType: "uint256",
157
+ name: "balance",
158
+ type: "uint256",
159
+ },
160
+ {
161
+ internalType: "uint256",
162
+ name: "shouldBe",
163
+ type: "uint256",
164
+ },
165
+ ],
166
+ name: "NotEnoughBalance",
167
+ type: "error",
168
+ },
169
+ {
170
+ inputs: [
171
+ {
172
+ internalType: "address",
173
+ name: "vault",
174
+ type: "address",
175
+ },
176
+ {
177
+ internalType: "uint256",
178
+ name: "amount",
179
+ type: "uint256",
180
+ },
181
+ ],
182
+ name: "NotEnoughShares",
183
+ type: "error",
184
+ },
185
+ {
186
+ inputs: [
187
+ {
188
+ internalType: "address",
189
+ name: "vault",
190
+ type: "address",
191
+ },
192
+ ],
193
+ name: "RebalanceFailed",
194
+ type: "error",
195
+ },
196
+ {
197
+ inputs: [
198
+ {
199
+ internalType: "address",
200
+ name: "vault",
201
+ type: "address",
202
+ },
203
+ {
204
+ internalType: "uint256",
205
+ name: "reserveRatioBP",
206
+ type: "uint256",
207
+ },
208
+ {
209
+ internalType: "uint256",
210
+ name: "maxReserveRatioBP",
211
+ type: "uint256",
212
+ },
213
+ ],
214
+ name: "ReserveRatioTooHigh",
215
+ type: "error",
216
+ },
217
+ {
218
+ inputs: [
219
+ {
220
+ internalType: "address",
221
+ name: "vault",
222
+ type: "address",
223
+ },
224
+ ],
225
+ name: "StETHMintFailed",
226
+ type: "error",
227
+ },
228
+ {
229
+ inputs: [],
230
+ name: "TooManyVaults",
231
+ type: "error",
232
+ },
233
+ {
234
+ inputs: [
235
+ {
236
+ internalType: "address",
237
+ name: "vault",
238
+ type: "address",
239
+ },
240
+ {
241
+ internalType: "uint256",
242
+ name: "treasuryFeeBP",
243
+ type: "uint256",
244
+ },
245
+ {
246
+ internalType: "uint256",
247
+ name: "maxTreasuryFeeBP",
248
+ type: "uint256",
249
+ },
250
+ ],
251
+ name: "TreasuryFeeTooHigh",
252
+ type: "error",
253
+ },
254
+ {
255
+ inputs: [
256
+ {
257
+ internalType: "string",
258
+ name: "argument",
259
+ type: "string",
260
+ },
261
+ ],
262
+ name: "ZeroArgument",
263
+ type: "error",
264
+ },
265
+ {
266
+ anonymous: false,
267
+ inputs: [
268
+ {
269
+ indexed: true,
270
+ internalType: "address",
271
+ name: "vault",
272
+ type: "address",
273
+ },
274
+ {
275
+ indexed: false,
276
+ internalType: "uint256",
277
+ name: "amountOfTokens",
278
+ type: "uint256",
279
+ },
280
+ ],
281
+ name: "BurnedStETHOnVault",
282
+ type: "event",
283
+ },
284
+ {
285
+ anonymous: false,
286
+ inputs: [
287
+ {
288
+ indexed: true,
289
+ internalType: "address",
290
+ name: "vault",
291
+ type: "address",
292
+ },
293
+ {
294
+ indexed: false,
295
+ internalType: "uint256",
296
+ name: "amountOfTokens",
297
+ type: "uint256",
298
+ },
299
+ ],
300
+ name: "MintedStETHOnVault",
301
+ type: "event",
302
+ },
303
+ {
304
+ anonymous: false,
305
+ inputs: [
306
+ {
307
+ indexed: true,
308
+ internalType: "bytes32",
309
+ name: "role",
310
+ type: "bytes32",
311
+ },
312
+ {
313
+ indexed: true,
314
+ internalType: "bytes32",
315
+ name: "previousAdminRole",
316
+ type: "bytes32",
317
+ },
318
+ {
319
+ indexed: true,
320
+ internalType: "bytes32",
321
+ name: "newAdminRole",
322
+ type: "bytes32",
323
+ },
324
+ ],
325
+ name: "RoleAdminChanged",
326
+ type: "event",
327
+ },
328
+ {
329
+ anonymous: false,
330
+ inputs: [
331
+ {
332
+ indexed: true,
333
+ internalType: "bytes32",
334
+ name: "role",
335
+ type: "bytes32",
336
+ },
337
+ {
338
+ indexed: true,
339
+ internalType: "address",
340
+ name: "account",
341
+ type: "address",
342
+ },
343
+ {
344
+ indexed: true,
345
+ internalType: "address",
346
+ name: "sender",
347
+ type: "address",
348
+ },
349
+ ],
350
+ name: "RoleGranted",
351
+ type: "event",
352
+ },
353
+ {
354
+ anonymous: false,
355
+ inputs: [
356
+ {
357
+ indexed: true,
358
+ internalType: "bytes32",
359
+ name: "role",
360
+ type: "bytes32",
361
+ },
362
+ {
363
+ indexed: true,
364
+ internalType: "address",
365
+ name: "account",
366
+ type: "address",
367
+ },
368
+ {
369
+ indexed: true,
370
+ internalType: "address",
371
+ name: "sender",
372
+ type: "address",
373
+ },
374
+ ],
375
+ name: "RoleRevoked",
376
+ type: "event",
377
+ },
378
+ {
379
+ anonymous: false,
380
+ inputs: [
381
+ {
382
+ indexed: true,
383
+ internalType: "address",
384
+ name: "vault",
385
+ type: "address",
386
+ },
387
+ {
388
+ indexed: false,
389
+ internalType: "uint256",
390
+ name: "capShares",
391
+ type: "uint256",
392
+ },
393
+ {
394
+ indexed: false,
395
+ internalType: "uint256",
396
+ name: "minReserveRatioBP",
397
+ type: "uint256",
398
+ },
399
+ {
400
+ indexed: false,
401
+ internalType: "uint256",
402
+ name: "treasuryFeeBP",
403
+ type: "uint256",
404
+ },
405
+ ],
406
+ name: "VaultConnected",
407
+ type: "event",
408
+ },
409
+ {
410
+ anonymous: false,
411
+ inputs: [
412
+ {
413
+ indexed: true,
414
+ internalType: "address",
415
+ name: "vault",
416
+ type: "address",
417
+ },
418
+ ],
419
+ name: "VaultDisconnected",
420
+ type: "event",
421
+ },
422
+ {
423
+ anonymous: false,
424
+ inputs: [
425
+ {
426
+ indexed: true,
427
+ internalType: "address",
428
+ name: "vault",
429
+ type: "address",
430
+ },
431
+ {
432
+ indexed: false,
433
+ internalType: "uint256",
434
+ name: "tokensBurnt",
435
+ type: "uint256",
436
+ },
437
+ {
438
+ indexed: false,
439
+ internalType: "int256",
440
+ name: "newReserveRatio",
441
+ type: "int256",
442
+ },
443
+ ],
444
+ name: "VaultRebalanced",
445
+ type: "event",
446
+ },
447
+ {
448
+ inputs: [],
449
+ name: "DEFAULT_ADMIN_ROLE",
450
+ outputs: [
451
+ {
452
+ internalType: "bytes32",
453
+ name: "",
454
+ type: "bytes32",
455
+ },
456
+ ],
457
+ stateMutability: "view",
458
+ type: "function",
459
+ },
460
+ {
461
+ inputs: [],
462
+ name: "STETH",
463
+ outputs: [
464
+ {
465
+ internalType: "contract StETH",
466
+ name: "",
467
+ type: "address",
468
+ },
469
+ ],
470
+ stateMutability: "view",
471
+ type: "function",
472
+ },
473
+ {
474
+ inputs: [],
475
+ name: "VAULT_MASTER_ROLE",
476
+ outputs: [
477
+ {
478
+ internalType: "bytes32",
479
+ name: "",
480
+ type: "bytes32",
481
+ },
482
+ ],
483
+ stateMutability: "view",
484
+ type: "function",
485
+ },
486
+ {
487
+ inputs: [
488
+ {
489
+ internalType: "uint256",
490
+ name: "_amountOfTokens",
491
+ type: "uint256",
492
+ },
493
+ ],
494
+ name: "burnStethBackedByVault",
495
+ outputs: [],
496
+ stateMutability: "nonpayable",
497
+ type: "function",
498
+ },
499
+ {
500
+ inputs: [
501
+ {
502
+ internalType: "contract ILockable",
503
+ name: "_vault",
504
+ type: "address",
505
+ },
506
+ {
507
+ internalType: "uint256",
508
+ name: "_capShares",
509
+ type: "uint256",
510
+ },
511
+ {
512
+ internalType: "uint256",
513
+ name: "_minReserveRatioBP",
514
+ type: "uint256",
515
+ },
516
+ {
517
+ internalType: "uint256",
518
+ name: "_treasuryFeeBP",
519
+ type: "uint256",
520
+ },
521
+ ],
522
+ name: "connectVault",
523
+ outputs: [],
524
+ stateMutability: "nonpayable",
525
+ type: "function",
526
+ },
527
+ {
528
+ inputs: [],
529
+ name: "disconnectVault",
530
+ outputs: [],
531
+ stateMutability: "nonpayable",
532
+ type: "function",
533
+ },
534
+ {
535
+ inputs: [
536
+ {
537
+ internalType: "contract ILockable",
538
+ name: "_vault",
539
+ type: "address",
540
+ },
541
+ ],
542
+ name: "forceRebalance",
543
+ outputs: [],
544
+ stateMutability: "nonpayable",
545
+ type: "function",
546
+ },
547
+ {
548
+ inputs: [
549
+ {
550
+ internalType: "bytes32",
551
+ name: "role",
552
+ type: "bytes32",
553
+ },
554
+ ],
555
+ name: "getRoleAdmin",
556
+ outputs: [
557
+ {
558
+ internalType: "bytes32",
559
+ name: "",
560
+ type: "bytes32",
561
+ },
562
+ ],
563
+ stateMutability: "view",
564
+ type: "function",
565
+ },
566
+ {
567
+ inputs: [
568
+ {
569
+ internalType: "bytes32",
570
+ name: "role",
571
+ type: "bytes32",
572
+ },
573
+ {
574
+ internalType: "uint256",
575
+ name: "index",
576
+ type: "uint256",
577
+ },
578
+ ],
579
+ name: "getRoleMember",
580
+ outputs: [
581
+ {
582
+ internalType: "address",
583
+ name: "",
584
+ type: "address",
585
+ },
586
+ ],
587
+ stateMutability: "view",
588
+ type: "function",
589
+ },
590
+ {
591
+ inputs: [
592
+ {
593
+ internalType: "bytes32",
594
+ name: "role",
595
+ type: "bytes32",
596
+ },
597
+ ],
598
+ name: "getRoleMemberCount",
599
+ outputs: [
600
+ {
601
+ internalType: "uint256",
602
+ name: "",
603
+ type: "uint256",
604
+ },
605
+ ],
606
+ stateMutability: "view",
607
+ type: "function",
608
+ },
609
+ {
610
+ inputs: [
611
+ {
612
+ internalType: "bytes32",
613
+ name: "role",
614
+ type: "bytes32",
615
+ },
616
+ {
617
+ internalType: "address",
618
+ name: "account",
619
+ type: "address",
620
+ },
621
+ ],
622
+ name: "grantRole",
623
+ outputs: [],
624
+ stateMutability: "nonpayable",
625
+ type: "function",
626
+ },
627
+ {
628
+ inputs: [
629
+ {
630
+ internalType: "bytes32",
631
+ name: "role",
632
+ type: "bytes32",
633
+ },
634
+ {
635
+ internalType: "address",
636
+ name: "account",
637
+ type: "address",
638
+ },
639
+ ],
640
+ name: "hasRole",
641
+ outputs: [
642
+ {
643
+ internalType: "bool",
644
+ name: "",
645
+ type: "bool",
646
+ },
647
+ ],
648
+ stateMutability: "view",
649
+ type: "function",
650
+ },
651
+ {
652
+ inputs: [
653
+ {
654
+ internalType: "address",
655
+ name: "_receiver",
656
+ type: "address",
657
+ },
658
+ {
659
+ internalType: "uint256",
660
+ name: "_amountOfTokens",
661
+ type: "uint256",
662
+ },
663
+ ],
664
+ name: "mintStethBackedByVault",
665
+ outputs: [
666
+ {
667
+ internalType: "uint256",
668
+ name: "totalEtherToLock",
669
+ type: "uint256",
670
+ },
671
+ ],
672
+ stateMutability: "nonpayable",
673
+ type: "function",
674
+ },
675
+ {
676
+ inputs: [],
677
+ name: "rebalance",
678
+ outputs: [],
679
+ stateMutability: "payable",
680
+ type: "function",
681
+ },
682
+ {
683
+ inputs: [
684
+ {
685
+ internalType: "bytes32",
686
+ name: "role",
687
+ type: "bytes32",
688
+ },
689
+ {
690
+ internalType: "address",
691
+ name: "account",
692
+ type: "address",
693
+ },
694
+ ],
695
+ name: "renounceRole",
696
+ outputs: [],
697
+ stateMutability: "nonpayable",
698
+ type: "function",
699
+ },
700
+ {
701
+ inputs: [
702
+ {
703
+ internalType: "contract ILockable",
704
+ name: "_vault",
705
+ type: "address",
706
+ },
707
+ ],
708
+ name: "reserveRatio",
709
+ outputs: [
710
+ {
711
+ internalType: "int256",
712
+ name: "",
713
+ type: "int256",
714
+ },
715
+ ],
716
+ stateMutability: "view",
717
+ type: "function",
718
+ },
719
+ {
720
+ inputs: [
721
+ {
722
+ internalType: "bytes32",
723
+ name: "role",
724
+ type: "bytes32",
725
+ },
726
+ {
727
+ internalType: "address",
728
+ name: "account",
729
+ type: "address",
730
+ },
731
+ ],
732
+ name: "revokeRole",
733
+ outputs: [],
734
+ stateMutability: "nonpayable",
735
+ type: "function",
736
+ },
737
+ {
738
+ inputs: [
739
+ {
740
+ internalType: "bytes4",
741
+ name: "interfaceId",
742
+ type: "bytes4",
743
+ },
744
+ ],
745
+ name: "supportsInterface",
746
+ outputs: [
747
+ {
748
+ internalType: "bool",
749
+ name: "",
750
+ type: "bool",
751
+ },
752
+ ],
753
+ stateMutability: "view",
754
+ type: "function",
755
+ },
756
+ {
757
+ inputs: [],
758
+ name: "treasury",
759
+ outputs: [
760
+ {
761
+ internalType: "address",
762
+ name: "",
763
+ type: "address",
764
+ },
765
+ ],
766
+ stateMutability: "view",
767
+ type: "function",
768
+ },
769
+ {
770
+ inputs: [
771
+ {
772
+ internalType: "uint256",
773
+ name: "_index",
774
+ type: "uint256",
775
+ },
776
+ ],
777
+ name: "vault",
778
+ outputs: [
779
+ {
780
+ internalType: "contract ILockable",
781
+ name: "",
782
+ type: "address",
783
+ },
784
+ ],
785
+ stateMutability: "view",
786
+ type: "function",
787
+ },
788
+ {
789
+ inputs: [
790
+ {
791
+ internalType: "uint256",
792
+ name: "_index",
793
+ type: "uint256",
794
+ },
795
+ ],
796
+ name: "vaultSocket",
797
+ outputs: [
798
+ {
799
+ components: [
800
+ {
801
+ internalType: "contract ILockable",
802
+ name: "vault",
803
+ type: "address",
804
+ },
805
+ {
806
+ internalType: "uint96",
807
+ name: "capShares",
808
+ type: "uint96",
809
+ },
810
+ {
811
+ internalType: "uint96",
812
+ name: "mintedShares",
813
+ type: "uint96",
814
+ },
815
+ {
816
+ internalType: "uint16",
817
+ name: "minReserveRatioBP",
818
+ type: "uint16",
819
+ },
820
+ {
821
+ internalType: "uint16",
822
+ name: "treasuryFeeBP",
823
+ type: "uint16",
824
+ },
825
+ ],
826
+ internalType: "struct VaultHub.VaultSocket",
827
+ name: "",
828
+ type: "tuple",
829
+ },
830
+ ],
831
+ stateMutability: "view",
832
+ type: "function",
833
+ },
834
+ {
835
+ inputs: [
836
+ {
837
+ internalType: "contract ILockable",
838
+ name: "_vault",
839
+ type: "address",
840
+ },
841
+ ],
842
+ name: "vaultSocket",
843
+ outputs: [
844
+ {
845
+ components: [
846
+ {
847
+ internalType: "contract ILockable",
848
+ name: "vault",
849
+ type: "address",
850
+ },
851
+ {
852
+ internalType: "uint96",
853
+ name: "capShares",
854
+ type: "uint96",
855
+ },
856
+ {
857
+ internalType: "uint96",
858
+ name: "mintedShares",
859
+ type: "uint96",
860
+ },
861
+ {
862
+ internalType: "uint16",
863
+ name: "minReserveRatioBP",
864
+ type: "uint16",
865
+ },
866
+ {
867
+ internalType: "uint16",
868
+ name: "treasuryFeeBP",
869
+ type: "uint16",
870
+ },
871
+ ],
872
+ internalType: "struct VaultHub.VaultSocket",
873
+ name: "",
874
+ type: "tuple",
875
+ },
876
+ ],
877
+ stateMutability: "view",
878
+ type: "function",
879
+ },
880
+ {
881
+ inputs: [],
882
+ name: "vaultsCount",
883
+ outputs: [
884
+ {
885
+ internalType: "uint256",
886
+ name: "",
887
+ type: "uint256",
888
+ },
889
+ ],
890
+ stateMutability: "view",
891
+ type: "function",
892
+ },
893
+ ];
894
+ //# sourceMappingURL=VaultHub.js.map