MetaplexBubblegumProgram.mintV1 constructor
MetaplexBubblegumProgram.mintV1({
- required SolAddress treeAuthority,
- required SolAddress leafOwner,
- required SolAddress leafDelegate,
- required SolAddress merkleTree,
- required SolAddress payer,
- required SolAddress treeDelegate,
- required SolAddress logWrapper,
- required SolAddress compressionProgram,
- required MetaplexBubblegumMintV1Layout layout,
- List<
AccountMeta> anchorRemainingAccounts = const [], - SolAddress systemProgram = SystemProgramConst.programId,
Implementation
factory MetaplexBubblegumProgram.mintV1({
required SolAddress treeAuthority,
required SolAddress leafOwner,
required SolAddress leafDelegate,
required SolAddress merkleTree,
required SolAddress payer,
required SolAddress treeDelegate,
required SolAddress logWrapper,
required SolAddress compressionProgram,
required MetaplexBubblegumMintV1Layout layout,
List<AccountMeta> anchorRemainingAccounts = const [],
SolAddress systemProgram = SystemProgramConst.programId,
}) {
return MetaplexBubblegumProgram(keys: [
treeAuthority.toWritable(),
leafOwner.toReadOnly(),
leafDelegate.toReadOnly(),
merkleTree.toWritable(),
payer.toSigner(),
treeDelegate.toSigner(),
logWrapper.toReadOnly(),
compressionProgram.toReadOnly(),
systemProgram.toReadOnly(),
...anchorRemainingAccounts
], programId: MetaplexBubblegumProgramConst.programId, layout: layout);
}