public class LiquidityPoolDepositOp extends java.lang.Object implements XdrElement
struct LiquidityPoolDepositOp { PoolID liquidityPoolID; int64 maxAmountA; // maximum amount of first asset to deposit int64 maxAmountB; // maximum amount of second asset to deposit Price minPrice; // minimum depositA/depositB Price maxPrice; // maximum depositA/depositB };
Modifier and Type | Class and Description |
---|---|
static class |
LiquidityPoolDepositOp.LiquidityPoolDepositOpBuilder |
Constructor and Description |
---|
LiquidityPoolDepositOp() |
LiquidityPoolDepositOp(PoolID liquidityPoolID,
Int64 maxAmountA,
Int64 maxAmountB,
Price minPrice,
Price maxPrice) |
Modifier and Type | Method and Description |
---|---|
static LiquidityPoolDepositOp.LiquidityPoolDepositOpBuilder |
builder() |
static LiquidityPoolDepositOp |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static LiquidityPoolDepositOp |
fromXdrBase64(java.lang.String xdr) |
static LiquidityPoolDepositOp |
fromXdrByteArray(byte[] xdr) |
PoolID |
getLiquidityPoolID() |
Int64 |
getMaxAmountA() |
Int64 |
getMaxAmountB() |
Price |
getMaxPrice() |
Price |
getMinPrice() |
int |
hashCode() |
void |
setLiquidityPoolID(PoolID liquidityPoolID) |
void |
setMaxAmountA(Int64 maxAmountA) |
void |
setMaxAmountB(Int64 maxAmountB) |
void |
setMaxPrice(Price maxPrice) |
void |
setMinPrice(Price minPrice) |
LiquidityPoolDepositOp.LiquidityPoolDepositOpBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static LiquidityPoolDepositOp decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static LiquidityPoolDepositOp fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static LiquidityPoolDepositOp fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static LiquidityPoolDepositOp.LiquidityPoolDepositOpBuilder builder()
public LiquidityPoolDepositOp.LiquidityPoolDepositOpBuilder toBuilder()
public PoolID getLiquidityPoolID()
public Int64 getMaxAmountA()
public Int64 getMaxAmountB()
public Price getMinPrice()
public Price getMaxPrice()
public void setLiquidityPoolID(PoolID liquidityPoolID)
public void setMaxAmountA(Int64 maxAmountA)
public void setMaxAmountB(Int64 maxAmountB)
public void setMinPrice(Price minPrice)
public void setMaxPrice(Price maxPrice)
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