MetaplexGumdropProgram.claimCandy constructor
MetaplexGumdropProgram.claimCandy({
- required SolAddress distributor,
- required SolAddress distributorWallet,
- required SolAddress claimCount,
- required SolAddress temporal,
- required SolAddress payer,
- required SolAddress candyMachineConfig,
- required SolAddress candyMachine,
- required SolAddress candyMachineWallet,
- required SolAddress candyMachineMint,
- required SolAddress candyMachineMetadata,
- required SolAddress candyMachineMasterEdition,
- required SolAddress tokenMetadataProgram,
- required SolAddress candyMachineProgram,
- required SolAddress clock,
- required MetaplexGumdropClaimCandyLayout layout,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
Implementation
factory MetaplexGumdropProgram.claimCandy(
{required SolAddress distributor,
required SolAddress distributorWallet,
required SolAddress claimCount,
required SolAddress temporal,
required SolAddress payer,
required SolAddress candyMachineConfig,
required SolAddress candyMachine,
required SolAddress candyMachineWallet,
required SolAddress candyMachineMint,
required SolAddress candyMachineMetadata,
required SolAddress candyMachineMasterEdition,
required SolAddress tokenMetadataProgram,
required SolAddress candyMachineProgram,
required SolAddress clock,
required MetaplexGumdropClaimCandyLayout layout,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress rent = SystemProgramConst.sysvarRentPubkey}) {
return MetaplexGumdropProgram(keys: [
distributor.toWritable(),
distributorWallet.toWritable(),
claimCount.toWritable(),
temporal.toSigner(),
payer.toSigner(),
candyMachineConfig.toReadOnly(),
candyMachine.toWritable(),
candyMachineWallet.toWritable(),
candyMachineMint.toWritable(),
candyMachineMetadata.toWritable(),
candyMachineMasterEdition.toWritable(),
systemProgram.toReadOnly(),
tokenProgram.toReadOnly(),
tokenMetadataProgram.toReadOnly(),
candyMachineProgram.toReadOnly(),
rent.toReadOnly(),
clock.toReadOnly()
], programId: MetaplexGumdropProgramConst.programId, layout: layout);
}