/** * 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 RequestWithdrawVaultReceiptSeeds = { vault: Address; userTransferAuthority: Address; }; export async function findRequestWithdrawVaultReceiptPda( seeds: RequestWithdrawVaultReceiptSeeds, config: { programAddress?: Address | undefined } = {}, ): Promise { const { programAddress = "vVoLTRjQmtFpiYoegx285Ze4gsLJ8ZxgFKVcuvmG1a8" as Address<"vVoLTRjQmtFpiYoegx285Ze4gsLJ8ZxgFKVcuvmG1a8">, } = config; return await getProgramDerivedAddress({ programAddress, seeds: [ getBytesEncoder().encode( new Uint8Array([ 114, 101, 113, 117, 101, 115, 116, 95, 119, 105, 116, 104, 100, 114, 97, 119, 95, 118, 97, 117, 108, 116, 95, 114, 101, 99, 101, 105, 112, 116, ]), ), getAddressEncoder().encode(seeds.vault), getAddressEncoder().encode(seeds.userTransferAuthority), ], }); }