/
LightNode.go
1574 lines (1328 loc) · 67.9 KB
/
LightNode.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 light_node
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
)
// LightNodeMetaData contains all meta data concerning the LightNode contract.
var LightNodeMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stafiStorageAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"pubkey\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"validatorSignature\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Deposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"EtherDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"pubkey\",\"type\":\"bytes\"}],\"name\":\"OffBoarded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"pubkey\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"status\",\"type\":\"uint256\"}],\"name\":\"SetPubkeyStatus\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"pubkey\",\"type\":\"bytes\"}],\"name\":\"Staked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_CANWITHDRAW\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_INITIAL\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_MATCH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_OFFBOARD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_STAKING\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_UNINITIAL\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_UNMATCH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PUBKEY_STATUS_WITHDRAWED\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PubkeySetStorage\",\"outputs\":[{\"internalType\":\"contractIPubkeySetStorage\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"_validatorPubkeys\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes[]\",\"name\":\"_validatorSignatures\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"_depositDataRoots\",\"type\":\"bytes32[]\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositEth\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentNodeDepositAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLightNodeDepositEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"getLightNodePubkeyAt\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nodeAddress\",\"type\":\"address\"}],\"name\":\"getLightNodePubkeyCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_validatorPubkey\",\"type\":\"bytes\"}],\"name\":\"getLightNodePubkeyStatus\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_validatorPubkey\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getPubkeyVoted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_validatorPubkey\",\"type\":\"bytes\"}],\"name\":\"offBoard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_validatorPubkey\",\"type\":\"bytes\"}],\"name\":\"provideNodeDepositToken\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"receiveEtherWithdrawal\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_value\",\"type\":\"bool\"}],\"name\":\"setLightNodeDepositEnabled\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_validatorPubkey\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_status\",\"type\":\"uint256\"}],\"name\":\"setLightNodePubkeyStatus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"_validatorPubkeys\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes[]\",\"name\":\"_validatorSignatures\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"_depositDataRoots\",\"type\":\"bytes32[]\"}],\"name\":\"stake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"_pubkeys\",\"type\":\"bytes[]\"},{\"internalType\":\"bool[]\",\"name\":\"_matchs\",\"type\":\"bool[]\"}],\"name\":\"voteWithdrawCredentials\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_validatorPubkey\",\"type\":\"bytes\"}],\"name\":\"withdrawNodeDepositToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
// LightNodeABI is the input ABI used to generate the binding from.
// Deprecated: Use LightNodeMetaData.ABI instead.
var LightNodeABI = LightNodeMetaData.ABI
// LightNode is an auto generated Go binding around an Ethereum contract.
type LightNode struct {
LightNodeCaller // Read-only binding to the contract
LightNodeTransactor // Write-only binding to the contract
LightNodeFilterer // Log filterer for contract events
}
// LightNodeCaller is an auto generated read-only Go binding around an Ethereum contract.
type LightNodeCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// LightNodeTransactor is an auto generated write-only Go binding around an Ethereum contract.
type LightNodeTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// LightNodeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type LightNodeFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// LightNodeSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type LightNodeSession struct {
Contract *LightNode // 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
}
// LightNodeCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type LightNodeCallerSession struct {
Contract *LightNodeCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// LightNodeTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type LightNodeTransactorSession struct {
Contract *LightNodeTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// LightNodeRaw is an auto generated low-level Go binding around an Ethereum contract.
type LightNodeRaw struct {
Contract *LightNode // Generic contract binding to access the raw methods on
}
// LightNodeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type LightNodeCallerRaw struct {
Contract *LightNodeCaller // Generic read-only contract binding to access the raw methods on
}
// LightNodeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type LightNodeTransactorRaw struct {
Contract *LightNodeTransactor // Generic write-only contract binding to access the raw methods on
}
// NewLightNode creates a new instance of LightNode, bound to a specific deployed contract.
func NewLightNode(address common.Address, backend bind.ContractBackend) (*LightNode, error) {
contract, err := bindLightNode(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &LightNode{LightNodeCaller: LightNodeCaller{contract: contract}, LightNodeTransactor: LightNodeTransactor{contract: contract}, LightNodeFilterer: LightNodeFilterer{contract: contract}}, nil
}
// NewLightNodeCaller creates a new read-only instance of LightNode, bound to a specific deployed contract.
func NewLightNodeCaller(address common.Address, caller bind.ContractCaller) (*LightNodeCaller, error) {
contract, err := bindLightNode(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &LightNodeCaller{contract: contract}, nil
}
// NewLightNodeTransactor creates a new write-only instance of LightNode, bound to a specific deployed contract.
func NewLightNodeTransactor(address common.Address, transactor bind.ContractTransactor) (*LightNodeTransactor, error) {
contract, err := bindLightNode(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &LightNodeTransactor{contract: contract}, nil
}
// NewLightNodeFilterer creates a new log filterer instance of LightNode, bound to a specific deployed contract.
func NewLightNodeFilterer(address common.Address, filterer bind.ContractFilterer) (*LightNodeFilterer, error) {
contract, err := bindLightNode(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &LightNodeFilterer{contract: contract}, nil
}
// bindLightNode binds a generic wrapper to an already deployed contract.
func bindLightNode(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(LightNodeABI))
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 (_LightNode *LightNodeRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _LightNode.Contract.LightNodeCaller.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 (_LightNode *LightNodeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _LightNode.Contract.LightNodeTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_LightNode *LightNodeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _LightNode.Contract.LightNodeTransactor.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 (_LightNode *LightNodeCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _LightNode.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 (_LightNode *LightNodeTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _LightNode.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_LightNode *LightNodeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _LightNode.Contract.contract.Transact(opts, method, params...)
}
// PUBKEYSTATUSCANWITHDRAW is a free data retrieval call binding the contract method 0x1e8bc826.
//
// Solidity: function PUBKEY_STATUS_CANWITHDRAW() view returns(uint256)
func (_LightNode *LightNodeCaller) PUBKEYSTATUSCANWITHDRAW(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "PUBKEY_STATUS_CANWITHDRAW")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// PUBKEYSTATUSCANWITHDRAW is a free data retrieval call binding the contract method 0x1e8bc826.
//
// Solidity: function PUBKEY_STATUS_CANWITHDRAW() view returns(uint256)
func (_LightNode *LightNodeSession) PUBKEYSTATUSCANWITHDRAW() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSCANWITHDRAW(&_LightNode.CallOpts)
}
// PUBKEYSTATUSCANWITHDRAW is a free data retrieval call binding the contract method 0x1e8bc826.
//
// Solidity: function PUBKEY_STATUS_CANWITHDRAW() view returns(uint256)
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSCANWITHDRAW() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSCANWITHDRAW(&_LightNode.CallOpts)
}
// PUBKEYSTATUSINITIAL is a free data retrieval call binding the contract method 0xae3e885a.
//
// Solidity: function PUBKEY_STATUS_INITIAL() view returns(uint256)
func (_LightNode *LightNodeCaller) PUBKEYSTATUSINITIAL(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "PUBKEY_STATUS_INITIAL")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// PUBKEYSTATUSINITIAL is a free data retrieval call binding the contract method 0xae3e885a.
//
// Solidity: function PUBKEY_STATUS_INITIAL() view returns(uint256)
func (_LightNode *LightNodeSession) PUBKEYSTATUSINITIAL() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSINITIAL(&_LightNode.CallOpts)
}
// PUBKEYSTATUSINITIAL is a free data retrieval call binding the contract method 0xae3e885a.
//
// Solidity: function PUBKEY_STATUS_INITIAL() view returns(uint256)
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSINITIAL() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSINITIAL(&_LightNode.CallOpts)
}
// PUBKEYSTATUSMATCH is a free data retrieval call binding the contract method 0x64f14dba.
//
// Solidity: function PUBKEY_STATUS_MATCH() view returns(uint256)
func (_LightNode *LightNodeCaller) PUBKEYSTATUSMATCH(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "PUBKEY_STATUS_MATCH")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// PUBKEYSTATUSMATCH is a free data retrieval call binding the contract method 0x64f14dba.
//
// Solidity: function PUBKEY_STATUS_MATCH() view returns(uint256)
func (_LightNode *LightNodeSession) PUBKEYSTATUSMATCH() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSMATCH(&_LightNode.CallOpts)
}
// PUBKEYSTATUSMATCH is a free data retrieval call binding the contract method 0x64f14dba.
//
// Solidity: function PUBKEY_STATUS_MATCH() view returns(uint256)
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSMATCH() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSMATCH(&_LightNode.CallOpts)
}
// PUBKEYSTATUSOFFBOARD is a free data retrieval call binding the contract method 0x9532e08a.
//
// Solidity: function PUBKEY_STATUS_OFFBOARD() view returns(uint256)
func (_LightNode *LightNodeCaller) PUBKEYSTATUSOFFBOARD(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "PUBKEY_STATUS_OFFBOARD")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// PUBKEYSTATUSOFFBOARD is a free data retrieval call binding the contract method 0x9532e08a.
//
// Solidity: function PUBKEY_STATUS_OFFBOARD() view returns(uint256)
func (_LightNode *LightNodeSession) PUBKEYSTATUSOFFBOARD() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSOFFBOARD(&_LightNode.CallOpts)
}
// PUBKEYSTATUSOFFBOARD is a free data retrieval call binding the contract method 0x9532e08a.
//
// Solidity: function PUBKEY_STATUS_OFFBOARD() view returns(uint256)
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSOFFBOARD() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSOFFBOARD(&_LightNode.CallOpts)
}
// PUBKEYSTATUSSTAKING is a free data retrieval call binding the contract method 0x40ce18a0.
//
// Solidity: function PUBKEY_STATUS_STAKING() view returns(uint256)
func (_LightNode *LightNodeCaller) PUBKEYSTATUSSTAKING(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "PUBKEY_STATUS_STAKING")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// PUBKEYSTATUSSTAKING is a free data retrieval call binding the contract method 0x40ce18a0.
//
// Solidity: function PUBKEY_STATUS_STAKING() view returns(uint256)
func (_LightNode *LightNodeSession) PUBKEYSTATUSSTAKING() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSSTAKING(&_LightNode.CallOpts)
}
// PUBKEYSTATUSSTAKING is a free data retrieval call binding the contract method 0x40ce18a0.
//
// Solidity: function PUBKEY_STATUS_STAKING() view returns(uint256)
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSSTAKING() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSSTAKING(&_LightNode.CallOpts)
}
// PUBKEYSTATUSUNINITIAL is a free data retrieval call binding the contract method 0x3f25522d.
//
// Solidity: function PUBKEY_STATUS_UNINITIAL() view returns(uint256)
func (_LightNode *LightNodeCaller) PUBKEYSTATUSUNINITIAL(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "PUBKEY_STATUS_UNINITIAL")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// PUBKEYSTATUSUNINITIAL is a free data retrieval call binding the contract method 0x3f25522d.
//
// Solidity: function PUBKEY_STATUS_UNINITIAL() view returns(uint256)
func (_LightNode *LightNodeSession) PUBKEYSTATUSUNINITIAL() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSUNINITIAL(&_LightNode.CallOpts)
}
// PUBKEYSTATUSUNINITIAL is a free data retrieval call binding the contract method 0x3f25522d.
//
// Solidity: function PUBKEY_STATUS_UNINITIAL() view returns(uint256)
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSUNINITIAL() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSUNINITIAL(&_LightNode.CallOpts)
}
// PUBKEYSTATUSUNMATCH is a free data retrieval call binding the contract method 0x09ba5933.
//
// Solidity: function PUBKEY_STATUS_UNMATCH() view returns(uint256)
func (_LightNode *LightNodeCaller) PUBKEYSTATUSUNMATCH(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "PUBKEY_STATUS_UNMATCH")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// PUBKEYSTATUSUNMATCH is a free data retrieval call binding the contract method 0x09ba5933.
//
// Solidity: function PUBKEY_STATUS_UNMATCH() view returns(uint256)
func (_LightNode *LightNodeSession) PUBKEYSTATUSUNMATCH() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSUNMATCH(&_LightNode.CallOpts)
}
// PUBKEYSTATUSUNMATCH is a free data retrieval call binding the contract method 0x09ba5933.
//
// Solidity: function PUBKEY_STATUS_UNMATCH() view returns(uint256)
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSUNMATCH() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSUNMATCH(&_LightNode.CallOpts)
}
// PUBKEYSTATUSWITHDRAWED is a free data retrieval call binding the contract method 0x68d25fe8.
//
// Solidity: function PUBKEY_STATUS_WITHDRAWED() view returns(uint256)
func (_LightNode *LightNodeCaller) PUBKEYSTATUSWITHDRAWED(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "PUBKEY_STATUS_WITHDRAWED")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// PUBKEYSTATUSWITHDRAWED is a free data retrieval call binding the contract method 0x68d25fe8.
//
// Solidity: function PUBKEY_STATUS_WITHDRAWED() view returns(uint256)
func (_LightNode *LightNodeSession) PUBKEYSTATUSWITHDRAWED() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSWITHDRAWED(&_LightNode.CallOpts)
}
// PUBKEYSTATUSWITHDRAWED is a free data retrieval call binding the contract method 0x68d25fe8.
//
// Solidity: function PUBKEY_STATUS_WITHDRAWED() view returns(uint256)
func (_LightNode *LightNodeCallerSession) PUBKEYSTATUSWITHDRAWED() (*big.Int, error) {
return _LightNode.Contract.PUBKEYSTATUSWITHDRAWED(&_LightNode.CallOpts)
}
// PubkeySetStorage is a free data retrieval call binding the contract method 0x90d76417.
//
// Solidity: function PubkeySetStorage() view returns(address)
func (_LightNode *LightNodeCaller) PubkeySetStorage(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "PubkeySetStorage")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// PubkeySetStorage is a free data retrieval call binding the contract method 0x90d76417.
//
// Solidity: function PubkeySetStorage() view returns(address)
func (_LightNode *LightNodeSession) PubkeySetStorage() (common.Address, error) {
return _LightNode.Contract.PubkeySetStorage(&_LightNode.CallOpts)
}
// PubkeySetStorage is a free data retrieval call binding the contract method 0x90d76417.
//
// Solidity: function PubkeySetStorage() view returns(address)
func (_LightNode *LightNodeCallerSession) PubkeySetStorage() (common.Address, error) {
return _LightNode.Contract.PubkeySetStorage(&_LightNode.CallOpts)
}
// GetCurrentNodeDepositAmount is a free data retrieval call binding the contract method 0x83f3f086.
//
// Solidity: function getCurrentNodeDepositAmount() view returns(uint256)
func (_LightNode *LightNodeCaller) GetCurrentNodeDepositAmount(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "getCurrentNodeDepositAmount")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetCurrentNodeDepositAmount is a free data retrieval call binding the contract method 0x83f3f086.
//
// Solidity: function getCurrentNodeDepositAmount() view returns(uint256)
func (_LightNode *LightNodeSession) GetCurrentNodeDepositAmount() (*big.Int, error) {
return _LightNode.Contract.GetCurrentNodeDepositAmount(&_LightNode.CallOpts)
}
// GetCurrentNodeDepositAmount is a free data retrieval call binding the contract method 0x83f3f086.
//
// Solidity: function getCurrentNodeDepositAmount() view returns(uint256)
func (_LightNode *LightNodeCallerSession) GetCurrentNodeDepositAmount() (*big.Int, error) {
return _LightNode.Contract.GetCurrentNodeDepositAmount(&_LightNode.CallOpts)
}
// GetLightNodeDepositEnabled is a free data retrieval call binding the contract method 0xa32cb341.
//
// Solidity: function getLightNodeDepositEnabled() view returns(bool)
func (_LightNode *LightNodeCaller) GetLightNodeDepositEnabled(opts *bind.CallOpts) (bool, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "getLightNodeDepositEnabled")
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// GetLightNodeDepositEnabled is a free data retrieval call binding the contract method 0xa32cb341.
//
// Solidity: function getLightNodeDepositEnabled() view returns(bool)
func (_LightNode *LightNodeSession) GetLightNodeDepositEnabled() (bool, error) {
return _LightNode.Contract.GetLightNodeDepositEnabled(&_LightNode.CallOpts)
}
// GetLightNodeDepositEnabled is a free data retrieval call binding the contract method 0xa32cb341.
//
// Solidity: function getLightNodeDepositEnabled() view returns(bool)
func (_LightNode *LightNodeCallerSession) GetLightNodeDepositEnabled() (bool, error) {
return _LightNode.Contract.GetLightNodeDepositEnabled(&_LightNode.CallOpts)
}
// GetLightNodePubkeyAt is a free data retrieval call binding the contract method 0xba7fe814.
//
// Solidity: function getLightNodePubkeyAt(address _nodeAddress, uint256 _index) view returns(bytes)
func (_LightNode *LightNodeCaller) GetLightNodePubkeyAt(opts *bind.CallOpts, _nodeAddress common.Address, _index *big.Int) ([]byte, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "getLightNodePubkeyAt", _nodeAddress, _index)
if err != nil {
return *new([]byte), err
}
out0 := *abi.ConvertType(out[0], new([]byte)).(*[]byte)
return out0, err
}
// GetLightNodePubkeyAt is a free data retrieval call binding the contract method 0xba7fe814.
//
// Solidity: function getLightNodePubkeyAt(address _nodeAddress, uint256 _index) view returns(bytes)
func (_LightNode *LightNodeSession) GetLightNodePubkeyAt(_nodeAddress common.Address, _index *big.Int) ([]byte, error) {
return _LightNode.Contract.GetLightNodePubkeyAt(&_LightNode.CallOpts, _nodeAddress, _index)
}
// GetLightNodePubkeyAt is a free data retrieval call binding the contract method 0xba7fe814.
//
// Solidity: function getLightNodePubkeyAt(address _nodeAddress, uint256 _index) view returns(bytes)
func (_LightNode *LightNodeCallerSession) GetLightNodePubkeyAt(_nodeAddress common.Address, _index *big.Int) ([]byte, error) {
return _LightNode.Contract.GetLightNodePubkeyAt(&_LightNode.CallOpts, _nodeAddress, _index)
}
// GetLightNodePubkeyCount is a free data retrieval call binding the contract method 0xccdf1d79.
//
// Solidity: function getLightNodePubkeyCount(address _nodeAddress) view returns(uint256)
func (_LightNode *LightNodeCaller) GetLightNodePubkeyCount(opts *bind.CallOpts, _nodeAddress common.Address) (*big.Int, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "getLightNodePubkeyCount", _nodeAddress)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetLightNodePubkeyCount is a free data retrieval call binding the contract method 0xccdf1d79.
//
// Solidity: function getLightNodePubkeyCount(address _nodeAddress) view returns(uint256)
func (_LightNode *LightNodeSession) GetLightNodePubkeyCount(_nodeAddress common.Address) (*big.Int, error) {
return _LightNode.Contract.GetLightNodePubkeyCount(&_LightNode.CallOpts, _nodeAddress)
}
// GetLightNodePubkeyCount is a free data retrieval call binding the contract method 0xccdf1d79.
//
// Solidity: function getLightNodePubkeyCount(address _nodeAddress) view returns(uint256)
func (_LightNode *LightNodeCallerSession) GetLightNodePubkeyCount(_nodeAddress common.Address) (*big.Int, error) {
return _LightNode.Contract.GetLightNodePubkeyCount(&_LightNode.CallOpts, _nodeAddress)
}
// GetLightNodePubkeyStatus is a free data retrieval call binding the contract method 0xa37212cb.
//
// Solidity: function getLightNodePubkeyStatus(bytes _validatorPubkey) view returns(uint256)
func (_LightNode *LightNodeCaller) GetLightNodePubkeyStatus(opts *bind.CallOpts, _validatorPubkey []byte) (*big.Int, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "getLightNodePubkeyStatus", _validatorPubkey)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetLightNodePubkeyStatus is a free data retrieval call binding the contract method 0xa37212cb.
//
// Solidity: function getLightNodePubkeyStatus(bytes _validatorPubkey) view returns(uint256)
func (_LightNode *LightNodeSession) GetLightNodePubkeyStatus(_validatorPubkey []byte) (*big.Int, error) {
return _LightNode.Contract.GetLightNodePubkeyStatus(&_LightNode.CallOpts, _validatorPubkey)
}
// GetLightNodePubkeyStatus is a free data retrieval call binding the contract method 0xa37212cb.
//
// Solidity: function getLightNodePubkeyStatus(bytes _validatorPubkey) view returns(uint256)
func (_LightNode *LightNodeCallerSession) GetLightNodePubkeyStatus(_validatorPubkey []byte) (*big.Int, error) {
return _LightNode.Contract.GetLightNodePubkeyStatus(&_LightNode.CallOpts, _validatorPubkey)
}
// GetPubkeyVoted is a free data retrieval call binding the contract method 0x18582e28.
//
// Solidity: function getPubkeyVoted(bytes _validatorPubkey, address user) view returns(bool)
func (_LightNode *LightNodeCaller) GetPubkeyVoted(opts *bind.CallOpts, _validatorPubkey []byte, user common.Address) (bool, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "getPubkeyVoted", _validatorPubkey, user)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// GetPubkeyVoted is a free data retrieval call binding the contract method 0x18582e28.
//
// Solidity: function getPubkeyVoted(bytes _validatorPubkey, address user) view returns(bool)
func (_LightNode *LightNodeSession) GetPubkeyVoted(_validatorPubkey []byte, user common.Address) (bool, error) {
return _LightNode.Contract.GetPubkeyVoted(&_LightNode.CallOpts, _validatorPubkey, user)
}
// GetPubkeyVoted is a free data retrieval call binding the contract method 0x18582e28.
//
// Solidity: function getPubkeyVoted(bytes _validatorPubkey, address user) view returns(bool)
func (_LightNode *LightNodeCallerSession) GetPubkeyVoted(_validatorPubkey []byte, user common.Address) (bool, error) {
return _LightNode.Contract.GetPubkeyVoted(&_LightNode.CallOpts, _validatorPubkey, user)
}
// Version is a free data retrieval call binding the contract method 0x54fd4d50.
//
// Solidity: function version() view returns(uint8)
func (_LightNode *LightNodeCaller) Version(opts *bind.CallOpts) (uint8, error) {
var out []interface{}
err := _LightNode.contract.Call(opts, &out, "version")
if err != nil {
return *new(uint8), err
}
out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8)
return out0, err
}
// Version is a free data retrieval call binding the contract method 0x54fd4d50.
//
// Solidity: function version() view returns(uint8)
func (_LightNode *LightNodeSession) Version() (uint8, error) {
return _LightNode.Contract.Version(&_LightNode.CallOpts)
}
// Version is a free data retrieval call binding the contract method 0x54fd4d50.
//
// Solidity: function version() view returns(uint8)
func (_LightNode *LightNodeCallerSession) Version() (uint8, error) {
return _LightNode.Contract.Version(&_LightNode.CallOpts)
}
// Deposit is a paid mutator transaction binding the contract method 0xd46221f9.
//
// Solidity: function deposit(bytes[] _validatorPubkeys, bytes[] _validatorSignatures, bytes32[] _depositDataRoots) payable returns()
func (_LightNode *LightNodeTransactor) Deposit(opts *bind.TransactOpts, _validatorPubkeys [][]byte, _validatorSignatures [][]byte, _depositDataRoots [][32]byte) (*types.Transaction, error) {
return _LightNode.contract.Transact(opts, "deposit", _validatorPubkeys, _validatorSignatures, _depositDataRoots)
}
// Deposit is a paid mutator transaction binding the contract method 0xd46221f9.
//
// Solidity: function deposit(bytes[] _validatorPubkeys, bytes[] _validatorSignatures, bytes32[] _depositDataRoots) payable returns()
func (_LightNode *LightNodeSession) Deposit(_validatorPubkeys [][]byte, _validatorSignatures [][]byte, _depositDataRoots [][32]byte) (*types.Transaction, error) {
return _LightNode.Contract.Deposit(&_LightNode.TransactOpts, _validatorPubkeys, _validatorSignatures, _depositDataRoots)
}
// Deposit is a paid mutator transaction binding the contract method 0xd46221f9.
//
// Solidity: function deposit(bytes[] _validatorPubkeys, bytes[] _validatorSignatures, bytes32[] _depositDataRoots) payable returns()
func (_LightNode *LightNodeTransactorSession) Deposit(_validatorPubkeys [][]byte, _validatorSignatures [][]byte, _depositDataRoots [][32]byte) (*types.Transaction, error) {
return _LightNode.Contract.Deposit(&_LightNode.TransactOpts, _validatorPubkeys, _validatorSignatures, _depositDataRoots)
}
// DepositEth is a paid mutator transaction binding the contract method 0x439370b1.
//
// Solidity: function depositEth() payable returns()
func (_LightNode *LightNodeTransactor) DepositEth(opts *bind.TransactOpts) (*types.Transaction, error) {
return _LightNode.contract.Transact(opts, "depositEth")
}
// DepositEth is a paid mutator transaction binding the contract method 0x439370b1.
//
// Solidity: function depositEth() payable returns()
func (_LightNode *LightNodeSession) DepositEth() (*types.Transaction, error) {
return _LightNode.Contract.DepositEth(&_LightNode.TransactOpts)
}
// DepositEth is a paid mutator transaction binding the contract method 0x439370b1.
//
// Solidity: function depositEth() payable returns()
func (_LightNode *LightNodeTransactorSession) DepositEth() (*types.Transaction, error) {
return _LightNode.Contract.DepositEth(&_LightNode.TransactOpts)
}
// OffBoard is a paid mutator transaction binding the contract method 0x84d9eb7c.
//
// Solidity: function offBoard(bytes _validatorPubkey) returns()
func (_LightNode *LightNodeTransactor) OffBoard(opts *bind.TransactOpts, _validatorPubkey []byte) (*types.Transaction, error) {
return _LightNode.contract.Transact(opts, "offBoard", _validatorPubkey)
}
// OffBoard is a paid mutator transaction binding the contract method 0x84d9eb7c.
//
// Solidity: function offBoard(bytes _validatorPubkey) returns()
func (_LightNode *LightNodeSession) OffBoard(_validatorPubkey []byte) (*types.Transaction, error) {
return _LightNode.Contract.OffBoard(&_LightNode.TransactOpts, _validatorPubkey)
}
// OffBoard is a paid mutator transaction binding the contract method 0x84d9eb7c.
//
// Solidity: function offBoard(bytes _validatorPubkey) returns()
func (_LightNode *LightNodeTransactorSession) OffBoard(_validatorPubkey []byte) (*types.Transaction, error) {
return _LightNode.Contract.OffBoard(&_LightNode.TransactOpts, _validatorPubkey)
}
// ProvideNodeDepositToken is a paid mutator transaction binding the contract method 0xeee1fa44.
//
// Solidity: function provideNodeDepositToken(bytes _validatorPubkey) payable returns()
func (_LightNode *LightNodeTransactor) ProvideNodeDepositToken(opts *bind.TransactOpts, _validatorPubkey []byte) (*types.Transaction, error) {
return _LightNode.contract.Transact(opts, "provideNodeDepositToken", _validatorPubkey)
}
// ProvideNodeDepositToken is a paid mutator transaction binding the contract method 0xeee1fa44.
//
// Solidity: function provideNodeDepositToken(bytes _validatorPubkey) payable returns()
func (_LightNode *LightNodeSession) ProvideNodeDepositToken(_validatorPubkey []byte) (*types.Transaction, error) {
return _LightNode.Contract.ProvideNodeDepositToken(&_LightNode.TransactOpts, _validatorPubkey)
}
// ProvideNodeDepositToken is a paid mutator transaction binding the contract method 0xeee1fa44.
//
// Solidity: function provideNodeDepositToken(bytes _validatorPubkey) payable returns()
func (_LightNode *LightNodeTransactorSession) ProvideNodeDepositToken(_validatorPubkey []byte) (*types.Transaction, error) {
return _LightNode.Contract.ProvideNodeDepositToken(&_LightNode.TransactOpts, _validatorPubkey)
}
// ReceiveEtherWithdrawal is a paid mutator transaction binding the contract method 0x0a019eaf.
//
// Solidity: function receiveEtherWithdrawal() payable returns()
func (_LightNode *LightNodeTransactor) ReceiveEtherWithdrawal(opts *bind.TransactOpts) (*types.Transaction, error) {
return _LightNode.contract.Transact(opts, "receiveEtherWithdrawal")
}
// ReceiveEtherWithdrawal is a paid mutator transaction binding the contract method 0x0a019eaf.
//
// Solidity: function receiveEtherWithdrawal() payable returns()
func (_LightNode *LightNodeSession) ReceiveEtherWithdrawal() (*types.Transaction, error) {
return _LightNode.Contract.ReceiveEtherWithdrawal(&_LightNode.TransactOpts)
}
// ReceiveEtherWithdrawal is a paid mutator transaction binding the contract method 0x0a019eaf.
//
// Solidity: function receiveEtherWithdrawal() payable returns()
func (_LightNode *LightNodeTransactorSession) ReceiveEtherWithdrawal() (*types.Transaction, error) {
return _LightNode.Contract.ReceiveEtherWithdrawal(&_LightNode.TransactOpts)
}
// SetLightNodeDepositEnabled is a paid mutator transaction binding the contract method 0xadf1d8d6.
//
// Solidity: function setLightNodeDepositEnabled(bool _value) returns()
func (_LightNode *LightNodeTransactor) SetLightNodeDepositEnabled(opts *bind.TransactOpts, _value bool) (*types.Transaction, error) {
return _LightNode.contract.Transact(opts, "setLightNodeDepositEnabled", _value)
}
// SetLightNodeDepositEnabled is a paid mutator transaction binding the contract method 0xadf1d8d6.
//
// Solidity: function setLightNodeDepositEnabled(bool _value) returns()
func (_LightNode *LightNodeSession) SetLightNodeDepositEnabled(_value bool) (*types.Transaction, error) {
return _LightNode.Contract.SetLightNodeDepositEnabled(&_LightNode.TransactOpts, _value)
}
// SetLightNodeDepositEnabled is a paid mutator transaction binding the contract method 0xadf1d8d6.
//
// Solidity: function setLightNodeDepositEnabled(bool _value) returns()
func (_LightNode *LightNodeTransactorSession) SetLightNodeDepositEnabled(_value bool) (*types.Transaction, error) {
return _LightNode.Contract.SetLightNodeDepositEnabled(&_LightNode.TransactOpts, _value)
}
// SetLightNodePubkeyStatus is a paid mutator transaction binding the contract method 0x9630f63c.
//
// Solidity: function setLightNodePubkeyStatus(bytes _validatorPubkey, uint256 _status) returns()
func (_LightNode *LightNodeTransactor) SetLightNodePubkeyStatus(opts *bind.TransactOpts, _validatorPubkey []byte, _status *big.Int) (*types.Transaction, error) {
return _LightNode.contract.Transact(opts, "setLightNodePubkeyStatus", _validatorPubkey, _status)
}
// SetLightNodePubkeyStatus is a paid mutator transaction binding the contract method 0x9630f63c.
//
// Solidity: function setLightNodePubkeyStatus(bytes _validatorPubkey, uint256 _status) returns()
func (_LightNode *LightNodeSession) SetLightNodePubkeyStatus(_validatorPubkey []byte, _status *big.Int) (*types.Transaction, error) {
return _LightNode.Contract.SetLightNodePubkeyStatus(&_LightNode.TransactOpts, _validatorPubkey, _status)
}
// SetLightNodePubkeyStatus is a paid mutator transaction binding the contract method 0x9630f63c.
//
// Solidity: function setLightNodePubkeyStatus(bytes _validatorPubkey, uint256 _status) returns()
func (_LightNode *LightNodeTransactorSession) SetLightNodePubkeyStatus(_validatorPubkey []byte, _status *big.Int) (*types.Transaction, error) {
return _LightNode.Contract.SetLightNodePubkeyStatus(&_LightNode.TransactOpts, _validatorPubkey, _status)
}
// Stake is a paid mutator transaction binding the contract method 0xca2b87af.
//
// Solidity: function stake(bytes[] _validatorPubkeys, bytes[] _validatorSignatures, bytes32[] _depositDataRoots) returns()
func (_LightNode *LightNodeTransactor) Stake(opts *bind.TransactOpts, _validatorPubkeys [][]byte, _validatorSignatures [][]byte, _depositDataRoots [][32]byte) (*types.Transaction, error) {
return _LightNode.contract.Transact(opts, "stake", _validatorPubkeys, _validatorSignatures, _depositDataRoots)
}
// Stake is a paid mutator transaction binding the contract method 0xca2b87af.
//
// Solidity: function stake(bytes[] _validatorPubkeys, bytes[] _validatorSignatures, bytes32[] _depositDataRoots) returns()
func (_LightNode *LightNodeSession) Stake(_validatorPubkeys [][]byte, _validatorSignatures [][]byte, _depositDataRoots [][32]byte) (*types.Transaction, error) {
return _LightNode.Contract.Stake(&_LightNode.TransactOpts, _validatorPubkeys, _validatorSignatures, _depositDataRoots)
}
// Stake is a paid mutator transaction binding the contract method 0xca2b87af.
//
// Solidity: function stake(bytes[] _validatorPubkeys, bytes[] _validatorSignatures, bytes32[] _depositDataRoots) returns()
func (_LightNode *LightNodeTransactorSession) Stake(_validatorPubkeys [][]byte, _validatorSignatures [][]byte, _depositDataRoots [][32]byte) (*types.Transaction, error) {
return _LightNode.Contract.Stake(&_LightNode.TransactOpts, _validatorPubkeys, _validatorSignatures, _depositDataRoots)
}
// VoteWithdrawCredentials is a paid mutator transaction binding the contract method 0xa4b4334b.
//
// Solidity: function voteWithdrawCredentials(bytes[] _pubkeys, bool[] _matchs) returns()
func (_LightNode *LightNodeTransactor) VoteWithdrawCredentials(opts *bind.TransactOpts, _pubkeys [][]byte, _matchs []bool) (*types.Transaction, error) {
return _LightNode.contract.Transact(opts, "voteWithdrawCredentials", _pubkeys, _matchs)
}
// VoteWithdrawCredentials is a paid mutator transaction binding the contract method 0xa4b4334b.
//
// Solidity: function voteWithdrawCredentials(bytes[] _pubkeys, bool[] _matchs) returns()
func (_LightNode *LightNodeSession) VoteWithdrawCredentials(_pubkeys [][]byte, _matchs []bool) (*types.Transaction, error) {
return _LightNode.Contract.VoteWithdrawCredentials(&_LightNode.TransactOpts, _pubkeys, _matchs)
}
// VoteWithdrawCredentials is a paid mutator transaction binding the contract method 0xa4b4334b.
//
// Solidity: function voteWithdrawCredentials(bytes[] _pubkeys, bool[] _matchs) returns()
func (_LightNode *LightNodeTransactorSession) VoteWithdrawCredentials(_pubkeys [][]byte, _matchs []bool) (*types.Transaction, error) {
return _LightNode.Contract.VoteWithdrawCredentials(&_LightNode.TransactOpts, _pubkeys, _matchs)
}
// WithdrawNodeDepositToken is a paid mutator transaction binding the contract method 0x3c4bc635.
//
// Solidity: function withdrawNodeDepositToken(bytes _validatorPubkey) returns()
func (_LightNode *LightNodeTransactor) WithdrawNodeDepositToken(opts *bind.TransactOpts, _validatorPubkey []byte) (*types.Transaction, error) {
return _LightNode.contract.Transact(opts, "withdrawNodeDepositToken", _validatorPubkey)
}
// WithdrawNodeDepositToken is a paid mutator transaction binding the contract method 0x3c4bc635.
//
// Solidity: function withdrawNodeDepositToken(bytes _validatorPubkey) returns()
func (_LightNode *LightNodeSession) WithdrawNodeDepositToken(_validatorPubkey []byte) (*types.Transaction, error) {
return _LightNode.Contract.WithdrawNodeDepositToken(&_LightNode.TransactOpts, _validatorPubkey)
}
// WithdrawNodeDepositToken is a paid mutator transaction binding the contract method 0x3c4bc635.
//
// Solidity: function withdrawNodeDepositToken(bytes _validatorPubkey) returns()
func (_LightNode *LightNodeTransactorSession) WithdrawNodeDepositToken(_validatorPubkey []byte) (*types.Transaction, error) {
return _LightNode.Contract.WithdrawNodeDepositToken(&_LightNode.TransactOpts, _validatorPubkey)
}
// LightNodeDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the LightNode contract.
type LightNodeDepositedIterator struct {
Event *LightNodeDeposited // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// Next advances the iterator to the subsequent event, returning whether there
// are any more events found. In case of a retrieval or parsing error, false is
// returned and Error() can be queried for the exact failure.
func (it *LightNodeDepositedIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(LightNodeDeposited)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(LightNodeDeposited)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *LightNodeDepositedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *LightNodeDepositedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// LightNodeDeposited represents a Deposited event raised by the LightNode contract.
type LightNodeDeposited struct {
Node common.Address
Pubkey []byte
ValidatorSignature []byte
Amount *big.Int
Raw types.Log // Blockchain specific contextual infos
}
// FilterDeposited is a free log retrieval operation binding the contract event 0x1fc33daf7f37b2e02f49dbee7b9707bddd7c8cef1f08deff23bff3d105e5aa72.
//
// Solidity: event Deposited(address node, bytes pubkey, bytes validatorSignature, uint256 amount)
func (_LightNode *LightNodeFilterer) FilterDeposited(opts *bind.FilterOpts) (*LightNodeDepositedIterator, error) {
logs, sub, err := _LightNode.contract.FilterLogs(opts, "Deposited")
if err != nil {
return nil, err
}
return &LightNodeDepositedIterator{contract: _LightNode.contract, event: "Deposited", logs: logs, sub: sub}, nil
}
// WatchDeposited is a free log subscription operation binding the contract event 0x1fc33daf7f37b2e02f49dbee7b9707bddd7c8cef1f08deff23bff3d105e5aa72.
//
// Solidity: event Deposited(address node, bytes pubkey, bytes validatorSignature, uint256 amount)
func (_LightNode *LightNodeFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *LightNodeDeposited) (event.Subscription, error) {
logs, sub, err := _LightNode.contract.WatchLogs(opts, "Deposited")
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(LightNodeDeposited)
if err := _LightNode.contract.UnpackLog(event, "Deposited", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err