MetaplexAuctionHouseProgram.auctioneerCancel constructor
MetaplexAuctionHouseProgram.auctioneerCancel({
- required SolAddress wallet,
- required SolAddress tokenAccount,
- required SolAddress tokenMint,
- required SolAddress authority,
- required SolAddress auctioneerAuthority,
- required SolAddress auctionHouse,
- required SolAddress auctionHouseFeeAccount,
- required SolAddress tradeState,
- required SolAddress ahAuctioneerPda,
- required MetaplexAuctionHouseAuctioneerCancelLayout layout,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
Cancel, but with an auctioneer
Implementation
factory MetaplexAuctionHouseProgram.auctioneerCancel(
{required SolAddress wallet,
required SolAddress tokenAccount,
required SolAddress tokenMint,
required SolAddress authority,
required SolAddress auctioneerAuthority,
required SolAddress auctionHouse,
required SolAddress auctionHouseFeeAccount,
required SolAddress tradeState,
required SolAddress ahAuctioneerPda,
required MetaplexAuctionHouseAuctioneerCancelLayout layout,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId}) {
return MetaplexAuctionHouseProgram(keys: [
wallet.toWritable(),
tokenAccount.toWritable(),
tokenMint.toReadOnly(),
authority.toReadOnly(),
auctioneerAuthority.toSigner(),
auctionHouse.toReadOnly(),
auctionHouseFeeAccount.toWritable(),
tradeState.toWritable(),
ahAuctioneerPda.toReadOnly(),
tokenProgram.toReadOnly()
], programId: MetaplexAuctionHouseProgramConst.programId, layout: layout);
}