MetaplexNFTPacksProgram.requestCardForRedeem constructor
MetaplexNFTPacksProgram.requestCardForRedeem({
- required SolAddress packSet,
- required SolAddress packConfig,
- required SolAddress store,
- required SolAddress edition,
- required SolAddress editionMint,
- required SolAddress packVoucher,
- required SolAddress provingProcess,
- required SolAddress userWallet,
- required SolAddress recentSlothashes,
- required SolAddress clock,
- SolAddress? userToken,
- required MetaplexNFTPacksRequestCardForRedeemLayout layout,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
- SolAddress systemProgram = SystemProgramConst.programId,
Implementation
factory MetaplexNFTPacksProgram.requestCardForRedeem({
required SolAddress packSet,
required SolAddress packConfig,
required SolAddress store,
required SolAddress edition,
required SolAddress editionMint,
required SolAddress packVoucher,
required SolAddress provingProcess,
required SolAddress userWallet,
required SolAddress recentSlothashes,
required SolAddress clock,
SolAddress? userToken,
required MetaplexNFTPacksRequestCardForRedeemLayout layout,
SolAddress rent = SystemProgramConst.sysvarRentPubkey,
SolAddress systemProgram = SystemProgramConst.programId,
}) {
return MetaplexNFTPacksProgram(keys: [
packSet.toReadOnly(),
packConfig.toWritable(),
store.toReadOnly(),
edition.toReadOnly(),
editionMint.toReadOnly(),
packVoucher.toReadOnly(),
provingProcess.toWritable(),
userWallet.toSigner(),
recentSlothashes.toReadOnly(),
clock.toReadOnly(),
rent.toReadOnly(),
systemProgram.toReadOnly(),
if (userToken != null) userToken.toReadOnly()
], programId: MetaplexNFTPacksProgramConst.programId, layout: layout);
}