"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createGetVerifyMembership = exports.createGetUpgradedConsensusState = exports.createGetUpgradedClientState = exports.createGetClientParams = exports.createGetClientStatus = exports.createGetConsensusStateHeights = exports.createGetConsensusStates = exports.createGetConsensusState = exports.createGetClientStates = exports.createGetClientState = void 0;
const helper_func_types_1 = require("../../../../helper-func-types");
const query_1 = require("./query");
const createGetClientState = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryClientStateRequest.encode,
    decode: query_1.QueryClientStateResponse.decode,
    service: "ibc.core.client.v1.Query",
    method: "ClientState",
    clientResolver
});
exports.createGetClientState = createGetClientState;
const createGetClientStates = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryClientStatesRequest.encode,
    decode: query_1.QueryClientStatesResponse.decode,
    service: "ibc.core.client.v1.Query",
    method: "ClientStates",
    clientResolver
});
exports.createGetClientStates = createGetClientStates;
const createGetConsensusState = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConsensusStateRequest.encode,
    decode: query_1.QueryConsensusStateResponse.decode,
    service: "ibc.core.client.v1.Query",
    method: "ConsensusState",
    clientResolver
});
exports.createGetConsensusState = createGetConsensusState;
const createGetConsensusStates = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConsensusStatesRequest.encode,
    decode: query_1.QueryConsensusStatesResponse.decode,
    service: "ibc.core.client.v1.Query",
    method: "ConsensusStates",
    clientResolver
});
exports.createGetConsensusStates = createGetConsensusStates;
const createGetConsensusStateHeights = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConsensusStateHeightsRequest.encode,
    decode: query_1.QueryConsensusStateHeightsResponse.decode,
    service: "ibc.core.client.v1.Query",
    method: "ConsensusStateHeights",
    clientResolver
});
exports.createGetConsensusStateHeights = createGetConsensusStateHeights;
const createGetClientStatus = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryClientStatusRequest.encode,
    decode: query_1.QueryClientStatusResponse.decode,
    service: "ibc.core.client.v1.Query",
    method: "ClientStatus",
    clientResolver
});
exports.createGetClientStatus = createGetClientStatus;
const createGetClientParams = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryClientParamsRequest.encode,
    decode: query_1.QueryClientParamsResponse.decode,
    service: "ibc.core.client.v1.Query",
    method: "ClientParams",
    clientResolver
});
exports.createGetClientParams = createGetClientParams;
const createGetUpgradedClientState = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryUpgradedClientStateRequest.encode,
    decode: query_1.QueryUpgradedClientStateResponse.decode,
    service: "ibc.core.client.v1.Query",
    method: "UpgradedClientState",
    clientResolver
});
exports.createGetUpgradedClientState = createGetUpgradedClientState;
const createGetUpgradedConsensusState = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryUpgradedConsensusStateRequest.encode,
    decode: query_1.QueryUpgradedConsensusStateResponse.decode,
    service: "ibc.core.client.v1.Query",
    method: "UpgradedConsensusState",
    clientResolver
});
exports.createGetUpgradedConsensusState = createGetUpgradedConsensusState;
const createGetVerifyMembership = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryVerifyMembershipRequest.encode,
    decode: query_1.QueryVerifyMembershipResponse.decode,
    service: "ibc.core.client.v1.Query",
    method: "VerifyMembership",
    clientResolver
});
exports.createGetVerifyMembership = createGetVerifyMembership;
