MetaplexHydraProgram.distributeWallet constructor
MetaplexHydraProgram.distributeWallet({
- required SolAddress payer,
- required SolAddress member,
- required SolAddress membershipVoucher,
- required SolAddress fanout,
- required SolAddress holdingAccount,
- required SolAddress fanoutForMint,
- required SolAddress fanoutForMintMembershipVoucher,
- required SolAddress fanoutMint,
- required SolAddress fanoutMintMemberTokenAccount,
- required MetaplexHydraDistributeWalletLayout layout,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
Implementation
factory MetaplexHydraProgram.distributeWallet(
{required SolAddress payer,
required SolAddress member,
required SolAddress membershipVoucher,
required SolAddress fanout,
required SolAddress holdingAccount,
required SolAddress fanoutForMint,
required SolAddress fanoutForMintMembershipVoucher,
required SolAddress fanoutMint,
required SolAddress fanoutMintMemberTokenAccount,
required MetaplexHydraDistributeWalletLayout layout,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress rent = SystemProgramConst.sysvarRentPubkey,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId}) {
return MetaplexHydraProgram(keys: [
payer.toSigner(),
member.toWritable(),
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);
}