MetaplexHydraProgram.distributeNft constructor
MetaplexHydraProgram.distributeNft({
- required SolAddress payer,
- required SolAddress member,
- required SolAddress membershipMintTokenAccount,
- required SolAddress membershipKey,
- required SolAddress membershipVoucher,
- required SolAddress fanout,
- required SolAddress holdingAccount,
- required SolAddress fanoutForMint,
- required SolAddress fanoutForMintMembershipVoucher,
- required SolAddress fanoutMint,
- required SolAddress fanoutMintMemberTokenAccount,
- required MetaplexHydraDistributeNftLayout layout,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
Implementation
factory MetaplexHydraProgram.distributeNft(
{required SolAddress payer,
required SolAddress member,
required SolAddress membershipMintTokenAccount,
required SolAddress membershipKey,
required SolAddress membershipVoucher,
required SolAddress fanout,
required SolAddress holdingAccount,
required SolAddress fanoutForMint,
required SolAddress fanoutForMintMembershipVoucher,
required SolAddress fanoutMint,
required SolAddress fanoutMintMemberTokenAccount,
required MetaplexHydraDistributeNftLayout layout,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress rent = SystemProgramConst.sysvarRentPubkey,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId}) {
return MetaplexHydraProgram(keys: [
payer.toSigner(),
member.toWritable(),
membershipMintTokenAccount.toWritable(),
membershipKey.toReadOnly(),
membershipVoucher.toWritable(),
fanout.toWritable(),
holdingAccount.toWritable(),
fanoutForMint.toWritable(),
fanoutForMintMembershipVoucher.toWritable(),
fanoutMint.toReadOnly(),
fanoutMintMemberTokenAccount.toWritable(),
systemProgram.toReadOnly(),
rent.toReadOnly(),
tokenProgram.toReadOnly(),
], programId: MetaplexHydraProgramConst.programId, layout: layout);
}