/**
 * 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 PausedDeposits = { isPaused: boolean };

export type PausedDepositsArgs = PausedDeposits;

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

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

export function getPausedDepositsCodec(): FixedSizeCodec<
  PausedDepositsArgs,
  PausedDeposits
> {
  return combineCodec(getPausedDepositsEncoder(), getPausedDepositsDecoder());
}
