Package org.stellar.sdk.xdr
Class LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct
java.lang.Object
org.stellar.sdk.xdr.LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct
- Enclosing class:
LiquidityPoolEntry.LiquidityPoolEntryBody
public static class LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct
extends Object
LiquidityPoolEntryConstantProduct's original definition in the XDR file is:
struct { LiquidityPoolConstantProductParameters params; int64 reserveA; // amount of A in the pool int64 reserveB; // amount of B in the pool int64 totalPoolShares; // total number of pool shares issued int64 poolSharesTrustLineCount; // number of trust lines for the // associated pool shares }
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionLiquidityPoolEntryConstantProduct
(LiquidityPoolConstantProductParameters params, Int64 reserveA, Int64 reserveB, Int64 totalPoolShares, Int64 poolSharesTrustLineCount) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
fromXdrBase64
(String xdr) fromXdrByteArray
(byte[] xdr) int
hashCode()
void
void
setPoolSharesTrustLineCount
(Int64 poolSharesTrustLineCount) void
setReserveA
(Int64 reserveA) void
setReserveB
(Int64 reserveB) void
setTotalPoolShares
(Int64 totalPoolShares) toString()
default String
default byte[]
-
Constructor Details
-
LiquidityPoolEntryConstantProduct
public LiquidityPoolEntryConstantProduct() -
LiquidityPoolEntryConstantProduct
public LiquidityPoolEntryConstantProduct(LiquidityPoolConstantProductParameters params, Int64 reserveA, Int64 reserveB, Int64 totalPoolShares, Int64 poolSharesTrustLineCount)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
public static LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
public static LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct fromXdrBase64(String xdr) throws IOException - Throws:
IOException
-
fromXdrByteArray
public static LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct fromXdrByteArray(byte[] xdr) throws IOException - Throws:
IOException
-
builder
-
toBuilder
-
getParams
-
getReserveA
-
getReserveB
-
setParams
-
setReserveA
-
setReserveB
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-