Package org.stellar.sdk.xdr
Class LiquidityPoolConstantProductParameters
java.lang.Object
org.stellar.sdk.xdr.LiquidityPoolConstantProductParameters
LiquidityPoolConstantProductParameters's original definition in the XDR file is:
struct LiquidityPoolConstantProductParameters { Asset assetA; // assetA < assetB Asset assetB; int32 fee; // Fee is in basis points, so the actual rate is (fee/100)% };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionLiquidityPoolConstantProductParameters
(Asset assetA, Asset assetB, Int32 fee) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
fromXdrBase64
(String xdr) fromXdrByteArray
(byte[] xdr) getFee()
int
hashCode()
void
void
void
toString()
default String
default byte[]
-
Constructor Details
-
LiquidityPoolConstantProductParameters
public LiquidityPoolConstantProductParameters() -
LiquidityPoolConstantProductParameters
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
public static LiquidityPoolConstantProductParameters decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
public static LiquidityPoolConstantProductParameters fromXdrByteArray(byte[] xdr) throws IOException - Throws:
IOException
-
builder
public static LiquidityPoolConstantProductParameters.LiquidityPoolConstantProductParametersBuilder builder() -
toBuilder
-
getAssetA
-
getAssetB
-
getFee
-
setAssetA
-
setAssetB
-
setFee
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-