UNPKG

rubic-sdk

Version:
16 lines (15 loc) 1.3 kB
import { PriceToken, PriceTokenAmount } from "../../../../../common/tokens"; import { BlockchainName, EvmBlockchainName } from "../../../../../core/blockchain/models/blockchain-name"; import { RouterQuoteResponseConfig } from "../../../../common/providers/router/models/router-quote-response-config"; import { RequiredCrossChainOptions } from '../../models/cross-chain-options'; import { CrossChainProvider } from '../common/cross-chain-provider'; import { CalculationResult } from '../common/models/calculation-result'; import { FeeInfo } from '../common/models/fee-info'; import { RubicStep } from '../common/models/rubicStep'; export declare class RouterCrossChainProvider extends CrossChainProvider { readonly type: "router"; isSupportedBlockchain(fromBlockchain: BlockchainName): boolean; calculate(from: PriceTokenAmount<EvmBlockchainName>, toToken: PriceToken<EvmBlockchainName>, options: RequiredCrossChainOptions): Promise<CalculationResult>; protected getRoutePath(fromToken: PriceTokenAmount<EvmBlockchainName>, toToken: PriceTokenAmount<EvmBlockchainName>, routerQuoteConfig: RouterQuoteResponseConfig): Promise<RubicStep[]>; getFeeInfo(fromBlockchain: EvmBlockchainName, providerAddress: string, percentFeeToken: PriceTokenAmount, useProxy: boolean): Promise<FeeInfo>; }