/** * 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 FeeUpdate = { /** The timestamp when the performance fees were last updated. */ lastPerformanceFeeUpdateTs: bigint; /** The timestamp when the management fees were last updated. */ lastManagementFeeUpdateTs: bigint; }; export type FeeUpdateArgs = { /** The timestamp when the performance fees were last updated. */ lastPerformanceFeeUpdateTs: number | bigint; /** The timestamp when the management fees were last updated. */ lastManagementFeeUpdateTs: number | bigint; }; export function getFeeUpdateEncoder(): FixedSizeEncoder { return getStructEncoder([ ["lastPerformanceFeeUpdateTs", getU64Encoder()], ["lastManagementFeeUpdateTs", getU64Encoder()], ]); } export function getFeeUpdateDecoder(): FixedSizeDecoder { return getStructDecoder([ ["lastPerformanceFeeUpdateTs", getU64Decoder()], ["lastManagementFeeUpdateTs", getU64Decoder()], ]); } export function getFeeUpdateCodec(): FixedSizeCodec { return combineCodec(getFeeUpdateEncoder(), getFeeUpdateDecoder()); }