XdrLiquidityPoolDepositOperation
extends XdrLiquidityPoolDepositOperationBase
in package
Table of Contents
Properties
- $liquidityPoolID : string
- $maxAmountA : BigInteger
- $maxAmountB : BigInteger
- $maxPrice : XdrPrice
- $minPrice : XdrPrice
Methods
- __construct() : mixed
- decode() : static
- encode() : string
- fromBase64Xdr() : static
- fromTxRep() : static
- Override fromTxRep to read the pool ID as a hex string directly (the base class converts hex→binary bytes via hexToBytes, which breaks encode()).
- getLiquidityPoolID() : string
- getMaxAmountA() : BigInteger
- getMaxAmountB() : BigInteger
- getMaxPrice() : XdrPrice
- getMinPrice() : XdrPrice
- setLiquidityPoolID() : void
- setMaxAmountA() : void
- setMaxAmountB() : void
- setMaxPrice() : void
- setMinPrice() : void
- toBase64Xdr() : string
- toTxRep() : void
- Override toTxRep because this class stores $liquidityPoolID as a hex string, not as raw binary bytes (which the base class assumes via bytesToHex).
Properties
$liquidityPoolID
public
string
$liquidityPoolID
$maxAmountA
public
BigInteger
$maxAmountA
$maxAmountB
public
BigInteger
$maxAmountB
$maxPrice
public
XdrPrice
$maxPrice
$minPrice
public
XdrPrice
$minPrice
Methods
__construct()
public
__construct(string $liquidityPoolID, BigInteger $maxAmountA, BigInteger $maxAmountB, XdrPrice $minPrice, XdrPrice $maxPrice) : mixed
Parameters
decode()
public
static decode(XdrBuffer $xdr) : static
Parameters
- $xdr : XdrBuffer
Return values
staticencode()
public
encode() : string
Return values
stringfromBase64Xdr()
public
static fromBase64Xdr(string $xdr) : static
Parameters
- $xdr : string
Return values
staticfromTxRep()
Override fromTxRep to read the pool ID as a hex string directly (the base class converts hex→binary bytes via hexToBytes, which breaks encode()).
public
static fromTxRep(array<string, string> $map, string $prefix) : static
Parameters
- $map : array<string, string>
- $prefix : string
Return values
staticgetLiquidityPoolID()
public
getLiquidityPoolID() : string
Return values
stringgetMaxAmountA()
public
getMaxAmountA() : BigInteger
Return values
BigIntegergetMaxAmountB()
public
getMaxAmountB() : BigInteger
Return values
BigIntegergetMaxPrice()
public
getMaxPrice() : XdrPrice
Return values
XdrPricegetMinPrice()
public
getMinPrice() : XdrPrice
Return values
XdrPricesetLiquidityPoolID()
public
setLiquidityPoolID(string $liquidityPoolID) : void
Parameters
- $liquidityPoolID : string
setMaxAmountA()
public
setMaxAmountA(BigInteger $maxAmountA) : void
Parameters
- $maxAmountA : BigInteger
setMaxAmountB()
public
setMaxAmountB(BigInteger $maxAmountB) : void
Parameters
- $maxAmountB : BigInteger
setMaxPrice()
public
setMaxPrice(XdrPrice $maxPrice) : void
Parameters
- $maxPrice : XdrPrice
setMinPrice()
public
setMinPrice(XdrPrice $minPrice) : void
Parameters
- $minPrice : XdrPrice
toBase64Xdr()
public
toBase64Xdr() : string
Return values
stringtoTxRep()
Override toTxRep because this class stores $liquidityPoolID as a hex string, not as raw binary bytes (which the base class assumes via bytesToHex).
public
toTxRep(string $prefix, array<string, string> &$lines) : void
Parameters
- $prefix : string
- $lines : array<string, string>