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

export type AttesterDisabled = { attester: Address };

export type AttesterDisabledArgs = AttesterDisabled;

export function getAttesterDisabledEncoder(): FixedSizeEncoder<AttesterDisabledArgs> {
  return getStructEncoder([["attester", getAddressEncoder()]]);
}

export function getAttesterDisabledDecoder(): FixedSizeDecoder<AttesterDisabled> {
  return getStructDecoder([["attester", getAddressDecoder()]]);
}

export function getAttesterDisabledCodec(): FixedSizeCodec<
  AttesterDisabledArgs,
  AttesterDisabled
> {
  return combineCodec(
    getAttesterDisabledEncoder(),
    getAttesterDisabledDecoder(),
  );
}
