rubic-sdk
Version:
Simplify dApp creation
23 lines (22 loc) • 1.48 kB
TypeScript
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 { RetroBridgeSupportedBlockchain } from './constants/retro-bridge-supported-blockchain';
export declare class RetroBridgeProvider extends CrossChainProvider {
private readonly MAX_DECIMAL;
readonly type: "retro_bridge";
isSupportedBlockchain(blockchain: BlockchainName): boolean;
calculate(from: PriceTokenAmount<EvmBlockchainName>, toToken: PriceToken<EvmBlockchainName>, options: RequiredCrossChainOptions): Promise<CalculationResult>;
protected getRoutePath(from: PriceTokenAmount<EvmBlockchainName>, toToken: PriceTokenAmount<EvmBlockchainName>): Promise<RubicStep[]>;
protected getFeeInfo(fromBlockchain: RetroBridgeSupportedBlockchain, providerAddress: string, percentFeeToken: PriceTokenAmount, useProxy: boolean): Promise<FeeInfo>;
private checkMinMaxAmount;
private checkFromAmountDecimals;
private getBlockchainTicker;
private getEmptyTrade;
private getFromToTokenTickers;
private parseTokenAddress;
}