"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createGetConnectionParams = exports.createGetConnectionConsensusState = exports.createGetConnectionClientState = exports.createGetClientConnections = exports.createGetConnections = exports.createGetConnection = void 0;
const helper_func_types_1 = require("../../../../helper-func-types");
const query_1 = require("./query");
const createGetConnection = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConnectionRequest.encode,
    decode: query_1.QueryConnectionResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "Connection",
    clientResolver
});
exports.createGetConnection = createGetConnection;
const createGetConnections = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConnectionsRequest.encode,
    decode: query_1.QueryConnectionsResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "Connections",
    clientResolver
});
exports.createGetConnections = createGetConnections;
const createGetClientConnections = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryClientConnectionsRequest.encode,
    decode: query_1.QueryClientConnectionsResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "ClientConnections",
    clientResolver
});
exports.createGetClientConnections = createGetClientConnections;
const createGetConnectionClientState = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConnectionClientStateRequest.encode,
    decode: query_1.QueryConnectionClientStateResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "ConnectionClientState",
    clientResolver
});
exports.createGetConnectionClientState = createGetConnectionClientState;
const createGetConnectionConsensusState = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConnectionConsensusStateRequest.encode,
    decode: query_1.QueryConnectionConsensusStateResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "ConnectionConsensusState",
    clientResolver
});
exports.createGetConnectionConsensusState = createGetConnectionConsensusState;
const createGetConnectionParams = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConnectionParamsRequest.encode,
    decode: query_1.QueryConnectionParamsResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "ConnectionParams",
    clientResolver
});
exports.createGetConnectionParams = createGetConnectionParams;
