proto

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2022 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: 717b8285302710dfbb2c063c2d5d11dd773517355a3e102ea44e58f3e7a2dfe1

Index

Constants

This section is empty.

Variables

View Source
var (
	NodeType_name = map[int32]string{
		0: "Other",
		1: "Beacon",
		2: "Validator",
		3: "Bootnode",
	}
	NodeType_value = map[string]int32{
		"Other":     0,
		"Beacon":    1,
		"Validator": 2,
		"Bootnode":  3,
	}
)

Enum value maps for NodeType.

View Source
var (
	NodeClient_name = map[int32]string{
		0: "Prysm",
		1: "Teku",
		2: "Lighthouse",
	}
	NodeClient_value = map[string]int32{
		"Prysm":      0,
		"Teku":       1,
		"Lighthouse": 2,
	}
)

Enum value maps for NodeClient.

View Source
var E2EService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.E2EService",
	HandlerType: (*E2EServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "DeployNode",
			Handler:    _E2EService_DeployNode_Handler,
		},
		{
			MethodName: "DeployValidator",
			Handler:    _E2EService_DeployValidator_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/testutil/proto/service.proto",
}

E2EService_ServiceDesc is the grpc.ServiceDesc for E2EService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_internal_testutil_proto_service_proto protoreflect.FileDescriptor

Functions

func RegisterE2EServiceServer

func RegisterE2EServiceServer(s grpc.ServiceRegistrar, srv E2EServiceServer)

Types

type Account

type Account struct {
	Bls   *bls.Key
	Ecdsa *wallet.Key
}

func NewAccount

func NewAccount() *Account

func NewAccounts

func NewAccounts(num int) []*Account

type DeployNodeRequest

type DeployNodeRequest struct {
	NodeClient NodeClient `protobuf:"varint,1,opt,name=nodeClient,proto3,enum=proto.NodeClient" json:"nodeClient,omitempty"`
	// contains filtered or unexported fields
}

func (*DeployNodeRequest) Descriptor deprecated

