mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-20 08:31:11 +00:00
671 lines
25 KiB
Go
671 lines
25 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: proto/beacon/rpc/v1/services.proto
|
|
|
|
package ethereum_beacon_rpc_v1
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
import empty "github.com/golang/protobuf/ptypes/empty"
|
|
import v11 "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
|
|
import v1 "github.com/prysmaticlabs/prysm/proto/sharding/p2p/v1"
|
|
|
|
import (
|
|
context "golang.org/x/net/context"
|
|
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.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type ShuffleRequest struct {
|
|
CrystallizedStateHash []byte `protobuf:"bytes,1,opt,name=crystallized_state_hash,json=crystallizedStateHash,proto3" json:"crystallized_state_hash,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ShuffleRequest) Reset() { *m = ShuffleRequest{} }
|
|
func (m *ShuffleRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ShuffleRequest) ProtoMessage() {}
|
|
func (*ShuffleRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_services_8cc913424e1d367a, []int{0}
|
|
}
|
|
func (m *ShuffleRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ShuffleRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ShuffleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ShuffleRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *ShuffleRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ShuffleRequest.Merge(dst, src)
|
|
}
|
|
func (m *ShuffleRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ShuffleRequest.Size(m)
|
|
}
|
|
func (m *ShuffleRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ShuffleRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ShuffleRequest proto.InternalMessageInfo
|
|
|
|
func (m *ShuffleRequest) GetCrystallizedStateHash() []byte {
|
|
if m != nil {
|
|
return m.CrystallizedStateHash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ShuffleResponse struct {
|
|
ShuffledValidatorIndices []uint64 `protobuf:"varint,1,rep,packed,name=shuffled_validator_indices,json=shuffledValidatorIndices,proto3" json:"shuffled_validator_indices,omitempty"`
|
|
CutoffIndices []uint64 `protobuf:"varint,2,rep,packed,name=cutoff_indices,json=cutoffIndices,proto3" json:"cutoff_indices,omitempty"`
|
|
AssignedAttestationSlots []uint64 `protobuf:"varint,3,rep,packed,name=assigned_attestation_slots,json=assignedAttestationSlots,proto3" json:"assigned_attestation_slots,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ShuffleResponse) Reset() { *m = ShuffleResponse{} }
|
|
func (m *ShuffleResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ShuffleResponse) ProtoMessage() {}
|
|
func (*ShuffleResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_services_8cc913424e1d367a, []int{1}
|
|
}
|
|
func (m *ShuffleResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ShuffleResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ShuffleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ShuffleResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *ShuffleResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ShuffleResponse.Merge(dst, src)
|
|
}
|
|
func (m *ShuffleResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ShuffleResponse.Size(m)
|
|
}
|
|
func (m *ShuffleResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ShuffleResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ShuffleResponse proto.InternalMessageInfo
|
|
|
|
func (m *ShuffleResponse) GetShuffledValidatorIndices() []uint64 {
|
|
if m != nil {
|
|
return m.ShuffledValidatorIndices
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ShuffleResponse) GetCutoffIndices() []uint64 {
|
|
if m != nil {
|
|
return m.CutoffIndices
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ShuffleResponse) GetAssignedAttestationSlots() []uint64 {
|
|
if m != nil {
|
|
return m.AssignedAttestationSlots
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ProposeRequest struct {
|
|
RandaoReveal []byte `protobuf:"bytes,1,opt,name=randao_reveal,json=randaoReveal,proto3" json:"randao_reveal,omitempty"`
|
|
AttestationBitmask []byte `protobuf:"bytes,2,opt,name=attestation_bitmask,json=attestationBitmask,proto3" json:"attestation_bitmask,omitempty"`
|
|
AttestationAggregateSig []uint32 `protobuf:"varint,3,rep,packed,name=attestation_aggregate_sig,json=attestationAggregateSig,proto3" json:"attestation_aggregate_sig,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProposeRequest) Reset() { *m = ProposeRequest{} }
|
|
func (m *ProposeRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ProposeRequest) ProtoMessage() {}
|
|
func (*ProposeRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_services_8cc913424e1d367a, []int{2}
|
|
}
|
|
func (m *ProposeRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ProposeRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ProposeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ProposeRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *ProposeRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProposeRequest.Merge(dst, src)
|
|
}
|
|
func (m *ProposeRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ProposeRequest.Size(m)
|
|
}
|
|
func (m *ProposeRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProposeRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProposeRequest proto.InternalMessageInfo
|
|
|
|
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() []uint32 {
|
|
if m != nil {
|
|
return m.AttestationAggregateSig
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ProposeResponse struct {
|
|
BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProposeResponse) Reset() { *m = ProposeResponse{} }
|
|
func (m *ProposeResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ProposeResponse) ProtoMessage() {}
|
|
func (*ProposeResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_services_8cc913424e1d367a, []int{3}
|
|
}
|
|
func (m *ProposeResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ProposeResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ProposeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ProposeResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *ProposeResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProposeResponse.Merge(dst, src)
|
|
}
|
|
func (m *ProposeResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ProposeResponse.Size(m)
|
|
}
|
|
func (m *ProposeResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProposeResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProposeResponse proto.InternalMessageInfo
|
|
|
|
func (m *ProposeResponse) GetBlockHash() []byte {
|
|
if m != nil {
|
|
return m.BlockHash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SignRequest struct {
|
|
BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
|
|
Signature *v1.Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SignRequest) Reset() { *m = SignRequest{} }
|
|
func (m *SignRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*SignRequest) ProtoMessage() {}
|
|
func (*SignRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_services_8cc913424e1d367a, []int{4}
|
|
}
|
|
func (m *SignRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SignRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *SignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SignRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *SignRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SignRequest.Merge(dst, src)
|
|
}
|
|
func (m *SignRequest) XXX_Size() int {
|
|
return xxx_messageInfo_SignRequest.Size(m)
|
|
}
|
|
func (m *SignRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SignRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SignRequest proto.InternalMessageInfo
|
|
|
|
func (m *SignRequest) GetBlockHash() []byte {
|
|
if m != nil {
|
|
return m.BlockHash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SignRequest) GetSignature() *v1.Signature {
|
|
if m != nil {
|
|
return m.Signature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SignResponse struct {
|
|
Signed bool `protobuf:"varint,1,opt,name=signed,proto3" json:"signed,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SignResponse) Reset() { *m = SignResponse{} }
|
|
func (m *SignResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*SignResponse) ProtoMessage() {}
|
|
func (*SignResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_services_8cc913424e1d367a, []int{5}
|
|
}
|
|
func (m *SignResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SignResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *SignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SignResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *SignResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SignResponse.Merge(dst, src)
|
|
}
|
|
func (m *SignResponse) XXX_Size() int {
|
|
return xxx_messageInfo_SignResponse.Size(m)
|
|
}
|
|
func (m *SignResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SignResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SignResponse proto.InternalMessageInfo
|
|
|
|
func (m *SignResponse) GetSigned() bool {
|
|
if m != nil {
|
|
return m.Signed
|
|
}
|
|
return false
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*ShuffleRequest)(nil), "ethereum.beacon.rpc.v1.ShuffleRequest")
|
|
proto.RegisterType((*ShuffleResponse)(nil), "ethereum.beacon.rpc.v1.ShuffleResponse")
|
|
proto.RegisterType((*ProposeRequest)(nil), "ethereum.beacon.rpc.v1.ProposeRequest")
|
|
proto.RegisterType((*ProposeResponse)(nil), "ethereum.beacon.rpc.v1.ProposeResponse")
|
|
proto.RegisterType((*SignRequest)(nil), "ethereum.beacon.rpc.v1.SignRequest")
|
|
proto.RegisterType((*SignResponse)(nil), "ethereum.beacon.rpc.v1.SignResponse")
|
|
}
|
|
|
|
// 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 {
|
|
LatestBeaconBlock(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (BeaconService_LatestBeaconBlockClient, error)
|
|
LatestCrystallizedState(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (BeaconService_LatestCrystallizedStateClient, error)
|
|
FetchShuffledValidatorIndices(ctx context.Context, in *ShuffleRequest, opts ...grpc.CallOption) (*ShuffleResponse, error)
|
|
}
|
|
|
|
type beaconServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewBeaconServiceClient(cc *grpc.ClientConn) BeaconServiceClient {
|
|
return &beaconServiceClient{cc}
|
|
}
|
|
|
|
func (c *beaconServiceClient) LatestBeaconBlock(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (BeaconService_LatestBeaconBlockClient, error) {
|
|
stream, err := c.cc.NewStream(ctx, &_BeaconService_serviceDesc.Streams[0], "/ethereum.beacon.rpc.v1.BeaconService/LatestBeaconBlock", opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &beaconServiceLatestBeaconBlockClient{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_LatestBeaconBlockClient interface {
|
|
Recv() (*v11.BeaconBlock, error)
|
|
grpc.ClientStream
|
|
}
|
|
|
|
type beaconServiceLatestBeaconBlockClient struct {
|
|
grpc.ClientStream
|
|
}
|
|
|
|
func (x *beaconServiceLatestBeaconBlockClient) Recv() (*v11.BeaconBlock, error) {
|
|
m := new(v11.BeaconBlock)
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
func (c *beaconServiceClient) LatestCrystallizedState(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (BeaconService_LatestCrystallizedStateClient, error) {
|
|
stream, err := c.cc.NewStream(ctx, &_BeaconService_serviceDesc.Streams[1], "/ethereum.beacon.rpc.v1.BeaconService/LatestCrystallizedState", opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &beaconServiceLatestCrystallizedStateClient{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_LatestCrystallizedStateClient interface {
|
|
Recv() (*v11.CrystallizedState, error)
|
|
grpc.ClientStream
|
|
}
|
|
|
|
type beaconServiceLatestCrystallizedStateClient struct {
|
|
grpc.ClientStream
|
|
}
|
|
|
|
func (x *beaconServiceLatestCrystallizedStateClient) Recv() (*v11.CrystallizedState, error) {
|
|
m := new(v11.CrystallizedState)
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
func (c *beaconServiceClient) FetchShuffledValidatorIndices(ctx context.Context, in *ShuffleRequest, opts ...grpc.CallOption) (*ShuffleResponse, error) {
|
|
out := new(ShuffleResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.BeaconService/FetchShuffledValidatorIndices", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// BeaconServiceServer is the server API for BeaconService service.
|
|
type BeaconServiceServer interface {
|
|
LatestBeaconBlock(*empty.Empty, BeaconService_LatestBeaconBlockServer) error
|
|
LatestCrystallizedState(*empty.Empty, BeaconService_LatestCrystallizedStateServer) error
|
|
FetchShuffledValidatorIndices(context.Context, *ShuffleRequest) (*ShuffleResponse, error)
|
|
}
|
|
|
|
func RegisterBeaconServiceServer(s *grpc.Server, srv BeaconServiceServer) {
|
|
s.RegisterService(&_BeaconService_serviceDesc, srv)
|
|
}
|
|
|
|
func _BeaconService_LatestBeaconBlock_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
m := new(empty.Empty)
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
return err
|
|
}
|
|
return srv.(BeaconServiceServer).LatestBeaconBlock(m, &beaconServiceLatestBeaconBlockServer{stream})
|
|
}
|
|
|
|
type BeaconService_LatestBeaconBlockServer interface {
|
|
Send(*v11.BeaconBlock) error
|
|
grpc.ServerStream
|
|
}
|
|
|
|
type beaconServiceLatestBeaconBlockServer struct {
|
|
grpc.ServerStream
|
|
}
|
|
|
|
func (x *beaconServiceLatestBeaconBlockServer) Send(m *v11.BeaconBlock) error {
|
|
return x.ServerStream.SendMsg(m)
|
|
}
|
|
|
|
func _BeaconService_LatestCrystallizedState_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
m := new(empty.Empty)
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
return err
|
|
}
|
|
return srv.(BeaconServiceServer).LatestCrystallizedState(m, &beaconServiceLatestCrystallizedStateServer{stream})
|
|
}
|
|
|
|
type BeaconService_LatestCrystallizedStateServer interface {
|
|
Send(*v11.CrystallizedState) error
|
|
grpc.ServerStream
|
|
}
|
|
|
|
type beaconServiceLatestCrystallizedStateServer struct {
|
|
grpc.ServerStream
|
|
}
|
|
|
|
func (x *beaconServiceLatestCrystallizedStateServer) Send(m *v11.CrystallizedState) error {
|
|
return x.ServerStream.SendMsg(m)
|
|
}
|
|
|
|
func _BeaconService_FetchShuffledValidatorIndices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ShuffleRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(BeaconServiceServer).FetchShuffledValidatorIndices(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.beacon.rpc.v1.BeaconService/FetchShuffledValidatorIndices",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BeaconServiceServer).FetchShuffledValidatorIndices(ctx, req.(*ShuffleRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _BeaconService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "ethereum.beacon.rpc.v1.BeaconService",
|
|
HandlerType: (*BeaconServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "FetchShuffledValidatorIndices",
|
|
Handler: _BeaconService_FetchShuffledValidatorIndices_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{
|
|
{
|
|
StreamName: "LatestBeaconBlock",
|
|
Handler: _BeaconService_LatestBeaconBlock_Handler,
|
|
ServerStreams: true,
|
|
},
|
|
{
|
|
StreamName: "LatestCrystallizedState",
|
|
Handler: _BeaconService_LatestCrystallizedState_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 {
|
|
SignBlock(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error)
|
|
}
|
|
|
|
type attesterServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewAttesterServiceClient(cc *grpc.ClientConn) AttesterServiceClient {
|
|
return &attesterServiceClient{cc}
|
|
}
|
|
|
|
func (c *attesterServiceClient) SignBlock(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) {
|
|
out := new(SignResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.AttesterService/SignBlock", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// AttesterServiceServer is the server API for AttesterService service.
|
|
type AttesterServiceServer interface {
|
|
SignBlock(context.Context, *SignRequest) (*SignResponse, error)
|
|
}
|
|
|
|
func RegisterAttesterServiceServer(s *grpc.Server, srv AttesterServiceServer) {
|
|
s.RegisterService(&_AttesterService_serviceDesc, srv)
|
|
}
|
|
|
|
func _AttesterService_SignBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SignRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AttesterServiceServer).SignBlock(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.beacon.rpc.v1.AttesterService/SignBlock",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AttesterServiceServer).SignBlock(ctx, req.(*SignRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _AttesterService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "ethereum.beacon.rpc.v1.AttesterService",
|
|
HandlerType: (*AttesterServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "SignBlock",
|
|
Handler: _AttesterService_SignBlock_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 {
|
|
ProposeBlock(ctx context.Context, in *ProposeRequest, opts ...grpc.CallOption) (*ProposeResponse, error)
|
|
}
|
|
|
|
type proposerServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewProposerServiceClient(cc *grpc.ClientConn) ProposerServiceClient {
|
|
return &proposerServiceClient{cc}
|
|
}
|
|
|
|
func (c *proposerServiceClient) ProposeBlock(ctx context.Context, in *ProposeRequest, opts ...grpc.CallOption) (*ProposeResponse, error) {
|
|
out := new(ProposeResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.beacon.rpc.v1.ProposerService/ProposeBlock", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// ProposerServiceServer is the server API for ProposerService service.
|
|
type ProposerServiceServer interface {
|
|
ProposeBlock(context.Context, *ProposeRequest) (*ProposeResponse, error)
|
|
}
|
|
|
|
func RegisterProposerServiceServer(s *grpc.Server, srv ProposerServiceServer) {
|
|
s.RegisterService(&_ProposerService_serviceDesc, srv)
|
|
}
|
|
|
|
func _ProposerService_ProposeBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProposeRequest)
|
|
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.(*ProposeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _ProposerService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "ethereum.beacon.rpc.v1.ProposerService",
|
|
HandlerType: (*ProposerServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "ProposeBlock",
|
|
Handler: _ProposerService_ProposeBlock_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "proto/beacon/rpc/v1/services.proto",
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("proto/beacon/rpc/v1/services.proto", fileDescriptor_services_8cc913424e1d367a)
|
|
}
|
|
|
|
var fileDescriptor_services_8cc913424e1d367a = []byte{
|
|
// 587 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0x5f, 0x4f, 0xd4, 0x4e,
|
|
0x14, 0x4d, 0xe1, 0x17, 0xf2, 0xe3, 0xb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