Swap class

Constructors

Swap(GrpcServiceImpl grpc)

Properties

grpc GrpcServiceImpl
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getSwapIn(String pairAddress, BigInt amountOut, bool swapForY) Future<(BigInt, BigInt)>
getSwapIn evaluates the input amount of coin and fee needed to obtain the given output amount of coins
getSwapOut(String pairAddress, BigInt amountIn, bool swapForY) Future<(BigInt, BigInt)>
getSwapOut evaluates the output amount of coin and fee needed to obtain the given input amount of coins
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
swapExactMASForTokens(BigInt amountIn, BigInt amountOut, List binSteps, List tokenPath, String toAddress, int deadline) Future<(String, bool)>
swapExactMASForTokens swaps exact amount of input MAS coins to a specified output token
swapTokensForExactMAS(BigInt amountIn, BigInt amountOut, List binSteps, List tokenPath, String toAddress, int deadline) Future<(String, bool)>
swapTokensForExactMAS swaps specified input amount of coins to an exact output ammount of MAS coins
toString() String
A string representation of this object.
inherited
unwrap(double amount) Future<(String, bool)>
wrap wraps MAS coin to WMAS
wrap(double amount) Future<(String, bool)>
wrap wraps MAS coin to WMAS

Operators

operator ==(Object other) bool
The equality operator.
inherited