"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getConnectionParams = exports.getConnectionConsensusState = exports.getConnectionClientState = exports.getClientConnections = exports.getConnections = exports.getConnection = void 0;
const helper_func_types_1 = require("../../../../helper-func-types");
const query_1 = require("./query");
/**
 * Connection queries an IBC connection end.
 * @name getConnection
 * @package ibc.core.connection.v1
 * @see proto service: ibc.core.connection.v1.Connection
 */
exports.getConnection = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConnectionRequest.encode,
    decode: query_1.QueryConnectionResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "Connection",
    deps: [query_1.QueryConnectionRequest, query_1.QueryConnectionResponse]
});
/**
 * Connections queries all the IBC connections of a chain.
 * @name getConnections
 * @package ibc.core.connection.v1
 * @see proto service: ibc.core.connection.v1.Connections
 */
exports.getConnections = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConnectionsRequest.encode,
    decode: query_1.QueryConnectionsResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "Connections",
    deps: [query_1.QueryConnectionsRequest, query_1.QueryConnectionsResponse]
});
/**
 * ClientConnections queries the connection paths associated with a client
 * state.
 * @name getClientConnections
 * @package ibc.core.connection.v1
 * @see proto service: ibc.core.connection.v1.ClientConnections
 */
exports.getClientConnections = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryClientConnectionsRequest.encode,
    decode: query_1.QueryClientConnectionsResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "ClientConnections",
    deps: [query_1.QueryClientConnectionsRequest, query_1.QueryClientConnectionsResponse]
});
/**
 * ConnectionClientState queries the client state associated with the
 * connection.
 * @name getConnectionClientState
 * @package ibc.core.connection.v1
 * @see proto service: ibc.core.connection.v1.ConnectionClientState
 */
exports.getConnectionClientState = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConnectionClientStateRequest.encode,
    decode: query_1.QueryConnectionClientStateResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "ConnectionClientState",
    deps: [query_1.QueryConnectionClientStateRequest, query_1.QueryConnectionClientStateResponse]
});
/**
 * ConnectionConsensusState queries the consensus state associated with the
 * connection.
 * @name getConnectionConsensusState
 * @package ibc.core.connection.v1
 * @see proto service: ibc.core.connection.v1.ConnectionConsensusState
 */
exports.getConnectionConsensusState = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConnectionConsensusStateRequest.encode,
    decode: query_1.QueryConnectionConsensusStateResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "ConnectionConsensusState",
    deps: [query_1.QueryConnectionConsensusStateRequest, query_1.QueryConnectionConsensusStateResponse]
});
/**
 * ConnectionParams queries all parameters of the ibc connection submodule.
 * @name getConnectionParams
 * @package ibc.core.connection.v1
 * @see proto service: ibc.core.connection.v1.ConnectionParams
 */
exports.getConnectionParams = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConnectionParamsRequest.encode,
    decode: query_1.QueryConnectionParamsResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "ConnectionParams",
    deps: [query_1.QueryConnectionParamsRequest, query_1.QueryConnectionParamsResponse]
});
