Preparing search index...
The search index is not available
rubic-sdk
rubic-sdk
LifiCrossChainProvider
Class LifiCrossChainProvider
Hierarchy
CrossChainProvider
LifiCrossChainProvider
Index
Constructors
constructor
Properties
type
Methods
are
Supported
Blockchains
calculate
is
Supported
Blockchain
parse
Error
Constructors
constructor
new
Lifi
Cross
Chain
Provider
(
)
:
LifiCrossChainProvider
Returns
LifiCrossChainProvider
Properties
Readonly
type
type
:
"lifi"
= CROSS_CHAIN_TRADE_TYPE.LIFI
Methods
are
Supported
Blockchains
are
Supported
Blockchains
(
fromBlockchain
:
BlockchainName
, toBlockchain
:
BlockchainName
)
:
boolean
Parameters
fromBlockchain:
BlockchainName
toBlockchain:
BlockchainName
Returns
boolean
calculate
calculate
(
from
:
PriceTokenAmount
<
EvmBlockchainName
>
, toToken
:
PriceToken
<
EvmBlockchainName
>
, options
:
Omit
<
CrossChainOptions
,
"fromSlippageTolerance"
|
"toSlippageTolerance"
|
"slippageTolerance"
|
"gasCalculation"
|
"deadline"
|
"providerAddress"
|
"timeout"
|
"changenowFullyEnabled"
|
"enableTestnets"
>
&
Required
<
Pick
<
CrossChainOptions
,
"fromSlippageTolerance"
|
"toSlippageTolerance"
|
"slippageTolerance"
|
"gasCalculation"
|
"deadline"
|
"providerAddress"
|
"timeout"
|
"changenowFullyEnabled"
|
"enableTestnets"
>
>
)
:
Promise
<
CalculationResult
>
Parameters
from:
PriceTokenAmount
<
EvmBlockchainName
>
toToken:
PriceToken
<
EvmBlockchainName
>
options:
Omit
<
CrossChainOptions
,
"fromSlippageTolerance"
|
"toSlippageTolerance"
|
"slippageTolerance"
|
"gasCalculation"
|
"deadline"
|
"providerAddress"
|
"timeout"
|
"changenowFullyEnabled"
|
"enableTestnets"
>
&
Required
<
Pick
<
CrossChainOptions
,
"fromSlippageTolerance"
|
"toSlippageTolerance"
|
"slippageTolerance"
|
"gasCalculation"
|
"deadline"
|
"providerAddress"
|
"timeout"
|
"changenowFullyEnabled"
|
"enableTestnets"
>
>
Returns
Promise
<
CalculationResult
>
is
Supported
Blockchain
is
Supported
Blockchain
(
blockchain
:
BlockchainName
)
:
blockchain
is
"ETH"
|
"BSC"
|
"POLYGON"
|
"POLYGON_ZKEVM"
|
"AVALANCHE"
|
"MOONRIVER"
|
"FANTOM"
|
"ARBITRUM"
|
"AURORA"
|
"OPTIMISM"
|
"GNOSIS"
|
"FUSE"
|
"MOONBEAM"
|
"CELO"
|
"ZK_SYNC"
|
"LINEA"
|
"BASE"
|
"MANTLE"
|
"SCROLL"
|
"BLAST"
|
"ROOTSTOCK"
|
"MODE"
Parameters
blockchain:
BlockchainName
Returns
blockchain
is
"ETH"
|
"BSC"
|
"POLYGON"
|
"POLYGON_ZKEVM"
|
"AVALANCHE"
|
"MOONRIVER"
|
"FANTOM"
|
"ARBITRUM"
|
"AURORA"
|
"OPTIMISM"
|
"GNOSIS"
|
"FUSE"
|
"MOONBEAM"
|
"CELO"
|
"ZK_SYNC"
|
"LINEA"
|
"BASE"
|
"MANTLE"
|
"SCROLL"
|
"BLAST"
|
"ROOTSTOCK"
|
"MODE"
Static
parse
Error
parse
Error
(
err
:
unknown
)
:
RubicSdkError
Parameters
err:
unknown
Returns
RubicSdkError
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Modules
rubic-
sdk
Lifi
Cross
Chain
Provider
constructor
type
are
Supported
Blockchains
calculate
is
Supported
Blockchain
parse
Error
Generated using
TypeDoc