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
SwapModule
Class SwapModule
Hierarchy
SwapModule
Implements
IModule
Index
Constructors
constructor
Properties
_sdk
Accessors
sdk
Methods
build
Swap
Transaction
calculate
Rate
get
Coin
In
With
Fee
get
Coin
Out
With
Fees
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
build
Swap
Transaction
build
Swap
Transaction
(
params
:
CreateSwapTXPayloadParams
)
:
MoveCallTransaction
Parameters
params:
CreateSwapTXPayloadParams
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
With
Fee
get
Coin
In
With
Fee
(
coinOutVal
:
Decimal
, reserveOutSize
:
Decimal
, reserveInSize
:
Decimal
)
:
Decimal
Parameters
coinOutVal:
Decimal
reserveOutSize:
Decimal
reserveInSize:
Decimal
Returns
Decimal
get
Coin
Out
With
Fees
get
Coin
Out
With
Fees
(
coinInVal
:
Decimal
, reserveInSize
:
Decimal
, reserveOutSize
:
Decimal
)
:
Decimal
Parameters
coinInVal:
Decimal
reserveInSize:
Decimal
reserveOutSize:
Decimal
Returns
Decimal
Exports
Swap
Module
constructor
_sdk
sdk
build
Swap
Transaction
calculate
Rate
get
Coin
In
With
Fee
get
Coin
Out
With
Fees
Generated using
TypeDoc