Stellar PHP SDK API Documentation

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

Methods

fromTxRep()

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
static

toTxRep()

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>

        
On this page

Search results