MetaplexNFTPacksProgram.initPack constructor

MetaplexNFTPacksProgram.initPack({
  1. required SolAddress packSet,
  2. required SolAddress authority,
  3. required SolAddress store,
  4. required SolAddress clock,
  5. SolAddress? whitelistedCreator,
  6. required MetaplexNFTPacksInitPackLayout layout,
  7. 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);
}