Search
Preparing search index...
The search index is not available
@pontem/liquidswap-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@pontem/liquidswap-sdk
LiquidityModule
Class LiquidityModule
Hierarchy
LiquidityModule
Implements
IModule
Index
Constructors
constructor
Properties
_sdk
Accessors
sdk
Methods
calculate
Output
Burn
calculate
Rate
And
Min
ReceivedLP
calculate
Supply
check
Pool
Existence
create
Add
Liquidity
Payload
create
Burn
Liquidity
Payload
get
Amount
In
get
Amount
Out
get
Liquidity
Pool
Resource
get
Liquidity
Supply
Resource
Constructors
constructor
new
Liquidity
Module
(
sdk
:
SDK
)
:
LiquidityModule
Parameters
sdk:
SDK
Returns
LiquidityModule
Properties
Protected
_sdk
_sdk
:
SDK
Accessors
sdk
get
sdk
(
)
:
SDK
Returns
SDK
Methods
calculate
Output
Burn
calculate
Output
Burn
(
params
:
ICalculateBurnLiquidityParams
)
:
Promise
<
undefined
|
{
withoutSlippage
:
{
x
:
string
;
y
:
string
}
;
x
:
string
;
y
:
string
}
>
Parameters
params:
ICalculateBurnLiquidityParams
Returns
Promise
<
undefined
|
{
withoutSlippage
:
{
x
:
string
;
y
:
string
}
;
x
:
string
;
y
:
string
}
>
calculate
Rate
And
Min
ReceivedLP
calculate
Rate
And
Min
ReceivedLP
(
params
:
ICalculateRatesParams
)
:
Promise
<
{
rate
:
string
;
receiveLp
:
string
}
>
Parameters
params:
ICalculateRatesParams
Returns
Promise
<
{
rate
:
string
;
receiveLp
:
string
}
>
calculate
Supply
calculate
Supply
(
params
:
ICalculateSupplyParams
)
:
string
Parameters
params:
ICalculateSupplyParams
Returns
string
check
Pool
Existence
check
Pool
Existence
(
params
:
TGetResourcesPayload
)
:
Promise
<
boolean
>
Parameters
params:
TGetResourcesPayload
Returns
Promise
<
boolean
>
create
Add
Liquidity
Payload
create
Add
Liquidity
Payload
(
params
:
TCreateLiquidityPoolTXPayloadParams
)
:
Promise
<
TxPayloadCallFunction
>
Parameters
params:
TCreateLiquidityPoolTXPayloadParams
Returns
Promise
<
TxPayloadCallFunction
>
create
Burn
Liquidity
Payload
create
Burn
Liquidity
Payload
(
params
:
ICreateBurnLiquidityPayload
)
:
Promise
<
{
arguments
:
string
[]
;
function
:
string
;
type
:
string
;
type_arguments
:
string
[]
}
>
Parameters
params:
ICreateBurnLiquidityPayload
Returns
Promise
<
{
arguments
:
string
[]
;
function
:
string
;
type
:
string
;
type_arguments
:
string
[]
}
>
get
Amount
In
get
Amount
In
(
params
:
Omit
<
ICalculateRatesParams
,
"interactiveToken"
>
)
:
Promise
<
string
>
Parameters
params:
Omit
<
ICalculateRatesParams
,
"interactiveToken"
>
Returns
Promise
<
string
>
get
Amount
Out
get
Amount
Out
(
params
:
Omit
<
ICalculateRatesParams
,
"interactiveToken"
>
)
:
Promise
<
string
>
Parameters
params:
Omit
<
ICalculateRatesParams
,
"interactiveToken"
>
Returns
Promise
<
string
>
get
Liquidity
Pool
Resource
get
Liquidity
Pool
Resource
(
params
:
TGetResourcesPayload
)
:
Promise
<
{
liquidityPoolResource
:
undefined
|
AptosResource
<
AptosPoolResource
>
}
>
Parameters
params:
TGetResourcesPayload
Returns
Promise
<
{
liquidityPoolResource
:
undefined
|
AptosResource
<
AptosPoolResource
>
}
>
get
Liquidity
Supply
Resource
get
Liquidity
Supply
Resource
(
params
:
TGetResourcesPayload
)
:
Promise
<
{
liquidityPoolResource
:
undefined
|
AptosResource
<
AptosCoinInfoResource
>
}
>
Parameters
params:
TGetResourcesPayload
Returns
Promise
<
{
liquidityPoolResource
:
undefined
|
AptosResource
<
AptosCoinInfoResource
>
}
>
Exports
Liquidity
Module
constructor
_sdk
sdk
calculate
Output
Burn
calculate
Rate
And
Min
ReceivedLP
calculate
Supply
check
Pool
Existence
create
Add
Liquidity
Payload
create
Burn
Liquidity
Payload
get
Amount
In
get
Amount
Out
get
Liquidity
Pool
Resource
get
Liquidity
Supply
Resource
Generated using
TypeDoc