Preparing search index...
The search index is not available
rubic-sdk
rubic-sdk
StargateCrossChainProvider
Class StargateCrossChainProvider
Hierarchy
CrossChainProvider
StargateCrossChainProvider
Index
Constructors
constructor
Properties
type
Methods
are
Supported
Blockchains
calculate
is
Supported
Blockchain
get
Symbol
parse
Error
Constructors
constructor
new
Stargate
Cross
Chain
Provider
(
)
:
StargateCrossChainProvider
Returns
StargateCrossChainProvider
Properties
Readonly
type
type
:
"stargate"
= CROSS_CHAIN_TRADE_TYPE.STARGATE
Methods
are
Supported
Blockchains
are
Supported
Blockchains
(
fromBlockchain
:
BlockchainName
, toBlockchain
:
BlockchainName
)
:
boolean
Parameters
fromBlockchain:
BlockchainName
toBlockchain:
BlockchainName
Returns
boolean
calculate
calculate
(
fromToken
:
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
fromToken:
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"
|
"AVALANCHE"
|
"FANTOM"
|
"ARBITRUM"
|
"OPTIMISM"
|
"METIS"
|
"BASE"
Parameters
blockchain:
BlockchainName
Returns
blockchain
is
"ETH"
|
"BSC"
|
"POLYGON"
|
"AVALANCHE"
|
"FANTOM"
|
"ARBITRUM"
|
"OPTIMISM"
|
"METIS"
|
"BASE"
Static
get
Symbol
get
Symbol
(
symbol
:
string
, blockchain
:
BlockchainName
, swapWithMetisBlockchain
?:
boolean
)
:
string
Parameters
symbol:
string
blockchain:
BlockchainName
Optional
swapWithMetisBlockchain:
boolean
Returns
string
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
Stargate
Cross
Chain
Provider
constructor
type
are
Supported
Blockchains
calculate
is
Supported
Blockchain
get
Symbol
parse
Error
Generated using
TypeDoc