MetaplexAuctionHouseProgram.cancelRemainingAccounts constructor

MetaplexAuctionHouseProgram.cancelRemainingAccounts({
  1. required SolAddress metadataProgram,
  2. required SolAddress delegateRecord,
  3. required SolAddress programAsSigner,
  4. required SolAddress metadata,
  5. required SolAddress edition,
  6. required SolAddress tokenRecord,
  7. required SolAddress tokenMint,
  8. required SolAddress authRulesProgram,
  9. required SolAddress authRules,
  10. required SolAddress sysvarInstructions,
  11. SolAddress systemProgram = SystemProgramConst.programId,
})

Implementation

factory MetaplexAuctionHouseProgram.cancelRemainingAccounts({
  required SolAddress metadataProgram,
  required SolAddress delegateRecord,
  required SolAddress programAsSigner,
  required SolAddress metadata,
  required SolAddress edition,
  required SolAddress tokenRecord,
  required SolAddress tokenMint,
  required SolAddress authRulesProgram,
  required SolAddress authRules,
  required SolAddress sysvarInstructions,
  SolAddress systemProgram = SystemProgramConst.programId,
}) {
  return MetaplexAuctionHouseProgram(
      keys: [
        metadataProgram.toReadOnly(),
        delegateRecord.toWritable(),
        programAsSigner.toReadOnly(),
        metadata.toWritable(),
        edition.toReadOnly(),
        tokenRecord.toWritable(),
        tokenMint.toReadOnly(),
        authRulesProgram.toReadOnly(),
        authRules.toReadOnly(),
        sysvarInstructions.toReadOnly(),
        systemProgram.toReadOnly()
      ],
      programId: MetaplexAuctionHouseProgramConst.programId,
      layout: MetaplexAuctionHouseCancelRemainingAccountsLayout());
}