/**
 * 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
 */
import { addDecoderSizePrefix, addEncoderSizePrefix, combineCodec, getAddressDecoder, getAddressEncoder, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU32Decoder, getU32Encoder, getU64Decoder, getU64Encoder, } from "@solana/kit";
export function getDepositForBurnEncoder() {
    return getStructEncoder([
        ["burnToken", getAddressEncoder()],
        ["amount", getU64Encoder()],
        ["depositor", getAddressEncoder()],
        ["mintRecipient", getAddressEncoder()],
        ["destinationDomain", getU32Encoder()],
        ["destinationTokenMessenger", getAddressEncoder()],
        ["destinationCaller", getAddressEncoder()],
        ["maxFee", getU64Encoder()],
        ["minFinalityThreshold", getU32Encoder()],
        ["hookData", addEncoderSizePrefix(getBytesEncoder(), getU32Encoder())],
    ]);
}
export function getDepositForBurnDecoder() {
    return getStructDecoder([
        ["burnToken", getAddressDecoder()],
        ["amount", getU64Decoder()],
        ["depositor", getAddressDecoder()],
        ["mintRecipient", getAddressDecoder()],
        ["destinationDomain", getU32Decoder()],
        ["destinationTokenMessenger", getAddressDecoder()],
        ["destinationCaller", getAddressDecoder()],
        ["maxFee", getU64Decoder()],
        ["minFinalityThreshold", getU32Decoder()],
        ["hookData", addDecoderSizePrefix(getBytesDecoder(), getU32Decoder())],
    ]);
}
export function getDepositForBurnCodec() {
    return combineCodec(getDepositForBurnEncoder(), getDepositForBurnDecoder());
}
//# sourceMappingURL=depositForBurn.js.map