/** * 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, getTupleDecoder, getTupleEncoder, getU32Decoder, getU32Encoder, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; /** Cargo type classification flags. */ export type CargoFlags = readonly [number]; export type CargoFlagsArgs = CargoFlags; export function getCargoFlagsEncoder(): FixedSizeEncoder { return getTupleEncoder([getU32Encoder()]); } export function getCargoFlagsDecoder(): FixedSizeDecoder { return getTupleDecoder([getU32Decoder()]); } export function getCargoFlagsCodec(): FixedSizeCodec< CargoFlagsArgs, CargoFlags > { return combineCodec(getCargoFlagsEncoder(), getCargoFlagsDecoder()); }