MetaplexAuctionHouseProgram.sellRemainingAccounts constructor

MetaplexAuctionHouseProgram.sellRemainingAccounts({
  1. required SolAddress metadataProgram,
  2. required SolAddress delegateRecord,
  3. required SolAddress tokenRecord,
  4. required SolAddress tokenMint,
  5. required SolAddress edition,
  6. required SolAddress authRulesProgram,
  7. required SolAddress authRules,
  8. required SolAddress sysvarInstructions,
})

Implementation

factory MetaplexAuctionHouseProgram.sellRemainingAccounts({
  required SolAddress metadataProgram,
  required SolAddress delegateRecord,
  required SolAddress tokenRecord,
  required SolAddress tokenMint,
  required SolAddress edition,
  required SolAddress authRulesProgram,
  required SolAddress authRules,
  required SolAddress sysvarInstructions,
}) {
  return MetaplexAuctionHouseProgram(
      keys: [
        metadataProgram.toReadOnly(),
        delegateRecord.toWritable(),
        tokenRecord.toWritable(),
        tokenMint.toReadOnly(),
        edition.toReadOnly(),
        authRulesProgram.toReadOnly(),
        authRules.toReadOnly(),
        sysvarInstructions.toReadOnly(),
      ],
      programId: MetaplexAuctionHouseProgramConst.programId,
      layout: const MetaplexAuctionHouseSellRemainingAccountsLayout());
}