Preparing search index...
The search index is not available
rubic-sdk
rubic-sdk
ZetaSwapProvider
Class ZetaSwapProvider
Hierarchy
NativeRouterAbstractProvider
<
ZetaSwapTrade
>
ZetaSwapProvider
Index
Constructors
constructor
Properties
trade
Type
Methods
calculate
get
Blockchain
By
Id
Constructors
constructor
new
Zeta
Swap
Provider
(
)
:
ZetaSwapProvider
Returns
ZetaSwapProvider
Properties
Readonly
trade
Type
trade
Type
:
"ZETA_SWAP"
= ON_CHAIN_TRADE_TYPE.ZETA_SWAP
Methods
calculate
calculate
(
from
:
PriceTokenAmount
<
EvmBlockchainName
>
, toToken
:
PriceToken
<
EvmBlockchainName
>
, options
:
Omit
<
OnChainCalculationOptions
,
"slippageTolerance"
|
"gasCalculation"
|
"providerAddress"
|
"useProxy"
|
"withDeflation"
>
&
Required
<
Pick
<
OnChainCalculationOptions
,
"slippageTolerance"
|
"gasCalculation"
|
"providerAddress"
|
"useProxy"
|
"withDeflation"
>
>
)
:
Promise
<
OnChainTradeError
|
ZetaSwapTrade
>
Parameters
from:
PriceTokenAmount
<
EvmBlockchainName
>
toToken:
PriceToken
<
EvmBlockchainName
>
options:
Omit
<
OnChainCalculationOptions
,
"slippageTolerance"
|
"gasCalculation"
|
"providerAddress"
|
"useProxy"
|
"withDeflation"
>
&
Required
<
Pick
<
OnChainCalculationOptions
,
"slippageTolerance"
|
"gasCalculation"
|
"providerAddress"
|
"useProxy"
|
"withDeflation"
>
>
Returns
Promise
<
OnChainTradeError
|
ZetaSwapTrade
>
get
Blockchain
By
Id
get
Blockchain
By
Id
(
blockchain
:
string
)
:
string
Parameters
blockchain:
string
Returns
string
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Modules
rubic-
sdk
Zeta
Swap
Provider
constructor
trade
Type
calculate
get
Blockchain
By
Id
Generated using
TypeDoc