MetaplexBubblegumProgram.mintToCollectionV1 constructor
MetaplexBubblegumProgram.mintToCollectionV1({
- required SolAddress treeAuthority,
- required SolAddress leafOwner,
- required SolAddress leafDelegate,
- required SolAddress merkleTree,
- required SolAddress payer,
- required SolAddress treeDelegate,
- required SolAddress collectionAuthority,
- required SolAddress collectionAuthorityRecordPda,
- required SolAddress collectionMint,
- required SolAddress collectionMetadata,
- required SolAddress editionAccount,
- required SolAddress bubblegumSigner,
- required SolAddress logWrapper,
- required SolAddress compressionProgram,
- required SolAddress tokenMetadataProgram,
- required MetaplexBubblegumMintToCollectionV1Layout layout,
- List<
AccountMeta> anchorRemainingAccounts = const [], - SolAddress systemProgram = SystemProgramConst.programId,
Implementation
factory MetaplexBubblegumProgram.mintToCollectionV1({
required SolAddress treeAuthority,
required SolAddress leafOwner,
required SolAddress leafDelegate,
required SolAddress merkleTree,
required SolAddress payer,
required SolAddress treeDelegate,
required SolAddress collectionAuthority,
required SolAddress collectionAuthorityRecordPda,
required SolAddress collectionMint,
required SolAddress collectionMetadata,
required SolAddress editionAccount,
required SolAddress bubblegumSigner,
required SolAddress logWrapper,
required SolAddress compressionProgram,
required SolAddress tokenMetadataProgram,
required MetaplexBubblegumMintToCollectionV1Layout layout,
List<AccountMeta> anchorRemainingAccounts = const [],
SolAddress systemProgram = SystemProgramConst.programId,
}) {
return MetaplexBubblegumProgram(keys: [
treeAuthority.toWritable(),
leafOwner.toReadOnly(),
leafDelegate.toReadOnly(),
merkleTree.toWritable(),
payer.toSigner(),
treeDelegate.toSigner(),
collectionAuthority.toSigner(),
collectionAuthorityRecordPda.toReadOnly(),
collectionMint.toReadOnly(),
collectionMetadata.toWritable(),
editionAccount.toReadOnly(),
bubblegumSigner.toReadOnly(),
logWrapper.toReadOnly(),
compressionProgram.toReadOnly(),
tokenMetadataProgram.toReadOnly(),
systemProgram.toReadOnly(),
...anchorRemainingAccounts
], programId: MetaplexBubblegumProgramConst.programId, layout: layout);
}