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