MetaplexAuctionHouseProgram.auctioneerCancel constructor

MetaplexAuctionHouseProgram.auctioneerCancel({
  1. required SolAddress wallet,
  2. required SolAddress tokenAccount,
  3. required SolAddress tokenMint,
  4. required SolAddress authority,
  5. required SolAddress auctioneerAuthority,
  6. required SolAddress auctionHouse,
  7. required SolAddress auctionHouseFeeAccount,
  8. required SolAddress tradeState,
  9. required SolAddress ahAuctioneerPda,
  10. required MetaplexAuctionHouseAuctioneerCancelLayout layout,
  11. 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);
}