- Preparing search index...
- The search index is not available
rubic-sdk
Class ProxyCrossChainEvmTrade
Methods
Static
checkCrossChainWhiteList
- checkCrossChainWhiteList(fromBlockchain: EvmBlockchainName, routerAddress: string, offset: string): Promise<void>
-
Parameters
-
-
routerAddress: string
-
offset: string
Returns Promise<void>
Static
checkDexWhiteList
- checkDexWhiteList(fromBlockchain: EvmBlockchainName, routerAddress: string, method: string): Promise<void>
-
Parameters
-
-
routerAddress: string
-
method: string
Returns Promise<void>
Static
getFeeInfo
- getFeeInfo(fromBlockchain: "MUMBAI" | "BSCT" | "GOERLI" | "FUJI" | "SCROLL_SEPOLIA" | "ARTHERA" | "SEPOLIA" | "BERACHAIN" | "BLAST_TESTNET" | "HOLESKY" | "ETH" | "BSC" | "POLYGON" | "POLYGON_ZKEVM" | "AVALANCHE" | "MOONRIVER" | "FANTOM" | "HARMONY" | "ARBITRUM" | "AURORA" | "TELOS" | "OPTIMISM" | "CRONOS" | "OKX" | "GNOSIS" | "FUSE" | "MOONBEAM" | "CELO" | "BOBA" | "BOBA_BSC" | "ASTAR_EVM" | "ETHW" | "KAVA" | "BITGERT" | "OASIS" | "METIS" | "DEFIKINGDOMS" | "KLAYTN" | "VELAS" | "STARKNET" | "SYSCOIN" | "ETHEREUM_CLASSIC" | "FLARE" | "IOTEX" | "THETA" | "BITCOIN_CASH" | "ZK_SYNC" | "PULSECHAIN" | "LINEA" | "BASE" | "MANTLE" | "MANTA_PACIFIC" | "SCROLL" | "ZETACHAIN" | "BLAST" | "KROMA" | "HORIZEN_EON" | "MERLIN" | "ROOTSTOCK" | "MODE" | "ZK_FAIR" | "ZK_LINK" | "XLAYER" | "TAIKO" | "SEI" | "CORE" | "BAHAMUT" | "BITLAYER" | "GRAVITY" | "SOLANA" | "TRON", providerAddress: string, percentFeeToken: PriceTokenAmount<BlockchainName>, useProxy: boolean): Promise<FeeInfo>
-
Parameters
-
fromBlockchain: "MUMBAI" | "BSCT" | "GOERLI" | "FUJI" | "SCROLL_SEPOLIA" | "ARTHERA" | "SEPOLIA" | "BERACHAIN" | "BLAST_TESTNET" | "HOLESKY" | "ETH" | "BSC" | "POLYGON" | "POLYGON_ZKEVM" | "AVALANCHE" | "MOONRIVER" | "FANTOM" | "HARMONY" | "ARBITRUM" | "AURORA" | "TELOS" | "OPTIMISM" | "CRONOS" | "OKX" | "GNOSIS" | "FUSE" | "MOONBEAM" | "CELO" | "BOBA" | "BOBA_BSC" | "ASTAR_EVM" | "ETHW" | "KAVA" | "BITGERT" | "OASIS" | "METIS" | "DEFIKINGDOMS" | "KLAYTN" | "VELAS" | "STARKNET" | "SYSCOIN" | "ETHEREUM_CLASSIC" | "FLARE" | "IOTEX" | "THETA" | "BITCOIN_CASH" | "ZK_SYNC" | "PULSECHAIN" | "LINEA" | "BASE" | "MANTLE" | "MANTA_PACIFIC" | "SCROLL" | "ZETACHAIN" | "BLAST" | "KROMA" | "HORIZEN_EON" | "MERLIN" | "ROOTSTOCK" | "MODE" | "ZK_FAIR" | "ZK_LINK" | "XLAYER" | "TAIKO" | "SEI" | "CORE" | "BAHAMUT" | "BITLAYER" | "GRAVITY" | "SOLANA" | "TRON"
-
providerAddress: string
-
-
useProxy: boolean
Returns Promise<FeeInfo>
Static
getGenericProviderData
- getGenericProviderData(providerAddress: string, providerData: string, fromBlockchain: EvmBlockchainName, gatewayAddress: string, extraNative: string): Promise<[string, string, string, string]>
-
Parameters
-
providerAddress: string
-
providerData: string
-
-
gatewayAddress: string
-
extraNative: string
Returns Promise<[string, string, string, string]>
Static
getSwapData
- getSwapData(swapOptions: GetContractParamsOptions, tradeParams: ProxySwapParams): Promise<[[string, string, string, string, string, string, boolean]]>
-
Returns Promise<[[string, string, string, string, string, string, boolean]]>
Static
getWhitelistedDexes
- getWhitelistedDexes(fromBlockchain: EvmBlockchainName): Promise<string[]>
-
Returns Promise<string[]>