/** * 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 Side { None, Long, Short, } export type SideArgs = Side; export function getSideEncoder(): FixedSizeEncoder { return getEnumEncoder(Side); } export function getSideDecoder(): FixedSizeDecoder { return getEnumDecoder(Side); } export function getSideCodec(): FixedSizeCodec { return combineCodec(getSideEncoder(), getSideDecoder()); }