import { Buffer } from 'buffer';
import { CandyMachineV2Program } from './program';
import { Pda } from '../../types';
/** @group Pdas */
export const findCandyMachineV2CreatorPda = (candyMachine, programId = CandyMachineV2Program.publicKey) => {
    return Pda.find(programId, [
        Buffer.from('candy_machine', 'utf8'),
        candyMachine.toBuffer(),
    ]);
};
/** @group Pdas */
export const findCandyMachineV2CollectionPda = (candyMachine, programId = CandyMachineV2Program.publicKey) => {
    return Pda.find(programId, [
        Buffer.from('collection', 'utf8'),
        candyMachine.toBuffer(),
    ]);
};
//# sourceMappingURL=pdas.js.map