Constructor
# new LiquidityPoolId(liquidityPoolId)
Parameters:
Name | Type | Description |
---|---|---|
liquidityPoolId |
string
|
The ID of the liquidity pool in string 'hex'. |
Classes
Methods
# equals(asset) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
asset |
LiquidityPoolId
|
LiquidityPoolId to compare. |
true
if this asset equals the given asset.
boolean
# getAssetType() → {AssetType.liquidityPoolShares}
asset type. Can only be liquidity_pool_shares
.
AssetType.liquidityPoolShares
# getLiquidityPoolId() → {string}
Liquidity pool ID.
string
# toXDRObject() → {xdr.TrustLineAsset}
Returns the xdr.TrustLineAsset
object for this liquidity pool ID.
Note: To convert from Asset
to xdr.TrustLineAsset
please
refer to the
Asset.toTrustLineXDRObject
method.
XDR LiquidityPoolId object
xdr.TrustLineAsset
# static fromOperation(tlAssetXdr) → {LiquidityPoolId}
Returns a liquidity pool ID object from its xdr.TrustLineAsset representation.
Parameters:
Name | Type | Description |
---|---|---|
tlAssetXdr |
xdr.TrustLineAsset
|
The asset XDR object. |