MetaplexNFTPacksProgram.claimPack constructor
MetaplexNFTPacksProgram.claimPack({
- required SolAddress packSet,
- required SolAddress provingProcess,
- required SolAddress userWallet,
- required SolAddress packCard,
- required SolAddress userToken,
- required SolAddress newMetadata,
- required SolAddress newEdition,
- required SolAddress masterEdition,
- required SolAddress newMint,
- required SolAddress newMintAuthority,
- required SolAddress metadata,
- required SolAddress metadataMint,
- required SolAddress editionMarker,
- required SolAddress tokenMetadataProgram,
- required MetaplexNFTPacksClaimPackLayout layout,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
Implementation
factory MetaplexNFTPacksProgram.claimPack(
{required SolAddress packSet,
required SolAddress provingProcess,
required SolAddress userWallet,
required SolAddress packCard,
required SolAddress userToken,
required SolAddress newMetadata,
required SolAddress newEdition,
required SolAddress masterEdition,
required SolAddress newMint,
required SolAddress newMintAuthority,
required SolAddress metadata,
required SolAddress metadataMint,
required SolAddress editionMarker,
required SolAddress tokenMetadataProgram,
required MetaplexNFTPacksClaimPackLayout layout,
SolAddress rent = SystemProgramConst.sysvarRentPubkey,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId}) {
return MetaplexNFTPacksProgram(keys: [
packSet.toReadOnly(),
provingProcess.toWritable(),
userWallet.toSigner(),
packCard.toWritable(),
userToken.toWritable(),
newMetadata.toReadOnly(),
newEdition.toReadOnly(),
masterEdition.toReadOnly(),
newMint.toReadOnly(),
newMintAuthority.toSigner(),
metadata.toReadOnly(),
metadataMint.toReadOnly(),
editionMarker.toReadOnly(),
rent.toReadOnly(),
tokenMetadataProgram.toReadOnly(),
tokenProgram.toReadOnly(),
systemProgram.toReadOnly(),
], programId: MetaplexNFTPacksProgramConst.programId, layout: layout);
}