MetaplexGumdropProgram.claimCandyProven constructor
MetaplexGumdropProgram.claimCandyProven({
- required SolAddress distributor,
- required SolAddress distributorWallet,
- required SolAddress claimProof,
- 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 MetaplexGumdropClaimCandyProvenLayout layout,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
Implementation
factory MetaplexGumdropProgram.claimCandyProven(
{required SolAddress distributor,
required SolAddress distributorWallet,
required SolAddress claimProof,
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 MetaplexGumdropClaimCandyProvenLayout layout,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress rent = SystemProgramConst.sysvarRentPubkey}) {
return MetaplexGumdropProgram(keys: [
distributor.toWritable(),
distributorWallet.toWritable(),
claimProof.toWritable(),
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);
}