MetaplexGumdropProgram.closeDistributorTokenAccount constructor

MetaplexGumdropProgram.closeDistributorTokenAccount({
  1. required SolAddress base,
  2. required SolAddress distributor,
  3. required SolAddress from,
  4. required SolAddress to,
  5. required SolAddress receiver,
  6. required MetaplexGumdropCloseDistributorTokenAccountLayout layout,
  7. SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
  8. SolAddress systemProgram = SystemProgramConst.programId,
})

Implementation

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