mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
d7488b9a1e
* support multiple pubkeys * a bit of refactoring to avoid calling db.state multiple times * Add test for supporting multiple keys * rename proto field
6219 lines
166 KiB
Go
Executable File
Generated
6219 lines
166 KiB
Go
Executable File
Generated
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: proto/beacon/rpc/v1/services.proto
|
|
|
|
package ethereum_beacon_rpc_v1
|
|
|
|
import (
|
|
context "context"
|
|
encoding_binary "encoding/binary"
|
|
fmt "fmt"
|
|
io "io"
|
|
math "math"
|
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
types "github.com/gogo/protobuf/types"
|
|
v1 "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// 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_9eb4e94b85965285, []int{0}
|
|
}
|
|
|
|
type ValidatorStatus int32
|
|
|
|
const (
|
|
ValidatorStatus_UNKNOWN_STATUS ValidatorStatus = 0
|
|
ValidatorStatus_PENDING_ACTIVE ValidatorStatus = 1
|
|
ValidatorStatus_ACTIVE ValidatorStatus = 2
|
|
ValidatorStatus_INITIATED_EXIT ValidatorStatus = 3
|
|
ValidatorStatus_WITHDRAWABLE ValidatorStatus = 4
|
|
ValidatorStatus_EXITED ValidatorStatus = 5
|
|
ValidatorStatus_EXITED_SLASHED ValidatorStatus = 6
|
|
)
|
|
|
|
var ValidatorStatus_name = map[int32]string{
|
|
0: "UNKNOWN_STATUS",
|
|
1: "PENDING_ACTIVE",
|
|
2: "ACTIVE",
|
|
3: "INITIATED_EXIT",
|
|
4: "WITHDRAWABLE",
|
|
5: "EXITED",
|
|
6: "EXITED_SLASHED",
|
|
}
|
|
|
|
var ValidatorStatus_value = map[string]int32{
|
|
"UNKNOWN_STATUS": 0,
|
|
"PENDING_ACTIVE": 1,
|
|
"ACTIVE": 2,
|
|
"INITIATED_EXIT": 3,
|
|
"WITHDRAWABLE": 4,
|
|
"EXITED": 5,
|
|
"EXITED_SLASHED": 6,
|
|
}
|
|
|
|
func (x ValidatorStatus) String() string {
|
|
return proto.EnumName(ValidatorStatus_name, int32(x))
|
|
}
|
|
|
|
func (ValidatorStatus) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_9eb4e94b85965285, []int{1}
|
|
}
|
|
|
|
type ValidatorPerformanceRequest struct {
|
|
Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,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 *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{0}
|
|
}
|
|
func (m *ValidatorPerformanceRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ValidatorPerformanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ValidatorPerformanceRequest.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 (m *ValidatorPerformanceRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ValidatorPerformanceRequest.Merge(m, src)
|
|
}
|
|
func (m *ValidatorPerformanceRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ValidatorPerformanceRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ValidatorPerformanceRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ValidatorPerformanceRequest proto.InternalMessageInfo
|
|
|
|
func (m *ValidatorPerformanceRequest) GetSlot() uint64 {
|
|
if m != nil {
|
|
return m.Slot
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ValidatorPerformanceRequest) GetPublicKey() []byte {
|
|
if m != nil {
|
|
return m.PublicKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ValidatorPerformanceResponse struct {
|
|
Balance uint64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,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"`
|
|
AverageValidatorBalance float32 `protobuf:"fixed32,4,opt,name=average_validator_balance,json=averageValidatorBalance,proto3" json:"average_validator_balance,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{1}
|
|
}
|
|
func (m *ValidatorPerformanceResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ValidatorPerformanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ValidatorPerformanceResponse.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 (m *ValidatorPerformanceResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ValidatorPerformanceResponse.Merge(m, src)
|
|
}
|
|
func (m *ValidatorPerformanceResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ValidatorPerformanceResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ValidatorPerformanceResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ValidatorPerformanceResponse proto.InternalMessageInfo
|
|
|
|
func (m *ValidatorPerformanceResponse) GetBalance() uint64 {
|
|
if m != nil {
|
|
return m.Balance
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ValidatorPerformanceResponse) GetTotalValidators() uint64 {
|
|
if m != nil {
|
|
return m.TotalValidators
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ValidatorPerformanceResponse) GetTotalActiveValidators() uint64 {
|
|
if m != nil {
|
|
return m.TotalActiveValidators
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ValidatorPerformanceResponse) GetAverageValidatorBalance() float32 {
|
|
if m != nil {
|
|
return m.AverageValidatorBalance
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ValidatorActivationRequest struct {
|
|
Pubkey []byte `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
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{2}
|
|
}
|
|
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.MarshalTo(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ValidatorActivationRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ValidatorActivationRequest.Merge(m, src)
|
|
}
|
|
func (m *ValidatorActivationRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ValidatorActivationRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ValidatorActivationRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ValidatorActivationRequest proto.InternalMessageInfo
|
|
|
|
func (m *ValidatorActivationRequest) GetPubkey() []byte {
|
|
if m != nil {
|
|
return m.Pubkey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ValidatorActivationResponse struct {
|
|
Validator *v1.Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
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{3}
|
|
}
|
|
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.MarshalTo(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
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)
|
|
}
|
|
|
|
var xxx_messageInfo_ValidatorActivationResponse proto.InternalMessageInfo
|
|
|
|
func (m *ValidatorActivationResponse) GetValidator() *v1.Validator {
|
|
if m != nil {
|
|
return m.Validator
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AttestationDataRequest struct {
|
|
Shard uint64 `protobuf:"varint,1,opt,name=shard,proto3" json:"shard,omitempty"`
|
|
Slot uint64 `protobuf:"varint,2,opt,name=slot,proto3" json:"slot,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AttestationDataRequest) Reset() { *m = AttestationDataRequest{} }
|
|
func (m *AttestationDataRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*AttestationDataRequest) ProtoMessage() {}
|
|
func (*AttestationDataRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9eb4e94b85965285, []int{4}
|
|
}
|
|
func (m *AttestationDataRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *AttestationDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_AttestationDataRequest.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 (m *AttestationDataRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AttestationDataRequest.Merge(m, src)
|
|
}
|
|
func (m *AttestationDataRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *AttestationDataRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AttestationDataRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AttestationDataRequest proto.InternalMessageInfo
|
|
|
|
func (m *AttestationDataRequest) GetShard() uint64 {
|
|
if m != nil {
|
|
return m.Shard
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *AttestationDataRequest) GetSlot() uint64 {
|
|
if m != nil {
|
|
return m.Slot
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AttestationDataResponse struct {
|
|
BeaconBlockRootHash32 []byte `protobuf:"bytes,1,opt,name=beacon_block_root_hash32,json=beaconBlockRootHash32,proto3" json:"beacon_block_root_hash32,omitempty"`
|
|
EpochBoundaryRootHash32 []byte `protobuf:"bytes,2,opt,name=epoch_boundary_root_hash32,json=epochBoundaryRootHash32,proto3" json:"epoch_boundary_root_hash32,omitempty"`
|
|
JustifiedEpoch uint64 `protobuf:"varint,3,opt,name=justified_epoch,json=justifiedEpoch,proto3" json:"justified_epoch,omitempty"`
|
|
JustifiedBlockRootHash32 []byte `protobuf:"bytes,4,opt,name=justified_block_root_hash32,json=justifiedBlockRootHash32,proto3" json:"justified_block_root_hash32,omitempty"`
|
|
LatestCrosslink *v1.Crosslink `protobuf:"bytes,5,opt,name=latest_crosslink,json=latestCrosslink,proto3" json:"latest_crosslink,omitempty"`
|
|
HeadSlot uint64 `protobuf:"varint,6,opt,name=head_slot,json=headSlot,proto3" json:"head_slot,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AttestationDataResponse) Reset() { *m = AttestationDataResponse{} }
|
|
func (m *AttestationDataResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*AttestationDataResponse) ProtoMessage() {}
|
|
func (*AttestationDataResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9eb4e94b85965285, []int{5}
|
|
}
|
|
func (m *AttestationDataResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *AttestationDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_AttestationDataResponse.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 (m *AttestationDataResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AttestationDataResponse.Merge(m, src)
|
|
}
|
|
func (m *AttestationDataResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *AttestationDataResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AttestationDataResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AttestationDataResponse proto.InternalMessageInfo
|
|
|
|
func (m *AttestationDataResponse) GetBeaconBlockRootHash32() []byte {
|
|
if m != nil {
|
|
return m.BeaconBlockRootHash32
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *AttestationDataResponse) GetEpochBoundaryRootHash32() []byte {
|
|
if m != nil {
|
|
return m.EpochBoundaryRootHash32
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *AttestationDataResponse) GetJustifiedEpoch() uint64 {
|
|
if m != nil {
|
|
return m.JustifiedEpoch
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *AttestationDataResponse) GetJustifiedBlockRootHash32() []byte {
|
|
if m != nil {
|
|
return m.JustifiedBlockRootHash32
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *AttestationDataResponse) GetLatestCrosslink() *v1.Crosslink {
|
|
if m != nil {
|
|
return m.LatestCrosslink
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *AttestationDataResponse) GetHeadSlot() uint64 {
|
|
if m != nil {
|
|
return m.HeadSlot
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type PendingAttestationsRequest struct {
|
|
FilterReadyForInclusion bool `protobuf:"varint,1,opt,name=filter_ready_for_inclusion,json=filterReadyForInclusion,proto3" json:"filter_ready_for_inclusion,omitempty"`
|
|
ProposalBlockSlot uint64 `protobuf:"varint,2,opt,name=proposal_block_slot,json=proposalBlockSlot,proto3" json:"proposal_block_slot,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PendingAttestationsRequest) Reset() { *m = PendingAttestationsRequest{} }
|
|
func (m *PendingAttestationsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*PendingAttestationsRequest) ProtoMessage() {}
|
|
func (*PendingAttestationsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9eb4e94b85965285, []int{6}
|
|
}
|
|
func (m *PendingAttestationsRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *PendingAttestationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_PendingAttestationsRequest.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 (m *PendingAttestationsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PendingAttestationsRequest.Merge(m, src)
|
|
}
|
|
func (m *PendingAttestationsRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *PendingAttestationsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PendingAttestationsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PendingAttestationsRequest proto.InternalMessageInfo
|
|
|
|
func (m *PendingAttestationsRequest) GetFilterReadyForInclusion() bool {
|
|
if m != nil {
|
|
return m.FilterReadyForInclusion
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *PendingAttestationsRequest) GetProposalBlockSlot() uint64 {
|
|
if m != nil {
|
|
return m.ProposalBlockSlot
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type PendingAttestationsResponse struct {
|
|
PendingAttestations []*v1.Attestation `protobuf:"bytes,1,rep,name=pending_attestations,json=pendingAttestations,proto3" json:"pending_attestations,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PendingAttestationsResponse) Reset() { *m = PendingAttestationsResponse{} }
|
|
func (m *PendingAttestationsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*PendingAttestationsResponse) ProtoMessage() {}
|
|
func (*PendingAttestationsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9eb4e94b85965285, []int{7}
|
|
}
|
|
func (m *PendingAttestationsResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *PendingAttestationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_PendingAttestationsResponse.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 (m *PendingAttestationsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PendingAttestationsResponse.Merge(m, src)
|
|
}
|
|
func (m *PendingAttestationsResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *PendingAttestationsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PendingAttestationsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PendingAttestationsResponse proto.InternalMessageInfo
|
|
|
|
func (m *PendingAttestationsResponse) GetPendingAttestations() []*v1.Attestation {
|
|
if m != nil {
|
|
return m.PendingAttestations
|
|
}
|
|
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{8}
|
|
}
|
|
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 (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
|
|
}
|
|
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"`
|
|
RandaoReveal []byte `protobuf:"bytes,3,opt,name=randao_reveal,json=randaoReveal,proto3" json:"randao_reveal,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_9eb4e94b85965285, []int{9}
|
|
}
|
|
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 (m *ProposeRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProposeRequest.Merge(m, 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) GetRandaoReveal() []byte {
|
|
if m != nil {
|
|
return m.RandaoReveal
|
|
}
|
|
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 {
|
|
BlockRootHash32 []byte `protobuf:"bytes,1,opt,name=block_root_hash32,json=blockRootHash32,proto3" json:"block_root_hash32,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{10}
|
|
}
|
|
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 (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) GetBlockRootHash32() []byte {
|
|
if m != nil {
|
|
return m.BlockRootHash32
|
|
}
|
|
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_9eb4e94b85965285, []int{11}
|
|
}
|
|
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 (m *ProposerIndexRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProposerIndexRequest.Merge(m, 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_9eb4e94b85965285, []int{12}
|
|
}
|
|
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 (m *ProposerIndexResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProposerIndexResponse.Merge(m, 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_9eb4e94b85965285, []int{13}
|
|
}
|
|
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 (m *StateRootResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_StateRootResponse.Merge(m, 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 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_9eb4e94b85965285, []int{14}
|
|
}
|
|
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 (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) GetAttestationHash() []byte {
|
|
if m != nil {
|
|
return m.AttestationHash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
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{15}
|
|
}
|
|
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 (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
|
|
}
|
|
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{16}
|
|
}
|
|
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 (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)
|
|
}
|
|
|
|
var xxx_messageInfo_ValidatorIndexResponse proto.InternalMessageInfo
|
|
|
|
func (m *ValidatorIndexResponse) GetIndex() uint64 {
|
|
if m != nil {
|
|
return m.Index
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CommitteeAssignmentsRequest 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 *CommitteeAssignmentsRequest) Reset() { *m = CommitteeAssignmentsRequest{} }
|
|
func (m *CommitteeAssignmentsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*CommitteeAssignmentsRequest) ProtoMessage() {}
|
|
func (*CommitteeAssignmentsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9eb4e94b85965285, []int{17}
|
|
}
|
|
func (m *CommitteeAssignmentsRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *CommitteeAssignmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_CommitteeAssignmentsRequest.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 (m *CommitteeAssignmentsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CommitteeAssignmentsRequest.Merge(m, src)
|
|
}
|
|
func (m *CommitteeAssignmentsRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *CommitteeAssignmentsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CommitteeAssignmentsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CommitteeAssignmentsRequest proto.InternalMessageInfo
|
|
|
|
func (m *CommitteeAssignmentsRequest) GetEpochStart() uint64 {
|
|
if m != nil {
|
|
return m.EpochStart
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *CommitteeAssignmentsRequest) GetPublicKeys() [][]byte {
|
|
if m != nil {
|
|
return m.PublicKeys
|
|
}
|
|
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_9eb4e94b85965285, []int{18}
|
|
}
|
|
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 (m *PendingDepositsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PendingDepositsResponse.Merge(m, 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 CommitteeAssignmentResponse struct {
|
|
Assignment []*CommitteeAssignmentResponse_CommitteeAssignment `protobuf:"bytes,1,rep,name=assignment,proto3" json:"assignment,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CommitteeAssignmentResponse) Reset() { *m = CommitteeAssignmentResponse{} }
|
|
func (m *CommitteeAssignmentResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*CommitteeAssignmentResponse) ProtoMessage() {}
|
|
func (*CommitteeAssignmentResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9eb4e94b85965285, []int{19}
|
|
}
|
|
func (m *CommitteeAssignmentResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *CommitteeAssignmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_CommitteeAssignmentResponse.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 (m *CommitteeAssignmentResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CommitteeAssignmentResponse.Merge(m, src)
|
|
}
|
|
func (m *CommitteeAssignmentResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *CommitteeAssignmentResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CommitteeAssignmentResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CommitteeAssignmentResponse proto.InternalMessageInfo
|
|
|
|
func (m *CommitteeAssignmentResponse) GetAssignment() []*CommitteeAssignmentResponse_CommitteeAssignment {
|
|
if m != nil {
|
|
return m.Assignment
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CommitteeAssignmentResponse_CommitteeAssignment struct {
|
|
Committee []uint64 `protobuf:"varint,1,rep,packed,name=committee,proto3" json:"committee,omitempty"`
|
|
Shard uint64 `protobuf:"varint,2,opt,name=shard,proto3" json:"shard,omitempty"`
|
|
Slot uint64 `protobuf:"varint,3,opt,name=slot,proto3" json:"slot,omitempty"`
|
|
IsProposer bool `protobuf:"varint,4,opt,name=is_proposer,json=isProposer,proto3" json:"is_proposer,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 *CommitteeAssignmentResponse_CommitteeAssignment) Reset() {
|
|
*m = CommitteeAssignmentResponse_CommitteeAssignment{}
|
|
}
|
|
func (m *CommitteeAssignmentResponse_CommitteeAssignment) String() string {
|
|
return proto.CompactTextString(m)
|
|
}
|
|
func (*CommitteeAssignmentResponse_CommitteeAssignment) ProtoMessage() {}
|
|
func (*CommitteeAssignmentResponse_CommitteeAssignment) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9eb4e94b85965285, []int{19, 0}
|
|
}
|
|
func (m *CommitteeAssignmentResponse_CommitteeAssignment) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *CommitteeAssignmentResponse_CommitteeAssignment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_CommitteeAssignmentResponse_CommitteeAssignment.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 (m *CommitteeAssignmentResponse_CommitteeAssignment) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CommitteeAssignmentResponse_CommitteeAssignment.Merge(m, src)
|
|
}
|
|
func (m *CommitteeAssignmentResponse_CommitteeAssignment) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *CommitteeAssignmentResponse_CommitteeAssignment) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CommitteeAssignmentResponse_CommitteeAssignment.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CommitteeAssignmentResponse_CommitteeAssignment proto.InternalMessageInfo
|
|
|
|
func (m *CommitteeAssignmentResponse_CommitteeAssignment) GetCommittee() []uint64 {
|
|
if m != nil {
|
|
return m.Committee
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommitteeAssignmentResponse_CommitteeAssignment) GetShard() uint64 {
|
|
if m != nil {
|
|
return m.Shard
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *CommitteeAssignmentResponse_CommitteeAssignment) GetSlot() uint64 {
|
|
if m != nil {
|
|
return m.Slot
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *CommitteeAssignmentResponse_CommitteeAssignment) GetIsProposer() bool {
|
|
if m != nil {
|
|
return m.IsProposer
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *CommitteeAssignmentResponse_CommitteeAssignment) GetPublicKey() []byte {
|
|
if m != nil {
|
|
return m.PublicKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommitteeAssignmentResponse_CommitteeAssignment) 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"`
|
|
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{20}
|
|
}
|
|
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.MarshalTo(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
|
|
}
|
|
|
|
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_9eb4e94b85965285, []int{21}
|
|
}
|
|
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 (m *Eth1DataResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Eth1DataResponse.Merge(m, 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.RegisterEnum("ethereum.beacon.rpc.v1.ValidatorRole", ValidatorRole_name, ValidatorRole_value)
|
|
proto.RegisterEnum("ethereum.beacon.rpc.v1.ValidatorStatus", ValidatorStatus_name, ValidatorStatus_value)
|
|
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((*AttestationDataRequest)(nil), "ethereum.beacon.rpc.v1.AttestationDataRequest")
|
|
proto.RegisterType((*AttestationDataResponse)(nil), "ethereum.beacon.rpc.v1.AttestationDataResponse")
|
|
proto.RegisterType((*PendingAttestationsRequest)(nil), "ethereum.beacon.rpc.v1.PendingAttestationsRequest")
|
|
proto.RegisterType((*PendingAttestationsResponse)(nil), "ethereum.beacon.rpc.v1.PendingAttestationsResponse")
|
|
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((*AttestResponse)(nil), "ethereum.beacon.rpc.v1.AttestResponse")
|
|
proto.RegisterType((*ValidatorIndexRequest)(nil), "ethereum.beacon.rpc.v1.ValidatorIndexRequest")
|
|
proto.RegisterType((*ValidatorIndexResponse)(nil), "ethereum.beacon.rpc.v1.ValidatorIndexResponse")
|
|
proto.RegisterType((*CommitteeAssignmentsRequest)(nil), "ethereum.beacon.rpc.v1.CommitteeAssignmentsRequest")
|
|
proto.RegisterType((*PendingDepositsResponse)(nil), "ethereum.beacon.rpc.v1.PendingDepositsResponse")
|
|
proto.RegisterType((*CommitteeAssignmentResponse)(nil), "ethereum.beacon.rpc.v1.CommitteeAssignmentResponse")
|
|
proto.RegisterType((*CommitteeAssignmentResponse_CommitteeAssignment)(nil), "ethereum.beacon.rpc.v1.CommitteeAssignmentResponse.CommitteeAssignment")
|
|
proto.RegisterType((*ValidatorStatusResponse)(nil), "ethereum.beacon.rpc.v1.ValidatorStatusResponse")
|
|
proto.RegisterType((*Eth1DataResponse)(nil), "ethereum.beacon.rpc.v1.Eth1DataResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("proto/beacon/rpc/v1/services.proto", fileDescriptor_9eb4e94b85965285) }
|
|
|
|
var fileDescriptor_9eb4e94b85965285 = []byte{
|
|
// 1646 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0x4f, 0x6f, 0xdb, 0xca,
|
|
0x11, 0x7f, 0x94, 0x64, 0x3f, 0x7b, 0x2c, 0x5b, 0xf4, 0xfa, 0x8f, 0x54, 0x39, 0x2f, 0xf6, 0xe3,
|
|
0x03, 0x1a, 0xc7, 0x68, 0xa8, 0x58, 0x7e, 0x78, 0x2f, 0x68, 0x10, 0xa4, 0x92, 0xad, 0xc4, 0x6a,
|
|
0x0c, 0xc7, 0xa1, 0x94, 0xb8, 0x0d, 0x8a, 0x12, 0x2b, 0x69, 0x2d, 0xb1, 0xa6, 0xb8, 0x0c, 0xb9,
|
|
0x12, 0xe2, 0x4b, 0x8a, 0x1e, 0x8b, 0x7e, 0x87, 0x7e, 0x97, 0xde, 0x7a, 0xec, 0xad, 0xb7, 0xa2,
|
|
0xf0, 0xa1, 0xfd, 0x0a, 0x05, 0x7a, 0x29, 0x76, 0xb9, 0xa4, 0xa8, 0x3f, 0xf4, 0x9f, 0xde, 0xb8,
|
|
0x33, 0xf3, 0x9b, 0x9d, 0xf9, 0xed, 0xec, 0xec, 0x48, 0xa0, 0xb9, 0x1e, 0x65, 0xb4, 0xd4, 0x22,
|
|
0xb8, 0x4d, 0x9d, 0x92, 0xe7, 0xb6, 0x4b, 0xc3, 0xfd, 0x92, 0x4f, 0xbc, 0xa1, 0xd5, 0x26, 0xbe,
|
|
0x2e, 0x94, 0x68, 0x93, 0xb0, 0x1e, 0xf1, 0xc8, 0xa0, 0xaf, 0x07, 0x66, 0xba, 0xe7, 0xb6, 0xf5,
|
|
0xe1, 0x7e, 0x71, 0x7b, 0x0c, 0xeb, 0x96, 0x5d, 0x8e, 0x65, 0x57, 0x6e, 0x08, 0x2c, 0x6e, 0x75,
|
|
0x29, 0xed, 0xda, 0xa4, 0x24, 0x56, 0xad, 0xc1, 0x45, 0x89, 0xf4, 0x5d, 0x76, 0x25, 0x95, 0xdb,
|
|
0x93, 0x4a, 0x66, 0xf5, 0x89, 0xcf, 0x70, 0xdf, 0x0d, 0x0c, 0xb4, 0x33, 0xd8, 0xfa, 0x80, 0x6d,
|
|
0xab, 0x83, 0x19, 0xf5, 0xce, 0x88, 0x77, 0x41, 0xbd, 0x3e, 0x76, 0xda, 0xc4, 0x20, 0x9f, 0x06,
|
|
0xc4, 0x67, 0x08, 0x41, 0xc6, 0xb7, 0x29, 0x2b, 0x28, 0x3b, 0xca, 0x6e, 0xc6, 0x10, 0xdf, 0xe8,
|
|
0x1b, 0x00, 0x77, 0xd0, 0xb2, 0xad, 0xb6, 0x79, 0x49, 0xae, 0x0a, 0xa9, 0x1d, 0x65, 0x37, 0x6b,
|
|
0x2c, 0x06, 0x92, 0x37, 0xe4, 0x4a, 0xfb, 0xbb, 0x02, 0x0f, 0x66, 0xbb, 0xf4, 0x5d, 0xea, 0xf8,
|
|
0x04, 0x15, 0xe0, 0xeb, 0x16, 0xb6, 0xb9, 0x48, 0xba, 0x0d, 0x97, 0xe8, 0x31, 0xa8, 0x8c, 0x32,
|
|
0x6c, 0x9b, 0xc3, 0x10, 0xef, 0x0b, 0xff, 0x19, 0x23, 0x27, 0xe4, 0x91, 0x5b, 0x1f, 0xfd, 0x00,
|
|
0xf9, 0xc0, 0x14, 0xb7, 0x99, 0x35, 0x24, 0x71, 0x44, 0x5a, 0x20, 0x36, 0x84, 0xba, 0x22, 0xb4,
|
|
0x31, 0xdc, 0xcf, 0xe1, 0x27, 0x78, 0x48, 0x3c, 0xdc, 0x8d, 0x41, 0xcc, 0x30, 0x9c, 0xcc, 0x8e,
|
|
0xb2, 0x9b, 0x32, 0xf2, 0xd2, 0x20, 0x42, 0x55, 0x03, 0xb5, 0xf6, 0x3d, 0x14, 0x23, 0x99, 0x70,
|
|
0x8c, 0x99, 0x45, 0x9d, 0x90, 0xaa, 0x4d, 0x98, 0x77, 0x07, 0x2d, 0x4e, 0x89, 0x22, 0x28, 0x91,
|
|
0x2b, 0xed, 0xb7, 0x31, 0x86, 0xe3, 0x28, 0xc9, 0xc6, 0x4b, 0x58, 0x8c, 0x02, 0x11, 0xc8, 0xa5,
|
|
0xf2, 0xb7, 0xfa, 0x64, 0x2d, 0xb8, 0x65, 0x57, 0x1f, 0xee, 0xeb, 0x91, 0x1f, 0x63, 0x84, 0xd1,
|
|
0xaa, 0xb0, 0x59, 0x61, 0x8c, 0x1f, 0x2a, 0xf7, 0x7b, 0x84, 0x19, 0x0e, 0x23, 0x5a, 0x87, 0x39,
|
|
0xbf, 0x87, 0xbd, 0x8e, 0xa4, 0x39, 0x58, 0x44, 0x47, 0x9a, 0x1a, 0x1d, 0xa9, 0x76, 0x9d, 0x82,
|
|
0xfc, 0x94, 0x13, 0x19, 0xe0, 0x8f, 0x50, 0x08, 0xa2, 0x30, 0x5b, 0x36, 0x6d, 0x5f, 0x9a, 0x1e,
|
|
0xa5, 0xcc, 0xec, 0x61, 0xbf, 0x77, 0x50, 0x96, 0x99, 0x6e, 0x04, 0xfa, 0x2a, 0x57, 0x1b, 0x94,
|
|
0xb2, 0x63, 0xa1, 0x44, 0xcf, 0xa1, 0x48, 0x5c, 0xda, 0xee, 0x99, 0x2d, 0x3a, 0x70, 0x3a, 0xd8,
|
|
0xbb, 0x1a, 0x83, 0x06, 0x75, 0x93, 0x17, 0x16, 0x55, 0x69, 0x10, 0x03, 0x3f, 0x82, 0xdc, 0xef,
|
|
0x06, 0x3e, 0xb3, 0x2e, 0x2c, 0xd2, 0x31, 0x85, 0x91, 0x3c, 0xd7, 0x95, 0x48, 0x5c, 0xe3, 0x52,
|
|
0xf4, 0x02, 0xb6, 0x46, 0x86, 0xd3, 0x11, 0x66, 0xc4, 0x36, 0x85, 0xc8, 0x64, 0x32, 0xc8, 0x13,
|
|
0x50, 0x6d, 0xcc, 0x13, 0x37, 0xdb, 0x1e, 0xf5, 0x7d, 0xdb, 0x72, 0x2e, 0x0b, 0x73, 0x37, 0x9f,
|
|
0xc2, 0x61, 0x68, 0x68, 0xe4, 0x02, 0x68, 0x24, 0x40, 0x5b, 0xb0, 0xd8, 0x23, 0xb8, 0x63, 0x0a,
|
|
0x82, 0xe7, 0x45, 0xbc, 0x0b, 0x5c, 0xd0, 0xe0, 0x24, 0xff, 0x51, 0x81, 0xe2, 0x19, 0x71, 0x3a,
|
|
0x96, 0xd3, 0x8d, 0x71, 0xed, 0x87, 0xa7, 0xf5, 0x1c, 0x8a, 0x17, 0x96, 0xcd, 0x88, 0x67, 0x7a,
|
|
0x04, 0x77, 0xae, 0xcc, 0x0b, 0xea, 0x99, 0x96, 0xd3, 0xb6, 0x07, 0xbe, 0x45, 0x1d, 0xc1, 0xf4,
|
|
0x82, 0x91, 0x0f, 0x2c, 0x0c, 0x6e, 0xf0, 0x8a, 0x7a, 0xf5, 0x50, 0x8d, 0x74, 0x58, 0x73, 0x3d,
|
|
0xea, 0x52, 0x1f, 0xdb, 0x92, 0x84, 0xd8, 0x19, 0xaf, 0x86, 0x2a, 0x91, 0xbc, 0x88, 0x65, 0x00,
|
|
0x5b, 0x33, 0x43, 0x91, 0x67, 0xfe, 0x01, 0xd6, 0xdd, 0x40, 0x6d, 0xe2, 0x98, 0xbe, 0xa0, 0xec,
|
|
0xa4, 0x77, 0x97, 0xca, 0xdf, 0x25, 0x31, 0x13, 0xf3, 0x65, 0xac, 0xb9, 0xd3, 0xfe, 0xb5, 0x77,
|
|
0x80, 0x0e, 0x7b, 0xd8, 0x72, 0x1a, 0x0c, 0x7b, 0x2c, 0xde, 0x10, 0x7c, 0x2e, 0x20, 0x1d, 0x99,
|
|
0x66, 0xb8, 0x44, 0xdf, 0x42, 0xb6, 0x4b, 0x1c, 0xe2, 0x5b, 0xbe, 0xc9, 0x1b, 0x97, 0xcc, 0x67,
|
|
0x49, 0xca, 0x9a, 0x56, 0x9f, 0x68, 0x7f, 0x4e, 0xc1, 0xca, 0x99, 0xc8, 0x2f, 0x6a, 0x5a, 0xdb,
|
|
0xb0, 0xe4, 0x62, 0x8f, 0x38, 0x41, 0x11, 0xc8, 0x22, 0x85, 0x40, 0xc4, 0x8f, 0x9d, 0x1b, 0x70,
|
|
0x7a, 0x4c, 0x67, 0xd0, 0x6f, 0x11, 0x4f, 0x7a, 0x05, 0x2e, 0x3a, 0x15, 0x12, 0xf4, 0x1d, 0x2c,
|
|
0x7b, 0xd8, 0xe9, 0x60, 0x6a, 0x7a, 0x64, 0x48, 0xb0, 0x2d, 0x6a, 0x2f, 0x6b, 0x64, 0x03, 0xa1,
|
|
0x21, 0x64, 0xa8, 0x04, 0x6b, 0x31, 0x72, 0xcc, 0x96, 0xc5, 0xfa, 0xd8, 0xbf, 0x94, 0x15, 0x87,
|
|
0x62, 0xaa, 0x6a, 0xa0, 0x11, 0xbd, 0x27, 0x06, 0xc0, 0xdd, 0xae, 0x47, 0xba, 0x98, 0x11, 0xd3,
|
|
0xb7, 0xba, 0x85, 0xb9, 0x9d, 0xf4, 0x6e, 0xc6, 0xc8, 0xc7, 0x0c, 0x2a, 0xa1, 0xbe, 0x61, 0x75,
|
|
0xd1, 0x33, 0x58, 0x8c, 0x5a, 0xb7, 0xa8, 0xac, 0xa5, 0x72, 0x51, 0x0f, 0x9a, 0xbb, 0x1e, 0x36,
|
|
0x77, 0xbd, 0x19, 0x5a, 0x18, 0x23, 0x63, 0xed, 0x05, 0xe4, 0x22, 0x7e, 0x24, 0xe1, 0x7b, 0xb0,
|
|
0x9a, 0x74, 0x97, 0x73, 0xad, 0xf1, 0x0b, 0xa2, 0xfd, 0x08, 0xeb, 0x12, 0xee, 0xd5, 0x9d, 0x0e,
|
|
0xf9, 0x1c, 0x23, 0x39, 0xce, 0xa1, 0x32, 0xc9, 0xa1, 0xf6, 0x04, 0x36, 0x26, 0x80, 0x72, 0xf7,
|
|
0x75, 0x98, 0xb3, 0xb8, 0x20, 0x6c, 0x4b, 0x62, 0xa1, 0x95, 0x61, 0xb5, 0xc1, 0x30, 0x23, 0x7c,
|
|
0xeb, 0xc8, 0xf4, 0x1b, 0x00, 0x4e, 0x06, 0x11, 0x81, 0xca, 0x08, 0x17, 0xfd, 0xd0, 0x4c, 0x7b,
|
|
0x0e, 0x2b, 0x41, 0x79, 0x45, 0x80, 0xc7, 0xa0, 0xc6, 0x29, 0x8e, 0x9d, 0x7f, 0x2e, 0x26, 0xe7,
|
|
0xa9, 0x69, 0x3f, 0xc0, 0x46, 0xd4, 0x4f, 0xc7, 0x32, 0x1b, 0x7f, 0xdf, 0x94, 0xc9, 0xf7, 0x4d,
|
|
0x87, 0xcd, 0x49, 0xdc, 0x8d, 0x89, 0x99, 0xb0, 0x75, 0x48, 0xfb, 0x7d, 0x8b, 0x31, 0x42, 0x2a,
|
|
0xbe, 0x6f, 0x75, 0x9d, 0x3e, 0x71, 0x98, 0x1f, 0xe3, 0x31, 0xe8, 0x92, 0xa2, 0xe6, 0x43, 0x1e,
|
|
0x85, 0x48, 0xdc, 0x12, 0x51, 0xcd, 0x51, 0x38, 0xfc, 0x3d, 0x4c, 0x8b, 0x6a, 0x0e, 0xe3, 0xf1,
|
|
0x35, 0x02, 0x79, 0x79, 0x97, 0x8f, 0x88, 0x4b, 0x7d, 0x8b, 0x8d, 0xee, 0xf1, 0x2f, 0x41, 0x0d,
|
|
0xef, 0x71, 0x47, 0xea, 0xe4, 0x1d, 0xde, 0x4e, 0xba, 0xc3, 0xd2, 0x87, 0x91, 0x73, 0xc7, 0x7d,
|
|
0x6a, 0xff, 0x4e, 0xcd, 0x4c, 0x24, 0xda, 0xab, 0x0b, 0x80, 0x23, 0xa9, 0xdc, 0xe5, 0xb5, 0x3e,
|
|
0x7b, 0xaa, 0xd1, 0x6f, 0x70, 0x34, 0x53, 0x17, 0x73, 0x5d, 0xfc, 0x87, 0x02, 0x6b, 0x33, 0x6c,
|
|
0xd0, 0x03, 0x58, 0x6c, 0x87, 0x62, 0xb1, 0x7f, 0xc6, 0x18, 0x09, 0x46, 0x8f, 0x61, 0x6a, 0xd6,
|
|
0x63, 0x98, 0x8e, 0xcd, 0x37, 0xdb, 0xb0, 0x64, 0xf9, 0xa6, 0x2b, 0x6b, 0x57, 0xdc, 0xe7, 0x05,
|
|
0x03, 0x2c, 0x3f, 0xac, 0xe6, 0x89, 0x02, 0x99, 0x9b, 0x28, 0x10, 0xf4, 0x12, 0xe6, 0x79, 0x9d,
|
|
0x0d, 0x7c, 0x71, 0x4f, 0x57, 0xca, 0x8f, 0x92, 0x48, 0x88, 0xca, 0xa8, 0x21, 0xcc, 0x0d, 0x09,
|
|
0xd3, 0x3e, 0x42, 0x7e, 0x52, 0x35, 0x9a, 0x16, 0x42, 0xdf, 0xca, 0xff, 0xe7, 0xfb, 0x1d, 0xa8,
|
|
0x35, 0xd6, 0xdb, 0x1f, 0x7b, 0xe1, 0x5f, 0xc0, 0x22, 0x61, 0xbd, 0x7d, 0xb3, 0x83, 0x19, 0x96,
|
|
0x23, 0xc8, 0x4e, 0x52, 0x79, 0x44, 0xe0, 0x05, 0x22, 0xbf, 0xf6, 0x9e, 0xc1, 0xf2, 0x68, 0x30,
|
|
0xa1, 0x36, 0x41, 0x4b, 0xf0, 0xf5, 0xfb, 0xd3, 0x37, 0xa7, 0x6f, 0xcf, 0x4f, 0xd5, 0xaf, 0x50,
|
|
0x16, 0x16, 0x2a, 0xcd, 0x66, 0xad, 0xd1, 0xac, 0x19, 0xaa, 0xc2, 0x57, 0x67, 0xc6, 0xdb, 0xb3,
|
|
0xb7, 0x8d, 0x9a, 0xa1, 0xa6, 0xf6, 0xfe, 0xa4, 0x40, 0x6e, 0x22, 0x50, 0x84, 0x60, 0x45, 0x82,
|
|
0xcd, 0x46, 0xb3, 0xd2, 0x7c, 0xdf, 0x50, 0xbf, 0xe2, 0xb2, 0xb3, 0xda, 0xe9, 0x51, 0xfd, 0xf4,
|
|
0xb5, 0x59, 0x39, 0x6c, 0xd6, 0x3f, 0xd4, 0x54, 0x05, 0x01, 0xcc, 0xcb, 0xef, 0x14, 0xd7, 0xd7,
|
|
0x4f, 0xeb, 0xcd, 0x7a, 0xa5, 0x59, 0x3b, 0x32, 0x6b, 0xbf, 0xaa, 0x37, 0xd5, 0x34, 0x52, 0x21,
|
|
0x7b, 0x5e, 0x6f, 0x1e, 0x1f, 0x19, 0x95, 0xf3, 0x4a, 0xf5, 0xa4, 0xa6, 0x66, 0x38, 0x82, 0xeb,
|
|
0x6a, 0x47, 0xea, 0x1c, 0x47, 0x04, 0xdf, 0x66, 0xe3, 0xa4, 0xd2, 0x38, 0xae, 0x1d, 0xa9, 0xf3,
|
|
0xe5, 0xff, 0xa4, 0x61, 0xb9, 0x2a, 0x92, 0x6d, 0x04, 0xa3, 0x39, 0xfa, 0x35, 0xac, 0x9e, 0x63,
|
|
0x8b, 0xbd, 0xa2, 0xde, 0xe8, 0xd5, 0x42, 0x9b, 0x53, 0x6d, 0xb7, 0xc6, 0x07, 0xee, 0xe2, 0x5e,
|
|
0x62, 0xad, 0x4f, 0xbd, 0x78, 0x4f, 0x15, 0x74, 0x02, 0xcb, 0x87, 0xd8, 0xa1, 0x8e, 0xd5, 0xc6,
|
|
0xf6, 0x31, 0xc1, 0x9d, 0x44, 0xb7, 0x89, 0x8f, 0x6d, 0x75, 0x34, 0x74, 0x21, 0x03, 0x56, 0x4f,
|
|
0xc4, 0x28, 0x12, 0x7b, 0x6d, 0xef, 0xef, 0x31, 0x06, 0x7e, 0xaa, 0xa0, 0x8f, 0x90, 0x9b, 0x68,
|
|
0x2b, 0x89, 0x1e, 0x4b, 0x49, 0xa9, 0x27, 0xf5, 0xa5, 0x13, 0x58, 0x08, 0x0b, 0x29, 0xd1, 0xe9,
|
|
0x6e, 0x92, 0xd3, 0xa9, 0xfa, 0xfd, 0x05, 0x2c, 0xbc, 0xa2, 0xde, 0xe5, 0x8d, 0xde, 0x1e, 0x24,
|
|
0x25, 0xcd, 0x91, 0xe5, 0x7f, 0x29, 0x90, 0x0b, 0xb2, 0x27, 0xde, 0xe8, 0xf0, 0x21, 0x10, 0x89,
|
|
0xe3, 0xb9, 0x0b, 0x69, 0xc5, 0x9f, 0x26, 0x85, 0x3c, 0xf1, 0x4a, 0x7d, 0x86, 0x8d, 0x89, 0x69,
|
|
0xbb, 0xc2, 0xf8, 0x58, 0x86, 0xf4, 0x9b, 0x1d, 0x4c, 0x4e, 0xf8, 0xc9, 0xc4, 0x27, 0x0c, 0xf3,
|
|
0xe5, 0xbf, 0xa4, 0xa3, 0x69, 0x20, 0x4a, 0xd4, 0x86, 0xe5, 0xb1, 0x87, 0x1a, 0xfd, 0x2c, 0xf1,
|
|
0x38, 0x67, 0x0c, 0x02, 0xc5, 0x27, 0x77, 0xb4, 0x96, 0xb9, 0x7f, 0x81, 0xb5, 0x19, 0x93, 0x27,
|
|
0x2a, 0xdf, 0x52, 0x42, 0x33, 0x26, 0xe6, 0xe2, 0xc1, 0xbd, 0x30, 0x72, 0xff, 0xdf, 0x40, 0x56,
|
|
0x06, 0x16, 0x5c, 0x9d, 0xbb, 0xdc, 0xaf, 0xe2, 0xa3, 0x5b, 0x72, 0x8c, 0xbc, 0xb7, 0x40, 0x3d,
|
|
0xa4, 0x7d, 0x77, 0xc0, 0x48, 0x34, 0xcc, 0xdc, 0x6d, 0x87, 0xc7, 0x49, 0x3b, 0x4c, 0x0d, 0x45,
|
|
0xe5, 0xff, 0x66, 0x40, 0x1d, 0x75, 0x4d, 0x79, 0x88, 0x5f, 0xa2, 0x56, 0x35, 0xfa, 0x8d, 0x99,
|
|
0x4c, 0x6a, 0xf2, 0xcf, 0xd8, 0x64, 0x52, 0x6f, 0xf8, 0x11, 0xfb, 0x54, 0x41, 0x14, 0x56, 0xc6,
|
|
0xa7, 0x22, 0xf4, 0xe4, 0x56, 0x47, 0x63, 0x65, 0xa4, 0xdf, 0xd5, 0x5c, 0x32, 0xfd, 0xfb, 0xd9,
|
|
0x43, 0xc0, 0xc1, 0x3d, 0x26, 0x8e, 0xdb, 0x0b, 0xe9, 0xa6, 0x79, 0xe7, 0xd3, 0xf4, 0xdb, 0x75,
|
|
0xcf, 0x94, 0x4b, 0x77, 0x7d, 0xbc, 0xc3, 0x2d, 0xff, 0xa0, 0xc0, 0xfa, 0xac, 0xbf, 0x56, 0xd0,
|
|
0xed, 0x87, 0x36, 0xfd, 0xdf, 0x4e, 0xf1, 0xfb, 0xfb, 0x81, 0x82, 0x18, 0xaa, 0xd9, 0xbf, 0x5e,
|
|
0x3f, 0x54, 0xfe, 0x76, 0xfd, 0x50, 0xf9, 0xe7, 0xf5, 0x43, 0xa5, 0x35, 0x2f, 0xda, 0xec, 0xc1,
|
|
0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xef, 0x0b, 0x12, 0x9b, 0xe2, 0x12, 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
|
|
|
|
// 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)
|
|
ForkData(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*v1.Fork, 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
|
|
}
|
|
|
|
func (c *beaconServiceClient) ForkData(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*v1.Fork, error) {
|
|
out := new(v1.Fork)
|
|
err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.BeaconService/ForkData", 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)
|
|
ForkData(context.Context, *types.Empty) (*v1.Fork, 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)
|
|
}
|
|
|
|
func _BeaconService_ForkData_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).ForkData(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.beacon.rpc.v1.BeaconService/ForkData",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BeaconServiceServer).ForkData(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,
|
|
},
|
|
{
|
|
MethodName: "ForkData",
|
|
Handler: _BeaconService_ForkData_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 *v1.Attestation, opts ...grpc.CallOption) (*AttestResponse, error)
|
|
AttestationDataAtSlot(ctx context.Context, in *AttestationDataRequest, opts ...grpc.CallOption) (*AttestationDataResponse, error)
|
|
}
|
|
|
|
type attesterServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewAttesterServiceClient(cc *grpc.ClientConn) AttesterServiceClient {
|
|
return &attesterServiceClient{cc}
|
|
}
|
|
|
|
func (c *attesterServiceClient) AttestHead(ctx context.Context, in *v1.Attestation, 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
|
|
}
|
|
|
|
func (c *attesterServiceClient) AttestationDataAtSlot(ctx context.Context, in *AttestationDataRequest, opts ...grpc.CallOption) (*AttestationDataResponse, error) {
|
|
out := new(AttestationDataResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.AttesterService/AttestationDataAtSlot", 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, *v1.Attestation) (*AttestResponse, error)
|
|
AttestationDataAtSlot(context.Context, *AttestationDataRequest) (*AttestationDataResponse, 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(v1.Attestation)
|
|
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.(*v1.Attestation))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _AttesterService_AttestationDataAtSlot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AttestationDataRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AttesterServiceServer).AttestationDataAtSlot(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.beacon.rpc.v1.AttesterService/AttestationDataAtSlot",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AttesterServiceServer).AttestationDataAtSlot(ctx, req.(*AttestationDataRequest))
|
|
}
|
|
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,
|
|
},
|
|
{
|
|
MethodName: "AttestationDataAtSlot",
|
|
Handler: _AttesterService_AttestationDataAtSlot_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)
|
|
PendingAttestations(ctx context.Context, in *PendingAttestationsRequest, opts ...grpc.CallOption) (*PendingAttestationsResponse, 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) PendingAttestations(ctx context.Context, in *PendingAttestationsRequest, opts ...grpc.CallOption) (*PendingAttestationsResponse, error) {
|
|
out := new(PendingAttestationsResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ProposerService/PendingAttestations", 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)
|
|
PendingAttestations(context.Context, *PendingAttestationsRequest) (*PendingAttestationsResponse, 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_PendingAttestations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(PendingAttestationsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProposerServiceServer).PendingAttestations(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.beacon.rpc.v1.ProposerService/PendingAttestations",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProposerServiceServer).PendingAttestations(ctx, req.(*PendingAttestationsRequest))
|
|
}
|
|
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: "PendingAttestations",
|
|
Handler: _ProposerService_PendingAttestations_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 {
|
|
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 *CommitteeAssignmentsRequest, opts ...grpc.CallOption) (*CommitteeAssignmentResponse, error)
|
|
ValidatorStatus(ctx context.Context, in *ValidatorIndexRequest, opts ...grpc.CallOption) (*ValidatorStatusResponse, error)
|
|
ValidatorPerformance(ctx context.Context, in *ValidatorPerformanceRequest, opts ...grpc.CallOption) (*ValidatorPerformanceResponse, error)
|
|
}
|
|
|
|
type validatorServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewValidatorServiceClient(cc *grpc.ClientConn) ValidatorServiceClient {
|
|
return &validatorServiceClient{cc}
|
|
}
|
|
|
|
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 *CommitteeAssignmentsRequest, opts ...grpc.CallOption) (*CommitteeAssignmentResponse, error) {
|
|
out := new(CommitteeAssignmentResponse)
|
|
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
|
|
}
|
|
|
|
// ValidatorServiceServer is the server API for ValidatorService service.
|
|
type ValidatorServiceServer interface {
|
|
WaitForActivation(*ValidatorActivationRequest, ValidatorService_WaitForActivationServer) error
|
|
ValidatorIndex(context.Context, *ValidatorIndexRequest) (*ValidatorIndexResponse, error)
|
|
CommitteeAssignment(context.Context, *CommitteeAssignmentsRequest) (*CommitteeAssignmentResponse, error)
|
|
ValidatorStatus(context.Context, *ValidatorIndexRequest) (*ValidatorStatusResponse, error)
|
|
ValidatorPerformance(context.Context, *ValidatorPerformanceRequest) (*ValidatorPerformanceResponse, error)
|
|
}
|
|
|
|
func RegisterValidatorServiceServer(s *grpc.Server, srv ValidatorServiceServer) {
|
|
s.RegisterService(&_ValidatorService_serviceDesc, srv)
|
|
}
|
|
|
|
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(CommitteeAssignmentsRequest)
|
|
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.(*CommitteeAssignmentsRequest))
|
|
}
|
|
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)
|
|
}
|
|
|
|
var _ValidatorService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "ethereum.beacon.rpc.v1.ValidatorService",
|
|
HandlerType: (*ValidatorServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "ValidatorIndex",
|
|
Handler: _ValidatorService_ValidatorIndex_Handler,
|
|
},
|
|
{
|
|
MethodName: "CommitteeAssignment",
|
|
Handler: _ValidatorService_CommitteeAssignment_Handler,
|
|
},
|
|
{
|
|
MethodName: "ValidatorStatus",
|
|
Handler: _ValidatorService_ValidatorStatus_Handler,
|
|
},
|
|
{
|
|
MethodName: "ValidatorPerformance",
|
|
Handler: _ValidatorService_ValidatorPerformance_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{
|
|
{
|
|
StreamName: "WaitForActivation",
|
|
Handler: _ValidatorService_WaitForActivation_Handler,
|
|
ServerStreams: true,
|
|
},
|
|
},
|
|
Metadata: "proto/beacon/rpc/v1/services.proto",
|
|
}
|
|
|
|
func (m *ValidatorPerformanceRequest) 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 *ValidatorPerformanceRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
var i int
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Slot != 0 {
|
|
dAtA[i] = 0x8
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.Slot))
|
|
}
|
|
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 *ValidatorPerformanceResponse) 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 *ValidatorPerformanceResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
var i int
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Balance != 0 {
|
|
dAtA[i] = 0x8
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.Balance))
|
|
}
|
|
if m.TotalValidators != 0 {
|
|
dAtA[i] = 0x10
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.TotalValidators))
|
|
}
|
|
if m.TotalActiveValidators != 0 {
|
|
dAtA[i] = 0x18
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.TotalActiveValidators))
|
|
}
|
|
if m.AverageValidatorBalance != 0 {
|
|
dAtA[i] = 0x25
|
|
i++
|
|
encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.AverageValidatorBalance))))
|
|
i += 4
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
return i, nil
|
|
}
|
|
|
|
func (m *ValidatorActivationRequest) 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 *ValidatorActivationRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
var i int
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Pubkey) > 0 {
|
|
dAtA[i] = 0xa
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(len(m.Pubkey)))
|
|
i += copy(dAtA[i:], m.Pubkey)
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
return i, nil
|
|
}
|
|
|
|
func (m *ValidatorActivationResponse) 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 *ValidatorActivationResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
var i int
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Validator != nil {
|
|
dAtA[i] = 0xa
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.Validator.Size()))
|
|
n1, err := m.Validator.MarshalTo(dAtA[i:])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i += n1
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
return i, nil
|
|
}
|
|
|
|
func (m *AttestationDataRequest) 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 *AttestationDataRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
var i int
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Shard != 0 {
|
|
dAtA[i] = 0x8
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.Shard))
|
|
}
|
|
if m.Slot != 0 {
|
|
dAtA[i] = 0x10
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.Slot))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
return i, nil
|
|
}
|
|
|
|
func (m *AttestationDataResponse) 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 *AttestationDataResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
var i int
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.BeaconBlockRootHash32) > 0 {
|
|
dAtA[i] = 0xa
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(len(m.BeaconBlockRootHash32)))
|
|
i += copy(dAtA[i:], m.BeaconBlockRootHash32)
|
|
}
|
|
if len(m.EpochBoundaryRootHash32) > 0 {
|
|
dAtA[i] = 0x12
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(len(m.EpochBoundaryRootHash32)))
|
|
i += copy(dAtA[i:], m.EpochBoundaryRootHash32)
|
|
}
|
|
if m.JustifiedEpoch != 0 {
|
|
dAtA[i] = 0x18
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.JustifiedEpoch))
|
|
}
|
|
if len(m.JustifiedBlockRootHash32) > 0 {
|
|
dAtA[i] = 0x22
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(len(m.JustifiedBlockRootHash32)))
|
|
i += copy(dAtA[i:], m.JustifiedBlockRootHash32)
|
|
}
|
|
if m.LatestCrosslink != nil {
|
|
dAtA[i] = 0x2a
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.LatestCrosslink.Size()))
|
|
n2, err := m.LatestCrosslink.MarshalTo(dAtA[i:])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i += n2
|
|
}
|
|
if m.HeadSlot != 0 {
|
|
dAtA[i] = 0x30
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.HeadSlot))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
return i, nil
|
|
}
|
|
|
|
func (m *PendingAttestationsRequest) 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 *PendingAttestationsRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
var i int
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.FilterReadyForInclusion {
|
|
dAtA[i] = 0x8
|
|
i++
|
|
if m.FilterReadyForInclusion {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i++
|
|
}
|
|
if m.ProposalBlockSlot != 0 {
|
|
dAtA[i] = 0x10
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.ProposalBlockSlot))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
return i, nil
|
|
}
|
|
|
|
func (m *PendingAttestationsResponse) 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 *PendingAttestationsResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
var i int
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.PendingAttestations) > 0 {
|
|
for _, msg := range m.PendingAttestations {
|
|
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 *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.RandaoReveal) > 0 {
|
|
dAtA[i] = 0x1a
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(len(m.RandaoReveal)))
|
|
i += copy(dAtA[i:], m.RandaoReveal)
|
|
}
|
|
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 {
|
|
dAtA4 := make([]byte, len(m.AttestationAggregateSig)*10)
|
|
var j3 int
|
|
for _, num := range m.AttestationAggregateSig {
|
|
for num >= 1<<7 {
|
|
dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80)
|
|
num >>= 7
|
|
j3++
|
|
}
|
|
dAtA4[j3] = uint8(num)
|
|
j3++
|
|
}
|
|
dAtA[i] = 0x2a
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(j3))
|
|
i += copy(dAtA[i:], dAtA4[:j3])
|
|
}
|
|
if m.Timestamp != nil {
|
|
dAtA[i] = 0x32
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.Timestamp.Size()))
|
|
n5, err := m.Timestamp.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 *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.BlockRootHash32) > 0 {
|
|
dAtA[i] = 0xa
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(len(m.BlockRootHash32)))
|
|
i += copy(dAtA[i:], m.BlockRootHash32)
|
|
}
|
|
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 *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 *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 *CommitteeAssignmentsRequest) 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 *CommitteeAssignmentsRequest) 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.PublicKeys) > 0 {
|
|
for _, b := range m.PublicKeys {
|
|
dAtA[i] = 0x12
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(len(b)))
|
|
i += copy(dAtA[i:], b)
|
|
}
|
|
}
|
|
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 *CommitteeAssignmentResponse) 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 *CommitteeAssignmentResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
var i int
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Assignment) > 0 {
|
|
for _, msg := range m.Assignment {
|
|
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 *CommitteeAssignmentResponse_CommitteeAssignment) 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 *CommitteeAssignmentResponse_CommitteeAssignment) MarshalTo(dAtA []byte) (int, error) {
|
|
var i int
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Committee) > 0 {
|
|
dAtA7 := make([]byte, len(m.Committee)*10)
|
|
var j6 int
|
|
for _, num := range m.Committee {
|
|
for num >= 1<<7 {
|
|
dAtA7[j6] = uint8(uint64(num)&0x7f | 0x80)
|
|
num >>= 7
|
|
j6++
|
|
}
|
|
dAtA7[j6] = uint8(num)
|
|
j6++
|
|
}
|
|
dAtA[i] = 0xa
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(j6))
|
|
i += copy(dAtA[i:], dAtA7[:j6])
|
|
}
|
|
if m.Shard != 0 {
|
|
dAtA[i] = 0x10
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.Shard))
|
|
}
|
|
if m.Slot != 0 {
|
|
dAtA[i] = 0x18
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.Slot))
|
|
}
|
|
if m.IsProposer {
|
|
dAtA[i] = 0x20
|
|
i++
|
|
if m.IsProposer {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i++
|
|
}
|
|
if len(m.PublicKey) > 0 {
|
|
dAtA[i] = 0x2a
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(len(m.PublicKey)))
|
|
i += copy(dAtA[i:], m.PublicKey)
|
|
}
|
|
if m.Status != 0 {
|
|
dAtA[i] = 0x30
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.Status))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
return i, nil
|
|
}
|
|
|
|
func (m *ValidatorStatusResponse) 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 *ValidatorStatusResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
var i int
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Status != 0 {
|
|
dAtA[i] = 0x8
|
|
i++
|
|
i = encodeVarintServices(dAtA, i, uint64(m.Status))
|
|
}
|
|
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()))
|
|
n8, err := m.Eth1Data.MarshalTo(dAtA[i:])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i += n8
|
|
}
|
|
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 *ValidatorPerformanceRequest) 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.PublicKey)
|
|
if l > 0 {
|
|
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 m.Balance != 0 {
|
|
n += 1 + sovServices(uint64(m.Balance))
|
|
}
|
|
if m.TotalValidators != 0 {
|
|
n += 1 + sovServices(uint64(m.TotalValidators))
|
|
}
|
|
if m.TotalActiveValidators != 0 {
|
|
n += 1 + sovServices(uint64(m.TotalActiveValidators))
|
|
}
|
|
if m.AverageValidatorBalance != 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
|
|
l = len(m.Pubkey)
|
|
if l > 0 {
|
|
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 m.Validator != nil {
|
|
l = m.Validator.Size()
|
|
n += 1 + l + sovServices(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *AttestationDataRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Shard != 0 {
|
|
n += 1 + sovServices(uint64(m.Shard))
|
|
}
|
|
if m.Slot != 0 {
|
|
n += 1 + sovServices(uint64(m.Slot))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *AttestationDataResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.BeaconBlockRootHash32)
|
|
if l > 0 {
|
|
n += 1 + l + sovServices(uint64(l))
|
|
}
|
|
l = len(m.EpochBoundaryRootHash32)
|
|
if l > 0 {
|
|
n += 1 + l + sovServices(uint64(l))
|
|
}
|
|
if m.JustifiedEpoch != 0 {
|
|
n += 1 + sovServices(uint64(m.JustifiedEpoch))
|
|
}
|
|
l = len(m.JustifiedBlockRootHash32)
|
|
if l > 0 {
|
|
n += 1 + l + sovServices(uint64(l))
|
|
}
|
|
if m.LatestCrosslink != nil {
|
|
l = m.LatestCrosslink.Size()
|
|
n += 1 + l + sovServices(uint64(l))
|
|
}
|
|
if m.HeadSlot != 0 {
|
|
n += 1 + sovServices(uint64(m.HeadSlot))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *PendingAttestationsRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.FilterReadyForInclusion {
|
|
n += 2
|
|
}
|
|
if m.ProposalBlockSlot != 0 {
|
|
n += 1 + sovServices(uint64(m.ProposalBlockSlot))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *PendingAttestationsResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.PendingAttestations) > 0 {
|
|
for _, e := range m.PendingAttestations {
|
|
l = e.Size()
|
|
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 *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.RandaoReveal)
|
|
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.BlockRootHash32)
|
|
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 *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 *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 *CommitteeAssignmentsRequest) 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 *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 *CommitteeAssignmentResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Assignment) > 0 {
|
|
for _, e := range m.Assignment {
|
|
l = e.Size()
|
|
n += 1 + l + sovServices(uint64(l))
|
|
}
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *CommitteeAssignmentResponse_CommitteeAssignment) 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.Shard != 0 {
|
|
n += 1 + sovServices(uint64(m.Shard))
|
|
}
|
|
if m.Slot != 0 {
|
|
n += 1 + sovServices(uint64(m.Slot))
|
|
}
|
|
if m.IsProposer {
|
|
n += 2
|
|
}
|
|
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.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 *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 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 *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 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType)
|
|
}
|
|
m.Balance = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowServices
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Balance |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
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 != 5 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AverageValidatorBalance", wireType)
|
|
}
|
|
var v uint32
|
|
if (iNdEx + 4) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:]))
|
|
iNdEx += 4
|
|
m.AverageValidatorBalance = 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 Pubkey", 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.Pubkey = append(m.Pubkey[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.Pubkey == nil {
|
|
m.Pubkey = []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 *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 Validator", 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.Validator == nil {
|
|
m.Validator = &v1.Validator{}
|
|
}
|
|
if err := m.Validator.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 *AttestationDataRequest) 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: AttestationDataRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: AttestationDataRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
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 2:
|
|
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
|
|
}
|
|
}
|
|
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 *AttestationDataResponse) 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: AttestationDataResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: AttestationDataResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field BeaconBlockRootHash32", 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.BeaconBlockRootHash32 = append(m.BeaconBlockRootHash32[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.BeaconBlockRootHash32 == nil {
|
|
m.BeaconBlockRootHash32 = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field EpochBoundaryRootHash32", 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.EpochBoundaryRootHash32 = append(m.EpochBoundaryRootHash32[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.EpochBoundaryRootHash32 == nil {
|
|
m.EpochBoundaryRootHash32 = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field JustifiedEpoch", wireType)
|
|
}
|
|
m.JustifiedEpoch = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowServices
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.JustifiedEpoch |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field JustifiedBlockRootHash32", 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.JustifiedBlockRootHash32 = append(m.JustifiedBlockRootHash32[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.JustifiedBlockRootHash32 == nil {
|
|
m.JustifiedBlockRootHash32 = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LatestCrosslink", 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.LatestCrosslink == nil {
|
|
m.LatestCrosslink = &v1.Crosslink{}
|
|
}
|
|
if err := m.LatestCrosslink.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 6:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HeadSlot", wireType)
|
|
}
|
|
m.HeadSlot = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowServices
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.HeadSlot |= 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 *PendingAttestationsRequest) 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: PendingAttestationsRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: PendingAttestationsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field FilterReadyForInclusion", 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.FilterReadyForInclusion = bool(v != 0)
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ProposalBlockSlot", wireType)
|
|
}
|
|
m.ProposalBlockSlot = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowServices
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.ProposalBlockSlot |= 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 *PendingAttestationsResponse) 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: PendingAttestationsResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: PendingAttestationsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PendingAttestations", 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.PendingAttestations = append(m.PendingAttestations, &v1.Attestation{})
|
|
if err := m.PendingAttestations[len(m.PendingAttestations)-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 *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 *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 < 0 {
|
|
return ErrInvalidLengthServices
|
|
}
|
|
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 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 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 < 0 {
|
|
return ErrInvalidLengthServices
|
|
}
|
|
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 < 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.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 < 0 {
|
|
return ErrInvalidLengthServices
|
|
}
|
|
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) < 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 BlockRootHash32", 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.BlockRootHash32 = append(m.BlockRootHash32[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.BlockRootHash32 == nil {
|
|
m.BlockRootHash32 = []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 *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) < 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) < 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 < 0 {
|
|
return ErrInvalidLengthServices
|
|
}
|
|
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) < 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 < 0 {
|
|
return ErrInvalidLengthServices
|
|
}
|
|
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) < 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 *CommitteeAssignmentsRequest) 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: CommitteeAssignmentsRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: CommitteeAssignmentsRequest: 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 *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 < 0 {
|
|
return ErrInvalidLengthServices
|
|
}
|
|
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) < 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 *CommitteeAssignmentResponse) 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: CommitteeAssignmentResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: CommitteeAssignmentResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
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 < 0 {
|
|
return ErrInvalidLengthServices
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Assignment = append(m.Assignment, &CommitteeAssignmentResponse_CommitteeAssignment{})
|
|
if err := m.Assignment[len(m.Assignment)-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 *CommitteeAssignmentResponse_CommitteeAssignment) 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: CommitteeAssignment: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: CommitteeAssignment: 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 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 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 IsProposer", 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.IsProposer = bool(v != 0)
|
|
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
|
|
}
|
|
}
|
|
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 *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 < 0 {
|
|
return ErrInvalidLengthServices
|
|
}
|
|
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) < 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
|
|
}
|
|
}
|
|
if length < 0 {
|
|
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
|
|
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")
|
|
)
|