MetaplexTokenMetaDataProgram.mintNewEditionFromMasterEditionViaVaultProxy constructor

MetaplexTokenMetaDataProgram.mintNewEditionFromMasterEditionViaVaultProxy({
  1. required SolAddress newMetadata,
  2. required SolAddress newEdition,
  3. required SolAddress masterEdition,
  4. required SolAddress newMint,
  5. required SolAddress editionMarkPda,
  6. required SolAddress newMintAuthority,
  7. required SolAddress payer,
  8. required SolAddress vaultAuthority,
  9. required SolAddress safetyDepositStore,
  10. required SolAddress safetyDepositBox,
  11. required SolAddress vault,
  12. required SolAddress newMetadataUpdateAuthority,
  13. required SolAddress metadata,
  14. required SolAddress tokenVaultProgram,
  15. required MetaplexTokenMetaDataMintNewEditionFromMasterEditionViaVaultProxyLayout layout,
  16. SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
  17. SolAddress systemProgram = SystemProgramConst.programId,
  18. SolAddress? rent,
})

Implementation

factory MetaplexTokenMetaDataProgram.mintNewEditionFromMasterEditionViaVaultProxy({
  required SolAddress newMetadata,
  required SolAddress newEdition,
  required SolAddress masterEdition,
  required SolAddress newMint,
  required SolAddress editionMarkPda,
  required SolAddress newMintAuthority,
  required SolAddress payer,
  required SolAddress vaultAuthority,
  required SolAddress safetyDepositStore,
  required SolAddress safetyDepositBox,
  required SolAddress vault,
  required SolAddress newMetadataUpdateAuthority,
  required SolAddress metadata,
  required SolAddress tokenVaultProgram,
  required MetaplexTokenMetaDataMintNewEditionFromMasterEditionViaVaultProxyLayout
      layout,
  SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
  SolAddress systemProgram = SystemProgramConst.programId,
  SolAddress? rent,
}) {
  return MetaplexTokenMetaDataProgram(keys: [
    newMetadata.toWritable(),
    newEdition.toWritable(),
    masterEdition.toWritable(),
    newMint.toWritable(),
    editionMarkPda.toWritable(),
    newMintAuthority.toSigner(),
    payer.toSignerAndWritable(),
    vaultAuthority.toSigner(),
    safetyDepositStore.toReadOnly(),
    safetyDepositBox.toReadOnly(),
    vault.toReadOnly(),
    newMetadataUpdateAuthority.toReadOnly(),
    metadata.toReadOnly(),
    tokenProgram.toReadOnly(),
    tokenVaultProgram.toReadOnly(),
    systemProgram.toReadOnly(),
    if (rent != null) rent.toReadOnly()
  ], programId: MetaplexTokenMetaDataProgramConst.programId, layout: layout);
}