UNPKG

rubic-sdk

Version:
18 lines (17 loc) 1.33 kB
import { PriceToken, PriceTokenAmount } from "../../../../../common/tokens"; import { BlockchainName, EvmBlockchainName } from "../../../../../core/blockchain/models/blockchain-name"; import { RequiredCrossChainOptions } from '../../models/cross-chain-options'; import { CrossChainTradeType } from '../../models/cross-chain-trade-type'; 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 { OwlToSupportedBlockchain } from './constants/owl-to-supported-chains'; export declare class OwlToBridgeProvider extends CrossChainProvider { type: CrossChainTradeType; isSupportedBlockchain(blockchain: BlockchainName): boolean; calculate(from: PriceTokenAmount<EvmBlockchainName>, toToken: PriceToken<EvmBlockchainName>, options: RequiredCrossChainOptions): Promise<CalculationResult>; protected getFeeInfo(fromBlockchain: OwlToSupportedBlockchain, providerAddress: string, percentFeeToken: PriceTokenAmount, useProxy: boolean): Promise<FeeInfo>; protected getRoutePath(fromToken: PriceTokenAmount<EvmBlockchainName>, toToken: PriceTokenAmount<EvmBlockchainName>): Promise<RubicStep[]>; private getEmptyTrade; }