MetaplexBubblegumProgram.setTreeDelegate constructor
MetaplexBubblegumProgram.setTreeDelegate({
- required SolAddress treeAuthority,
- required SolAddress treeCreator,
- required SolAddress newTreeDelegate,
- required SolAddress merkleTree,
- SolAddress systemProgram = SystemProgramConst.programId,
- List<
AccountMeta> anchorRemainingAccounts = const [],
Implementation
factory MetaplexBubblegumProgram.setTreeDelegate({
required SolAddress treeAuthority,
required SolAddress treeCreator,
required SolAddress newTreeDelegate,
required SolAddress merkleTree,
SolAddress systemProgram = SystemProgramConst.programId,
List<AccountMeta> anchorRemainingAccounts = const [],
}) {
return MetaplexBubblegumProgram(
keys: [
treeAuthority.toWritable(),
treeCreator.toSigner(),
newTreeDelegate.toReadOnly(),
merkleTree.toReadOnly(),
systemProgram.toReadOnly(),
...anchorRemainingAccounts
],
programId: MetaplexBubblegumProgramConst.programId,
layout: MetaplexBubblegumSetTreeDelegateLayout());
}