import { buildQuery } from "../../../helper-func-types";
import { QueryCurrentPlanRequest, QueryCurrentPlanResponse, QueryAppliedPlanRequest, QueryAppliedPlanResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryModuleVersionsRequest, QueryModuleVersionsResponse, QueryAuthorityRequest, QueryAuthorityResponse } from "./query";
export const createGetCurrentPlan = (clientResolver) => buildQuery({
    encode: QueryCurrentPlanRequest.encode,
    decode: QueryCurrentPlanResponse.decode,
    service: "cosmos.upgrade.v1beta1.Query",
    method: "CurrentPlan",
    clientResolver
});
export const createGetAppliedPlan = (clientResolver) => buildQuery({
    encode: QueryAppliedPlanRequest.encode,
    decode: QueryAppliedPlanResponse.decode,
    service: "cosmos.upgrade.v1beta1.Query",
    method: "AppliedPlan",
    clientResolver
});
export const createGetUpgradedConsensusState = (clientResolver) => buildQuery({
    encode: QueryUpgradedConsensusStateRequest.encode,
    decode: QueryUpgradedConsensusStateResponse.decode,
    service: "cosmos.upgrade.v1beta1.Query",
    method: "UpgradedConsensusState",
    clientResolver
});
export const createGetModuleVersions = (clientResolver) => buildQuery({
    encode: QueryModuleVersionsRequest.encode,
    decode: QueryModuleVersionsResponse.decode,
    service: "cosmos.upgrade.v1beta1.Query",
    method: "ModuleVersions",
    clientResolver
});
export const createGetAuthority = (clientResolver) => buildQuery({
    encode: QueryAuthorityRequest.encode,
    decode: QueryAuthorityResponse.decode,
    service: "cosmos.upgrade.v1beta1.Query",
    method: "Authority",
    clientResolver
});
