"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.getMintAndWithdrawEncoder = getMintAndWithdrawEncoder;
exports.getMintAndWithdrawDecoder = getMintAndWithdrawDecoder;
exports.getMintAndWithdrawCodec = getMintAndWithdrawCodec;
const kit_1 = require("@solana/kit");
function getMintAndWithdrawEncoder() {
    return (0, kit_1.getStructEncoder)([
        ['mintRecipient', (0, kit_1.getAddressEncoder)()],
        ['amount', (0, kit_1.getU64Encoder)()],
        ['mintToken', (0, kit_1.getAddressEncoder)()],
        ['feeCollected', (0, kit_1.getU64Encoder)()],
    ]);
}
function getMintAndWithdrawDecoder() {
    return (0, kit_1.getStructDecoder)([
        ['mintRecipient', (0, kit_1.getAddressDecoder)()],
        ['amount', (0, kit_1.getU64Decoder)()],
        ['mintToken', (0, kit_1.getAddressDecoder)()],
        ['feeCollected', (0, kit_1.getU64Decoder)()],
    ]);
}
function getMintAndWithdrawCodec() {
    return (0, kit_1.combineCodec)(getMintAndWithdrawEncoder(), getMintAndWithdrawDecoder());
}
