/** * 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 Codec, type Decoder, type Encoder, } from '@solana/kit'; import { getJourneyDecoder, getJourneyEncoder, type Journey, type JourneyArgs, } from '.'; import { getI72F56Decoder, getI72F56Encoder, type I72F56, type I72F56Args, } from '../../fixed/codecs'; export type MoveSubwarp = { /** The immutable journey plan. */ journey: Journey; /** The total fuel budgeted for the entire journey. */ totalFuelExpenditure: I72F56; /** The total XP to award for the entire journey. */ totalXpToAward: I72F56; }; export type MoveSubwarpArgs = { /** The immutable journey plan. */ journey: JourneyArgs; /** The total fuel budgeted for the entire journey. */ totalFuelExpenditure: I72F56Args; /** The total XP to award for the entire journey. */ totalXpToAward: I72F56Args; }; export function getMoveSubwarpEncoder(): Encoder { return getStructEncoder([ ['journey', getJourneyEncoder()], ['totalFuelExpenditure', getI72F56Encoder()], ['totalXpToAward', getI72F56Encoder()], ]); } export function getMoveSubwarpDecoder(): Decoder { return getStructDecoder([ ['journey', getJourneyDecoder()], ['totalFuelExpenditure', getI72F56Decoder()], ['totalXpToAward', getI72F56Decoder()], ]); } export function getMoveSubwarpCodec(): Codec { return combineCodec(getMoveSubwarpEncoder(), getMoveSubwarpDecoder()); }