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
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionLiquidityPoolEntryConstantProduct(LiquidityPoolConstantProductParameters params, Int64 reserveA, Int64 reserveB, Int64 totalPoolShares, Int64 poolSharesTrustLineCount) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) inthashCode()voidvoidsetPoolSharesTrustLineCount(Int64 poolSharesTrustLineCount) voidsetReserveA(Int64 reserveA) voidsetReserveB(Int64 reserveB) voidsetTotalPoolShares(Int64 totalPoolShares) toString()default Stringdefault 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
-