treasury static method

ProgramDerivedAddress treasury({
  1. required SolAddress auctionHouse,
})

Finds the PDA of an Auction House's treasury account.

Implementation

static ProgramDerivedAddress treasury({required SolAddress auctionHouse}) {
  return ProgramDerivedAddress.find(seedBytes: [
    MetaplexAuctionHouseProgramConst.auctionHouseSeed.codeUnits,
    auctionHouse.toBytes(),
    MetaplexAuctionHouseProgramConst.treasurySeed.codeUnits,
  ], programId: MetaplexAuctionHouseProgramConst.programId);
}