MetaplexTokenMetaDataProgram.mintNewEditionFromMasterEditionViaVaultProxy constructor
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,
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);
}