"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getUnreceivedAcks = exports.getUnreceivedPackets = exports.getPacketReceipt = exports.getPacketAcknowledgements = exports.getPacketAcknowledgement = exports.getPacketCommitments = exports.getPacketCommitment = exports.getNextSequenceSend = void 0;
const helper_func_types_1 = require("../../../../helper-func-types");
const query_1 = require("./query");
/**
 * NextSequenceSend returns the next send sequence for a given channel.
 * @name getNextSequenceSend
 * @package ibc.core.channel.v2
 * @see proto service: ibc.core.channel.v2.NextSequenceSend
 */
exports.getNextSequenceSend = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryNextSequenceSendRequest.encode,
    decode: query_1.QueryNextSequenceSendResponse.decode,
    service: "ibc.core.channel.v2.Query",
    method: "NextSequenceSend",
    deps: [query_1.QueryNextSequenceSendRequest, query_1.QueryNextSequenceSendResponse]
});
/**
 * PacketCommitment queries a stored packet commitment hash.
 * @name getPacketCommitment
 * @package ibc.core.channel.v2
 * @see proto service: ibc.core.channel.v2.PacketCommitment
 */
exports.getPacketCommitment = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPacketCommitmentRequest.encode,
    decode: query_1.QueryPacketCommitmentResponse.decode,
    service: "ibc.core.channel.v2.Query",
    method: "PacketCommitment",
    deps: [query_1.QueryPacketCommitmentRequest, query_1.QueryPacketCommitmentResponse]
});
/**
 * PacketCommitments queries a stored packet commitment hash.
 * @name getPacketCommitments
 * @package ibc.core.channel.v2
 * @see proto service: ibc.core.channel.v2.PacketCommitments
 */
exports.getPacketCommitments = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPacketCommitmentsRequest.encode,
    decode: query_1.QueryPacketCommitmentsResponse.decode,
    service: "ibc.core.channel.v2.Query",
    method: "PacketCommitments",
    deps: [query_1.QueryPacketCommitmentsRequest, query_1.QueryPacketCommitmentsResponse]
});
/**
 * PacketAcknowledgement queries a stored acknowledgement commitment hash.
 * @name getPacketAcknowledgement
 * @package ibc.core.channel.v2
 * @see proto service: ibc.core.channel.v2.PacketAcknowledgement
 */
exports.getPacketAcknowledgement = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPacketAcknowledgementRequest.encode,
    decode: query_1.QueryPacketAcknowledgementResponse.decode,
    service: "ibc.core.channel.v2.Query",
    method: "PacketAcknowledgement",
    deps: [query_1.QueryPacketAcknowledgementRequest, query_1.QueryPacketAcknowledgementResponse]
});
/**
 * PacketAcknowledgements returns all packet acknowledgements associated with a channel.
 * @name getPacketAcknowledgements
 * @package ibc.core.channel.v2
 * @see proto service: ibc.core.channel.v2.PacketAcknowledgements
 */
exports.getPacketAcknowledgements = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPacketAcknowledgementsRequest.encode,
    decode: query_1.QueryPacketAcknowledgementsResponse.decode,
    service: "ibc.core.channel.v2.Query",
    method: "PacketAcknowledgements",
    deps: [query_1.QueryPacketAcknowledgementsRequest, query_1.QueryPacketAcknowledgementsResponse]
});
/**
 * PacketReceipt queries a stored packet receipt.
 * @name getPacketReceipt
 * @package ibc.core.channel.v2
 * @see proto service: ibc.core.channel.v2.PacketReceipt
 */
exports.getPacketReceipt = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryPacketReceiptRequest.encode,
    decode: query_1.QueryPacketReceiptResponse.decode,
    service: "ibc.core.channel.v2.Query",
    method: "PacketReceipt",
    deps: [query_1.QueryPacketReceiptRequest, query_1.QueryPacketReceiptResponse]
});
/**
 * UnreceivedPackets returns all the unreceived IBC packets associated with a channel and sequences.
 * @name getUnreceivedPackets
 * @package ibc.core.channel.v2
 * @see proto service: ibc.core.channel.v2.UnreceivedPackets
 */
exports.getUnreceivedPackets = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryUnreceivedPacketsRequest.encode,
    decode: query_1.QueryUnreceivedPacketsResponse.decode,
    service: "ibc.core.channel.v2.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.v2
 * @see proto service: ibc.core.channel.v2.UnreceivedAcks
 */
exports.getUnreceivedAcks = (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryUnreceivedAcksRequest.encode,
    decode: query_1.QueryUnreceivedAcksResponse.decode,
    service: "ibc.core.channel.v2.Query",
    method: "UnreceivedAcks",
    deps: [query_1.QueryUnreceivedAcksRequest, query_1.QueryUnreceivedAcksResponse]
});
