UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

46 lines (38 loc) 2.09 kB
// package: cosmos.consensus.v1 // file: cosmos/consensus/v1/query.proto import * as jspb from "google-protobuf"; import * as google_api_annotations_pb from "../../../google/api/annotations_pb"; import * as tendermint_types_params_pb from "../../../tendermint/types/params_pb"; export class QueryParamsRequest extends jspb.Message { serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): QueryParamsRequest.AsObject; static toObject(includeInstance: boolean, msg: QueryParamsRequest): QueryParamsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: QueryParamsRequest, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): QueryParamsRequest; static deserializeBinaryFromReader(message: QueryParamsRequest, reader: jspb.BinaryReader): QueryParamsRequest; } export namespace QueryParamsRequest { export type AsObject = { } } export class QueryParamsResponse extends jspb.Message { hasParams(): boolean; clearParams(): void; getParams(): tendermint_types_params_pb.ConsensusParams | undefined; setParams(value?: tendermint_types_params_pb.ConsensusParams): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): QueryParamsResponse.AsObject; static toObject(includeInstance: boolean, msg: QueryParamsResponse): QueryParamsResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: QueryParamsResponse, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): QueryParamsResponse; static deserializeBinaryFromReader(message: QueryParamsResponse, reader: jspb.BinaryReader): QueryParamsResponse; } export namespace QueryParamsResponse { export type AsObject = { params?: tendermint_types_params_pb.ConsensusParams.AsObject, } }