MetaplexNFTPacksProgram.addCardToPack constructor
MetaplexNFTPacksProgram.addCardToPack({
- required SolAddress packSet,
- required SolAddress packConfig,
- required SolAddress packCard,
- required SolAddress authority,
- required SolAddress masterEdition,
- required SolAddress masterMetadata,
- required SolAddress mint,
- required SolAddress source,
- required SolAddress tokenAccount,
- required SolAddress programAuthority,
- required SolAddress store,
- required MetaplexNFTPacksAddCardToPackLayout layout,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
Implementation
factory MetaplexNFTPacksProgram.addCardToPack(
{required SolAddress packSet,
required SolAddress packConfig,
required SolAddress packCard,
required SolAddress authority,
required SolAddress masterEdition,
required SolAddress masterMetadata,
required SolAddress mint,
required SolAddress source,
required SolAddress tokenAccount,
required SolAddress programAuthority,
required SolAddress store,
required MetaplexNFTPacksAddCardToPackLayout layout,
SolAddress rent = SystemProgramConst.sysvarRentPubkey,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId}) {
return MetaplexNFTPacksProgram(keys: [
packSet.toWritable(),
packConfig.toWritable(),
packCard.toWritable(),
authority.toSigner(),
masterEdition.toReadOnly(),
masterMetadata.toReadOnly(),
mint.toReadOnly(),
source.toWritable(),
tokenAccount.toWritable(),
programAuthority.toReadOnly(),
store.toReadOnly(),
rent.toReadOnly(),
systemProgram.toReadOnly(),
tokenProgram.toReadOnly(),
], programId: MetaplexNFTPacksProgramConst.programId, layout: layout);
}