"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFundsDepositedEncoder = getFundsDepositedEncoder;
exports.getFundsDepositedDecoder = getFundsDepositedDecoder;
exports.getFundsDepositedCodec = getFundsDepositedCodec;
var kit_1 = require("@solana/kit");
function getFundsDepositedEncoder() {
    return (0, kit_1.getStructEncoder)([
        ["inputToken", (0, kit_1.getAddressEncoder)()],
        ["outputToken", (0, kit_1.getAddressEncoder)()],
        ["inputAmount", (0, kit_1.getU64Encoder)()],
        ["outputAmount", (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 32)],
        ["destinationChainId", (0, kit_1.getU64Encoder)()],
        ["depositId", (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 32)],
        ["quoteTimestamp", (0, kit_1.getU32Encoder)()],
        ["fillDeadline", (0, kit_1.getU32Encoder)()],
        ["exclusivityDeadline", (0, kit_1.getU32Encoder)()],
        ["depositor", (0, kit_1.getAddressEncoder)()],
        ["recipient", (0, kit_1.getAddressEncoder)()],
        ["exclusiveRelayer", (0, kit_1.getAddressEncoder)()],
        ["message", (0, kit_1.addEncoderSizePrefix)((0, kit_1.getBytesEncoder)(), (0, kit_1.getU32Encoder)())],
    ]);
}
function getFundsDepositedDecoder() {
    return (0, kit_1.getStructDecoder)([
        ["inputToken", (0, kit_1.getAddressDecoder)()],
        ["outputToken", (0, kit_1.getAddressDecoder)()],
        ["inputAmount", (0, kit_1.getU64Decoder)()],
        ["outputAmount", (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 32)],
        ["destinationChainId", (0, kit_1.getU64Decoder)()],
        ["depositId", (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 32)],
        ["quoteTimestamp", (0, kit_1.getU32Decoder)()],
        ["fillDeadline", (0, kit_1.getU32Decoder)()],
        ["exclusivityDeadline", (0, kit_1.getU32Decoder)()],
        ["depositor", (0, kit_1.getAddressDecoder)()],
        ["recipient", (0, kit_1.getAddressDecoder)()],
        ["exclusiveRelayer", (0, kit_1.getAddressDecoder)()],
        ["message", (0, kit_1.addDecoderSizePrefix)((0, kit_1.getBytesDecoder)(), (0, kit_1.getU32Decoder)())],
    ]);
}
function getFundsDepositedCodec() {
    return (0, kit_1.combineCodec)(getFundsDepositedEncoder(), getFundsDepositedDecoder());
}
//# sourceMappingURL=fundsDeposited.js.map