public static class LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct extends java.lang.Object implements XdrElement
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 }
Modifier and Type | Class and Description |
---|---|
static class |
LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct.LiquidityPoolEntryConstantProductBuilder |
Constructor and Description |
---|
LiquidityPoolEntryConstantProduct() |
LiquidityPoolEntryConstantProduct(LiquidityPoolConstantProductParameters params,
Int64 reserveA,
Int64 reserveB,
Int64 totalPoolShares,
Int64 poolSharesTrustLineCount) |
toXdrBase64, toXdrByteArray
public LiquidityPoolEntryConstantProduct()
public LiquidityPoolEntryConstantProduct(LiquidityPoolConstantProductParameters params, Int64 reserveA, Int64 reserveB, Int64 totalPoolShares, Int64 poolSharesTrustLineCount)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct.LiquidityPoolEntryConstantProductBuilder builder()
public LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct.LiquidityPoolEntryConstantProductBuilder toBuilder()
public LiquidityPoolConstantProductParameters getParams()
public Int64 getReserveA()
public Int64 getReserveB()
public Int64 getTotalPoolShares()
public Int64 getPoolSharesTrustLineCount()
public void setParams(LiquidityPoolConstantProductParameters params)
public void setReserveA(Int64 reserveA)
public void setReserveB(Int64 reserveB)
public void setTotalPoolShares(Int64 totalPoolShares)
public void setPoolSharesTrustLineCount(Int64 poolSharesTrustLineCount)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object