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