MetaplexAuctionHouseProgram.executeSaleRemainingAccounts constructor

MetaplexAuctionHouseProgram.executeSaleRemainingAccounts({
  1. required SolAddress metadataProgram,
  2. required SolAddress edition,
  3. required SolAddress ownerTr,
  4. required SolAddress destinationTr,
  5. required SolAddress authRulesProgram,
  6. required SolAddress authRules,
  7. required SolAddress sysvarInstructions,
})

Implementation

factory MetaplexAuctionHouseProgram.executeSaleRemainingAccounts({
  required SolAddress metadataProgram,
  required SolAddress edition,
  required SolAddress ownerTr,
  required SolAddress destinationTr,
  required SolAddress authRulesProgram,
  required SolAddress authRules,
  required SolAddress sysvarInstructions,
}) {
  return MetaplexAuctionHouseProgram(
      keys: [
        metadataProgram.toReadOnly(),
        edition.toReadOnly(),
        ownerTr.toWritable(),
        destinationTr.toWritable(),
        authRulesProgram.toReadOnly(),
        authRules.toReadOnly(),
        sysvarInstructions.toReadOnly()
      ],
      programId: MetaplexAuctionHouseProgramConst.programId,
      layout: const MetaplexAuctionHouseExecuteSaleRemainingAccountsLayout());
}