-
Notifications
You must be signed in to change notification settings - Fork 3
/
casimir_manager.go
3869 lines (3322 loc) Β· 160 KB
/
casimir_manager.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package main
import (
"errors"
"math/big"
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = errors.New
_ = big.NewInt
_ = strings.NewReader
_ = ethereum.NotFound
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
)
// ISSVNetworkCoreCluster is an auto generated low-level Go binding around an user-defined struct.
type ISSVNetworkCoreCluster struct {
ValidatorCount uint32
NetworkFeeIndex uint64
Index uint64
Balance *big.Int
Active bool
}
// MainMetaData contains all meta data concerning the Main contract.
var MainMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_oracleAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"beaconDepositAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"linkFunctionsAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"keeperRegistrarAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"keeperRegistryAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"linkTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ssvNetworkAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ssvViewsAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ssvTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"swapFactoryAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"swapRouterAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"wethTokenAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"CompletedExitReportsRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"poolId\",\"type\":\"uint32\"}],\"name\":\"PoolActivated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"poolId\",\"type\":\"uint32\"}],\"name\":\"PoolInitiated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"poolId\",\"type\":\"uint32\"}],\"name\":\"InitiationRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"poolId\",\"type\":\"uint32\"}],\"name\":\"ExitCompleted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"poolId\",\"type\":\"uint32\"}],\"name\":\"ExitRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"ForcedExitReportsRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"poolId\",\"type\":\"uint32\"}],\"name\":\"ReshareCompleted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"operatorId\",\"type\":\"uint64\"}],\"name\":\"ResharesRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"RewardsDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"SlashedExitReportsRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"StakeDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"StakeRebalanced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"TipsDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawalInitiated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawalRequested\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"requestActivations\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32[5]\",\"name\":\"poolIds\",\"type\":\"uint32[5]\"}],\"name\":\"compoundRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"}],\"internalType\":\"structISSVNetworkCore.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"processed\",\"type\":\"bool\"}],\"name\":\"depositClusterBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"poolId\",\"type\":\"uint32\"}],\"name\":\"depositExitedBalance\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"poolId\",\"type\":\"uint32\"}],\"name\":\"depositRecoveredBalance\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositReservedFees\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositRewards\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositStake\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"processed\",\"type\":\"bool\"}],\"name\":\"depositUpkeepBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feePercent\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizableCompletedExits\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"fulfillWithdrawals\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBufferedBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bufferedBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getExpectedEffectiveBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedEffectiveBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPendingPoolIds\",\"outputs\":[{\"internalType\":\"uint32[]\",\"name\":\"\",\"type\":\"uint32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"period\",\"type\":\"uint256\"}],\"name\":\"getPendingWithdrawalEligibility\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"pendingWithdrawalEligibility\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"poolId\",\"type\":\"uint32\"}],\"name\":\"getPoolAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReadyBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"readyBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReadyPoolIds\",\"outputs\":[{\"internalType\":\"uint32[]\",\"name\":\"\",\"type\":\"uint32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRegistryAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"registryAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReservedFeeBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStakedPoolIds\",\"outputs\":[{\"internalType\":\"uint32[]\",\"name\":\"\",\"type\":\"uint32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTotalStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalStake\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getUpkeepAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"upkeepAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getUpkeepBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"upkeepBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"userAddress\",\"type\":\"address\"}],\"name\":\"getUserStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"userStake\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getWithdrawableBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"depositDataRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"withdrawalCredentials\",\"type\":\"bytes\"},{\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"internalType\":\"bytes\",\"name\":\"shares\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"}],\"internalType\":\"structISSVNetworkCore.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"processed\",\"type\":\"bool\"}],\"name\":\"initiatePool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"latestBeaconBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"beaconBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"sweptBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"activatedDeposits\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"completedExits\",\"type\":\"uint256\"}],\"name\":\"rebalanceStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"poolIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint32[]\",\"name\":\"blamePercents\",\"type\":\"uint32[]\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"}],\"internalType\":\"structISSVNetworkCore.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"}],\"name\":\"reportCompletedExit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32[]\",\"name\":\"poolIds\",\"type\":\"uint32[]\"}],\"name\":\"reportForcedExits\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reportPeriod\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"poolId\",\"type\":\"uint32\"},{\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"internalType\":\"uint64[]\",\"name\":\"oldOperatorIds\",\"type\":\"uint64[]\"},{\"internalType\":\"uint64\",\"name\":\"newOperatorId\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"oldOperatorId\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"shares\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"}],\"internalType\":\"structISSVNetworkCore.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"}],\"internalType\":\"structISSVNetworkCore.Cluster\",\"name\":\"oldCluster\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"processed\",\"type\":\"bool\"}],\"name\":\"reportReshare\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"requestCompletedExitReports\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"requestForcedExitReports\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"operatorId\",\"type\":\"uint64\"}],\"name\":\"requestReshares\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"requestWithdrawal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"requestedExits\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"requestedWithdrawalBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"functionsAddress\",\"type\":\"address\"}],\"name\":\"setFunctionsAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"upkeepId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawLINKBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawReservedFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawSSVBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawUpkeepBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}
// MainABI is the input ABI used to generate the binding from.
// Deprecated: Use MainMetaData.ABI instead.
var MainABI = MainMetaData.ABI
// Main is an auto generated Go binding around an Ethereum contract.
type Main struct {
MainCaller // Read-only binding to the contract
MainTransactor // Write-only binding to the contract
MainFilterer // Log filterer for contract events
}
// MainCaller is an auto generated read-only Go binding around an Ethereum contract.
type MainCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// MainTransactor is an auto generated write-only Go binding around an Ethereum contract.
type MainTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// MainFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type MainFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// MainSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type MainSession struct {
Contract *Main // Generic contract binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// MainCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type MainCallerSession struct {
Contract *MainCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// MainTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type MainTransactorSession struct {
Contract *MainTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// MainRaw is an auto generated low-level Go binding around an Ethereum contract.
type MainRaw struct {
Contract *Main // Generic contract binding to access the raw methods on
}
// MainCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type MainCallerRaw struct {
Contract *MainCaller // Generic read-only contract binding to access the raw methods on
}
// MainTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type MainTransactorRaw struct {
Contract *MainTransactor // Generic write-only contract binding to access the raw methods on
}
// NewMain creates a new instance of Main, bound to a specific deployed contract.
func NewMain(address common.Address, backend bind.ContractBackend) (*Main, error) {
contract, err := bindMain(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &Main{MainCaller: MainCaller{contract: contract}, MainTransactor: MainTransactor{contract: contract}, MainFilterer: MainFilterer{contract: contract}}, nil
}
// NewMainCaller creates a new read-only instance of Main, bound to a specific deployed contract.
func NewMainCaller(address common.Address, caller bind.ContractCaller) (*MainCaller, error) {
contract, err := bindMain(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &MainCaller{contract: contract}, nil
}
// NewMainTransactor creates a new write-only instance of Main, bound to a specific deployed contract.
func NewMainTransactor(address common.Address, transactor bind.ContractTransactor) (*MainTransactor, error) {
contract, err := bindMain(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &MainTransactor{contract: contract}, nil
}
// NewMainFilterer creates a new log filterer instance of Main, bound to a specific deployed contract.
func NewMainFilterer(address common.Address, filterer bind.ContractFilterer) (*MainFilterer, error) {
contract, err := bindMain(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &MainFilterer{contract: contract}, nil
}
// bindMain binds a generic wrapper to an already deployed contract.
func bindMain(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(MainABI))
if err != nil {
return nil, err
}
return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_Main *MainRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _Main.Contract.MainCaller.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_Main *MainRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Main.Contract.MainTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Main *MainRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Main.Contract.MainTransactor.contract.Transact(opts, method, params...)
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_Main *MainCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _Main.Contract.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_Main *MainTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Main.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Main *MainTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Main.Contract.contract.Transact(opts, method, params...)
}
// FeePercent is a free data retrieval call binding the contract method 0x7fd6f15c.
//
// Solidity: function feePercent() view returns(uint32)
func (_Main *MainCaller) FeePercent(opts *bind.CallOpts) (uint32, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "feePercent")
if err != nil {
return *new(uint32), err
}
out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32)
return out0, err
}
// FeePercent is a free data retrieval call binding the contract method 0x7fd6f15c.
//
// Solidity: function feePercent() view returns(uint32)
func (_Main *MainSession) FeePercent() (uint32, error) {
return _Main.Contract.FeePercent(&_Main.CallOpts)
}
// FeePercent is a free data retrieval call binding the contract method 0x7fd6f15c.
//
// Solidity: function feePercent() view returns(uint32)
func (_Main *MainCallerSession) FeePercent() (uint32, error) {
return _Main.Contract.FeePercent(&_Main.CallOpts)
}
// FinalizableCompletedExits is a free data retrieval call binding the contract method 0xecd3fc9b.
//
// Solidity: function finalizableCompletedExits() view returns(uint256)
func (_Main *MainCaller) FinalizableCompletedExits(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "finalizableCompletedExits")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// FinalizableCompletedExits is a free data retrieval call binding the contract method 0xecd3fc9b.
//
// Solidity: function finalizableCompletedExits() view returns(uint256)
func (_Main *MainSession) FinalizableCompletedExits() (*big.Int, error) {
return _Main.Contract.FinalizableCompletedExits(&_Main.CallOpts)
}
// FinalizableCompletedExits is a free data retrieval call binding the contract method 0xecd3fc9b.
//
// Solidity: function finalizableCompletedExits() view returns(uint256)
func (_Main *MainCallerSession) FinalizableCompletedExits() (*big.Int, error) {
return _Main.Contract.FinalizableCompletedExits(&_Main.CallOpts)
}
// GetBufferedBalance is a free data retrieval call binding the contract method 0x80637015.
//
// Solidity: function getBufferedBalance() view returns(uint256 bufferedBalance)
func (_Main *MainCaller) GetBufferedBalance(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "getBufferedBalance")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetBufferedBalance is a free data retrieval call binding the contract method 0x80637015.
//
// Solidity: function getBufferedBalance() view returns(uint256 bufferedBalance)
func (_Main *MainSession) GetBufferedBalance() (*big.Int, error) {
return _Main.Contract.GetBufferedBalance(&_Main.CallOpts)
}
// GetBufferedBalance is a free data retrieval call binding the contract method 0x80637015.
//
// Solidity: function getBufferedBalance() view returns(uint256 bufferedBalance)
func (_Main *MainCallerSession) GetBufferedBalance() (*big.Int, error) {
return _Main.Contract.GetBufferedBalance(&_Main.CallOpts)
}
// GetExpectedEffectiveBalance is a free data retrieval call binding the contract method 0xb39c18dd.
//
// Solidity: function getExpectedEffectiveBalance() view returns(uint256 expectedEffectiveBalance)
func (_Main *MainCaller) GetExpectedEffectiveBalance(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "getExpectedEffectiveBalance")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetExpectedEffectiveBalance is a free data retrieval call binding the contract method 0xb39c18dd.
//
// Solidity: function getExpectedEffectiveBalance() view returns(uint256 expectedEffectiveBalance)
func (_Main *MainSession) GetExpectedEffectiveBalance() (*big.Int, error) {
return _Main.Contract.GetExpectedEffectiveBalance(&_Main.CallOpts)
}
// GetExpectedEffectiveBalance is a free data retrieval call binding the contract method 0xb39c18dd.
//
// Solidity: function getExpectedEffectiveBalance() view returns(uint256 expectedEffectiveBalance)
func (_Main *MainCallerSession) GetExpectedEffectiveBalance() (*big.Int, error) {
return _Main.Contract.GetExpectedEffectiveBalance(&_Main.CallOpts)
}
// GetPendingPoolIds is a free data retrieval call binding the contract method 0xd5d2722c.
//
// Solidity: function getPendingPoolIds() view returns(uint32[])
func (_Main *MainCaller) GetPendingPoolIds(opts *bind.CallOpts) ([]uint32, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "getPendingPoolIds")
if err != nil {
return *new([]uint32), err
}
out0 := *abi.ConvertType(out[0], new([]uint32)).(*[]uint32)
return out0, err
}
// GetPendingPoolIds is a free data retrieval call binding the contract method 0xd5d2722c.
//
// Solidity: function getPendingPoolIds() view returns(uint32[])
func (_Main *MainSession) GetPendingPoolIds() ([]uint32, error) {
return _Main.Contract.GetPendingPoolIds(&_Main.CallOpts)
}
// GetPendingPoolIds is a free data retrieval call binding the contract method 0xd5d2722c.
//
// Solidity: function getPendingPoolIds() view returns(uint32[])
func (_Main *MainCallerSession) GetPendingPoolIds() ([]uint32, error) {
return _Main.Contract.GetPendingPoolIds(&_Main.CallOpts)
}
// GetPendingWithdrawalEligibility is a free data retrieval call binding the contract method 0x58c4e72e.
//
// Solidity: function getPendingWithdrawalEligibility(uint256 index, uint256 period) view returns(bool pendingWithdrawalEligibility)
func (_Main *MainCaller) GetPendingWithdrawalEligibility(opts *bind.CallOpts, index *big.Int, period *big.Int) (bool, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "getPendingWithdrawalEligibility", index, period)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// GetPendingWithdrawalEligibility is a free data retrieval call binding the contract method 0x58c4e72e.
//
// Solidity: function getPendingWithdrawalEligibility(uint256 index, uint256 period) view returns(bool pendingWithdrawalEligibility)
func (_Main *MainSession) GetPendingWithdrawalEligibility(index *big.Int, period *big.Int) (bool, error) {
return _Main.Contract.GetPendingWithdrawalEligibility(&_Main.CallOpts, index, period)
}
// GetPendingWithdrawalEligibility is a free data retrieval call binding the contract method 0x58c4e72e.
//
// Solidity: function getPendingWithdrawalEligibility(uint256 index, uint256 period) view returns(bool pendingWithdrawalEligibility)
func (_Main *MainCallerSession) GetPendingWithdrawalEligibility(index *big.Int, period *big.Int) (bool, error) {
return _Main.Contract.GetPendingWithdrawalEligibility(&_Main.CallOpts, index, period)
}
// GetPoolAddress is a free data retrieval call binding the contract method 0xb641a34f.
//
// Solidity: function getPoolAddress(uint32 poolId) view returns(address)
func (_Main *MainCaller) GetPoolAddress(opts *bind.CallOpts, poolId uint32) (common.Address, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "getPoolAddress", poolId)
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// GetPoolAddress is a free data retrieval call binding the contract method 0xb641a34f.
//
// Solidity: function getPoolAddress(uint32 poolId) view returns(address)
func (_Main *MainSession) GetPoolAddress(poolId uint32) (common.Address, error) {
return _Main.Contract.GetPoolAddress(&_Main.CallOpts, poolId)
}
// GetPoolAddress is a free data retrieval call binding the contract method 0xb641a34f.
//
// Solidity: function getPoolAddress(uint32 poolId) view returns(address)
func (_Main *MainCallerSession) GetPoolAddress(poolId uint32) (common.Address, error) {
return _Main.Contract.GetPoolAddress(&_Main.CallOpts, poolId)
}
// GetReadyBalance is a free data retrieval call binding the contract method 0x8ee25ec8.
//
// Solidity: function getReadyBalance() view returns(uint256 readyBalance)
func (_Main *MainCaller) GetReadyBalance(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "getReadyBalance")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetReadyBalance is a free data retrieval call binding the contract method 0x8ee25ec8.
//
// Solidity: function getReadyBalance() view returns(uint256 readyBalance)
func (_Main *MainSession) GetReadyBalance() (*big.Int, error) {
return _Main.Contract.GetReadyBalance(&_Main.CallOpts)
}
// GetReadyBalance is a free data retrieval call binding the contract method 0x8ee25ec8.
//
// Solidity: function getReadyBalance() view returns(uint256 readyBalance)
func (_Main *MainCallerSession) GetReadyBalance() (*big.Int, error) {
return _Main.Contract.GetReadyBalance(&_Main.CallOpts)
}
// GetReadyPoolIds is a free data retrieval call binding the contract method 0x6ee76d67.
//
// Solidity: function getReadyPoolIds() view returns(uint32[])
func (_Main *MainCaller) GetReadyPoolIds(opts *bind.CallOpts) ([]uint32, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "getReadyPoolIds")
if err != nil {
return *new([]uint32), err
}
out0 := *abi.ConvertType(out[0], new([]uint32)).(*[]uint32)
return out0, err
}
// GetReadyPoolIds is a free data retrieval call binding the contract method 0x6ee76d67.
//
// Solidity: function getReadyPoolIds() view returns(uint32[])
func (_Main *MainSession) GetReadyPoolIds() ([]uint32, error) {
return _Main.Contract.GetReadyPoolIds(&_Main.CallOpts)
}
// GetReadyPoolIds is a free data retrieval call binding the contract method 0x6ee76d67.
//
// Solidity: function getReadyPoolIds() view returns(uint32[])
func (_Main *MainCallerSession) GetReadyPoolIds() ([]uint32, error) {
return _Main.Contract.GetReadyPoolIds(&_Main.CallOpts)
}
// GetRegistryAddress is a free data retrieval call binding the contract method 0xf21de1e8.
//
// Solidity: function getRegistryAddress() view returns(address registryAddress)
func (_Main *MainCaller) GetRegistryAddress(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "getRegistryAddress")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// GetRegistryAddress is a free data retrieval call binding the contract method 0xf21de1e8.
//
// Solidity: function getRegistryAddress() view returns(address registryAddress)
func (_Main *MainSession) GetRegistryAddress() (common.Address, error) {
return _Main.Contract.GetRegistryAddress(&_Main.CallOpts)
}
// GetRegistryAddress is a free data retrieval call binding the contract method 0xf21de1e8.
//
// Solidity: function getRegistryAddress() view returns(address registryAddress)
func (_Main *MainCallerSession) GetRegistryAddress() (common.Address, error) {
return _Main.Contract.GetRegistryAddress(&_Main.CallOpts)
}
// GetReservedFeeBalance is a free data retrieval call binding the contract method 0xac8e2953.
//
// Solidity: function getReservedFeeBalance() view returns(uint256)
func (_Main *MainCaller) GetReservedFeeBalance(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "getReservedFeeBalance")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetReservedFeeBalance is a free data retrieval call binding the contract method 0xac8e2953.
//
// Solidity: function getReservedFeeBalance() view returns(uint256)
func (_Main *MainSession) GetReservedFeeBalance() (*big.Int, error) {
return _Main.Contract.GetReservedFeeBalance(&_Main.CallOpts)
}
// GetReservedFeeBalance is a free data retrieval call binding the contract method 0xac8e2953.
//
// Solidity: function getReservedFeeBalance() view returns(uint256)
func (_Main *MainCallerSession) GetReservedFeeBalance() (*big.Int, error) {
return _Main.Contract.GetReservedFeeBalance(&_Main.CallOpts)
}
// GetStakedPoolIds is a free data retrieval call binding the contract method 0x6d83dd5c.
//
// Solidity: function getStakedPoolIds() view returns(uint32[])
func (_Main *MainCaller) GetStakedPoolIds(opts *bind.CallOpts) ([]uint32, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "getStakedPoolIds")
if err != nil {
return *new([]uint32), err
}
out0 := *abi.ConvertType(out[0], new([]uint32)).(*[]uint32)
return out0, err
}
// GetStakedPoolIds is a free data retrieval call binding the contract method 0x6d83dd5c.
//
// Solidity: function getStakedPoolIds() view returns(uint32[])
func (_Main *MainSession) GetStakedPoolIds() ([]uint32, error) {
return _Main.Contract.GetStakedPoolIds(&_Main.CallOpts)
}
// GetStakedPoolIds is a free data retrieval call binding the contract method 0x6d83dd5c.
//
// Solidity: function getStakedPoolIds() view returns(uint32[])
func (_Main *MainCallerSession) GetStakedPoolIds() ([]uint32, error) {
return _Main.Contract.GetStakedPoolIds(&_Main.CallOpts)
}
// GetTotalStake is a free data retrieval call binding the contract method 0x7bc74225.
//
// Solidity: function getTotalStake() view returns(uint256 totalStake)
func (_Main *MainCaller) GetTotalStake(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "getTotalStake")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetTotalStake is a free data retrieval call binding the contract method 0x7bc74225.
//
// Solidity: function getTotalStake() view returns(uint256 totalStake)
func (_Main *MainSession) GetTotalStake() (*big.Int, error) {
return _Main.Contract.GetTotalStake(&_Main.CallOpts)
}
// GetTotalStake is a free data retrieval call binding the contract method 0x7bc74225.
//
// Solidity: function getTotalStake() view returns(uint256 totalStake)
func (_Main *MainCallerSession) GetTotalStake() (*big.Int, error) {
return _Main.Contract.GetTotalStake(&_Main.CallOpts)
}
// GetUpkeepAddress is a free data retrieval call binding the contract method 0xa2089f0e.
//
// Solidity: function getUpkeepAddress() view returns(address upkeepAddress)
func (_Main *MainCaller) GetUpkeepAddress(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "getUpkeepAddress")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// GetUpkeepAddress is a free data retrieval call binding the contract method 0xa2089f0e.
//
// Solidity: function getUpkeepAddress() view returns(address upkeepAddress)
func (_Main *MainSession) GetUpkeepAddress() (common.Address, error) {
return _Main.Contract.GetUpkeepAddress(&_Main.CallOpts)
}
// GetUpkeepAddress is a free data retrieval call binding the contract method 0xa2089f0e.
//
// Solidity: function getUpkeepAddress() view returns(address upkeepAddress)
func (_Main *MainCallerSession) GetUpkeepAddress() (common.Address, error) {
return _Main.Contract.GetUpkeepAddress(&_Main.CallOpts)
}
// GetUpkeepBalance is a free data retrieval call binding the contract method 0x131f66d2.
//
// Solidity: function getUpkeepBalance() view returns(uint256 upkeepBalance)
func (_Main *MainCaller) GetUpkeepBalance(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "getUpkeepBalance")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetUpkeepBalance is a free data retrieval call binding the contract method 0x131f66d2.
//
// Solidity: function getUpkeepBalance() view returns(uint256 upkeepBalance)
func (_Main *MainSession) GetUpkeepBalance() (*big.Int, error) {
return _Main.Contract.GetUpkeepBalance(&_Main.CallOpts)
}
// GetUpkeepBalance is a free data retrieval call binding the contract method 0x131f66d2.
//
// Solidity: function getUpkeepBalance() view returns(uint256 upkeepBalance)
func (_Main *MainCallerSession) GetUpkeepBalance() (*big.Int, error) {
return _Main.Contract.GetUpkeepBalance(&_Main.CallOpts)
}
// GetUserStake is a free data retrieval call binding the contract method 0xbbadc93a.
//
// Solidity: function getUserStake(address userAddress) view returns(uint256 userStake)
func (_Main *MainCaller) GetUserStake(opts *bind.CallOpts, userAddress common.Address) (*big.Int, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "getUserStake", userAddress)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetUserStake is a free data retrieval call binding the contract method 0xbbadc93a.
//
// Solidity: function getUserStake(address userAddress) view returns(uint256 userStake)
func (_Main *MainSession) GetUserStake(userAddress common.Address) (*big.Int, error) {
return _Main.Contract.GetUserStake(&_Main.CallOpts, userAddress)
}
// GetUserStake is a free data retrieval call binding the contract method 0xbbadc93a.
//
// Solidity: function getUserStake(address userAddress) view returns(uint256 userStake)
func (_Main *MainCallerSession) GetUserStake(userAddress common.Address) (*big.Int, error) {
return _Main.Contract.GetUserStake(&_Main.CallOpts, userAddress)
}
// GetWithdrawableBalance is a free data retrieval call binding the contract method 0xbe788e70.
//
// Solidity: function getWithdrawableBalance() view returns(uint256)
func (_Main *MainCaller) GetWithdrawableBalance(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "getWithdrawableBalance")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetWithdrawableBalance is a free data retrieval call binding the contract method 0xbe788e70.
//
// Solidity: function getWithdrawableBalance() view returns(uint256)
func (_Main *MainSession) GetWithdrawableBalance() (*big.Int, error) {
return _Main.Contract.GetWithdrawableBalance(&_Main.CallOpts)
}
// GetWithdrawableBalance is a free data retrieval call binding the contract method 0xbe788e70.
//
// Solidity: function getWithdrawableBalance() view returns(uint256)
func (_Main *MainCallerSession) GetWithdrawableBalance() (*big.Int, error) {
return _Main.Contract.GetWithdrawableBalance(&_Main.CallOpts)
}
// LatestBeaconBalance is a free data retrieval call binding the contract method 0xce54d3e3.
//
// Solidity: function latestBeaconBalance() view returns(uint256)
func (_Main *MainCaller) LatestBeaconBalance(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "latestBeaconBalance")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// LatestBeaconBalance is a free data retrieval call binding the contract method 0xce54d3e3.
//
// Solidity: function latestBeaconBalance() view returns(uint256)
func (_Main *MainSession) LatestBeaconBalance() (*big.Int, error) {
return _Main.Contract.LatestBeaconBalance(&_Main.CallOpts)
}
// LatestBeaconBalance is a free data retrieval call binding the contract method 0xce54d3e3.
//
// Solidity: function latestBeaconBalance() view returns(uint256)
func (_Main *MainCallerSession) LatestBeaconBalance() (*big.Int, error) {
return _Main.Contract.LatestBeaconBalance(&_Main.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_Main *MainCaller) Owner(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "owner")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_Main *MainSession) Owner() (common.Address, error) {
return _Main.Contract.Owner(&_Main.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_Main *MainCallerSession) Owner() (common.Address, error) {
return _Main.Contract.Owner(&_Main.CallOpts)
}
// ReportPeriod is a free data retrieval call binding the contract method 0x0ea61dad.
//
// Solidity: function reportPeriod() view returns(uint32)
func (_Main *MainCaller) ReportPeriod(opts *bind.CallOpts) (uint32, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "reportPeriod")
if err != nil {
return *new(uint32), err
}
out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32)
return out0, err
}
// ReportPeriod is a free data retrieval call binding the contract method 0x0ea61dad.
//
// Solidity: function reportPeriod() view returns(uint32)
func (_Main *MainSession) ReportPeriod() (uint32, error) {
return _Main.Contract.ReportPeriod(&_Main.CallOpts)
}
// ReportPeriod is a free data retrieval call binding the contract method 0x0ea61dad.
//
// Solidity: function reportPeriod() view returns(uint32)
func (_Main *MainCallerSession) ReportPeriod() (uint32, error) {
return _Main.Contract.ReportPeriod(&_Main.CallOpts)
}
// RequestedExits is a free data retrieval call binding the contract method 0xea79ae89.
//
// Solidity: function requestedExits() view returns(uint256)
func (_Main *MainCaller) RequestedExits(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "requestedExits")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// RequestedExits is a free data retrieval call binding the contract method 0xea79ae89.
//
// Solidity: function requestedExits() view returns(uint256)
func (_Main *MainSession) RequestedExits() (*big.Int, error) {
return _Main.Contract.RequestedExits(&_Main.CallOpts)
}
// RequestedExits is a free data retrieval call binding the contract method 0xea79ae89.
//
// Solidity: function requestedExits() view returns(uint256)
func (_Main *MainCallerSession) RequestedExits() (*big.Int, error) {
return _Main.Contract.RequestedExits(&_Main.CallOpts)
}
// RequestedWithdrawalBalance is a free data retrieval call binding the contract method 0xa0b297d3.
//
// Solidity: function requestedWithdrawalBalance() view returns(uint256)
func (_Main *MainCaller) RequestedWithdrawalBalance(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "requestedWithdrawalBalance")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// RequestedWithdrawalBalance is a free data retrieval call binding the contract method 0xa0b297d3.
//
// Solidity: function requestedWithdrawalBalance() view returns(uint256)
func (_Main *MainSession) RequestedWithdrawalBalance() (*big.Int, error) {
return _Main.Contract.RequestedWithdrawalBalance(&_Main.CallOpts)
}
// RequestedWithdrawalBalance is a free data retrieval call binding the contract method 0xa0b297d3.
//
// Solidity: function requestedWithdrawalBalance() view returns(uint256)
func (_Main *MainCallerSession) RequestedWithdrawalBalance() (*big.Int, error) {
return _Main.Contract.RequestedWithdrawalBalance(&_Main.CallOpts)
}
// UpkeepId is a free data retrieval call binding the contract method 0xd2aa789f.
//
// Solidity: function upkeepId() view returns(uint256)
func (_Main *MainCaller) UpkeepId(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Main.contract.Call(opts, &out, "upkeepId")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// UpkeepId is a free data retrieval call binding the contract method 0xd2aa789f.
//
// Solidity: function upkeepId() view returns(uint256)
func (_Main *MainSession) UpkeepId() (*big.Int, error) {
return _Main.Contract.UpkeepId(&_Main.CallOpts)
}
// UpkeepId is a free data retrieval call binding the contract method 0xd2aa789f.
//
// Solidity: function upkeepId() view returns(uint256)
func (_Main *MainCallerSession) UpkeepId() (*big.Int, error) {
return _Main.Contract.UpkeepId(&_Main.CallOpts)
}
// ActivateDeposits is a paid mutator transaction binding the contract method 0xb592a6c8.
//
// Solidity: function requestActivations(uint256 count) returns()
func (_Main *MainTransactor) ActivateDeposits(opts *bind.TransactOpts, count *big.Int) (*types.Transaction, error) {
return _Main.contract.Transact(opts, "requestActivations", count)
}
// ActivateDeposits is a paid mutator transaction binding the contract method 0xb592a6c8.
//
// Solidity: function requestActivations(uint256 count) returns()
func (_Main *MainSession) ActivateDeposits(count *big.Int) (*types.Transaction, error) {
return _Main.Contract.ActivateDeposits(&_Main.TransactOpts, count)
}
// ActivateDeposits is a paid mutator transaction binding the contract method 0xb592a6c8.
//
// Solidity: function requestActivations(uint256 count) returns()
func (_Main *MainTransactorSession) ActivateDeposits(count *big.Int) (*types.Transaction, error) {
return _Main.Contract.ActivateDeposits(&_Main.TransactOpts, count)
}
// CompoundRewards is a paid mutator transaction binding the contract method 0x1ae0f14a.
//
// Solidity: function compoundRewards(uint32[5] poolIds) returns()
func (_Main *MainTransactor) CompoundRewards(opts *bind.TransactOpts, poolIds [5]uint32) (*types.Transaction, error) {
return _Main.contract.Transact(opts, "compoundRewards", poolIds)
}
// CompoundRewards is a paid mutator transaction binding the contract method 0x1ae0f14a.
//
// Solidity: function compoundRewards(uint32[5] poolIds) returns()
func (_Main *MainSession) CompoundRewards(poolIds [5]uint32) (*types.Transaction, error) {
return _Main.Contract.CompoundRewards(&_Main.TransactOpts, poolIds)
}
// CompoundRewards is a paid mutator transaction binding the contract method 0x1ae0f14a.
//
// Solidity: function compoundRewards(uint32[5] poolIds) returns()
func (_Main *MainTransactorSession) CompoundRewards(poolIds [5]uint32) (*types.Transaction, error) {
return _Main.Contract.CompoundRewards(&_Main.TransactOpts, poolIds)
}
// DepositClusterBalance is a paid mutator transaction binding the contract method 0x2729fad1.
//
// Solidity: function depositClusterBalance(uint64[] operatorIds, (uint32,uint64,uint64,uint256,bool) cluster, uint256 feeAmount, bool processed) returns()
func (_Main *MainTransactor) DepositClusterBalance(opts *bind.TransactOpts, operatorIds []uint64, cluster ISSVNetworkCoreCluster, feeAmount *big.Int, processed bool) (*types.Transaction, error) {
return _Main.contract.Transact(opts, "depositClusterBalance", operatorIds, cluster, feeAmount, processed)
}
// DepositClusterBalance is a paid mutator transaction binding the contract method 0x2729fad1.
//
// Solidity: function depositClusterBalance(uint64[] operatorIds, (uint32,uint64,uint64,uint256,bool) cluster, uint256 feeAmount, bool processed) returns()
func (_Main *MainSession) DepositClusterBalance(operatorIds []uint64, cluster ISSVNetworkCoreCluster, feeAmount *big.Int, processed bool) (*types.Transaction, error) {
return _Main.Contract.DepositClusterBalance(&_Main.TransactOpts, operatorIds, cluster, feeAmount, processed)
}
// DepositClusterBalance is a paid mutator transaction binding the contract method 0x2729fad1.
//
// Solidity: function depositClusterBalance(uint64[] operatorIds, (uint32,uint64,uint64,uint256,bool) cluster, uint256 feeAmount, bool processed) returns()
func (_Main *MainTransactorSession) DepositClusterBalance(operatorIds []uint64, cluster ISSVNetworkCoreCluster, feeAmount *big.Int, processed bool) (*types.Transaction, error) {
return _Main.Contract.DepositClusterBalance(&_Main.TransactOpts, operatorIds, cluster, feeAmount, processed)
}
// DepositExitedBalance is a paid mutator transaction binding the contract method 0x457cf6ae.
//
// Solidity: function depositExitedBalance(uint32 poolId) payable returns()
func (_Main *MainTransactor) DepositExitedBalance(opts *bind.TransactOpts, poolId uint32) (*types.Transaction, error) {
return _Main.contract.Transact(opts, "depositExitedBalance", poolId)
}
// DepositExitedBalance is a paid mutator transaction binding the contract method 0x457cf6ae.
//
// Solidity: function depositExitedBalance(uint32 poolId) payable returns()
func (_Main *MainSession) DepositExitedBalance(poolId uint32) (*types.Transaction, error) {
return _Main.Contract.DepositExitedBalance(&_Main.TransactOpts, poolId)
}
// DepositExitedBalance is a paid mutator transaction binding the contract method 0x457cf6ae.
//
// Solidity: function depositExitedBalance(uint32 poolId) payable returns()
func (_Main *MainTransactorSession) DepositExitedBalance(poolId uint32) (*types.Transaction, error) {
return _Main.Contract.DepositExitedBalance(&_Main.TransactOpts, poolId)
}
// DepositRecoveredBalance is a paid mutator transaction binding the contract method 0xcc487398.
//
// Solidity: function depositRecoveredBalance(uint32 poolId) payable returns()
func (_Main *MainTransactor) DepositRecoveredBalance(opts *bind.TransactOpts, poolId uint32) (*types.Transaction, error) {
return _Main.contract.Transact(opts, "depositRecoveredBalance", poolId)
}
// DepositRecoveredBalance is a paid mutator transaction binding the contract method 0xcc487398.
//
// Solidity: function depositRecoveredBalance(uint32 poolId) payable returns()
func (_Main *MainSession) DepositRecoveredBalance(poolId uint32) (*types.Transaction, error) {
return _Main.Contract.DepositRecoveredBalance(&_Main.TransactOpts, poolId)
}