OsmosisPoolManagerEstimateTradeBasedOnPriceImpactRequest class
- Inheritance
-
- Object
- CosmosProtocolBuffer
- CosmosMessage
- OsmosisPoolManagerEstimateTradeBasedOnPriceImpactRequest
- Mixed-in types
Constructors
- OsmosisPoolManagerEstimateTradeBasedOnPriceImpactRequest({required Coin fromCoin, String? toCoinDenom, BigInt? poolId, required String maxPriceImpact, required String externalPrice})
-
OsmosisPoolManagerEstimateTradeBasedOnPriceImpactRequest.deserialize(List<
int> bytes) -
factory
Properties
- externalPrice → String
-
external_price is an optional external price that the user can enter.
It adjusts the MaxPriceImpact as the SpotPrice of a pool can be changed at
any time.
final
-
fieldIds
→ List<
int> -
List of field IDs corresponding to the values.
no setteroverride
- fromCoin → Coin
-
from_coin is the total amount of tokens that the user wants to sell.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxPriceImpact → String
-
max_price_impact is the maximum percentage that the user is willing
to affect the price of the liquidity pool.
final
- poolId → BigInt?
-
pool_id is the identifier of the liquidity pool that the trade will occur
on.
final
-
queryParameters
→ Map<
String, String?> -
no setteroverride
- queryPath → String
-
no setteroverride
- rpcPath → String
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toCoinDenom → String?
-
to_coin_denom is the denom identifier of the token that the user wants to
buy.
final
- toHex → String
-
Gets the hexadecimal representation of the protocol buffer data.
no setterinherited
- typeUrl → String
-
no setteroverride
- values → List
-
List of dynamic values to be encoded.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onJsonResponse(
Map< String, dynamic> json) → OsmosisPoolManagerEstimateTradeBasedOnPriceImpactResponse -
override
-
onResponse(
List< int> bytes) → OsmosisPoolManagerEstimateTradeBasedOnPriceImpactResponse -
override
-
toAny(
) → Any -
inherited
-
toBuffer(
) → List< int> -
Converts the protocol buffer data to a byte buffer.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the data to a JSON representation.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited