MetaplexGumdropProgram.closeDistributor constructor
MetaplexGumdropProgram.closeDistributor({
- required SolAddress base,
- required SolAddress distributor,
- required SolAddress distributorWallet,
- required SolAddress receiver,
- required MetaplexGumdropCloseDistributorLayout layout,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress systemProgram = SystemProgramConst.programId,
Implementation
factory MetaplexGumdropProgram.closeDistributor({
required SolAddress base,
required SolAddress distributor,
required SolAddress distributorWallet,
required SolAddress receiver,
required MetaplexGumdropCloseDistributorLayout layout,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress systemProgram = SystemProgramConst.programId,
}) {
return MetaplexGumdropProgram(keys: [
base.toSigner(),
distributor.toWritable(),
distributorWallet.toWritable(),
receiver.toReadOnly(),
systemProgram.toReadOnly(),
tokenProgram.toReadOnly()
], programId: MetaplexGumdropProgramConst.programId, layout: layout);
}