/** * 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'; /** Lifecycle of one faction loyalty epoch. */ export enum LoyaltyEpochStatus { Open, Closed, Swept, } export type LoyaltyEpochStatusArgs = LoyaltyEpochStatus; export function getLoyaltyEpochStatusEncoder(): FixedSizeEncoder { return getEnumEncoder(LoyaltyEpochStatus); } export function getLoyaltyEpochStatusDecoder(): FixedSizeDecoder { return getEnumDecoder(LoyaltyEpochStatus); } export function getLoyaltyEpochStatusCodec(): FixedSizeCodec< LoyaltyEpochStatusArgs, LoyaltyEpochStatus > { return combineCodec( getLoyaltyEpochStatusEncoder(), getLoyaltyEpochStatusDecoder(), ); }