MetaplexBubblegumProgram.decompressV1 constructor
MetaplexBubblegumProgram.decompressV1({
- required SolAddress voucher,
- required SolAddress leafOwner,
- required SolAddress tokenAccount,
- required SolAddress mint,
- required SolAddress mintAuthority,
- required SolAddress metadata,
- required SolAddress masterEdition,
- required SolAddress sysvarRent,
- required SolAddress tokenMetadataProgram,
- required SolAddress associatedTokenProgram,
- required SolAddress logWrapper,
- required MetaplexBubblegumDecompressV1Layout layout,
- List<
AccountMeta> anchorRemainingAccounts = const [], - SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
Implementation
factory MetaplexBubblegumProgram.decompressV1({
required SolAddress voucher,
required SolAddress leafOwner,
required SolAddress tokenAccount,
required SolAddress mint,
required SolAddress mintAuthority,
required SolAddress metadata,
required SolAddress masterEdition,
required SolAddress sysvarRent,
required SolAddress tokenMetadataProgram,
required SolAddress associatedTokenProgram,
required SolAddress logWrapper,
required MetaplexBubblegumDecompressV1Layout layout,
List<AccountMeta> anchorRemainingAccounts = const [],
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
}) {
return MetaplexBubblegumProgram(keys: [
voucher.toWritable(),
leafOwner.toSignerAndWritable(),
tokenAccount.toWritable(),
mint.toWritable(),
mintAuthority.toWritable(),
metadata.toWritable(),
masterEdition.toWritable(),
systemProgram.toReadOnly(),
sysvarRent.toReadOnly(),
tokenMetadataProgram.toReadOnly(),
tokenProgram.toReadOnly(),
associatedTokenProgram.toReadOnly(),
logWrapper.toReadOnly(),
...anchorRemainingAccounts
], programId: MetaplexBubblegumProgramConst.programId, layout: layout);
}