SPLTokenSwapAccount constructor
SPLTokenSwapAccount({
- required int version,
- required bool isInitialized,
- required int bumpSeed,
- required SolAddress poolTokenProgramId,
- required SolAddress tokenAccountA,
- required SolAddress tokenAccountB,
- required SolAddress tokenPool,
- required SolAddress mintA,
- required SolAddress mintB,
- required SolAddress feeAccount,
- required TokenSwapFees fees,
- required SPLTokenSwapCurveType curveType,
- 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);