/** * 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 { getProgramDerivedAddress, getUtf8Encoder, type Address, type ProgramDerivedAddress, } from "@solana/kit"; /** The global pool authority PDA that has authority over all pools in the program. */ export async function findPoolAuthorityPda( config: { programAddress?: Address | undefined } = {}, ): Promise { const { programAddress = "cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG" as Address<"cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG">, } = config; return await getProgramDerivedAddress({ programAddress, seeds: [getUtf8Encoder().encode("pool_authority")], }); }