MetaplexGumdropProgram.recoverUpdateAuthority constructor

MetaplexGumdropProgram.recoverUpdateAuthority({
  1. required SolAddress base,
  2. required SolAddress distributor,
  3. required SolAddress distributorWallet,
  4. required SolAddress newUpdateAuthority,
  5. required SolAddress metadata,
  6. required SolAddress tokenMetadataProgram,
  7. required MetaplexGumdropRecoverUpdateAuthorityLayout layout,
  8. SolAddress systemProgram = SystemProgramConst.programId,
})

Implementation

factory MetaplexGumdropProgram.recoverUpdateAuthority({
  required SolAddress base,
  required SolAddress distributor,
  required SolAddress distributorWallet,
  required SolAddress newUpdateAuthority,
  required SolAddress metadata,
  required SolAddress tokenMetadataProgram,
  required MetaplexGumdropRecoverUpdateAuthorityLayout layout,
  SolAddress systemProgram = SystemProgramConst.programId,
}) {
  return MetaplexGumdropProgram(keys: [
    base.toSigner(),
    distributor.toReadOnly(),
    distributorWallet.toReadOnly(),
    newUpdateAuthority.toReadOnly(),
    metadata.toWritable(),
    systemProgram.toReadOnly(),
    tokenMetadataProgram.toReadOnly()
  ], programId: MetaplexGumdropProgramConst.programId, layout: layout);
}