SPLTokenSwapAccount class
- Inheritance
-
- Object
- LayoutSerializable
- SPLTokenSwapAccount
Constructors
-
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}) -
SPLTokenSwapAccount.fromBuffer(List<
int> data) -
factory
-
SPLTokenSwapAccount.fromJson(Map<
String, dynamic> json) -
factory
Properties
- bumpSeed → int
-
Bump seed used to generate the program address / authority
final
-
curveParameters
→ List<
int> -
final
- curveType → SPLTokenSwapCurveType
-
Curve associated with swap
final
- feeAccount → SolAddress
-
Address of pool fee account
final
- fees → TokenSwapFees
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Is the swap initialized, with data written to it
final
- layout → StructLayout
-
The layout representing the structure of the object for serialization.
no setteroverride
- mintA → SolAddress
-
Address of token A mint
final
- mintB → SolAddress
-
Address of token B mint
final
- poolTokenProgramId → SolAddress
-
Token program ID associated with the swap
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tokenAccountA → SolAddress
-
Address of token A liquidity account
final
- tokenAccountB → SolAddress
-
Address of token B liquidity account
final
- tokenPool → SolAddress
-
Address of pool token mint
final
- version → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → Map< String, dynamic> -
Serializes the object to a map.
override
-
toBytes(
) → List< int> -
Converts the object to bytes using Borsh serialization.
inherited
-
toHex(
) → String -
Converts the object to a hexadecimal string.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited