/**
 * 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 FillStatus {
  Unfilled,
  RequestedSlowFill,
  Filled,
}

export type FillStatusArgs = FillStatus;

export function getFillStatusEncoder(): FixedSizeEncoder<FillStatusArgs> {
  return getEnumEncoder(FillStatus);
}

export function getFillStatusDecoder(): FixedSizeDecoder<FillStatus> {
  return getEnumDecoder(FillStatus);
}

export function getFillStatusCodec(): FixedSizeCodec<
  FillStatusArgs,
  FillStatus
> {
  return combineCodec(getFillStatusEncoder(), getFillStatusDecoder());
}
