SPLTokenSwapProgram.depoitSingleToken constructor
      
      SPLTokenSwapProgram.depoitSingleToken({ 
    
- required SolAddress tokenSwap,
- required SolAddress authority,
- required SolAddress userTransferAuthority,
- required SolAddress source,
- required SolAddress intoA,
- required SolAddress intoB,
- required SolAddress poolToken,
- required SolAddress poolAccount,
- required SolAddress sourceMint,
- required SolAddress sourceTokenProgramId,
- required SolAddress poolTokenProgramId,
- required SPLTokenSwapDepositSingleTokenLayout layout,
- required SolAddress swapProgramId,
Deposit one type of tokens into the pool. The output is a "pool" token representing ownership into the pool. Input token is converted as if a swap and deposit all token types were performed.
Implementation
factory SPLTokenSwapProgram.depoitSingleToken({
  /// Token-swap
  required SolAddress tokenSwap,
  /// swap authority
  required SolAddress authority,
  ///  user transfer authority
  required SolAddress userTransferAuthority,
  /// SOURCE Account, amount is transferable by
  /// user transfer authority,
  required SolAddress source,
  /// token_a Swap Account, may deposit INTO.
  required SolAddress intoA,
  /// token_b Swap Account, may deposit INTO.
  required SolAddress intoB,
  /// Pool MINT account, swap authority is the owner.
  required SolAddress poolToken,
  /// Pool Account to deposit the generated tokens, user is
  /// the owner.
  required SolAddress poolAccount,
  /// Token (A|B) SOURCE mint
  required SolAddress sourceMint,
  /// Token (A|B) SOURCE program id
  required SolAddress sourceTokenProgramId,
  /// Pool Token program id
  required SolAddress poolTokenProgramId,
  required SPLTokenSwapDepositSingleTokenLayout layout,
  required SolAddress swapProgramId,
}) {
  return SPLTokenSwapProgram(
      layout: layout,
      keys: [
        tokenSwap.toReadOnly(),
        authority.toReadOnly(),
        userTransferAuthority.toSigner(),
        source.toWritable(),
        intoA.toWritable(),
        intoB.toWritable(),
        poolToken.toWritable(),
        poolAccount.toWritable(),
        sourceMint.toReadOnly(),
        sourceTokenProgramId.toReadOnly(),
        poolTokenProgramId.toReadOnly(),
      ],
      programId: swapProgramId);
}