/**
 * 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,
  getBooleanDecoder,
  getBooleanEncoder,
  getStructDecoder,
  getStructEncoder,
  type FixedSizeCodec,
  type FixedSizeDecoder,
  type FixedSizeEncoder,
} from "@solana/kit";

export type PausedFills = { isPaused: boolean };

export type PausedFillsArgs = PausedFills;

export function getPausedFillsEncoder(): FixedSizeEncoder<PausedFillsArgs> {
  return getStructEncoder([["isPaused", getBooleanEncoder()]]);
}

export function getPausedFillsDecoder(): FixedSizeDecoder<PausedFills> {
  return getStructDecoder([["isPaused", getBooleanDecoder()]]);
}

export function getPausedFillsCodec(): FixedSizeCodec<
  PausedFillsArgs,
  PausedFills
> {
  return combineCodec(getPausedFillsEncoder(), getPausedFillsDecoder());
}
