MetaplexBubblegumProgram.unverifyCreator constructor

MetaplexBubblegumProgram.unverifyCreator({
  1. required SolAddress treeAuthority,
  2. required SolAddress leafOwner,
  3. required SolAddress leafDelegate,
  4. required SolAddress merkleTree,
  5. required SolAddress payer,
  6. required SolAddress creator,
  7. required SolAddress logWrapper,
  8. required SolAddress compressionProgram,
  9. required MetaplexBubblegumUnverifyCreatorLayout layout,
  10. List<AccountMeta> anchorRemainingAccounts = const [],
  11. SolAddress systemProgram = SystemProgramConst.programId,
})

Implementation

factory MetaplexBubblegumProgram.unverifyCreator({
  required SolAddress treeAuthority,
  required SolAddress leafOwner,
  required SolAddress leafDelegate,
  required SolAddress merkleTree,
  required SolAddress payer,
  required SolAddress creator,
  required SolAddress logWrapper,
  required SolAddress compressionProgram,
  required MetaplexBubblegumUnverifyCreatorLayout layout,
  List<AccountMeta> anchorRemainingAccounts = const [],
  SolAddress systemProgram = SystemProgramConst.programId,
}) {
  return MetaplexBubblegumProgram(keys: [
    treeAuthority.toReadOnly(),
    leafOwner.toReadOnly(),
    leafDelegate.toReadOnly(),
    merkleTree.toWritable(),
    payer.toSigner(),
    creator.toSigner(),
    logWrapper.toReadOnly(),
    compressionProgram.toReadOnly(),
    systemProgram.toReadOnly(),
    ...anchorRemainingAccounts
  ], programId: MetaplexBubblegumProgramConst.programId, layout: layout);
}