/** * 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'; export async function findEventAuthorityPda( config: { programAddress?: Address | undefined } = {}, ): Promise { const { programAddress = 'CHNLxYvVA28MJP9PrFuDXccuoGXAx7jBacfLEkahyGsX' as Address<'CHNLxYvVA28MJP9PrFuDXccuoGXAx7jBacfLEkahyGsX'>, } = config; return await getProgramDerivedAddress({ programAddress, seeds: [getUtf8Encoder().encode('event_authority')], }); }