func (*DeployNodeRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeployNodeRequest.ProtoReflect.Descriptor instead.

func (*DeployNodeRequest) GetNodeClient

func (x *DeployNodeRequest) GetNodeClient() NodeClient

func (*DeployNodeRequest) ProtoMessage

func (*DeployNodeRequest) ProtoMessage()

func (*DeployNodeRequest) ProtoReflect

func (x *DeployNodeRequest) ProtoReflect() protoreflect.Message

func (*DeployNodeRequest) Reset

func (x *DeployNodeRequest) Reset()

func (*DeployNodeRequest) String

func (x *DeployNodeRequest) String() string

type DeployNodeResponse

type DeployNodeResponse struct {
	// contains filtered or unexported fields
}

func (*DeployNodeResponse) Descriptor deprecated

func (*DeployNodeResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeployNodeResponse.ProtoReflect.Descriptor instead.

func (*DeployNodeResponse) ProtoMessage

func (*DeployNodeResponse) ProtoMessage()

func (*DeployNodeResponse) ProtoReflect

func (x *DeployNodeResponse) ProtoReflect() protoreflect.Message

func (*DeployNodeResponse) Reset

func (x *DeployNodeResponse) Reset()

func (*DeployNodeResponse) String

func (x *DeployNodeResponse) String() string

type DeployValidatorRequest

type DeployValidatorRequest struct {
	NumValidators uint64     `protobuf:"varint,1,opt,name=numValidators,proto3" json:"numValidators,omitempty"`
	NodeClient    NodeClient `protobuf:"varint,2,opt,name=nodeClient,proto3,enum=proto.NodeClient" json:"nodeClient,omitempty"`
	// contains filtered or unexported fields
}

func (*DeployValidatorRequest) Descriptor deprecated

func (*DeployValidatorRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeployValidatorRequest.ProtoReflect.Descriptor instead.

func (*DeployValidatorRequest) GetNodeClient

func (x *DeployValidatorRequest) GetNodeClient() NodeClient

func (*DeployValidatorRequest) GetNumValidators

func (x *DeployValidatorRequest) GetNumValidators() uint64

func (*DeployValidatorRequest) ProtoMessage

func (*DeployValidatorRequest) ProtoMessage()

func (*DeployValidatorRequest) ProtoReflect

func (x *DeployValidatorRequest) ProtoReflect() protoreflect.Message

func (*DeployValidatorRequest) Reset

func (x *DeployValidatorRequest) Reset()

func (*DeployValidatorRequest) String

func (x *DeployValidatorRequest) String() string

type DeployValidatorResponse

type DeployValidatorResponse struct {
	// contains filtered or unexported fields
}

func (*DeployValidatorResponse) Descriptor deprecated

func (*DeployValidatorResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeployValidatorResponse.ProtoReflect.Descriptor instead.

func (*DeployValidatorResponse) ProtoMessage

func (*DeployValidatorResponse) ProtoMessage()

func (*DeployValidatorResponse) ProtoReflect

func (x *DeployValidatorResponse) ProtoReflect() protoreflect.Message

func (*DeployValidatorResponse) Reset

func (x *DeployValidatorResponse) Reset()

func (*DeployValidatorResponse) String

func (x *DeployValidatorResponse) String() string

type DepositData

type DepositData struct {
	Pubkey                []byte   `json:"pubkey" ssz-size:"48"`
	WithdrawalCredentials []byte   `json:"withdrawal_credentials" ssz-size:"32"`
	Amount                uint64   `json:"amount"`
	Signature             []byte   `json:"signature" ssz-size:"96"`
	Root                  [32]byte `ssz:"-"`
}

func (*DepositData) HashTreeRoot

func (d *DepositData) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the DepositData object

func (*DepositData) HashTreeRootWith

func (d *DepositData) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the DepositData object with a hasher

func (*DepositData) MarshalSSZ

func (d *DepositData) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the DepositData object

func (*DepositData) MarshalSSZTo

func (d *DepositData) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the DepositData object to a target array

func (*DepositData) SizeSSZ

func (d *DepositData) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the DepositData object

func (*DepositData) UnmarshalSSZ

func (d *DepositData) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the DepositData object

type DepositMessage

type DepositMessage struct {
	Pubkey                []byte `json:"pubkey" ssz-size:"48"`
	WithdrawalCredentials []byte `json:"withdrawal_credentials" ssz-size:"32"`
	Amount                uint64 `json:"amount"`
}

func (*DepositMessage) HashTreeRoot

func (d *DepositMessage) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the DepositMessage object

func (*DepositMessage) HashTreeRootWith

func (d *DepositMessage) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the DepositMessage object with a hasher

func (*DepositMessage) MarshalSSZ

func (d *DepositMessage) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the DepositMessage object

func (*DepositMessage) MarshalSSZTo

func (d *DepositMessage) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the DepositMessage object to a target array

func (*DepositMessage) SizeSSZ

func (d *DepositMessage) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the DepositMessage object

func (*DepositMessage) UnmarshalSSZ

func (d *DepositMessage) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the DepositMessage object

type E2EServiceClient

type E2EServiceClient interface {
	DeployNode(ctx context.Context, in *DeployNodeRequest, opts ...grpc.CallOption) (*DeployNodeResponse, error)
	DeployValidator(ctx context.Context, in *DeployValidatorRequest, opts ...grpc.CallOption) (*DeployValidatorResponse, error)
}

E2EServiceClient is the client API for E2EService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewE2EServiceClient

func NewE2EServiceClient(cc grpc.ClientConnInterface) E2EServiceClient

type E2EServiceServer

type E2EServiceServer interface {
	DeployNode(context.Context, *DeployNodeRequest) (*DeployNodeResponse, error)
	DeployValidator(context.Context, *DeployValidatorRequest) (*DeployValidatorResponse, error)
	// contains filtered or unexported methods
}

E2EServiceServer is the server API for E2EService service. All implementations must embed UnimplementedE2EServiceServer for forward compatibility

type ForkData

type ForkData struct {
	CurrentVersion        []byte `ssz-size:"4"`
	GenesisValidatorsRoot []byte `ssz-size:"32"`
}

func (*ForkData) HashTreeRoot

func (f *ForkData) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the ForkData object

func (*ForkData) HashTreeRootWith

func (f *ForkData) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the ForkData object with a hasher

func (*ForkData) MarshalSSZ

func (f *ForkData) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the ForkData object

func (*ForkData) MarshalSSZTo

func (f *ForkData) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the ForkData object to a target array

func (*ForkData) SizeSSZ

func (f *ForkData) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the ForkData object

func (*ForkData) UnmarshalSSZ

func (f *ForkData) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the ForkData object

type NodeClient

type NodeClient int32
const (
	NodeClient_Prysm      NodeClient = 0
	NodeClient_Teku       NodeClient = 1
	NodeClient_Lighthouse NodeClient = 2
)

func StringToNodeClient

func StringToNodeClient(str string) (NodeClient, bool)

func (NodeClient) Descriptor

func (NodeClient) Descriptor() protoreflect.EnumDescriptor

func (NodeClient) Enum

func (x NodeClient) Enum() *NodeClient

func (NodeClient) EnumDescriptor deprecated

func (NodeClient) EnumDescriptor() ([]byte, []int)

Deprecated: Use NodeClient.Descriptor instead.

func (NodeClient) Number

func (x NodeClient) Number() protoreflect.EnumNumber

func (NodeClient) String

func (x NodeClient) String() string

func (NodeClient) Type

type NodeType

type NodeType int32
const (
	NodeType_Other     NodeType = 0
	NodeType_Beacon    NodeType = 1
	NodeType_Validator NodeType = 2
	NodeType_Bootnode  NodeType = 3
)

func (NodeType) Descriptor

func (NodeType) Descriptor() protoreflect.EnumDescriptor

func (NodeType) Enum

func (x NodeType) Enum() *NodeType

func (NodeType) EnumDescriptor deprecated

func (NodeType) EnumDescriptor() ([]byte, []int)

Deprecated: Use NodeType.Descriptor instead.

func (NodeType) Number

func (x NodeType) Number() protoreflect.EnumNumber

func (NodeType) String

func (x NodeType) String() string

func (NodeType) Type

type SigningData

type SigningData struct {
	ObjectRoot []byte `ssz-size:"32"`
	Domain     []byte `ssz-size:"32"`
}

func (*SigningData) HashTreeRoot

func (s *SigningData) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the SigningData object

func (*SigningData) HashTreeRootWith

func (s *SigningData) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the SigningData object with a hasher

func (*SigningData) MarshalSSZ

func (s *SigningData) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the SigningData object

func (*SigningData) MarshalSSZTo

func (s *SigningData) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the SigningData object to a target array

func (*SigningData) SizeSSZ

func (s *SigningData) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the SigningData object

func (*SigningData) UnmarshalSSZ

func (s *SigningData) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the SigningData object

type UnimplementedE2EServiceServer

type UnimplementedE2EServiceServer struct {
}

UnimplementedE2EServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedE2EServiceServer) DeployNode

func (UnimplementedE2EServiceServer) DeployValidator

type UnsafeE2EServiceServer

type UnsafeE2EServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeE2EServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to E2EServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL