/**
 * 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 { combineCodec, getEnumDecoder, getEnumEncoder, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';

export enum MintingMethod { PriceBased, Proportional };

export type MintingMethodArgs = MintingMethod;

export function getMintingMethodEncoder(): FixedSizeEncoder<MintingMethodArgs> {
    return getEnumEncoder(MintingMethod);
}

export function getMintingMethodDecoder(): FixedSizeDecoder<MintingMethod> {
    return getEnumDecoder(MintingMethod);
}

export function getMintingMethodCodec(): FixedSizeCodec<MintingMethodArgs, MintingMethod> {
    return combineCodec(getMintingMethodEncoder(), getMintingMethodDecoder());
}