auctionHousePDA static method

ProgramDerivedAddress auctionHousePDA({
  1. required SolAddress creator,
  2. required SolAddress treasuryMint,
})

Finds the Auction House PDA for a creator and treasury

Implementation

static ProgramDerivedAddress auctionHousePDA(
    {required SolAddress creator, required SolAddress treasuryMint}) {
  return ProgramDerivedAddress.find(seedBytes: [
    MetaplexAuctionHouseProgramConst.auctionHouseSeed.codeUnits,
    creator.toBytes(),
    treasuryMint.toBytes()
  ], programId: MetaplexAuctionHouseProgramConst.programId);
}