import { grpc } from "@improbable-eng/grpc-web"; import Long from "long"; import _m0 from "protobufjs/minimal"; import { ModuleVersion, Plan } from "./upgrade"; export declare const protobufPackage = "cosmos.upgrade.v1beta1"; /** * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC * method. */ export interface QueryCurrentPlanRequest { } /** * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC * method. */ export interface QueryCurrentPlanResponse { /** plan is the current upgrade plan. */ plan: Plan | undefined; } /** * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC * method. */ export interface QueryAppliedPlanRequest { /** name is the name of the applied plan to query for. */ name: string; } /** * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC * method. */ export interface QueryAppliedPlanResponse { /** height is the block height at which the plan was applied. */ height: Long; } /** * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState * RPC method. * * @deprecated */ export interface QueryUpgradedConsensusStateRequest { /** * last height of the current chain must be sent in request * as this is the height under which next consensus state is stored */ lastHeight: Long; } /** * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState * RPC method. * * @deprecated */ export interface QueryUpgradedConsensusStateResponse { upgradedConsensusState: Uint8Array; } /** * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions * RPC method. */ export interface QueryModuleVersionsRequest { /** * module_name is a field to query a specific module * consensus version from state. Leaving this empty will * fetch the full list of module versions from state */ moduleName: string; } /** * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions * RPC method. */ export interface QueryModuleVersionsResponse { /** module_versions is a list of module names with their consensus versions. */ moduleVersions: ModuleVersion[]; } /** QueryAuthorityRequest is the request type for Query/Authority */ export interface QueryAuthorityRequest { } /** QueryAuthorityResponse is the response type for Query/Authority */ export interface QueryAuthorityResponse { address: string; } export declare const QueryCurrentPlanRequest: { encode(_: QueryCurrentPlanRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryCurrentPlanRequest; fromJSON(_: any): QueryCurrentPlanRequest; toJSON(_: QueryCurrentPlanRequest): unknown; create(base?: DeepPartial): QueryCurrentPlanRequest; fromPartial(_: DeepPartial): QueryCurrentPlanRequest; }; export declare const QueryCurrentPlanResponse: { encode(message: QueryCurrentPlanResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryCurrentPlanResponse; fromJSON(object: any): QueryCurrentPlanResponse; toJSON(message: QueryCurrentPlanResponse): unknown; create(base?: DeepPartial): QueryCurrentPlanResponse; fromPartial(object: DeepPartial): QueryCurrentPlanResponse; }; export declare const QueryAppliedPlanRequest: { encode(message: QueryAppliedPlanRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryAppliedPlanRequest; fromJSON(object: any): QueryAppliedPlanRequest; toJSON(message: QueryAppliedPlanRequest): unknown; create(base?: DeepPartial): QueryAppliedPlanRequest; fromPartial(object: DeepPartial): QueryAppliedPlanRequest; }; export declare const QueryAppliedPlanResponse: { encode(message: QueryAppliedPlanResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryAppliedPlanResponse; fromJSON(object: any): QueryAppliedPlanResponse; toJSON(message: QueryAppliedPlanResponse): unknown; create(base?: DeepPartial): QueryAppliedPlanResponse; fromPartial(object: DeepPartial): QueryAppliedPlanResponse; }; export declare const QueryUpgradedConsensusStateRequest: { encode(message: QueryUpgradedConsensusStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest; fromJSON(object: any): QueryUpgradedConsensusStateRequest; toJSON(message: QueryUpgradedConsensusStateRequest): unknown; create(base?: DeepPartial): QueryUpgradedConsensusStateRequest; fromPartial(object: DeepPartial): QueryUpgradedConsensusStateRequest; }; export declare const QueryUpgradedConsensusStateResponse: { encode(message: QueryUpgradedConsensusStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse; fromJSON(object: any): QueryUpgradedConsensusStateResponse; toJSON(message: QueryUpgradedConsensusStateResponse): unknown; create(base?: DeepPartial): QueryUpgradedConsensusStateResponse; fromPartial(object: DeepPartial): QueryUpgradedConsensusStateResponse; }; export declare const QueryModuleVersionsRequest: { encode(message: QueryModuleVersionsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryModuleVersionsRequest; fromJSON(object: any): QueryModuleVersionsRequest; toJSON(message: QueryModuleVersionsRequest): unknown; create(base?: DeepPartial): QueryModuleVersionsRequest; fromPartial(object: DeepPartial): QueryModuleVersionsRequest; }; export declare const QueryModuleVersionsResponse: { encode(message: QueryModuleVersionsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryModuleVersionsResponse; fromJSON(object: any): QueryModuleVersionsResponse; toJSON(message: QueryModuleVersionsResponse): unknown; create(base?: DeepPartial): QueryModuleVersionsResponse; fromPartial(object: DeepPartial): QueryModuleVersionsResponse; }; export declare const QueryAuthorityRequest: { encode(_: QueryAuthorityRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryAuthorityRequest; fromJSON(_: any): QueryAuthorityRequest; toJSON(_: QueryAuthorityRequest): unknown; create(base?: DeepPartial): QueryAuthorityRequest; fromPartial(_: DeepPartial): QueryAuthorityRequest; }; export declare const QueryAuthorityResponse: { encode(message: QueryAuthorityResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryAuthorityResponse; fromJSON(object: any): QueryAuthorityResponse; toJSON(message: QueryAuthorityResponse): unknown; create(base?: DeepPartial): QueryAuthorityResponse; fromPartial(object: DeepPartial): QueryAuthorityResponse; }; /** Query defines the gRPC upgrade querier service. */ export interface Query { /** CurrentPlan queries the current upgrade plan. */ CurrentPlan(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** AppliedPlan queries a previously applied upgrade plan by its name. */ AppliedPlan(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * UpgradedConsensusState queries the consensus state that will serve * as a trusted kernel for the next version of this chain. It will only be * stored at the last height of this chain. * UpgradedConsensusState RPC not supported with legacy querier * This rpc is deprecated now that IBC has its own replacement * (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) * * @deprecated */ UpgradedConsensusState(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** ModuleVersions queries the list of module versions from state. */ ModuleVersions(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** Returns the account with authority to conduct upgrades */ Authority(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: Rpc); CurrentPlan(request: DeepPartial, metadata?: grpc.Metadata): Promise; AppliedPlan(request: DeepPartial, metadata?: grpc.Metadata): Promise; UpgradedConsensusState(request: DeepPartial, metadata?: grpc.Metadata): Promise; ModuleVersions(request: DeepPartial, metadata?: grpc.Metadata): Promise; Authority(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const QueryDesc: { serviceName: string; }; export declare const QueryCurrentPlanDesc: UnaryMethodDefinitionish; export declare const QueryAppliedPlanDesc: UnaryMethodDefinitionish; export declare const QueryUpgradedConsensusStateDesc: UnaryMethodDefinitionish; export declare const QueryModuleVersionsDesc: UnaryMethodDefinitionish; export declare const QueryAuthorityDesc: UnaryMethodDefinitionish; interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } 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; upStreamRetryCodes?: number[]; }); unary(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export declare class GrpcWebError extends globalThis.Error { code: grpc.Code; metadata: grpc.Metadata; constructor(message: string, code: grpc.Code, metadata: grpc.Metadata); } export {};