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

export type ReclaimedEventAccountArgs = ReclaimedEventAccount;

export function getReclaimedEventAccountEncoder(): FixedSizeEncoder<ReclaimedEventAccountArgs> {
  return getStructEncoder([["messageSentEventData", getAddressEncoder()]]);
}

export function getReclaimedEventAccountDecoder(): FixedSizeDecoder<ReclaimedEventAccount> {
  return getStructDecoder([["messageSentEventData", getAddressDecoder()]]);
}

export function getReclaimedEventAccountCodec(): FixedSizeCodec<
  ReclaimedEventAccountArgs,
  ReclaimedEventAccount
> {
  return combineCodec(
    getReclaimedEventAccountEncoder(),
    getReclaimedEventAccountDecoder(),
  );
}
