MetaplexBubblegumProgram.setTreeDelegate constructor

MetaplexBubblegumProgram.setTreeDelegate({
  1. required SolAddress treeAuthority,
  2. required SolAddress treeCreator,
  3. required SolAddress newTreeDelegate,
  4. required SolAddress merkleTree,
  5. SolAddress systemProgram = SystemProgramConst.programId,
  6. 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: const MetaplexBubblegumSetTreeDelegateLayout());
}