UNPKG

rubic-sdk

Version:
23 lines (22 loc) 1.44 kB
import { PriceToken, PriceTokenAmount } from "../../../../../common/tokens"; import { 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 { MesonSupportedBlockchain } from './constants/meson-cross-chain-supported-chains'; export declare class MesonCrossChainProvider extends CrossChainProvider { readonly type: "meson"; isSupportedBlockchain(blockchain: EvmBlockchainName): boolean; calculate(from: PriceTokenAmount<EvmBlockchainName>, toToken: PriceToken<EvmBlockchainName>, options: RequiredCrossChainOptions): Promise<CalculationResult>; private fetchTradeInfo; private getApiTokenInfo; private getTxChainsSymbols; /** * Meson inputs only value with 6 or less decimals in swap request */ private getFromWith6Decimals; protected getRoutePath(fromToken: PriceTokenAmount<EvmBlockchainName>, toToken: PriceTokenAmount<EvmBlockchainName>): Promise<RubicStep[]>; protected getFeeInfo(fromBlockchain: MesonSupportedBlockchain, providerAddress: string, percentFeeToken: PriceTokenAmount, useProxy: boolean): Promise<FeeInfo>; }