MetaplexNFTPacksProgram.initPack constructor
MetaplexNFTPacksProgram.initPack({
- required SolAddress packSet,
- required SolAddress authority,
- required SolAddress store,
- required SolAddress clock,
- SolAddress? whitelistedCreator,
- required MetaplexNFTPacksInitPackLayout layout,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
Implementation
factory MetaplexNFTPacksProgram.initPack({
required SolAddress packSet,
required SolAddress authority,
required SolAddress store,
required SolAddress clock,
SolAddress? whitelistedCreator,
required MetaplexNFTPacksInitPackLayout layout,
SolAddress rent = SystemProgramConst.sysvarRentPubkey,
}) {
return MetaplexNFTPacksProgram(keys: [
packSet.toWritable(),
authority.toSigner(),
store.toReadOnly(),
rent.toReadOnly(),
clock.toReadOnly(),
if (whitelistedCreator != null) whitelistedCreator.toReadOnly()
], programId: MetaplexNFTPacksProgramConst.programId, layout: layout);
}