MetaplexTokenMetaDataProgram.deprecatedMintNewEditionFromMasterEditionViaPrintingToken constructor

MetaplexTokenMetaDataProgram.deprecatedMintNewEditionFromMasterEditionViaPrintingToken({
  1. required SolAddress metadata,
  2. required SolAddress edition,
  3. required SolAddress masterEdition,
  4. required SolAddress mint,
  5. required SolAddress mintAuthority,
  6. required SolAddress printingMint,
  7. required SolAddress masterTokenAccount,
  8. required SolAddress editionMarker,
  9. required SolAddress burnAuthority,
  10. required SolAddress payer,
  11. required SolAddress masterUpdateAuthority,
  12. required SolAddress masterMetadata,
  13. SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
  14. SolAddress systemProgram = SystemProgramConst.programId,
  15. SolAddress rent = SystemProgramConst.sysvarRentPubkey,
  16. SolAddress? reservationList,
})

Implementation

factory MetaplexTokenMetaDataProgram.deprecatedMintNewEditionFromMasterEditionViaPrintingToken({
  required SolAddress metadata,
  required SolAddress edition,
  required SolAddress masterEdition,
  required SolAddress mint,
  required SolAddress mintAuthority,
  required SolAddress printingMint,
  required SolAddress masterTokenAccount,
  required SolAddress editionMarker,
  required SolAddress burnAuthority,
  required SolAddress payer,
  required SolAddress masterUpdateAuthority,
  required SolAddress masterMetadata,
  SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
  SolAddress systemProgram = SystemProgramConst.programId,
  SolAddress rent = SystemProgramConst.sysvarRentPubkey,
  SolAddress? reservationList,
}) {
  return MetaplexTokenMetaDataProgram(
      keys: [
        metadata.toWritable(),
        edition.toWritable(),
        masterEdition.toWritable(),
        mint.toWritable(),
        mintAuthority.toSigner(),
        printingMint.toWritable(),
        masterTokenAccount.toWritable(),
        editionMarker.toWritable(),
        burnAuthority.toSigner(),
        payer.toSigner(),
        masterUpdateAuthority.toReadOnly(),
        masterMetadata.toReadOnly(),
        tokenProgram.toReadOnly(),
        systemProgram.toReadOnly(),
        rent.toReadOnly(),
        if (reservationList != null) reservationList.toWritable()
      ],
      programId: MetaplexTokenMetaDataProgramConst.programId,
      layout:
          const MetaplexTokenMetaDataDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenLayout());
}