/** * 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, getStructDecoder, getStructEncoder, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; import { getAmmoUsageDecoder, getAmmoUsageEncoder, type AmmoUsage, type AmmoUsageArgs, } from '.'; /** * A fleet's stance * TODO: this is a minimal implementation; will be fully implemented later */ export type FleetStance = { ammoUsage: AmmoUsage }; export type FleetStanceArgs = { ammoUsage: AmmoUsageArgs }; export function getFleetStanceEncoder(): FixedSizeEncoder { return getStructEncoder([['ammoUsage', getAmmoUsageEncoder()]]); } export function getFleetStanceDecoder(): FixedSizeDecoder { return getStructDecoder([['ammoUsage', getAmmoUsageDecoder()]]); } export function getFleetStanceCodec(): FixedSizeCodec< FleetStanceArgs, FleetStance > { return combineCodec(getFleetStanceEncoder(), getFleetStanceDecoder()); }