"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createGetChannelParams = exports.createGetUpgrade = exports.createGetUpgradeError = exports.createGetNextSequenceSend = exports.createGetNextSequenceReceive = exports.createGetUnreceivedAcks = exports.createGetUnreceivedPackets = exports.createGetPacketAcknowledgements = exports.createGetPacketAcknowledgement = exports.createGetPacketReceipt = exports.createGetPacketCommitments = exports.createGetPacketCommitment = exports.createGetChannelConsensusState = exports.createGetChannelClientState = exports.createGetConnectionChannels = exports.createGetChannels = exports.createGetChannel = void 0;
const helper_func_types_1 = require("../../../../helper-func-types");
const query_1 = require("./query");
const createGetChannel = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryChannelRequest.encode,
    decode: query_1.QueryChannelResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "Channel",
    clientResolver
});
exports.createGetChannel = createGetChannel;
const createGetChannels = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryChannelsRequest.encode,
    decode: query_1.QueryChannelsResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "Channels",
    clientResolver
});
exports.createGetChannels = createGetChannels;
const createGetConnectionChannels = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConnectionChannelsRequest.encode,
    decode: query_1.QueryConnectionChannelsResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "ConnectionChannels",
    clientResolver
});
exports.createGetConnectionChannels = createGetConnectionChannels;
const createGetChannelClientState = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryChannelClientStateRequest.encode,
    decode: query_1.QueryChannelClientStateResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "ChannelClientState",
    clientResolver
});
exports.createGetChannelClientState = createGetChannelClientState;
const createGetChannelConsensusState = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryChannelConsensusStateRequest.encode,
    decode: query_1.QueryChannelConsensusStateResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "ChannelConsensusState",
    clientResolver
});
exports.createGetChannelConsensusState = createGetChannelConsensusState;
const createGetPacketCommitment = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPacketCommitmentRequest.encode,
    decode: query_1.QueryPacketCommitmentResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "PacketCommitment",
    clientResolver
});
exports.createGetPacketCommitment = createGetPacketCommitment;
const createGetPacketCommitments = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPacketCommitmentsRequest.encode,
    decode: query_1.QueryPacketCommitmentsResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "PacketCommitments",
    clientResolver
});
exports.createGetPacketCommitments = createGetPacketCommitments;
const createGetPacketReceipt = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPacketReceiptRequest.encode,
    decode: query_1.QueryPacketReceiptResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "PacketReceipt",
    clientResolver
});
exports.createGetPacketReceipt = createGetPacketReceipt;
const createGetPacketAcknowledgement = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPacketAcknowledgementRequest.encode,
    decode: query_1.QueryPacketAcknowledgementResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "PacketAcknowledgement",
    clientResolver
});
exports.createGetPacketAcknowledgement = createGetPacketAcknowledgement;
const createGetPacketAcknowledgements = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPacketAcknowledgementsRequest.encode,
    decode: query_1.QueryPacketAcknowledgementsResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "PacketAcknowledgements",
    clientResolver
});
exports.createGetPacketAcknowledgements = createGetPacketAcknowledgements;
const createGetUnreceivedPackets = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryUnreceivedPacketsRequest.encode,
    decode: query_1.QueryUnreceivedPacketsResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "UnreceivedPackets",
    clientResolver
});
exports.createGetUnreceivedPackets = createGetUnreceivedPackets;
const createGetUnreceivedAcks = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryUnreceivedAcksRequest.encode,
    decode: query_1.QueryUnreceivedAcksResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "UnreceivedAcks",
    clientResolver
});
exports.createGetUnreceivedAcks = createGetUnreceivedAcks;
const createGetNextSequenceReceive = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryNextSequenceReceiveRequest.encode,
    decode: query_1.QueryNextSequenceReceiveResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "NextSequenceReceive",
    clientResolver
});
exports.createGetNextSequenceReceive = createGetNextSequenceReceive;
const createGetNextSequenceSend = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryNextSequenceSendRequest.encode,
    decode: query_1.QueryNextSequenceSendResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "NextSequenceSend",
    clientResolver
});
exports.createGetNextSequenceSend = createGetNextSequenceSend;
const createGetUpgradeError = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryUpgradeErrorRequest.encode,
    decode: query_1.QueryUpgradeErrorResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "UpgradeError",
    clientResolver
});
exports.createGetUpgradeError = createGetUpgradeError;
const createGetUpgrade = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryUpgradeRequest.encode,
    decode: query_1.QueryUpgradeResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "Upgrade",
    clientResolver
});
exports.createGetUpgrade = createGetUpgrade;
const createGetChannelParams = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryChannelParamsRequest.encode,
    decode: query_1.QueryChannelParamsResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "ChannelParams",
    clientResolver
});
exports.createGetChannelParams = createGetChannelParams;
