import Long from "long"; import { grpc } from "@improbable-eng/grpc-web"; import _m0 from "protobufjs/minimal"; import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination"; import { Any } from "../../../../google/protobuf/any"; import { BlockID } from "../../../../tendermint/types/types"; import { Block } from "../../../../tendermint/types/block"; import { DefaultNodeInfo } from "../../../../tendermint/p2p/types"; export declare const protobufPackage = "cosmos.base.tendermint.v1beta1"; /** GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */ export interface GetValidatorSetByHeightRequest { height: Long; /** pagination defines an pagination for the request. */ pagination?: PageRequest; } /** GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ export interface GetValidatorSetByHeightResponse { blockHeight: Long; validators: Validator[]; /** pagination defines an pagination for the response. */ pagination?: PageResponse; } /** GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */ export interface GetLatestValidatorSetRequest { /** pagination defines an pagination for the request. */ pagination?: PageRequest; } /** GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ export interface GetLatestValidatorSetResponse { blockHeight: Long; validators: Validator[]; /** pagination defines an pagination for the response. */ pagination?: PageResponse; } /** Validator is the type for the validator-set. */ export interface Validator { address: string; pubKey?: Any; votingPower: Long; proposerPriority: Long; } /** GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. */ export interface GetBlockByHeightRequest { height: Long; } /** GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. */ export interface GetBlockByHeightResponse { blockId?: BlockID; block?: Block; } /** GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. */ export interface GetLatestBlockRequest { } /** GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. */ export interface GetLatestBlockResponse { blockId?: BlockID; block?: Block; } /** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */ export interface GetSyncingRequest { } /** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */ export interface GetSyncingResponse { syncing: boolean; } /** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */ export interface GetNodeInfoRequest { } /** GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method. */ export interface GetNodeInfoResponse { defaultNodeInfo?: DefaultNodeInfo; applicationVersion?: VersionInfo; } /** VersionInfo is the type for the GetNodeInfoResponse message. */ export interface VersionInfo { name: string; appName: string; version: string; gitCommit: string; buildTags: string; goVersion: string; buildDeps: Module[]; /** Since: cosmos-sdk 0.43 */ cosmosSdkVersion: string; } /** Module is the type for VersionInfo */ export interface Module { /** module path */ path: string; /** module version */ version: string; /** checksum */ sum: string; } export declare const GetValidatorSetByHeightRequest: { encode(message: GetValidatorSetByHeightRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetValidatorSetByHeightRequest; fromJSON(object: any): GetValidatorSetByHeightRequest; toJSON(message: GetValidatorSetByHeightRequest): unknown; fromPartial(object: DeepPartial): GetValidatorSetByHeightRequest; }; export declare const GetValidatorSetByHeightResponse: { encode(message: GetValidatorSetByHeightResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetValidatorSetByHeightResponse; fromJSON(object: any): GetValidatorSetByHeightResponse; toJSON(message: GetValidatorSetByHeightResponse): unknown; fromPartial(object: DeepPartial): GetValidatorSetByHeightResponse; }; export declare const GetLatestValidatorSetRequest: { encode(message: GetLatestValidatorSetRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetLatestValidatorSetRequest; fromJSON(object: any): GetLatestValidatorSetRequest; toJSON(message: GetLatestValidatorSetRequest): unknown; fromPartial(object: DeepPartial): GetLatestValidatorSetRequest; }; export declare const GetLatestValidatorSetResponse: { encode(message: GetLatestValidatorSetResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetLatestValidatorSetResponse; fromJSON(object: any): GetLatestValidatorSetResponse; toJSON(message: GetLatestValidatorSetResponse): unknown; fromPartial(object: DeepPartial): GetLatestValidatorSetResponse; }; export declare const Validator: { encode(message: Validator, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Validator; fromJSON(object: any): Validator; toJSON(message: Validator): unknown; fromPartial(object: DeepPartial): Validator; }; export declare const GetBlockByHeightRequest: { encode(message: GetBlockByHeightRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetBlockByHeightRequest; fromJSON(object: any): GetBlockByHeightRequest; toJSON(message: GetBlockByHeightRequest): unknown; fromPartial(object: DeepPartial): GetBlockByHeightRequest; }; export declare const GetBlockByHeightResponse: { encode(message: GetBlockByHeightResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetBlockByHeightResponse; fromJSON(object: any): GetBlockByHeightResponse; toJSON(message: GetBlockByHeightResponse): unknown; fromPartial(object: DeepPartial): GetBlockByHeightResponse; }; export declare const GetLatestBlockRequest: { encode(_: GetLatestBlockRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetLatestBlockRequest; fromJSON(_: any): GetLatestBlockRequest; toJSON(_: GetLatestBlockRequest): unknown; fromPartial(_: DeepPartial): GetLatestBlockRequest; }; export declare const GetLatestBlockResponse: { encode(message: GetLatestBlockResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetLatestBlockResponse; fromJSON(object: any): GetLatestBlockResponse; toJSON(message: GetLatestBlockResponse): unknown; fromPartial(object: DeepPartial): GetLatestBlockResponse; }; export declare const GetSyncingRequest: { encode(_: GetSyncingRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetSyncingRequest; fromJSON(_: any): GetSyncingRequest; toJSON(_: GetSyncingRequest): unknown; fromPartial(_: DeepPartial): GetSyncingRequest; }; export declare const GetSyncingResponse: { encode(message: GetSyncingResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetSyncingResponse; fromJSON(object: any): GetSyncingResponse; toJSON(message: GetSyncingResponse): unknown; fromPartial(object: DeepPartial): GetSyncingResponse; }; export declare const GetNodeInfoRequest: { encode(_: GetNodeInfoRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetNodeInfoRequest; fromJSON(_: any): GetNodeInfoRequest; toJSON(_: GetNodeInfoRequest): unknown; fromPartial(_: DeepPartial): GetNodeInfoRequest; }; export declare const GetNodeInfoResponse: { encode(message: GetNodeInfoResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetNodeInfoResponse; fromJSON(object: any): GetNodeInfoResponse; toJSON(message: GetNodeInfoResponse): unknown; fromPartial(object: DeepPartial): GetNodeInfoResponse; }; export declare const VersionInfo: { encode(message: VersionInfo, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): VersionInfo; fromJSON(object: any): VersionInfo; toJSON(message: VersionInfo): unknown; fromPartial(object: DeepPartial): VersionInfo; }; export declare const Module: { encode(message: Module, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Module; fromJSON(object: any): Module; toJSON(message: Module): unknown; fromPartial(object: DeepPartial): Module; }; /** Service defines the gRPC querier service for tendermint queries. */ export interface Service { /** GetNodeInfo queries the current node info. */ GetNodeInfo(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** GetSyncing queries node syncing. */ GetSyncing(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** GetLatestBlock returns the latest block. */ GetLatestBlock(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** GetBlockByHeight queries block for given height. */ GetBlockByHeight(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** GetLatestValidatorSet queries latest validator-set. */ GetLatestValidatorSet(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** GetValidatorSetByHeight queries validator-set at a given height. */ GetValidatorSetByHeight(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class ServiceClientImpl implements Service { private readonly rpc; constructor(rpc: Rpc); GetNodeInfo(request: DeepPartial, metadata?: grpc.Metadata): Promise; GetSyncing(request: DeepPartial, metadata?: grpc.Metadata): Promise; GetLatestBlock(request: DeepPartial, metadata?: grpc.Metadata): Promise; GetBlockByHeight(request: DeepPartial, metadata?: grpc.Metadata): Promise; GetLatestValidatorSet(request: DeepPartial, metadata?: grpc.Metadata): Promise; GetValidatorSetByHeight(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const ServiceDesc: { serviceName: string; }; export declare const ServiceGetNodeInfoDesc: UnaryMethodDefinitionish; export declare const ServiceGetSyncingDesc: UnaryMethodDefinitionish; export declare const ServiceGetLatestBlockDesc: UnaryMethodDefinitionish; export declare const ServiceGetBlockByHeightDesc: UnaryMethodDefinitionish; export declare const ServiceGetLatestValidatorSetDesc: UnaryMethodDefinitionish; export declare const ServiceGetValidatorSetByHeightDesc: UnaryMethodDefinitionish; interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } declare type UnaryMethodDefinitionish = UnaryMethodDefinitionishR; interface Rpc { unary(methodDesc: T, request: any, metadata: grpc.Metadata | undefined): Promise; } export declare class GrpcWebImpl { private host; private options; constructor(host: string, options: { transport?: grpc.TransportFactory; debug?: boolean; metadata?: grpc.Metadata; }); unary(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise; } declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long; export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};