/** * 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 { getAddressEncoder, getBytesEncoder, getProgramDerivedAddress, type Address, type ProgramDerivedAddress, } from "@solana/kit"; export type VaultLpMintSeeds = { vault: Address; }; export async function findVaultLpMintPda( seeds: VaultLpMintSeeds, config: { programAddress?: Address | undefined } = {}, ): Promise { const { programAddress = "vVoLTRjQmtFpiYoegx285Ze4gsLJ8ZxgFKVcuvmG1a8" as Address<"vVoLTRjQmtFpiYoegx285Ze4gsLJ8ZxgFKVcuvmG1a8">, } = config; return await getProgramDerivedAddress({ programAddress, seeds: [ getBytesEncoder().encode( new Uint8Array([ 118, 97, 117, 108, 116, 95, 108, 112, 95, 109, 105, 110, 116, ]), ), getAddressEncoder().encode(seeds.vault), ], }); }