/** * 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 { getBytesEncoder, getProgramDerivedAddress, type Address, type ProgramDerivedAddress, } from "@solana/kit"; export async function findProtocolPda( config: { programAddress?: Address | undefined } = {}, ): Promise { const { programAddress = "vVoLTRjQmtFpiYoegx285Ze4gsLJ8ZxgFKVcuvmG1a8" as Address<"vVoLTRjQmtFpiYoegx285Ze4gsLJ8ZxgFKVcuvmG1a8">, } = config; return await getProgramDerivedAddress({ programAddress, seeds: [ getBytesEncoder().encode( new Uint8Array([112, 114, 111, 116, 111, 99, 111, 108]), ), ], }); }