MetaplexGumdropProgram.claimEdition constructor

MetaplexGumdropProgram.claimEdition({
  1. required SolAddress distributor,
  2. required SolAddress claimCount,
  3. required SolAddress temporal,
  4. required SolAddress payer,
  5. required SolAddress metadataNewMetadata,
  6. required SolAddress metadataNewEdition,
  7. required SolAddress metadataMasterEdition,
  8. required SolAddress metadataNewMint,
  9. required SolAddress metadataEditionMarkPda,
  10. required SolAddress metadataNewMintAuthority,
  11. required SolAddress metadataMasterTokenAccount,
  12. required SolAddress metadataNewUpdateAuthority,
  13. required SolAddress metadataMasterMetadata,
  14. required SolAddress metadataMasterMint,
  15. required SolAddress tokenMetadataProgram,
  16. required MetaplexGumdropClaimEditionLayout layout,
  17. SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
  18. SolAddress systemProgram = SystemProgramConst.programId,
  19. SolAddress rent = SystemProgramConst.sysvarRentPubkey,
})

Implementation

factory MetaplexGumdropProgram.claimEdition(
    {required SolAddress distributor,
    required SolAddress claimCount,
    required SolAddress temporal,
    required SolAddress payer,
    required SolAddress metadataNewMetadata,
    required SolAddress metadataNewEdition,
    required SolAddress metadataMasterEdition,
    required SolAddress metadataNewMint,
    required SolAddress metadataEditionMarkPda,
    required SolAddress metadataNewMintAuthority,
    required SolAddress metadataMasterTokenAccount,
    required SolAddress metadataNewUpdateAuthority,
    required SolAddress metadataMasterMetadata,
    required SolAddress metadataMasterMint,
    required SolAddress tokenMetadataProgram,
    required MetaplexGumdropClaimEditionLayout layout,
    SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
    SolAddress systemProgram = SystemProgramConst.programId,
    SolAddress rent = SystemProgramConst.sysvarRentPubkey}) {
  return MetaplexGumdropProgram(keys: [
    distributor.toWritable(),
    claimCount.toWritable(),
    temporal.toSigner(),
    payer.toSigner(),
    metadataNewMetadata.toWritable(),
    metadataNewEdition.toWritable(),
    metadataMasterEdition.toWritable(),
    metadataNewMint.toWritable(),
    metadataEditionMarkPda.toWritable(),
    metadataNewMintAuthority.toSigner(),
    metadataMasterTokenAccount.toReadOnly(),
    metadataNewUpdateAuthority.toReadOnly(),
    metadataMasterMetadata.toReadOnly(),
    metadataMasterMint.toReadOnly(),
    systemProgram.toReadOnly(),
    tokenProgram.toReadOnly(),
    tokenMetadataProgram.toReadOnly(),
    rent.toReadOnly()
  ], programId: MetaplexGumdropProgramConst.programId, layout: layout);
}