diff --git a/beacon-chain/rpc/testing/BUILD.bazel b/beacon-chain/rpc/testing/BUILD.bazel index 60e9fd2e5ae..dc08e57c8a8 100644 --- a/beacon-chain/rpc/testing/BUILD.bazel +++ b/beacon-chain/rpc/testing/BUILD.bazel @@ -6,13 +6,10 @@ go_library( srcs = [ "beacon_chain_service_mock.go", "beacon_node_validator_service_mock.go", - "validator_service_mock.go", ], importpath = "github.com/prysmaticlabs/prysm/beacon-chain/rpc/testing", visibility = ["//beacon-chain:__subpackages__"], deps = [ - "//proto/beacon/rpc/v1:go_default_library", - "@com_github_gogo_protobuf//types:go_default_library", "@com_github_golang_mock//gomock:go_default_library", "@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library", "@org_golang_google_grpc//metadata:go_default_library", diff --git a/beacon-chain/rpc/testing/validator_service_mock.go b/beacon-chain/rpc/testing/validator_service_mock.go deleted file mode 100644 index 7247f7a2a50..00000000000 --- a/beacon-chain/rpc/testing/validator_service_mock.go +++ /dev/null @@ -1,410 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1 (interfaces: ValidatorServiceServer,ValidatorService_WaitForActivationServer,ValidatorService_WaitForChainStartServer) - -// Package internal is a generated GoMock package. -package testing - -import ( - context "context" - reflect "reflect" - - types "github.com/gogo/protobuf/types" - gomock "github.com/golang/mock/gomock" - v1alpha1 "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1" - v1 "github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1" - metadata "google.golang.org/grpc/metadata" -) - -// MockValidatorServiceServer is a mock of ValidatorServiceServer interface -type MockValidatorServiceServer struct { - ctrl *gomock.Controller - recorder *MockValidatorServiceServerMockRecorder -} - -// MockValidatorServiceServerMockRecorder is the mock recorder for MockValidatorServiceServer -type MockValidatorServiceServerMockRecorder struct { - mock *MockValidatorServiceServer -} - -// NewMockValidatorServiceServer creates a new mock instance -func NewMockValidatorServiceServer(ctrl *gomock.Controller) *MockValidatorServiceServer { - mock := &MockValidatorServiceServer{ctrl: ctrl} - mock.recorder = &MockValidatorServiceServerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockValidatorServiceServer) EXPECT() *MockValidatorServiceServerMockRecorder { - return m.recorder -} - -// CanonicalHead mocks base method -func (m *MockValidatorServiceServer) CanonicalHead(arg0 context.Context, arg1 *types.Empty) (*v1alpha1.BeaconBlock, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CanonicalHead", arg0, arg1) - ret0, _ := ret[0].(*v1alpha1.BeaconBlock) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CanonicalHead indicates an expected call of CanonicalHead -func (mr *MockValidatorServiceServerMockRecorder) CanonicalHead(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CanonicalHead", reflect.TypeOf((*MockValidatorServiceServer)(nil).CanonicalHead), arg0, arg1) -} - -// CommitteeAssignment mocks base method -func (m *MockValidatorServiceServer) CommitteeAssignment(arg0 context.Context, arg1 *v1.AssignmentRequest) (*v1.AssignmentResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CommitteeAssignment", arg0, arg1) - ret0, _ := ret[0].(*v1.AssignmentResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CommitteeAssignment indicates an expected call of CommitteeAssignment -func (mr *MockValidatorServiceServerMockRecorder) CommitteeAssignment(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitteeAssignment", reflect.TypeOf((*MockValidatorServiceServer)(nil).CommitteeAssignment), arg0, arg1) -} - -// DomainData mocks base method -func (m *MockValidatorServiceServer) DomainData(arg0 context.Context, arg1 *v1.DomainRequest) (*v1.DomainResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DomainData", arg0, arg1) - ret0, _ := ret[0].(*v1.DomainResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DomainData indicates an expected call of DomainData -func (mr *MockValidatorServiceServerMockRecorder) DomainData(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DomainData", reflect.TypeOf((*MockValidatorServiceServer)(nil).DomainData), arg0, arg1) -} - -// ExitedValidators mocks base method -func (m *MockValidatorServiceServer) ExitedValidators(arg0 context.Context, arg1 *v1.ExitedValidatorsRequest) (*v1.ExitedValidatorsResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExitedValidators", arg0, arg1) - ret0, _ := ret[0].(*v1.ExitedValidatorsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ExitedValidators indicates an expected call of ExitedValidators -func (mr *MockValidatorServiceServerMockRecorder) ExitedValidators(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExitedValidators", reflect.TypeOf((*MockValidatorServiceServer)(nil).ExitedValidators), arg0, arg1) -} - -// ValidatorIndex mocks base method -func (m *MockValidatorServiceServer) ValidatorIndex(arg0 context.Context, arg1 *v1.ValidatorIndexRequest) (*v1.ValidatorIndexResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ValidatorIndex", arg0, arg1) - ret0, _ := ret[0].(*v1.ValidatorIndexResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ValidatorIndex indicates an expected call of ValidatorIndex -func (mr *MockValidatorServiceServerMockRecorder) ValidatorIndex(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorIndex", reflect.TypeOf((*MockValidatorServiceServer)(nil).ValidatorIndex), arg0, arg1) -} - -// ValidatorPerformance mocks base method -func (m *MockValidatorServiceServer) ValidatorPerformance(arg0 context.Context, arg1 *v1.ValidatorPerformanceRequest) (*v1.ValidatorPerformanceResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ValidatorPerformance", arg0, arg1) - ret0, _ := ret[0].(*v1.ValidatorPerformanceResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ValidatorPerformance indicates an expected call of ValidatorPerformance -func (mr *MockValidatorServiceServerMockRecorder) ValidatorPerformance(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorPerformance", reflect.TypeOf((*MockValidatorServiceServer)(nil).ValidatorPerformance), arg0, arg1) -} - -// ValidatorStatus mocks base method -func (m *MockValidatorServiceServer) ValidatorStatus(arg0 context.Context, arg1 *v1.ValidatorIndexRequest) (*v1.ValidatorStatusResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ValidatorStatus", arg0, arg1) - ret0, _ := ret[0].(*v1.ValidatorStatusResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ValidatorStatus indicates an expected call of ValidatorStatus -func (mr *MockValidatorServiceServerMockRecorder) ValidatorStatus(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorStatus", reflect.TypeOf((*MockValidatorServiceServer)(nil).ValidatorStatus), arg0, arg1) -} - -// WaitForActivation mocks base method -func (m *MockValidatorServiceServer) WaitForActivation(arg0 *v1.ValidatorActivationRequest, arg1 v1.ValidatorService_WaitForActivationServer) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WaitForActivation", arg0, arg1) - ret0, _ := ret[0].(error) - return ret0 -} - -// WaitForActivation indicates an expected call of WaitForActivation -func (mr *MockValidatorServiceServerMockRecorder) WaitForActivation(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForActivation", reflect.TypeOf((*MockValidatorServiceServer)(nil).WaitForActivation), arg0, arg1) -} - -// WaitForChainStart mocks base method -func (m *MockValidatorServiceServer) WaitForChainStart(arg0 *types.Empty, arg1 v1.ValidatorService_WaitForChainStartServer) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WaitForChainStart", arg0, arg1) - ret0, _ := ret[0].(error) - return ret0 -} - -// WaitForChainStart indicates an expected call of WaitForChainStart -func (mr *MockValidatorServiceServerMockRecorder) WaitForChainStart(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForChainStart", reflect.TypeOf((*MockValidatorServiceServer)(nil).WaitForChainStart), arg0, arg1) -} - -// MockValidatorService_WaitForActivationServer is a mock of ValidatorService_WaitForActivationServer interface -type MockValidatorService_WaitForActivationServer struct { - ctrl *gomock.Controller - recorder *MockValidatorService_WaitForActivationServerMockRecorder -} - -// MockValidatorService_WaitForActivationServerMockRecorder is the mock recorder for MockValidatorService_WaitForActivationServer -type MockValidatorService_WaitForActivationServerMockRecorder struct { - mock *MockValidatorService_WaitForActivationServer -} - -// NewMockValidatorService_WaitForActivationServer creates a new mock instance -func NewMockValidatorService_WaitForActivationServer(ctrl *gomock.Controller) *MockValidatorService_WaitForActivationServer { - mock := &MockValidatorService_WaitForActivationServer{ctrl: ctrl} - mock.recorder = &MockValidatorService_WaitForActivationServerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockValidatorService_WaitForActivationServer) EXPECT() *MockValidatorService_WaitForActivationServerMockRecorder { - return m.recorder -} - -// Context mocks base method -func (m *MockValidatorService_WaitForActivationServer) Context() context.Context { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Context") - ret0, _ := ret[0].(context.Context) - return ret0 -} - -// Context indicates an expected call of Context -func (mr *MockValidatorService_WaitForActivationServerMockRecorder) Context() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockValidatorService_WaitForActivationServer)(nil).Context)) -} - -// RecvMsg mocks base method -func (m *MockValidatorService_WaitForActivationServer) RecvMsg(arg0 interface{}) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RecvMsg", arg0) - ret0, _ := ret[0].(error) - return ret0 -} - -// RecvMsg indicates an expected call of RecvMsg -func (mr *MockValidatorService_WaitForActivationServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockValidatorService_WaitForActivationServer)(nil).RecvMsg), arg0) -} - -// Send mocks base method -func (m *MockValidatorService_WaitForActivationServer) Send(arg0 *v1.ValidatorActivationResponse) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Send", arg0) - ret0, _ := ret[0].(error) - return ret0 -} - -// Send indicates an expected call of Send -func (mr *MockValidatorService_WaitForActivationServerMockRecorder) Send(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockValidatorService_WaitForActivationServer)(nil).Send), arg0) -} - -// SendHeader mocks base method -func (m *MockValidatorService_WaitForActivationServer) SendHeader(arg0 metadata.MD) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SendHeader", arg0) - ret0, _ := ret[0].(error) - return ret0 -} - -// SendHeader indicates an expected call of SendHeader -func (mr *MockValidatorService_WaitForActivationServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*MockValidatorService_WaitForActivationServer)(nil).SendHeader), arg0) -} - -// SendMsg mocks base method -func (m *MockValidatorService_WaitForActivationServer) SendMsg(arg0 interface{}) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SendMsg", arg0) - ret0, _ := ret[0].(error) - return ret0 -} - -// SendMsg indicates an expected call of SendMsg -func (mr *MockValidatorService_WaitForActivationServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockValidatorService_WaitForActivationServer)(nil).SendMsg), arg0) -} - -// SetHeader mocks base method -func (m *MockValidatorService_WaitForActivationServer) SetHeader(arg0 metadata.MD) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetHeader", arg0) - ret0, _ := ret[0].(error) - return ret0 -} - -// SetHeader indicates an expected call of SetHeader -func (mr *MockValidatorService_WaitForActivationServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*MockValidatorService_WaitForActivationServer)(nil).SetHeader), arg0) -} - -// SetTrailer mocks base method -func (m *MockValidatorService_WaitForActivationServer) SetTrailer(arg0 metadata.MD) { - m.ctrl.T.Helper() - m.ctrl.Call(m, "SetTrailer", arg0) -} - -// SetTrailer indicates an expected call of SetTrailer -func (mr *MockValidatorService_WaitForActivationServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*MockValidatorService_WaitForActivationServer)(nil).SetTrailer), arg0) -} - -// MockValidatorService_WaitForChainStartServer is a mock of ValidatorService_WaitForChainStartServer interface -type MockValidatorService_WaitForChainStartServer struct { - ctrl *gomock.Controller - recorder *MockValidatorService_WaitForChainStartServerMockRecorder -} - -// MockValidatorService_WaitForChainStartServerMockRecorder is the mock recorder for MockValidatorService_WaitForChainStartServer -type MockValidatorService_WaitForChainStartServerMockRecorder struct { - mock *MockValidatorService_WaitForChainStartServer -} - -// NewMockValidatorService_WaitForChainStartServer creates a new mock instance -func NewMockValidatorService_WaitForChainStartServer(ctrl *gomock.Controller) *MockValidatorService_WaitForChainStartServer { - mock := &MockValidatorService_WaitForChainStartServer{ctrl: ctrl} - mock.recorder = &MockValidatorService_WaitForChainStartServerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockValidatorService_WaitForChainStartServer) EXPECT() *MockValidatorService_WaitForChainStartServerMockRecorder { - return m.recorder -} - -// Context mocks base method -func (m *MockValidatorService_WaitForChainStartServer) Context() context.Context { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Context") - ret0, _ := ret[0].(context.Context) - return ret0 -} - -// Context indicates an expected call of Context -func (mr *MockValidatorService_WaitForChainStartServerMockRecorder) Context() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockValidatorService_WaitForChainStartServer)(nil).Context)) -} - -// RecvMsg mocks base method -func (m *MockValidatorService_WaitForChainStartServer) RecvMsg(arg0 interface{}) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RecvMsg", arg0) - ret0, _ := ret[0].(error) - return ret0 -} - -// RecvMsg indicates an expected call of RecvMsg -func (mr *MockValidatorService_WaitForChainStartServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockValidatorService_WaitForChainStartServer)(nil).RecvMsg), arg0) -} - -// Send mocks base method -func (m *MockValidatorService_WaitForChainStartServer) Send(arg0 *v1.ChainStartResponse) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Send", arg0) - ret0, _ := ret[0].(error) - return ret0 -} - -// Send indicates an expected call of Send -func (mr *MockValidatorService_WaitForChainStartServerMockRecorder) Send(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockValidatorService_WaitForChainStartServer)(nil).Send), arg0) -} - -// SendHeader mocks base method -func (m *MockValidatorService_WaitForChainStartServer) SendHeader(arg0 metadata.MD) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SendHeader", arg0) - ret0, _ := ret[0].(error) - return ret0 -} - -// SendHeader indicates an expected call of SendHeader -func (mr *MockValidatorService_WaitForChainStartServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*MockValidatorService_WaitForChainStartServer)(nil).SendHeader), arg0) -} - -// SendMsg mocks base method -func (m *MockValidatorService_WaitForChainStartServer) SendMsg(arg0 interface{}) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SendMsg", arg0) - ret0, _ := ret[0].(error) - return ret0 -} - -// SendMsg indicates an expected call of SendMsg -func (mr *MockValidatorService_WaitForChainStartServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockValidatorService_WaitForChainStartServer)(nil).SendMsg), arg0) -} - -// SetHeader mocks base method -func (m *MockValidatorService_WaitForChainStartServer) SetHeader(arg0 metadata.MD) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SetHeader", arg0) - ret0, _ := ret[0].(error) - return ret0 -} - -// SetHeader indicates an expected call of SetHeader -func (mr *MockValidatorService_WaitForChainStartServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*MockValidatorService_WaitForChainStartServer)(nil).SetHeader), arg0) -} - -// SetTrailer mocks base method -func (m *MockValidatorService_WaitForChainStartServer) SetTrailer(arg0 metadata.MD) { - m.ctrl.T.Helper() - m.ctrl.Call(m, "SetTrailer", arg0) -} - -// SetTrailer indicates an expected call of SetTrailer -func (mr *MockValidatorService_WaitForChainStartServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*MockValidatorService_WaitForChainStartServer)(nil).SetTrailer), arg0) -} diff --git a/proto/beacon/db/attestation_container.pb.go b/proto/beacon/db/attestation_container.pb.go index ae268f73e1e..077567e979b 100755 --- a/proto/beacon/db/attestation_container.pb.go +++ b/proto/beacon/db/attestation_container.pb.go @@ -615,6 +615,7 @@ func (m *AttestationContainer_SignaturePair) Unmarshal(dAtA []byte) error { func skipAttestationContainer(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -646,10 +647,8 @@ func skipAttestationContainer(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -670,55 +669,30 @@ func skipAttestationContainer(dAtA []byte) (n int, err error) { return 0, ErrInvalidLengthAttestationContainer } iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthAttestationContainer - } - return iNdEx, nil case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowAttestationContainer - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipAttestationContainer(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthAttestationContainer - } - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAttestationContainer + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthAttestationContainer + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthAttestationContainer = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowAttestationContainer = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthAttestationContainer = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAttestationContainer = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAttestationContainer = fmt.Errorf("proto: unexpected end of group") ) diff --git a/proto/beacon/db/finalized_block_root_container.pb.go b/proto/beacon/db/finalized_block_root_container.pb.go index 6fd471936a4..f1cbb44283c 100755 --- a/proto/beacon/db/finalized_block_root_container.pb.go +++ b/proto/beacon/db/finalized_block_root_container.pb.go @@ -306,6 +306,7 @@ func (m *FinalizedBlockRootContainer) Unmarshal(dAtA []byte) error { func skipFinalizedBlockRootContainer(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -337,10 +338,8 @@ func skipFinalizedBlockRootContainer(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -361,55 +360,30 @@ func skipFinalizedBlockRootContainer(dAtA []byte) (n int, err error) { return 0, ErrInvalidLengthFinalizedBlockRootContainer } iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthFinalizedBlockRootContainer - } - return iNdEx, nil case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowFinalizedBlockRootContainer - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipFinalizedBlockRootContainer(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthFinalizedBlockRootContainer - } - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupFinalizedBlockRootContainer + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthFinalizedBlockRootContainer + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthFinalizedBlockRootContainer = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowFinalizedBlockRootContainer = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthFinalizedBlockRootContainer = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowFinalizedBlockRootContainer = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupFinalizedBlockRootContainer = fmt.Errorf("proto: unexpected end of group") ) diff --git a/proto/beacon/db/powchain.pb.go b/proto/beacon/db/powchain.pb.go index a084236183d..297a2fb6062 100755 --- a/proto/beacon/db/powchain.pb.go +++ b/proto/beacon/db/powchain.pb.go @@ -1977,6 +1977,7 @@ func (m *DepositContainer) Unmarshal(dAtA []byte) error { func skipPowchain(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2008,10 +2009,8 @@ func skipPowchain(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -2032,55 +2031,30 @@ func skipPowchain(dAtA []byte) (n int, err error) { return 0, ErrInvalidLengthPowchain } iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthPowchain - } - return iNdEx, nil case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPowchain - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipPowchain(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthPowchain - } - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPowchain + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthPowchain + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthPowchain = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowPowchain = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthPowchain = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPowchain = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPowchain = fmt.Errorf("proto: unexpected end of group") ) diff --git a/proto/beacon/p2p/v1/archive.pb.go b/proto/beacon/p2p/v1/archive.pb.go index 09449390d76..dd6dbdf6917 100755 --- a/proto/beacon/p2p/v1/archive.pb.go +++ b/proto/beacon/p2p/v1/archive.pb.go @@ -964,6 +964,7 @@ func (m *ArchivedCommitteeInfo) Unmarshal(dAtA []byte) error { func skipArchive(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -995,10 +996,8 @@ func skipArchive(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1019,55 +1018,30 @@ func skipArchive(dAtA []byte) (n int, err error) { return 0, ErrInvalidLengthArchive } iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthArchive - } - return iNdEx, nil case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowArchive - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipArchive(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthArchive - } - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupArchive + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthArchive + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthArchive = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowArchive = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthArchive = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowArchive = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupArchive = fmt.Errorf("proto: unexpected end of group") ) diff --git a/proto/beacon/p2p/v1/messages.pb.go b/proto/beacon/p2p/v1/messages.pb.go index a80f3c335b4..7f8bcc84587 100755 --- a/proto/beacon/p2p/v1/messages.pb.go +++ b/proto/beacon/p2p/v1/messages.pb.go @@ -729,6 +729,7 @@ func (m *BeaconBlocksByRangeRequest) Unmarshal(dAtA []byte) error { func skipMessages(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -760,10 +761,8 @@ func skipMessages(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -784,55 +783,30 @@ func skipMessages(dAtA []byte) (n int, err error) { return 0, ErrInvalidLengthMessages } iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthMessages - } - return iNdEx, nil case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMessages - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipMessages(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthMessages - } - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMessages + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthMessages + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthMessages = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMessages = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthMessages = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMessages = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMessages = fmt.Errorf("proto: unexpected end of group") ) diff --git a/proto/beacon/p2p/v1/types.pb.go b/proto/beacon/p2p/v1/types.pb.go index a53af62f2fa..6371f0bb5ca 100755 --- a/proto/beacon/p2p/v1/types.pb.go +++ b/proto/beacon/p2p/v1/types.pb.go @@ -2579,6 +2579,7 @@ func (m *HistoricalBatch) Unmarshal(dAtA []byte) error { func skipTypes(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -2610,10 +2611,8 @@ func skipTypes(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -2634,55 +2633,30 @@ func skipTypes(dAtA []byte) (n int, err error) { return 0, ErrInvalidLengthTypes } iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthTypes - } - return iNdEx, nil case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTypes - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipTypes(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthTypes - } - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTypes + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthTypes + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") ) diff --git a/proto/beacon/rpc/v1/services.pb.go b/proto/beacon/rpc/v1/services.pb.go index 27eb353baa8..8c320c492f9 100755 --- a/proto/beacon/rpc/v1/services.pb.go +++ b/proto/beacon/rpc/v1/services.pb.go @@ -1,19 +1,17 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: proto/beacon/rpc/v1/services.proto +// proto/beacon/rpc/v1/services.proto is a deprecated file. package ethereum_beacon_rpc_v1 import ( context "context" - encoding_binary "encoding/binary" fmt "fmt" io "io" math "math" math_bits "math/bits" proto "github.com/gogo/protobuf/proto" - types "github.com/gogo/protobuf/types" - v1alpha1 "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1" + _ "github.com/gogo/protobuf/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -30,8 +28,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type ValidatorRole int32 - +type ValidatorRole int32 // Deprecated: Do not use. const ( ValidatorRole_UNKNOWN ValidatorRole = 0 ValidatorRole_ATTESTER ValidatorRole = 1 @@ -61,277 +58,7 @@ func (ValidatorRole) EnumDescriptor() ([]byte, []int) { return fileDescriptor_9eb4e94b85965285, []int{0} } -type ValidatorStatus int32 - -const ( - ValidatorStatus_UNKNOWN_STATUS ValidatorStatus = 0 - ValidatorStatus_DEPOSIT_RECEIVED ValidatorStatus = 1 - ValidatorStatus_PENDING_ACTIVE ValidatorStatus = 2 - ValidatorStatus_ACTIVE ValidatorStatus = 3 - ValidatorStatus_INITIATED_EXIT ValidatorStatus = 4 - ValidatorStatus_WITHDRAWABLE ValidatorStatus = 5 - ValidatorStatus_EXITED ValidatorStatus = 6 - ValidatorStatus_EXITED_SLASHED ValidatorStatus = 7 -) - -var ValidatorStatus_name = map[int32]string{ - 0: "UNKNOWN_STATUS", - 1: "DEPOSIT_RECEIVED", - 2: "PENDING_ACTIVE", - 3: "ACTIVE", - 4: "INITIATED_EXIT", - 5: "WITHDRAWABLE", - 6: "EXITED", - 7: "EXITED_SLASHED", -} - -var ValidatorStatus_value = map[string]int32{ - "UNKNOWN_STATUS": 0, - "DEPOSIT_RECEIVED": 1, - "PENDING_ACTIVE": 2, - "ACTIVE": 3, - "INITIATED_EXIT": 4, - "WITHDRAWABLE": 5, - "EXITED": 6, - "EXITED_SLASHED": 7, -} - -func (x ValidatorStatus) String() string { - return proto.EnumName(ValidatorStatus_name, int32(x)) -} - -func (ValidatorStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{1} -} - -type BlockRequest struct { - Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"` - RandaoReveal []byte `protobuf:"bytes,2,opt,name=randao_reveal,json=randaoReveal,proto3" json:"randao_reveal,omitempty"` - Graffiti []byte `protobuf:"bytes,3,opt,name=graffiti,proto3" json:"graffiti,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BlockRequest) Reset() { *m = BlockRequest{} } -func (m *BlockRequest) String() string { return proto.CompactTextString(m) } -func (*BlockRequest) ProtoMessage() {} -func (*BlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{0} -} -func (m *BlockRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockRequest.Merge(m, src) -} -func (m *BlockRequest) XXX_Size() int { - return m.Size() -} -func (m *BlockRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BlockRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockRequest proto.InternalMessageInfo - -func (m *BlockRequest) GetSlot() uint64 { - if m != nil { - return m.Slot - } - return 0 -} - -func (m *BlockRequest) GetRandaoReveal() []byte { - if m != nil { - return m.RandaoReveal - } - return nil -} - -func (m *BlockRequest) GetGraffiti() []byte { - if m != nil { - return m.Graffiti - } - return nil -} - -type ProposeResponse struct { - BlockRoot []byte `protobuf:"bytes,1,opt,name=block_root,json=blockRoot,proto3" json:"block_root,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProposeResponse) Reset() { *m = ProposeResponse{} } -func (m *ProposeResponse) String() string { return proto.CompactTextString(m) } -func (*ProposeResponse) ProtoMessage() {} -func (*ProposeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{1} -} -func (m *ProposeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ProposeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ProposeResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ProposeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProposeResponse.Merge(m, src) -} -func (m *ProposeResponse) XXX_Size() int { - return m.Size() -} -func (m *ProposeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ProposeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ProposeResponse proto.InternalMessageInfo - -func (m *ProposeResponse) GetBlockRoot() []byte { - if m != nil { - return m.BlockRoot - } - return nil -} - -type AttestationRequest struct { - PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - PocBit []byte `protobuf:"bytes,2,opt,name=poc_bit,json=pocBit,proto3" json:"poc_bit,omitempty"` - Slot uint64 `protobuf:"varint,3,opt,name=slot,proto3" json:"slot,omitempty"` - CommitteeIndex uint64 `protobuf:"varint,4,opt,name=committee_index,json=committeeIndex,proto3" json:"committee_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AttestationRequest) Reset() { *m = AttestationRequest{} } -func (m *AttestationRequest) String() string { return proto.CompactTextString(m) } -func (*AttestationRequest) ProtoMessage() {} -func (*AttestationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{2} -} -func (m *AttestationRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AttestationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AttestationRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AttestationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AttestationRequest.Merge(m, src) -} -func (m *AttestationRequest) XXX_Size() int { - return m.Size() -} -func (m *AttestationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AttestationRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AttestationRequest proto.InternalMessageInfo - -func (m *AttestationRequest) GetPublicKey() []byte { - if m != nil { - return m.PublicKey - } - return nil -} - -func (m *AttestationRequest) GetPocBit() []byte { - if m != nil { - return m.PocBit - } - return nil -} - -func (m *AttestationRequest) GetSlot() uint64 { - if m != nil { - return m.Slot - } - return 0 -} - -func (m *AttestationRequest) GetCommitteeIndex() uint64 { - if m != nil { - return m.CommitteeIndex - } - return 0 -} - -type AttestResponse struct { - Root []byte `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AttestResponse) Reset() { *m = AttestResponse{} } -func (m *AttestResponse) String() string { return proto.CompactTextString(m) } -func (*AttestResponse) ProtoMessage() {} -func (*AttestResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{3} -} -func (m *AttestResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AttestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AttestResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AttestResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AttestResponse.Merge(m, src) -} -func (m *AttestResponse) XXX_Size() int { - return m.Size() -} -func (m *AttestResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AttestResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AttestResponse proto.InternalMessageInfo - -func (m *AttestResponse) GetRoot() []byte { - if m != nil { - return m.Root - } - return nil -} - +// Deprecated: Do not use. type AggregationRequest struct { Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"` CommitteeIndex uint64 `protobuf:"varint,2,opt,name=committee_index,json=committeeIndex,proto3" json:"committee_index,omitempty"` @@ -346,7 +73,7 @@ func (m *AggregationRequest) Reset() { *m = AggregationRequest{} } func (m *AggregationRequest) String() string { return proto.CompactTextString(m) } func (*AggregationRequest) ProtoMessage() {} func (*AggregationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{4} + return fileDescriptor_9eb4e94b85965285, []int{0} } func (m *AggregationRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -403,6 +130,7 @@ func (m *AggregationRequest) GetSlotSignature() []byte { return nil } +// Deprecated: Do not use. type AggregationResponse struct { Root []byte `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -414,7 +142,7 @@ func (m *AggregationResponse) Reset() { *m = AggregationResponse{} } func (m *AggregationResponse) String() string { return proto.CompactTextString(m) } func (*AggregationResponse) ProtoMessage() {} func (*AggregationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{5} + return fileDescriptor_9eb4e94b85965285, []int{1} } func (m *AggregationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -450,26 +178,26 @@ func (m *AggregationResponse) GetRoot() []byte { return nil } -type ValidatorPerformanceRequest struct { - Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"` - PublicKeys [][]byte `protobuf:"bytes,2,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` +// Deprecated: Do not use. +type ExitedValidatorsRequest struct { + PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *ValidatorPerformanceRequest) Reset() { *m = ValidatorPerformanceRequest{} } -func (m *ValidatorPerformanceRequest) String() string { return proto.CompactTextString(m) } -func (*ValidatorPerformanceRequest) ProtoMessage() {} -func (*ValidatorPerformanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{6} +func (m *ExitedValidatorsRequest) Reset() { *m = ExitedValidatorsRequest{} } +func (m *ExitedValidatorsRequest) String() string { return proto.CompactTextString(m) } +func (*ExitedValidatorsRequest) ProtoMessage() {} +func (*ExitedValidatorsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9eb4e94b85965285, []int{2} } -func (m *ValidatorPerformanceRequest) XXX_Unmarshal(b []byte) error { +func (m *ExitedValidatorsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *ValidatorPerformanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ExitedValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_ValidatorPerformanceRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_ExitedValidatorsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -479,55 +207,45 @@ func (m *ValidatorPerformanceRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *ValidatorPerformanceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorPerformanceRequest.Merge(m, src) +func (m *ExitedValidatorsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExitedValidatorsRequest.Merge(m, src) } -func (m *ValidatorPerformanceRequest) XXX_Size() int { +func (m *ExitedValidatorsRequest) XXX_Size() int { return m.Size() } -func (m *ValidatorPerformanceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorPerformanceRequest.DiscardUnknown(m) +func (m *ExitedValidatorsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExitedValidatorsRequest.DiscardUnknown(m) } -var xxx_messageInfo_ValidatorPerformanceRequest proto.InternalMessageInfo - -func (m *ValidatorPerformanceRequest) GetSlot() uint64 { - if m != nil { - return m.Slot - } - return 0 -} +var xxx_messageInfo_ExitedValidatorsRequest proto.InternalMessageInfo -func (m *ValidatorPerformanceRequest) GetPublicKeys() [][]byte { +func (m *ExitedValidatorsRequest) GetPublicKeys() [][]byte { if m != nil { return m.PublicKeys } return nil } -type ValidatorPerformanceResponse struct { - Balances []uint64 `protobuf:"varint,1,rep,packed,name=balances,proto3" json:"balances,omitempty"` - TotalValidators uint64 `protobuf:"varint,2,opt,name=total_validators,json=totalValidators,proto3" json:"total_validators,omitempty"` - TotalActiveValidators uint64 `protobuf:"varint,3,opt,name=total_active_validators,json=totalActiveValidators,proto3" json:"total_active_validators,omitempty"` - MissingValidators [][]byte `protobuf:"bytes,4,rep,name=missing_validators,json=missingValidators,proto3" json:"missing_validators,omitempty"` - AverageActiveValidatorBalance float32 `protobuf:"fixed32,5,opt,name=average_active_validator_balance,json=averageActiveValidatorBalance,proto3" json:"average_active_validator_balance,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Do not use. +type ExitedValidatorsResponse struct { + PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ValidatorPerformanceResponse) Reset() { *m = ValidatorPerformanceResponse{} } -func (m *ValidatorPerformanceResponse) String() string { return proto.CompactTextString(m) } -func (*ValidatorPerformanceResponse) ProtoMessage() {} -func (*ValidatorPerformanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{7} +func (m *ExitedValidatorsResponse) Reset() { *m = ExitedValidatorsResponse{} } +func (m *ExitedValidatorsResponse) String() string { return proto.CompactTextString(m) } +func (*ExitedValidatorsResponse) ProtoMessage() {} +func (*ExitedValidatorsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9eb4e94b85965285, []int{3} } -func (m *ValidatorPerformanceResponse) XXX_Unmarshal(b []byte) error { +func (m *ExitedValidatorsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *ValidatorPerformanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ExitedValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_ValidatorPerformanceResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_ExitedValidatorsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -537,5891 +255,406 @@ func (m *ValidatorPerformanceResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *ValidatorPerformanceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorPerformanceResponse.Merge(m, src) +func (m *ExitedValidatorsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExitedValidatorsResponse.Merge(m, src) } -func (m *ValidatorPerformanceResponse) XXX_Size() int { +func (m *ExitedValidatorsResponse) XXX_Size() int { return m.Size() } -func (m *ValidatorPerformanceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorPerformanceResponse.DiscardUnknown(m) +func (m *ExitedValidatorsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ExitedValidatorsResponse.DiscardUnknown(m) } -var xxx_messageInfo_ValidatorPerformanceResponse proto.InternalMessageInfo +var xxx_messageInfo_ExitedValidatorsResponse proto.InternalMessageInfo -func (m *ValidatorPerformanceResponse) GetBalances() []uint64 { +func (m *ExitedValidatorsResponse) GetPublicKeys() [][]byte { if m != nil { - return m.Balances + return m.PublicKeys } return nil } -func (m *ValidatorPerformanceResponse) GetTotalValidators() uint64 { - if m != nil { - return m.TotalValidators - } - return 0 +func init() { + proto.RegisterEnum("ethereum.beacon.rpc.v1.ValidatorRole", ValidatorRole_name, ValidatorRole_value) + proto.RegisterType((*AggregationRequest)(nil), "ethereum.beacon.rpc.v1.AggregationRequest") + proto.RegisterType((*AggregationResponse)(nil), "ethereum.beacon.rpc.v1.AggregationResponse") + proto.RegisterType((*ExitedValidatorsRequest)(nil), "ethereum.beacon.rpc.v1.ExitedValidatorsRequest") + proto.RegisterType((*ExitedValidatorsResponse)(nil), "ethereum.beacon.rpc.v1.ExitedValidatorsResponse") } -func (m *ValidatorPerformanceResponse) GetTotalActiveValidators() uint64 { - if m != nil { - return m.TotalActiveValidators - } - return 0 +func init() { proto.RegisterFile("proto/beacon/rpc/v1/services.proto", fileDescriptor_9eb4e94b85965285) } + +var fileDescriptor_9eb4e94b85965285 = []byte{ + // 428 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xdd, 0x8a, 0xd3, 0x40, + 0x14, 0x76, 0xd2, 0xe2, 0xcf, 0xd9, 0x6e, 0xb7, 0x8e, 0xe0, 0x0e, 0x15, 0x6b, 0x29, 0x88, 0x65, + 0xc5, 0x84, 0xd5, 0x3b, 0x2f, 0x94, 0x08, 0xa1, 0xc8, 0x4a, 0x5b, 0x26, 0x55, 0x2f, 0x4b, 0x92, + 0x9e, 0x8d, 0x83, 0x49, 0x26, 0xce, 0x4c, 0xca, 0xf6, 0x0d, 0xbc, 0xf0, 0x0d, 0x7c, 0x11, 0x1f, + 0xc1, 0x4b, 0x1f, 0x41, 0xfa, 0x24, 0x92, 0xc9, 0xb6, 0x22, 0xeb, 0xc5, 0xde, 0x9d, 0xf9, 0xce, + 0xf7, 0x9d, 0xf9, 0x3e, 0xce, 0x81, 0x51, 0xa9, 0xa4, 0x91, 0x5e, 0x8c, 0x51, 0x22, 0x0b, 0x4f, + 0x95, 0x89, 0xb7, 0x3e, 0xf5, 0x34, 0xaa, 0xb5, 0x48, 0x50, 0xbb, 0xb6, 0x49, 0xef, 0xa3, 0xf9, + 0x84, 0x0a, 0xab, 0xdc, 0x6d, 0x68, 0xae, 0x2a, 0x13, 0x77, 0x7d, 0xda, 0x7f, 0x90, 0x4a, 0x99, + 0x66, 0xe8, 0x59, 0x56, 0x5c, 0x9d, 0x7b, 0x98, 0x97, 0x66, 0xd3, 0x88, 0x46, 0xdf, 0x09, 0x50, + 0x3f, 0x4d, 0x15, 0xa6, 0x91, 0x11, 0xb2, 0xe0, 0xf8, 0xa5, 0x42, 0x6d, 0x28, 0x85, 0xb6, 0xce, + 0xa4, 0x61, 0x64, 0x48, 0xc6, 0x6d, 0x6e, 0x6b, 0xfa, 0x04, 0x8e, 0x12, 0x99, 0xe7, 0xc2, 0x18, + 0xc4, 0xa5, 0x28, 0x56, 0x78, 0xc1, 0x1c, 0xdb, 0xee, 0xee, 0xe1, 0xb7, 0x35, 0x4a, 0x1f, 0x02, + 0x94, 0x55, 0x9c, 0x89, 0x64, 0xf9, 0x19, 0x37, 0xac, 0x35, 0x24, 0xe3, 0x0e, 0xbf, 0xd3, 0x20, + 0x67, 0xb8, 0xa1, 0x8f, 0xa1, 0x5b, 0xcf, 0x5b, 0x6a, 0x91, 0x16, 0x91, 0xa9, 0x14, 0xb2, 0xb6, + 0xa5, 0x1c, 0xd6, 0x68, 0xb8, 0x03, 0x5f, 0x3a, 0x8c, 0x8c, 0x9e, 0xc1, 0xbd, 0x7f, 0xcc, 0xe9, + 0x52, 0x16, 0x1a, 0x6b, 0x77, 0x4a, 0x5e, 0xba, 0xeb, 0x70, 0x5b, 0x5b, 0xfa, 0x2b, 0x38, 0x0e, + 0x2e, 0x84, 0xc1, 0xd5, 0x87, 0x28, 0x13, 0xab, 0xc8, 0x48, 0xa5, 0x77, 0x81, 0x1e, 0xc1, 0xc1, + 0x5f, 0x4f, 0x9a, 0x91, 0x61, 0x6b, 0xdc, 0xe1, 0xb0, 0x37, 0xa5, 0xad, 0xfe, 0x35, 0xb0, 0xab, + 0xfa, 0xcb, 0x3f, 0xaf, 0x33, 0xe0, 0xe4, 0x1d, 0x1c, 0xee, 0xa5, 0x5c, 0x66, 0x48, 0x0f, 0xe0, + 0xd6, 0xfb, 0xe9, 0xd9, 0x74, 0xf6, 0x71, 0xda, 0xbb, 0x41, 0x3b, 0x70, 0xdb, 0x5f, 0x2c, 0x82, + 0x70, 0x11, 0xf0, 0x1e, 0xa9, 0x5f, 0x73, 0x3e, 0x9b, 0xcf, 0xc2, 0x80, 0xf7, 0x1c, 0xda, 0x05, + 0xf0, 0x27, 0x13, 0x1e, 0x4c, 0xfc, 0xc5, 0x8c, 0xf7, 0x5a, 0x7d, 0x87, 0x91, 0xe7, 0xdf, 0x08, + 0xdc, 0xdd, 0xc5, 0x97, 0x2a, 0x6c, 0xb6, 0x4d, 0x15, 0x1c, 0x87, 0x55, 0x9c, 0x0b, 0xb3, 0x6b, + 0xa1, 0x5f, 0xac, 0xe6, 0x4a, 0xca, 0x73, 0x7a, 0xe2, 0xfe, 0xff, 0x04, 0xdc, 0xab, 0x1b, 0xee, + 0x3f, 0xbd, 0x16, 0xb7, 0x09, 0xdf, 0x6f, 0x7d, 0x75, 0xc8, 0x9b, 0xa3, 0x9f, 0xdb, 0x01, 0xf9, + 0xb5, 0x1d, 0x90, 0xdf, 0xdb, 0x01, 0xf9, 0x41, 0x48, 0x7c, 0xd3, 0x9e, 0xd0, 0x8b, 0x3f, 0x01, + 0x00, 0x00, 0xff, 0xff, 0xe0, 0xb1, 0xa4, 0x90, 0x9d, 0x02, 0x00, 0x00, } -func (m *ValidatorPerformanceResponse) GetMissingValidators() [][]byte { - if m != nil { - return m.MissingValidators - } - return nil +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// AggregatorServiceClient is the client API for AggregatorService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// +// Deprecated: Do not use. +type AggregatorServiceClient interface { + SubmitAggregateAndProof(ctx context.Context, in *AggregationRequest, opts ...grpc.CallOption) (*AggregationResponse, error) } -func (m *ValidatorPerformanceResponse) GetAverageActiveValidatorBalance() float32 { - if m != nil { - return m.AverageActiveValidatorBalance - } - return 0 +type aggregatorServiceClient struct { + cc *grpc.ClientConn } -type ValidatorActivationRequest struct { - PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Do not use. +func NewAggregatorServiceClient(cc *grpc.ClientConn) AggregatorServiceClient { + return &aggregatorServiceClient{cc} } -func (m *ValidatorActivationRequest) Reset() { *m = ValidatorActivationRequest{} } -func (m *ValidatorActivationRequest) String() string { return proto.CompactTextString(m) } -func (*ValidatorActivationRequest) ProtoMessage() {} -func (*ValidatorActivationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{8} -} -func (m *ValidatorActivationRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatorActivationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValidatorActivationRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (c *aggregatorServiceClient) SubmitAggregateAndProof(ctx context.Context, in *AggregationRequest, opts ...grpc.CallOption) (*AggregationResponse, error) { + out := new(AggregationResponse) + err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.AggregatorService/SubmitAggregateAndProof", in, out, opts...) + if err != nil { + return nil, err } + return out, nil } -func (m *ValidatorActivationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorActivationRequest.Merge(m, src) + +// AggregatorServiceServer is the server API for AggregatorService service. +// +// Deprecated: Do not use. +type AggregatorServiceServer interface { + SubmitAggregateAndProof(context.Context, *AggregationRequest) (*AggregationResponse, error) } -func (m *ValidatorActivationRequest) XXX_Size() int { - return m.Size() + +// Deprecated: Do not use. +// UnimplementedAggregatorServiceServer can be embedded to have forward compatible implementations. +type UnimplementedAggregatorServiceServer struct { } -func (m *ValidatorActivationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorActivationRequest.DiscardUnknown(m) + +func (*UnimplementedAggregatorServiceServer) SubmitAggregateAndProof(ctx context.Context, req *AggregationRequest) (*AggregationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SubmitAggregateAndProof not implemented") } -var xxx_messageInfo_ValidatorActivationRequest proto.InternalMessageInfo +// Deprecated: Do not use. +func RegisterAggregatorServiceServer(s *grpc.Server, srv AggregatorServiceServer) { + s.RegisterService(&_AggregatorService_serviceDesc, srv) +} -func (m *ValidatorActivationRequest) GetPublicKeys() [][]byte { - if m != nil { - return m.PublicKeys +func _AggregatorService_SubmitAggregateAndProof_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AggregationRequest) + if err := dec(in); err != nil { + return nil, err } - return nil + if interceptor == nil { + return srv.(AggregatorServiceServer).SubmitAggregateAndProof(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ethereum.beacon.rpc.v1.AggregatorService/SubmitAggregateAndProof", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AggregatorServiceServer).SubmitAggregateAndProof(ctx, req.(*AggregationRequest)) + } + return interceptor(ctx, in, info, handler) } -type ValidatorActivationResponse struct { - ActivatedPublicKeys [][]byte `protobuf:"bytes,1,rep,name=activated_public_keys,json=activatedPublicKeys,proto3" json:"activated_public_keys,omitempty"` // Deprecated: Do not use. - Statuses []*ValidatorActivationResponse_Status `protobuf:"bytes,2,rep,name=statuses,proto3" json:"statuses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +var _AggregatorService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "ethereum.beacon.rpc.v1.AggregatorService", + HandlerType: (*AggregatorServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "SubmitAggregateAndProof", + Handler: _AggregatorService_SubmitAggregateAndProof_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "proto/beacon/rpc/v1/services.proto", } -func (m *ValidatorActivationResponse) Reset() { *m = ValidatorActivationResponse{} } -func (m *ValidatorActivationResponse) String() string { return proto.CompactTextString(m) } -func (*ValidatorActivationResponse) ProtoMessage() {} -func (*ValidatorActivationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{9} -} -func (m *ValidatorActivationResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatorActivationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValidatorActivationResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (m *AggregationRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } -} -func (m *ValidatorActivationResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorActivationResponse.Merge(m, src) -} -func (m *ValidatorActivationResponse) XXX_Size() int { - return m.Size() -} -func (m *ValidatorActivationResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorActivationResponse.DiscardUnknown(m) + return dAtA[:n], nil } -var xxx_messageInfo_ValidatorActivationResponse proto.InternalMessageInfo +func (m *AggregationRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} -// Deprecated: Do not use. -func (m *ValidatorActivationResponse) GetActivatedPublicKeys() [][]byte { - if m != nil { - return m.ActivatedPublicKeys +func (m *AggregationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return nil + if len(m.SlotSignature) > 0 { + i -= len(m.SlotSignature) + copy(dAtA[i:], m.SlotSignature) + i = encodeVarintServices(dAtA, i, uint64(len(m.SlotSignature))) + i-- + dAtA[i] = 0x22 + } + if len(m.PublicKey) > 0 { + i -= len(m.PublicKey) + copy(dAtA[i:], m.PublicKey) + i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKey))) + i-- + dAtA[i] = 0x1a + } + if m.CommitteeIndex != 0 { + i = encodeVarintServices(dAtA, i, uint64(m.CommitteeIndex)) + i-- + dAtA[i] = 0x10 + } + if m.Slot != 0 { + i = encodeVarintServices(dAtA, i, uint64(m.Slot)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } -func (m *ValidatorActivationResponse) GetStatuses() []*ValidatorActivationResponse_Status { - if m != nil { - return m.Statuses +func (m *AggregationResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return nil + return dAtA[:n], nil } -type ValidatorActivationResponse_Status struct { - PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - Status *ValidatorStatusResponse `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *AggregationResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValidatorActivationResponse_Status) Reset() { *m = ValidatorActivationResponse_Status{} } -func (m *ValidatorActivationResponse_Status) String() string { return proto.CompactTextString(m) } -func (*ValidatorActivationResponse_Status) ProtoMessage() {} -func (*ValidatorActivationResponse_Status) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{9, 0} -} -func (m *ValidatorActivationResponse_Status) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatorActivationResponse_Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValidatorActivationResponse_Status.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (m *AggregationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } -} -func (m *ValidatorActivationResponse_Status) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorActivationResponse_Status.Merge(m, src) -} -func (m *ValidatorActivationResponse_Status) XXX_Size() int { - return m.Size() -} -func (m *ValidatorActivationResponse_Status) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorActivationResponse_Status.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatorActivationResponse_Status proto.InternalMessageInfo - -func (m *ValidatorActivationResponse_Status) GetPublicKey() []byte { - if m != nil { - return m.PublicKey + if len(m.Root) > 0 { + i -= len(m.Root) + copy(dAtA[i:], m.Root) + i = encodeVarintServices(dAtA, i, uint64(len(m.Root))) + i-- + dAtA[i] = 0xa } - return nil + return len(dAtA) - i, nil } -func (m *ValidatorActivationResponse_Status) GetStatus() *ValidatorStatusResponse { - if m != nil { - return m.Status +func (m *ExitedValidatorsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return nil + return dAtA[:n], nil } -type ExitedValidatorsRequest struct { - PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ExitedValidatorsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ExitedValidatorsRequest) Reset() { *m = ExitedValidatorsRequest{} } -func (m *ExitedValidatorsRequest) String() string { return proto.CompactTextString(m) } -func (*ExitedValidatorsRequest) ProtoMessage() {} -func (*ExitedValidatorsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{10} -} -func (m *ExitedValidatorsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExitedValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExitedValidatorsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (m *ExitedValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.PublicKeys) > 0 { + for iNdEx := len(m.PublicKeys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.PublicKeys[iNdEx]) + copy(dAtA[i:], m.PublicKeys[iNdEx]) + i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKeys[iNdEx]))) + i-- + dAtA[i] = 0xa } - return b[:n], nil } -} -func (m *ExitedValidatorsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExitedValidatorsRequest.Merge(m, src) -} -func (m *ExitedValidatorsRequest) XXX_Size() int { - return m.Size() -} -func (m *ExitedValidatorsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExitedValidatorsRequest.DiscardUnknown(m) + return len(dAtA) - i, nil } -var xxx_messageInfo_ExitedValidatorsRequest proto.InternalMessageInfo - -func (m *ExitedValidatorsRequest) GetPublicKeys() [][]byte { - if m != nil { - return m.PublicKeys +func (m *ExitedValidatorsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return nil + return dAtA[:n], nil } -type ExitedValidatorsResponse struct { - PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (m *ExitedValidatorsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ExitedValidatorsResponse) Reset() { *m = ExitedValidatorsResponse{} } -func (m *ExitedValidatorsResponse) String() string { return proto.CompactTextString(m) } -func (*ExitedValidatorsResponse) ProtoMessage() {} -func (*ExitedValidatorsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{11} -} -func (m *ExitedValidatorsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExitedValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExitedValidatorsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (m *ExitedValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.PublicKeys) > 0 { + for iNdEx := len(m.PublicKeys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.PublicKeys[iNdEx]) + copy(dAtA[i:], m.PublicKeys[iNdEx]) + i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKeys[iNdEx]))) + i-- + dAtA[i] = 0xa } - return b[:n], nil } -} -func (m *ExitedValidatorsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExitedValidatorsResponse.Merge(m, src) -} -func (m *ExitedValidatorsResponse) XXX_Size() int { - return m.Size() -} -func (m *ExitedValidatorsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExitedValidatorsResponse.DiscardUnknown(m) + return len(dAtA) - i, nil } -var xxx_messageInfo_ExitedValidatorsResponse proto.InternalMessageInfo - -func (m *ExitedValidatorsResponse) GetPublicKeys() [][]byte { - if m != nil { - return m.PublicKeys +func encodeVarintServices(dAtA []byte, offset int, v uint64) int { + offset -= sovServices(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ } - return nil -} - -type ChainStartResponse struct { - Started bool `protobuf:"varint,1,opt,name=started,proto3" json:"started,omitempty"` - GenesisTime uint64 `protobuf:"varint,2,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChainStartResponse) Reset() { *m = ChainStartResponse{} } -func (m *ChainStartResponse) String() string { return proto.CompactTextString(m) } -func (*ChainStartResponse) ProtoMessage() {} -func (*ChainStartResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{12} -} -func (m *ChainStartResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + dAtA[offset] = uint8(v) + return base } -func (m *ChainStartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChainStartResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (m *AggregationRequest) Size() (n int) { + if m == nil { + return 0 } -} -func (m *ChainStartResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChainStartResponse.Merge(m, src) -} -func (m *ChainStartResponse) XXX_Size() int { - return m.Size() -} -func (m *ChainStartResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ChainStartResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ChainStartResponse proto.InternalMessageInfo - -func (m *ChainStartResponse) GetStarted() bool { - if m != nil { - return m.Started + var l int + _ = l + if m.Slot != 0 { + n += 1 + sovServices(uint64(m.Slot)) } - return false -} - -func (m *ChainStartResponse) GetGenesisTime() uint64 { - if m != nil { - return m.GenesisTime + if m.CommitteeIndex != 0 { + n += 1 + sovServices(uint64(m.CommitteeIndex)) } - return 0 -} - -type ValidatorIndexRequest struct { - PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ValidatorIndexRequest) Reset() { *m = ValidatorIndexRequest{} } -func (m *ValidatorIndexRequest) String() string { return proto.CompactTextString(m) } -func (*ValidatorIndexRequest) ProtoMessage() {} -func (*ValidatorIndexRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{13} -} -func (m *ValidatorIndexRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatorIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValidatorIndexRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + l = len(m.PublicKey) + if l > 0 { + n += 1 + l + sovServices(uint64(l)) } -} -func (m *ValidatorIndexRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorIndexRequest.Merge(m, src) -} -func (m *ValidatorIndexRequest) XXX_Size() int { - return m.Size() -} -func (m *ValidatorIndexRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorIndexRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatorIndexRequest proto.InternalMessageInfo - -func (m *ValidatorIndexRequest) GetPublicKey() []byte { - if m != nil { - return m.PublicKey + l = len(m.SlotSignature) + if l > 0 { + n += 1 + l + sovServices(uint64(l)) } - return nil -} - -type ValidatorIndexResponse struct { - Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ValidatorIndexResponse) Reset() { *m = ValidatorIndexResponse{} } -func (m *ValidatorIndexResponse) String() string { return proto.CompactTextString(m) } -func (*ValidatorIndexResponse) ProtoMessage() {} -func (*ValidatorIndexResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{14} -} -func (m *ValidatorIndexResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatorIndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValidatorIndexResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) } -} -func (m *ValidatorIndexResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorIndexResponse.Merge(m, src) -} -func (m *ValidatorIndexResponse) XXX_Size() int { - return m.Size() -} -func (m *ValidatorIndexResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorIndexResponse.DiscardUnknown(m) + return n } -var xxx_messageInfo_ValidatorIndexResponse proto.InternalMessageInfo - -func (m *ValidatorIndexResponse) GetIndex() uint64 { - if m != nil { - return m.Index +func (m *AggregationResponse) Size() (n int) { + if m == nil { + return 0 } - return 0 -} - -type AssignmentRequest struct { - EpochStart uint64 `protobuf:"varint,1,opt,name=epoch_start,json=epochStart,proto3" json:"epoch_start,omitempty"` - PublicKeys [][]byte `protobuf:"bytes,2,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AssignmentRequest) Reset() { *m = AssignmentRequest{} } -func (m *AssignmentRequest) String() string { return proto.CompactTextString(m) } -func (*AssignmentRequest) ProtoMessage() {} -func (*AssignmentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{15} -} -func (m *AssignmentRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AssignmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AssignmentRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + var l int + _ = l + l = len(m.Root) + if l > 0 { + n += 1 + l + sovServices(uint64(l)) } -} -func (m *AssignmentRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AssignmentRequest.Merge(m, src) -} -func (m *AssignmentRequest) XXX_Size() int { - return m.Size() -} -func (m *AssignmentRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AssignmentRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AssignmentRequest proto.InternalMessageInfo - -func (m *AssignmentRequest) GetEpochStart() uint64 { - if m != nil { - return m.EpochStart + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) } - return 0 + return n } -func (m *AssignmentRequest) GetPublicKeys() [][]byte { - if m != nil { - return m.PublicKeys +func (m *ExitedValidatorsRequest) Size() (n int) { + if m == nil { + return 0 } - return nil -} - -type AssignmentResponse struct { - ValidatorAssignment []*AssignmentResponse_ValidatorAssignment `protobuf:"bytes,1,rep,name=validator_assignment,json=validatorAssignment,proto3" json:"validator_assignment,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AssignmentResponse) Reset() { *m = AssignmentResponse{} } -func (m *AssignmentResponse) String() string { return proto.CompactTextString(m) } -func (*AssignmentResponse) ProtoMessage() {} -func (*AssignmentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{16} -} -func (m *AssignmentResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AssignmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AssignmentResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + var l int + _ = l + if len(m.PublicKeys) > 0 { + for _, b := range m.PublicKeys { + l = len(b) + n += 1 + l + sovServices(uint64(l)) } - return b[:n], nil } -} -func (m *AssignmentResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AssignmentResponse.Merge(m, src) -} -func (m *AssignmentResponse) XXX_Size() int { - return m.Size() -} -func (m *AssignmentResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AssignmentResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AssignmentResponse proto.InternalMessageInfo - -func (m *AssignmentResponse) GetValidatorAssignment() []*AssignmentResponse_ValidatorAssignment { - if m != nil { - return m.ValidatorAssignment + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) } - return nil -} - -type AssignmentResponse_ValidatorAssignment struct { - Committee []uint64 `protobuf:"varint,1,rep,packed,name=committee,proto3" json:"committee,omitempty"` - CommitteeIndex uint64 `protobuf:"varint,2,opt,name=committee_index,json=committeeIndex,proto3" json:"committee_index,omitempty"` - AttesterSlot uint64 `protobuf:"varint,3,opt,name=attester_slot,json=attesterSlot,proto3" json:"attester_slot,omitempty"` - ProposerSlot uint64 `protobuf:"varint,4,opt,name=proposer_slot,json=proposerSlot,proto3" json:"proposer_slot,omitempty"` - PublicKey []byte `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - Status ValidatorStatus `protobuf:"varint,6,opt,name=status,proto3,enum=ethereum.beacon.rpc.v1.ValidatorStatus" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return n } -func (m *AssignmentResponse_ValidatorAssignment) Reset() { - *m = AssignmentResponse_ValidatorAssignment{} -} -func (m *AssignmentResponse_ValidatorAssignment) String() string { return proto.CompactTextString(m) } -func (*AssignmentResponse_ValidatorAssignment) ProtoMessage() {} -func (*AssignmentResponse_ValidatorAssignment) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{16, 0} -} -func (m *AssignmentResponse_ValidatorAssignment) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AssignmentResponse_ValidatorAssignment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AssignmentResponse_ValidatorAssignment.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AssignmentResponse_ValidatorAssignment) XXX_Merge(src proto.Message) { - xxx_messageInfo_AssignmentResponse_ValidatorAssignment.Merge(m, src) -} -func (m *AssignmentResponse_ValidatorAssignment) XXX_Size() int { - return m.Size() -} -func (m *AssignmentResponse_ValidatorAssignment) XXX_DiscardUnknown() { - xxx_messageInfo_AssignmentResponse_ValidatorAssignment.DiscardUnknown(m) -} - -var xxx_messageInfo_AssignmentResponse_ValidatorAssignment proto.InternalMessageInfo - -func (m *AssignmentResponse_ValidatorAssignment) GetCommittee() []uint64 { - if m != nil { - return m.Committee - } - return nil -} - -func (m *AssignmentResponse_ValidatorAssignment) GetCommitteeIndex() uint64 { - if m != nil { - return m.CommitteeIndex - } - return 0 -} - -func (m *AssignmentResponse_ValidatorAssignment) GetAttesterSlot() uint64 { - if m != nil { - return m.AttesterSlot - } - return 0 -} - -func (m *AssignmentResponse_ValidatorAssignment) GetProposerSlot() uint64 { - if m != nil { - return m.ProposerSlot - } - return 0 -} - -func (m *AssignmentResponse_ValidatorAssignment) GetPublicKey() []byte { - if m != nil { - return m.PublicKey - } - return nil -} - -func (m *AssignmentResponse_ValidatorAssignment) GetStatus() ValidatorStatus { - if m != nil { - return m.Status - } - return ValidatorStatus_UNKNOWN_STATUS -} - -type ValidatorStatusResponse struct { - Status ValidatorStatus `protobuf:"varint,1,opt,name=status,proto3,enum=ethereum.beacon.rpc.v1.ValidatorStatus" json:"status,omitempty"` - Eth1DepositBlockNumber uint64 `protobuf:"varint,2,opt,name=eth1_deposit_block_number,json=eth1DepositBlockNumber,proto3" json:"eth1_deposit_block_number,omitempty"` - DepositInclusionSlot uint64 `protobuf:"varint,3,opt,name=deposit_inclusion_slot,json=depositInclusionSlot,proto3" json:"deposit_inclusion_slot,omitempty"` - ActivationEpoch uint64 `protobuf:"varint,4,opt,name=activation_epoch,json=activationEpoch,proto3" json:"activation_epoch,omitempty"` - PositionInActivationQueue uint64 `protobuf:"varint,5,opt,name=position_in_activation_queue,json=positionInActivationQueue,proto3" json:"position_in_activation_queue,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ValidatorStatusResponse) Reset() { *m = ValidatorStatusResponse{} } -func (m *ValidatorStatusResponse) String() string { return proto.CompactTextString(m) } -func (*ValidatorStatusResponse) ProtoMessage() {} -func (*ValidatorStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{17} -} -func (m *ValidatorStatusResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatorStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValidatorStatusResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ValidatorStatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorStatusResponse.Merge(m, src) -} -func (m *ValidatorStatusResponse) XXX_Size() int { - return m.Size() -} -func (m *ValidatorStatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorStatusResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatorStatusResponse proto.InternalMessageInfo - -func (m *ValidatorStatusResponse) GetStatus() ValidatorStatus { - if m != nil { - return m.Status - } - return ValidatorStatus_UNKNOWN_STATUS -} - -func (m *ValidatorStatusResponse) GetEth1DepositBlockNumber() uint64 { - if m != nil { - return m.Eth1DepositBlockNumber - } - return 0 -} - -func (m *ValidatorStatusResponse) GetDepositInclusionSlot() uint64 { - if m != nil { - return m.DepositInclusionSlot - } - return 0 -} - -func (m *ValidatorStatusResponse) GetActivationEpoch() uint64 { - if m != nil { - return m.ActivationEpoch - } - return 0 -} - -func (m *ValidatorStatusResponse) GetPositionInActivationQueue() uint64 { - if m != nil { - return m.PositionInActivationQueue - } - return 0 -} - -type DomainRequest struct { - Epoch uint64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` - Domain []byte `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DomainRequest) Reset() { *m = DomainRequest{} } -func (m *DomainRequest) String() string { return proto.CompactTextString(m) } -func (*DomainRequest) ProtoMessage() {} -func (*DomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{18} -} -func (m *DomainRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DomainRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DomainRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DomainRequest.Merge(m, src) -} -func (m *DomainRequest) XXX_Size() int { - return m.Size() -} -func (m *DomainRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DomainRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DomainRequest proto.InternalMessageInfo - -func (m *DomainRequest) GetEpoch() uint64 { - if m != nil { - return m.Epoch - } - return 0 -} - -func (m *DomainRequest) GetDomain() []byte { - if m != nil { - return m.Domain - } - return nil -} - -type DomainResponse struct { - SignatureDomain uint64 `protobuf:"varint,1,opt,name=signature_domain,json=signatureDomain,proto3" json:"signature_domain,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DomainResponse) Reset() { *m = DomainResponse{} } -func (m *DomainResponse) String() string { return proto.CompactTextString(m) } -func (*DomainResponse) ProtoMessage() {} -func (*DomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{19} -} -func (m *DomainResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DomainResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DomainResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DomainResponse.Merge(m, src) -} -func (m *DomainResponse) XXX_Size() int { - return m.Size() -} -func (m *DomainResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DomainResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DomainResponse proto.InternalMessageInfo - -func (m *DomainResponse) GetSignatureDomain() uint64 { - if m != nil { - return m.SignatureDomain - } - return 0 -} - -type BlockTreeResponse struct { - Tree []*BlockTreeResponse_TreeNode `protobuf:"bytes,1,rep,name=tree,proto3" json:"tree,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BlockTreeResponse) Reset() { *m = BlockTreeResponse{} } -func (m *BlockTreeResponse) String() string { return proto.CompactTextString(m) } -func (*BlockTreeResponse) ProtoMessage() {} -func (*BlockTreeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{20} -} -func (m *BlockTreeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockTreeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockTreeResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockTreeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockTreeResponse.Merge(m, src) -} -func (m *BlockTreeResponse) XXX_Size() int { - return m.Size() -} -func (m *BlockTreeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BlockTreeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockTreeResponse proto.InternalMessageInfo - -func (m *BlockTreeResponse) GetTree() []*BlockTreeResponse_TreeNode { - if m != nil { - return m.Tree - } - return nil -} - -type BlockTreeResponse_TreeNode struct { - Block *v1alpha1.BeaconBlock `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` - BlockRoot []byte `protobuf:"bytes,2,opt,name=block_root,json=blockRoot,proto3" json:"block_root,omitempty"` - ParticipatedVotes uint64 `protobuf:"varint,3,opt,name=participated_votes,json=participatedVotes,proto3" json:"participated_votes,omitempty"` - TotalVotes uint64 `protobuf:"varint,4,opt,name=total_votes,json=totalVotes,proto3" json:"total_votes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BlockTreeResponse_TreeNode) Reset() { *m = BlockTreeResponse_TreeNode{} } -func (m *BlockTreeResponse_TreeNode) String() string { return proto.CompactTextString(m) } -func (*BlockTreeResponse_TreeNode) ProtoMessage() {} -func (*BlockTreeResponse_TreeNode) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{20, 0} -} -func (m *BlockTreeResponse_TreeNode) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BlockTreeResponse_TreeNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BlockTreeResponse_TreeNode.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BlockTreeResponse_TreeNode) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockTreeResponse_TreeNode.Merge(m, src) -} -func (m *BlockTreeResponse_TreeNode) XXX_Size() int { - return m.Size() -} -func (m *BlockTreeResponse_TreeNode) XXX_DiscardUnknown() { - xxx_messageInfo_BlockTreeResponse_TreeNode.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockTreeResponse_TreeNode proto.InternalMessageInfo - -func (m *BlockTreeResponse_TreeNode) GetBlock() *v1alpha1.BeaconBlock { - if m != nil { - return m.Block - } - return nil -} - -func (m *BlockTreeResponse_TreeNode) GetBlockRoot() []byte { - if m != nil { - return m.BlockRoot - } - return nil -} - -func (m *BlockTreeResponse_TreeNode) GetParticipatedVotes() uint64 { - if m != nil { - return m.ParticipatedVotes - } - return 0 -} - -func (m *BlockTreeResponse_TreeNode) GetTotalVotes() uint64 { - if m != nil { - return m.TotalVotes - } - return 0 -} - -type TreeBlockSlotRequest struct { - SlotFrom uint64 `protobuf:"varint,1,opt,name=slot_from,json=slotFrom,proto3" json:"slot_from,omitempty"` - SlotTo uint64 `protobuf:"varint,2,opt,name=slot_to,json=slotTo,proto3" json:"slot_to,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TreeBlockSlotRequest) Reset() { *m = TreeBlockSlotRequest{} } -func (m *TreeBlockSlotRequest) String() string { return proto.CompactTextString(m) } -func (*TreeBlockSlotRequest) ProtoMessage() {} -func (*TreeBlockSlotRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{21} -} -func (m *TreeBlockSlotRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TreeBlockSlotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TreeBlockSlotRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *TreeBlockSlotRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TreeBlockSlotRequest.Merge(m, src) -} -func (m *TreeBlockSlotRequest) XXX_Size() int { - return m.Size() -} -func (m *TreeBlockSlotRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TreeBlockSlotRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TreeBlockSlotRequest proto.InternalMessageInfo - -func (m *TreeBlockSlotRequest) GetSlotFrom() uint64 { - if m != nil { - return m.SlotFrom - } - return 0 -} - -func (m *TreeBlockSlotRequest) GetSlotTo() uint64 { - if m != nil { - return m.SlotTo - } - return 0 -} - -func init() { - proto.RegisterEnum("ethereum.beacon.rpc.v1.ValidatorRole", ValidatorRole_name, ValidatorRole_value) - proto.RegisterEnum("ethereum.beacon.rpc.v1.ValidatorStatus", ValidatorStatus_name, ValidatorStatus_value) - proto.RegisterType((*BlockRequest)(nil), "ethereum.beacon.rpc.v1.BlockRequest") - proto.RegisterType((*ProposeResponse)(nil), "ethereum.beacon.rpc.v1.ProposeResponse") - proto.RegisterType((*AttestationRequest)(nil), "ethereum.beacon.rpc.v1.AttestationRequest") - proto.RegisterType((*AttestResponse)(nil), "ethereum.beacon.rpc.v1.AttestResponse") - proto.RegisterType((*AggregationRequest)(nil), "ethereum.beacon.rpc.v1.AggregationRequest") - proto.RegisterType((*AggregationResponse)(nil), "ethereum.beacon.rpc.v1.AggregationResponse") - proto.RegisterType((*ValidatorPerformanceRequest)(nil), "ethereum.beacon.rpc.v1.ValidatorPerformanceRequest") - proto.RegisterType((*ValidatorPerformanceResponse)(nil), "ethereum.beacon.rpc.v1.ValidatorPerformanceResponse") - proto.RegisterType((*ValidatorActivationRequest)(nil), "ethereum.beacon.rpc.v1.ValidatorActivationRequest") - proto.RegisterType((*ValidatorActivationResponse)(nil), "ethereum.beacon.rpc.v1.ValidatorActivationResponse") - proto.RegisterType((*ValidatorActivationResponse_Status)(nil), "ethereum.beacon.rpc.v1.ValidatorActivationResponse.Status") - proto.RegisterType((*ExitedValidatorsRequest)(nil), "ethereum.beacon.rpc.v1.ExitedValidatorsRequest") - proto.RegisterType((*ExitedValidatorsResponse)(nil), "ethereum.beacon.rpc.v1.ExitedValidatorsResponse") - proto.RegisterType((*ChainStartResponse)(nil), "ethereum.beacon.rpc.v1.ChainStartResponse") - proto.RegisterType((*ValidatorIndexRequest)(nil), "ethereum.beacon.rpc.v1.ValidatorIndexRequest") - proto.RegisterType((*ValidatorIndexResponse)(nil), "ethereum.beacon.rpc.v1.ValidatorIndexResponse") - proto.RegisterType((*AssignmentRequest)(nil), "ethereum.beacon.rpc.v1.AssignmentRequest") - proto.RegisterType((*AssignmentResponse)(nil), "ethereum.beacon.rpc.v1.AssignmentResponse") - proto.RegisterType((*AssignmentResponse_ValidatorAssignment)(nil), "ethereum.beacon.rpc.v1.AssignmentResponse.ValidatorAssignment") - proto.RegisterType((*ValidatorStatusResponse)(nil), "ethereum.beacon.rpc.v1.ValidatorStatusResponse") - proto.RegisterType((*DomainRequest)(nil), "ethereum.beacon.rpc.v1.DomainRequest") - proto.RegisterType((*DomainResponse)(nil), "ethereum.beacon.rpc.v1.DomainResponse") - proto.RegisterType((*BlockTreeResponse)(nil), "ethereum.beacon.rpc.v1.BlockTreeResponse") - proto.RegisterType((*BlockTreeResponse_TreeNode)(nil), "ethereum.beacon.rpc.v1.BlockTreeResponse.TreeNode") - proto.RegisterType((*TreeBlockSlotRequest)(nil), "ethereum.beacon.rpc.v1.TreeBlockSlotRequest") -} - -func init() { proto.RegisterFile("proto/beacon/rpc/v1/services.proto", fileDescriptor_9eb4e94b85965285) } - -var fileDescriptor_9eb4e94b85965285 = []byte{ - // 1691 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0x4f, 0x6f, 0xe3, 0xc6, - 0x15, 0x0f, 0x25, 0x59, 0xab, 0x7d, 0x92, 0x65, 0x7a, 0xec, 0xb5, 0x15, 0xed, 0x9f, 0xb8, 0x4c, - 0xd2, 0xd8, 0x5b, 0x44, 0xb2, 0x95, 0x60, 0xd1, 0x26, 0x48, 0x03, 0xd9, 0xe2, 0xda, 0x82, 0x17, - 0xb2, 0x42, 0x69, 0xed, 0x14, 0x39, 0x10, 0x23, 0x6a, 0x2c, 0x11, 0x91, 0x38, 0x34, 0x39, 0x12, - 0xe2, 0x4b, 0x81, 0x5e, 0x5a, 0xf4, 0xd6, 0x1e, 0x8a, 0x1e, 0x8b, 0x7e, 0x84, 0xa2, 0x87, 0x7e, - 0x85, 0x1c, 0xfb, 0x01, 0x7a, 0x28, 0xf6, 0x93, 0x04, 0x9c, 0x19, 0x52, 0xd4, 0x3f, 0x5b, 0xce, - 0x8d, 0xf3, 0xde, 0xfb, 0xbd, 0xbf, 0x33, 0x6f, 0xde, 0x10, 0x34, 0xd7, 0xa3, 0x8c, 0x96, 0x3b, - 0x04, 0x5b, 0xd4, 0x29, 0x7b, 0xae, 0x55, 0x1e, 0x1f, 0x95, 0x7d, 0xe2, 0x8d, 0x6d, 0x8b, 0xf8, - 0x25, 0xce, 0x44, 0x3b, 0x84, 0xf5, 0x89, 0x47, 0x46, 0xc3, 0x92, 0x10, 0x2b, 0x79, 0xae, 0x55, - 0x1a, 0x1f, 0x15, 0x9f, 0xf6, 0x28, 0xed, 0x0d, 0x48, 0x99, 0x4b, 0x75, 0x46, 0xd7, 0x65, 0x32, - 0x74, 0xd9, 0xad, 0x00, 0x15, 0x3f, 0x20, 0xac, 0x5f, 0x1e, 0x1f, 0xe1, 0x81, 0xdb, 0xc7, 0x47, - 0x52, 0xbf, 0xd9, 0x19, 0x50, 0xeb, 0x7b, 0x29, 0xf0, 0x62, 0x4a, 0x00, 0x33, 0x46, 0x7c, 0x86, - 0x99, 0x4d, 0x1d, 0xc1, 0xd7, 0x2c, 0xc8, 0x1d, 0x07, 0xe2, 0x06, 0xb9, 0x19, 0x11, 0x9f, 0x21, - 0x04, 0x29, 0x7f, 0x40, 0x59, 0x41, 0xd9, 0x53, 0xf6, 0x53, 0x06, 0xff, 0x46, 0x1f, 0xc2, 0xba, - 0x87, 0x9d, 0x2e, 0xa6, 0xa6, 0x47, 0xc6, 0x04, 0x0f, 0x0a, 0x89, 0x3d, 0x65, 0x3f, 0x67, 0xe4, - 0x04, 0xd1, 0xe0, 0x34, 0x54, 0x84, 0x4c, 0xcf, 0xc3, 0xd7, 0xd7, 0x36, 0xb3, 0x0b, 0x49, 0xce, - 0x8f, 0xd6, 0xda, 0x21, 0x6c, 0x34, 0x3d, 0xea, 0x52, 0x9f, 0x18, 0xc4, 0x77, 0xa9, 0xe3, 0x13, - 0xf4, 0x1c, 0x80, 0xbb, 0x69, 0x7a, 0x54, 0x5a, 0xcb, 0x19, 0x8f, 0x39, 0xc5, 0xa0, 0x94, 0x69, - 0x7f, 0x56, 0x00, 0x55, 0x27, 0xce, 0x86, 0xde, 0x3d, 0x07, 0x70, 0x47, 0x9d, 0x81, 0x6d, 0x99, - 0xdf, 0x93, 0xdb, 0x10, 0x25, 0x28, 0xe7, 0xe4, 0x16, 0xed, 0xc2, 0x23, 0x97, 0x5a, 0x66, 0xc7, - 0x66, 0xd2, 0xc5, 0xb4, 0x4b, 0xad, 0x63, 0x7b, 0x12, 0x55, 0x32, 0x16, 0xd5, 0x27, 0xb0, 0x61, - 0xd1, 0xe1, 0xd0, 0x66, 0x8c, 0x10, 0xd3, 0x76, 0xba, 0xe4, 0x87, 0x42, 0x8a, 0xb3, 0xf3, 0x11, - 0xb9, 0x1e, 0x50, 0xb5, 0x8f, 0x20, 0x2f, 0x5c, 0x89, 0x9c, 0x47, 0x90, 0x8a, 0xb9, 0xcd, 0xbf, - 0xb5, 0xbf, 0x07, 0x1e, 0xf7, 0x7a, 0x1e, 0xe9, 0x4d, 0x79, 0xbc, 0x28, 0x9f, 0x0b, 0x2c, 0x27, - 0x16, 0x59, 0x9e, 0x09, 0x37, 0x39, 0x1b, 0xee, 0xc7, 0x90, 0x0f, 0xf4, 0x99, 0xbe, 0xdd, 0x73, - 0x30, 0x1b, 0x79, 0x84, 0x07, 0x90, 0x33, 0xd6, 0x03, 0x6a, 0x2b, 0x24, 0x6a, 0x07, 0xb0, 0x35, - 0xe5, 0xd8, 0x1d, 0x41, 0x18, 0xf0, 0xf4, 0x12, 0x0f, 0xec, 0x2e, 0x66, 0xd4, 0x6b, 0x12, 0xef, - 0x9a, 0x7a, 0x43, 0xec, 0x58, 0xe4, 0xae, 0x60, 0x3e, 0x80, 0xec, 0xc4, 0x47, 0xbf, 0x90, 0xd8, - 0x4b, 0xee, 0xe7, 0x0c, 0x88, 0x9c, 0xf4, 0xb5, 0xbf, 0x25, 0xe0, 0xd9, 0x62, 0xa5, 0xd2, 0x91, - 0x22, 0x64, 0x3a, 0x78, 0x10, 0x90, 0xfc, 0x82, 0xb2, 0x97, 0xdc, 0x4f, 0x19, 0xd1, 0x1a, 0x1d, - 0x80, 0xca, 0x28, 0xc3, 0x03, 0x73, 0x1c, 0x6a, 0xf0, 0x65, 0xae, 0x36, 0x38, 0x3d, 0x52, 0xec, - 0xa3, 0x57, 0xb0, 0x2b, 0x44, 0xb1, 0xc5, 0xec, 0x31, 0x89, 0x23, 0x44, 0xd9, 0x9f, 0x70, 0x76, - 0x95, 0x73, 0x63, 0xb8, 0x4f, 0x01, 0x0d, 0x6d, 0xdf, 0xb7, 0x9d, 0x5e, 0x1c, 0x92, 0xe2, 0x71, - 0x6c, 0x4a, 0x4e, 0x4c, 0xfc, 0x14, 0xf6, 0xf0, 0x98, 0x78, 0xb8, 0x47, 0xe6, 0x0c, 0x99, 0xd2, - 0xed, 0xc2, 0xda, 0x9e, 0xb2, 0x9f, 0x30, 0x9e, 0x4b, 0xb9, 0x19, 0x8b, 0xc7, 0x42, 0x48, 0xfb, - 0x0a, 0x8a, 0x11, 0x8d, 0x8b, 0x4c, 0xed, 0x9b, 0x99, 0xb4, 0x2a, 0x73, 0x69, 0xfd, 0x47, 0x22, - 0x56, 0xab, 0x38, 0x5e, 0x66, 0xf5, 0x15, 0x3c, 0xc1, 0x82, 0x4a, 0xba, 0xe6, 0x9c, 0xaa, 0xe3, - 0x44, 0x41, 0x31, 0xb6, 0x22, 0x81, 0x66, 0xa4, 0x17, 0x5d, 0x42, 0x26, 0x38, 0x74, 0x23, 0x9f, - 0x88, 0x62, 0x66, 0x2b, 0x5f, 0x94, 0x16, 0x77, 0xa6, 0xd2, 0x1d, 0xe6, 0x4b, 0x2d, 0xae, 0xc3, - 0x88, 0x74, 0x15, 0x5d, 0x48, 0x0b, 0xda, 0x7d, 0x87, 0xf8, 0x14, 0xd2, 0x02, 0xc4, 0x0b, 0x9d, - 0xad, 0x94, 0xef, 0x35, 0x2f, 0x6d, 0x49, 0xd3, 0x86, 0x84, 0x6b, 0x5f, 0xc0, 0xae, 0xfe, 0x83, - 0xcd, 0x48, 0x77, 0x52, 0xbd, 0x95, 0xb3, 0xfb, 0x25, 0x14, 0xe6, 0xb1, 0x32, 0xb3, 0xf7, 0x82, - 0xbf, 0x01, 0x74, 0xd2, 0xc7, 0xb6, 0xd3, 0x62, 0xd8, 0x9b, 0x34, 0x8d, 0x02, 0x3c, 0xf2, 0x03, - 0x02, 0xe9, 0xf2, 0x98, 0x33, 0x46, 0xb8, 0x44, 0xbf, 0x80, 0x5c, 0x8f, 0x38, 0xc4, 0xb7, 0x7d, - 0x93, 0xd9, 0x43, 0x22, 0x37, 0x78, 0x56, 0xd2, 0xda, 0xf6, 0x90, 0x68, 0xaf, 0xe0, 0x49, 0xe4, - 0x09, 0xef, 0x0d, 0xab, 0x75, 0x44, 0xad, 0x04, 0x3b, 0xb3, 0x38, 0xe9, 0xce, 0x36, 0xac, 0x89, - 0xd6, 0x23, 0x0e, 0xb3, 0x58, 0x68, 0x6f, 0x61, 0xb3, 0xea, 0x07, 0xfd, 0x64, 0x48, 0x1c, 0x16, - 0xcb, 0x16, 0x71, 0xa9, 0xd5, 0x37, 0xb9, 0xc3, 0x12, 0x00, 0x9c, 0xc4, 0x43, 0xbc, 0xbf, 0x07, - 0xfc, 0x25, 0x09, 0x28, 0xae, 0x57, 0xfa, 0x70, 0x03, 0xdb, 0x93, 0xc3, 0x83, 0x23, 0x3e, 0x4f, - 0x69, 0xb6, 0xf2, 0xdb, 0x65, 0x85, 0x9f, 0xd7, 0x14, 0xdb, 0x8a, 0x13, 0xde, 0xd6, 0x78, 0x9e, - 0x58, 0xfc, 0x63, 0x02, 0xb6, 0x16, 0x08, 0xa3, 0x67, 0xf0, 0x38, 0x6a, 0xbe, 0xb2, 0x0b, 0x4d, - 0x08, 0xab, 0x77, 0xec, 0x0f, 0x61, 0x5d, 0xdc, 0xb1, 0xc4, 0x33, 0x63, 0x37, 0x4e, 0x2e, 0x24, - 0xb6, 0xe4, 0x7d, 0xea, 0x8a, 0xeb, 0x50, 0x0a, 0x89, 0x7b, 0x27, 0x17, 0x12, 0xb9, 0xd0, 0x74, - 0x61, 0xd7, 0x66, 0x4f, 0xc9, 0xd7, 0xd1, 0x29, 0x49, 0xef, 0x29, 0xfb, 0xf9, 0xca, 0x27, 0xab, - 0x9e, 0x92, 0xf0, 0x74, 0xfc, 0x27, 0x01, 0xbb, 0x4b, 0x4e, 0x50, 0x4c, 0xb9, 0xf2, 0xb3, 0x94, - 0xa3, 0xdf, 0xc0, 0xfb, 0x84, 0xf5, 0x8f, 0xcc, 0x2e, 0x71, 0xa9, 0x6f, 0x33, 0x31, 0x91, 0x98, - 0xce, 0x68, 0xd8, 0x21, 0x9e, 0xcc, 0x5c, 0x30, 0xee, 0x1c, 0xd5, 0x04, 0x9f, 0x4f, 0x20, 0x0d, - 0xce, 0x45, 0x9f, 0xc3, 0x4e, 0x88, 0xb2, 0x1d, 0x6b, 0x30, 0xf2, 0x6d, 0xea, 0xc4, 0x53, 0xb9, - 0x2d, 0xb9, 0xf5, 0x90, 0xc9, 0xb3, 0x75, 0x00, 0x2a, 0x8e, 0x9a, 0x90, 0xc9, 0xb7, 0xa6, 0xcc, - 0xea, 0xc6, 0x84, 0xae, 0x07, 0x64, 0xf4, 0x35, 0x3c, 0xe3, 0x0a, 0x02, 0x41, 0xdb, 0x31, 0x63, - 0xb0, 0x9b, 0x11, 0x19, 0x89, 0xe6, 0x9d, 0x32, 0xde, 0x0f, 0x65, 0xea, 0xce, 0xa4, 0xbb, 0x7d, - 0x13, 0x08, 0x68, 0x5f, 0xc1, 0x7a, 0x8d, 0x0e, 0xb1, 0x1d, 0xf5, 0xea, 0x6d, 0x58, 0x13, 0x16, - 0xe5, 0x51, 0xe2, 0x0b, 0xb4, 0x03, 0xe9, 0x2e, 0x17, 0x0b, 0x67, 0x11, 0xb1, 0xd2, 0xbe, 0x84, - 0x7c, 0x08, 0x97, 0xe9, 0x3e, 0x00, 0x35, 0xba, 0xc2, 0x4d, 0x89, 0x11, 0xaa, 0x36, 0x22, 0xba, - 0x80, 0x68, 0x7f, 0x4d, 0xc0, 0x26, 0xcf, 0x56, 0xdb, 0x23, 0x93, 0x1b, 0xf4, 0x35, 0xa4, 0x98, - 0x27, 0xf7, 0x6d, 0xb6, 0x52, 0x59, 0x56, 0xad, 0x39, 0x60, 0x29, 0x58, 0x34, 0x68, 0x97, 0x18, - 0x1c, 0x5f, 0xfc, 0xb7, 0x02, 0x99, 0x90, 0x84, 0x7e, 0x0d, 0x6b, 0xbc, 0x6c, 0xdc, 0x95, 0x6c, - 0x45, 0x9b, 0x68, 0x25, 0xac, 0x5f, 0x0a, 0x47, 0xca, 0xd2, 0x31, 0x37, 0x21, 0x66, 0x48, 0x01, - 0x98, 0x99, 0xed, 0x12, 0x33, 0xb3, 0x5d, 0x70, 0xe1, 0xba, 0xd8, 0x63, 0xb6, 0x65, 0xbb, 0xfc, - 0x72, 0x1a, 0x53, 0x46, 0xc2, 0x3b, 0x7a, 0x33, 0xce, 0xb9, 0x0c, 0x18, 0x41, 0x73, 0x91, 0x23, - 0x00, 0x97, 0x13, 0x55, 0x05, 0x71, 0xfb, 0x07, 0x14, 0xed, 0x0d, 0x6c, 0x07, 0x4e, 0x73, 0x17, - 0x82, 0xcd, 0x10, 0x96, 0xe5, 0x29, 0x3c, 0xe6, 0xe3, 0xd1, 0xb5, 0x47, 0x87, 0x32, 0x9f, 0x99, - 0x80, 0xf0, 0xda, 0xa3, 0xc3, 0x60, 0x54, 0xe4, 0x4c, 0x46, 0xe5, 0x7e, 0x4c, 0x07, 0xcb, 0x36, - 0x7d, 0x79, 0x06, 0xeb, 0xd1, 0xae, 0x36, 0xe8, 0x80, 0xa0, 0x2c, 0x3c, 0x7a, 0xdb, 0x38, 0x6f, - 0x5c, 0x5c, 0x35, 0xd4, 0xf7, 0x50, 0x0e, 0x32, 0xd5, 0x76, 0x5b, 0x6f, 0xb5, 0x75, 0x43, 0x55, - 0x82, 0x55, 0xd3, 0xb8, 0x68, 0x5e, 0xb4, 0x74, 0x43, 0x4d, 0xa0, 0x3c, 0x40, 0xf5, 0xf4, 0xd4, - 0xd0, 0x4f, 0xab, 0xed, 0x0b, 0x43, 0x4d, 0xbe, 0xfc, 0xa7, 0x02, 0x1b, 0x33, 0x07, 0x04, 0x21, - 0xc8, 0x4b, 0x65, 0x66, 0xab, 0x5d, 0x6d, 0xbf, 0x6d, 0xa9, 0xef, 0xa1, 0x6d, 0x50, 0x6b, 0x7a, - 0xf3, 0xa2, 0x55, 0x6f, 0x9b, 0x86, 0x7e, 0xa2, 0xd7, 0x2f, 0xf5, 0x9a, 0xaa, 0x04, 0x92, 0x4d, - 0xbd, 0x51, 0xab, 0x37, 0x4e, 0xcd, 0xea, 0x49, 0xbb, 0x7e, 0xa9, 0xab, 0x09, 0x04, 0x90, 0x96, - 0xdf, 0xc9, 0x80, 0x5f, 0x6f, 0xd4, 0xdb, 0xf5, 0x6a, 0x5b, 0xaf, 0x99, 0xfa, 0xb7, 0xf5, 0xb6, - 0x9a, 0x42, 0x2a, 0xe4, 0xae, 0xea, 0xed, 0xb3, 0x9a, 0x51, 0xbd, 0xaa, 0x1e, 0xbf, 0xd1, 0xd5, - 0xb5, 0x00, 0x11, 0xf0, 0xf4, 0x9a, 0x9a, 0x0e, 0x10, 0xe2, 0xdb, 0x6c, 0xbd, 0xa9, 0xb6, 0xce, - 0xf4, 0x9a, 0xfa, 0xa8, 0xf2, 0x3f, 0x05, 0x36, 0xaa, 0x61, 0x6f, 0x12, 0xef, 0x11, 0xd4, 0x07, - 0x24, 0x53, 0x18, 0x9b, 0xc0, 0xd1, 0xcb, 0xa5, 0xdd, 0x78, 0x6e, 0x4c, 0x2f, 0xfe, 0x72, 0xc9, - 0x5e, 0x89, 0x89, 0xd6, 0x30, 0xc3, 0xc8, 0x84, 0xcd, 0xd6, 0xa8, 0x33, 0xb4, 0xa7, 0x0c, 0x69, - 0xf7, 0x83, 0xe3, 0x06, 0x16, 0x39, 0x13, 0xee, 0xef, 0xca, 0x8f, 0x4a, 0xf4, 0xf2, 0x88, 0xc2, - 0xfb, 0x16, 0x72, 0xd2, 0x4f, 0xbe, 0x63, 0xd0, 0x47, 0x77, 0x1e, 0x97, 0x30, 0xa4, 0x15, 0xb6, - 0x3f, 0xfa, 0x0e, 0x72, 0xd2, 0x98, 0x58, 0xaf, 0x80, 0x29, 0x2e, 0x6d, 0xad, 0x33, 0x0f, 0xa6, - 0xca, 0x9f, 0x14, 0xd8, 0x0c, 0xc7, 0x78, 0x1a, 0x05, 0xe3, 0xc1, 0xae, 0xcc, 0xa0, 0x64, 0x91, - 0xaa, 0xd3, 0x6d, 0x7a, 0x94, 0x5e, 0xdf, 0x51, 0xb0, 0xb9, 0x57, 0x4a, 0xf1, 0x57, 0x2b, 0xc9, - 0x4a, 0x4f, 0xfe, 0x95, 0x01, 0x75, 0xb2, 0xaf, 0xa5, 0x23, 0xdf, 0x01, 0x88, 0x16, 0xc5, 0x0b, - 0xfb, 0xf1, 0x32, 0x7d, 0x53, 0x8d, 0x73, 0x79, 0x19, 0x67, 0x1a, 0xe4, 0xef, 0x61, 0xf3, 0x0a, - 0xdb, 0xec, 0x75, 0x7c, 0xd2, 0x44, 0x95, 0x07, 0x8d, 0xa5, 0xc2, 0xe0, 0x67, 0x3f, 0x63, 0x94, - 0x3d, 0x54, 0x10, 0x85, 0xfc, 0xf4, 0x14, 0x85, 0x3e, 0xbd, 0x57, 0x51, 0x7c, 0x4a, 0x2b, 0x96, - 0x56, 0x15, 0x97, 0x01, 0x0f, 0x60, 0xeb, 0x24, 0x1c, 0x2c, 0x62, 0x43, 0xca, 0xc1, 0x2a, 0x13, - 0x91, 0xb0, 0xf8, 0x72, 0xf5, 0xe1, 0x09, 0xdd, 0xcc, 0xf7, 0xa9, 0x07, 0xc6, 0xf7, 0xd0, 0x19, - 0x1d, 0xfd, 0x41, 0x81, 0xed, 0x45, 0x8f, 0x42, 0x74, 0x7f, 0x85, 0xe6, 0xdf, 0xa5, 0xc5, 0xcf, - 0x1f, 0x06, 0x92, 0x3e, 0x8c, 0x40, 0x9d, 0x9d, 0xf1, 0xd1, 0xd2, 0x40, 0x96, 0xbc, 0x24, 0x8a, - 0x87, 0xab, 0x03, 0xa4, 0xd9, 0xdf, 0x45, 0x9b, 0x79, 0xf2, 0x48, 0x40, 0x3b, 0x25, 0xf1, 0x97, - 0xa7, 0x14, 0xfe, 0xe5, 0x29, 0xe9, 0x43, 0x97, 0xdd, 0x2e, 0x2f, 0xe3, 0xfc, 0x03, 0xe3, 0x50, - 0x41, 0xe7, 0xb0, 0x7e, 0x82, 0x1d, 0xea, 0xd8, 0x16, 0x1e, 0x9c, 0x11, 0xdc, 0x5d, 0xaa, 0x76, - 0x95, 0x6e, 0x76, 0x0e, 0x59, 0xd9, 0x83, 0x82, 0x50, 0xe2, 0x6d, 0x72, 0x0a, 0x72, 0x49, 0x07, - 0x23, 0x87, 0x61, 0xef, 0x36, 0x90, 0x2a, 0x2e, 0x31, 0x78, 0x9c, 0xfb, 0xf1, 0xdd, 0x0b, 0xe5, - 0xbf, 0xef, 0x5e, 0x28, 0xff, 0x7f, 0xf7, 0x42, 0xe9, 0xa4, 0x39, 0xf7, 0xb3, 0x9f, 0x02, 0x00, - 0x00, 0xff, 0xff, 0xfd, 0x4f, 0x4f, 0xa7, 0x17, 0x13, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// AttesterServiceClient is the client API for AttesterService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type AttesterServiceClient interface { - RequestAttestation(ctx context.Context, in *AttestationRequest, opts ...grpc.CallOption) (*v1alpha1.AttestationData, error) - SubmitAttestation(ctx context.Context, in *v1alpha1.Attestation, opts ...grpc.CallOption) (*AttestResponse, error) -} - -type attesterServiceClient struct { - cc *grpc.ClientConn -} - -func NewAttesterServiceClient(cc *grpc.ClientConn) AttesterServiceClient { - return &attesterServiceClient{cc} -} - -func (c *attesterServiceClient) RequestAttestation(ctx context.Context, in *AttestationRequest, opts ...grpc.CallOption) (*v1alpha1.AttestationData, error) { - out := new(v1alpha1.AttestationData) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.AttesterService/RequestAttestation", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *attesterServiceClient) SubmitAttestation(ctx context.Context, in *v1alpha1.Attestation, opts ...grpc.CallOption) (*AttestResponse, error) { - out := new(AttestResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.AttesterService/SubmitAttestation", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AttesterServiceServer is the server API for AttesterService service. -type AttesterServiceServer interface { - RequestAttestation(context.Context, *AttestationRequest) (*v1alpha1.AttestationData, error) - SubmitAttestation(context.Context, *v1alpha1.Attestation) (*AttestResponse, error) -} - -// UnimplementedAttesterServiceServer can be embedded to have forward compatible implementations. -type UnimplementedAttesterServiceServer struct { -} - -func (*UnimplementedAttesterServiceServer) RequestAttestation(ctx context.Context, req *AttestationRequest) (*v1alpha1.AttestationData, error) { - return nil, status.Errorf(codes.Unimplemented, "method RequestAttestation not implemented") -} -func (*UnimplementedAttesterServiceServer) SubmitAttestation(ctx context.Context, req *v1alpha1.Attestation) (*AttestResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SubmitAttestation not implemented") -} - -func RegisterAttesterServiceServer(s *grpc.Server, srv AttesterServiceServer) { - s.RegisterService(&_AttesterService_serviceDesc, srv) -} - -func _AttesterService_RequestAttestation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AttestationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AttesterServiceServer).RequestAttestation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.AttesterService/RequestAttestation", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AttesterServiceServer).RequestAttestation(ctx, req.(*AttestationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AttesterService_SubmitAttestation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1alpha1.Attestation) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AttesterServiceServer).SubmitAttestation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.AttesterService/SubmitAttestation", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AttesterServiceServer).SubmitAttestation(ctx, req.(*v1alpha1.Attestation)) - } - return interceptor(ctx, in, info, handler) -} - -var _AttesterService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "ethereum.beacon.rpc.v1.AttesterService", - HandlerType: (*AttesterServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "RequestAttestation", - Handler: _AttesterService_RequestAttestation_Handler, - }, - { - MethodName: "SubmitAttestation", - Handler: _AttesterService_SubmitAttestation_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "proto/beacon/rpc/v1/services.proto", -} - -// ProposerServiceClient is the client API for ProposerService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ProposerServiceClient interface { - RequestBlock(ctx context.Context, in *BlockRequest, opts ...grpc.CallOption) (*v1alpha1.BeaconBlock, error) - ProposeBlock(ctx context.Context, in *v1alpha1.BeaconBlock, opts ...grpc.CallOption) (*ProposeResponse, error) -} - -type proposerServiceClient struct { - cc *grpc.ClientConn -} - -func NewProposerServiceClient(cc *grpc.ClientConn) ProposerServiceClient { - return &proposerServiceClient{cc} -} - -func (c *proposerServiceClient) RequestBlock(ctx context.Context, in *BlockRequest, opts ...grpc.CallOption) (*v1alpha1.BeaconBlock, error) { - out := new(v1alpha1.BeaconBlock) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ProposerService/RequestBlock", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proposerServiceClient) ProposeBlock(ctx context.Context, in *v1alpha1.BeaconBlock, opts ...grpc.CallOption) (*ProposeResponse, error) { - out := new(ProposeResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ProposerService/ProposeBlock", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ProposerServiceServer is the server API for ProposerService service. -type ProposerServiceServer interface { - RequestBlock(context.Context, *BlockRequest) (*v1alpha1.BeaconBlock, error) - ProposeBlock(context.Context, *v1alpha1.BeaconBlock) (*ProposeResponse, error) -} - -// UnimplementedProposerServiceServer can be embedded to have forward compatible implementations. -type UnimplementedProposerServiceServer struct { -} - -func (*UnimplementedProposerServiceServer) RequestBlock(ctx context.Context, req *BlockRequest) (*v1alpha1.BeaconBlock, error) { - return nil, status.Errorf(codes.Unimplemented, "method RequestBlock not implemented") -} -func (*UnimplementedProposerServiceServer) ProposeBlock(ctx context.Context, req *v1alpha1.BeaconBlock) (*ProposeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProposeBlock not implemented") -} - -func RegisterProposerServiceServer(s *grpc.Server, srv ProposerServiceServer) { - s.RegisterService(&_ProposerService_serviceDesc, srv) -} - -func _ProposerService_RequestBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BlockRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProposerServiceServer).RequestBlock(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ProposerService/RequestBlock", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProposerServiceServer).RequestBlock(ctx, req.(*BlockRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProposerService_ProposeBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1alpha1.BeaconBlock) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProposerServiceServer).ProposeBlock(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ProposerService/ProposeBlock", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProposerServiceServer).ProposeBlock(ctx, req.(*v1alpha1.BeaconBlock)) - } - return interceptor(ctx, in, info, handler) -} - -var _ProposerService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "ethereum.beacon.rpc.v1.ProposerService", - HandlerType: (*ProposerServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "RequestBlock", - Handler: _ProposerService_RequestBlock_Handler, - }, - { - MethodName: "ProposeBlock", - Handler: _ProposerService_ProposeBlock_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "proto/beacon/rpc/v1/services.proto", -} - -// AggregatorServiceClient is the client API for AggregatorService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type AggregatorServiceClient interface { - SubmitAggregateAndProof(ctx context.Context, in *AggregationRequest, opts ...grpc.CallOption) (*AggregationResponse, error) -} - -type aggregatorServiceClient struct { - cc *grpc.ClientConn -} - -func NewAggregatorServiceClient(cc *grpc.ClientConn) AggregatorServiceClient { - return &aggregatorServiceClient{cc} -} - -func (c *aggregatorServiceClient) SubmitAggregateAndProof(ctx context.Context, in *AggregationRequest, opts ...grpc.CallOption) (*AggregationResponse, error) { - out := new(AggregationResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.AggregatorService/SubmitAggregateAndProof", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AggregatorServiceServer is the server API for AggregatorService service. -type AggregatorServiceServer interface { - SubmitAggregateAndProof(context.Context, *AggregationRequest) (*AggregationResponse, error) -} - -// UnimplementedAggregatorServiceServer can be embedded to have forward compatible implementations. -type UnimplementedAggregatorServiceServer struct { -} - -func (*UnimplementedAggregatorServiceServer) SubmitAggregateAndProof(ctx context.Context, req *AggregationRequest) (*AggregationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SubmitAggregateAndProof not implemented") -} - -func RegisterAggregatorServiceServer(s *grpc.Server, srv AggregatorServiceServer) { - s.RegisterService(&_AggregatorService_serviceDesc, srv) -} - -func _AggregatorService_SubmitAggregateAndProof_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AggregationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AggregatorServiceServer).SubmitAggregateAndProof(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.AggregatorService/SubmitAggregateAndProof", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AggregatorServiceServer).SubmitAggregateAndProof(ctx, req.(*AggregationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _AggregatorService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "ethereum.beacon.rpc.v1.AggregatorService", - HandlerType: (*AggregatorServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "SubmitAggregateAndProof", - Handler: _AggregatorService_SubmitAggregateAndProof_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "proto/beacon/rpc/v1/services.proto", -} - -// ValidatorServiceClient is the client API for ValidatorService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ValidatorServiceClient interface { - DomainData(ctx context.Context, in *DomainRequest, opts ...grpc.CallOption) (*DomainResponse, error) - WaitForActivation(ctx context.Context, in *ValidatorActivationRequest, opts ...grpc.CallOption) (ValidatorService_WaitForActivationClient, error) - ValidatorIndex(ctx context.Context, in *ValidatorIndexRequest, opts ...grpc.CallOption) (*ValidatorIndexResponse, error) - CommitteeAssignment(ctx context.Context, in *AssignmentRequest, opts ...grpc.CallOption) (*AssignmentResponse, error) - ValidatorStatus(ctx context.Context, in *ValidatorIndexRequest, opts ...grpc.CallOption) (*ValidatorStatusResponse, error) - ValidatorPerformance(ctx context.Context, in *ValidatorPerformanceRequest, opts ...grpc.CallOption) (*ValidatorPerformanceResponse, error) - ExitedValidators(ctx context.Context, in *ExitedValidatorsRequest, opts ...grpc.CallOption) (*ExitedValidatorsResponse, error) - WaitForChainStart(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (ValidatorService_WaitForChainStartClient, error) - CanonicalHead(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*v1alpha1.BeaconBlock, error) - ProposeExit(ctx context.Context, in *v1alpha1.VoluntaryExit, opts ...grpc.CallOption) (*types.Empty, error) -} - -type validatorServiceClient struct { - cc *grpc.ClientConn -} - -func NewValidatorServiceClient(cc *grpc.ClientConn) ValidatorServiceClient { - return &validatorServiceClient{cc} -} - -func (c *validatorServiceClient) DomainData(ctx context.Context, in *DomainRequest, opts ...grpc.CallOption) (*DomainResponse, error) { - out := new(DomainResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/DomainData", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *validatorServiceClient) WaitForActivation(ctx context.Context, in *ValidatorActivationRequest, opts ...grpc.CallOption) (ValidatorService_WaitForActivationClient, error) { - stream, err := c.cc.NewStream(ctx, &_ValidatorService_serviceDesc.Streams[0], "/ethereum.beacon.rpc.v1.ValidatorService/WaitForActivation", opts...) - if err != nil { - return nil, err - } - x := &validatorServiceWaitForActivationClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ValidatorService_WaitForActivationClient interface { - Recv() (*ValidatorActivationResponse, error) - grpc.ClientStream -} - -type validatorServiceWaitForActivationClient struct { - grpc.ClientStream -} - -func (x *validatorServiceWaitForActivationClient) Recv() (*ValidatorActivationResponse, error) { - m := new(ValidatorActivationResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *validatorServiceClient) ValidatorIndex(ctx context.Context, in *ValidatorIndexRequest, opts ...grpc.CallOption) (*ValidatorIndexResponse, error) { - out := new(ValidatorIndexResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/ValidatorIndex", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *validatorServiceClient) CommitteeAssignment(ctx context.Context, in *AssignmentRequest, opts ...grpc.CallOption) (*AssignmentResponse, error) { - out := new(AssignmentResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/CommitteeAssignment", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *validatorServiceClient) ValidatorStatus(ctx context.Context, in *ValidatorIndexRequest, opts ...grpc.CallOption) (*ValidatorStatusResponse, error) { - out := new(ValidatorStatusResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/ValidatorStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *validatorServiceClient) ValidatorPerformance(ctx context.Context, in *ValidatorPerformanceRequest, opts ...grpc.CallOption) (*ValidatorPerformanceResponse, error) { - out := new(ValidatorPerformanceResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/ValidatorPerformance", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *validatorServiceClient) ExitedValidators(ctx context.Context, in *ExitedValidatorsRequest, opts ...grpc.CallOption) (*ExitedValidatorsResponse, error) { - out := new(ExitedValidatorsResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/ExitedValidators", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *validatorServiceClient) WaitForChainStart(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (ValidatorService_WaitForChainStartClient, error) { - stream, err := c.cc.NewStream(ctx, &_ValidatorService_serviceDesc.Streams[1], "/ethereum.beacon.rpc.v1.ValidatorService/WaitForChainStart", opts...) - if err != nil { - return nil, err - } - x := &validatorServiceWaitForChainStartClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ValidatorService_WaitForChainStartClient interface { - Recv() (*ChainStartResponse, error) - grpc.ClientStream -} - -type validatorServiceWaitForChainStartClient struct { - grpc.ClientStream -} - -func (x *validatorServiceWaitForChainStartClient) Recv() (*ChainStartResponse, error) { - m := new(ChainStartResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *validatorServiceClient) CanonicalHead(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*v1alpha1.BeaconBlock, error) { - out := new(v1alpha1.BeaconBlock) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/CanonicalHead", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *validatorServiceClient) ProposeExit(ctx context.Context, in *v1alpha1.VoluntaryExit, opts ...grpc.CallOption) (*types.Empty, error) { - out := new(types.Empty) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/ProposeExit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ValidatorServiceServer is the server API for ValidatorService service. -type ValidatorServiceServer interface { - DomainData(context.Context, *DomainRequest) (*DomainResponse, error) - WaitForActivation(*ValidatorActivationRequest, ValidatorService_WaitForActivationServer) error - ValidatorIndex(context.Context, *ValidatorIndexRequest) (*ValidatorIndexResponse, error) - CommitteeAssignment(context.Context, *AssignmentRequest) (*AssignmentResponse, error) - ValidatorStatus(context.Context, *ValidatorIndexRequest) (*ValidatorStatusResponse, error) - ValidatorPerformance(context.Context, *ValidatorPerformanceRequest) (*ValidatorPerformanceResponse, error) - ExitedValidators(context.Context, *ExitedValidatorsRequest) (*ExitedValidatorsResponse, error) - WaitForChainStart(*types.Empty, ValidatorService_WaitForChainStartServer) error - CanonicalHead(context.Context, *types.Empty) (*v1alpha1.BeaconBlock, error) - ProposeExit(context.Context, *v1alpha1.VoluntaryExit) (*types.Empty, error) -} - -// UnimplementedValidatorServiceServer can be embedded to have forward compatible implementations. -type UnimplementedValidatorServiceServer struct { -} - -func (*UnimplementedValidatorServiceServer) DomainData(ctx context.Context, req *DomainRequest) (*DomainResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DomainData not implemented") -} -func (*UnimplementedValidatorServiceServer) WaitForActivation(req *ValidatorActivationRequest, srv ValidatorService_WaitForActivationServer) error { - return status.Errorf(codes.Unimplemented, "method WaitForActivation not implemented") -} -func (*UnimplementedValidatorServiceServer) ValidatorIndex(ctx context.Context, req *ValidatorIndexRequest) (*ValidatorIndexResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ValidatorIndex not implemented") -} -func (*UnimplementedValidatorServiceServer) CommitteeAssignment(ctx context.Context, req *AssignmentRequest) (*AssignmentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CommitteeAssignment not implemented") -} -func (*UnimplementedValidatorServiceServer) ValidatorStatus(ctx context.Context, req *ValidatorIndexRequest) (*ValidatorStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ValidatorStatus not implemented") -} -func (*UnimplementedValidatorServiceServer) ValidatorPerformance(ctx context.Context, req *ValidatorPerformanceRequest) (*ValidatorPerformanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ValidatorPerformance not implemented") -} -func (*UnimplementedValidatorServiceServer) ExitedValidators(ctx context.Context, req *ExitedValidatorsRequest) (*ExitedValidatorsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ExitedValidators not implemented") -} -func (*UnimplementedValidatorServiceServer) WaitForChainStart(req *types.Empty, srv ValidatorService_WaitForChainStartServer) error { - return status.Errorf(codes.Unimplemented, "method WaitForChainStart not implemented") -} -func (*UnimplementedValidatorServiceServer) CanonicalHead(ctx context.Context, req *types.Empty) (*v1alpha1.BeaconBlock, error) { - return nil, status.Errorf(codes.Unimplemented, "method CanonicalHead not implemented") -} -func (*UnimplementedValidatorServiceServer) ProposeExit(ctx context.Context, req *v1alpha1.VoluntaryExit) (*types.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProposeExit not implemented") -} - -func RegisterValidatorServiceServer(s *grpc.Server, srv ValidatorServiceServer) { - s.RegisterService(&_ValidatorService_serviceDesc, srv) -} - -func _ValidatorService_DomainData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DomainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).DomainData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/DomainData", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).DomainData(ctx, req.(*DomainRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ValidatorService_WaitForActivation_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ValidatorActivationRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ValidatorServiceServer).WaitForActivation(m, &validatorServiceWaitForActivationServer{stream}) -} - -type ValidatorService_WaitForActivationServer interface { - Send(*ValidatorActivationResponse) error - grpc.ServerStream -} - -type validatorServiceWaitForActivationServer struct { - grpc.ServerStream -} - -func (x *validatorServiceWaitForActivationServer) Send(m *ValidatorActivationResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _ValidatorService_ValidatorIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidatorIndexRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).ValidatorIndex(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/ValidatorIndex", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).ValidatorIndex(ctx, req.(*ValidatorIndexRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ValidatorService_CommitteeAssignment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AssignmentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).CommitteeAssignment(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/CommitteeAssignment", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).CommitteeAssignment(ctx, req.(*AssignmentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ValidatorService_ValidatorStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidatorIndexRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).ValidatorStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/ValidatorStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).ValidatorStatus(ctx, req.(*ValidatorIndexRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ValidatorService_ValidatorPerformance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidatorPerformanceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).ValidatorPerformance(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/ValidatorPerformance", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).ValidatorPerformance(ctx, req.(*ValidatorPerformanceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ValidatorService_ExitedValidators_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExitedValidatorsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).ExitedValidators(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/ExitedValidators", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).ExitedValidators(ctx, req.(*ExitedValidatorsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ValidatorService_WaitForChainStart_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(types.Empty) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ValidatorServiceServer).WaitForChainStart(m, &validatorServiceWaitForChainStartServer{stream}) -} - -type ValidatorService_WaitForChainStartServer interface { - Send(*ChainStartResponse) error - grpc.ServerStream -} - -type validatorServiceWaitForChainStartServer struct { - grpc.ServerStream -} - -func (x *validatorServiceWaitForChainStartServer) Send(m *ChainStartResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _ValidatorService_CanonicalHead_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(types.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).CanonicalHead(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/CanonicalHead", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).CanonicalHead(ctx, req.(*types.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ValidatorService_ProposeExit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1alpha1.VoluntaryExit) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).ProposeExit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/ProposeExit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).ProposeExit(ctx, req.(*v1alpha1.VoluntaryExit)) - } - return interceptor(ctx, in, info, handler) -} - -var _ValidatorService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "ethereum.beacon.rpc.v1.ValidatorService", - HandlerType: (*ValidatorServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "DomainData", - Handler: _ValidatorService_DomainData_Handler, - }, - { - MethodName: "ValidatorIndex", - Handler: _ValidatorService_ValidatorIndex_Handler, - }, - { - MethodName: "CommitteeAssignment", - Handler: _ValidatorService_CommitteeAssignment_Handler, - }, - { - MethodName: "ValidatorStatus", - Handler: _ValidatorService_ValidatorStatus_Handler, - }, - { - MethodName: "ValidatorPerformance", - Handler: _ValidatorService_ValidatorPerformance_Handler, - }, - { - MethodName: "ExitedValidators", - Handler: _ValidatorService_ExitedValidators_Handler, - }, - { - MethodName: "CanonicalHead", - Handler: _ValidatorService_CanonicalHead_Handler, - }, - { - MethodName: "ProposeExit", - Handler: _ValidatorService_ProposeExit_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "WaitForActivation", - Handler: _ValidatorService_WaitForActivation_Handler, - ServerStreams: true, - }, - { - StreamName: "WaitForChainStart", - Handler: _ValidatorService_WaitForChainStart_Handler, - ServerStreams: true, - }, - }, - Metadata: "proto/beacon/rpc/v1/services.proto", -} - -func (m *BlockRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Graffiti) > 0 { - i -= len(m.Graffiti) - copy(dAtA[i:], m.Graffiti) - i = encodeVarintServices(dAtA, i, uint64(len(m.Graffiti))) - i-- - dAtA[i] = 0x1a - } - if len(m.RandaoReveal) > 0 { - i -= len(m.RandaoReveal) - copy(dAtA[i:], m.RandaoReveal) - i = encodeVarintServices(dAtA, i, uint64(len(m.RandaoReveal))) - i-- - dAtA[i] = 0x12 - } - if m.Slot != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.Slot)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ProposeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ProposeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ProposeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.BlockRoot) > 0 { - i -= len(m.BlockRoot) - copy(dAtA[i:], m.BlockRoot) - i = encodeVarintServices(dAtA, i, uint64(len(m.BlockRoot))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AttestationRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AttestationRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AttestationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CommitteeIndex != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.CommitteeIndex)) - i-- - dAtA[i] = 0x20 - } - if m.Slot != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.Slot)) - i-- - dAtA[i] = 0x18 - } - if len(m.PocBit) > 0 { - i -= len(m.PocBit) - copy(dAtA[i:], m.PocBit) - i = encodeVarintServices(dAtA, i, uint64(len(m.PocBit))) - i-- - dAtA[i] = 0x12 - } - if len(m.PublicKey) > 0 { - i -= len(m.PublicKey) - copy(dAtA[i:], m.PublicKey) - i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AttestResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AttestResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AttestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Root) > 0 { - i -= len(m.Root) - copy(dAtA[i:], m.Root) - i = encodeVarintServices(dAtA, i, uint64(len(m.Root))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AggregationRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AggregationRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AggregationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.SlotSignature) > 0 { - i -= len(m.SlotSignature) - copy(dAtA[i:], m.SlotSignature) - i = encodeVarintServices(dAtA, i, uint64(len(m.SlotSignature))) - i-- - dAtA[i] = 0x22 - } - if len(m.PublicKey) > 0 { - i -= len(m.PublicKey) - copy(dAtA[i:], m.PublicKey) - i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKey))) - i-- - dAtA[i] = 0x1a - } - if m.CommitteeIndex != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.CommitteeIndex)) - i-- - dAtA[i] = 0x10 - } - if m.Slot != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.Slot)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *AggregationResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AggregationResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AggregationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Root) > 0 { - i -= len(m.Root) - copy(dAtA[i:], m.Root) - i = encodeVarintServices(dAtA, i, uint64(len(m.Root))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ValidatorPerformanceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatorPerformanceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatorPerformanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PublicKeys) > 0 { - for iNdEx := len(m.PublicKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PublicKeys[iNdEx]) - copy(dAtA[i:], m.PublicKeys[iNdEx]) - i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKeys[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if m.Slot != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.Slot)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ValidatorPerformanceResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatorPerformanceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatorPerformanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.AverageActiveValidatorBalance != 0 { - i -= 4 - encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.AverageActiveValidatorBalance)))) - i-- - dAtA[i] = 0x2d - } - if len(m.MissingValidators) > 0 { - for iNdEx := len(m.MissingValidators) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.MissingValidators[iNdEx]) - copy(dAtA[i:], m.MissingValidators[iNdEx]) - i = encodeVarintServices(dAtA, i, uint64(len(m.MissingValidators[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if m.TotalActiveValidators != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.TotalActiveValidators)) - i-- - dAtA[i] = 0x18 - } - if m.TotalValidators != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.TotalValidators)) - i-- - dAtA[i] = 0x10 - } - if len(m.Balances) > 0 { - dAtA2 := make([]byte, len(m.Balances)*10) - var j1 int - for _, num := range m.Balances { - for num >= 1<<7 { - dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA2[j1] = uint8(num) - j1++ - } - i -= j1 - copy(dAtA[i:], dAtA2[:j1]) - i = encodeVarintServices(dAtA, i, uint64(j1)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ValidatorActivationRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatorActivationRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatorActivationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PublicKeys) > 0 { - for iNdEx := len(m.PublicKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PublicKeys[iNdEx]) - copy(dAtA[i:], m.PublicKeys[iNdEx]) - i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKeys[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ValidatorActivationResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatorActivationResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatorActivationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Statuses) > 0 { - for iNdEx := len(m.Statuses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Statuses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServices(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.ActivatedPublicKeys) > 0 { - for iNdEx := len(m.ActivatedPublicKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ActivatedPublicKeys[iNdEx]) - copy(dAtA[i:], m.ActivatedPublicKeys[iNdEx]) - i = encodeVarintServices(dAtA, i, uint64(len(m.ActivatedPublicKeys[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ValidatorActivationResponse_Status) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatorActivationResponse_Status) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatorActivationResponse_Status) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Status != nil { - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServices(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.PublicKey) > 0 { - i -= len(m.PublicKey) - copy(dAtA[i:], m.PublicKey) - i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ExitedValidatorsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExitedValidatorsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExitedValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PublicKeys) > 0 { - for iNdEx := len(m.PublicKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PublicKeys[iNdEx]) - copy(dAtA[i:], m.PublicKeys[iNdEx]) - i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKeys[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ExitedValidatorsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExitedValidatorsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExitedValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PublicKeys) > 0 { - for iNdEx := len(m.PublicKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PublicKeys[iNdEx]) - copy(dAtA[i:], m.PublicKeys[iNdEx]) - i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKeys[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ChainStartResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ChainStartResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChainStartResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.GenesisTime != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.GenesisTime)) - i-- - dAtA[i] = 0x10 - } - if m.Started { - i-- - if m.Started { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ValidatorIndexRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatorIndexRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatorIndexRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PublicKey) > 0 { - i -= len(m.PublicKey) - copy(dAtA[i:], m.PublicKey) - i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ValidatorIndexResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatorIndexResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatorIndexResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Index != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *AssignmentRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AssignmentRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AssignmentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PublicKeys) > 0 { - for iNdEx := len(m.PublicKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PublicKeys[iNdEx]) - copy(dAtA[i:], m.PublicKeys[iNdEx]) - i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKeys[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if m.EpochStart != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.EpochStart)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *AssignmentResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AssignmentResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AssignmentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ValidatorAssignment) > 0 { - for iNdEx := len(m.ValidatorAssignment) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ValidatorAssignment[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServices(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *AssignmentResponse_ValidatorAssignment) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AssignmentResponse_ValidatorAssignment) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AssignmentResponse_ValidatorAssignment) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Status != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x30 - } - if len(m.PublicKey) > 0 { - i -= len(m.PublicKey) - copy(dAtA[i:], m.PublicKey) - i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKey))) - i-- - dAtA[i] = 0x2a - } - if m.ProposerSlot != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.ProposerSlot)) - i-- - dAtA[i] = 0x20 - } - if m.AttesterSlot != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.AttesterSlot)) - i-- - dAtA[i] = 0x18 - } - if m.CommitteeIndex != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.CommitteeIndex)) - i-- - dAtA[i] = 0x10 - } - if len(m.Committee) > 0 { - dAtA5 := make([]byte, len(m.Committee)*10) - var j4 int - for _, num := range m.Committee { - for num >= 1<<7 { - dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j4++ - } - dAtA5[j4] = uint8(num) - j4++ - } - i -= j4 - copy(dAtA[i:], dAtA5[:j4]) - i = encodeVarintServices(dAtA, i, uint64(j4)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ValidatorStatusResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatorStatusResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatorStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.PositionInActivationQueue != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.PositionInActivationQueue)) - i-- - dAtA[i] = 0x28 - } - if m.ActivationEpoch != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.ActivationEpoch)) - i-- - dAtA[i] = 0x20 - } - if m.DepositInclusionSlot != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.DepositInclusionSlot)) - i-- - dAtA[i] = 0x18 - } - if m.Eth1DepositBlockNumber != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.Eth1DepositBlockNumber)) - i-- - dAtA[i] = 0x10 - } - if m.Status != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DomainRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DomainRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DomainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Domain) > 0 { - i -= len(m.Domain) - copy(dAtA[i:], m.Domain) - i = encodeVarintServices(dAtA, i, uint64(len(m.Domain))) - i-- - dAtA[i] = 0x12 - } - if m.Epoch != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.Epoch)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DomainResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DomainResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SignatureDomain != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.SignatureDomain)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BlockTreeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockTreeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockTreeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Tree) > 0 { - for iNdEx := len(m.Tree) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tree[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServices(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *BlockTreeResponse_TreeNode) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockTreeResponse_TreeNode) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BlockTreeResponse_TreeNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.TotalVotes != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.TotalVotes)) - i-- - dAtA[i] = 0x20 - } - if m.ParticipatedVotes != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.ParticipatedVotes)) - i-- - dAtA[i] = 0x18 - } - if len(m.BlockRoot) > 0 { - i -= len(m.BlockRoot) - copy(dAtA[i:], m.BlockRoot) - i = encodeVarintServices(dAtA, i, uint64(len(m.BlockRoot))) - i-- - dAtA[i] = 0x12 - } - if m.Block != nil { - { - size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintServices(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TreeBlockSlotRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TreeBlockSlotRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TreeBlockSlotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SlotTo != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.SlotTo)) - i-- - dAtA[i] = 0x10 - } - if m.SlotFrom != 0 { - i = encodeVarintServices(dAtA, i, uint64(m.SlotFrom)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintServices(dAtA []byte, offset int, v uint64) int { - offset -= sovServices(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *BlockRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Slot != 0 { - n += 1 + sovServices(uint64(m.Slot)) - } - l = len(m.RandaoReveal) - if l > 0 { - n += 1 + l + sovServices(uint64(l)) - } - l = len(m.Graffiti) - if l > 0 { - n += 1 + l + sovServices(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ProposeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.BlockRoot) - if l > 0 { - n += 1 + l + sovServices(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AttestationRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PublicKey) - if l > 0 { - n += 1 + l + sovServices(uint64(l)) - } - l = len(m.PocBit) - if l > 0 { - n += 1 + l + sovServices(uint64(l)) - } - if m.Slot != 0 { - n += 1 + sovServices(uint64(m.Slot)) - } - if m.CommitteeIndex != 0 { - n += 1 + sovServices(uint64(m.CommitteeIndex)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AttestResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Root) - if l > 0 { - n += 1 + l + sovServices(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AggregationRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Slot != 0 { - n += 1 + sovServices(uint64(m.Slot)) - } - if m.CommitteeIndex != 0 { - n += 1 + sovServices(uint64(m.CommitteeIndex)) - } - l = len(m.PublicKey) - if l > 0 { - n += 1 + l + sovServices(uint64(l)) - } - l = len(m.SlotSignature) - if l > 0 { - n += 1 + l + sovServices(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AggregationResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Root) - if l > 0 { - n += 1 + l + sovServices(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ValidatorPerformanceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Slot != 0 { - n += 1 + sovServices(uint64(m.Slot)) - } - if len(m.PublicKeys) > 0 { - for _, b := range m.PublicKeys { - l = len(b) - n += 1 + l + sovServices(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ValidatorPerformanceResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Balances) > 0 { - l = 0 - for _, e := range m.Balances { - l += sovServices(uint64(e)) - } - n += 1 + sovServices(uint64(l)) + l - } - if m.TotalValidators != 0 { - n += 1 + sovServices(uint64(m.TotalValidators)) - } - if m.TotalActiveValidators != 0 { - n += 1 + sovServices(uint64(m.TotalActiveValidators)) - } - if len(m.MissingValidators) > 0 { - for _, b := range m.MissingValidators { - l = len(b) - n += 1 + l + sovServices(uint64(l)) - } - } - if m.AverageActiveValidatorBalance != 0 { - n += 5 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ValidatorActivationRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.PublicKeys) > 0 { - for _, b := range m.PublicKeys { - l = len(b) - n += 1 + l + sovServices(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ValidatorActivationResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ActivatedPublicKeys) > 0 { - for _, b := range m.ActivatedPublicKeys { - l = len(b) - n += 1 + l + sovServices(uint64(l)) - } - } - if len(m.Statuses) > 0 { - for _, e := range m.Statuses { - l = e.Size() - n += 1 + l + sovServices(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ValidatorActivationResponse_Status) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PublicKey) - if l > 0 { - n += 1 + l + sovServices(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovServices(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ExitedValidatorsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.PublicKeys) > 0 { - for _, b := range m.PublicKeys { - l = len(b) - n += 1 + l + sovServices(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ExitedValidatorsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.PublicKeys) > 0 { - for _, b := range m.PublicKeys { - l = len(b) - n += 1 + l + sovServices(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ChainStartResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Started { - n += 2 - } - if m.GenesisTime != 0 { - n += 1 + sovServices(uint64(m.GenesisTime)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ValidatorIndexRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PublicKey) - if l > 0 { - n += 1 + l + sovServices(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ValidatorIndexResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Index != 0 { - n += 1 + sovServices(uint64(m.Index)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AssignmentRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EpochStart != 0 { - n += 1 + sovServices(uint64(m.EpochStart)) - } - if len(m.PublicKeys) > 0 { - for _, b := range m.PublicKeys { - l = len(b) - n += 1 + l + sovServices(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AssignmentResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ValidatorAssignment) > 0 { - for _, e := range m.ValidatorAssignment { - l = e.Size() - n += 1 + l + sovServices(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AssignmentResponse_ValidatorAssignment) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Committee) > 0 { - l = 0 - for _, e := range m.Committee { - l += sovServices(uint64(e)) - } - n += 1 + sovServices(uint64(l)) + l - } - if m.CommitteeIndex != 0 { - n += 1 + sovServices(uint64(m.CommitteeIndex)) - } - if m.AttesterSlot != 0 { - n += 1 + sovServices(uint64(m.AttesterSlot)) - } - if m.ProposerSlot != 0 { - n += 1 + sovServices(uint64(m.ProposerSlot)) - } - l = len(m.PublicKey) - if l > 0 { - n += 1 + l + sovServices(uint64(l)) - } - if m.Status != 0 { - n += 1 + sovServices(uint64(m.Status)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ValidatorStatusResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Status != 0 { - n += 1 + sovServices(uint64(m.Status)) - } - if m.Eth1DepositBlockNumber != 0 { - n += 1 + sovServices(uint64(m.Eth1DepositBlockNumber)) - } - if m.DepositInclusionSlot != 0 { - n += 1 + sovServices(uint64(m.DepositInclusionSlot)) - } - if m.ActivationEpoch != 0 { - n += 1 + sovServices(uint64(m.ActivationEpoch)) - } - if m.PositionInActivationQueue != 0 { - n += 1 + sovServices(uint64(m.PositionInActivationQueue)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DomainRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Epoch != 0 { - n += 1 + sovServices(uint64(m.Epoch)) - } - l = len(m.Domain) - if l > 0 { - n += 1 + l + sovServices(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DomainResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SignatureDomain != 0 { - n += 1 + sovServices(uint64(m.SignatureDomain)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *BlockTreeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Tree) > 0 { - for _, e := range m.Tree { - l = e.Size() - n += 1 + l + sovServices(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *BlockTreeResponse_TreeNode) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Block != nil { - l = m.Block.Size() - n += 1 + l + sovServices(uint64(l)) - } - l = len(m.BlockRoot) - if l > 0 { - n += 1 + l + sovServices(uint64(l)) - } - if m.ParticipatedVotes != 0 { - n += 1 + sovServices(uint64(m.ParticipatedVotes)) - } - if m.TotalVotes != 0 { - n += 1 + sovServices(uint64(m.TotalVotes)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *TreeBlockSlotRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SlotFrom != 0 { - n += 1 + sovServices(uint64(m.SlotFrom)) - } - if m.SlotTo != 0 { - n += 1 + sovServices(uint64(m.SlotTo)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovServices(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozServices(x uint64) (n int) { - return sovServices(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *BlockRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BlockRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType) - } - m.Slot = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Slot |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RandaoReveal", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RandaoReveal = append(m.RandaoReveal[:0], dAtA[iNdEx:postIndex]...) - if m.RandaoReveal == nil { - m.RandaoReveal = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Graffiti", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Graffiti = append(m.Graffiti[:0], dAtA[iNdEx:postIndex]...) - if m.Graffiti == nil { - m.Graffiti = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProposeResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ProposeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProposeResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockRoot", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BlockRoot = append(m.BlockRoot[:0], dAtA[iNdEx:postIndex]...) - if m.BlockRoot == nil { - m.BlockRoot = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AttestationRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AttestationRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AttestationRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKey = append(m.PublicKey[:0], dAtA[iNdEx:postIndex]...) - if m.PublicKey == nil { - m.PublicKey = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PocBit", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PocBit = append(m.PocBit[:0], dAtA[iNdEx:postIndex]...) - if m.PocBit == nil { - m.PocBit = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType) - } - m.Slot = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Slot |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CommitteeIndex", wireType) - } - m.CommitteeIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CommitteeIndex |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AttestResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AttestResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AttestResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Root", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Root = append(m.Root[:0], dAtA[iNdEx:postIndex]...) - if m.Root == nil { - m.Root = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AggregationRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AggregationRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AggregationRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType) - } - m.Slot = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Slot |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CommitteeIndex", wireType) - } - m.CommitteeIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CommitteeIndex |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKey = append(m.PublicKey[:0], dAtA[iNdEx:postIndex]...) - if m.PublicKey == nil { - m.PublicKey = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SlotSignature", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SlotSignature = append(m.SlotSignature[:0], dAtA[iNdEx:postIndex]...) - if m.SlotSignature == nil { - m.SlotSignature = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AggregationResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AggregationResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AggregationResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Root", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Root = append(m.Root[:0], dAtA[iNdEx:postIndex]...) - if m.Root == nil { - m.Root = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatorPerformanceRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatorPerformanceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorPerformanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType) - } - m.Slot = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Slot |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicKeys", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKeys = append(m.PublicKeys, make([]byte, postIndex-iNdEx)) - copy(m.PublicKeys[len(m.PublicKeys)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatorPerformanceResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatorPerformanceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorPerformanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Balances = append(m.Balances, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.Balances) == 0 { - m.Balances = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Balances = append(m.Balances, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalValidators", wireType) - } - m.TotalValidators = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TotalValidators |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalActiveValidators", wireType) - } - m.TotalActiveValidators = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TotalActiveValidators |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MissingValidators", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MissingValidators = append(m.MissingValidators, make([]byte, postIndex-iNdEx)) - copy(m.MissingValidators[len(m.MissingValidators)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field AverageActiveValidatorBalance", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.AverageActiveValidatorBalance = float32(math.Float32frombits(v)) - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatorActivationRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatorActivationRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorActivationRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicKeys", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKeys = append(m.PublicKeys, make([]byte, postIndex-iNdEx)) - copy(m.PublicKeys[len(m.PublicKeys)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatorActivationResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatorActivationResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorActivationResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivatedPublicKeys", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActivatedPublicKeys = append(m.ActivatedPublicKeys, make([]byte, postIndex-iNdEx)) - copy(m.ActivatedPublicKeys[len(m.ActivatedPublicKeys)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Statuses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Statuses = append(m.Statuses, &ValidatorActivationResponse_Status{}) - if err := m.Statuses[len(m.Statuses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatorActivationResponse_Status) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Status: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Status: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKey = append(m.PublicKey[:0], dAtA[iNdEx:postIndex]...) - if m.PublicKey == nil { - m.PublicKey = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &ValidatorStatusResponse{} - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExitedValidatorsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExitedValidatorsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExitedValidatorsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicKeys", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKeys = append(m.PublicKeys, make([]byte, postIndex-iNdEx)) - copy(m.PublicKeys[len(m.PublicKeys)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExitedValidatorsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExitedValidatorsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExitedValidatorsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicKeys", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKeys = append(m.PublicKeys, make([]byte, postIndex-iNdEx)) - copy(m.PublicKeys[len(m.PublicKeys)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ChainStartResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ChainStartResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ChainStartResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Started", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Started = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GenesisTime", wireType) - } - m.GenesisTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GenesisTime |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatorIndexRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatorIndexRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorIndexRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKey = append(m.PublicKey[:0], dAtA[iNdEx:postIndex]...) - if m.PublicKey == nil { - m.PublicKey = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatorIndexResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatorIndexResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorIndexResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) - } - m.Index = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Index |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AssignmentRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AssignmentRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AssignmentRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochStart", wireType) - } - m.EpochStart = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EpochStart |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicKeys", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKeys = append(m.PublicKeys, make([]byte, postIndex-iNdEx)) - copy(m.PublicKeys[len(m.PublicKeys)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AssignmentResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AssignmentResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AssignmentResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAssignment", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ValidatorAssignment = append(m.ValidatorAssignment, &AssignmentResponse_ValidatorAssignment{}) - if err := m.ValidatorAssignment[len(m.ValidatorAssignment)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AssignmentResponse_ValidatorAssignment) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatorAssignment: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorAssignment: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Committee = append(m.Committee, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.Committee) == 0 { - m.Committee = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Committee = append(m.Committee, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Committee", wireType) - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CommitteeIndex", wireType) - } - m.CommitteeIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CommitteeIndex |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AttesterSlot", wireType) - } - m.AttesterSlot = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AttesterSlot |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposerSlot", wireType) - } - m.ProposerSlot = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ProposerSlot |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKey = append(m.PublicKey[:0], dAtA[iNdEx:postIndex]...) - if m.PublicKey == nil { - m.PublicKey = []byte{} - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= ValidatorStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatorStatusResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatorStatusResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= ValidatorStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Eth1DepositBlockNumber", wireType) - } - m.Eth1DepositBlockNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Eth1DepositBlockNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositInclusionSlot", wireType) - } - m.DepositInclusionSlot = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DepositInclusionSlot |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivationEpoch", wireType) - } - m.ActivationEpoch = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ActivationEpoch |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionInActivationQueue", wireType) - } - m.PositionInActivationQueue = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PositionInActivationQueue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy +func (m *ExitedValidatorsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PublicKeys) > 0 { + for _, b := range m.PublicKeys { + l = len(b) + n += 1 + l + sovServices(uint64(l)) } } - - if iNdEx > l { - return io.ErrUnexpectedEOF + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) } - return nil + return n +} + +func sovServices(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozServices(x uint64) (n int) { + return sovServices(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *DomainRequest) Unmarshal(dAtA []byte) error { +func (m *AggregationRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6444,17 +677,17 @@ func (m *DomainRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DomainRequest: wiretype end group for non-group") + return fmt.Errorf("proto: AggregationRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DomainRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AggregationRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType) } - m.Epoch = 0 + m.Slot = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowServices @@ -6464,14 +697,33 @@ func (m *DomainRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Epoch |= uint64(b&0x7F) << shift + m.Slot |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CommitteeIndex", wireType) + } + m.CommitteeIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowServices + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CommitteeIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domain", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6498,70 +750,16 @@ func (m *DomainRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Domain = append(m.Domain[:0], dAtA[iNdEx:postIndex]...) - if m.Domain == nil { - m.Domain = []byte{} + m.PublicKey = append(m.PublicKey[:0], dAtA[iNdEx:postIndex]...) + if m.PublicKey == nil { + m.PublicKey = []byte{} } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipServices(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthServices - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DomainResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DomainResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DomainResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SignatureDomain", wireType) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlotSignature", wireType) } - m.SignatureDomain = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowServices @@ -6571,11 +769,26 @@ func (m *DomainResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SignatureDomain |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } + if byteLen < 0 { + return ErrInvalidLengthServices + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthServices + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SlotSignature = append(m.SlotSignature[:0], dAtA[iNdEx:postIndex]...) + if m.SlotSignature == nil { + m.SlotSignature = []byte{} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipServices(dAtA[iNdEx:]) @@ -6601,7 +814,7 @@ func (m *DomainResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *BlockTreeResponse) Unmarshal(dAtA []byte) error { +func (m *AggregationResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6624,17 +837,17 @@ func (m *BlockTreeResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BlockTreeResponse: wiretype end group for non-group") + return fmt.Errorf("proto: AggregationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BlockTreeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AggregationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tree", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Root", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowServices @@ -6644,24 +857,24 @@ func (m *BlockTreeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthServices } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthServices } if postIndex > l { return io.ErrUnexpectedEOF } - m.Tree = append(m.Tree, &BlockTreeResponse_TreeNode{}) - if err := m.Tree[len(m.Tree)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Root = append(m.Root[:0], dAtA[iNdEx:postIndex]...) + if m.Root == nil { + m.Root = []byte{} } iNdEx = postIndex default: @@ -6689,7 +902,7 @@ func (m *BlockTreeResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *BlockTreeResponse_TreeNode) Unmarshal(dAtA []byte) error { +func (m *ExitedValidatorsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6712,51 +925,15 @@ func (m *BlockTreeResponse_TreeNode) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TreeNode: wiretype end group for non-group") + return fmt.Errorf("proto: ExitedValidatorsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TreeNode: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ExitedValidatorsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthServices - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthServices - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Block == nil { - m.Block = &v1alpha1.BeaconBlock{} - } - if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockRoot", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PublicKeys", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6783,49 +960,9 @@ func (m *BlockTreeResponse_TreeNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BlockRoot = append(m.BlockRoot[:0], dAtA[iNdEx:postIndex]...) - if m.BlockRoot == nil { - m.BlockRoot = []byte{} - } + m.PublicKeys = append(m.PublicKeys, make([]byte, postIndex-iNdEx)) + copy(m.PublicKeys[len(m.PublicKeys)-1], dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ParticipatedVotes", wireType) - } - m.ParticipatedVotes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ParticipatedVotes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalVotes", wireType) - } - m.TotalVotes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TotalVotes |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipServices(dAtA[iNdEx:]) @@ -6851,7 +988,7 @@ func (m *BlockTreeResponse_TreeNode) Unmarshal(dAtA []byte) error { } return nil } -func (m *TreeBlockSlotRequest) Unmarshal(dAtA []byte) error { +func (m *ExitedValidatorsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6874,17 +1011,17 @@ func (m *TreeBlockSlotRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TreeBlockSlotRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ExitedValidatorsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TreeBlockSlotRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ExitedValidatorsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SlotFrom", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PublicKeys", wireType) } - m.SlotFrom = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowServices @@ -6894,30 +1031,24 @@ func (m *TreeBlockSlotRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SlotFrom |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SlotTo", wireType) + if byteLen < 0 { + return ErrInvalidLengthServices } - m.SlotTo = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowServices - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SlotTo |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthServices } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PublicKeys = append(m.PublicKeys, make([]byte, postIndex-iNdEx)) + copy(m.PublicKeys[len(m.PublicKeys)-1], dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipServices(dAtA[iNdEx:]) @@ -6946,6 +1077,7 @@ func (m *TreeBlockSlotRequest) Unmarshal(dAtA []byte) error { func skipServices(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -6977,10 +1109,8 @@ func skipServices(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -7001,55 +1131,30 @@ func skipServices(dAtA []byte) (n int, err error) { return 0, ErrInvalidLengthServices } iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthServices - } - return iNdEx, nil case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowServices - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipServices(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthServices - } - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupServices + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthServices + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthServices = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowServices = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthServices = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowServices = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupServices = fmt.Errorf("proto: unexpected end of group") ) diff --git a/proto/beacon/rpc/v1/services.proto b/proto/beacon/rpc/v1/services.proto index b9c5c4825be..a2f5037e154 100644 --- a/proto/beacon/rpc/v1/services.proto +++ b/proto/beacon/rpc/v1/services.proto @@ -3,58 +3,17 @@ syntax = "proto3"; package ethereum.beacon.rpc.v1; import "google/protobuf/empty.proto"; -import "eth/v1alpha1/beacon_block.proto"; -import "eth/v1alpha1/attestation.proto"; -service AttesterService { - rpc RequestAttestation(AttestationRequest) returns (ethereum.eth.v1alpha1.AttestationData); - rpc SubmitAttestation(ethereum.eth.v1alpha1.Attestation) returns (AttestResponse); -} - -service ProposerService { - rpc RequestBlock(BlockRequest) returns (ethereum.eth.v1alpha1.BeaconBlock); - rpc ProposeBlock(ethereum.eth.v1alpha1.BeaconBlock) returns (ProposeResponse); -} +// Deprecated: Do not use any service or message in this proto. +option deprecated = true; service AggregatorService { + option deprecated = true; rpc SubmitAggregateAndProof(AggregationRequest) returns (AggregationResponse); } -service ValidatorService { - rpc DomainData(DomainRequest) returns (DomainResponse); - rpc WaitForActivation(ValidatorActivationRequest) returns (stream ValidatorActivationResponse); - rpc ValidatorIndex(ValidatorIndexRequest) returns (ValidatorIndexResponse); - rpc CommitteeAssignment(AssignmentRequest) returns (AssignmentResponse); - rpc ValidatorStatus(ValidatorIndexRequest) returns (ValidatorStatusResponse); - rpc ValidatorPerformance(ValidatorPerformanceRequest) returns (ValidatorPerformanceResponse); - rpc ExitedValidators(ExitedValidatorsRequest) returns (ExitedValidatorsResponse); - rpc WaitForChainStart(google.protobuf.Empty) returns (stream ChainStartResponse); - rpc CanonicalHead(google.protobuf.Empty) returns (ethereum.eth.v1alpha1.BeaconBlock); - rpc ProposeExit(ethereum.eth.v1alpha1.VoluntaryExit) returns (google.protobuf.Empty); -} - -message BlockRequest { - uint64 slot = 1; - bytes randao_reveal = 2; - bytes graffiti = 3; -} - -message ProposeResponse { - bytes block_root = 1; -} - -message AttestationRequest { - bytes public_key = 1; - bytes poc_bit = 2; - uint64 slot = 3; - uint64 committee_index = 4; -} - -message AttestResponse { - bytes root = 1; -} - message AggregationRequest { + option deprecated = true; uint64 slot = 1; uint64 committee_index = 2; bytes public_key = 3; @@ -62,120 +21,24 @@ message AggregationRequest { } message AggregationResponse { + option deprecated = true; bytes root = 1; } -message ValidatorPerformanceRequest { - uint64 slot = 1; - repeated bytes public_keys = 2; -} - -message ValidatorPerformanceResponse { - repeated uint64 balances = 1; - uint64 total_validators = 2; - uint64 total_active_validators = 3; - repeated bytes missing_validators = 4; - float average_active_validator_balance = 5; -} - -message ValidatorActivationRequest { - repeated bytes public_keys = 1; -} - -message ValidatorActivationResponse { - repeated bytes activated_public_keys = 1 [deprecated = true]; - - message Status { - bytes public_key = 1; - ValidatorStatusResponse status = 2; - } - repeated Status statuses = 2; -} - message ExitedValidatorsRequest { + option deprecated = true; repeated bytes public_keys = 1; } message ExitedValidatorsResponse { + option deprecated = true; repeated bytes public_keys = 1; } -message ChainStartResponse { - bool started = 1; - uint64 genesis_time = 2; -} - enum ValidatorRole { + option deprecated = true; UNKNOWN = 0; ATTESTER = 1; PROPOSER = 2; AGGREGATOR = 3; } - -message ValidatorIndexRequest { - bytes public_key = 1; -} - -message ValidatorIndexResponse { - uint64 index = 1; -} - -message AssignmentRequest { - uint64 epoch_start = 1; - repeated bytes public_keys = 2; -} - -message AssignmentResponse { - repeated ValidatorAssignment validator_assignment = 1; - message ValidatorAssignment { - repeated uint64 committee = 1; - uint64 committee_index = 2; - uint64 attester_slot = 3; - uint64 proposer_slot = 4; - bytes public_key = 5; - ValidatorStatus status = 6; - } -} - -message ValidatorStatusResponse { - ValidatorStatus status = 1; - uint64 eth1_deposit_block_number = 2; - uint64 deposit_inclusion_slot = 3; - uint64 activation_epoch = 4; - uint64 position_in_activation_queue = 5; -} - -message DomainRequest { - uint64 epoch = 1; - bytes domain = 2; -} - -message DomainResponse { - uint64 signature_domain = 1; -} - -message BlockTreeResponse { - repeated TreeNode tree = 1; - message TreeNode { - ethereum.eth.v1alpha1.BeaconBlock block = 1; - bytes block_root = 2; - uint64 participated_votes = 3; - uint64 total_votes = 4; - } -} - -enum ValidatorStatus { - UNKNOWN_STATUS = 0; - DEPOSIT_RECEIVED = 1; - PENDING_ACTIVE = 2; - ACTIVE = 3; - INITIATED_EXIT = 4; - WITHDRAWABLE = 5; - EXITED = 6; - EXITED_SLASHED = 7; -} - -message TreeBlockSlotRequest { - uint64 slot_from = 1 ; - uint64 slot_to = 2 ; -} diff --git a/proto/beacon/rpc/v1_gateway/BUILD.bazel b/proto/beacon/rpc/v1_gateway/BUILD.bazel index 561fc074bdc..74faf86b90d 100644 --- a/proto/beacon/rpc/v1_gateway/BUILD.bazel +++ b/proto/beacon/rpc/v1_gateway/BUILD.bazel @@ -7,7 +7,6 @@ go_library( visibility = ["//visibility:public"], deps = [ "@com_github_golang_protobuf//proto:go_default_library", - "@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library", "@io_bazel_rules_go//proto/wkt:empty_go_proto", "@org_golang_google_grpc//:go_default_library", "@org_golang_google_grpc//codes:go_default_library", diff --git a/proto/beacon/rpc/v1_gateway/services.pb.go b/proto/beacon/rpc/v1_gateway/services.pb.go index 2d30e7b82d8..35b1f56e43c 100755 --- a/proto/beacon/rpc/v1_gateway/services.pb.go +++ b/proto/beacon/rpc/v1_gateway/services.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: proto/beacon/rpc/v1/services.proto +// proto/beacon/rpc/v1/services.proto is a deprecated file. package ethereum_beacon_rpc_v1 @@ -9,8 +9,7 @@ import ( math "math" proto "github.com/golang/protobuf/proto" - empty "github.com/golang/protobuf/ptypes/empty" - v1alpha1 "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1" + _ "github.com/golang/protobuf/ptypes/empty" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -27,8 +26,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package -type ValidatorRole int32 - +type ValidatorRole int32 // Deprecated: Do not use. const ( ValidatorRole_UNKNOWN ValidatorRole = 0 ValidatorRole_ATTESTER ValidatorRole = 1 @@ -58,245 +56,7 @@ func (ValidatorRole) EnumDescriptor() ([]byte, []int) { return fileDescriptor_9eb4e94b85965285, []int{0} } -type ValidatorStatus int32 - -const ( - ValidatorStatus_UNKNOWN_STATUS ValidatorStatus = 0 - ValidatorStatus_DEPOSIT_RECEIVED ValidatorStatus = 1 - ValidatorStatus_PENDING_ACTIVE ValidatorStatus = 2 - ValidatorStatus_ACTIVE ValidatorStatus = 3 - ValidatorStatus_INITIATED_EXIT ValidatorStatus = 4 - ValidatorStatus_WITHDRAWABLE ValidatorStatus = 5 - ValidatorStatus_EXITED ValidatorStatus = 6 - ValidatorStatus_EXITED_SLASHED ValidatorStatus = 7 -) - -var ValidatorStatus_name = map[int32]string{ - 0: "UNKNOWN_STATUS", - 1: "DEPOSIT_RECEIVED", - 2: "PENDING_ACTIVE", - 3: "ACTIVE", - 4: "INITIATED_EXIT", - 5: "WITHDRAWABLE", - 6: "EXITED", - 7: "EXITED_SLASHED", -} - -var ValidatorStatus_value = map[string]int32{ - "UNKNOWN_STATUS": 0, - "DEPOSIT_RECEIVED": 1, - "PENDING_ACTIVE": 2, - "ACTIVE": 3, - "INITIATED_EXIT": 4, - "WITHDRAWABLE": 5, - "EXITED": 6, - "EXITED_SLASHED": 7, -} - -func (x ValidatorStatus) String() string { - return proto.EnumName(ValidatorStatus_name, int32(x)) -} - -func (ValidatorStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{1} -} - -type BlockRequest struct { - Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"` - RandaoReveal []byte `protobuf:"bytes,2,opt,name=randao_reveal,json=randaoReveal,proto3" json:"randao_reveal,omitempty"` - Graffiti []byte `protobuf:"bytes,3,opt,name=graffiti,proto3" json:"graffiti,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BlockRequest) Reset() { *m = BlockRequest{} } -func (m *BlockRequest) String() string { return proto.CompactTextString(m) } -func (*BlockRequest) ProtoMessage() {} -func (*BlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{0} -} - -func (m *BlockRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BlockRequest.Unmarshal(m, b) -} -func (m *BlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BlockRequest.Marshal(b, m, deterministic) -} -func (m *BlockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockRequest.Merge(m, src) -} -func (m *BlockRequest) XXX_Size() int { - return xxx_messageInfo_BlockRequest.Size(m) -} -func (m *BlockRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BlockRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockRequest proto.InternalMessageInfo - -func (m *BlockRequest) GetSlot() uint64 { - if m != nil { - return m.Slot - } - return 0 -} - -func (m *BlockRequest) GetRandaoReveal() []byte { - if m != nil { - return m.RandaoReveal - } - return nil -} - -func (m *BlockRequest) GetGraffiti() []byte { - if m != nil { - return m.Graffiti - } - return nil -} - -type ProposeResponse struct { - BlockRoot []byte `protobuf:"bytes,1,opt,name=block_root,json=blockRoot,proto3" json:"block_root,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProposeResponse) Reset() { *m = ProposeResponse{} } -func (m *ProposeResponse) String() string { return proto.CompactTextString(m) } -func (*ProposeResponse) ProtoMessage() {} -func (*ProposeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{1} -} - -func (m *ProposeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProposeResponse.Unmarshal(m, b) -} -func (m *ProposeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProposeResponse.Marshal(b, m, deterministic) -} -func (m *ProposeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProposeResponse.Merge(m, src) -} -func (m *ProposeResponse) XXX_Size() int { - return xxx_messageInfo_ProposeResponse.Size(m) -} -func (m *ProposeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ProposeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ProposeResponse proto.InternalMessageInfo - -func (m *ProposeResponse) GetBlockRoot() []byte { - if m != nil { - return m.BlockRoot - } - return nil -} - -type AttestationRequest struct { - PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - PocBit []byte `protobuf:"bytes,2,opt,name=poc_bit,json=pocBit,proto3" json:"poc_bit,omitempty"` - Slot uint64 `protobuf:"varint,3,opt,name=slot,proto3" json:"slot,omitempty"` - CommitteeIndex uint64 `protobuf:"varint,4,opt,name=committee_index,json=committeeIndex,proto3" json:"committee_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AttestationRequest) Reset() { *m = AttestationRequest{} } -func (m *AttestationRequest) String() string { return proto.CompactTextString(m) } -func (*AttestationRequest) ProtoMessage() {} -func (*AttestationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{2} -} - -func (m *AttestationRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AttestationRequest.Unmarshal(m, b) -} -func (m *AttestationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AttestationRequest.Marshal(b, m, deterministic) -} -func (m *AttestationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AttestationRequest.Merge(m, src) -} -func (m *AttestationRequest) XXX_Size() int { - return xxx_messageInfo_AttestationRequest.Size(m) -} -func (m *AttestationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AttestationRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AttestationRequest proto.InternalMessageInfo - -func (m *AttestationRequest) GetPublicKey() []byte { - if m != nil { - return m.PublicKey - } - return nil -} - -func (m *AttestationRequest) GetPocBit() []byte { - if m != nil { - return m.PocBit - } - return nil -} - -func (m *AttestationRequest) GetSlot() uint64 { - if m != nil { - return m.Slot - } - return 0 -} - -func (m *AttestationRequest) GetCommitteeIndex() uint64 { - if m != nil { - return m.CommitteeIndex - } - return 0 -} - -type AttestResponse struct { - Root []byte `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AttestResponse) Reset() { *m = AttestResponse{} } -func (m *AttestResponse) String() string { return proto.CompactTextString(m) } -func (*AttestResponse) ProtoMessage() {} -func (*AttestResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{3} -} - -func (m *AttestResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AttestResponse.Unmarshal(m, b) -} -func (m *AttestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AttestResponse.Marshal(b, m, deterministic) -} -func (m *AttestResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AttestResponse.Merge(m, src) -} -func (m *AttestResponse) XXX_Size() int { - return xxx_messageInfo_AttestResponse.Size(m) -} -func (m *AttestResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AttestResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AttestResponse proto.InternalMessageInfo - -func (m *AttestResponse) GetRoot() []byte { - if m != nil { - return m.Root - } - return nil -} - +// Deprecated: Do not use. type AggregationRequest struct { Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"` CommitteeIndex uint64 `protobuf:"varint,2,opt,name=committee_index,json=committeeIndex,proto3" json:"committee_index,omitempty"` @@ -311,7 +71,7 @@ func (m *AggregationRequest) Reset() { *m = AggregationRequest{} } func (m *AggregationRequest) String() string { return proto.CompactTextString(m) } func (*AggregationRequest) ProtoMessage() {} func (*AggregationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{4} + return fileDescriptor_9eb4e94b85965285, []int{0} } func (m *AggregationRequest) XXX_Unmarshal(b []byte) error { @@ -360,6 +120,7 @@ func (m *AggregationRequest) GetSlotSignature() []byte { return nil } +// Deprecated: Do not use. type AggregationResponse struct { Root []byte `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -371,7 +132,7 @@ func (m *AggregationResponse) Reset() { *m = AggregationResponse{} } func (m *AggregationResponse) String() string { return proto.CompactTextString(m) } func (*AggregationResponse) ProtoMessage() {} func (*AggregationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{5} + return fileDescriptor_9eb4e94b85965285, []int{1} } func (m *AggregationResponse) XXX_Unmarshal(b []byte) error { @@ -399,1336 +160,178 @@ func (m *AggregationResponse) GetRoot() []byte { return nil } -type ValidatorPerformanceRequest struct { - Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"` - PublicKeys [][]byte `protobuf:"bytes,2,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` +// Deprecated: Do not use. +type ExitedValidatorsRequest struct { + PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *ValidatorPerformanceRequest) Reset() { *m = ValidatorPerformanceRequest{} } -func (m *ValidatorPerformanceRequest) String() string { return proto.CompactTextString(m) } -func (*ValidatorPerformanceRequest) ProtoMessage() {} -func (*ValidatorPerformanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{6} +func (m *ExitedValidatorsRequest) Reset() { *m = ExitedValidatorsRequest{} } +func (m *ExitedValidatorsRequest) String() string { return proto.CompactTextString(m) } +func (*ExitedValidatorsRequest) ProtoMessage() {} +func (*ExitedValidatorsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9eb4e94b85965285, []int{2} } -func (m *ValidatorPerformanceRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidatorPerformanceRequest.Unmarshal(m, b) +func (m *ExitedValidatorsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExitedValidatorsRequest.Unmarshal(m, b) } -func (m *ValidatorPerformanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidatorPerformanceRequest.Marshal(b, m, deterministic) +func (m *ExitedValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExitedValidatorsRequest.Marshal(b, m, deterministic) } -func (m *ValidatorPerformanceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorPerformanceRequest.Merge(m, src) +func (m *ExitedValidatorsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExitedValidatorsRequest.Merge(m, src) } -func (m *ValidatorPerformanceRequest) XXX_Size() int { - return xxx_messageInfo_ValidatorPerformanceRequest.Size(m) +func (m *ExitedValidatorsRequest) XXX_Size() int { + return xxx_messageInfo_ExitedValidatorsRequest.Size(m) } -func (m *ValidatorPerformanceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorPerformanceRequest.DiscardUnknown(m) +func (m *ExitedValidatorsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExitedValidatorsRequest.DiscardUnknown(m) } -var xxx_messageInfo_ValidatorPerformanceRequest proto.InternalMessageInfo - -func (m *ValidatorPerformanceRequest) GetSlot() uint64 { - if m != nil { - return m.Slot - } - return 0 -} +var xxx_messageInfo_ExitedValidatorsRequest proto.InternalMessageInfo -func (m *ValidatorPerformanceRequest) GetPublicKeys() [][]byte { +func (m *ExitedValidatorsRequest) GetPublicKeys() [][]byte { if m != nil { return m.PublicKeys } return nil } -type ValidatorPerformanceResponse struct { - Balances []uint64 `protobuf:"varint,1,rep,packed,name=balances,proto3" json:"balances,omitempty"` - TotalValidators uint64 `protobuf:"varint,2,opt,name=total_validators,json=totalValidators,proto3" json:"total_validators,omitempty"` - TotalActiveValidators uint64 `protobuf:"varint,3,opt,name=total_active_validators,json=totalActiveValidators,proto3" json:"total_active_validators,omitempty"` - MissingValidators [][]byte `protobuf:"bytes,4,rep,name=missing_validators,json=missingValidators,proto3" json:"missing_validators,omitempty"` - AverageActiveValidatorBalance float32 `protobuf:"fixed32,5,opt,name=average_active_validator_balance,json=averageActiveValidatorBalance,proto3" json:"average_active_validator_balance,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Do not use. +type ExitedValidatorsResponse struct { + PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ValidatorPerformanceResponse) Reset() { *m = ValidatorPerformanceResponse{} } -func (m *ValidatorPerformanceResponse) String() string { return proto.CompactTextString(m) } -func (*ValidatorPerformanceResponse) ProtoMessage() {} -func (*ValidatorPerformanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{7} +func (m *ExitedValidatorsResponse) Reset() { *m = ExitedValidatorsResponse{} } +func (m *ExitedValidatorsResponse) String() string { return proto.CompactTextString(m) } +func (*ExitedValidatorsResponse) ProtoMessage() {} +func (*ExitedValidatorsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9eb4e94b85965285, []int{3} } -func (m *ValidatorPerformanceResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidatorPerformanceResponse.Unmarshal(m, b) +func (m *ExitedValidatorsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExitedValidatorsResponse.Unmarshal(m, b) } -func (m *ValidatorPerformanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidatorPerformanceResponse.Marshal(b, m, deterministic) +func (m *ExitedValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExitedValidatorsResponse.Marshal(b, m, deterministic) } -func (m *ValidatorPerformanceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorPerformanceResponse.Merge(m, src) +func (m *ExitedValidatorsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExitedValidatorsResponse.Merge(m, src) } -func (m *ValidatorPerformanceResponse) XXX_Size() int { - return xxx_messageInfo_ValidatorPerformanceResponse.Size(m) +func (m *ExitedValidatorsResponse) XXX_Size() int { + return xxx_messageInfo_ExitedValidatorsResponse.Size(m) } -func (m *ValidatorPerformanceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorPerformanceResponse.DiscardUnknown(m) +func (m *ExitedValidatorsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ExitedValidatorsResponse.DiscardUnknown(m) } -var xxx_messageInfo_ValidatorPerformanceResponse proto.InternalMessageInfo +var xxx_messageInfo_ExitedValidatorsResponse proto.InternalMessageInfo -func (m *ValidatorPerformanceResponse) GetBalances() []uint64 { +func (m *ExitedValidatorsResponse) GetPublicKeys() [][]byte { if m != nil { - return m.Balances + return m.PublicKeys } return nil } -func (m *ValidatorPerformanceResponse) GetTotalValidators() uint64 { - if m != nil { - return m.TotalValidators - } - return 0 +func init() { + proto.RegisterEnum("ethereum.beacon.rpc.v1.ValidatorRole", ValidatorRole_name, ValidatorRole_value) + proto.RegisterType((*AggregationRequest)(nil), "ethereum.beacon.rpc.v1.AggregationRequest") + proto.RegisterType((*AggregationResponse)(nil), "ethereum.beacon.rpc.v1.AggregationResponse") + proto.RegisterType((*ExitedValidatorsRequest)(nil), "ethereum.beacon.rpc.v1.ExitedValidatorsRequest") + proto.RegisterType((*ExitedValidatorsResponse)(nil), "ethereum.beacon.rpc.v1.ExitedValidatorsResponse") } -func (m *ValidatorPerformanceResponse) GetTotalActiveValidators() uint64 { - if m != nil { - return m.TotalActiveValidators - } - return 0 -} +func init() { proto.RegisterFile("proto/beacon/rpc/v1/services.proto", fileDescriptor_9eb4e94b85965285) } -func (m *ValidatorPerformanceResponse) GetMissingValidators() [][]byte { - if m != nil { - return m.MissingValidators - } - return nil +var fileDescriptor_9eb4e94b85965285 = []byte{ + // 410 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x5d, 0x8b, 0xd3, 0x40, + 0x14, 0x75, 0x92, 0xe2, 0xc7, 0xdd, 0x6e, 0xad, 0x23, 0xb8, 0x43, 0x45, 0x2c, 0x05, 0xb1, 0xac, + 0x98, 0xb0, 0xfa, 0xe6, 0x83, 0x12, 0x21, 0x14, 0x59, 0x69, 0xcb, 0xa4, 0xea, 0x63, 0xc9, 0xc7, + 0xdd, 0x38, 0x98, 0x64, 0xe2, 0xcc, 0xa4, 0x6c, 0xff, 0x81, 0x0f, 0xfe, 0x03, 0xff, 0x88, 0x3f, + 0x4f, 0x32, 0xd9, 0x54, 0x64, 0x7d, 0xd8, 0xb7, 0x3b, 0xe7, 0x9e, 0x73, 0xe7, 0x1c, 0xee, 0x85, + 0x59, 0xad, 0xa4, 0x91, 0x7e, 0x82, 0x71, 0x2a, 0x2b, 0x5f, 0xd5, 0xa9, 0xbf, 0x3b, 0xf3, 0x35, + 0xaa, 0x9d, 0x48, 0x51, 0x7b, 0xb6, 0x49, 0x1f, 0xa1, 0xf9, 0x8a, 0x0a, 0x9b, 0xd2, 0xeb, 0x68, + 0x9e, 0xaa, 0x53, 0x6f, 0x77, 0x36, 0x79, 0x9c, 0x4b, 0x99, 0x17, 0xe8, 0x5b, 0x56, 0xd2, 0x5c, + 0xf8, 0x58, 0xd6, 0x66, 0xdf, 0x89, 0x66, 0xbf, 0x08, 0xd0, 0x20, 0xcf, 0x15, 0xe6, 0xb1, 0x11, + 0xb2, 0xe2, 0xf8, 0xbd, 0x41, 0x6d, 0x28, 0x85, 0x81, 0x2e, 0xa4, 0x61, 0x64, 0x4a, 0xe6, 0x03, + 0x6e, 0x6b, 0xfa, 0x1c, 0xee, 0xa7, 0xb2, 0x2c, 0x85, 0x31, 0x88, 0x5b, 0x51, 0x65, 0x78, 0xc9, + 0x1c, 0xdb, 0x1e, 0x1d, 0xe0, 0x0f, 0x2d, 0x4a, 0x9f, 0x00, 0xd4, 0x4d, 0x52, 0x88, 0x74, 0xfb, + 0x0d, 0xf7, 0xcc, 0x9d, 0x92, 0xf9, 0x90, 0xdf, 0xeb, 0x90, 0x73, 0xdc, 0xd3, 0x67, 0x30, 0x6a, + 0xe7, 0x6d, 0xb5, 0xc8, 0xab, 0xd8, 0x34, 0x0a, 0xd9, 0xc0, 0x52, 0x8e, 0x5b, 0x34, 0xea, 0xc1, + 0x37, 0x0e, 0x23, 0xb3, 0x97, 0xf0, 0xf0, 0x1f, 0x73, 0xba, 0x96, 0x95, 0xc6, 0xd6, 0x9d, 0x92, + 0x57, 0xee, 0x86, 0xdc, 0xd6, 0x96, 0xfe, 0x16, 0x4e, 0xc2, 0x4b, 0x61, 0x30, 0xfb, 0x1c, 0x17, + 0x22, 0x8b, 0x8d, 0x54, 0xba, 0x0f, 0xf4, 0x14, 0x8e, 0xfe, 0x7a, 0xd2, 0x8c, 0x4c, 0xdd, 0xf9, + 0x90, 0xc3, 0xc1, 0x94, 0xb6, 0xfa, 0x77, 0xc0, 0xae, 0xeb, 0xaf, 0xfe, 0xbc, 0xc9, 0x80, 0xd3, + 0x8f, 0x70, 0x7c, 0x90, 0x72, 0x59, 0x20, 0x3d, 0x82, 0x3b, 0x9f, 0x96, 0xe7, 0xcb, 0xd5, 0x97, + 0xe5, 0xf8, 0x16, 0x1d, 0xc2, 0xdd, 0x60, 0xb3, 0x09, 0xa3, 0x4d, 0xc8, 0xc7, 0xa4, 0x7d, 0xad, + 0xf9, 0x6a, 0xbd, 0x8a, 0x42, 0x3e, 0x76, 0xe8, 0x08, 0x20, 0x58, 0x2c, 0x78, 0xb8, 0x08, 0x36, + 0x2b, 0x3e, 0x76, 0x27, 0x0e, 0x23, 0xaf, 0x7e, 0x12, 0x78, 0xd0, 0xc7, 0x97, 0x2a, 0xea, 0xb6, + 0x4d, 0x15, 0x9c, 0x44, 0x4d, 0x52, 0x0a, 0xd3, 0xb7, 0x30, 0xa8, 0xb2, 0xb5, 0x92, 0xf2, 0x82, + 0x9e, 0x7a, 0xff, 0x3f, 0x01, 0xef, 0xfa, 0x86, 0x27, 0x2f, 0x6e, 0xc4, 0xed, 0xc2, 0x4f, 0xdc, + 0x1f, 0x0e, 0x79, 0xef, 0xfe, 0x26, 0x24, 0xb9, 0x6d, 0xcf, 0xe6, 0xf5, 0x9f, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x5d, 0x61, 0x38, 0x79, 0x91, 0x02, 0x00, 0x00, } -func (m *ValidatorPerformanceResponse) GetAverageActiveValidatorBalance() float32 { - if m != nil { - return m.AverageActiveValidatorBalance - } - return 0 -} +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn -type ValidatorActivationRequest struct { - PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 -func (m *ValidatorActivationRequest) Reset() { *m = ValidatorActivationRequest{} } -func (m *ValidatorActivationRequest) String() string { return proto.CompactTextString(m) } -func (*ValidatorActivationRequest) ProtoMessage() {} -func (*ValidatorActivationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{8} +// AggregatorServiceClient is the client API for AggregatorService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// +// Deprecated: Do not use. +type AggregatorServiceClient interface { + SubmitAggregateAndProof(ctx context.Context, in *AggregationRequest, opts ...grpc.CallOption) (*AggregationResponse, error) } -func (m *ValidatorActivationRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidatorActivationRequest.Unmarshal(m, b) -} -func (m *ValidatorActivationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidatorActivationRequest.Marshal(b, m, deterministic) -} -func (m *ValidatorActivationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorActivationRequest.Merge(m, src) -} -func (m *ValidatorActivationRequest) XXX_Size() int { - return xxx_messageInfo_ValidatorActivationRequest.Size(m) -} -func (m *ValidatorActivationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorActivationRequest.DiscardUnknown(m) +type aggregatorServiceClient struct { + cc *grpc.ClientConn } -var xxx_messageInfo_ValidatorActivationRequest proto.InternalMessageInfo +// Deprecated: Do not use. +func NewAggregatorServiceClient(cc *grpc.ClientConn) AggregatorServiceClient { + return &aggregatorServiceClient{cc} +} -func (m *ValidatorActivationRequest) GetPublicKeys() [][]byte { - if m != nil { - return m.PublicKeys +func (c *aggregatorServiceClient) SubmitAggregateAndProof(ctx context.Context, in *AggregationRequest, opts ...grpc.CallOption) (*AggregationResponse, error) { + out := new(AggregationResponse) + err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.AggregatorService/SubmitAggregateAndProof", in, out, opts...) + if err != nil { + return nil, err } - return nil + return out, nil } -type ValidatorActivationResponse struct { - ActivatedPublicKeys [][]byte `protobuf:"bytes,1,rep,name=activated_public_keys,json=activatedPublicKeys,proto3" json:"activated_public_keys,omitempty"` // Deprecated: Do not use. - Statuses []*ValidatorActivationResponse_Status `protobuf:"bytes,2,rep,name=statuses,proto3" json:"statuses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// AggregatorServiceServer is the server API for AggregatorService service. +// +// Deprecated: Do not use. +type AggregatorServiceServer interface { + SubmitAggregateAndProof(context.Context, *AggregationRequest) (*AggregationResponse, error) } -func (m *ValidatorActivationResponse) Reset() { *m = ValidatorActivationResponse{} } -func (m *ValidatorActivationResponse) String() string { return proto.CompactTextString(m) } -func (*ValidatorActivationResponse) ProtoMessage() {} -func (*ValidatorActivationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{9} +// Deprecated: Do not use. +// UnimplementedAggregatorServiceServer can be embedded to have forward compatible implementations. +type UnimplementedAggregatorServiceServer struct { } -func (m *ValidatorActivationResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidatorActivationResponse.Unmarshal(m, b) -} -func (m *ValidatorActivationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidatorActivationResponse.Marshal(b, m, deterministic) -} -func (m *ValidatorActivationResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorActivationResponse.Merge(m, src) -} -func (m *ValidatorActivationResponse) XXX_Size() int { - return xxx_messageInfo_ValidatorActivationResponse.Size(m) -} -func (m *ValidatorActivationResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorActivationResponse.DiscardUnknown(m) +func (*UnimplementedAggregatorServiceServer) SubmitAggregateAndProof(ctx context.Context, req *AggregationRequest) (*AggregationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SubmitAggregateAndProof not implemented") } -var xxx_messageInfo_ValidatorActivationResponse proto.InternalMessageInfo - // Deprecated: Do not use. -func (m *ValidatorActivationResponse) GetActivatedPublicKeys() [][]byte { - if m != nil { - return m.ActivatedPublicKeys - } - return nil -} - -func (m *ValidatorActivationResponse) GetStatuses() []*ValidatorActivationResponse_Status { - if m != nil { - return m.Statuses - } - return nil -} - -type ValidatorActivationResponse_Status struct { - PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - Status *ValidatorStatusResponse `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ValidatorActivationResponse_Status) Reset() { *m = ValidatorActivationResponse_Status{} } -func (m *ValidatorActivationResponse_Status) String() string { return proto.CompactTextString(m) } -func (*ValidatorActivationResponse_Status) ProtoMessage() {} -func (*ValidatorActivationResponse_Status) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{9, 0} -} - -func (m *ValidatorActivationResponse_Status) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidatorActivationResponse_Status.Unmarshal(m, b) -} -func (m *ValidatorActivationResponse_Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidatorActivationResponse_Status.Marshal(b, m, deterministic) -} -func (m *ValidatorActivationResponse_Status) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorActivationResponse_Status.Merge(m, src) -} -func (m *ValidatorActivationResponse_Status) XXX_Size() int { - return xxx_messageInfo_ValidatorActivationResponse_Status.Size(m) -} -func (m *ValidatorActivationResponse_Status) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorActivationResponse_Status.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatorActivationResponse_Status proto.InternalMessageInfo - -func (m *ValidatorActivationResponse_Status) GetPublicKey() []byte { - if m != nil { - return m.PublicKey - } - return nil -} - -func (m *ValidatorActivationResponse_Status) GetStatus() *ValidatorStatusResponse { - if m != nil { - return m.Status - } - return nil -} - -type ExitedValidatorsRequest struct { - PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExitedValidatorsRequest) Reset() { *m = ExitedValidatorsRequest{} } -func (m *ExitedValidatorsRequest) String() string { return proto.CompactTextString(m) } -func (*ExitedValidatorsRequest) ProtoMessage() {} -func (*ExitedValidatorsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{10} -} - -func (m *ExitedValidatorsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExitedValidatorsRequest.Unmarshal(m, b) -} -func (m *ExitedValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExitedValidatorsRequest.Marshal(b, m, deterministic) -} -func (m *ExitedValidatorsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExitedValidatorsRequest.Merge(m, src) -} -func (m *ExitedValidatorsRequest) XXX_Size() int { - return xxx_messageInfo_ExitedValidatorsRequest.Size(m) -} -func (m *ExitedValidatorsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExitedValidatorsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ExitedValidatorsRequest proto.InternalMessageInfo - -func (m *ExitedValidatorsRequest) GetPublicKeys() [][]byte { - if m != nil { - return m.PublicKeys - } - return nil -} - -type ExitedValidatorsResponse struct { - PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExitedValidatorsResponse) Reset() { *m = ExitedValidatorsResponse{} } -func (m *ExitedValidatorsResponse) String() string { return proto.CompactTextString(m) } -func (*ExitedValidatorsResponse) ProtoMessage() {} -func (*ExitedValidatorsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{11} -} - -func (m *ExitedValidatorsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExitedValidatorsResponse.Unmarshal(m, b) -} -func (m *ExitedValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExitedValidatorsResponse.Marshal(b, m, deterministic) -} -func (m *ExitedValidatorsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExitedValidatorsResponse.Merge(m, src) -} -func (m *ExitedValidatorsResponse) XXX_Size() int { - return xxx_messageInfo_ExitedValidatorsResponse.Size(m) -} -func (m *ExitedValidatorsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExitedValidatorsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ExitedValidatorsResponse proto.InternalMessageInfo - -func (m *ExitedValidatorsResponse) GetPublicKeys() [][]byte { - if m != nil { - return m.PublicKeys - } - return nil -} - -type ChainStartResponse struct { - Started bool `protobuf:"varint,1,opt,name=started,proto3" json:"started,omitempty"` - GenesisTime uint64 `protobuf:"varint,2,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChainStartResponse) Reset() { *m = ChainStartResponse{} } -func (m *ChainStartResponse) String() string { return proto.CompactTextString(m) } -func (*ChainStartResponse) ProtoMessage() {} -func (*ChainStartResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{12} -} - -func (m *ChainStartResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChainStartResponse.Unmarshal(m, b) -} -func (m *ChainStartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChainStartResponse.Marshal(b, m, deterministic) -} -func (m *ChainStartResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChainStartResponse.Merge(m, src) -} -func (m *ChainStartResponse) XXX_Size() int { - return xxx_messageInfo_ChainStartResponse.Size(m) -} -func (m *ChainStartResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ChainStartResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ChainStartResponse proto.InternalMessageInfo - -func (m *ChainStartResponse) GetStarted() bool { - if m != nil { - return m.Started - } - return false -} - -func (m *ChainStartResponse) GetGenesisTime() uint64 { - if m != nil { - return m.GenesisTime - } - return 0 -} - -type ValidatorIndexRequest struct { - PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ValidatorIndexRequest) Reset() { *m = ValidatorIndexRequest{} } -func (m *ValidatorIndexRequest) String() string { return proto.CompactTextString(m) } -func (*ValidatorIndexRequest) ProtoMessage() {} -func (*ValidatorIndexRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{13} -} - -func (m *ValidatorIndexRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidatorIndexRequest.Unmarshal(m, b) -} -func (m *ValidatorIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidatorIndexRequest.Marshal(b, m, deterministic) -} -func (m *ValidatorIndexRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorIndexRequest.Merge(m, src) -} -func (m *ValidatorIndexRequest) XXX_Size() int { - return xxx_messageInfo_ValidatorIndexRequest.Size(m) -} -func (m *ValidatorIndexRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorIndexRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatorIndexRequest proto.InternalMessageInfo - -func (m *ValidatorIndexRequest) GetPublicKey() []byte { - if m != nil { - return m.PublicKey - } - return nil -} - -type ValidatorIndexResponse struct { - Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ValidatorIndexResponse) Reset() { *m = ValidatorIndexResponse{} } -func (m *ValidatorIndexResponse) String() string { return proto.CompactTextString(m) } -func (*ValidatorIndexResponse) ProtoMessage() {} -func (*ValidatorIndexResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{14} -} - -func (m *ValidatorIndexResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidatorIndexResponse.Unmarshal(m, b) -} -func (m *ValidatorIndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidatorIndexResponse.Marshal(b, m, deterministic) -} -func (m *ValidatorIndexResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorIndexResponse.Merge(m, src) -} -func (m *ValidatorIndexResponse) XXX_Size() int { - return xxx_messageInfo_ValidatorIndexResponse.Size(m) -} -func (m *ValidatorIndexResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorIndexResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatorIndexResponse proto.InternalMessageInfo - -func (m *ValidatorIndexResponse) GetIndex() uint64 { - if m != nil { - return m.Index - } - return 0 -} - -type AssignmentRequest struct { - EpochStart uint64 `protobuf:"varint,1,opt,name=epoch_start,json=epochStart,proto3" json:"epoch_start,omitempty"` - PublicKeys [][]byte `protobuf:"bytes,2,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AssignmentRequest) Reset() { *m = AssignmentRequest{} } -func (m *AssignmentRequest) String() string { return proto.CompactTextString(m) } -func (*AssignmentRequest) ProtoMessage() {} -func (*AssignmentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{15} -} - -func (m *AssignmentRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AssignmentRequest.Unmarshal(m, b) -} -func (m *AssignmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AssignmentRequest.Marshal(b, m, deterministic) -} -func (m *AssignmentRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AssignmentRequest.Merge(m, src) -} -func (m *AssignmentRequest) XXX_Size() int { - return xxx_messageInfo_AssignmentRequest.Size(m) -} -func (m *AssignmentRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AssignmentRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AssignmentRequest proto.InternalMessageInfo - -func (m *AssignmentRequest) GetEpochStart() uint64 { - if m != nil { - return m.EpochStart - } - return 0 -} - -func (m *AssignmentRequest) GetPublicKeys() [][]byte { - if m != nil { - return m.PublicKeys - } - return nil -} - -type AssignmentResponse struct { - ValidatorAssignment []*AssignmentResponse_ValidatorAssignment `protobuf:"bytes,1,rep,name=validator_assignment,json=validatorAssignment,proto3" json:"validator_assignment,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AssignmentResponse) Reset() { *m = AssignmentResponse{} } -func (m *AssignmentResponse) String() string { return proto.CompactTextString(m) } -func (*AssignmentResponse) ProtoMessage() {} -func (*AssignmentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{16} -} - -func (m *AssignmentResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AssignmentResponse.Unmarshal(m, b) -} -func (m *AssignmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AssignmentResponse.Marshal(b, m, deterministic) -} -func (m *AssignmentResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AssignmentResponse.Merge(m, src) -} -func (m *AssignmentResponse) XXX_Size() int { - return xxx_messageInfo_AssignmentResponse.Size(m) -} -func (m *AssignmentResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AssignmentResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AssignmentResponse proto.InternalMessageInfo - -func (m *AssignmentResponse) GetValidatorAssignment() []*AssignmentResponse_ValidatorAssignment { - if m != nil { - return m.ValidatorAssignment - } - return nil -} - -type AssignmentResponse_ValidatorAssignment struct { - Committee []uint64 `protobuf:"varint,1,rep,packed,name=committee,proto3" json:"committee,omitempty"` - CommitteeIndex uint64 `protobuf:"varint,2,opt,name=committee_index,json=committeeIndex,proto3" json:"committee_index,omitempty"` - AttesterSlot uint64 `protobuf:"varint,3,opt,name=attester_slot,json=attesterSlot,proto3" json:"attester_slot,omitempty"` - ProposerSlot uint64 `protobuf:"varint,4,opt,name=proposer_slot,json=proposerSlot,proto3" json:"proposer_slot,omitempty"` - PublicKey []byte `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - Status ValidatorStatus `protobuf:"varint,6,opt,name=status,proto3,enum=ethereum.beacon.rpc.v1.ValidatorStatus" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AssignmentResponse_ValidatorAssignment) Reset() { - *m = AssignmentResponse_ValidatorAssignment{} -} -func (m *AssignmentResponse_ValidatorAssignment) String() string { return proto.CompactTextString(m) } -func (*AssignmentResponse_ValidatorAssignment) ProtoMessage() {} -func (*AssignmentResponse_ValidatorAssignment) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{16, 0} -} - -func (m *AssignmentResponse_ValidatorAssignment) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AssignmentResponse_ValidatorAssignment.Unmarshal(m, b) -} -func (m *AssignmentResponse_ValidatorAssignment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AssignmentResponse_ValidatorAssignment.Marshal(b, m, deterministic) -} -func (m *AssignmentResponse_ValidatorAssignment) XXX_Merge(src proto.Message) { - xxx_messageInfo_AssignmentResponse_ValidatorAssignment.Merge(m, src) -} -func (m *AssignmentResponse_ValidatorAssignment) XXX_Size() int { - return xxx_messageInfo_AssignmentResponse_ValidatorAssignment.Size(m) -} -func (m *AssignmentResponse_ValidatorAssignment) XXX_DiscardUnknown() { - xxx_messageInfo_AssignmentResponse_ValidatorAssignment.DiscardUnknown(m) -} - -var xxx_messageInfo_AssignmentResponse_ValidatorAssignment proto.InternalMessageInfo - -func (m *AssignmentResponse_ValidatorAssignment) GetCommittee() []uint64 { - if m != nil { - return m.Committee - } - return nil -} - -func (m *AssignmentResponse_ValidatorAssignment) GetCommitteeIndex() uint64 { - if m != nil { - return m.CommitteeIndex - } - return 0 -} - -func (m *AssignmentResponse_ValidatorAssignment) GetAttesterSlot() uint64 { - if m != nil { - return m.AttesterSlot - } - return 0 -} - -func (m *AssignmentResponse_ValidatorAssignment) GetProposerSlot() uint64 { - if m != nil { - return m.ProposerSlot - } - return 0 -} - -func (m *AssignmentResponse_ValidatorAssignment) GetPublicKey() []byte { - if m != nil { - return m.PublicKey - } - return nil -} - -func (m *AssignmentResponse_ValidatorAssignment) GetStatus() ValidatorStatus { - if m != nil { - return m.Status - } - return ValidatorStatus_UNKNOWN_STATUS -} - -type ValidatorStatusResponse struct { - Status ValidatorStatus `protobuf:"varint,1,opt,name=status,proto3,enum=ethereum.beacon.rpc.v1.ValidatorStatus" json:"status,omitempty"` - Eth1DepositBlockNumber uint64 `protobuf:"varint,2,opt,name=eth1_deposit_block_number,json=eth1DepositBlockNumber,proto3" json:"eth1_deposit_block_number,omitempty"` - DepositInclusionSlot uint64 `protobuf:"varint,3,opt,name=deposit_inclusion_slot,json=depositInclusionSlot,proto3" json:"deposit_inclusion_slot,omitempty"` - ActivationEpoch uint64 `protobuf:"varint,4,opt,name=activation_epoch,json=activationEpoch,proto3" json:"activation_epoch,omitempty"` - PositionInActivationQueue uint64 `protobuf:"varint,5,opt,name=position_in_activation_queue,json=positionInActivationQueue,proto3" json:"position_in_activation_queue,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ValidatorStatusResponse) Reset() { *m = ValidatorStatusResponse{} } -func (m *ValidatorStatusResponse) String() string { return proto.CompactTextString(m) } -func (*ValidatorStatusResponse) ProtoMessage() {} -func (*ValidatorStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{17} -} - -func (m *ValidatorStatusResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidatorStatusResponse.Unmarshal(m, b) -} -func (m *ValidatorStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidatorStatusResponse.Marshal(b, m, deterministic) -} -func (m *ValidatorStatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorStatusResponse.Merge(m, src) -} -func (m *ValidatorStatusResponse) XXX_Size() int { - return xxx_messageInfo_ValidatorStatusResponse.Size(m) -} -func (m *ValidatorStatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorStatusResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatorStatusResponse proto.InternalMessageInfo - -func (m *ValidatorStatusResponse) GetStatus() ValidatorStatus { - if m != nil { - return m.Status - } - return ValidatorStatus_UNKNOWN_STATUS -} - -func (m *ValidatorStatusResponse) GetEth1DepositBlockNumber() uint64 { - if m != nil { - return m.Eth1DepositBlockNumber - } - return 0 -} - -func (m *ValidatorStatusResponse) GetDepositInclusionSlot() uint64 { - if m != nil { - return m.DepositInclusionSlot - } - return 0 -} - -func (m *ValidatorStatusResponse) GetActivationEpoch() uint64 { - if m != nil { - return m.ActivationEpoch - } - return 0 -} - -func (m *ValidatorStatusResponse) GetPositionInActivationQueue() uint64 { - if m != nil { - return m.PositionInActivationQueue - } - return 0 -} - -type DomainRequest struct { - Epoch uint64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` - Domain []byte `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DomainRequest) Reset() { *m = DomainRequest{} } -func (m *DomainRequest) String() string { return proto.CompactTextString(m) } -func (*DomainRequest) ProtoMessage() {} -func (*DomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{18} -} - -func (m *DomainRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DomainRequest.Unmarshal(m, b) -} -func (m *DomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DomainRequest.Marshal(b, m, deterministic) -} -func (m *DomainRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DomainRequest.Merge(m, src) -} -func (m *DomainRequest) XXX_Size() int { - return xxx_messageInfo_DomainRequest.Size(m) -} -func (m *DomainRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DomainRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DomainRequest proto.InternalMessageInfo - -func (m *DomainRequest) GetEpoch() uint64 { - if m != nil { - return m.Epoch - } - return 0 -} - -func (m *DomainRequest) GetDomain() []byte { - if m != nil { - return m.Domain - } - return nil -} - -type DomainResponse struct { - SignatureDomain uint64 `protobuf:"varint,1,opt,name=signature_domain,json=signatureDomain,proto3" json:"signature_domain,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DomainResponse) Reset() { *m = DomainResponse{} } -func (m *DomainResponse) String() string { return proto.CompactTextString(m) } -func (*DomainResponse) ProtoMessage() {} -func (*DomainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{19} -} - -func (m *DomainResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DomainResponse.Unmarshal(m, b) -} -func (m *DomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DomainResponse.Marshal(b, m, deterministic) -} -func (m *DomainResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DomainResponse.Merge(m, src) -} -func (m *DomainResponse) XXX_Size() int { - return xxx_messageInfo_DomainResponse.Size(m) -} -func (m *DomainResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DomainResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DomainResponse proto.InternalMessageInfo - -func (m *DomainResponse) GetSignatureDomain() uint64 { - if m != nil { - return m.SignatureDomain - } - return 0 -} - -type BlockTreeResponse struct { - Tree []*BlockTreeResponse_TreeNode `protobuf:"bytes,1,rep,name=tree,proto3" json:"tree,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BlockTreeResponse) Reset() { *m = BlockTreeResponse{} } -func (m *BlockTreeResponse) String() string { return proto.CompactTextString(m) } -func (*BlockTreeResponse) ProtoMessage() {} -func (*BlockTreeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{20} -} - -func (m *BlockTreeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BlockTreeResponse.Unmarshal(m, b) -} -func (m *BlockTreeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BlockTreeResponse.Marshal(b, m, deterministic) -} -func (m *BlockTreeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockTreeResponse.Merge(m, src) -} -func (m *BlockTreeResponse) XXX_Size() int { - return xxx_messageInfo_BlockTreeResponse.Size(m) -} -func (m *BlockTreeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BlockTreeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockTreeResponse proto.InternalMessageInfo - -func (m *BlockTreeResponse) GetTree() []*BlockTreeResponse_TreeNode { - if m != nil { - return m.Tree - } - return nil -} - -type BlockTreeResponse_TreeNode struct { - Block *v1alpha1.BeaconBlock `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` - BlockRoot []byte `protobuf:"bytes,2,opt,name=block_root,json=blockRoot,proto3" json:"block_root,omitempty"` - ParticipatedVotes uint64 `protobuf:"varint,3,opt,name=participated_votes,json=participatedVotes,proto3" json:"participated_votes,omitempty"` - TotalVotes uint64 `protobuf:"varint,4,opt,name=total_votes,json=totalVotes,proto3" json:"total_votes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BlockTreeResponse_TreeNode) Reset() { *m = BlockTreeResponse_TreeNode{} } -func (m *BlockTreeResponse_TreeNode) String() string { return proto.CompactTextString(m) } -func (*BlockTreeResponse_TreeNode) ProtoMessage() {} -func (*BlockTreeResponse_TreeNode) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{20, 0} -} - -func (m *BlockTreeResponse_TreeNode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BlockTreeResponse_TreeNode.Unmarshal(m, b) -} -func (m *BlockTreeResponse_TreeNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BlockTreeResponse_TreeNode.Marshal(b, m, deterministic) -} -func (m *BlockTreeResponse_TreeNode) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlockTreeResponse_TreeNode.Merge(m, src) -} -func (m *BlockTreeResponse_TreeNode) XXX_Size() int { - return xxx_messageInfo_BlockTreeResponse_TreeNode.Size(m) -} -func (m *BlockTreeResponse_TreeNode) XXX_DiscardUnknown() { - xxx_messageInfo_BlockTreeResponse_TreeNode.DiscardUnknown(m) -} - -var xxx_messageInfo_BlockTreeResponse_TreeNode proto.InternalMessageInfo - -func (m *BlockTreeResponse_TreeNode) GetBlock() *v1alpha1.BeaconBlock { - if m != nil { - return m.Block - } - return nil -} - -func (m *BlockTreeResponse_TreeNode) GetBlockRoot() []byte { - if m != nil { - return m.BlockRoot - } - return nil -} - -func (m *BlockTreeResponse_TreeNode) GetParticipatedVotes() uint64 { - if m != nil { - return m.ParticipatedVotes - } - return 0 -} - -func (m *BlockTreeResponse_TreeNode) GetTotalVotes() uint64 { - if m != nil { - return m.TotalVotes - } - return 0 -} - -type TreeBlockSlotRequest struct { - SlotFrom uint64 `protobuf:"varint,1,opt,name=slot_from,json=slotFrom,proto3" json:"slot_from,omitempty"` - SlotTo uint64 `protobuf:"varint,2,opt,name=slot_to,json=slotTo,proto3" json:"slot_to,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TreeBlockSlotRequest) Reset() { *m = TreeBlockSlotRequest{} } -func (m *TreeBlockSlotRequest) String() string { return proto.CompactTextString(m) } -func (*TreeBlockSlotRequest) ProtoMessage() {} -func (*TreeBlockSlotRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9eb4e94b85965285, []int{21} -} - -func (m *TreeBlockSlotRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TreeBlockSlotRequest.Unmarshal(m, b) -} -func (m *TreeBlockSlotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TreeBlockSlotRequest.Marshal(b, m, deterministic) -} -func (m *TreeBlockSlotRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TreeBlockSlotRequest.Merge(m, src) -} -func (m *TreeBlockSlotRequest) XXX_Size() int { - return xxx_messageInfo_TreeBlockSlotRequest.Size(m) -} -func (m *TreeBlockSlotRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TreeBlockSlotRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TreeBlockSlotRequest proto.InternalMessageInfo - -func (m *TreeBlockSlotRequest) GetSlotFrom() uint64 { - if m != nil { - return m.SlotFrom - } - return 0 -} - -func (m *TreeBlockSlotRequest) GetSlotTo() uint64 { - if m != nil { - return m.SlotTo - } - return 0 -} - -func init() { - proto.RegisterEnum("ethereum.beacon.rpc.v1.ValidatorRole", ValidatorRole_name, ValidatorRole_value) - proto.RegisterEnum("ethereum.beacon.rpc.v1.ValidatorStatus", ValidatorStatus_name, ValidatorStatus_value) - proto.RegisterType((*BlockRequest)(nil), "ethereum.beacon.rpc.v1.BlockRequest") - proto.RegisterType((*ProposeResponse)(nil), "ethereum.beacon.rpc.v1.ProposeResponse") - proto.RegisterType((*AttestationRequest)(nil), "ethereum.beacon.rpc.v1.AttestationRequest") - proto.RegisterType((*AttestResponse)(nil), "ethereum.beacon.rpc.v1.AttestResponse") - proto.RegisterType((*AggregationRequest)(nil), "ethereum.beacon.rpc.v1.AggregationRequest") - proto.RegisterType((*AggregationResponse)(nil), "ethereum.beacon.rpc.v1.AggregationResponse") - proto.RegisterType((*ValidatorPerformanceRequest)(nil), "ethereum.beacon.rpc.v1.ValidatorPerformanceRequest") - proto.RegisterType((*ValidatorPerformanceResponse)(nil), "ethereum.beacon.rpc.v1.ValidatorPerformanceResponse") - proto.RegisterType((*ValidatorActivationRequest)(nil), "ethereum.beacon.rpc.v1.ValidatorActivationRequest") - proto.RegisterType((*ValidatorActivationResponse)(nil), "ethereum.beacon.rpc.v1.ValidatorActivationResponse") - proto.RegisterType((*ValidatorActivationResponse_Status)(nil), "ethereum.beacon.rpc.v1.ValidatorActivationResponse.Status") - proto.RegisterType((*ExitedValidatorsRequest)(nil), "ethereum.beacon.rpc.v1.ExitedValidatorsRequest") - proto.RegisterType((*ExitedValidatorsResponse)(nil), "ethereum.beacon.rpc.v1.ExitedValidatorsResponse") - proto.RegisterType((*ChainStartResponse)(nil), "ethereum.beacon.rpc.v1.ChainStartResponse") - proto.RegisterType((*ValidatorIndexRequest)(nil), "ethereum.beacon.rpc.v1.ValidatorIndexRequest") - proto.RegisterType((*ValidatorIndexResponse)(nil), "ethereum.beacon.rpc.v1.ValidatorIndexResponse") - proto.RegisterType((*AssignmentRequest)(nil), "ethereum.beacon.rpc.v1.AssignmentRequest") - proto.RegisterType((*AssignmentResponse)(nil), "ethereum.beacon.rpc.v1.AssignmentResponse") - proto.RegisterType((*AssignmentResponse_ValidatorAssignment)(nil), "ethereum.beacon.rpc.v1.AssignmentResponse.ValidatorAssignment") - proto.RegisterType((*ValidatorStatusResponse)(nil), "ethereum.beacon.rpc.v1.ValidatorStatusResponse") - proto.RegisterType((*DomainRequest)(nil), "ethereum.beacon.rpc.v1.DomainRequest") - proto.RegisterType((*DomainResponse)(nil), "ethereum.beacon.rpc.v1.DomainResponse") - proto.RegisterType((*BlockTreeResponse)(nil), "ethereum.beacon.rpc.v1.BlockTreeResponse") - proto.RegisterType((*BlockTreeResponse_TreeNode)(nil), "ethereum.beacon.rpc.v1.BlockTreeResponse.TreeNode") - proto.RegisterType((*TreeBlockSlotRequest)(nil), "ethereum.beacon.rpc.v1.TreeBlockSlotRequest") -} - -func init() { proto.RegisterFile("proto/beacon/rpc/v1/services.proto", fileDescriptor_9eb4e94b85965285) } - -var fileDescriptor_9eb4e94b85965285 = []byte{ - // 1672 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0x4f, 0x6f, 0xe3, 0xc6, - 0x15, 0x0f, 0x25, 0x59, 0xd6, 0x3e, 0xc9, 0x32, 0x3d, 0xf6, 0xda, 0x8a, 0x76, 0xb7, 0x71, 0x99, - 0xa4, 0xb1, 0x5d, 0x44, 0xb2, 0x95, 0x60, 0xd1, 0x26, 0x48, 0x03, 0xd9, 0xe2, 0xda, 0x82, 0x17, - 0xb2, 0x42, 0x69, 0xed, 0x14, 0x39, 0x10, 0x23, 0x6a, 0x2c, 0x11, 0x91, 0x38, 0x34, 0x39, 0x12, - 0xe2, 0x4b, 0x81, 0x5e, 0x5a, 0xf4, 0xd6, 0x1e, 0x8a, 0x1e, 0x8b, 0x7e, 0x84, 0xa2, 0x87, 0x7e, - 0x85, 0x7e, 0x88, 0x7e, 0x98, 0x80, 0x33, 0x43, 0x8a, 0xfa, 0x67, 0xcb, 0x7b, 0xe3, 0xbc, 0xf7, - 0x7e, 0xef, 0xef, 0xcc, 0x9b, 0x37, 0x04, 0xcd, 0xf5, 0x28, 0xa3, 0xe5, 0x0e, 0xc1, 0x16, 0x75, - 0xca, 0x9e, 0x6b, 0x95, 0xc7, 0x27, 0x65, 0x9f, 0x78, 0x63, 0xdb, 0x22, 0x7e, 0x89, 0x33, 0xd1, - 0x2e, 0x61, 0x7d, 0xe2, 0x91, 0xd1, 0xb0, 0x24, 0xc4, 0x4a, 0x9e, 0x6b, 0x95, 0xc6, 0x27, 0xc5, - 0x17, 0x3d, 0x4a, 0x7b, 0x03, 0x52, 0xe6, 0x52, 0x9d, 0xd1, 0x6d, 0x99, 0x0c, 0x5d, 0x76, 0x2f, - 0x40, 0xc5, 0x8f, 0x08, 0xeb, 0x97, 0xc7, 0x27, 0x78, 0xe0, 0xf6, 0xf1, 0x89, 0xd4, 0x6f, 0x76, - 0x06, 0xd4, 0xfa, 0x51, 0x0a, 0xfc, 0x62, 0x4a, 0x00, 0x33, 0x46, 0x7c, 0x86, 0x99, 0x4d, 0x1d, - 0xc1, 0xd7, 0x2c, 0xc8, 0x9d, 0x06, 0xe2, 0x06, 0xb9, 0x1b, 0x11, 0x9f, 0x21, 0x04, 0x29, 0x7f, - 0x40, 0x59, 0x41, 0xd9, 0x57, 0x0e, 0x52, 0x06, 0xff, 0x46, 0x1f, 0xc3, 0x86, 0x87, 0x9d, 0x2e, - 0xa6, 0xa6, 0x47, 0xc6, 0x04, 0x0f, 0x0a, 0x89, 0x7d, 0xe5, 0x20, 0x67, 0xe4, 0x04, 0xd1, 0xe0, - 0x34, 0x54, 0x84, 0x4c, 0xcf, 0xc3, 0xb7, 0xb7, 0x36, 0xb3, 0x0b, 0x49, 0xce, 0x8f, 0xd6, 0xda, - 0x31, 0x6c, 0x36, 0x3d, 0xea, 0x52, 0x9f, 0x18, 0xc4, 0x77, 0xa9, 0xe3, 0x13, 0xf4, 0x0a, 0x80, - 0xbb, 0x69, 0x7a, 0x54, 0x5a, 0xcb, 0x19, 0xcf, 0x38, 0xc5, 0xa0, 0x94, 0x69, 0x7f, 0x51, 0x00, - 0x55, 0x27, 0xce, 0x86, 0xde, 0xbd, 0x02, 0x70, 0x47, 0x9d, 0x81, 0x6d, 0x99, 0x3f, 0x92, 0xfb, - 0x10, 0x25, 0x28, 0x97, 0xe4, 0x1e, 0xed, 0xc1, 0xba, 0x4b, 0x2d, 0xb3, 0x63, 0x33, 0xe9, 0x62, - 0xda, 0xa5, 0xd6, 0xa9, 0x3d, 0x89, 0x2a, 0x19, 0x8b, 0xea, 0x33, 0xd8, 0xb4, 0xe8, 0x70, 0x68, - 0x33, 0x46, 0x88, 0x69, 0x3b, 0x5d, 0xf2, 0x53, 0x21, 0xc5, 0xd9, 0xf9, 0x88, 0x5c, 0x0f, 0xa8, - 0xda, 0x27, 0x90, 0x17, 0xae, 0x44, 0xce, 0x23, 0x48, 0xc5, 0xdc, 0xe6, 0xdf, 0xda, 0x3f, 0x02, - 0x8f, 0x7b, 0x3d, 0x8f, 0xf4, 0xa6, 0x3c, 0x5e, 0x94, 0xcf, 0x05, 0x96, 0x13, 0x8b, 0x2c, 0xcf, - 0x84, 0x9b, 0x9c, 0x0d, 0xf7, 0x53, 0xc8, 0x07, 0xfa, 0x4c, 0xdf, 0xee, 0x39, 0x98, 0x8d, 0x3c, - 0xc2, 0x03, 0xc8, 0x19, 0x1b, 0x01, 0xb5, 0x15, 0x12, 0xb5, 0x43, 0xd8, 0x9e, 0x72, 0xec, 0x81, - 0x20, 0x0c, 0x78, 0x71, 0x8d, 0x07, 0x76, 0x17, 0x33, 0xea, 0x35, 0x89, 0x77, 0x4b, 0xbd, 0x21, - 0x76, 0x2c, 0xf2, 0x50, 0x30, 0x1f, 0x41, 0x76, 0xe2, 0xa3, 0x5f, 0x48, 0xec, 0x27, 0x0f, 0x72, - 0x06, 0x44, 0x4e, 0xfa, 0xda, 0xdf, 0x13, 0xf0, 0x72, 0xb1, 0x52, 0xe9, 0x48, 0x11, 0x32, 0x1d, - 0x3c, 0x08, 0x48, 0x7e, 0x41, 0xd9, 0x4f, 0x1e, 0xa4, 0x8c, 0x68, 0x8d, 0x0e, 0x41, 0x65, 0x94, - 0xe1, 0x81, 0x39, 0x0e, 0x35, 0xf8, 0x32, 0x57, 0x9b, 0x9c, 0x1e, 0x29, 0xf6, 0xd1, 0x6b, 0xd8, - 0x13, 0xa2, 0xd8, 0x62, 0xf6, 0x98, 0xc4, 0x11, 0xa2, 0xec, 0xcf, 0x39, 0xbb, 0xca, 0xb9, 0x31, - 0xdc, 0xe7, 0x80, 0x86, 0xb6, 0xef, 0xdb, 0x4e, 0x2f, 0x0e, 0x49, 0xf1, 0x38, 0xb6, 0x24, 0x27, - 0x26, 0x7e, 0x0e, 0xfb, 0x78, 0x4c, 0x3c, 0xdc, 0x23, 0x73, 0x86, 0x4c, 0xe9, 0x76, 0x61, 0x6d, - 0x5f, 0x39, 0x48, 0x18, 0xaf, 0xa4, 0xdc, 0x8c, 0xc5, 0x53, 0x21, 0xa4, 0x7d, 0x03, 0xc5, 0x88, - 0xc6, 0x45, 0xa6, 0xf6, 0xcd, 0x4c, 0x5a, 0x95, 0xb9, 0xb4, 0xfe, 0x33, 0x11, 0xab, 0x55, 0x1c, - 0x2f, 0xb3, 0xfa, 0x1a, 0x9e, 0x63, 0x41, 0x25, 0x5d, 0x73, 0x4e, 0xd5, 0x69, 0xa2, 0xa0, 0x18, - 0xdb, 0x91, 0x40, 0x33, 0xd2, 0x8b, 0xae, 0x21, 0x13, 0x1c, 0xba, 0x91, 0x4f, 0x44, 0x31, 0xb3, - 0x95, 0xaf, 0x4a, 0x8b, 0x3b, 0x53, 0xe9, 0x01, 0xf3, 0xa5, 0x16, 0xd7, 0x61, 0x44, 0xba, 0x8a, - 0x2e, 0xa4, 0x05, 0xed, 0xb1, 0x43, 0x7c, 0x0e, 0x69, 0x01, 0xe2, 0x85, 0xce, 0x56, 0xca, 0x8f, - 0x9a, 0x97, 0xb6, 0xa4, 0x69, 0x43, 0xc2, 0xb5, 0xaf, 0x60, 0x4f, 0xff, 0xc9, 0x66, 0xa4, 0x3b, - 0xa9, 0xde, 0xca, 0xd9, 0xfd, 0x1a, 0x0a, 0xf3, 0x58, 0x99, 0xd9, 0x47, 0xc1, 0xdf, 0x01, 0x3a, - 0xeb, 0x63, 0xdb, 0x69, 0x31, 0xec, 0x4d, 0x9a, 0x46, 0x01, 0xd6, 0xfd, 0x80, 0x40, 0xba, 0x3c, - 0xe6, 0x8c, 0x11, 0x2e, 0xd1, 0x2f, 0x21, 0xd7, 0x23, 0x0e, 0xf1, 0x6d, 0xdf, 0x64, 0xf6, 0x90, - 0xc8, 0x0d, 0x9e, 0x95, 0xb4, 0xb6, 0x3d, 0x24, 0xda, 0x6b, 0x78, 0x1e, 0x79, 0xc2, 0x7b, 0xc3, - 0x6a, 0x1d, 0x51, 0x2b, 0xc1, 0xee, 0x2c, 0x4e, 0xba, 0xb3, 0x03, 0x6b, 0xa2, 0xf5, 0x88, 0xc3, - 0x2c, 0x16, 0xda, 0x3b, 0xd8, 0xaa, 0xfa, 0x41, 0x3f, 0x19, 0x12, 0x87, 0xc5, 0xb2, 0x45, 0x5c, - 0x6a, 0xf5, 0x4d, 0xee, 0xb0, 0x04, 0x00, 0x27, 0xf1, 0x10, 0x1f, 0xef, 0x01, 0x7f, 0x4d, 0x02, - 0x8a, 0xeb, 0x95, 0x3e, 0xdc, 0xc1, 0xce, 0xe4, 0xf0, 0xe0, 0x88, 0xcf, 0x53, 0x9a, 0xad, 0xfc, - 0x6e, 0x59, 0xe1, 0xe7, 0x35, 0xc5, 0xb6, 0xe2, 0x84, 0xb7, 0x3d, 0x9e, 0x27, 0x16, 0xff, 0x94, - 0x80, 0xed, 0x05, 0xc2, 0xe8, 0x25, 0x3c, 0x8b, 0x9a, 0xaf, 0xec, 0x42, 0x13, 0xc2, 0xea, 0x1d, - 0xfb, 0x63, 0xd8, 0x10, 0x77, 0x2c, 0xf1, 0xcc, 0xd8, 0x8d, 0x93, 0x0b, 0x89, 0x2d, 0x79, 0x9f, - 0xba, 0xe2, 0x3a, 0x94, 0x42, 0xe2, 0xde, 0xc9, 0x85, 0x44, 0x2e, 0x34, 0x5d, 0xd8, 0xb5, 0xd9, - 0x53, 0xf2, 0x6d, 0x74, 0x4a, 0xd2, 0xfb, 0xca, 0x41, 0xbe, 0xf2, 0xd9, 0xaa, 0xa7, 0x24, 0x3c, - 0x1d, 0xff, 0x4d, 0xc0, 0xde, 0x92, 0x13, 0x14, 0x53, 0xae, 0xbc, 0x97, 0x72, 0xf4, 0x5b, 0xf8, - 0x90, 0xb0, 0xfe, 0x89, 0xd9, 0x25, 0x2e, 0xf5, 0x6d, 0x26, 0x26, 0x12, 0xd3, 0x19, 0x0d, 0x3b, - 0xc4, 0x93, 0x99, 0x0b, 0xc6, 0x9d, 0x93, 0x9a, 0xe0, 0xf3, 0x09, 0xa4, 0xc1, 0xb9, 0xe8, 0x4b, - 0xd8, 0x0d, 0x51, 0xb6, 0x63, 0x0d, 0x46, 0xbe, 0x4d, 0x9d, 0x78, 0x2a, 0x77, 0x24, 0xb7, 0x1e, - 0x32, 0x79, 0xb6, 0x0e, 0x41, 0xc5, 0x51, 0x13, 0x32, 0xf9, 0xd6, 0x94, 0x59, 0xdd, 0x9c, 0xd0, - 0xf5, 0x80, 0x8c, 0xbe, 0x85, 0x97, 0x5c, 0x41, 0x20, 0x68, 0x3b, 0x66, 0x0c, 0x76, 0x37, 0x22, - 0x23, 0xd1, 0xbc, 0x53, 0xc6, 0x87, 0xa1, 0x4c, 0xdd, 0x99, 0x74, 0xb7, 0xef, 0x02, 0x01, 0xed, - 0x1b, 0xd8, 0xa8, 0xd1, 0x21, 0xb6, 0xa3, 0x5e, 0xbd, 0x03, 0x6b, 0xc2, 0xa2, 0x3c, 0x4a, 0x7c, - 0x81, 0x76, 0x21, 0xdd, 0xe5, 0x62, 0xe1, 0x2c, 0x22, 0x56, 0xda, 0xd7, 0x90, 0x0f, 0xe1, 0x32, - 0xdd, 0x87, 0xa0, 0x46, 0x57, 0xb8, 0x29, 0x31, 0x42, 0xd5, 0x66, 0x44, 0x17, 0x10, 0xed, 0x6f, - 0x09, 0xd8, 0xe2, 0xd9, 0x6a, 0x7b, 0x64, 0x72, 0x83, 0xbe, 0x81, 0x14, 0xf3, 0xe4, 0xbe, 0xcd, - 0x56, 0x2a, 0xcb, 0xaa, 0x35, 0x07, 0x2c, 0x05, 0x8b, 0x06, 0xed, 0x12, 0x83, 0xe3, 0x8b, 0xff, - 0x51, 0x20, 0x13, 0x92, 0xd0, 0x6f, 0x60, 0x8d, 0x97, 0x8d, 0xbb, 0x92, 0xad, 0x68, 0x13, 0xad, - 0x84, 0xf5, 0x4b, 0xe1, 0x48, 0x59, 0x3a, 0xe5, 0x26, 0xc4, 0x0c, 0x29, 0x00, 0x33, 0xb3, 0x5d, - 0x62, 0x66, 0xb6, 0x0b, 0x2e, 0x5c, 0x17, 0x7b, 0xcc, 0xb6, 0x6c, 0x97, 0x5f, 0x4e, 0x63, 0xca, - 0x48, 0x78, 0x47, 0x6f, 0xc5, 0x39, 0xd7, 0x01, 0x23, 0x68, 0x2e, 0x72, 0x04, 0xe0, 0x72, 0xa2, - 0xaa, 0x20, 0x6e, 0xff, 0x80, 0xa2, 0xbd, 0x85, 0x9d, 0xc0, 0x69, 0xee, 0x42, 0xb0, 0x19, 0xc2, - 0xb2, 0xbc, 0x80, 0x67, 0x7c, 0x3c, 0xba, 0xf5, 0xe8, 0x50, 0xe6, 0x33, 0x13, 0x10, 0xde, 0x78, - 0x74, 0x18, 0x8c, 0x8a, 0x9c, 0xc9, 0xa8, 0xdc, 0x8f, 0xe9, 0x60, 0xd9, 0xa6, 0x47, 0x17, 0xb0, - 0x11, 0xed, 0x6a, 0x83, 0x0e, 0x08, 0xca, 0xc2, 0xfa, 0xbb, 0xc6, 0x65, 0xe3, 0xea, 0xa6, 0xa1, - 0x7e, 0x80, 0x72, 0x90, 0xa9, 0xb6, 0xdb, 0x7a, 0xab, 0xad, 0x1b, 0xaa, 0x12, 0xac, 0x9a, 0xc6, - 0x55, 0xf3, 0xaa, 0xa5, 0x1b, 0x6a, 0x02, 0xe5, 0x01, 0xaa, 0xe7, 0xe7, 0x86, 0x7e, 0x5e, 0x6d, - 0x5f, 0x19, 0x6a, 0xf2, 0xe8, 0x5f, 0x0a, 0x6c, 0xce, 0x1c, 0x10, 0x84, 0x20, 0x2f, 0x95, 0x99, - 0xad, 0x76, 0xb5, 0xfd, 0xae, 0xa5, 0x7e, 0x80, 0x76, 0x40, 0xad, 0xe9, 0xcd, 0xab, 0x56, 0xbd, - 0x6d, 0x1a, 0xfa, 0x99, 0x5e, 0xbf, 0xd6, 0x6b, 0xaa, 0x12, 0x48, 0x36, 0xf5, 0x46, 0xad, 0xde, - 0x38, 0x37, 0xab, 0x67, 0xed, 0xfa, 0xb5, 0xae, 0x26, 0x10, 0x40, 0x5a, 0x7e, 0x27, 0x03, 0x7e, - 0xbd, 0x51, 0x6f, 0xd7, 0xab, 0x6d, 0xbd, 0x66, 0xea, 0xdf, 0xd7, 0xdb, 0x6a, 0x0a, 0xa9, 0x90, - 0xbb, 0xa9, 0xb7, 0x2f, 0x6a, 0x46, 0xf5, 0xa6, 0x7a, 0xfa, 0x56, 0x57, 0xd7, 0x02, 0x44, 0xc0, - 0xd3, 0x6b, 0x6a, 0x3a, 0x40, 0x88, 0x6f, 0xb3, 0xf5, 0xb6, 0xda, 0xba, 0xd0, 0x6b, 0xea, 0x7a, - 0xe5, 0xff, 0x0a, 0x6c, 0x56, 0xc3, 0xde, 0x24, 0xde, 0x23, 0xa8, 0x0f, 0x48, 0xa6, 0x30, 0x36, - 0x81, 0xa3, 0xa3, 0xa5, 0xdd, 0x78, 0x6e, 0x4c, 0x2f, 0xfe, 0x6a, 0xc9, 0x5e, 0x89, 0x89, 0xd6, - 0x30, 0xc3, 0xc8, 0x84, 0xad, 0xd6, 0xa8, 0x33, 0xb4, 0xa7, 0x0c, 0x69, 0x8f, 0x83, 0xe3, 0x06, - 0x16, 0x39, 0x13, 0xee, 0xef, 0xca, 0xff, 0x94, 0xe8, 0xe5, 0x11, 0x85, 0xf7, 0x3d, 0xe4, 0xa4, - 0x9f, 0x7c, 0xc7, 0xa0, 0x4f, 0x1e, 0x3c, 0x2e, 0x61, 0x48, 0x2b, 0x6c, 0x7f, 0xf4, 0x03, 0xe4, - 0xa4, 0x31, 0xb1, 0x5e, 0x01, 0x53, 0x5c, 0xda, 0x5a, 0x67, 0x1e, 0x4c, 0x95, 0x3f, 0x2b, 0xb0, - 0x15, 0x8e, 0xf1, 0x34, 0x0a, 0xc6, 0x83, 0x3d, 0x99, 0x41, 0xc9, 0x22, 0x55, 0xa7, 0xdb, 0xf4, - 0x28, 0xbd, 0x7d, 0xa0, 0x60, 0x73, 0xaf, 0x94, 0xe2, 0xaf, 0x57, 0x92, 0x95, 0x9e, 0xfc, 0x3b, - 0x03, 0xea, 0x64, 0x5f, 0x4b, 0x47, 0x7e, 0x00, 0x10, 0x2d, 0x8a, 0x17, 0xf6, 0xd3, 0x65, 0xfa, - 0xa6, 0x1a, 0xe7, 0xf2, 0x32, 0xce, 0x34, 0xc8, 0x3f, 0xc0, 0xd6, 0x0d, 0xb6, 0xd9, 0x9b, 0xf8, - 0xa4, 0x89, 0x2a, 0x4f, 0x1a, 0x4b, 0x85, 0xc1, 0x2f, 0xde, 0x63, 0x94, 0x3d, 0x56, 0x10, 0x85, - 0xfc, 0xf4, 0x14, 0x85, 0x3e, 0x7f, 0x54, 0x51, 0x7c, 0x4a, 0x2b, 0x96, 0x56, 0x15, 0x97, 0x01, - 0x0f, 0x60, 0xfb, 0x2c, 0x1c, 0x2c, 0x62, 0x43, 0xca, 0xe1, 0x2a, 0x13, 0x91, 0xb0, 0x78, 0xb4, - 0xfa, 0xf0, 0x84, 0xee, 0xe6, 0xfb, 0xd4, 0x13, 0xe3, 0x7b, 0xea, 0x8c, 0x8e, 0xfe, 0xa8, 0xc0, - 0xce, 0xa2, 0x47, 0x21, 0x7a, 0xbc, 0x42, 0xf3, 0xef, 0xd2, 0xe2, 0x97, 0x4f, 0x03, 0x49, 0x1f, - 0x46, 0xa0, 0xce, 0xce, 0xf8, 0x68, 0x69, 0x20, 0x4b, 0x5e, 0x12, 0xc5, 0xe3, 0xd5, 0x01, 0xd2, - 0xec, 0xef, 0xa3, 0xcd, 0x3c, 0x79, 0x24, 0xa0, 0xdd, 0x92, 0xf8, 0xcb, 0x53, 0x0a, 0xff, 0xf2, - 0x94, 0xf4, 0xa1, 0xcb, 0xee, 0x97, 0x97, 0x71, 0xfe, 0x81, 0x71, 0xac, 0xa0, 0x4b, 0xd8, 0x38, - 0xc3, 0x0e, 0x75, 0x6c, 0x0b, 0x0f, 0x2e, 0x08, 0xee, 0x2e, 0x55, 0xbb, 0x4a, 0x37, 0xbb, 0x84, - 0xac, 0xec, 0x41, 0x41, 0x28, 0xf1, 0x36, 0x39, 0x05, 0xb9, 0xa6, 0x83, 0x91, 0xc3, 0xb0, 0x77, - 0x1f, 0x48, 0x15, 0x97, 0x18, 0xec, 0xa4, 0xf9, 0xfa, 0x8b, 0x9f, 0x03, 0x00, 0x00, 0xff, 0xff, - 0x69, 0x2d, 0xc1, 0x24, 0x09, 0x13, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// AttesterServiceClient is the client API for AttesterService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type AttesterServiceClient interface { - RequestAttestation(ctx context.Context, in *AttestationRequest, opts ...grpc.CallOption) (*v1alpha1.AttestationData, error) - SubmitAttestation(ctx context.Context, in *v1alpha1.Attestation, opts ...grpc.CallOption) (*AttestResponse, error) -} - -type attesterServiceClient struct { - cc *grpc.ClientConn -} - -func NewAttesterServiceClient(cc *grpc.ClientConn) AttesterServiceClient { - return &attesterServiceClient{cc} -} - -func (c *attesterServiceClient) RequestAttestation(ctx context.Context, in *AttestationRequest, opts ...grpc.CallOption) (*v1alpha1.AttestationData, error) { - out := new(v1alpha1.AttestationData) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.AttesterService/RequestAttestation", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *attesterServiceClient) SubmitAttestation(ctx context.Context, in *v1alpha1.Attestation, opts ...grpc.CallOption) (*AttestResponse, error) { - out := new(AttestResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.AttesterService/SubmitAttestation", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AttesterServiceServer is the server API for AttesterService service. -type AttesterServiceServer interface { - RequestAttestation(context.Context, *AttestationRequest) (*v1alpha1.AttestationData, error) - SubmitAttestation(context.Context, *v1alpha1.Attestation) (*AttestResponse, error) -} - -// UnimplementedAttesterServiceServer can be embedded to have forward compatible implementations. -type UnimplementedAttesterServiceServer struct { -} - -func (*UnimplementedAttesterServiceServer) RequestAttestation(ctx context.Context, req *AttestationRequest) (*v1alpha1.AttestationData, error) { - return nil, status.Errorf(codes.Unimplemented, "method RequestAttestation not implemented") -} -func (*UnimplementedAttesterServiceServer) SubmitAttestation(ctx context.Context, req *v1alpha1.Attestation) (*AttestResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SubmitAttestation not implemented") -} - -func RegisterAttesterServiceServer(s *grpc.Server, srv AttesterServiceServer) { - s.RegisterService(&_AttesterService_serviceDesc, srv) -} - -func _AttesterService_RequestAttestation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AttestationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AttesterServiceServer).RequestAttestation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.AttesterService/RequestAttestation", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AttesterServiceServer).RequestAttestation(ctx, req.(*AttestationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AttesterService_SubmitAttestation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1alpha1.Attestation) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AttesterServiceServer).SubmitAttestation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.AttesterService/SubmitAttestation", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AttesterServiceServer).SubmitAttestation(ctx, req.(*v1alpha1.Attestation)) - } - return interceptor(ctx, in, info, handler) -} - -var _AttesterService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "ethereum.beacon.rpc.v1.AttesterService", - HandlerType: (*AttesterServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "RequestAttestation", - Handler: _AttesterService_RequestAttestation_Handler, - }, - { - MethodName: "SubmitAttestation", - Handler: _AttesterService_SubmitAttestation_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "proto/beacon/rpc/v1/services.proto", -} - -// ProposerServiceClient is the client API for ProposerService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ProposerServiceClient interface { - RequestBlock(ctx context.Context, in *BlockRequest, opts ...grpc.CallOption) (*v1alpha1.BeaconBlock, error) - ProposeBlock(ctx context.Context, in *v1alpha1.BeaconBlock, opts ...grpc.CallOption) (*ProposeResponse, error) -} - -type proposerServiceClient struct { - cc *grpc.ClientConn -} - -func NewProposerServiceClient(cc *grpc.ClientConn) ProposerServiceClient { - return &proposerServiceClient{cc} -} - -func (c *proposerServiceClient) RequestBlock(ctx context.Context, in *BlockRequest, opts ...grpc.CallOption) (*v1alpha1.BeaconBlock, error) { - out := new(v1alpha1.BeaconBlock) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ProposerService/RequestBlock", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *proposerServiceClient) ProposeBlock(ctx context.Context, in *v1alpha1.BeaconBlock, opts ...grpc.CallOption) (*ProposeResponse, error) { - out := new(ProposeResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ProposerService/ProposeBlock", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ProposerServiceServer is the server API for ProposerService service. -type ProposerServiceServer interface { - RequestBlock(context.Context, *BlockRequest) (*v1alpha1.BeaconBlock, error) - ProposeBlock(context.Context, *v1alpha1.BeaconBlock) (*ProposeResponse, error) -} - -// UnimplementedProposerServiceServer can be embedded to have forward compatible implementations. -type UnimplementedProposerServiceServer struct { -} - -func (*UnimplementedProposerServiceServer) RequestBlock(ctx context.Context, req *BlockRequest) (*v1alpha1.BeaconBlock, error) { - return nil, status.Errorf(codes.Unimplemented, "method RequestBlock not implemented") -} -func (*UnimplementedProposerServiceServer) ProposeBlock(ctx context.Context, req *v1alpha1.BeaconBlock) (*ProposeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProposeBlock not implemented") -} - -func RegisterProposerServiceServer(s *grpc.Server, srv ProposerServiceServer) { - s.RegisterService(&_ProposerService_serviceDesc, srv) -} - -func _ProposerService_RequestBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BlockRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProposerServiceServer).RequestBlock(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ProposerService/RequestBlock", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProposerServiceServer).RequestBlock(ctx, req.(*BlockRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ProposerService_ProposeBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1alpha1.BeaconBlock) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ProposerServiceServer).ProposeBlock(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ProposerService/ProposeBlock", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProposerServiceServer).ProposeBlock(ctx, req.(*v1alpha1.BeaconBlock)) - } - return interceptor(ctx, in, info, handler) -} - -var _ProposerService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "ethereum.beacon.rpc.v1.ProposerService", - HandlerType: (*ProposerServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "RequestBlock", - Handler: _ProposerService_RequestBlock_Handler, - }, - { - MethodName: "ProposeBlock", - Handler: _ProposerService_ProposeBlock_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "proto/beacon/rpc/v1/services.proto", -} - -// AggregatorServiceClient is the client API for AggregatorService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type AggregatorServiceClient interface { - SubmitAggregateAndProof(ctx context.Context, in *AggregationRequest, opts ...grpc.CallOption) (*AggregationResponse, error) -} - -type aggregatorServiceClient struct { - cc *grpc.ClientConn -} - -func NewAggregatorServiceClient(cc *grpc.ClientConn) AggregatorServiceClient { - return &aggregatorServiceClient{cc} -} - -func (c *aggregatorServiceClient) SubmitAggregateAndProof(ctx context.Context, in *AggregationRequest, opts ...grpc.CallOption) (*AggregationResponse, error) { - out := new(AggregationResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.AggregatorService/SubmitAggregateAndProof", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AggregatorServiceServer is the server API for AggregatorService service. -type AggregatorServiceServer interface { - SubmitAggregateAndProof(context.Context, *AggregationRequest) (*AggregationResponse, error) -} - -// UnimplementedAggregatorServiceServer can be embedded to have forward compatible implementations. -type UnimplementedAggregatorServiceServer struct { -} - -func (*UnimplementedAggregatorServiceServer) SubmitAggregateAndProof(ctx context.Context, req *AggregationRequest) (*AggregationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SubmitAggregateAndProof not implemented") -} - func RegisterAggregatorServiceServer(s *grpc.Server, srv AggregatorServiceServer) { s.RegisterService(&_AggregatorService_serviceDesc, srv) } @@ -1763,454 +366,3 @@ var _AggregatorService_serviceDesc = grpc.ServiceDesc{ Streams: []grpc.StreamDesc{}, Metadata: "proto/beacon/rpc/v1/services.proto", } - -// ValidatorServiceClient is the client API for ValidatorService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ValidatorServiceClient interface { - DomainData(ctx context.Context, in *DomainRequest, opts ...grpc.CallOption) (*DomainResponse, error) - WaitForActivation(ctx context.Context, in *ValidatorActivationRequest, opts ...grpc.CallOption) (ValidatorService_WaitForActivationClient, error) - ValidatorIndex(ctx context.Context, in *ValidatorIndexRequest, opts ...grpc.CallOption) (*ValidatorIndexResponse, error) - CommitteeAssignment(ctx context.Context, in *AssignmentRequest, opts ...grpc.CallOption) (*AssignmentResponse, error) - ValidatorStatus(ctx context.Context, in *ValidatorIndexRequest, opts ...grpc.CallOption) (*ValidatorStatusResponse, error) - ValidatorPerformance(ctx context.Context, in *ValidatorPerformanceRequest, opts ...grpc.CallOption) (*ValidatorPerformanceResponse, error) - ExitedValidators(ctx context.Context, in *ExitedValidatorsRequest, opts ...grpc.CallOption) (*ExitedValidatorsResponse, error) - WaitForChainStart(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (ValidatorService_WaitForChainStartClient, error) - CanonicalHead(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*v1alpha1.BeaconBlock, error) - ProposeExit(ctx context.Context, in *v1alpha1.VoluntaryExit, opts ...grpc.CallOption) (*empty.Empty, error) -} - -type validatorServiceClient struct { - cc *grpc.ClientConn -} - -func NewValidatorServiceClient(cc *grpc.ClientConn) ValidatorServiceClient { - return &validatorServiceClient{cc} -} - -func (c *validatorServiceClient) DomainData(ctx context.Context, in *DomainRequest, opts ...grpc.CallOption) (*DomainResponse, error) { - out := new(DomainResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/DomainData", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *validatorServiceClient) WaitForActivation(ctx context.Context, in *ValidatorActivationRequest, opts ...grpc.CallOption) (ValidatorService_WaitForActivationClient, error) { - stream, err := c.cc.NewStream(ctx, &_ValidatorService_serviceDesc.Streams[0], "/ethereum.beacon.rpc.v1.ValidatorService/WaitForActivation", opts...) - if err != nil { - return nil, err - } - x := &validatorServiceWaitForActivationClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ValidatorService_WaitForActivationClient interface { - Recv() (*ValidatorActivationResponse, error) - grpc.ClientStream -} - -type validatorServiceWaitForActivationClient struct { - grpc.ClientStream -} - -func (x *validatorServiceWaitForActivationClient) Recv() (*ValidatorActivationResponse, error) { - m := new(ValidatorActivationResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *validatorServiceClient) ValidatorIndex(ctx context.Context, in *ValidatorIndexRequest, opts ...grpc.CallOption) (*ValidatorIndexResponse, error) { - out := new(ValidatorIndexResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/ValidatorIndex", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *validatorServiceClient) CommitteeAssignment(ctx context.Context, in *AssignmentRequest, opts ...grpc.CallOption) (*AssignmentResponse, error) { - out := new(AssignmentResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/CommitteeAssignment", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *validatorServiceClient) ValidatorStatus(ctx context.Context, in *ValidatorIndexRequest, opts ...grpc.CallOption) (*ValidatorStatusResponse, error) { - out := new(ValidatorStatusResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/ValidatorStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *validatorServiceClient) ValidatorPerformance(ctx context.Context, in *ValidatorPerformanceRequest, opts ...grpc.CallOption) (*ValidatorPerformanceResponse, error) { - out := new(ValidatorPerformanceResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/ValidatorPerformance", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *validatorServiceClient) ExitedValidators(ctx context.Context, in *ExitedValidatorsRequest, opts ...grpc.CallOption) (*ExitedValidatorsResponse, error) { - out := new(ExitedValidatorsResponse) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/ExitedValidators", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *validatorServiceClient) WaitForChainStart(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (ValidatorService_WaitForChainStartClient, error) { - stream, err := c.cc.NewStream(ctx, &_ValidatorService_serviceDesc.Streams[1], "/ethereum.beacon.rpc.v1.ValidatorService/WaitForChainStart", opts...) - if err != nil { - return nil, err - } - x := &validatorServiceWaitForChainStartClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ValidatorService_WaitForChainStartClient interface { - Recv() (*ChainStartResponse, error) - grpc.ClientStream -} - -type validatorServiceWaitForChainStartClient struct { - grpc.ClientStream -} - -func (x *validatorServiceWaitForChainStartClient) Recv() (*ChainStartResponse, error) { - m := new(ChainStartResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *validatorServiceClient) CanonicalHead(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*v1alpha1.BeaconBlock, error) { - out := new(v1alpha1.BeaconBlock) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/CanonicalHead", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *validatorServiceClient) ProposeExit(ctx context.Context, in *v1alpha1.VoluntaryExit, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/ProposeExit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ValidatorServiceServer is the server API for ValidatorService service. -type ValidatorServiceServer interface { - DomainData(context.Context, *DomainRequest) (*DomainResponse, error) - WaitForActivation(*ValidatorActivationRequest, ValidatorService_WaitForActivationServer) error - ValidatorIndex(context.Context, *ValidatorIndexRequest) (*ValidatorIndexResponse, error) - CommitteeAssignment(context.Context, *AssignmentRequest) (*AssignmentResponse, error) - ValidatorStatus(context.Context, *ValidatorIndexRequest) (*ValidatorStatusResponse, error) - ValidatorPerformance(context.Context, *ValidatorPerformanceRequest) (*ValidatorPerformanceResponse, error) - ExitedValidators(context.Context, *ExitedValidatorsRequest) (*ExitedValidatorsResponse, error) - WaitForChainStart(*empty.Empty, ValidatorService_WaitForChainStartServer) error - CanonicalHead(context.Context, *empty.Empty) (*v1alpha1.BeaconBlock, error) - ProposeExit(context.Context, *v1alpha1.VoluntaryExit) (*empty.Empty, error) -} - -// UnimplementedValidatorServiceServer can be embedded to have forward compatible implementations. -type UnimplementedValidatorServiceServer struct { -} - -func (*UnimplementedValidatorServiceServer) DomainData(ctx context.Context, req *DomainRequest) (*DomainResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DomainData not implemented") -} -func (*UnimplementedValidatorServiceServer) WaitForActivation(req *ValidatorActivationRequest, srv ValidatorService_WaitForActivationServer) error { - return status.Errorf(codes.Unimplemented, "method WaitForActivation not implemented") -} -func (*UnimplementedValidatorServiceServer) ValidatorIndex(ctx context.Context, req *ValidatorIndexRequest) (*ValidatorIndexResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ValidatorIndex not implemented") -} -func (*UnimplementedValidatorServiceServer) CommitteeAssignment(ctx context.Context, req *AssignmentRequest) (*AssignmentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CommitteeAssignment not implemented") -} -func (*UnimplementedValidatorServiceServer) ValidatorStatus(ctx context.Context, req *ValidatorIndexRequest) (*ValidatorStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ValidatorStatus not implemented") -} -func (*UnimplementedValidatorServiceServer) ValidatorPerformance(ctx context.Context, req *ValidatorPerformanceRequest) (*ValidatorPerformanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ValidatorPerformance not implemented") -} -func (*UnimplementedValidatorServiceServer) ExitedValidators(ctx context.Context, req *ExitedValidatorsRequest) (*ExitedValidatorsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ExitedValidators not implemented") -} -func (*UnimplementedValidatorServiceServer) WaitForChainStart(req *empty.Empty, srv ValidatorService_WaitForChainStartServer) error { - return status.Errorf(codes.Unimplemented, "method WaitForChainStart not implemented") -} -func (*UnimplementedValidatorServiceServer) CanonicalHead(ctx context.Context, req *empty.Empty) (*v1alpha1.BeaconBlock, error) { - return nil, status.Errorf(codes.Unimplemented, "method CanonicalHead not implemented") -} -func (*UnimplementedValidatorServiceServer) ProposeExit(ctx context.Context, req *v1alpha1.VoluntaryExit) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProposeExit not implemented") -} - -func RegisterValidatorServiceServer(s *grpc.Server, srv ValidatorServiceServer) { - s.RegisterService(&_ValidatorService_serviceDesc, srv) -} - -func _ValidatorService_DomainData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DomainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).DomainData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/DomainData", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).DomainData(ctx, req.(*DomainRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ValidatorService_WaitForActivation_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ValidatorActivationRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ValidatorServiceServer).WaitForActivation(m, &validatorServiceWaitForActivationServer{stream}) -} - -type ValidatorService_WaitForActivationServer interface { - Send(*ValidatorActivationResponse) error - grpc.ServerStream -} - -type validatorServiceWaitForActivationServer struct { - grpc.ServerStream -} - -func (x *validatorServiceWaitForActivationServer) Send(m *ValidatorActivationResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _ValidatorService_ValidatorIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidatorIndexRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).ValidatorIndex(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/ValidatorIndex", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).ValidatorIndex(ctx, req.(*ValidatorIndexRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ValidatorService_CommitteeAssignment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AssignmentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).CommitteeAssignment(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/CommitteeAssignment", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).CommitteeAssignment(ctx, req.(*AssignmentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ValidatorService_ValidatorStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidatorIndexRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).ValidatorStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/ValidatorStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).ValidatorStatus(ctx, req.(*ValidatorIndexRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ValidatorService_ValidatorPerformance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidatorPerformanceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).ValidatorPerformance(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/ValidatorPerformance", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).ValidatorPerformance(ctx, req.(*ValidatorPerformanceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ValidatorService_ExitedValidators_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExitedValidatorsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).ExitedValidators(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/ExitedValidators", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).ExitedValidators(ctx, req.(*ExitedValidatorsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ValidatorService_WaitForChainStart_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(empty.Empty) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ValidatorServiceServer).WaitForChainStart(m, &validatorServiceWaitForChainStartServer{stream}) -} - -type ValidatorService_WaitForChainStartServer interface { - Send(*ChainStartResponse) error - grpc.ServerStream -} - -type validatorServiceWaitForChainStartServer struct { - grpc.ServerStream -} - -func (x *validatorServiceWaitForChainStartServer) Send(m *ChainStartResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _ValidatorService_CanonicalHead_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).CanonicalHead(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/CanonicalHead", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).CanonicalHead(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ValidatorService_ProposeExit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(v1alpha1.VoluntaryExit) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ValidatorServiceServer).ProposeExit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/ProposeExit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ValidatorServiceServer).ProposeExit(ctx, req.(*v1alpha1.VoluntaryExit)) - } - return interceptor(ctx, in, info, handler) -} - -var _ValidatorService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "ethereum.beacon.rpc.v1.ValidatorService", - HandlerType: (*ValidatorServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "DomainData", - Handler: _ValidatorService_DomainData_Handler, - }, - { - MethodName: "ValidatorIndex", - Handler: _ValidatorService_ValidatorIndex_Handler, - }, - { - MethodName: "CommitteeAssignment", - Handler: _ValidatorService_CommitteeAssignment_Handler, - }, - { - MethodName: "ValidatorStatus", - Handler: _ValidatorService_ValidatorStatus_Handler, - }, - { - MethodName: "ValidatorPerformance", - Handler: _ValidatorService_ValidatorPerformance_Handler, - }, - { - MethodName: "ExitedValidators", - Handler: _ValidatorService_ExitedValidators_Handler, - }, - { - MethodName: "CanonicalHead", - Handler: _ValidatorService_CanonicalHead_Handler, - }, - { - MethodName: "ProposeExit", - Handler: _ValidatorService_ProposeExit_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "WaitForActivation", - Handler: _ValidatorService_WaitForActivation_Handler, - ServerStreams: true, - }, - { - StreamName: "WaitForChainStart", - Handler: _ValidatorService_WaitForChainStart_Handler, - ServerStreams: true, - }, - }, - Metadata: "proto/beacon/rpc/v1/services.proto", -} diff --git a/proto/faucet/faucet.pb.go b/proto/faucet/faucet.pb.go index a6a95035e03..e2319385204 100755 --- a/proto/faucet/faucet.pb.go +++ b/proto/faucet/faucet.pb.go @@ -725,6 +725,7 @@ func (m *FundingResponse) Unmarshal(dAtA []byte) error { func skipFaucet(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -756,10 +757,8 @@ func skipFaucet(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -780,55 +779,30 @@ func skipFaucet(dAtA []byte) (n int, err error) { return 0, ErrInvalidLengthFaucet } iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthFaucet - } - return iNdEx, nil case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowFaucet - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipFaucet(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthFaucet - } - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupFaucet + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthFaucet + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthFaucet = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowFaucet = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthFaucet = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowFaucet = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupFaucet = fmt.Errorf("proto: unexpected end of group") ) diff --git a/proto/testing/test.pb.go b/proto/testing/test.pb.go index 3fac2cfcde9..7c91c458aa0 100755 --- a/proto/testing/test.pb.go +++ b/proto/testing/test.pb.go @@ -1856,6 +1856,7 @@ func (m *TestSimpleMessage) Unmarshal(dAtA []byte) error { func skipTest(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1887,10 +1888,8 @@ func skipTest(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1911,55 +1910,30 @@ func skipTest(dAtA []byte) (n int, err error) { return 0, ErrInvalidLengthTest } iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthTest - } - return iNdEx, nil case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTest - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipTest(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthTest - } - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTest + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthTest + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthTest = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTest = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthTest = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTest = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTest = fmt.Errorf("proto: unexpected end of group") ) diff --git a/tools/cluster-pk-manager/server/BUILD.bazel b/tools/cluster-pk-manager/server/BUILD.bazel index f9f95b45f2d..9953bd0697a 100644 --- a/tools/cluster-pk-manager/server/BUILD.bazel +++ b/tools/cluster-pk-manager/server/BUILD.bazel @@ -18,7 +18,6 @@ go_library( visibility = ["//visibility:private"], deps = [ "//contracts/deposit-contract:go_default_library", - "//proto/beacon/rpc/v1:go_default_library", "//proto/cluster:go_default_library", "//shared/bls:go_default_library", "//shared/bytesutil:go_default_library", diff --git a/tools/cluster-pk-manager/server/keyChecker.go b/tools/cluster-pk-manager/server/keyChecker.go index 70986176f7c..a60cfb5a7cc 100644 --- a/tools/cluster-pk-manager/server/keyChecker.go +++ b/tools/cluster-pk-manager/server/keyChecker.go @@ -1,70 +1,25 @@ package main import ( - "context" - "fmt" "time" - - pbBeacon "github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1" - "github.com/prysmaticlabs/prysm/shared/bytesutil" - "go.opencensus.io/plugin/ocgrpc" - "google.golang.org/grpc" ) var keyInterval = 3 * time.Minute type keyChecker struct { db *db - client pbBeacon.ValidatorServiceClient } func newkeyChecker(db *db, beaconRPCAddr string) *keyChecker { - // connect to the beacon node - dialOpt := grpc.WithInsecure() - conn, err := grpc.DialContext(context.Background(), beaconRPCAddr, dialOpt, grpc.WithStatsHandler(&ocgrpc.ClientHandler{})) - if err != nil { - log.Errorf("Could not dial endpoint: %s, %v", beaconRPCAddr, err) - } - valClient := pbBeacon.NewValidatorServiceClient(conn) + log.Warn("Key checker temporarily disabled during refactor.") return &keyChecker{ db: db, - client: valClient, } } func (k *keyChecker) checkKeys() error { - pubkeys, keyMap, err := k.db.KeyMap() - if err != nil { - return err - } - - log.Debug("Requesting EXITED keys") - - req := &pbBeacon.ExitedValidatorsRequest{ - PublicKeys: pubkeys, - } - - ctx, cancel := context.WithTimeout(context.Background(), keyInterval) - defer cancel() - resp, err := k.client.ExitedValidators(ctx, req) - if err != nil { - return err - } - - log.WithField( - "resp_keys", len(resp.PublicKeys), - ).WithField( - "req_keys", len(req.PublicKeys), - ).Debug("Received EXITED key list") - - for _, key := range resp.PublicKeys { - log.WithField("key", fmt.Sprintf("%#x", key)).Debug("Removing EXITED key") - kMap := keyMap[bytesutil.ToBytes48(key)] - if err := k.db.RemovePKFromPod(kMap.podName, kMap.privateKey); err != nil { - return err - } - } + log.Warn("Not checking for EXITED validator keys.") return nil } diff --git a/validator/internal/BUILD.bazel b/validator/internal/BUILD.bazel index a8318810677..c30f9528edf 100644 --- a/validator/internal/BUILD.bazel +++ b/validator/internal/BUILD.bazel @@ -7,7 +7,6 @@ go_library( "aggregator_service_mock.go", "beacon_node_validator_service_mock.go", "node_mock.go", - "validator_service_mock.go", ], importpath = "github.com/prysmaticlabs/prysm/validator/internal", visibility = ["//validator:__subpackages__"], diff --git a/validator/internal/validator_service_mock.go b/validator/internal/validator_service_mock.go deleted file mode 100644 index bbce828b9d4..00000000000 --- a/validator/internal/validator_service_mock.go +++ /dev/null @@ -1,486 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1 (interfaces: ValidatorServiceClient,ValidatorService_WaitForActivationClient,ValidatorService_WaitForChainStartClient) - -// Package internal is a generated GoMock package. -package internal - -import ( - context "context" - reflect "reflect" - - types "github.com/gogo/protobuf/types" - gomock "github.com/golang/mock/gomock" - v1alpha1 "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1" - v1 "github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1" - grpc "google.golang.org/grpc" - metadata "google.golang.org/grpc/metadata" -) - -// MockValidatorServiceClient is a mock of ValidatorServiceClient interface -type MockValidatorServiceClient struct { - ctrl *gomock.Controller - recorder *MockValidatorServiceClientMockRecorder -} - -// MockValidatorServiceClientMockRecorder is the mock recorder for MockValidatorServiceClient -type MockValidatorServiceClientMockRecorder struct { - mock *MockValidatorServiceClient -} - -// NewMockValidatorServiceClient creates a new mock instance -func NewMockValidatorServiceClient(ctrl *gomock.Controller) *MockValidatorServiceClient { - mock := &MockValidatorServiceClient{ctrl: ctrl} - mock.recorder = &MockValidatorServiceClientMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockValidatorServiceClient) EXPECT() *MockValidatorServiceClientMockRecorder { - return m.recorder -} - -// CanonicalHead mocks base method -func (m *MockValidatorServiceClient) CanonicalHead(arg0 context.Context, arg1 *types.Empty, arg2 ...grpc.CallOption) (*v1alpha1.BeaconBlock, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "CanonicalHead", varargs...) - ret0, _ := ret[0].(*v1alpha1.BeaconBlock) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CanonicalHead indicates an expected call of CanonicalHead -func (mr *MockValidatorServiceClientMockRecorder) CanonicalHead(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CanonicalHead", reflect.TypeOf((*MockValidatorServiceClient)(nil).CanonicalHead), varargs...) -} - -// CommitteeAssignment mocks base method -func (m *MockValidatorServiceClient) CommitteeAssignment(arg0 context.Context, arg1 *v1.AssignmentRequest, arg2 ...grpc.CallOption) (*v1.AssignmentResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "CommitteeAssignment", varargs...) - ret0, _ := ret[0].(*v1.AssignmentResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CommitteeAssignment indicates an expected call of CommitteeAssignment -func (mr *MockValidatorServiceClientMockRecorder) CommitteeAssignment(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitteeAssignment", reflect.TypeOf((*MockValidatorServiceClient)(nil).CommitteeAssignment), varargs...) -} - -// DomainData mocks base method -func (m *MockValidatorServiceClient) DomainData(arg0 context.Context, arg1 *v1.DomainRequest, arg2 ...grpc.CallOption) (*v1.DomainResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "DomainData", varargs...) - ret0, _ := ret[0].(*v1.DomainResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// DomainData indicates an expected call of DomainData -func (mr *MockValidatorServiceClientMockRecorder) DomainData(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DomainData", reflect.TypeOf((*MockValidatorServiceClient)(nil).DomainData), varargs...) -} - -// ExitedValidators mocks base method -func (m *MockValidatorServiceClient) ExitedValidators(arg0 context.Context, arg1 *v1.ExitedValidatorsRequest, arg2 ...grpc.CallOption) (*v1.ExitedValidatorsResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ExitedValidators", varargs...) - ret0, _ := ret[0].(*v1.ExitedValidatorsResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ExitedValidators indicates an expected call of ExitedValidators -func (mr *MockValidatorServiceClientMockRecorder) ExitedValidators(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExitedValidators", reflect.TypeOf((*MockValidatorServiceClient)(nil).ExitedValidators), varargs...) -} - -// ValidatorIndex mocks base method -func (m *MockValidatorServiceClient) ValidatorIndex(arg0 context.Context, arg1 *v1.ValidatorIndexRequest, arg2 ...grpc.CallOption) (*v1.ValidatorIndexResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ValidatorIndex", varargs...) - ret0, _ := ret[0].(*v1.ValidatorIndexResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ValidatorIndex indicates an expected call of ValidatorIndex -func (mr *MockValidatorServiceClientMockRecorder) ValidatorIndex(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorIndex", reflect.TypeOf((*MockValidatorServiceClient)(nil).ValidatorIndex), varargs...) -} - -// ValidatorPerformance mocks base method -func (m *MockValidatorServiceClient) ValidatorPerformance(arg0 context.Context, arg1 *v1.ValidatorPerformanceRequest, arg2 ...grpc.CallOption) (*v1.ValidatorPerformanceResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ValidatorPerformance", varargs...) - ret0, _ := ret[0].(*v1.ValidatorPerformanceResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ValidatorPerformance indicates an expected call of ValidatorPerformance -func (mr *MockValidatorServiceClientMockRecorder) ValidatorPerformance(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorPerformance", reflect.TypeOf((*MockValidatorServiceClient)(nil).ValidatorPerformance), varargs...) -} - -// ValidatorStatus mocks base method -func (m *MockValidatorServiceClient) ValidatorStatus(arg0 context.Context, arg1 *v1.ValidatorIndexRequest, arg2 ...grpc.CallOption) (*v1.ValidatorStatusResponse, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ValidatorStatus", varargs...) - ret0, _ := ret[0].(*v1.ValidatorStatusResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ValidatorStatus indicates an expected call of ValidatorStatus -func (mr *MockValidatorServiceClientMockRecorder) ValidatorStatus(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorStatus", reflect.TypeOf((*MockValidatorServiceClient)(nil).ValidatorStatus), varargs...) -} - -// ProposeExit mocks base method -func (m *MockValidatorServiceClient) ProposeExit(arg0 context.Context, arg1 *v1alpha1.VoluntaryExit, arg2 ...grpc.CallOption) (*types.Empty, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ProposeExit", varargs) - ret0, _ := ret[0].(*types.Empty) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ProposeExit indicates an expected call of ProposeExit -func (mr *MockValidatorServiceClientMockRecorder) ProposeExit(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProposeExit", reflect.TypeOf((*MockValidatorServiceClient)(nil).ProposeExit), varargs...) -} - -// WaitForActivation mocks base method -func (m *MockValidatorServiceClient) WaitForActivation(arg0 context.Context, arg1 *v1.ValidatorActivationRequest, arg2 ...grpc.CallOption) (v1.ValidatorService_WaitForActivationClient, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WaitForActivation", varargs...) - ret0, _ := ret[0].(v1.ValidatorService_WaitForActivationClient) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WaitForActivation indicates an expected call of WaitForActivation -func (mr *MockValidatorServiceClientMockRecorder) WaitForActivation(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForActivation", reflect.TypeOf((*MockValidatorServiceClient)(nil).WaitForActivation), varargs...) -} - -// WaitForChainStart mocks base method -func (m *MockValidatorServiceClient) WaitForChainStart(arg0 context.Context, arg1 *types.Empty, arg2 ...grpc.CallOption) (v1.ValidatorService_WaitForChainStartClient, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1} - for _, a := range arg2 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WaitForChainStart", varargs...) - ret0, _ := ret[0].(v1.ValidatorService_WaitForChainStartClient) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WaitForChainStart indicates an expected call of WaitForChainStart -func (mr *MockValidatorServiceClientMockRecorder) WaitForChainStart(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1}, arg2...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForChainStart", reflect.TypeOf((*MockValidatorServiceClient)(nil).WaitForChainStart), varargs...) -} - -// MockValidatorService_WaitForActivationClient is a mock of ValidatorService_WaitForActivationClient interface -type MockValidatorService_WaitForActivationClient struct { - ctrl *gomock.Controller - recorder *MockValidatorService_WaitForActivationClientMockRecorder -} - -// MockValidatorService_WaitForActivationClientMockRecorder is the mock recorder for MockValidatorService_WaitForActivationClient -type MockValidatorService_WaitForActivationClientMockRecorder struct { - mock *MockValidatorService_WaitForActivationClient -} - -// NewMockValidatorService_WaitForActivationClient creates a new mock instance -func NewMockValidatorService_WaitForActivationClient(ctrl *gomock.Controller) *MockValidatorService_WaitForActivationClient { - mock := &MockValidatorService_WaitForActivationClient{ctrl: ctrl} - mock.recorder = &MockValidatorService_WaitForActivationClientMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockValidatorService_WaitForActivationClient) EXPECT() *MockValidatorService_WaitForActivationClientMockRecorder { - return m.recorder -} - -// CloseSend mocks base method -func (m *MockValidatorService_WaitForActivationClient) CloseSend() error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CloseSend") - ret0, _ := ret[0].(error) - return ret0 -} - -// CloseSend indicates an expected call of CloseSend -func (mr *MockValidatorService_WaitForActivationClientMockRecorder) CloseSend() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseSend", reflect.TypeOf((*MockValidatorService_WaitForActivationClient)(nil).CloseSend)) -} - -// Context mocks base method -func (m *MockValidatorService_WaitForActivationClient) Context() context.Context { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Context") - ret0, _ := ret[0].(context.Context) - return ret0 -} - -// Context indicates an expected call of Context -func (mr *MockValidatorService_WaitForActivationClientMockRecorder) Context() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockValidatorService_WaitForActivationClient)(nil).Context)) -} - -// Header mocks base method -func (m *MockValidatorService_WaitForActivationClient) Header() (metadata.MD, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Header") - ret0, _ := ret[0].(metadata.MD) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Header indicates an expected call of Header -func (mr *MockValidatorService_WaitForActivationClientMockRecorder) Header() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Header", reflect.TypeOf((*MockValidatorService_WaitForActivationClient)(nil).Header)) -} - -// Recv mocks base method -func (m *MockValidatorService_WaitForActivationClient) Recv() (*v1.ValidatorActivationResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Recv") - ret0, _ := ret[0].(*v1.ValidatorActivationResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Recv indicates an expected call of Recv -func (mr *MockValidatorService_WaitForActivationClientMockRecorder) Recv() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockValidatorService_WaitForActivationClient)(nil).Recv)) -} - -// RecvMsg mocks base method -func (m *MockValidatorService_WaitForActivationClient) RecvMsg(arg0 interface{}) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RecvMsg", arg0) - ret0, _ := ret[0].(error) - return ret0 -} - -// RecvMsg indicates an expected call of RecvMsg -func (mr *MockValidatorService_WaitForActivationClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockValidatorService_WaitForActivationClient)(nil).RecvMsg), arg0) -} - -// SendMsg mocks base method -func (m *MockValidatorService_WaitForActivationClient) SendMsg(arg0 interface{}) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SendMsg", arg0) - ret0, _ := ret[0].(error) - return ret0 -} - -// SendMsg indicates an expected call of SendMsg -func (mr *MockValidatorService_WaitForActivationClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockValidatorService_WaitForActivationClient)(nil).SendMsg), arg0) -} - -// Trailer mocks base method -func (m *MockValidatorService_WaitForActivationClient) Trailer() metadata.MD { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Trailer") - ret0, _ := ret[0].(metadata.MD) - return ret0 -} - -// Trailer indicates an expected call of Trailer -func (mr *MockValidatorService_WaitForActivationClientMockRecorder) Trailer() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Trailer", reflect.TypeOf((*MockValidatorService_WaitForActivationClient)(nil).Trailer)) -} - -// MockValidatorService_WaitForChainStartClient is a mock of ValidatorService_WaitForChainStartClient interface -type MockValidatorService_WaitForChainStartClient struct { - ctrl *gomock.Controller - recorder *MockValidatorService_WaitForChainStartClientMockRecorder -} - -// MockValidatorService_WaitForChainStartClientMockRecorder is the mock recorder for MockValidatorService_WaitForChainStartClient -type MockValidatorService_WaitForChainStartClientMockRecorder struct { - mock *MockValidatorService_WaitForChainStartClient -} - -// NewMockValidatorService_WaitForChainStartClient creates a new mock instance -func NewMockValidatorService_WaitForChainStartClient(ctrl *gomock.Controller) *MockValidatorService_WaitForChainStartClient { - mock := &MockValidatorService_WaitForChainStartClient{ctrl: ctrl} - mock.recorder = &MockValidatorService_WaitForChainStartClientMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockValidatorService_WaitForChainStartClient) EXPECT() *MockValidatorService_WaitForChainStartClientMockRecorder { - return m.recorder -} - -// CloseSend mocks base method -func (m *MockValidatorService_WaitForChainStartClient) CloseSend() error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CloseSend") - ret0, _ := ret[0].(error) - return ret0 -} - -// CloseSend indicates an expected call of CloseSend -func (mr *MockValidatorService_WaitForChainStartClientMockRecorder) CloseSend() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseSend", reflect.TypeOf((*MockValidatorService_WaitForChainStartClient)(nil).CloseSend)) -} - -// Context mocks base method -func (m *MockValidatorService_WaitForChainStartClient) Context() context.Context { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Context") - ret0, _ := ret[0].(context.Context) - return ret0 -} - -// Context indicates an expected call of Context -func (mr *MockValidatorService_WaitForChainStartClientMockRecorder) Context() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockValidatorService_WaitForChainStartClient)(nil).Context)) -} - -// Header mocks base method -func (m *MockValidatorService_WaitForChainStartClient) Header() (metadata.MD, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Header") - ret0, _ := ret[0].(metadata.MD) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Header indicates an expected call of Header -func (mr *MockValidatorService_WaitForChainStartClientMockRecorder) Header() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Header", reflect.TypeOf((*MockValidatorService_WaitForChainStartClient)(nil).Header)) -} - -// Recv mocks base method -func (m *MockValidatorService_WaitForChainStartClient) Recv() (*v1.ChainStartResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Recv") - ret0, _ := ret[0].(*v1.ChainStartResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Recv indicates an expected call of Recv -func (mr *MockValidatorService_WaitForChainStartClientMockRecorder) Recv() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockValidatorService_WaitForChainStartClient)(nil).Recv)) -} - -// RecvMsg mocks base method -func (m *MockValidatorService_WaitForChainStartClient) RecvMsg(arg0 interface{}) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RecvMsg", arg0) - ret0, _ := ret[0].(error) - return ret0 -} - -// RecvMsg indicates an expected call of RecvMsg -func (mr *MockValidatorService_WaitForChainStartClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockValidatorService_WaitForChainStartClient)(nil).RecvMsg), arg0) -} - -// SendMsg mocks base method -func (m *MockValidatorService_WaitForChainStartClient) SendMsg(arg0 interface{}) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SendMsg", arg0) - ret0, _ := ret[0].(error) - return ret0 -} - -// SendMsg indicates an expected call of SendMsg -func (mr *MockValidatorService_WaitForChainStartClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockValidatorService_WaitForChainStartClient)(nil).SendMsg), arg0) -} - -// Trailer mocks base method -func (m *MockValidatorService_WaitForChainStartClient) Trailer() metadata.MD { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Trailer") - ret0, _ := ret[0].(metadata.MD) - return ret0 -} - -// Trailer indicates an expected call of Trailer -func (mr *MockValidatorService_WaitForChainStartClientMockRecorder) Trailer() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Trailer", reflect.TypeOf((*MockValidatorService_WaitForChainStartClient)(nil).Trailer)) -}