"use strict";
/**
 * This code was AUTOGENERATED using the codama library.
 * Please DO NOT EDIT THIS FILE, instead use visitors
 * to add features, then rerun codama to update it.
 *
 * @see https://github.com/codama-idl/codama
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSponsoredDepositForBurnEncoder = getSponsoredDepositForBurnEncoder;
exports.getSponsoredDepositForBurnDecoder = getSponsoredDepositForBurnDecoder;
exports.getSponsoredDepositForBurnCodec = getSponsoredDepositForBurnCodec;
const kit_1 = require("@solana/kit");
function getSponsoredDepositForBurnEncoder() {
    return (0, kit_1.getStructEncoder)([
        ['quoteNonce', (0, kit_1.addEncoderSizePrefix)((0, kit_1.getBytesEncoder)(), (0, kit_1.getU32Encoder)())],
        ['originSender', (0, kit_1.getAddressEncoder)()],
        ['finalRecipient', (0, kit_1.getAddressEncoder)()],
        ['quoteDeadline', (0, kit_1.getU64Encoder)()],
        ['maxBpsToSponsor', (0, kit_1.getU64Encoder)()],
        ['maxUserSlippageBps', (0, kit_1.getU64Encoder)()],
        ['finalToken', (0, kit_1.getAddressEncoder)()],
        ['signature', (0, kit_1.addEncoderSizePrefix)((0, kit_1.getBytesEncoder)(), (0, kit_1.getU32Encoder)())],
    ]);
}
function getSponsoredDepositForBurnDecoder() {
    return (0, kit_1.getStructDecoder)([
        ['quoteNonce', (0, kit_1.addDecoderSizePrefix)((0, kit_1.getBytesDecoder)(), (0, kit_1.getU32Decoder)())],
        ['originSender', (0, kit_1.getAddressDecoder)()],
        ['finalRecipient', (0, kit_1.getAddressDecoder)()],
        ['quoteDeadline', (0, kit_1.getU64Decoder)()],
        ['maxBpsToSponsor', (0, kit_1.getU64Decoder)()],
        ['maxUserSlippageBps', (0, kit_1.getU64Decoder)()],
        ['finalToken', (0, kit_1.getAddressDecoder)()],
        ['signature', (0, kit_1.addDecoderSizePrefix)((0, kit_1.getBytesDecoder)(), (0, kit_1.getU32Decoder)())],
    ]);
}
function getSponsoredDepositForBurnCodec() {
    return (0, kit_1.combineCodec)(getSponsoredDepositForBurnEncoder(), getSponsoredDepositForBurnDecoder());
}
