/** * 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, getU64Decoder, getU64Encoder, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; export type XpLevelThresholdInfo = { building: bigint; combat: bigint; councilRank: bigint; crafting: bigint; dailyXp: bigint; dataRunner: bigint; mining: bigint; pilot: bigint; }; export type XpLevelThresholdInfoArgs = { building: number | bigint; combat: number | bigint; councilRank: number | bigint; crafting: number | bigint; dailyXp: number | bigint; dataRunner: number | bigint; mining: number | bigint; pilot: number | bigint; }; export function getXpLevelThresholdInfoEncoder(): FixedSizeEncoder { return getStructEncoder([ ['building', getU64Encoder()], ['combat', getU64Encoder()], ['councilRank', getU64Encoder()], ['crafting', getU64Encoder()], ['dailyXp', getU64Encoder()], ['dataRunner', getU64Encoder()], ['mining', getU64Encoder()], ['pilot', getU64Encoder()], ]); } export function getXpLevelThresholdInfoDecoder(): FixedSizeDecoder { return getStructDecoder([ ['building', getU64Decoder()], ['combat', getU64Decoder()], ['councilRank', getU64Decoder()], ['crafting', getU64Decoder()], ['dailyXp', getU64Decoder()], ['dataRunner', getU64Decoder()], ['mining', getU64Decoder()], ['pilot', getU64Decoder()], ]); } export function getXpLevelThresholdInfoCodec(): FixedSizeCodec< XpLevelThresholdInfoArgs, XpLevelThresholdInfo > { return combineCodec( getXpLevelThresholdInfoEncoder(), getXpLevelThresholdInfoDecoder(), ); }