import { TxRpc } from "../../../types.js"; import { QueryAppliedPlanRequest, QueryAppliedPlanResponse, QueryAuthorityRequest, QueryAuthorityResponse, QueryCurrentPlanRequest, QueryCurrentPlanResponse, QueryModuleVersionsRequest, QueryModuleVersionsResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query.js"; import { QueryClient } from "@cosmjs/stargate"; //#region src/cosmos/upgrade/v1beta1/query.rpc.Query.d.ts /** Query defines the gRPC upgrade querier service. */ 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. */ moduleVersions(request: QueryModuleVersionsRequest): Promise; /** Returns the account with authority to conduct upgrades */ authority(request?: QueryAuthorityRequest): Promise; } 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; authority: (request?: QueryAuthorityRequest) => Promise; } declare const createRpcQueryExtension: (base: QueryClient) => { currentPlan(request?: QueryCurrentPlanRequest): Promise; appliedPlan(request: QueryAppliedPlanRequest): Promise; upgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise; moduleVersions(request: QueryModuleVersionsRequest): Promise; authority(request?: QueryAuthorityRequest): Promise; }; //#endregion export { Query, QueryClientImpl, createRpcQueryExtension };