XdrConstantProduct
in package
Table of Contents
Properties
- $params : XdrLiquidityPoolConstantProductParameters
- $poolSharesTrustLineCount : int
- $reserveA : BigInteger
- $reserveB : BigInteger
- $totalPoolShares : BigInteger
Methods
- __construct() : mixed
- decode() : XdrConstantProduct
- encode() : string
- getParams() : XdrLiquidityPoolConstantProductParameters
- getPoolSharesTrustLineCount() : int
- getReserveA() : BigInteger
- getReserveB() : BigInteger
- getTotalPoolShares() : BigInteger
- setParams() : void
- setPoolSharesTrustLineCount() : void
- setReserveA() : void
- setReserveB() : void
- setTotalPoolShares() : void
Properties
$params
public
XdrLiquidityPoolConstantProductParameters
$params
$poolSharesTrustLineCount
public
int
$poolSharesTrustLineCount
$reserveA
public
BigInteger
$reserveA
$reserveB
public
BigInteger
$reserveB
$totalPoolShares
public
BigInteger
$totalPoolShares
Methods
__construct()
public
__construct(XdrLiquidityPoolConstantProductParameters $params, BigInteger $reserveA, BigInteger $reserveB, BigInteger $totalPoolShares, int $poolSharesTrustLineCount) : mixed
Parameters
- $params : XdrLiquidityPoolConstantProductParameters
- $reserveA : BigInteger
- $reserveB : BigInteger
- $totalPoolShares : BigInteger
- $poolSharesTrustLineCount : int
decode()
public
static decode(XdrBuffer $xdr) : XdrConstantProduct
Parameters
- $xdr : XdrBuffer
Return values
XdrConstantProductencode()
public
encode() : string
Return values
stringgetParams()
public
getParams() : XdrLiquidityPoolConstantProductParameters
Return values
XdrLiquidityPoolConstantProductParametersgetPoolSharesTrustLineCount()
public
getPoolSharesTrustLineCount() : int
Return values
intgetReserveA()
public
getReserveA() : BigInteger
Return values
BigIntegergetReserveB()
public
getReserveB() : BigInteger
Return values
BigIntegergetTotalPoolShares()
public
getTotalPoolShares() : BigInteger
Return values
BigIntegersetParams()
public
setParams(XdrLiquidityPoolConstantProductParameters $params) : void
Parameters
setPoolSharesTrustLineCount()
public
setPoolSharesTrustLineCount(int $poolSharesTrustLineCount) : void
Parameters
- $poolSharesTrustLineCount : int
setReserveA()
public
setReserveA(BigInteger $reserveA) : void
Parameters
- $reserveA : BigInteger
setReserveB()
public
setReserveB(BigInteger $reserveB) : void
Parameters
- $reserveB : BigInteger
setTotalPoolShares()
public
setTotalPoolShares(BigInteger $totalPoolShares) : void
Parameters
- $totalPoolShares : BigInteger