"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.getReclaimedUsedNonceAccountEncoder = getReclaimedUsedNonceAccountEncoder;
exports.getReclaimedUsedNonceAccountDecoder = getReclaimedUsedNonceAccountDecoder;
exports.getReclaimedUsedNonceAccountCodec = getReclaimedUsedNonceAccountCodec;
const kit_1 = require("@solana/kit");
function getReclaimedUsedNonceAccountEncoder() {
    return (0, kit_1.getStructEncoder)([
        ['nonce', (0, kit_1.addEncoderSizePrefix)((0, kit_1.getBytesEncoder)(), (0, kit_1.getU32Encoder)())],
        ['usedNonce', (0, kit_1.getAddressEncoder)()],
    ]);
}
function getReclaimedUsedNonceAccountDecoder() {
    return (0, kit_1.getStructDecoder)([
        ['nonce', (0, kit_1.addDecoderSizePrefix)((0, kit_1.getBytesDecoder)(), (0, kit_1.getU32Decoder)())],
        ['usedNonce', (0, kit_1.getAddressDecoder)()],
    ]);
}
function getReclaimedUsedNonceAccountCodec() {
    return (0, kit_1.combineCodec)(getReclaimedUsedNonceAccountEncoder(), getReclaimedUsedNonceAccountDecoder());
}
