/** * 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, getI64Decoder, getI64Encoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; /** Tracks a batch of items that are respawning */ export type RespawnQueue = { /** The number of items in the respawn queue */ quantity: bigint; /** The unix timestamp at which the items will be fully respawned */ completeAt: bigint; }; export type RespawnQueueArgs = { /** The number of items in the respawn queue */ quantity: number | bigint; /** The unix timestamp at which the items will be fully respawned */ completeAt: number | bigint; }; export function getRespawnQueueEncoder(): FixedSizeEncoder { return getStructEncoder([ ['quantity', getU64Encoder()], ['completeAt', getI64Encoder()], ]); } export function getRespawnQueueDecoder(): FixedSizeDecoder { return getStructDecoder([ ['quantity', getU64Decoder()], ['completeAt', getI64Decoder()], ]); } export function getRespawnQueueCodec(): FixedSizeCodec< RespawnQueueArgs, RespawnQueue > { return combineCodec(getRespawnQueueEncoder(), getRespawnQueueDecoder()); }