MetaplexBubblegumProgram.cancelRedeem constructor

MetaplexBubblegumProgram.cancelRedeem({
  1. required SolAddress treeAuthority,
  2. required SolAddress leafOwner,
  3. required SolAddress merkleTree,
  4. required SolAddress voucher,
  5. required SolAddress logWrapper,
  6. required SolAddress compressionProgram,
  7. required MetaplexBubblegumCancelRedeemLayout layout,
  8. List<AccountMeta> anchorRemainingAccounts = const [],
  9. SolAddress systemProgram = SystemProgramConst.programId,
})

Implementation

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