/** * 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, fixDecoderSize, fixEncoderSize, getAddressDecoder, getAddressEncoder, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU8Decoder, getU8Encoder, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type ReadonlyUint8Array, } from "@solana/kit"; export type VaultLp = { /** The LP mint (e.g., representing shares in this vault). */ mint: Address; /** The bump for the vault LP mint. */ mintBump: number; /** The bump for the vault LP mint authority. */ mintAuthBump: number; /** Reserved bytes for future use. */ reserved: ReadonlyUint8Array; }; export type VaultLpArgs = VaultLp; export function getVaultLpEncoder(): FixedSizeEncoder { return getStructEncoder([ ["mint", getAddressEncoder()], ["mintBump", getU8Encoder()], ["mintAuthBump", getU8Encoder()], ["reserved", fixEncoderSize(getBytesEncoder(), 30)], ]); } export function getVaultLpDecoder(): FixedSizeDecoder { return getStructDecoder([ ["mint", getAddressDecoder()], ["mintBump", getU8Decoder()], ["mintAuthBump", getU8Decoder()], ["reserved", fixDecoderSize(getBytesDecoder(), 30)], ]); } export function getVaultLpCodec(): FixedSizeCodec { return combineCodec(getVaultLpEncoder(), getVaultLpDecoder()); }