"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useGetConnectionParams = exports.useGetConnectionConsensusState = exports.useGetConnectionClientState = exports.useGetClientConnections = exports.useGetConnections = exports.useGetConnection = void 0;
const vue_query_1 = require("../../../../vue-query");
const query_rpc_func_1 = require("./query.rpc.func");
/**
 * Connection queries an IBC connection end.
 * @name useGetConnection
 * @package ibc.core.connection.v1
 * @see proto service: ibc.core.connection.v1.Connection
 */
exports.useGetConnection = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getConnection,
    queryKeyPrefix: "ConnectionQuery"
});
/**
 * Connections queries all the IBC connections of a chain.
 * @name useGetConnections
 * @package ibc.core.connection.v1
 * @see proto service: ibc.core.connection.v1.Connections
 */
exports.useGetConnections = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getConnections,
    queryKeyPrefix: "ConnectionsQuery"
});
/**
 * ClientConnections queries the connection paths associated with a client
 * state.
 * @name useGetClientConnections
 * @package ibc.core.connection.v1
 * @see proto service: ibc.core.connection.v1.ClientConnections
 */
exports.useGetClientConnections = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getClientConnections,
    queryKeyPrefix: "ClientConnectionsQuery"
});
/**
 * ConnectionClientState queries the client state associated with the
 * connection.
 * @name useGetConnectionClientState
 * @package ibc.core.connection.v1
 * @see proto service: ibc.core.connection.v1.ConnectionClientState
 */
exports.useGetConnectionClientState = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getConnectionClientState,
    queryKeyPrefix: "ConnectionClientStateQuery"
});
/**
 * ConnectionConsensusState queries the consensus state associated with the
 * connection.
 * @name useGetConnectionConsensusState
 * @package ibc.core.connection.v1
 * @see proto service: ibc.core.connection.v1.ConnectionConsensusState
 */
exports.useGetConnectionConsensusState = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getConnectionConsensusState,
    queryKeyPrefix: "ConnectionConsensusStateQuery"
});
/**
 * ConnectionParams queries all parameters of the ibc connection submodule.
 * @name useGetConnectionParams
 * @package ibc.core.connection.v1
 * @see proto service: ibc.core.connection.v1.ConnectionParams
 */
exports.useGetConnectionParams = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getConnectionParams,
    queryKeyPrefix: "ConnectionParamsQuery"
});
