/** * 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 AdaptorAddReceiptSeeds = { vault: Address; adaptorProgram: Address; }; export async function findAdaptorAddReceiptPda( seeds: AdaptorAddReceiptSeeds, config: { programAddress?: Address | undefined } = {}, ): Promise { const { programAddress = "vVoLTRjQmtFpiYoegx285Ze4gsLJ8ZxgFKVcuvmG1a8" as Address<"vVoLTRjQmtFpiYoegx285Ze4gsLJ8ZxgFKVcuvmG1a8">, } = config; return await getProgramDerivedAddress({ programAddress, seeds: [ getBytesEncoder().encode( new Uint8Array([ 97, 100, 97, 112, 116, 111, 114, 95, 97, 100, 100, 95, 114, 101, 99, 101, 105, 112, 116, ]), ), getAddressEncoder().encode(seeds.vault), getAddressEncoder().encode(seeds.adaptorProgram), ], }); }