MetaplexGumdropProgram.newDistributor constructor

MetaplexGumdropProgram.newDistributor({
  1. required SolAddress base,
  2. required SolAddress distributor,
  3. required SolAddress payer,
  4. required MetaplexGumdropNewDistributorLayout layout,
  5. SolAddress systemProgram = SystemProgramConst.programId,
})

Implementation

factory MetaplexGumdropProgram.newDistributor({
  required SolAddress base,
  required SolAddress distributor,
  required SolAddress payer,
  required MetaplexGumdropNewDistributorLayout layout,
  SolAddress systemProgram = SystemProgramConst.programId,
}) {
  return MetaplexGumdropProgram(keys: [
    base.toSigner(),
    distributor.toWritable(),
    payer.toSignerAndWritable(),
    systemProgram.toReadOnly()
  ], programId: MetaplexGumdropProgramConst.programId, layout: layout);
}