MetaplexAuctionHouseProgram.delegateAuctioneer constructor

MetaplexAuctionHouseProgram.delegateAuctioneer({
  1. required SolAddress auctionHouse,
  2. required SolAddress authority,
  3. required SolAddress auctioneerAuthority,
  4. required SolAddress ahAuctioneerPda,
  5. required MetaplexAuctionHouseDelegateAuctioneerLayout layout,
  6. SolAddress systemProgram = SystemProgramConst.programId,
})

Implementation

factory MetaplexAuctionHouseProgram.delegateAuctioneer({
  /// Auction House instance PDA account.
  required SolAddress auctionHouse,
  required SolAddress authority,

  /// The auctioneer authority - the program PDA running this auction
  required SolAddress auctioneerAuthority,

  /// The auctioneer PDA owned by Auction House storing scopes.
  required SolAddress ahAuctioneerPda,
  required MetaplexAuctionHouseDelegateAuctioneerLayout layout,
  SolAddress systemProgram = SystemProgramConst.programId,
}) {
  return MetaplexAuctionHouseProgram(keys: [
    auctionHouse.toWritable(),
    authority.toSignerAndWritable(),
    auctioneerAuthority.toReadOnly(),
    ahAuctioneerPda.toWritable(),
    systemProgram.toReadOnly(),
  ], programId: MetaplexAuctionHouseProgramConst.programId, layout: layout);
}