nodev1

package
v3.0.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Service_ChainID_FullMethodName       = "/band.base.node.v1.Service/ChainID"
	Service_EVMValidators_FullMethodName = "/band.base.node.v1.Service/EVMValidators"
)

Variables

View Source
var File_band_base_node_v1_query_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "band.base.node.v1.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ChainID",
			Handler:    _Service_ChainID_Handler,
		},
		{
			MethodName: "EVMValidators",
			Handler:    _Service_EVMValidators_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "band/base/node/v1/query.proto",
}

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

Functions

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type ChainIDRequest

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

ChainIDRequest is request type for the Service/ChainID RPC method.

func (*ChainIDRequest) Descriptor deprecated

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

Deprecated: Use ChainIDRequest.ProtoReflect.Descriptor instead.

func (*ChainIDRequest) ProtoMessage

func (*ChainIDRequest) ProtoMessage()

func (*ChainIDRequest) ProtoReflect

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

func (*ChainIDRequest) Reset

func (x *ChainIDRequest) Reset()

func (*ChainIDRequest) String

func (x *ChainIDRequest) String() string

type ChainIDResponse

type ChainIDResponse struct {
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// contains filtered or unexported fields
}

ChainIDResponse is response type for the Service/ChainID RPC method.

func (*ChainIDResponse) Descriptor deprecated

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

Deprecated: Use ChainIDResponse.ProtoReflect.Descriptor instead.

func (*ChainIDResponse) GetChainId

func (x *ChainIDResponse) GetChainId() string

func (*ChainIDResponse) ProtoMessage

func (*ChainIDResponse) ProtoMessage()

func (*ChainIDResponse) ProtoReflect

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

func (*ChainIDResponse) Reset

func (x *ChainIDResponse) Reset()

func (*ChainIDResponse) String

func (x *ChainIDResponse) String() string

type EVMValidatorsRequest

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

EVMValidatorsRequest is request type for the Service/EVMValidators RPC method.

func (*EVMValidatorsRequest) Descriptor deprecated

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

Deprecated: Use EVMValidatorsRequest.ProtoReflect.Descriptor instead.

func (*EVMValidatorsRequest) ProtoMessage

func (*EVMValidatorsRequest) ProtoMessage()

func (*EVMValidatorsRequest) ProtoReflect

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

func (*EVMValidatorsRequest) Reset

func (x *EVMValidatorsRequest) Reset()

func (*EVMValidatorsRequest) String

func (x *EVMValidatorsRequest) String() string

type EVMValidatorsResponse

type EVMValidatorsResponse struct {

	// BlockHeight is the latest block height
	BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// Validators is list of validator's addresss and voting power
	Validators []*ValidatorMinimal `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"`
	// contains filtered or unexported fields
}

EVMValidatorsResponse is response type for the Service/EVMValidators RPC method.

func (*EVMValidatorsResponse) Descriptor deprecated

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

Deprecated: Use EVMValidatorsResponse.ProtoReflect.Descriptor instead.

func (*EVMValidatorsResponse) GetBlockHeight

func (x *EVMValidatorsResponse) GetBlockHeight() int64

func (*EVMValidatorsResponse) GetValidators

func (x *EVMValidatorsResponse) GetValidators() []*ValidatorMinimal

func (*EVMValidatorsResponse) ProtoMessage

func (*EVMValidatorsResponse) ProtoMessage()

func (*EVMValidatorsResponse) ProtoReflect

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

func (*EVMValidatorsResponse) Reset

func (x *EVMValidatorsResponse) Reset()

func (*EVMValidatorsResponse) String

func (x *EVMValidatorsResponse) String() string

type ServiceClient

type ServiceClient interface {
	// ChainID queries the chain ID of this node
	ChainID(ctx context.Context, in *ChainIDRequest, opts ...grpc.CallOption) (*ChainIDResponse, error)
	// EVMValidators queries current list of validator's address and power
	EVMValidators(ctx context.Context, in *EVMValidatorsRequest, opts ...grpc.CallOption) (*EVMValidatorsResponse, error)
}

ServiceClient is the client API for Service 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 NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

type ServiceServer interface {
	// ChainID queries the chain ID of this node
	ChainID(context.Context, *ChainIDRequest) (*ChainIDResponse, error)
	// EVMValidators queries current list of validator's address and power
	EVMValidators(context.Context, *EVMValidatorsRequest) (*EVMValidatorsResponse, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) ChainID

func (UnimplementedServiceServer) EVMValidators

type UnsafeServiceServer

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

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

type ValidatorMinimal

type ValidatorMinimal struct {
	Address     string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	VotingPower int64  `protobuf:"varint,2,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
	// contains filtered or unexported fields
}

ValidatorMinimal is the data structure for storing validator's address and voting power

func (*ValidatorMinimal) Descriptor deprecated

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

Deprecated: Use ValidatorMinimal.ProtoReflect.Descriptor instead.

func (*ValidatorMinimal) GetAddress

func (x *ValidatorMinimal) GetAddress() string

func (*ValidatorMinimal) GetVotingPower

func (x *ValidatorMinimal) GetVotingPower() int64

func (*ValidatorMinimal) ProtoMessage

func (*ValidatorMinimal) ProtoMessage()

func (*ValidatorMinimal) ProtoReflect

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

func (*ValidatorMinimal) Reset

func (x *ValidatorMinimal) Reset()

func (*ValidatorMinimal) String

func (x *ValidatorMinimal) String() string

Jump to

Keyboard shortcuts

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