import { buildQuery } from "../../../../helper-func-types";
import { QueryConnectionRequest, QueryConnectionResponse, QueryConnectionsRequest, QueryConnectionsResponse, QueryClientConnectionsRequest, QueryClientConnectionsResponse, QueryConnectionClientStateRequest, QueryConnectionClientStateResponse, QueryConnectionConsensusStateRequest, QueryConnectionConsensusStateResponse, QueryConnectionParamsRequest, QueryConnectionParamsResponse } from "./query";
export const createGetConnection = (clientResolver) => buildQuery({
    encode: QueryConnectionRequest.encode,
    decode: QueryConnectionResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "Connection",
    clientResolver
});
export const createGetConnections = (clientResolver) => buildQuery({
    encode: QueryConnectionsRequest.encode,
    decode: QueryConnectionsResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "Connections",
    clientResolver
});
export const createGetClientConnections = (clientResolver) => buildQuery({
    encode: QueryClientConnectionsRequest.encode,
    decode: QueryClientConnectionsResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "ClientConnections",
    clientResolver
});
export const createGetConnectionClientState = (clientResolver) => buildQuery({
    encode: QueryConnectionClientStateRequest.encode,
    decode: QueryConnectionClientStateResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "ConnectionClientState",
    clientResolver
});
export const createGetConnectionConsensusState = (clientResolver) => buildQuery({
    encode: QueryConnectionConsensusStateRequest.encode,
    decode: QueryConnectionConsensusStateResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "ConnectionConsensusState",
    clientResolver
});
export const createGetConnectionParams = (clientResolver) => buildQuery({
    encode: QueryConnectionParamsRequest.encode,
    decode: QueryConnectionParamsResponse.decode,
    service: "ibc.core.connection.v1.Query",
    method: "ConnectionParams",
    clientResolver
});
