/** * 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 LockedProfitState = { lastUpdatedLockedProfit: bigint; lastReport: bigint; }; export type LockedProfitStateArgs = { lastUpdatedLockedProfit: number | bigint; lastReport: number | bigint; }; export function getLockedProfitStateEncoder(): FixedSizeEncoder { return getStructEncoder([ ["lastUpdatedLockedProfit", getU64Encoder()], ["lastReport", getU64Encoder()], ]); } export function getLockedProfitStateDecoder(): FixedSizeDecoder { return getStructDecoder([ ["lastUpdatedLockedProfit", getU64Decoder()], ["lastReport", getU64Decoder()], ]); } export function getLockedProfitStateCodec(): FixedSizeCodec< LockedProfitStateArgs, LockedProfitState > { return combineCodec( getLockedProfitStateEncoder(), getLockedProfitStateDecoder(), ); }