"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNextSequenceSend = exports.getNextSequenceReceive = exports.getUnreceivedAcks = exports.getUnreceivedPackets = exports.getPacketAcknowledgements = exports.getPacketAcknowledgement = exports.getPacketReceipt = exports.getPacketCommitments = exports.getPacketCommitment = exports.getChannelConsensusState = exports.getChannelClientState = exports.getConnectionChannels = exports.getChannels = exports.getChannel = void 0;
const helper_func_types_1 = require("../../../../helper-func-types");
const query_1 = require("./query");
/**
 * Channel queries an IBC Channel.
 * @name getChannel
 * @package ibc.core.channel.v1
 * @see proto service: ibc.core.channel.v1.Channel
 */
exports.getChannel = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryChannelRequest.encode,
    decode: query_1.QueryChannelResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "Channel",
    deps: [query_1.QueryChannelRequest, query_1.QueryChannelResponse]
});
/**
 * Channels queries all the IBC channels of a chain.
 * @name getChannels
 * @package ibc.core.channel.v1
 * @see proto service: ibc.core.channel.v1.Channels
 */
exports.getChannels = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryChannelsRequest.encode,
    decode: query_1.QueryChannelsResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "Channels",
    deps: [query_1.QueryChannelsRequest, query_1.QueryChannelsResponse]
});
/**
 * ConnectionChannels queries all the channels associated with a connection
 * end.
 * @name getConnectionChannels
 * @package ibc.core.channel.v1
 * @see proto service: ibc.core.channel.v1.ConnectionChannels
 */
exports.getConnectionChannels = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryConnectionChannelsRequest.encode,
    decode: query_1.QueryConnectionChannelsResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "ConnectionChannels",
    deps: [query_1.QueryConnectionChannelsRequest, query_1.QueryConnectionChannelsResponse]
});
/**
 * ChannelClientState queries for the client state for the channel associated
 * with the provided channel identifiers.
 * @name getChannelClientState
 * @package ibc.core.channel.v1
 * @see proto service: ibc.core.channel.v1.ChannelClientState
 */
exports.getChannelClientState = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryChannelClientStateRequest.encode,
    decode: query_1.QueryChannelClientStateResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "ChannelClientState",
    deps: [query_1.QueryChannelClientStateRequest, query_1.QueryChannelClientStateResponse]
});
/**
 * ChannelConsensusState queries for the consensus state for the channel
 * associated with the provided channel identifiers.
 * @name getChannelConsensusState
 * @package ibc.core.channel.v1
 * @see proto service: ibc.core.channel.v1.ChannelConsensusState
 */
exports.getChannelConsensusState = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryChannelConsensusStateRequest.encode,
    decode: query_1.QueryChannelConsensusStateResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "ChannelConsensusState",
    deps: [query_1.QueryChannelConsensusStateRequest, query_1.QueryChannelConsensusStateResponse]
});
/**
 * PacketCommitment queries a stored packet commitment hash.
 * @name getPacketCommitment
 * @package ibc.core.channel.v1
 * @see proto service: ibc.core.channel.v1.PacketCommitment
 */
exports.getPacketCommitment = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPacketCommitmentRequest.encode,
    decode: query_1.QueryPacketCommitmentResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "PacketCommitment",
    deps: [query_1.QueryPacketCommitmentRequest, query_1.QueryPacketCommitmentResponse]
});
/**
 * PacketCommitments returns all the packet commitments hashes associated
 * with a channel.
 * @name getPacketCommitments
 * @package ibc.core.channel.v1
 * @see proto service: ibc.core.channel.v1.PacketCommitments
 */
exports.getPacketCommitments = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPacketCommitmentsRequest.encode,
    decode: query_1.QueryPacketCommitmentsResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "PacketCommitments",
    deps: [query_1.QueryPacketCommitmentsRequest, query_1.QueryPacketCommitmentsResponse]
});
/**
 * PacketReceipt queries if a given packet sequence has been received on the
 * queried chain
 * @name getPacketReceipt
 * @package ibc.core.channel.v1
 * @see proto service: ibc.core.channel.v1.PacketReceipt
 */
