/**
 * 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 FillType {
  FastFill,
  ReplacedSlowFill,
  SlowFill,
}

export type FillTypeArgs = FillType;

export function getFillTypeEncoder(): FixedSizeEncoder<FillTypeArgs> {
  return getEnumEncoder(FillType);
}

export function getFillTypeDecoder(): FixedSizeDecoder<FillType> {
  return getEnumDecoder(FillType);
}

export function getFillTypeCodec(): FixedSizeCodec<FillTypeArgs, FillType> {
  return combineCodec(getFillTypeEncoder(), getFillTypeDecoder());
}
