/** * 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, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; export type StructureState = { deactivationTime: bigint }; export type StructureStateArgs = { deactivationTime: number | bigint }; export function getStructureStateEncoder(): FixedSizeEncoder { return getStructEncoder([['deactivationTime', getI64Encoder()]]); } export function getStructureStateDecoder(): FixedSizeDecoder { return getStructDecoder([['deactivationTime', getI64Decoder()]]); } export function getStructureStateCodec(): FixedSizeCodec< StructureStateArgs, StructureState > { return combineCodec(getStructureStateEncoder(), getStructureStateDecoder()); }