/**
 * 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 UnDenylisted = { account: Address };

export type UnDenylistedArgs = UnDenylisted;

export function getUnDenylistedEncoder(): FixedSizeEncoder<UnDenylistedArgs> {
  return getStructEncoder([["account", getAddressEncoder()]]);
}

export function getUnDenylistedDecoder(): FixedSizeDecoder<UnDenylisted> {
  return getStructDecoder([["account", getAddressDecoder()]]);
}

export function getUnDenylistedCodec(): FixedSizeCodec<
  UnDenylistedArgs,
  UnDenylisted
> {
  return combineCodec(getUnDenylistedEncoder(), getUnDenylistedDecoder());
}
