MetaplexAuctionHouseProgram.delegateAuctioneer constructor
MetaplexAuctionHouseProgram.delegateAuctioneer({
- required SolAddress auctionHouse,
- required SolAddress authority,
- required SolAddress auctioneerAuthority,
- required SolAddress ahAuctioneerPda,
- required MetaplexAuctionHouseDelegateAuctioneerLayout layout,
- 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);
}