MetaplexGumdropProgram.claim constructor

MetaplexGumdropProgram.claim({
  1. required SolAddress distributor,
  2. required SolAddress claimStatus,
  3. required SolAddress from,
  4. required SolAddress to,
  5. required SolAddress temporal,
  6. required SolAddress payer,
  7. required MetaplexGumdropClaimLayout layout,
  8. SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
  9. SolAddress systemProgram = SystemProgramConst.programId,
})

Implementation

factory MetaplexGumdropProgram.claim(
    {required SolAddress distributor,
    required SolAddress claimStatus,
    required SolAddress from,
    required SolAddress to,
    required SolAddress temporal,
    required SolAddress payer,
    required MetaplexGumdropClaimLayout layout,
    SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
    SolAddress systemProgram = SystemProgramConst.programId}) {
  return MetaplexGumdropProgram(keys: [
    distributor.toWritable(),
    claimStatus.toWritable(),
    from.toWritable(),
    to.toWritable(),
    temporal.toSigner(),
    payer.toSignerAndWritable(),
    systemProgram.toReadOnly(),
    tokenProgram.toReadOnly()
  ], programId: MetaplexGumdropProgramConst.programId, layout: layout);
}