/** * 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, getU32Decoder, getU32Encoder, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; export type CheckInStreakInfo = { lastCheckInTime: bigint; checkInStreak: number; }; export type CheckInStreakInfoArgs = { lastCheckInTime: number | bigint; checkInStreak: number; }; export function getCheckInStreakInfoEncoder(): FixedSizeEncoder { return getStructEncoder([ ['lastCheckInTime', getI64Encoder()], ['checkInStreak', getU32Encoder()], ]); } export function getCheckInStreakInfoDecoder(): FixedSizeDecoder { return getStructDecoder([ ['lastCheckInTime', getI64Decoder()], ['checkInStreak', getU32Decoder()], ]); } export function getCheckInStreakInfoCodec(): FixedSizeCodec< CheckInStreakInfoArgs, CheckInStreakInfo > { return combineCodec( getCheckInStreakInfoEncoder(), getCheckInStreakInfoDecoder(), ); }