"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createGetAuthority = exports.createGetModuleVersions = exports.createGetUpgradedConsensusState = exports.createGetAppliedPlan = exports.createGetCurrentPlan = void 0;
const helper_func_types_1 = require("../../../helper-func-types");
const query_1 = require("./query");
const createGetCurrentPlan = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryCurrentPlanRequest.encode,
    decode: query_1.QueryCurrentPlanResponse.decode,
    service: "cosmos.upgrade.v1beta1.Query",
    method: "CurrentPlan",
    clientResolver
});
exports.createGetCurrentPlan = createGetCurrentPlan;
const createGetAppliedPlan = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryAppliedPlanRequest.encode,
    decode: query_1.QueryAppliedPlanResponse.decode,
    service: "cosmos.upgrade.v1beta1.Query",
    method: "AppliedPlan",
    clientResolver
});
exports.createGetAppliedPlan = createGetAppliedPlan;
const createGetUpgradedConsensusState = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryUpgradedConsensusStateRequest.encode,
    decode: query_1.QueryUpgradedConsensusStateResponse.decode,
    service: "cosmos.upgrade.v1beta1.Query",
    method: "UpgradedConsensusState",
    clientResolver
});
exports.createGetUpgradedConsensusState = createGetUpgradedConsensusState;
const createGetModuleVersions = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryModuleVersionsRequest.encode,
    decode: query_1.QueryModuleVersionsResponse.decode,
    service: "cosmos.upgrade.v1beta1.Query",
    method: "ModuleVersions",
    clientResolver
});
exports.createGetModuleVersions = createGetModuleVersions;
const createGetAuthority = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryAuthorityRequest.encode,
    decode: query_1.QueryAuthorityResponse.decode,
    service: "cosmos.upgrade.v1beta1.Query",
    method: "Authority",
    clientResolver
});
exports.createGetAuthority = createGetAuthority;
