MetaplexNFTPacksProgram.deletePackCard constructor

MetaplexNFTPacksProgram.deletePackCard({
  1. required SolAddress packSet,
  2. required SolAddress packCard,
  3. required SolAddress authority,
  4. required SolAddress refunder,
  5. required SolAddress newMasterEditionOwner,
  6. required SolAddress tokenAccount,
  7. required SolAddress programAuthority,
  8. SolAddress rent = SystemProgramConst.sysvarRentPubkey,
  9. SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
})

Implementation

factory MetaplexNFTPacksProgram.deletePackCard(
    {required SolAddress packSet,
    required SolAddress packCard,
    required SolAddress authority,
    required SolAddress refunder,
    required SolAddress newMasterEditionOwner,
    required SolAddress tokenAccount,
    required SolAddress programAuthority,
    SolAddress rent = SystemProgramConst.sysvarRentPubkey,
    SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId}) {
  return MetaplexNFTPacksProgram(
      keys: [
        packSet.toWritable(),
        packCard.toWritable(),
        authority.toSigner(),
        refunder.toWritable(),
        newMasterEditionOwner.toWritable(),
        tokenAccount.toWritable(),
        programAuthority.toReadOnly(),
        rent.toReadOnly(),
        tokenProgram.toReadOnly()
      ],
      programId: MetaplexNFTPacksProgramConst.programId,
      layout: const MetaplexNFTPacksDeletePackCardLayout());
}