exports.getPacketReceipt = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPacketReceiptRequest.encode,
    decode: query_1.QueryPacketReceiptResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "PacketReceipt",
    deps: [query_1.QueryPacketReceiptRequest, query_1.QueryPacketReceiptResponse]
});
/**
 * PacketAcknowledgement queries a stored packet acknowledgement hash.
 * @name getPacketAcknowledgement
 * @package ibc.core.channel.v1
 * @see proto service: ibc.core.channel.v1.PacketAcknowledgement
 */
exports.getPacketAcknowledgement = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPacketAcknowledgementRequest.encode,
    decode: query_1.QueryPacketAcknowledgementResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "PacketAcknowledgement",
    deps: [query_1.QueryPacketAcknowledgementRequest, query_1.QueryPacketAcknowledgementResponse]
});
/**
 * PacketAcknowledgements returns all the packet acknowledgements associated
 * with a channel.
 * @name getPacketAcknowledgements
 * @package ibc.core.channel.v1
 * @see proto service: ibc.core.channel.v1.PacketAcknowledgements
 */
exports.getPacketAcknowledgements = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPacketAcknowledgementsRequest.encode,
    decode: query_1.QueryPacketAcknowledgementsResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "PacketAcknowledgements",
    deps: [query_1.QueryPacketAcknowledgementsRequest, query_1.QueryPacketAcknowledgementsResponse]
});
/**
 * UnreceivedPackets returns all the unreceived IBC packets associated with a
 * channel and sequences.
 * @name getUnreceivedPackets
 * @package ibc.core.channel.v1
 * @see proto service: ibc.core.channel.v1.UnreceivedPackets
 */
exports.getUnreceivedPackets = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryUnreceivedPacketsRequest.encode,
    decode: query_1.QueryUnreceivedPacketsResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "UnreceivedPackets",
    deps: [query_1.QueryUnreceivedPacketsRequest, query_1.QueryUnreceivedPacketsResponse]
});
/**
 * UnreceivedAcks returns all the unreceived IBC acknowledgements associated
 * with a channel and sequences.
 * @name getUnreceivedAcks
 * @package ibc.core.channel.v1
 * @see proto service: ibc.core.channel.v1.UnreceivedAcks
 */
exports.getUnreceivedAcks = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryUnreceivedAcksRequest.encode,
    decode: query_1.QueryUnreceivedAcksResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "UnreceivedAcks",
    deps: [query_1.QueryUnreceivedAcksRequest, query_1.QueryUnreceivedAcksResponse]
});
/**
 * NextSequenceReceive returns the next receive sequence for a given channel.
 * @name getNextSequenceReceive
 * @package ibc.core.channel.v1
 * @see proto service: ibc.core.channel.v1.NextSequenceReceive
 */
exports.getNextSequenceReceive = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryNextSequenceReceiveRequest.encode,
    decode: query_1.QueryNextSequenceReceiveResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "NextSequenceReceive",
    deps: [query_1.QueryNextSequenceReceiveRequest, query_1.QueryNextSequenceReceiveResponse]
});
/**
 * NextSequenceSend returns the next send sequence for a given channel.
 * @name getNextSequenceSend
 * @package ibc.core.channel.v1
 * @see proto service: ibc.core.channel.v1.NextSequenceSend
 */
exports.getNextSequenceSend = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryNextSequenceSendRequest.encode,
    decode: query_1.QueryNextSequenceSendResponse.decode,
    service: "ibc.core.channel.v1.Query",
    method: "NextSequenceSend",
    deps: [query_1.QueryNextSequenceSendRequest, query_1.QueryNextSequenceSendResponse]
});
