/** * 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 Condition { Gt, Gte, Lt, Lte, Eq, Neq, WithinRangeAbs, OutsideRangeAbs, WithinRangeBps, OutsideRangeBps, NonZero, } export type ConditionArgs = Condition; export function getConditionEncoder(): FixedSizeEncoder { return getEnumEncoder(Condition); } export function getConditionDecoder(): FixedSizeDecoder { return getEnumDecoder(Condition); } export function getConditionCodec(): FixedSizeCodec { return combineCodec(getConditionEncoder(), getConditionDecoder()); }