SPLTokenSwapAccount constructor

SPLTokenSwapAccount({
  1. required int version,
  2. required bool isInitialized,
  3. required int bumpSeed,
  4. required SolAddress poolTokenProgramId,
  5. required SolAddress tokenAccountA,
  6. required SolAddress tokenAccountB,
  7. required SolAddress tokenPool,
  8. required SolAddress mintA,
  9. required SolAddress mintB,
  10. required SolAddress feeAccount,
  11. required TokenSwapFees fees,
  12. required SPLTokenSwapCurveType curveType,
  13. required List<int> curveParameters,
})

Implementation

SPLTokenSwapAccount({
  required this.version,
  required this.isInitialized,
  required this.bumpSeed,
  required this.poolTokenProgramId,
  required this.tokenAccountA,
  required this.tokenAccountB,
  required this.tokenPool,
  required this.mintA,
  required this.mintB,
  required this.feeAccount,
  required this.fees,
  required this.curveType,
  required List<int> curveParameters,
}) : curveParameters =
          BytesUtils.toBytes(curveParameters, unmodifiable: true);