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
SwapModule
Class SwapModule
Hierarchy
SwapModule
Implements
IModule
Index
Constructors
constructor
Properties
_sdk
Accessors
sdk
Methods
calculate
Rates
create
Swap
Transaction
Payload
get
Amount
In
get
Amount
Out
get
Liquidity
Pool
Resource
Constructors
constructor
new
Swap
Module
(
sdk
:
SDK
)
:
SwapModule
Parameters
sdk:
SDK
Returns
SwapModule
Properties
Protected
_sdk
_sdk
:
SDK
Accessors
sdk
get
sdk
(
)
:
SDK
Returns
SDK
Methods
calculate
Rates
calculate
Rates
(
params
:
CalculateRatesParams
)
:
Promise
<
string
>
Parameters
params:
CalculateRatesParams
Returns
Promise
<
string
>
create
Swap
Transaction
Payload
create
Swap
Transaction
Payload
(
params
:
CreateTXPayloadParams
)
:
TxPayloadCallFunction
Parameters
params:
CreateTXPayloadParams
Returns
TxPayloadCallFunction
get
Amount
In
get
Amount
In
(
params
:
Omit
<
CalculateRatesParams
,
"interactiveToken"
>
)
:
Promise
<
string
>
Parameters
params:
Omit
<
CalculateRatesParams
,
"interactiveToken"
>
Returns
Promise
<
string
>
get
Amount
Out
get
Amount
Out
(
params
:
Omit
<
CalculateRatesParams
,
"interactiveToken"
>
)
:
Promise
<
string
>
Parameters
params:
Omit
<
CalculateRatesParams
,
"interactiveToken"
>
Returns
Promise
<
string
>
get
Liquidity
Pool
Resource
get
Liquidity
Pool
Resource
(
params
:
GetLiquidityPoolResourceParams
)
:
Promise
<
{
liquidityPoolResource
:
undefined
|
AptosResource
<
AptosPoolResource
>
;
liquidityPoolType
:
string
}
>
Parameters
params:
GetLiquidityPoolResourceParams
Returns
Promise
<
{
liquidityPoolResource
:
undefined
|
AptosResource
<
AptosPoolResource
>
;
liquidityPoolType
:
string
}
>
Exports
Swap
Module
constructor
_sdk
sdk
calculate
Rates
create
Swap
Transaction
Payload
get
Amount
In
get
Amount
Out
get
Liquidity
Pool
Resource
Generated using
TypeDoc