Documentation ¶
Overview ¶
Package tmservice is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func GetProtoBlock(ctx context.Context, clientCtx client.Context, height *int64) (tmproto.BlockID, *tmproto.Block, error)
- func RegisterGRPCGatewayRoutes(clientConn gogogrpc.ClientConn, mux *runtime.ServeMux)
- func RegisterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceClient) error
- func RegisterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceServer) error
- func RegisterServiceServer(s grpc1.Server, srv ServiceServer)
- func RegisterTendermintService(qrt gogogrpc.Server, clientCtx client.Context, ...)
- type GetBlockByHeightRequest
- func (*GetBlockByHeightRequest) Descriptor() ([]byte, []int)
- func (m *GetBlockByHeightRequest) GetHeight() int64
- func (m *GetBlockByHeightRequest) Marshal() (dAtA []byte, err error)
- func (m *GetBlockByHeightRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetBlockByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetBlockByHeightRequest) ProtoMessage()
- func (m *GetBlockByHeightRequest) Reset()
- func (m *GetBlockByHeightRequest) Size() (n int)
- func (m *GetBlockByHeightRequest) String() string
- func (m *GetBlockByHeightRequest) Unmarshal(dAtA []byte) error
- func (m *GetBlockByHeightRequest) XXX_DiscardUnknown()
- func (m *GetBlockByHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBlockByHeightRequest) XXX_Merge(src proto.Message)
- func (m *GetBlockByHeightRequest) XXX_Size() int
- func (m *GetBlockByHeightRequest) XXX_Unmarshal(b []byte) error
- type GetBlockByHeightResponse
- func (*GetBlockByHeightResponse) Descriptor() ([]byte, []int)
- func (m *GetBlockByHeightResponse) GetBlock() *types1.Block
- func (m *GetBlockByHeightResponse) GetBlockId() *types1.BlockID
- func (m *GetBlockByHeightResponse) Marshal() (dAtA []byte, err error)
- func (m *GetBlockByHeightResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetBlockByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetBlockByHeightResponse) ProtoMessage()
- func (m *GetBlockByHeightResponse) Reset()
- func (m *GetBlockByHeightResponse) Size() (n int)
- func (m *GetBlockByHeightResponse) String() string
- func (m *GetBlockByHeightResponse) Unmarshal(dAtA []byte) error
- func (m *GetBlockByHeightResponse) XXX_DiscardUnknown()
- func (m *GetBlockByHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBlockByHeightResponse) XXX_Merge(src proto.Message)
- func (m *GetBlockByHeightResponse) XXX_Size() int
- func (m *GetBlockByHeightResponse) XXX_Unmarshal(b []byte) error
- type GetLatestBlockRequest
- func (*GetLatestBlockRequest) Descriptor() ([]byte, []int)
- func (m *GetLatestBlockRequest) Marshal() (dAtA []byte, err error)
- func (m *GetLatestBlockRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetLatestBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetLatestBlockRequest) ProtoMessage()
- func (m *GetLatestBlockRequest) Reset()
- func (m *GetLatestBlockRequest) Size() (n int)
- func (m *GetLatestBlockRequest) String() string
- func (m *GetLatestBlockRequest) Unmarshal(dAtA []byte) error
- func (m *GetLatestBlockRequest) XXX_DiscardUnknown()
- func (m *GetLatestBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLatestBlockRequest) XXX_Merge(src proto.Message)
- func (m *GetLatestBlockRequest) XXX_Size() int
- func (m *GetLatestBlockRequest) XXX_Unmarshal(b []byte) error
- type GetLatestBlockResponse
- func (*GetLatestBlockResponse) Descriptor() ([]byte, []int)
- func (m *GetLatestBlockResponse) GetBlock() *types1.Block
- func (m *GetLatestBlockResponse) GetBlockId() *types1.BlockID
- func (m *GetLatestBlockResponse) Marshal() (dAtA []byte, err error)
- func (m *GetLatestBlockResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetLatestBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetLatestBlockResponse) ProtoMessage()
- func (m *GetLatestBlockResponse) Reset()
- func (m *GetLatestBlockResponse) Size() (n int)
- func (m *GetLatestBlockResponse) String() string
- func (m *GetLatestBlockResponse) Unmarshal(dAtA []byte) error
- func (m *GetLatestBlockResponse) XXX_DiscardUnknown()
- func (m *GetLatestBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLatestBlockResponse) XXX_Merge(src proto.Message)
- func (m *GetLatestBlockResponse) XXX_Size() int
- func (m *GetLatestBlockResponse) XXX_Unmarshal(b []byte) error
- type GetLatestValidatorSetRequest
- func (*GetLatestValidatorSetRequest) Descriptor() ([]byte, []int)
- func (m *GetLatestValidatorSetRequest) GetPagination() *query.PageRequest
- func (m *GetLatestValidatorSetRequest) Marshal() (dAtA []byte, err error)
- func (m *GetLatestValidatorSetRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetLatestValidatorSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetLatestValidatorSetRequest) ProtoMessage()
- func (m *GetLatestValidatorSetRequest) Reset()
- func (m *GetLatestValidatorSetRequest) Size() (n int)
- func (m *GetLatestValidatorSetRequest) String() string
- func (m *GetLatestValidatorSetRequest) Unmarshal(dAtA []byte) error
- func (m *GetLatestValidatorSetRequest) XXX_DiscardUnknown()
- func (m *GetLatestValidatorSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLatestValidatorSetRequest) XXX_Merge(src proto.Message)
- func (m *GetLatestValidatorSetRequest) XXX_Size() int
- func (m *GetLatestValidatorSetRequest) XXX_Unmarshal(b []byte) error
- type GetLatestValidatorSetResponse
- func (*GetLatestValidatorSetResponse) Descriptor() ([]byte, []int)
- func (m *GetLatestValidatorSetResponse) GetBlockHeight() int64
- func (m *GetLatestValidatorSetResponse) GetPagination() *query.PageResponse
- func (m *GetLatestValidatorSetResponse) GetValidators() []*Validator
- func (m *GetLatestValidatorSetResponse) Marshal() (dAtA []byte, err error)
- func (m *GetLatestValidatorSetResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetLatestValidatorSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetLatestValidatorSetResponse) ProtoMessage()
- func (m *GetLatestValidatorSetResponse) Reset()
- func (m *GetLatestValidatorSetResponse) Size() (n int)
- func (m *GetLatestValidatorSetResponse) String() string
- func (m *GetLatestValidatorSetResponse) Unmarshal(dAtA []byte) error
- func (m *GetLatestValidatorSetResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *GetLatestValidatorSetResponse) XXX_DiscardUnknown()
- func (m *GetLatestValidatorSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLatestValidatorSetResponse) XXX_Merge(src proto.Message)
- func (m *GetLatestValidatorSetResponse) XXX_Size() int
- func (m *GetLatestValidatorSetResponse) XXX_Unmarshal(b []byte) error
- type GetNodeInfoRequest
- func (*GetNodeInfoRequest) Descriptor() ([]byte, []int)
- func (m *GetNodeInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *GetNodeInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetNodeInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetNodeInfoRequest) ProtoMessage()
- func (m *GetNodeInfoRequest) Reset()
- func (m *GetNodeInfoRequest) Size() (n int)
- func (m *GetNodeInfoRequest) String() string
- func (m *GetNodeInfoRequest) Unmarshal(dAtA []byte) error
- func (m *GetNodeInfoRequest) XXX_DiscardUnknown()
- func (m *GetNodeInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetNodeInfoRequest) XXX_Merge(src proto.Message)
- func (m *GetNodeInfoRequest) XXX_Size() int
- func (m *GetNodeInfoRequest) XXX_Unmarshal(b []byte) error
- type GetNodeInfoResponse
- func (*GetNodeInfoResponse) Descriptor() ([]byte, []int)
- func (m *GetNodeInfoResponse) GetApplicationVersion() *VersionInfo
- func (m *GetNodeInfoResponse) GetDefaultNodeInfo() *p2p.DefaultNodeInfo
- func (m *GetNodeInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *GetNodeInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetNodeInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetNodeInfoResponse) ProtoMessage()
- func (m *GetNodeInfoResponse) Reset()
- func (m *GetNodeInfoResponse) Size() (n int)
- func (m *GetNodeInfoResponse) String() string
- func (m *GetNodeInfoResponse) Unmarshal(dAtA []byte) error
- func (m *GetNodeInfoResponse) XXX_DiscardUnknown()
- func (m *GetNodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetNodeInfoResponse) XXX_Merge(src proto.Message)
- func (m *GetNodeInfoResponse) XXX_Size() int
- func (m *GetNodeInfoResponse) XXX_Unmarshal(b []byte) error
- type GetSyncingRequest
- func (*GetSyncingRequest) Descriptor() ([]byte, []int)
- func (m *GetSyncingRequest) Marshal() (dAtA []byte, err error)
- func (m *GetSyncingRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetSyncingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetSyncingRequest) ProtoMessage()
- func (m *GetSyncingRequest) Reset()
- func (m *GetSyncingRequest) Size() (n int)
- func (m *GetSyncingRequest) String() string
- func (m *GetSyncingRequest) Unmarshal(dAtA []byte) error
- func (m *GetSyncingRequest) XXX_DiscardUnknown()
- func (m *GetSyncingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetSyncingRequest) XXX_Merge(src proto.Message)
- func (m *GetSyncingRequest) XXX_Size() int
- func (m *GetSyncingRequest) XXX_Unmarshal(b []byte) error
- type GetSyncingResponse
- func (*GetSyncingResponse) Descriptor() ([]byte, []int)
- func (m *GetSyncingResponse) GetSyncing() bool
- func (m *GetSyncingResponse) Marshal() (dAtA []byte, err error)
- func (m *GetSyncingResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetSyncingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetSyncingResponse) ProtoMessage()
- func (m *GetSyncingResponse) Reset()
- func (m *GetSyncingResponse) Size() (n int)
- func (m *GetSyncingResponse) String() string
- func (m *GetSyncingResponse) Unmarshal(dAtA []byte) error
- func (m *GetSyncingResponse) XXX_DiscardUnknown()
- func (m *GetSyncingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetSyncingResponse) XXX_Merge(src proto.Message)
- func (m *GetSyncingResponse) XXX_Size() int
- func (m *GetSyncingResponse) XXX_Unmarshal(b []byte) error
- type GetValidatorSetByHeightRequest
- func (*GetValidatorSetByHeightRequest) Descriptor() ([]byte, []int)
- func (m *GetValidatorSetByHeightRequest) GetHeight() int64
- func (m *GetValidatorSetByHeightRequest) GetPagination() *query.PageRequest
- func (m *GetValidatorSetByHeightRequest) Marshal() (dAtA []byte, err error)
- func (m *GetValidatorSetByHeightRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetValidatorSetByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetValidatorSetByHeightRequest) ProtoMessage()
- func (m *GetValidatorSetByHeightRequest) Reset()
- func (m *GetValidatorSetByHeightRequest) Size() (n int)
- func (m *GetValidatorSetByHeightRequest) String() string
- func (m *GetValidatorSetByHeightRequest) Unmarshal(dAtA []byte) error
- func (m *GetValidatorSetByHeightRequest) XXX_DiscardUnknown()
- func (m *GetValidatorSetByHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetValidatorSetByHeightRequest) XXX_Merge(src proto.Message)
- func (m *GetValidatorSetByHeightRequest) XXX_Size() int
- func (m *GetValidatorSetByHeightRequest) XXX_Unmarshal(b []byte) error
- type GetValidatorSetByHeightResponse
- func (*GetValidatorSetByHeightResponse) Descriptor() ([]byte, []int)
- func (m *GetValidatorSetByHeightResponse) GetBlockHeight() int64
- func (m *GetValidatorSetByHeightResponse) GetPagination() *query.PageResponse
- func (m *GetValidatorSetByHeightResponse) GetValidators() []*Validator
- func (m *GetValidatorSetByHeightResponse) Marshal() (dAtA []byte, err error)
- func (m *GetValidatorSetByHeightResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetValidatorSetByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetValidatorSetByHeightResponse) ProtoMessage()
- func (m *GetValidatorSetByHeightResponse) Reset()
- func (m *GetValidatorSetByHeightResponse) Size() (n int)
- func (m *GetValidatorSetByHeightResponse) String() string
- func (m *GetValidatorSetByHeightResponse) Unmarshal(dAtA []byte) error
- func (m *GetValidatorSetByHeightResponse) XXX_DiscardUnknown()
- func (m *GetValidatorSetByHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetValidatorSetByHeightResponse) XXX_Merge(src proto.Message)
- func (m *GetValidatorSetByHeightResponse) XXX_Size() int
- func (m *GetValidatorSetByHeightResponse) XXX_Unmarshal(b []byte) error
- type Module
- func (*Module) Descriptor() ([]byte, []int)
- func (m *Module) GetPath() string
- func (m *Module) GetSum() string
- func (m *Module) GetVersion() string
- func (m *Module) Marshal() (dAtA []byte, err error)
- func (m *Module) MarshalTo(dAtA []byte) (int, error)
- func (m *Module) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Module) ProtoMessage()
- func (m *Module) Reset()
- func (m *Module) Size() (n int)
- func (m *Module) String() string
- func (m *Module) Unmarshal(dAtA []byte) error
- func (m *Module) XXX_DiscardUnknown()
- func (m *Module) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Module) XXX_Merge(src proto.Message)
- func (m *Module) XXX_Size() int
- func (m *Module) XXX_Unmarshal(b []byte) error
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
- func (*UnimplementedServiceServer) GetBlockByHeight(ctx context.Context, req *GetBlockByHeightRequest) (*GetBlockByHeightResponse, error)
- func (*UnimplementedServiceServer) GetLatestBlock(ctx context.Context, req *GetLatestBlockRequest) (*GetLatestBlockResponse, error)
- func (*UnimplementedServiceServer) GetLatestValidatorSet(ctx context.Context, req *GetLatestValidatorSetRequest) (*GetLatestValidatorSetResponse, error)
- func (*UnimplementedServiceServer) GetNodeInfo(ctx context.Context, req *GetNodeInfoRequest) (*GetNodeInfoResponse, error)
- func (*UnimplementedServiceServer) GetSyncing(ctx context.Context, req *GetSyncingRequest) (*GetSyncingResponse, error)
- func (*UnimplementedServiceServer) GetValidatorSetByHeight(ctx context.Context, req *GetValidatorSetByHeightRequest) (*GetValidatorSetByHeightResponse, error)
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)
- func (m *Validator) GetAddress() string
- func (m *Validator) GetProposerPriority() int64
- func (m *Validator) GetPubKey() *types.Any
- func (m *Validator) GetVotingPower() int64
- func (m *Validator) Marshal() (dAtA []byte, err error)
- func (m *Validator) MarshalTo(dAtA []byte) (int, error)
- func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Validator) ProtoMessage()
- func (m *Validator) Reset()
- func (m *Validator) Size() (n int)
- func (m *Validator) String() string
- func (m *Validator) Unmarshal(dAtA []byte) error
- func (m *Validator) XXX_DiscardUnknown()
- func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Validator) XXX_Merge(src proto.Message)
- func (m *Validator) XXX_Size() int
- func (m *Validator) XXX_Unmarshal(b []byte) error
- type VersionInfo
- func (*VersionInfo) Descriptor() ([]byte, []int)
- func (m *VersionInfo) GetAppName() string
- func (m *VersionInfo) GetBuildDeps() []*Module
- func (m *VersionInfo) GetBuildTags() string
- func (m *VersionInfo) GetCosmosSdkVersion() string
- func (m *VersionInfo) GetGitCommit() string
- func (m *VersionInfo) GetGoVersion() string
- func (m *VersionInfo) GetName() string
- func (m *VersionInfo) GetVersion() string
- func (m *VersionInfo) Marshal() (dAtA []byte, err error)
- func (m *VersionInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *VersionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VersionInfo) ProtoMessage()
- func (m *VersionInfo) Reset()
- func (m *VersionInfo) Size() (n int)
- func (m *VersionInfo) String() string
- func (m *VersionInfo) Unmarshal(dAtA []byte) error
- func (m *VersionInfo) XXX_DiscardUnknown()
- func (m *VersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VersionInfo) XXX_Merge(src proto.Message)
- func (m *VersionInfo) XXX_Size() int
- func (m *VersionInfo) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetProtoBlock ¶ added in v0.45.17
func RegisterGRPCGatewayRoutes ¶
func RegisterGRPCGatewayRoutes(clientConn gogogrpc.ClientConn, mux *runtime.ServeMux)
RegisterGRPCGatewayRoutes mounts the tendermint service's GRPC-gateway routes on the given Mux.
func RegisterServiceHandler ¶
func RegisterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterServiceHandler registers the http handlers for service Service to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterServiceHandlerClient ¶
func RegisterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceClient) error
RegisterServiceHandlerClient registers the http handlers for service Service to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ServiceClient" to call the correct interceptors.
func RegisterServiceHandlerFromEndpoint ¶
func RegisterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterServiceHandlerFromEndpoint is same as RegisterServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterServiceHandlerServer ¶
func RegisterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceServer) error
RegisterServiceHandlerServer registers the http handlers for service Service to "mux". UnaryRPC :call ServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterServiceHandlerFromEndpoint instead.
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc1.Server, srv ServiceServer)
func RegisterTendermintService ¶
func RegisterTendermintService( qrt gogogrpc.Server, clientCtx client.Context, interfaceRegistry codectypes.InterfaceRegistry, )
RegisterTendermintService registers the tendermint queries on the gRPC router.
Types ¶
type GetBlockByHeightRequest ¶
type GetBlockByHeightRequest struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
}
GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.
func (*GetBlockByHeightRequest) Descriptor ¶
func (*GetBlockByHeightRequest) Descriptor() ([]byte, []int)
func (*GetBlockByHeightRequest) GetHeight ¶
func (m *GetBlockByHeightRequest) GetHeight() int64
func (*GetBlockByHeightRequest) Marshal ¶
func (m *GetBlockByHeightRequest) Marshal() (dAtA []byte, err error)
func (*GetBlockByHeightRequest) MarshalTo ¶
func (m *GetBlockByHeightRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetBlockByHeightRequest) MarshalToSizedBuffer ¶
func (m *GetBlockByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetBlockByHeightRequest) ProtoMessage ¶
func (*GetBlockByHeightRequest) ProtoMessage()
func (*GetBlockByHeightRequest) Reset ¶
func (m *GetBlockByHeightRequest) Reset()
func (*GetBlockByHeightRequest) Size ¶
func (m *GetBlockByHeightRequest) Size() (n int)
func (*GetBlockByHeightRequest) String ¶
func (m *GetBlockByHeightRequest) String() string
func (*GetBlockByHeightRequest) Unmarshal ¶
func (m *GetBlockByHeightRequest) Unmarshal(dAtA []byte) error
func (*GetBlockByHeightRequest) XXX_DiscardUnknown ¶
func (m *GetBlockByHeightRequest) XXX_DiscardUnknown()
func (*GetBlockByHeightRequest) XXX_Marshal ¶
func (m *GetBlockByHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockByHeightRequest) XXX_Merge ¶
func (m *GetBlockByHeightRequest) XXX_Merge(src proto.Message)
func (*GetBlockByHeightRequest) XXX_Size ¶
func (m *GetBlockByHeightRequest) XXX_Size() int
func (*GetBlockByHeightRequest) XXX_Unmarshal ¶
func (m *GetBlockByHeightRequest) XXX_Unmarshal(b []byte) error
type GetBlockByHeightResponse ¶
type GetBlockByHeightResponse struct { BlockId *types1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` Block *types1.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` }
GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
func (*GetBlockByHeightResponse) Descriptor ¶
func (*GetBlockByHeightResponse) Descriptor() ([]byte, []int)
func (*GetBlockByHeightResponse) GetBlock ¶
func (m *GetBlockByHeightResponse) GetBlock() *types1.Block
func (*GetBlockByHeightResponse) GetBlockId ¶
func (m *GetBlockByHeightResponse) GetBlockId() *types1.BlockID
func (*GetBlockByHeightResponse) Marshal ¶
func (m *GetBlockByHeightResponse) Marshal() (dAtA []byte, err error)
func (*GetBlockByHeightResponse) MarshalTo ¶
func (m *GetBlockByHeightResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetBlockByHeightResponse) MarshalToSizedBuffer ¶
func (m *GetBlockByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetBlockByHeightResponse) ProtoMessage ¶
func (*GetBlockByHeightResponse) ProtoMessage()
func (*GetBlockByHeightResponse) Reset ¶
func (m *GetBlockByHeightResponse) Reset()
func (*GetBlockByHeightResponse) Size ¶
func (m *GetBlockByHeightResponse) Size() (n int)
func (*GetBlockByHeightResponse) String ¶
func (m *GetBlockByHeightResponse) String() string
func (*GetBlockByHeightResponse) Unmarshal ¶
func (m *GetBlockByHeightResponse) Unmarshal(dAtA []byte) error
func (*GetBlockByHeightResponse) XXX_DiscardUnknown ¶
func (m *GetBlockByHeightResponse) XXX_DiscardUnknown()
func (*GetBlockByHeightResponse) XXX_Marshal ¶
func (m *GetBlockByHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockByHeightResponse) XXX_Merge ¶
func (m *GetBlockByHeightResponse) XXX_Merge(src proto.Message)
func (*GetBlockByHeightResponse) XXX_Size ¶
func (m *GetBlockByHeightResponse) XXX_Size() int
func (*GetBlockByHeightResponse) XXX_Unmarshal ¶
func (m *GetBlockByHeightResponse) XXX_Unmarshal(b []byte) error
type GetLatestBlockRequest ¶
type GetLatestBlockRequest struct { }
GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.
func (*GetLatestBlockRequest) Descriptor ¶
func (*GetLatestBlockRequest) Descriptor() ([]byte, []int)
func (*GetLatestBlockRequest) Marshal ¶
func (m *GetLatestBlockRequest) Marshal() (dAtA []byte, err error)
func (*GetLatestBlockRequest) MarshalTo ¶
func (m *GetLatestBlockRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetLatestBlockRequest) MarshalToSizedBuffer ¶
func (m *GetLatestBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetLatestBlockRequest) ProtoMessage ¶
func (*GetLatestBlockRequest) ProtoMessage()
func (*GetLatestBlockRequest) Reset ¶
func (m *GetLatestBlockRequest) Reset()
func (*GetLatestBlockRequest) Size ¶
func (m *GetLatestBlockRequest) Size() (n int)
func (*GetLatestBlockRequest) String ¶
func (m *GetLatestBlockRequest) String() string
func (*GetLatestBlockRequest) Unmarshal ¶
func (m *GetLatestBlockRequest) Unmarshal(dAtA []byte) error
func (*GetLatestBlockRequest) XXX_DiscardUnknown ¶
func (m *GetLatestBlockRequest) XXX_DiscardUnknown()
func (*GetLatestBlockRequest) XXX_Marshal ¶
func (m *GetLatestBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLatestBlockRequest) XXX_Merge ¶
func (m *GetLatestBlockRequest) XXX_Merge(src proto.Message)
func (*GetLatestBlockRequest) XXX_Size ¶
func (m *GetLatestBlockRequest) XXX_Size() int
func (*GetLatestBlockRequest) XXX_Unmarshal ¶
func (m *GetLatestBlockRequest) XXX_Unmarshal(b []byte) error
type GetLatestBlockResponse ¶
type GetLatestBlockResponse struct { BlockId *types1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` Block *types1.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` }
GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
func (*GetLatestBlockResponse) Descriptor ¶
func (*GetLatestBlockResponse) Descriptor() ([]byte, []int)
func (*GetLatestBlockResponse) GetBlock ¶
func (m *GetLatestBlockResponse) GetBlock() *types1.Block
func (*GetLatestBlockResponse) GetBlockId ¶
func (m *GetLatestBlockResponse) GetBlockId() *types1.BlockID
func (*GetLatestBlockResponse) Marshal ¶
func (m *GetLatestBlockResponse) Marshal() (dAtA []byte, err error)
func (*GetLatestBlockResponse) MarshalTo ¶
func (m *GetLatestBlockResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetLatestBlockResponse) MarshalToSizedBuffer ¶
func (m *GetLatestBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetLatestBlockResponse) ProtoMessage ¶
func (*GetLatestBlockResponse) ProtoMessage()
func (*GetLatestBlockResponse) Reset ¶
func (m *GetLatestBlockResponse) Reset()
func (*GetLatestBlockResponse) Size ¶
func (m *GetLatestBlockResponse) Size() (n int)
func (*GetLatestBlockResponse) String ¶
func (m *GetLatestBlockResponse) String() string
func (*GetLatestBlockResponse) Unmarshal ¶
func (m *GetLatestBlockResponse) Unmarshal(dAtA []byte) error
func (*GetLatestBlockResponse) XXX_DiscardUnknown ¶
func (m *GetLatestBlockResponse) XXX_DiscardUnknown()
func (*GetLatestBlockResponse) XXX_Marshal ¶
func (m *GetLatestBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLatestBlockResponse) XXX_Merge ¶
func (m *GetLatestBlockResponse) XXX_Merge(src proto.Message)
func (*GetLatestBlockResponse) XXX_Size ¶
func (m *GetLatestBlockResponse) XXX_Size() int
func (*GetLatestBlockResponse) XXX_Unmarshal ¶
func (m *GetLatestBlockResponse) XXX_Unmarshal(b []byte) error
type GetLatestValidatorSetRequest ¶
type GetLatestValidatorSetRequest struct { // pagination defines an pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
func (*GetLatestValidatorSetRequest) Descriptor ¶
func (*GetLatestValidatorSetRequest) Descriptor() ([]byte, []int)
func (*GetLatestValidatorSetRequest) GetPagination ¶
func (m *GetLatestValidatorSetRequest) GetPagination() *query.PageRequest
func (*GetLatestValidatorSetRequest) Marshal ¶
func (m *GetLatestValidatorSetRequest) Marshal() (dAtA []byte, err error)
func (*GetLatestValidatorSetRequest) MarshalTo ¶
func (m *GetLatestValidatorSetRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetLatestValidatorSetRequest) MarshalToSizedBuffer ¶
func (m *GetLatestValidatorSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetLatestValidatorSetRequest) ProtoMessage ¶
func (*GetLatestValidatorSetRequest) ProtoMessage()
func (*GetLatestValidatorSetRequest) Reset ¶
func (m *GetLatestValidatorSetRequest) Reset()
func (*GetLatestValidatorSetRequest) Size ¶
func (m *GetLatestValidatorSetRequest) Size() (n int)
func (*GetLatestValidatorSetRequest) String ¶
func (m *GetLatestValidatorSetRequest) String() string
func (*GetLatestValidatorSetRequest) Unmarshal ¶
func (m *GetLatestValidatorSetRequest) Unmarshal(dAtA []byte) error
func (*GetLatestValidatorSetRequest) XXX_DiscardUnknown ¶
func (m *GetLatestValidatorSetRequest) XXX_DiscardUnknown()
func (*GetLatestValidatorSetRequest) XXX_Marshal ¶
func (m *GetLatestValidatorSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLatestValidatorSetRequest) XXX_Merge ¶
func (m *GetLatestValidatorSetRequest) XXX_Merge(src proto.Message)
func (*GetLatestValidatorSetRequest) XXX_Size ¶
func (m *GetLatestValidatorSetRequest) XXX_Size() int
func (*GetLatestValidatorSetRequest) XXX_Unmarshal ¶
func (m *GetLatestValidatorSetRequest) XXX_Unmarshal(b []byte) error
type GetLatestValidatorSetResponse ¶
type GetLatestValidatorSetResponse struct { BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` Validators []*Validator `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"` // pagination defines an pagination for the response. Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
func (*GetLatestValidatorSetResponse) Descriptor ¶
func (*GetLatestValidatorSetResponse) Descriptor() ([]byte, []int)
func (*GetLatestValidatorSetResponse) GetBlockHeight ¶
func (m *GetLatestValidatorSetResponse) GetBlockHeight() int64
func (*GetLatestValidatorSetResponse) GetPagination ¶
func (m *GetLatestValidatorSetResponse) GetPagination() *query.PageResponse
func (*GetLatestValidatorSetResponse) GetValidators ¶
func (m *GetLatestValidatorSetResponse) GetValidators() []*Validator
func (*GetLatestValidatorSetResponse) Marshal ¶
func (m *GetLatestValidatorSetResponse) Marshal() (dAtA []byte, err error)
func (*GetLatestValidatorSetResponse) MarshalTo ¶
func (m *GetLatestValidatorSetResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetLatestValidatorSetResponse) MarshalToSizedBuffer ¶
func (m *GetLatestValidatorSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetLatestValidatorSetResponse) ProtoMessage ¶
func (*GetLatestValidatorSetResponse) ProtoMessage()
func (*GetLatestValidatorSetResponse) Reset ¶
func (m *GetLatestValidatorSetResponse) Reset()
func (*GetLatestValidatorSetResponse) Size ¶
func (m *GetLatestValidatorSetResponse) Size() (n int)
func (*GetLatestValidatorSetResponse) String ¶
func (m *GetLatestValidatorSetResponse) String() string
func (*GetLatestValidatorSetResponse) Unmarshal ¶
func (m *GetLatestValidatorSetResponse) Unmarshal(dAtA []byte) error
func (*GetLatestValidatorSetResponse) UnpackInterfaces ¶
func (m *GetLatestValidatorSetResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
func (*GetLatestValidatorSetResponse) XXX_DiscardUnknown ¶
func (m *GetLatestValidatorSetResponse) XXX_DiscardUnknown()
func (*GetLatestValidatorSetResponse) XXX_Marshal ¶
func (m *GetLatestValidatorSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLatestValidatorSetResponse) XXX_Merge ¶
func (m *GetLatestValidatorSetResponse) XXX_Merge(src proto.Message)
func (*GetLatestValidatorSetResponse) XXX_Size ¶
func (m *GetLatestValidatorSetResponse) XXX_Size() int
func (*GetLatestValidatorSetResponse) XXX_Unmarshal ¶
func (m *GetLatestValidatorSetResponse) XXX_Unmarshal(b []byte) error
type GetNodeInfoRequest ¶
type GetNodeInfoRequest struct { }
GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.
func (*GetNodeInfoRequest) Descriptor ¶
func (*GetNodeInfoRequest) Descriptor() ([]byte, []int)
func (*GetNodeInfoRequest) Marshal ¶
func (m *GetNodeInfoRequest) Marshal() (dAtA []byte, err error)
func (*GetNodeInfoRequest) MarshalTo ¶
func (m *GetNodeInfoRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetNodeInfoRequest) MarshalToSizedBuffer ¶
func (m *GetNodeInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetNodeInfoRequest) ProtoMessage ¶
func (*GetNodeInfoRequest) ProtoMessage()
func (*GetNodeInfoRequest) Reset ¶
func (m *GetNodeInfoRequest) Reset()
func (*GetNodeInfoRequest) Size ¶
func (m *GetNodeInfoRequest) Size() (n int)
func (*GetNodeInfoRequest) String ¶
func (m *GetNodeInfoRequest) String() string
func (*GetNodeInfoRequest) Unmarshal ¶
func (m *GetNodeInfoRequest) Unmarshal(dAtA []byte) error
func (*GetNodeInfoRequest) XXX_DiscardUnknown ¶
func (m *GetNodeInfoRequest) XXX_DiscardUnknown()
func (*GetNodeInfoRequest) XXX_Marshal ¶
func (m *GetNodeInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetNodeInfoRequest) XXX_Merge ¶
func (m *GetNodeInfoRequest) XXX_Merge(src proto.Message)
func (*GetNodeInfoRequest) XXX_Size ¶
func (m *GetNodeInfoRequest) XXX_Size() int
func (*GetNodeInfoRequest) XXX_Unmarshal ¶
func (m *GetNodeInfoRequest) XXX_Unmarshal(b []byte) error
type GetNodeInfoResponse ¶
type GetNodeInfoResponse struct { DefaultNodeInfo *p2p.DefaultNodeInfo `protobuf:"bytes,1,opt,name=default_node_info,json=defaultNodeInfo,proto3" json:"default_node_info,omitempty"` ApplicationVersion *VersionInfo `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"` }
GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method.
func (*GetNodeInfoResponse) Descriptor ¶
func (*GetNodeInfoResponse) Descriptor() ([]byte, []int)
func (*GetNodeInfoResponse) GetApplicationVersion ¶
func (m *GetNodeInfoResponse) GetApplicationVersion() *VersionInfo
func (*GetNodeInfoResponse) GetDefaultNodeInfo ¶
func (m *GetNodeInfoResponse) GetDefaultNodeInfo() *p2p.DefaultNodeInfo
func (*GetNodeInfoResponse) Marshal ¶
func (m *GetNodeInfoResponse) Marshal() (dAtA []byte, err error)
func (*GetNodeInfoResponse) MarshalTo ¶
func (m *GetNodeInfoResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetNodeInfoResponse) MarshalToSizedBuffer ¶
func (m *GetNodeInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetNodeInfoResponse) ProtoMessage ¶
func (*GetNodeInfoResponse) ProtoMessage()
func (*GetNodeInfoResponse) Reset ¶
func (m *GetNodeInfoResponse) Reset()
func (*GetNodeInfoResponse) Size ¶
func (m *GetNodeInfoResponse) Size() (n int)
func (*GetNodeInfoResponse) String ¶
func (m *GetNodeInfoResponse) String() string
func (*GetNodeInfoResponse) Unmarshal ¶
func (m *GetNodeInfoResponse) Unmarshal(dAtA []byte) error
func (*GetNodeInfoResponse) XXX_DiscardUnknown ¶
func (m *GetNodeInfoResponse) XXX_DiscardUnknown()
func (*GetNodeInfoResponse) XXX_Marshal ¶
func (m *GetNodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetNodeInfoResponse) XXX_Merge ¶
func (m *GetNodeInfoResponse) XXX_Merge(src proto.Message)
func (*GetNodeInfoResponse) XXX_Size ¶
func (m *GetNodeInfoResponse) XXX_Size() int
func (*GetNodeInfoResponse) XXX_Unmarshal ¶
func (m *GetNodeInfoResponse) XXX_Unmarshal(b []byte) error
type GetSyncingRequest ¶
type GetSyncingRequest struct { }
GetSyncingRequest is the request type for the Query/GetSyncing RPC method.
func (*GetSyncingRequest) Descriptor ¶
func (*GetSyncingRequest) Descriptor() ([]byte, []int)
func (*GetSyncingRequest) Marshal ¶
func (m *GetSyncingRequest) Marshal() (dAtA []byte, err error)
func (*GetSyncingRequest) MarshalTo ¶
func (m *GetSyncingRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetSyncingRequest) MarshalToSizedBuffer ¶
func (m *GetSyncingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetSyncingRequest) ProtoMessage ¶
func (*GetSyncingRequest) ProtoMessage()
func (*GetSyncingRequest) Reset ¶
func (m *GetSyncingRequest) Reset()
func (*GetSyncingRequest) Size ¶
func (m *GetSyncingRequest) Size() (n int)
func (*GetSyncingRequest) String ¶
func (m *GetSyncingRequest) String() string
func (*GetSyncingRequest) Unmarshal ¶
func (m *GetSyncingRequest) Unmarshal(dAtA []byte) error
func (*GetSyncingRequest) XXX_DiscardUnknown ¶
func (m *GetSyncingRequest) XXX_DiscardUnknown()
func (*GetSyncingRequest) XXX_Marshal ¶
func (m *GetSyncingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetSyncingRequest) XXX_Merge ¶
func (m *GetSyncingRequest) XXX_Merge(src proto.Message)
func (*GetSyncingRequest) XXX_Size ¶
func (m *GetSyncingRequest) XXX_Size() int
func (*GetSyncingRequest) XXX_Unmarshal ¶
func (m *GetSyncingRequest) XXX_Unmarshal(b []byte) error
type GetSyncingResponse ¶
type GetSyncingResponse struct {
Syncing bool `protobuf:"varint,1,opt,name=syncing,proto3" json:"syncing,omitempty"`
}
GetSyncingResponse is the response type for the Query/GetSyncing RPC method.
func (*GetSyncingResponse) Descriptor ¶
func (*GetSyncingResponse) Descriptor() ([]byte, []int)
func (*GetSyncingResponse) GetSyncing ¶
func (m *GetSyncingResponse) GetSyncing() bool
func (*GetSyncingResponse) Marshal ¶
func (m *GetSyncingResponse) Marshal() (dAtA []byte, err error)
func (*GetSyncingResponse) MarshalTo ¶
func (m *GetSyncingResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetSyncingResponse) MarshalToSizedBuffer ¶
func (m *GetSyncingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetSyncingResponse) ProtoMessage ¶
func (*GetSyncingResponse) ProtoMessage()
func (*GetSyncingResponse) Reset ¶
func (m *GetSyncingResponse) Reset()
func (*GetSyncingResponse) Size ¶
func (m *GetSyncingResponse) Size() (n int)
func (*GetSyncingResponse) String ¶
func (m *GetSyncingResponse) String() string
func (*GetSyncingResponse) Unmarshal ¶
func (m *GetSyncingResponse) Unmarshal(dAtA []byte) error
func (*GetSyncingResponse) XXX_DiscardUnknown ¶
func (m *GetSyncingResponse) XXX_DiscardUnknown()
func (*GetSyncingResponse) XXX_Marshal ¶
func (m *GetSyncingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetSyncingResponse) XXX_Merge ¶
func (m *GetSyncingResponse) XXX_Merge(src proto.Message)
func (*GetSyncingResponse) XXX_Size ¶
func (m *GetSyncingResponse) XXX_Size() int
func (*GetSyncingResponse) XXX_Unmarshal ¶
func (m *GetSyncingResponse) XXX_Unmarshal(b []byte) error
type GetValidatorSetByHeightRequest ¶
type GetValidatorSetByHeightRequest struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // pagination defines an pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
func (*GetValidatorSetByHeightRequest) Descriptor ¶
func (*GetValidatorSetByHeightRequest) Descriptor() ([]byte, []int)
func (*GetValidatorSetByHeightRequest) GetHeight ¶
func (m *GetValidatorSetByHeightRequest) GetHeight() int64
func (*GetValidatorSetByHeightRequest) GetPagination ¶
func (m *GetValidatorSetByHeightRequest) GetPagination() *query.PageRequest
func (*GetValidatorSetByHeightRequest) Marshal ¶
func (m *GetValidatorSetByHeightRequest) Marshal() (dAtA []byte, err error)
func (*GetValidatorSetByHeightRequest) MarshalTo ¶
func (m *GetValidatorSetByHeightRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetValidatorSetByHeightRequest) MarshalToSizedBuffer ¶
func (m *GetValidatorSetByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetValidatorSetByHeightRequest) ProtoMessage ¶
func (*GetValidatorSetByHeightRequest) ProtoMessage()
func (*GetValidatorSetByHeightRequest) Reset ¶
func (m *GetValidatorSetByHeightRequest) Reset()
func (*GetValidatorSetByHeightRequest) Size ¶
func (m *GetValidatorSetByHeightRequest) Size() (n int)
func (*GetValidatorSetByHeightRequest) String ¶
func (m *GetValidatorSetByHeightRequest) String() string
func (*GetValidatorSetByHeightRequest) Unmarshal ¶
func (m *GetValidatorSetByHeightRequest) Unmarshal(dAtA []byte) error
func (*GetValidatorSetByHeightRequest) XXX_DiscardUnknown ¶
func (m *GetValidatorSetByHeightRequest) XXX_DiscardUnknown()
func (*GetValidatorSetByHeightRequest) XXX_Marshal ¶
func (m *GetValidatorSetByHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetValidatorSetByHeightRequest) XXX_Merge ¶
func (m *GetValidatorSetByHeightRequest) XXX_Merge(src proto.Message)
func (*GetValidatorSetByHeightRequest) XXX_Size ¶
func (m *GetValidatorSetByHeightRequest) XXX_Size() int
func (*GetValidatorSetByHeightRequest) XXX_Unmarshal ¶
func (m *GetValidatorSetByHeightRequest) XXX_Unmarshal(b []byte) error
type GetValidatorSetByHeightResponse ¶
type GetValidatorSetByHeightResponse struct { BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` Validators []*Validator `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"` // pagination defines an pagination for the response. Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
func (*GetValidatorSetByHeightResponse) Descriptor ¶
func (*GetValidatorSetByHeightResponse) Descriptor() ([]byte, []int)
func (*GetValidatorSetByHeightResponse) GetBlockHeight ¶
func (m *GetValidatorSetByHeightResponse) GetBlockHeight() int64
func (*GetValidatorSetByHeightResponse) GetPagination ¶
func (m *GetValidatorSetByHeightResponse) GetPagination() *query.PageResponse
func (*GetValidatorSetByHeightResponse) GetValidators ¶
func (m *GetValidatorSetByHeightResponse) GetValidators() []*Validator
func (*GetValidatorSetByHeightResponse) Marshal ¶
func (m *GetValidatorSetByHeightResponse) Marshal() (dAtA []byte, err error)
func (*GetValidatorSetByHeightResponse) MarshalTo ¶
func (m *GetValidatorSetByHeightResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetValidatorSetByHeightResponse) MarshalToSizedBuffer ¶
func (m *GetValidatorSetByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetValidatorSetByHeightResponse) ProtoMessage ¶
func (*GetValidatorSetByHeightResponse) ProtoMessage()
func (*GetValidatorSetByHeightResponse) Reset ¶
func (m *GetValidatorSetByHeightResponse) Reset()
func (*GetValidatorSetByHeightResponse) Size ¶
func (m *GetValidatorSetByHeightResponse) Size() (n int)
func (*GetValidatorSetByHeightResponse) String ¶
func (m *GetValidatorSetByHeightResponse) String() string
func (*GetValidatorSetByHeightResponse) Unmarshal ¶
func (m *GetValidatorSetByHeightResponse) Unmarshal(dAtA []byte) error
func (*GetValidatorSetByHeightResponse) XXX_DiscardUnknown ¶
func (m *GetValidatorSetByHeightResponse) XXX_DiscardUnknown()
func (*GetValidatorSetByHeightResponse) XXX_Marshal ¶
func (m *GetValidatorSetByHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetValidatorSetByHeightResponse) XXX_Merge ¶
func (m *GetValidatorSetByHeightResponse) XXX_Merge(src proto.Message)
func (*GetValidatorSetByHeightResponse) XXX_Size ¶
func (m *GetValidatorSetByHeightResponse) XXX_Size() int
func (*GetValidatorSetByHeightResponse) XXX_Unmarshal ¶
func (m *GetValidatorSetByHeightResponse) XXX_Unmarshal(b []byte) error
type Module ¶
type Module struct { // module path Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // module version Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // checksum Sum string `protobuf:"bytes,3,opt,name=sum,proto3" json:"sum,omitempty"` }
Module is the type for VersionInfo
func (*Module) Descriptor ¶
func (*Module) GetVersion ¶
func (*Module) MarshalToSizedBuffer ¶
func (*Module) ProtoMessage ¶
func (*Module) ProtoMessage()
func (*Module) XXX_DiscardUnknown ¶
func (m *Module) XXX_DiscardUnknown()
func (*Module) XXX_Marshal ¶
func (*Module) XXX_Unmarshal ¶
type ServiceClient ¶
type ServiceClient interface { // GetNodeInfo queries the current node info. GetNodeInfo(ctx context.Context, in *GetNodeInfoRequest, opts ...grpc.CallOption) (*GetNodeInfoResponse, error) // GetSyncing queries node syncing. GetSyncing(ctx context.Context, in *GetSyncingRequest, opts ...grpc.CallOption) (*GetSyncingResponse, error) // GetLatestBlock returns the latest block. GetLatestBlock(ctx context.Context, in *GetLatestBlockRequest, opts ...grpc.CallOption) (*GetLatestBlockResponse, error) // GetBlockByHeight queries block for given height. GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*GetBlockByHeightResponse, error) // GetLatestValidatorSet queries latest validator-set. GetLatestValidatorSet(ctx context.Context, in *GetLatestValidatorSetRequest, opts ...grpc.CallOption) (*GetLatestValidatorSetResponse, error) // GetValidatorSetByHeight queries validator-set at a given height. GetValidatorSetByHeight(ctx context.Context, in *GetValidatorSetByHeightRequest, opts ...grpc.CallOption) (*GetValidatorSetByHeightResponse, error) }
ServiceClient is the client API for Service service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServiceClient ¶
func NewServiceClient(cc grpc1.ClientConn) ServiceClient
type ServiceServer ¶
type ServiceServer interface { // GetNodeInfo queries the current node info. GetNodeInfo(context.Context, *GetNodeInfoRequest) (*GetNodeInfoResponse, error) // GetSyncing queries node syncing. GetSyncing(context.Context, *GetSyncingRequest) (*GetSyncingResponse, error) // GetLatestBlock returns the latest block. GetLatestBlock(context.Context, *GetLatestBlockRequest) (*GetLatestBlockResponse, error) // GetBlockByHeight queries block for given height. GetBlockByHeight(context.Context, *GetBlockByHeightRequest) (*GetBlockByHeightResponse, error) // GetLatestValidatorSet queries latest validator-set. GetLatestValidatorSet(context.Context, *GetLatestValidatorSetRequest) (*GetLatestValidatorSetResponse, error) // GetValidatorSetByHeight queries validator-set at a given height. GetValidatorSetByHeight(context.Context, *GetValidatorSetByHeightRequest) (*GetValidatorSetByHeightResponse, error) }
ServiceServer is the server API for Service service.
func NewQueryServer ¶
func NewQueryServer(clientCtx client.Context, interfaceRegistry codectypes.InterfaceRegistry) ServiceServer
NewQueryServer creates a new tendermint query server.
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedServiceServer) GetBlockByHeight ¶
func (*UnimplementedServiceServer) GetBlockByHeight(ctx context.Context, req *GetBlockByHeightRequest) (*GetBlockByHeightResponse, error)
func (*UnimplementedServiceServer) GetLatestBlock ¶
func (*UnimplementedServiceServer) GetLatestBlock(ctx context.Context, req *GetLatestBlockRequest) (*GetLatestBlockResponse, error)
func (*UnimplementedServiceServer) GetLatestValidatorSet ¶
func (*UnimplementedServiceServer) GetLatestValidatorSet(ctx context.Context, req *GetLatestValidatorSetRequest) (*GetLatestValidatorSetResponse, error)
func (*UnimplementedServiceServer) GetNodeInfo ¶
func (*UnimplementedServiceServer) GetNodeInfo(ctx context.Context, req *GetNodeInfoRequest) (*GetNodeInfoResponse, error)
func (*UnimplementedServiceServer) GetSyncing ¶
func (*UnimplementedServiceServer) GetSyncing(ctx context.Context, req *GetSyncingRequest) (*GetSyncingResponse, error)
func (*UnimplementedServiceServer) GetValidatorSetByHeight ¶
func (*UnimplementedServiceServer) GetValidatorSetByHeight(ctx context.Context, req *GetValidatorSetByHeightRequest) (*GetValidatorSetByHeightResponse, error)
type Validator ¶
type Validator struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` PubKey *types.Any `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` VotingPower int64 `protobuf:"varint,3,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"` ProposerPriority int64 `protobuf:"varint,4,opt,name=proposer_priority,json=proposerPriority,proto3" json:"proposer_priority,omitempty"` }
Validator is the type for the validator-set.
func (*Validator) Descriptor ¶
func (*Validator) GetAddress ¶
func (*Validator) GetProposerPriority ¶
func (*Validator) GetVotingPower ¶
func (*Validator) MarshalToSizedBuffer ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) XXX_DiscardUnknown ¶
func (m *Validator) XXX_DiscardUnknown()
func (*Validator) XXX_Marshal ¶
func (*Validator) XXX_Unmarshal ¶
type VersionInfo ¶
type VersionInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` AppName string `protobuf:"bytes,2,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` GitCommit string `protobuf:"bytes,4,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"` BuildTags string `protobuf:"bytes,5,opt,name=build_tags,json=buildTags,proto3" json:"build_tags,omitempty"` GoVersion string `protobuf:"bytes,6,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"` BuildDeps []*Module `protobuf:"bytes,7,rep,name=build_deps,json=buildDeps,proto3" json:"build_deps,omitempty"` // Since: cosmos-sdk 0.43 CosmosSdkVersion string `protobuf:"bytes,8,opt,name=cosmos_sdk_version,json=cosmosSdkVersion,proto3" json:"cosmos_sdk_version,omitempty"` }
VersionInfo is the type for the GetNodeInfoResponse message.
func (*VersionInfo) Descriptor ¶
func (*VersionInfo) Descriptor() ([]byte, []int)
func (*VersionInfo) GetAppName ¶
func (m *VersionInfo) GetAppName() string
func (*VersionInfo) GetBuildDeps ¶
func (m *VersionInfo) GetBuildDeps() []*Module
func (*VersionInfo) GetBuildTags ¶
func (m *VersionInfo) GetBuildTags() string
func (*VersionInfo) GetCosmosSdkVersion ¶
func (m *VersionInfo) GetCosmosSdkVersion() string
func (*VersionInfo) GetGitCommit ¶
func (m *VersionInfo) GetGitCommit() string
func (*VersionInfo) GetGoVersion ¶
func (m *VersionInfo) GetGoVersion() string
func (*VersionInfo) GetName ¶
func (m *VersionInfo) GetName() string
func (*VersionInfo) GetVersion ¶
func (m *VersionInfo) GetVersion() string
func (*VersionInfo) Marshal ¶
func (m *VersionInfo) Marshal() (dAtA []byte, err error)
func (*VersionInfo) MarshalToSizedBuffer ¶
func (m *VersionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VersionInfo) ProtoMessage ¶
func (*VersionInfo) ProtoMessage()
func (*VersionInfo) Reset ¶
func (m *VersionInfo) Reset()
func (*VersionInfo) Size ¶
func (m *VersionInfo) Size() (n int)
func (*VersionInfo) String ¶
func (m *VersionInfo) String() string
func (*VersionInfo) Unmarshal ¶
func (m *VersionInfo) Unmarshal(dAtA []byte) error
func (*VersionInfo) XXX_DiscardUnknown ¶
func (m *VersionInfo) XXX_DiscardUnknown()
func (*VersionInfo) XXX_Marshal ¶
func (m *VersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VersionInfo) XXX_Merge ¶
func (m *VersionInfo) XXX_Merge(src proto.Message)
func (*VersionInfo) XXX_Size ¶
func (m *VersionInfo) XXX_Size() int
func (*VersionInfo) XXX_Unmarshal ¶
func (m *VersionInfo) XXX_Unmarshal(b []byte) error