/** * 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, getAddressDecoder, getAddressEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; export type Docked = { /** The `StarSystem` at which the fleet is docked */ system: Address; /** The `StarSystem` starbase sequence id when this fleet docked */ systemSeqId: bigint; }; export type DockedArgs = { /** The `StarSystem` at which the fleet is docked */ system: Address; /** The `StarSystem` starbase sequence id when this fleet docked */ systemSeqId: number | bigint; }; export function getDockedEncoder(): FixedSizeEncoder { return getStructEncoder([ ['system', getAddressEncoder()], ['systemSeqId', getU64Encoder()], ]); } export function getDockedDecoder(): FixedSizeDecoder { return getStructDecoder([ ['system', getAddressDecoder()], ['systemSeqId', getU64Decoder()], ]); } export function getDockedCodec(): FixedSizeCodec { return combineCodec(getDockedEncoder(), getDockedDecoder()); }