MetaplexGumdropProgram.closeDistributor constructor

MetaplexGumdropProgram.closeDistributor({
  1. required SolAddress base,
  2. required SolAddress distributor,
  3. required SolAddress distributorWallet,
  4. required SolAddress receiver,
  5. required MetaplexGumdropCloseDistributorLayout layout,
  6. SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
  7. SolAddress systemProgram = SystemProgramConst.programId,
})

Implementation

factory MetaplexGumdropProgram.closeDistributor({
  required SolAddress base,
  required SolAddress distributor,
  required SolAddress distributorWallet,
  required SolAddress receiver,
  required MetaplexGumdropCloseDistributorLayout layout,
  SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
  SolAddress systemProgram = SystemProgramConst.programId,
}) {
  return MetaplexGumdropProgram(keys: [
    base.toSigner(),
    distributor.toWritable(),
    distributorWallet.toWritable(),
    receiver.toReadOnly(),
    systemProgram.toReadOnly(),
    tokenProgram.toReadOnly()
  ], programId: MetaplexGumdropProgramConst.programId, layout: layout);
}