Search
Preparing search index...
The search index is not available
@omnibtc/omniswap-sui-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@omnibtc/omniswap-sui-sdk
PoolModule
Class PoolModule
Hierarchy
PoolModule
Implements
IModule
Index
Constructors
constructor
Properties
_sdk
Accessors
sdk
Methods
build
Add
Liquid
Trans
Action
build
Remove
Liquid
Trans
Action
calculate
Rate
get
Coin
In
get
Coin
Out
get
Pool
Info
get
Pool
List
Constructors
constructor
new
Pool
Module
(
sdk
:
SDK
)
:
PoolModule
Parameters
sdk:
SDK
Returns
PoolModule
Properties
Protected
_sdk
_sdk
:
SDK
Accessors
sdk
get
sdk
(
)
:
SDK
Returns
SDK
Methods
build
Add
Liquid
Trans
Action
build
Add
Liquid
Trans
Action
(
params
:
CreateAddLiquidTXPayloadParams
)
:
MoveCallTransaction
Parameters
params:
CreateAddLiquidTXPayloadParams
Returns
MoveCallTransaction
build
Remove
Liquid
Trans
Action
build
Remove
Liquid
Trans
Action
(
params
:
CreateRemoveLiquidTXPayloadParams
)
:
MoveCallTransaction
Parameters
params:
CreateRemoveLiquidTXPayloadParams
Returns
MoveCallTransaction
calculate
Rate
calculate
Rate
(
interactiveToken
:
string
, coin_x
:
string
, coin_y
:
string
, coin_in_value
:
number
)
:
Promise
<
Decimal
>
Parameters
interactiveToken:
string
coin_x:
string
coin_y:
string
coin_in_value:
number
Returns
Promise
<
Decimal
>
get
Coin
In
get
Coin
In
(
coinOutVal
:
Decimal
, reserveOutSize
:
Decimal
, reserveInSize
:
Decimal
)
:
Decimal
Parameters
coinOutVal:
Decimal
reserveOutSize:
Decimal
reserveInSize:
Decimal
Returns
Decimal
get
Coin
Out
get
Coin
Out
(
coinInVal
:
Decimal
, reserveInSize
:
Decimal
, reserveOutSize
:
Decimal
)
:
Decimal
Parameters
coinInVal:
Decimal
reserveInSize:
Decimal
reserveOutSize:
Decimal
Returns
Decimal
get
Pool
Info
get
Pool
Info
(
coinXType
:
string
, coinYType
:
string
)
:
Promise
<
PoolInfo
>
Parameters
coinXType:
string
coinYType:
string
Returns
Promise
<
PoolInfo
>
get
Pool
List
get
Pool
List
(
)
:
Promise
<
Pool
[]
>
Returns
Promise
<
Pool
[]
>
Exports
Pool
Module
constructor
_sdk
sdk
build
Add
Liquid
Trans
Action
build
Remove
Liquid
Trans
Action
calculate
Rate
get
Coin
In
get
Coin
Out
get
Pool
Info
get
Pool
List
Generated using
TypeDoc