"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSubspaces = exports.getParams = void 0;
const helper_func_types_1 = require("../../../helper-func-types");
const query_1 = require("./query");
/**
 * Params queries a specific parameter of a module, given its subspace and
 * key.
 * @name getParams
 * @package cosmos.params.v1beta1
 * @see proto service: cosmos.params.v1beta1.Params
 */
exports.getParams = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryParamsRequest.encode,
    decode: query_1.QueryParamsResponse.decode,
    service: "cosmos.params.v1beta1.Query",
    method: "Params",
    deps: [query_1.QueryParamsRequest, query_1.QueryParamsResponse]
});
/**
 * Subspaces queries for all registered subspaces and all keys for a subspace.
 * @name getSubspaces
 * @package cosmos.params.v1beta1
 * @see proto service: cosmos.params.v1beta1.Subspaces
 */
exports.getSubspaces = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QuerySubspacesRequest.encode,
    decode: query_1.QuerySubspacesResponse.decode,
    service: "cosmos.params.v1beta1.Query",
    method: "Subspaces",
    deps: [query_1.QuerySubspacesRequest, query_1.QuerySubspacesResponse]
});
