MetaplexAuctionHouseProgram.auctioneerSell constructor

MetaplexAuctionHouseProgram.auctioneerSell({
  1. required SolAddress wallet,
  2. required SolAddress tokenAccount,
  3. required SolAddress metadata,
  4. required SolAddress authority,
  5. required SolAddress auctioneerAuthority,
  6. required SolAddress auctionHouse,
  7. required SolAddress auctionHouseFeeAccount,
  8. required SolAddress sellerTradeState,
  9. required SolAddress freeSellerTradeState,
  10. required SolAddress ahAuctioneerPda,
  11. required SolAddress programAsSigner,
  12. required MetaplexAuctionHouseAuctioneerSellLayout layout,
  13. SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
  14. SolAddress systemProgram = SystemProgramConst.programId,
  15. SolAddress rent = SystemProgramConst.sysvarRentPubkey,
})

Implementation

factory MetaplexAuctionHouseProgram.auctioneerSell(
    {required SolAddress wallet,
    required SolAddress tokenAccount,
    required SolAddress metadata,
    required SolAddress authority,
    required SolAddress auctioneerAuthority,
    required SolAddress auctionHouse,
    required SolAddress auctionHouseFeeAccount,
    required SolAddress sellerTradeState,
    required SolAddress freeSellerTradeState,
    required SolAddress ahAuctioneerPda,
    required SolAddress programAsSigner,
    required MetaplexAuctionHouseAuctioneerSellLayout layout,
    SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
    SolAddress systemProgram = SystemProgramConst.programId,
    SolAddress rent = SystemProgramConst.sysvarRentPubkey}) {
  return MetaplexAuctionHouseProgram(keys: [
    wallet.toWritable(),
    tokenAccount.toWritable(),
    metadata.toReadOnly(),
    authority.toReadOnly(),
    auctioneerAuthority.toSigner(),
    auctionHouse.toReadOnly(),
    auctionHouseFeeAccount.toWritable(),
    sellerTradeState.toWritable(),
    freeSellerTradeState.toWritable(),
    ahAuctioneerPda.toReadOnly(),
    programAsSigner.toReadOnly(),
    tokenProgram.toReadOnly(),
    systemProgram.toReadOnly(),
    rent.toReadOnly(),
  ], programId: MetaplexAuctionHouseProgramConst.programId, layout: layout);
}