/** * 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, getAddressDecoder, getAddressEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from "@solana/kit"; export type HarvestFeeEvent = { harvester: Address; vault: Address; protocol: Address; admin: Address; manager: Address; amountLpAdminFees: bigint; amountLpManagerFees: bigint; amountLpProtocolFees: bigint; }; export type HarvestFeeEventArgs = { harvester: Address; vault: Address; protocol: Address; admin: Address; manager: Address; amountLpAdminFees: number | bigint; amountLpManagerFees: number | bigint; amountLpProtocolFees: number | bigint; }; export function getHarvestFeeEventEncoder(): FixedSizeEncoder { return getStructEncoder([ ["harvester", getAddressEncoder()], ["vault", getAddressEncoder()], ["protocol", getAddressEncoder()], ["admin", getAddressEncoder()], ["manager", getAddressEncoder()], ["amountLpAdminFees", getU64Encoder()], ["amountLpManagerFees", getU64Encoder()], ["amountLpProtocolFees", getU64Encoder()], ]); } export function getHarvestFeeEventDecoder(): FixedSizeDecoder { return getStructDecoder([ ["harvester", getAddressDecoder()], ["vault", getAddressDecoder()], ["protocol", getAddressDecoder()], ["admin", getAddressDecoder()], ["manager", getAddressDecoder()], ["amountLpAdminFees", getU64Decoder()], ["amountLpManagerFees", getU64Decoder()], ["amountLpProtocolFees", getU64Decoder()], ]); } export function getHarvestFeeEventCodec(): FixedSizeCodec< HarvestFeeEventArgs, HarvestFeeEvent > { return combineCodec(getHarvestFeeEventEncoder(), getHarvestFeeEventDecoder()); }