"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getConfig = exports.getCounterpartyInfo = void 0;
const helper_func_types_1 = require("../../../../helper-func-types");
const query_1 = require("./query");
/**
 * CounterpartyInfo queries an IBC light counter party info.
 * @name getCounterpartyInfo
 * @package ibc.core.client.v2
 * @see proto service: ibc.core.client.v2.CounterpartyInfo
 */
exports.getCounterpartyInfo = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryCounterpartyInfoRequest.encode,
    decode: query_1.QueryCounterpartyInfoResponse.decode,
    service: "ibc.core.client.v2.Query",
    method: "CounterpartyInfo",
    deps: [query_1.QueryCounterpartyInfoRequest, query_1.QueryCounterpartyInfoResponse]
});
/**
 * Config queries the IBC client v2 configuration for a given client.
 * @name getConfig
 * @package ibc.core.client.v2
 * @see proto service: ibc.core.client.v2.Config
 */
exports.getConfig = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConfigRequest.encode,
    decode: query_1.QueryConfigResponse.decode,
    service: "ibc.core.client.v2.Query",
    method: "Config",
    deps: [query_1.QueryConfigRequest, query_1.QueryConfigResponse]
});
