// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: proto/beacon/rpc/v1/services.proto package ethereum_beacon_rpc_v1 import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" import types "github.com/gogo/protobuf/types" import v1 "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1" import ( context "golang.org/x/net/context" grpc "google.golang.org/grpc" ) import io "io" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package type ValidatorRole int32 const ( ValidatorRole_UNKNOWN ValidatorRole = 0 ValidatorRole_ATTESTER ValidatorRole = 1 ValidatorRole_PROPOSER ValidatorRole = 2 ) var ValidatorRole_name = map[int32]string{ 0: "UNKNOWN", 1: "ATTESTER", 2: "PROPOSER", } var ValidatorRole_value = map[string]int32{ "UNKNOWN": 0, "ATTESTER": 1, "PROPOSER": 2, } func (x ValidatorRole) String() string { return proto.EnumName(ValidatorRole_name, int32(x)) } func (ValidatorRole) EnumDescriptor() ([]byte, []int) { return fileDescriptor_services_fe42b90f12b872ee, []int{0} } 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_services_fe42b90f12b872ee, []int{0} } func (m *ChainStartResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } 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.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *ChainStartResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ChainStartResponse.Merge(dst, 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 } return false } func (m *ChainStartResponse) GetGenesisTime() uint64 { if m != nil { return m.GenesisTime } return 0 } type ProposeRequest struct { ParentHash []byte `protobuf:"bytes,1,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"` SlotNumber uint64 `protobuf:"varint,2,opt,name=slot_number,json=slotNumber,proto3" json:"slot_number,omitempty"` RandaoRevealHash32 []byte `protobuf:"bytes,3,opt,name=randao_reveal_hash32,json=randaoRevealHash32,proto3" json:"randao_reveal_hash32,omitempty"` AttestationBitmask []byte `protobuf:"bytes,4,opt,name=attestation_bitmask,json=attestationBitmask,proto3" json:"attestation_bitmask,omitempty"` AttestationAggregateSig []uint64 `protobuf:"varint,5,rep,packed,name=attestation_aggregate_sig,json=attestationAggregateSig,proto3" json:"attestation_aggregate_sig,omitempty"` Timestamp *types.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ProposeRequest) Reset() { *m = ProposeRequest{} } func (m *ProposeRequest) String() string { return proto.CompactTextString(m) } func (*ProposeRequest) ProtoMessage() {} func (*ProposeRequest) Descriptor() ([]byte, []int) { return fileDescriptor_services_fe42b90f12b872ee, []int{1} } func (m *ProposeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ProposeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ProposeRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *ProposeRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ProposeRequest.Merge(dst, src) } func (m *ProposeRequest) XXX_Size() int { return m.Size() } func (m *ProposeRequest) XXX_DiscardUnknown() { xxx_messageInfo_ProposeRequest.DiscardUnknown(m) } var xxx_messageInfo_ProposeRequest proto.InternalMessageInfo func (m *ProposeRequest) GetParentHash() []byte { if m != nil { return m.ParentHash } return nil } func (m *ProposeRequest) GetSlotNumber() uint64 { if m != nil { return m.SlotNumber } return 0 } func (m *ProposeRequest) GetRandaoRevealHash32() []byte { if m != nil { return m.RandaoRevealHash32 } return nil } func (m *ProposeRequest) GetAttestationBitmask() []byte { if m != nil { return m.AttestationBitmask } return nil } func (m *ProposeRequest) GetAttestationAggregateSig() []uint64 { if m != nil { return m.AttestationAggregateSig } return nil } func (m *ProposeRequest) GetTimestamp() *types.Timestamp { if m != nil { return m.Timestamp } return nil } type ProposeResponse struct { BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,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_services_fe42b90f12b872ee, []int{2} } 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.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *ProposeResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ProposeResponse.Merge(dst, 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) GetBlockHash() []byte { if m != nil { return m.BlockHash } return nil } type ProposerIndexRequest struct { SlotNumber uint64 `protobuf:"varint,1,opt,name=slot_number,json=slotNumber,proto3" json:"slot_number,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ProposerIndexRequest) Reset() { *m = ProposerIndexRequest{} } func (m *ProposerIndexRequest) String() string { return proto.CompactTextString(m) } func (*ProposerIndexRequest) ProtoMessage() {} func (*ProposerIndexRequest) Descriptor() ([]byte, []int) { return fileDescriptor_services_fe42b90f12b872ee, []int{3} } func (m *ProposerIndexRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ProposerIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ProposerIndexRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *ProposerIndexRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ProposerIndexRequest.Merge(dst, src) } func (m *ProposerIndexRequest) XXX_Size() int { return m.Size() } func (m *ProposerIndexRequest) XXX_DiscardUnknown() { xxx_messageInfo_ProposerIndexRequest.DiscardUnknown(m) } var xxx_messageInfo_ProposerIndexRequest proto.InternalMessageInfo func (m *ProposerIndexRequest) GetSlotNumber() uint64 { if m != nil { return m.SlotNumber } return 0 } type ProposerIndexResponse 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 *ProposerIndexResponse) Reset() { *m = ProposerIndexResponse{} } func (m *ProposerIndexResponse) String() string { return proto.CompactTextString(m) } func (*ProposerIndexResponse) ProtoMessage() {} func (*ProposerIndexResponse) Descriptor() ([]byte, []int) { return fileDescriptor_services_fe42b90f12b872ee, []int{4} } func (m *ProposerIndexResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ProposerIndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ProposerIndexResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *ProposerIndexResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ProposerIndexResponse.Merge(dst, src) } func (m *ProposerIndexResponse) XXX_Size() int { return m.Size() } func (m *ProposerIndexResponse) XXX_DiscardUnknown() { xxx_messageInfo_ProposerIndexResponse.DiscardUnknown(m) } var xxx_messageInfo_ProposerIndexResponse proto.InternalMessageInfo func (m *ProposerIndexResponse) GetIndex() uint64 { if m != nil { return m.Index } return 0 } type StateRootResponse struct { StateRoot []byte `protobuf:"bytes,1,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *StateRootResponse) Reset() { *m = StateRootResponse{} } func (m *StateRootResponse) String() string { return proto.CompactTextString(m) } func (*StateRootResponse) ProtoMessage() {} func (*StateRootResponse) Descriptor() ([]byte, []int) { return fileDescriptor_services_fe42b90f12b872ee, []int{5} } func (m *StateRootResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StateRootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_StateRootResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *StateRootResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_StateRootResponse.Merge(dst, src) } func (m *StateRootResponse) XXX_Size() int { return m.Size() } func (m *StateRootResponse) XXX_DiscardUnknown() { xxx_messageInfo_StateRootResponse.DiscardUnknown(m) } var xxx_messageInfo_StateRootResponse proto.InternalMessageInfo func (m *StateRootResponse) GetStateRoot() []byte { if m != nil { return m.StateRoot } return nil } type AttestRequest struct { Attestation *v1.Attestation `protobuf:"bytes,1,opt,name=attestation,proto3" json:"attestation,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AttestRequest) Reset() { *m = AttestRequest{} } func (m *AttestRequest) String() string { return proto.CompactTextString(m) } func (*AttestRequest) ProtoMessage() {} func (*AttestRequest) Descriptor() ([]byte, []int) { return fileDescriptor_services_fe42b90f12b872ee, []int{6} } func (m *AttestRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *AttestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_AttestRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *AttestRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_AttestRequest.Merge(dst, src) } func (m *AttestRequest) XXX_Size() int { return m.Size() } func (m *AttestRequest) XXX_DiscardUnknown() { xxx_messageInfo_AttestRequest.DiscardUnknown(m) } var xxx_messageInfo_AttestRequest proto.InternalMessageInfo func (m *AttestRequest) GetAttestation() *v1.Attestation { if m != nil { return m.Attestation } return nil } type AttestResponse struct { AttestationHash []byte `protobuf:"bytes,1,opt,name=attestation_hash,json=attestationHash,proto3" json:"attestation_hash,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_services_fe42b90f12b872ee, []int{7} } 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.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *AttestResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_AttestResponse.Merge(dst, 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) GetAttestationHash() []byte { if m != nil { return m.AttestationHash } return nil } type Assignment struct { PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Shard uint64 `protobuf:"varint,2,opt,name=shard,proto3" json:"shard,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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Assignment) Reset() { *m = Assignment{} } func (m *Assignment) String() string { return proto.CompactTextString(m) } func (*Assignment) ProtoMessage() {} func (*Assignment) Descriptor() ([]byte, []int) { return fileDescriptor_services_fe42b90f12b872ee, []int{8} } func (m *Assignment) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Assignment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Assignment.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *Assignment) XXX_Merge(src proto.Message) { xxx_messageInfo_Assignment.Merge(dst, src) } func (m *Assignment) XXX_Size() int { return m.Size() } func (m *Assignment) XXX_DiscardUnknown() { xxx_messageInfo_Assignment.DiscardUnknown(m) } var xxx_messageInfo_Assignment proto.InternalMessageInfo func (m *Assignment) GetPublicKey() []byte { if m != nil { return m.PublicKey } return nil } func (m *Assignment) GetShard() uint64 { if m != nil { return m.Shard } return 0 } func (m *Assignment) GetAttesterSlot() uint64 { if m != nil { return m.AttesterSlot } return 0 } func (m *Assignment) GetProposerSlot() uint64 { if m != nil { return m.ProposerSlot } 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_services_fe42b90f12b872ee, []int{9} } 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.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *ValidatorIndexRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatorIndexRequest.Merge(dst, 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 } 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_services_fe42b90f12b872ee, []int{10} } 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.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *ValidatorIndexResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatorIndexResponse.Merge(dst, src) } func (m *ValidatorIndexResponse) XXX_Size() int { return m.Size() } 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 ValidatorEpochAssignmentsRequest struct { EpochStart uint64 `protobuf:"varint,1,opt,name=epoch_start,json=epochStart,proto3" json:"epoch_start,omitempty"` PublicKey []byte `protobuf:"bytes,2,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 *ValidatorEpochAssignmentsRequest) Reset() { *m = ValidatorEpochAssignmentsRequest{} } func (m *ValidatorEpochAssignmentsRequest) String() string { return proto.CompactTextString(m) } func (*ValidatorEpochAssignmentsRequest) ProtoMessage() {} func (*ValidatorEpochAssignmentsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_services_fe42b90f12b872ee, []int{11} } func (m *ValidatorEpochAssignmentsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatorEpochAssignmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ValidatorEpochAssignmentsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *ValidatorEpochAssignmentsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatorEpochAssignmentsRequest.Merge(dst, src) } func (m *ValidatorEpochAssignmentsRequest) XXX_Size() int { return m.Size() } func (m *ValidatorEpochAssignmentsRequest) XXX_DiscardUnknown() { xxx_messageInfo_ValidatorEpochAssignmentsRequest.DiscardUnknown(m) } var xxx_messageInfo_ValidatorEpochAssignmentsRequest proto.InternalMessageInfo func (m *ValidatorEpochAssignmentsRequest) GetEpochStart() uint64 { if m != nil { return m.EpochStart } return 0 } func (m *ValidatorEpochAssignmentsRequest) GetPublicKey() []byte { if m != nil { return m.PublicKey } return nil } type ValidatorEpochAssignmentsResponse struct { Assignment *Assignment `protobuf:"bytes,2,opt,name=assignment,proto3" json:"assignment,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ValidatorEpochAssignmentsResponse) Reset() { *m = ValidatorEpochAssignmentsResponse{} } func (m *ValidatorEpochAssignmentsResponse) String() string { return proto.CompactTextString(m) } func (*ValidatorEpochAssignmentsResponse) ProtoMessage() {} func (*ValidatorEpochAssignmentsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_services_fe42b90f12b872ee, []int{12} } func (m *ValidatorEpochAssignmentsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ValidatorEpochAssignmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ValidatorEpochAssignmentsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *ValidatorEpochAssignmentsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ValidatorEpochAssignmentsResponse.Merge(dst, src) } func (m *ValidatorEpochAssignmentsResponse) XXX_Size() int { return m.Size() } func (m *ValidatorEpochAssignmentsResponse) XXX_DiscardUnknown() { xxx_messageInfo_ValidatorEpochAssignmentsResponse.DiscardUnknown(m) } var xxx_messageInfo_ValidatorEpochAssignmentsResponse proto.InternalMessageInfo func (m *ValidatorEpochAssignmentsResponse) GetAssignment() *Assignment { if m != nil { return m.Assignment } return nil } type PendingDepositsResponse struct { PendingDeposits []*v1.Deposit `protobuf:"bytes,1,rep,name=pending_deposits,json=pendingDeposits,proto3" json:"pending_deposits,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *PendingDepositsResponse) Reset() { *m = PendingDepositsResponse{} } func (m *PendingDepositsResponse) String() string { return proto.CompactTextString(m) } func (*PendingDepositsResponse) ProtoMessage() {} func (*PendingDepositsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_services_fe42b90f12b872ee, []int{13} } func (m *PendingDepositsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PendingDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_PendingDepositsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *PendingDepositsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_PendingDepositsResponse.Merge(dst, src) } func (m *PendingDepositsResponse) XXX_Size() int { return m.Size() } func (m *PendingDepositsResponse) XXX_DiscardUnknown() { xxx_messageInfo_PendingDepositsResponse.DiscardUnknown(m) } var xxx_messageInfo_PendingDepositsResponse proto.InternalMessageInfo func (m *PendingDepositsResponse) GetPendingDeposits() []*v1.Deposit { if m != nil { return m.PendingDeposits } return nil } type Eth1DataResponse struct { Eth1Data *v1.Eth1Data `protobuf:"bytes,1,opt,name=eth1_data,json=eth1Data,proto3" json:"eth1_data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Eth1DataResponse) Reset() { *m = Eth1DataResponse{} } func (m *Eth1DataResponse) String() string { return proto.CompactTextString(m) } func (*Eth1DataResponse) ProtoMessage() {} func (*Eth1DataResponse) Descriptor() ([]byte, []int) { return fileDescriptor_services_fe42b90f12b872ee, []int{14} } func (m *Eth1DataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Eth1DataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Eth1DataResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *Eth1DataResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_Eth1DataResponse.Merge(dst, src) } func (m *Eth1DataResponse) XXX_Size() int { return m.Size() } func (m *Eth1DataResponse) XXX_DiscardUnknown() { xxx_messageInfo_Eth1DataResponse.DiscardUnknown(m) } var xxx_messageInfo_Eth1DataResponse proto.InternalMessageInfo func (m *Eth1DataResponse) GetEth1Data() *v1.Eth1Data { if m != nil { return m.Eth1Data } return nil } func init() { proto.RegisterType((*ChainStartResponse)(nil), "ethereum.beacon.rpc.v1.ChainStartResponse") proto.RegisterType((*ProposeRequest)(nil), "ethereum.beacon.rpc.v1.ProposeRequest") proto.RegisterType((*ProposeResponse)(nil), "ethereum.beacon.rpc.v1.ProposeResponse") proto.RegisterType((*ProposerIndexRequest)(nil), "ethereum.beacon.rpc.v1.ProposerIndexRequest") proto.RegisterType((*ProposerIndexResponse)(nil), "ethereum.beacon.rpc.v1.ProposerIndexResponse") proto.RegisterType((*StateRootResponse)(nil), "ethereum.beacon.rpc.v1.StateRootResponse") proto.RegisterType((*AttestRequest)(nil), "ethereum.beacon.rpc.v1.AttestRequest") proto.RegisterType((*AttestResponse)(nil), "ethereum.beacon.rpc.v1.AttestResponse") proto.RegisterType((*Assignment)(nil), "ethereum.beacon.rpc.v1.Assignment") proto.RegisterType((*ValidatorIndexRequest)(nil), "ethereum.beacon.rpc.v1.ValidatorIndexRequest") proto.RegisterType((*ValidatorIndexResponse)(nil), "ethereum.beacon.rpc.v1.ValidatorIndexResponse") proto.RegisterType((*ValidatorEpochAssignmentsRequest)(nil), "ethereum.beacon.rpc.v1.ValidatorEpochAssignmentsRequest") proto.RegisterType((*ValidatorEpochAssignmentsResponse)(nil), "ethereum.beacon.rpc.v1.ValidatorEpochAssignmentsResponse") proto.RegisterType((*PendingDepositsResponse)(nil), "ethereum.beacon.rpc.v1.PendingDepositsResponse") proto.RegisterType((*Eth1DataResponse)(nil), "ethereum.beacon.rpc.v1.Eth1DataResponse") proto.RegisterEnum("ethereum.beacon.rpc.v1.ValidatorRole", ValidatorRole_name, ValidatorRole_value) } // 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 // BeaconServiceClient is the client API for BeaconService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type BeaconServiceClient interface { WaitForChainStart(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (BeaconService_WaitForChainStartClient, error) CanonicalHead(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*v1.BeaconBlock, error) LatestAttestation(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (BeaconService_LatestAttestationClient, error) PendingDeposits(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*PendingDepositsResponse, error) Eth1Data(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*Eth1DataResponse, error) } type beaconServiceClient struct { cc *grpc.ClientConn } func NewBeaconServiceClient(cc *grpc.ClientConn) BeaconServiceClient { return &beaconServiceClient{cc} } func (c *beaconServiceClient) WaitForChainStart(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (BeaconService_WaitForChainStartClient, error) { stream, err := c.cc.NewStream(ctx, &_BeaconService_serviceDesc.Streams[0], "/ethereum.beacon.rpc.v1.BeaconService/WaitForChainStart", opts...) if err != nil { return nil, err } x := &beaconServiceWaitForChainStartClient{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 BeaconService_WaitForChainStartClient interface { Recv() (*ChainStartResponse, error) grpc.ClientStream } type beaconServiceWaitForChainStartClient struct { grpc.ClientStream } func (x *beaconServiceWaitForChainStartClient) Recv() (*ChainStartResponse, error) { m := new(ChainStartResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func (c *beaconServiceClient) CanonicalHead(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*v1.BeaconBlock, error) { out := new(v1.BeaconBlock) err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.BeaconService/CanonicalHead", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *beaconServiceClient) LatestAttestation(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (BeaconService_LatestAttestationClient, error) { stream, err := c.cc.NewStream(ctx, &_BeaconService_serviceDesc.Streams[1], "/ethereum.beacon.rpc.v1.BeaconService/LatestAttestation", opts...) if err != nil { return nil, err } x := &beaconServiceLatestAttestationClient{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 BeaconService_LatestAttestationClient interface { Recv() (*v1.Attestation, error) grpc.ClientStream } type beaconServiceLatestAttestationClient struct { grpc.ClientStream } func (x *beaconServiceLatestAttestationClient) Recv() (*v1.Attestation, error) { m := new(v1.Attestation) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func (c *beaconServiceClient) PendingDeposits(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*PendingDepositsResponse, error) { out := new(PendingDepositsResponse) err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.BeaconService/PendingDeposits", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *beaconServiceClient) Eth1Data(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*Eth1DataResponse, error) { out := new(Eth1DataResponse) err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.BeaconService/Eth1Data", in, out, opts...) if err != nil { return nil, err } return out, nil } // BeaconServiceServer is the server API for BeaconService service. type BeaconServiceServer interface { WaitForChainStart(*types.Empty, BeaconService_WaitForChainStartServer) error CanonicalHead(context.Context, *types.Empty) (*v1.BeaconBlock, error) LatestAttestation(*types.Empty, BeaconService_LatestAttestationServer) error PendingDeposits(context.Context, *types.Empty) (*PendingDepositsResponse, error) Eth1Data(context.Context, *types.Empty) (*Eth1DataResponse, error) } func RegisterBeaconServiceServer(s *grpc.Server, srv BeaconServiceServer) { s.RegisterService(&_BeaconService_serviceDesc, srv) } func _BeaconService_WaitForChainStart_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(types.Empty) if err := stream.RecvMsg(m); err != nil { return err } return srv.(BeaconServiceServer).WaitForChainStart(m, &beaconServiceWaitForChainStartServer{stream}) } type BeaconService_WaitForChainStartServer interface { Send(*ChainStartResponse) error grpc.ServerStream } type beaconServiceWaitForChainStartServer struct { grpc.ServerStream } func (x *beaconServiceWaitForChainStartServer) Send(m *ChainStartResponse) error { return x.ServerStream.SendMsg(m) } func _BeaconService_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.(BeaconServiceServer).CanonicalHead(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ethereum.beacon.rpc.v1.BeaconService/CanonicalHead", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BeaconServiceServer).CanonicalHead(ctx, req.(*types.Empty)) } return interceptor(ctx, in, info, handler) } func _BeaconService_LatestAttestation_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(types.Empty) if err := stream.RecvMsg(m); err != nil { return err } return srv.(BeaconServiceServer).LatestAttestation(m, &beaconServiceLatestAttestationServer{stream}) } type BeaconService_LatestAttestationServer interface { Send(*v1.Attestation) error grpc.ServerStream } type beaconServiceLatestAttestationServer struct { grpc.ServerStream } func (x *beaconServiceLatestAttestationServer) Send(m *v1.Attestation) error { return x.ServerStream.SendMsg(m) } func _BeaconService_PendingDeposits_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.(BeaconServiceServer).PendingDeposits(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ethereum.beacon.rpc.v1.BeaconService/PendingDeposits", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BeaconServiceServer).PendingDeposits(ctx, req.(*types.Empty)) } return interceptor(ctx, in, info, handler) } func _BeaconService_Eth1Data_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.(BeaconServiceServer).Eth1Data(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ethereum.beacon.rpc.v1.BeaconService/Eth1Data", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BeaconServiceServer).Eth1Data(ctx, req.(*types.Empty)) } return interceptor(ctx, in, info, handler) } var _BeaconService_serviceDesc = grpc.ServiceDesc{ ServiceName: "ethereum.beacon.rpc.v1.BeaconService", HandlerType: (*BeaconServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CanonicalHead", Handler: _BeaconService_CanonicalHead_Handler, }, { MethodName: "PendingDeposits", Handler: _BeaconService_PendingDeposits_Handler, }, { MethodName: "Eth1Data", Handler: _BeaconService_Eth1Data_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "WaitForChainStart", Handler: _BeaconService_WaitForChainStart_Handler, ServerStreams: true, }, { StreamName: "LatestAttestation", Handler: _BeaconService_LatestAttestation_Handler, ServerStreams: true, }, }, Metadata: "proto/beacon/rpc/v1/services.proto", } // 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 { AttestHead(ctx context.Context, in *AttestRequest, opts ...grpc.CallOption) (*AttestResponse, error) } type attesterServiceClient struct { cc *grpc.ClientConn } func NewAttesterServiceClient(cc *grpc.ClientConn) AttesterServiceClient { return &attesterServiceClient{cc} } func (c *attesterServiceClient) AttestHead(ctx context.Context, in *AttestRequest, opts ...grpc.CallOption) (*AttestResponse, error) { out := new(AttestResponse) err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.AttesterService/AttestHead", in, out, opts...) if err != nil { return nil, err } return out, nil } // AttesterServiceServer is the server API for AttesterService service. type AttesterServiceServer interface { AttestHead(context.Context, *AttestRequest) (*AttestResponse, error) } func RegisterAttesterServiceServer(s *grpc.Server, srv AttesterServiceServer) { s.RegisterService(&_AttesterService_serviceDesc, srv) } func _AttesterService_AttestHead_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AttestRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AttesterServiceServer).AttestHead(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ethereum.beacon.rpc.v1.AttesterService/AttestHead", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AttesterServiceServer).AttestHead(ctx, req.(*AttestRequest)) } return interceptor(ctx, in, info, handler) } var _AttesterService_serviceDesc = grpc.ServiceDesc{ ServiceName: "ethereum.beacon.rpc.v1.AttesterService", HandlerType: (*AttesterServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AttestHead", Handler: _AttesterService_AttestHead_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 { ProposerIndex(ctx context.Context, in *ProposerIndexRequest, opts ...grpc.CallOption) (*ProposerIndexResponse, error) ProposeBlock(ctx context.Context, in *v1.BeaconBlock, opts ...grpc.CallOption) (*ProposeResponse, error) ComputeStateRoot(ctx context.Context, in *v1.BeaconBlock, opts ...grpc.CallOption) (*StateRootResponse, error) } type proposerServiceClient struct { cc *grpc.ClientConn } func NewProposerServiceClient(cc *grpc.ClientConn) ProposerServiceClient { return &proposerServiceClient{cc} } func (c *proposerServiceClient) ProposerIndex(ctx context.Context, in *ProposerIndexRequest, opts ...grpc.CallOption) (*ProposerIndexResponse, error) { out := new(ProposerIndexResponse) err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ProposerService/ProposerIndex", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *proposerServiceClient) ProposeBlock(ctx context.Context, in *v1.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 } func (c *proposerServiceClient) ComputeStateRoot(ctx context.Context, in *v1.BeaconBlock, opts ...grpc.CallOption) (*StateRootResponse, error) { out := new(StateRootResponse) err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ProposerService/ComputeStateRoot", in, out, opts...) if err != nil { return nil, err } return out, nil } // ProposerServiceServer is the server API for ProposerService service. type ProposerServiceServer interface { ProposerIndex(context.Context, *ProposerIndexRequest) (*ProposerIndexResponse, error) ProposeBlock(context.Context, *v1.BeaconBlock) (*ProposeResponse, error) ComputeStateRoot(context.Context, *v1.BeaconBlock) (*StateRootResponse, error) } func RegisterProposerServiceServer(s *grpc.Server, srv ProposerServiceServer) { s.RegisterService(&_ProposerService_serviceDesc, srv) } func _ProposerService_ProposerIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ProposerIndexRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ProposerServiceServer).ProposerIndex(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ethereum.beacon.rpc.v1.ProposerService/ProposerIndex", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ProposerServiceServer).ProposerIndex(ctx, req.(*ProposerIndexRequest)) } 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(v1.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.(*v1.BeaconBlock)) } return interceptor(ctx, in, info, handler) } func _ProposerService_ComputeStateRoot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.BeaconBlock) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ProposerServiceServer).ComputeStateRoot(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ethereum.beacon.rpc.v1.ProposerService/ComputeStateRoot", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ProposerServiceServer).ComputeStateRoot(ctx, req.(*v1.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: "ProposerIndex", Handler: _ProposerService_ProposerIndex_Handler, }, { MethodName: "ProposeBlock", Handler: _ProposerService_ProposeBlock_Handler, }, { MethodName: "ComputeStateRoot", Handler: _ProposerService_ComputeStateRoot_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 { ValidatorIndex(ctx context.Context, in *ValidatorIndexRequest, opts ...grpc.CallOption) (*ValidatorIndexResponse, error) ValidatorEpochAssignments(ctx context.Context, in *ValidatorEpochAssignmentsRequest, opts ...grpc.CallOption) (*ValidatorEpochAssignmentsResponse, error) } type validatorServiceClient struct { cc *grpc.ClientConn } func NewValidatorServiceClient(cc *grpc.ClientConn) ValidatorServiceClient { return &validatorServiceClient{cc} } 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) ValidatorEpochAssignments(ctx context.Context, in *ValidatorEpochAssignmentsRequest, opts ...grpc.CallOption) (*ValidatorEpochAssignmentsResponse, error) { out := new(ValidatorEpochAssignmentsResponse) err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ValidatorService/ValidatorEpochAssignments", in, out, opts...) if err != nil { return nil, err } return out, nil } // ValidatorServiceServer is the server API for ValidatorService service. type ValidatorServiceServer interface { ValidatorIndex(context.Context, *ValidatorIndexRequest) (*ValidatorIndexResponse, error) ValidatorEpochAssignments(context.Context, *ValidatorEpochAssignmentsRequest) (*ValidatorEpochAssignmentsResponse, error) } func RegisterValidatorServiceServer(s *grpc.Server, srv ValidatorServiceServer) { s.RegisterService(&_ValidatorService_serviceDesc, srv) } 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_ValidatorEpochAssignments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ValidatorEpochAssignmentsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ValidatorServiceServer).ValidatorEpochAssignments(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ethereum.beacon.rpc.v1.ValidatorService/ValidatorEpochAssignments", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ValidatorServiceServer).ValidatorEpochAssignments(ctx, req.(*ValidatorEpochAssignmentsRequest)) } return interceptor(ctx, in, info, handler) } var _ValidatorService_serviceDesc = grpc.ServiceDesc{ ServiceName: "ethereum.beacon.rpc.v1.ValidatorService", HandlerType: (*ValidatorServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ValidatorIndex", Handler: _ValidatorService_ValidatorIndex_Handler, }, { MethodName: "ValidatorEpochAssignments", Handler: _ValidatorService_ValidatorEpochAssignments_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/beacon/rpc/v1/services.proto", } func (m *ChainStartResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ChainStartResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Started { dAtA[i] = 0x8 i++ if m.Started { dAtA[i] = 1 } else { dAtA[i] = 0 } i++ } if m.GenesisTime != 0 { dAtA[i] = 0x10 i++ i = encodeVarintServices(dAtA, i, uint64(m.GenesisTime)) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *ProposeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ProposeRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.ParentHash) > 0 { dAtA[i] = 0xa i++ i = encodeVarintServices(dAtA, i, uint64(len(m.ParentHash))) i += copy(dAtA[i:], m.ParentHash) } if m.SlotNumber != 0 { dAtA[i] = 0x10 i++ i = encodeVarintServices(dAtA, i, uint64(m.SlotNumber)) } if len(m.RandaoRevealHash32) > 0 { dAtA[i] = 0x1a i++ i = encodeVarintServices(dAtA, i, uint64(len(m.RandaoRevealHash32))) i += copy(dAtA[i:], m.RandaoRevealHash32) } if len(m.AttestationBitmask) > 0 { dAtA[i] = 0x22 i++ i = encodeVarintServices(dAtA, i, uint64(len(m.AttestationBitmask))) i += copy(dAtA[i:], m.AttestationBitmask) } if len(m.AttestationAggregateSig) > 0 { dAtA2 := make([]byte, len(m.AttestationAggregateSig)*10) var j1 int for _, num := range m.AttestationAggregateSig { for num >= 1<<7 { dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 j1++ } dAtA2[j1] = uint8(num) j1++ } dAtA[i] = 0x2a i++ i = encodeVarintServices(dAtA, i, uint64(j1)) i += copy(dAtA[i:], dAtA2[:j1]) } if m.Timestamp != nil { dAtA[i] = 0x32 i++ i = encodeVarintServices(dAtA, i, uint64(m.Timestamp.Size())) n3, err := m.Timestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *ProposeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ProposeResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.BlockHash) > 0 { dAtA[i] = 0xa i++ i = encodeVarintServices(dAtA, i, uint64(len(m.BlockHash))) i += copy(dAtA[i:], m.BlockHash) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *ProposerIndexRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ProposerIndexRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.SlotNumber != 0 { dAtA[i] = 0x8 i++ i = encodeVarintServices(dAtA, i, uint64(m.SlotNumber)) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *ProposerIndexResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ProposerIndexResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Index != 0 { dAtA[i] = 0x8 i++ i = encodeVarintServices(dAtA, i, uint64(m.Index)) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *StateRootResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *StateRootResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.StateRoot) > 0 { dAtA[i] = 0xa i++ i = encodeVarintServices(dAtA, i, uint64(len(m.StateRoot))) i += copy(dAtA[i:], m.StateRoot) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *AttestRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *AttestRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Attestation != nil { dAtA[i] = 0xa i++ i = encodeVarintServices(dAtA, i, uint64(m.Attestation.Size())) n4, err := m.Attestation.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n4 } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *AttestResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *AttestResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.AttestationHash) > 0 { dAtA[i] = 0xa i++ i = encodeVarintServices(dAtA, i, uint64(len(m.AttestationHash))) i += copy(dAtA[i:], m.AttestationHash) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *Assignment) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Assignment) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.PublicKey) > 0 { dAtA[i] = 0xa i++ i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKey))) i += copy(dAtA[i:], m.PublicKey) } if m.Shard != 0 { dAtA[i] = 0x10 i++ i = encodeVarintServices(dAtA, i, uint64(m.Shard)) } if m.AttesterSlot != 0 { dAtA[i] = 0x18 i++ i = encodeVarintServices(dAtA, i, uint64(m.AttesterSlot)) } if m.ProposerSlot != 0 { dAtA[i] = 0x20 i++ i = encodeVarintServices(dAtA, i, uint64(m.ProposerSlot)) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *ValidatorIndexRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatorIndexRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.PublicKey) > 0 { dAtA[i] = 0xa i++ i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKey))) i += copy(dAtA[i:], m.PublicKey) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *ValidatorIndexResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatorIndexResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Index != 0 { dAtA[i] = 0x8 i++ i = encodeVarintServices(dAtA, i, uint64(m.Index)) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *ValidatorEpochAssignmentsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatorEpochAssignmentsRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.EpochStart != 0 { dAtA[i] = 0x8 i++ i = encodeVarintServices(dAtA, i, uint64(m.EpochStart)) } if len(m.PublicKey) > 0 { dAtA[i] = 0x12 i++ i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKey))) i += copy(dAtA[i:], m.PublicKey) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *ValidatorEpochAssignmentsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *ValidatorEpochAssignmentsResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Assignment != nil { dAtA[i] = 0x12 i++ i = encodeVarintServices(dAtA, i, uint64(m.Assignment.Size())) n5, err := m.Assignment.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n5 } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *PendingDepositsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PendingDepositsResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.PendingDeposits) > 0 { for _, msg := range m.PendingDeposits { dAtA[i] = 0xa i++ i = encodeVarintServices(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *Eth1DataResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Eth1DataResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Eth1Data != nil { dAtA[i] = 0xa i++ i = encodeVarintServices(dAtA, i, uint64(m.Eth1Data.Size())) n6, err := m.Eth1Data.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n6 } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func encodeVarintServices(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return offset + 1 } 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 *ProposeRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ParentHash) if l > 0 { n += 1 + l + sovServices(uint64(l)) } if m.SlotNumber != 0 { n += 1 + sovServices(uint64(m.SlotNumber)) } l = len(m.RandaoRevealHash32) if l > 0 { n += 1 + l + sovServices(uint64(l)) } l = len(m.AttestationBitmask) if l > 0 { n += 1 + l + sovServices(uint64(l)) } if len(m.AttestationAggregateSig) > 0 { l = 0 for _, e := range m.AttestationAggregateSig { l += sovServices(uint64(e)) } n += 1 + sovServices(uint64(l)) + l } if m.Timestamp != nil { l = m.Timestamp.Size() 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.BlockHash) if l > 0 { n += 1 + l + sovServices(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *ProposerIndexRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.SlotNumber != 0 { n += 1 + sovServices(uint64(m.SlotNumber)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *ProposerIndexResponse) 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 *StateRootResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.StateRoot) if l > 0 { n += 1 + l + sovServices(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *AttestRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Attestation != nil { l = m.Attestation.Size() n += 1 + l + sovServices(uint64(l)) } 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.AttestationHash) if l > 0 { n += 1 + l + sovServices(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *Assignment) 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.Shard != 0 { n += 1 + sovServices(uint64(m.Shard)) } if m.AttesterSlot != 0 { n += 1 + sovServices(uint64(m.AttesterSlot)) } if m.ProposerSlot != 0 { n += 1 + sovServices(uint64(m.ProposerSlot)) } 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 *ValidatorEpochAssignmentsRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.EpochStart != 0 { n += 1 + sovServices(uint64(m.EpochStart)) } 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 *ValidatorEpochAssignmentsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Assignment != nil { l = m.Assignment.Size() n += 1 + l + sovServices(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *PendingDepositsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.PendingDeposits) > 0 { for _, e := range m.PendingDeposits { l = e.Size() n += 1 + l + sovServices(uint64(l)) } } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *Eth1DataResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Eth1Data != nil { l = m.Eth1Data.Size() n += 1 + l + sovServices(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func sovServices(x uint64) (n int) { for { n++ x >>= 7 if x == 0 { break } } return n } func sozServices(x uint64) (n int) { return sovServices(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } 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) > 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 *ProposeRequest) 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: ProposeRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ProposeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ParentHash", 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 > l { return io.ErrUnexpectedEOF } m.ParentHash = append(m.ParentHash[:0], dAtA[iNdEx:postIndex]...) if m.ParentHash == nil { m.ParentHash = []byte{} } iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field SlotNumber", wireType) } m.SlotNumber = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowServices } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.SlotNumber |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RandaoRevealHash32", 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 > l { return io.ErrUnexpectedEOF } m.RandaoRevealHash32 = append(m.RandaoRevealHash32[:0], dAtA[iNdEx:postIndex]...) if m.RandaoRevealHash32 == nil { m.RandaoRevealHash32 = []byte{} } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AttestationBitmask", 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 > l { return io.ErrUnexpectedEOF } m.AttestationBitmask = append(m.AttestationBitmask[:0], dAtA[iNdEx:postIndex]...) if m.AttestationBitmask == nil { m.AttestationBitmask = []byte{} } iNdEx = postIndex case 5: 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.AttestationAggregateSig = append(m.AttestationAggregateSig, 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 > l { return io.ErrUnexpectedEOF } var elementCount int var count int for _, integer := range dAtA { if integer < 128 { count++ } } elementCount = count if elementCount != 0 && len(m.AttestationAggregateSig) == 0 { m.AttestationAggregateSig = 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.AttestationAggregateSig = append(m.AttestationAggregateSig, v) } } else { return fmt.Errorf("proto: wrong wireType = %d for field AttestationAggregateSig", wireType) } case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", 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 > l { return io.ErrUnexpectedEOF } if m.Timestamp == nil { m.Timestamp = &types.Timestamp{} } if err := m.Timestamp.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) > 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 BlockHash", 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 > l { return io.ErrUnexpectedEOF } m.BlockHash = append(m.BlockHash[:0], dAtA[iNdEx:postIndex]...) if m.BlockHash == nil { m.BlockHash = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipServices(dAtA[iNdEx:]) if err != nil { return err } if 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 *ProposerIndexRequest) 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: ProposerIndexRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ProposerIndexRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field SlotNumber", wireType) } m.SlotNumber = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowServices } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.SlotNumber |= (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) > 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 *ProposerIndexResponse) 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: ProposerIndexResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ProposerIndexResponse: 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) > 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 *StateRootResponse) 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: StateRootResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StateRootResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StateRoot", 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 > l { return io.ErrUnexpectedEOF } m.StateRoot = append(m.StateRoot[:0], dAtA[iNdEx:postIndex]...) if m.StateRoot == nil { m.StateRoot = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipServices(dAtA[iNdEx:]) if err != nil { return err } if 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 *AttestRequest) 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: AttestRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: AttestRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Attestation", 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 > l { return io.ErrUnexpectedEOF } if m.Attestation == nil { m.Attestation = &v1.Attestation{} } if err := m.Attestation.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) > 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 AttestationHash", 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 > l { return io.ErrUnexpectedEOF } m.AttestationHash = append(m.AttestationHash[:0], dAtA[iNdEx:postIndex]...) if m.AttestationHash == nil { m.AttestationHash = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipServices(dAtA[iNdEx:]) if err != nil { return err } if 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 *Assignment) 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: Assignment: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Assignment: 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 > 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 != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Shard", wireType) } m.Shard = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowServices } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Shard |= (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 } } default: iNdEx = preIndex skippy, err := skipServices(dAtA[iNdEx:]) if err != nil { return err } if 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 > 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) > 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) > 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 *ValidatorEpochAssignmentsRequest) 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: ValidatorEpochAssignmentsRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatorEpochAssignmentsRequest: 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 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 > 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) > 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 *ValidatorEpochAssignmentsResponse) 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: ValidatorEpochAssignmentsResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValidatorEpochAssignmentsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Assignment", 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 > l { return io.ErrUnexpectedEOF } if m.Assignment == nil { m.Assignment = &Assignment{} } if err := m.Assignment.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) > 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 *PendingDepositsResponse) 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: PendingDepositsResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PendingDepositsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PendingDeposits", 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 > l { return io.ErrUnexpectedEOF } m.PendingDeposits = append(m.PendingDeposits, &v1.Deposit{}) if err := m.PendingDeposits[len(m.PendingDeposits)-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) > 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 *Eth1DataResponse) 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: Eth1DataResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Eth1DataResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Eth1Data", 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 > l { return io.ErrUnexpectedEOF } if m.Eth1Data == nil { m.Eth1Data = &v1.Eth1Data{} } if err := m.Eth1Data.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) > 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 skipServices(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowServices } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowServices } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } return iNdEx, nil case 1: iNdEx += 8 return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowServices } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } iNdEx += length if length < 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 } return iNdEx, nil case 4: return iNdEx, nil case 5: iNdEx += 4 return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } } panic("unreachable") } var ( ErrInvalidLengthServices = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowServices = fmt.Errorf("proto: integer overflow") ) func init() { proto.RegisterFile("proto/beacon/rpc/v1/services.proto", fileDescriptor_services_fe42b90f12b872ee) } var fileDescriptor_services_fe42b90f12b872ee = []byte{ // 1021 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xdd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