MetaplexGumdropProgram.claim constructor
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,
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);
}