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