MetaplexNFTPacksProgram.addVoucherToPack constructor
MetaplexNFTPacksProgram.addVoucherToPack({
- required SolAddress packSet,
- required SolAddress packVoucher,
- required SolAddress authority,
- required SolAddress voucherOwner,
- required SolAddress masterEdition,
- required SolAddress masterMetadata,
- required SolAddress mint,
- required SolAddress source,
- required SolAddress store,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
Implementation
factory MetaplexNFTPacksProgram.addVoucherToPack(
{required SolAddress packSet,
required SolAddress packVoucher,
required SolAddress authority,
required SolAddress voucherOwner,
required SolAddress masterEdition,
required SolAddress masterMetadata,
required SolAddress mint,
required SolAddress source,
required SolAddress store,
SolAddress rent = SystemProgramConst.sysvarRentPubkey,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId}) {
return MetaplexNFTPacksProgram(
keys: [
packSet.toWritable(),
packVoucher.toWritable(),
authority.toSignerAndWritable(),
voucherOwner.toSigner(),
masterEdition.toReadOnly(),
masterMetadata.toReadOnly(),
mint.toReadOnly(),
source.toWritable(),
store.toReadOnly(),
rent.toReadOnly(),
systemProgram.toReadOnly(),
tokenProgram.toReadOnly(),
],
programId: MetaplexNFTPacksProgramConst.programId,
layout: MetaplexNFTPacksAddVoucherToPackLayout());
}