MetaplexBubblegumProgram.compress constructor
MetaplexBubblegumProgram.compress({
- required SolAddress treeAuthority,
- required SolAddress leafOwner,
- required SolAddress leafDelegate,
- required SolAddress merkleTree,
- required SolAddress tokenAccount,
- required SolAddress mint,
- required SolAddress metadata,
- required SolAddress masterEdition,
- required SolAddress payer,
- required SolAddress logWrapper,
- required SolAddress compressionProgram,
- required SolAddress tokenMetadataProgram,
- List<
AccountMeta> anchorRemainingAccounts = const [], - SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
Implementation
factory MetaplexBubblegumProgram.compress({
required SolAddress treeAuthority,
required SolAddress leafOwner,
required SolAddress leafDelegate,
required SolAddress merkleTree,
required SolAddress tokenAccount,
required SolAddress mint,
required SolAddress metadata,
required SolAddress masterEdition,
required SolAddress payer,
required SolAddress logWrapper,
required SolAddress compressionProgram,
required SolAddress tokenMetadataProgram,
List<AccountMeta> anchorRemainingAccounts = const [],
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
}) {
return MetaplexBubblegumProgram(
keys: [
treeAuthority.toReadOnly(),
leafOwner.toSigner(),
leafDelegate.toReadOnly(),
merkleTree.toReadOnly(),
tokenAccount.toWritable(),
mint.toWritable(),
metadata.toWritable(),
masterEdition.toWritable(),
payer.toSignerAndWritable(),
logWrapper.toReadOnly(),
compressionProgram.toReadOnly(),
tokenProgram.toReadOnly(),
tokenMetadataProgram.toReadOnly(),
systemProgram.toReadOnly(),
...anchorRemainingAccounts
],
programId: MetaplexBubblegumProgramConst.programId,
layout: const MetaplexBubblegumCompressLayout());
}