UNPKG

rubic-sdk

Version:
17 lines (16 loc) 1.23 kB
import { PriceToken, PriceTokenAmount } from "../../../../../common/tokens"; import { BlockchainName, EvmBlockchainName } from "../../../../../core/blockchain/models/blockchain-name"; 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'; import { AccrossCcrSupportedChains } from './constants/across-ccr-supported-chains'; export declare class AcrossCrossChainProvider extends CrossChainProvider { readonly type: "across"; isSupportedBlockchain(blockchain: BlockchainName): boolean; calculate(from: PriceTokenAmount<EvmBlockchainName>, toToken: PriceToken<EvmBlockchainName>, options: RequiredCrossChainOptions): Promise<CalculationResult>; protected getRoutePath(fromToken: PriceTokenAmount, toToken: PriceTokenAmount): Promise<RubicStep[]>; protected getFeeInfo(fromBlockchain: AccrossCcrSupportedChains, providerAddress: string, percentFeeToken: PriceTokenAmount, useProxy: boolean): Promise<FeeInfo>; private checkMinMaxAmounts; }