findListingConfigAddress static method

ProgramDerivedAddress findListingConfigAddress({
  1. required SolAddress wallet,
  2. required SolAddress auctionHouse,
  3. required SolAddress tokenAccount,
  4. required SolAddress treasuryMint,
  5. required SolAddress tokenMint,
  6. required BigInt tokenSize,
})

Implementation

static ProgramDerivedAddress findListingConfigAddress({
  required SolAddress wallet,
  required SolAddress auctionHouse,
  required SolAddress tokenAccount,
  required SolAddress treasuryMint,
  required SolAddress tokenMint,
  required BigInt tokenSize,
}) {
  return ProgramDerivedAddress.find(seedBytes: [
    "listing_config".codeUnits,
    wallet.toBytes(),
    auctionHouse.toBytes(),
    tokenAccount.toBytes(),
    treasuryMint.toBytes(),
    tokenMint.toBytes(),
    LayoutConst.u64().serialize(tokenSize)
  ], programId: MetaplexAuctioneerProgramConst.programId);
}