MetaplexAuctionHouseProgram.sell constructor
MetaplexAuctionHouseProgram.sell({
- required SolAddress wallet,
- required SolAddress tokenAccount,
- required SolAddress metadata,
- required SolAddress authority,
- required SolAddress auctionHouse,
- required SolAddress auctionHouseFeeAccount,
- required SolAddress sellerTradeState,
- required SolAddress freeSellerTradeState,
- required SolAddress programAsSigner,
- required MetaplexAuctionHouseSellLayout layout,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
Implementation
factory MetaplexAuctionHouseProgram.sell({
required SolAddress wallet,
required SolAddress tokenAccount,
required SolAddress metadata,
required SolAddress authority,
required SolAddress auctionHouse,
required SolAddress auctionHouseFeeAccount,
required SolAddress sellerTradeState,
required SolAddress freeSellerTradeState,
required SolAddress programAsSigner,
required MetaplexAuctionHouseSellLayout layout,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress rent = SystemProgramConst.sysvarRentPubkey,
}) {
return MetaplexAuctionHouseProgram(keys: [
wallet.toReadOnly(),
tokenAccount.toWritable(),
metadata.toReadOnly(),
authority.toReadOnly(),
auctionHouse.toReadOnly(),
auctionHouseFeeAccount.toWritable(),
sellerTradeState.toWritable(),
freeSellerTradeState.toWritable(),
tokenProgram.toReadOnly(),
systemProgram.toReadOnly(),
programAsSigner.toReadOnly(),
rent.toReadOnly(),
], programId: MetaplexAuctionHouseProgramConst.programId, layout: layout);
}