/** * 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, getU8Decoder, getU8Encoder, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from "@solana/kit"; /** * Wrapper struct that can be `Pod`, containing a byte that *should* be a valid * `StakeStatus` underneath. */ export type PodStakeStatus = { /** Pod stake status */ status: number; }; export type PodStakeStatusArgs = PodStakeStatus; export function getPodStakeStatusEncoder(): FixedSizeEncoder { return getStructEncoder([["status", getU8Encoder()]]); } export function getPodStakeStatusDecoder(): FixedSizeDecoder { return getStructDecoder([["status", getU8Decoder()]]); } export function getPodStakeStatusCodec(): FixedSizeCodec< PodStakeStatusArgs, PodStakeStatus > { return combineCodec(getPodStakeStatusEncoder(), getPodStakeStatusDecoder()); }