import { Plan, PlanSDKType, ModuleVersion, ModuleVersionSDKType } from "./upgrade"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { TxRpc } from "../../../types"; import { QueryClient } from "@cosmjs/stargate"; export declare const protobufPackage = "cosmos.upgrade.v1beta1"; /** * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC * method. */ export interface QueryCurrentPlanRequest { } /** * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC * method. */ export interface QueryCurrentPlanRequestSDKType { } /** * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC * method. */ export interface QueryCurrentPlanResponse { /** plan is the current upgrade plan. */ plan?: Plan | undefined; } /** * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC * method. */ export interface QueryCurrentPlanResponseSDKType { plan?: PlanSDKType | 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; } /** * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC * method. */ export interface QueryAppliedPlanRequestSDKType { 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: bigint; } /** * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC * method. */ export interface QueryAppliedPlanResponseSDKType { height: bigint; } /** * 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: bigint; } /** * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState * RPC method. */ /** @deprecated */ export interface QueryUpgradedConsensusStateRequestSDKType { last_height: bigint; } /** * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState * RPC method. */ /** @deprecated */ export interface QueryUpgradedConsensusStateResponse { /** Since: cosmos-sdk 0.43 */ upgradedConsensusState: Uint8Array; } /** * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState * RPC method. */ /** @deprecated */ export interface QueryUpgradedConsensusStateResponseSDKType { upgraded_consensus_state: Uint8Array; } /** * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions * RPC method. * * Since: cosmos-sdk 0.43 */ 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; } /** * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions * RPC method. * * Since: cosmos-sdk 0.43 */ export interface QueryModuleVersionsRequestSDKType { module_name: string; } /** * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions * RPC method. * * Since: cosmos-sdk 0.43 */ export interface QueryModuleVersionsResponse { /** module_versions is a list of module names with their consensus versions. */ moduleVersions: ModuleVersion[]; } /** * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions * RPC method. * * Since: cosmos-sdk 0.43 */ export interface QueryModuleVersionsResponseSDKType { module_versions: ModuleVersionSDKType[]; } export declare const QueryCurrentPlanRequest: { typeUrl: string; encode(_: QueryCurrentPlanRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanRequest; fromJSON(_: any): QueryCurrentPlanRequest; toJSON(_: QueryCurrentPlanRequest): unknown; fromPartial & {} & Record, never>>(_: I): QueryCurrentPlanRequest; }; export declare const QueryCurrentPlanResponse: { typeUrl: string; encode(message: QueryCurrentPlanResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanResponse; fromJSON(object: any): QueryCurrentPlanResponse; toJSON(message: QueryCurrentPlanResponse): unknown; fromPartial & { plan?: Plan & { name: string; time: import("../../../google/protobuf/timestamp").Timestamp & { seconds: bigint; nanos: number; } & Record, never>; height: bigint; info: string; upgradedClientState?: import("../../../google/protobuf/any").Any & { typeUrl: string; value: Uint8Array; } & Record, never>; } & Record, never>; } & Record, never>>(object: I): QueryCurrentPlanResponse; }; export declare const QueryAppliedPlanRequest: { typeUrl: string; encode(message: QueryAppliedPlanRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanRequest; fromJSON(object: any): QueryAppliedPlanRequest; toJSON(message: QueryAppliedPlanRequest): unknown; fromPartial & { name?: string; } & Record, never>>(object: I): QueryAppliedPlanRequest; }; export declare const QueryAppliedPlanResponse: { typeUrl: string; encode(message: QueryAppliedPlanResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanResponse; fromJSON(object: any): QueryAppliedPlanResponse; toJSON(message: QueryAppliedPlanResponse): unknown; fromPartial & { height?: bigint; } & Record, never>>(object: I): QueryAppliedPlanResponse; }; export declare const QueryUpgradedConsensusStateRequest: { typeUrl: string; encode(message: QueryUpgradedConsensusStateRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest; fromJSON(object: any): QueryUpgradedConsensusStateRequest; toJSON(message: QueryUpgradedConsensusStateRequest): unknown; fromPartial & { lastHeight?: bigint; } & Record, never>>(object: I): QueryUpgradedConsensusStateRequest; }; export declare const QueryUpgradedConsensusStateResponse: { typeUrl: string; encode(message: QueryUpgradedConsensusStateResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse; fromJSON(object: any): QueryUpgradedConsensusStateResponse; toJSON(message: QueryUpgradedConsensusStateResponse): unknown; fromPartial & { upgradedConsensusState?: Uint8Array; } & Record, never>>(object: I): QueryUpgradedConsensusStateResponse; }; export declare const QueryModuleVersionsRequest: { typeUrl: string; encode(message: QueryModuleVersionsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsRequest; fromJSON(object: any): QueryModuleVersionsRequest; toJSON(message: QueryModuleVersionsRequest): unknown; fromPartial & { moduleName?: string; } & Record, never>>(object: I): QueryModuleVersionsRequest; }; export declare const QueryModuleVersionsResponse: { typeUrl: string; encode(message: QueryModuleVersionsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsResponse; fromJSON(object: any): QueryModuleVersionsResponse; toJSON(message: QueryModuleVersionsResponse): unknown; fromPartial & { moduleVersions?: ModuleVersion[] & (ModuleVersion & { name: string; version: bigint; } & Record, never>)[] & Record, never>; } & Record, never>>(object: I): QueryModuleVersionsResponse; }; /** Query defines the gRPC upgrade querier service. */ export interface Query { /** CurrentPlan queries the current upgrade plan. */ CurrentPlan(request?: QueryCurrentPlanRequest): Promise; /** AppliedPlan queries a previously applied upgrade plan by its name. */ AppliedPlan(request: QueryAppliedPlanRequest): 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) */ UpgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; /** * ModuleVersions queries the list of module versions from state. * * Since: cosmos-sdk 0.43 */ ModuleVersions(request: QueryModuleVersionsRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: TxRpc); CurrentPlan(request?: QueryCurrentPlanRequest): Promise; AppliedPlan(request: QueryAppliedPlanRequest): Promise; UpgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; ModuleVersions(request: QueryModuleVersionsRequest): Promise; } export declare const createRpcQueryExtension: (base: QueryClient) => { CurrentPlan(request?: QueryCurrentPlanRequest): Promise; AppliedPlan(request: QueryAppliedPlanRequest): Promise; UpgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; ModuleVersions(request: QueryModuleVersionsRequest): Promise; };