/**
 * 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, getEnumDecoder, getEnumEncoder, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';

export enum AccountsType { TransferHookA, TransferHookB, TransferHookReward, TransferHookInput, TransferHookIntermediate, TransferHookOutput };

export type AccountsTypeArgs = AccountsType;

export function getAccountsTypeEncoder(): FixedSizeEncoder<AccountsTypeArgs> {
    return getEnumEncoder(AccountsType);
}

export function getAccountsTypeDecoder(): FixedSizeDecoder<AccountsType> {
    return getEnumDecoder(AccountsType);
}

export function getAccountsTypeCodec(): FixedSizeCodec<AccountsTypeArgs, AccountsType> {
    return combineCodec(getAccountsTypeEncoder(), getAccountsTypeDecoder());
}