rubic-sdk
Version:
Simplify dApp creation
25 lines (24 loc) • 1.79 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 { EvmOnChainTrade } from "../../../../on-chain/calculation-manager/providers/common/on-chain-trade/evm-on-chain-trade/evm-on-chain-trade";
import { StargateCrossChainSupportedBlockchain } from './constants/stargate-cross-chain-supported-blockchain';
export declare class StargateCrossChainProvider extends CrossChainProvider {
readonly type: "stargate";
isSupportedBlockchain(blockchain: BlockchainName): blockchain is StargateCrossChainSupportedBlockchain;
private static hasDirectRoute;
calculate(fromToken: PriceTokenAmount<EvmBlockchainName>, toToken: PriceToken<EvmBlockchainName>, options: RequiredCrossChainOptions): Promise<CalculationResult>;
private getLayerZeroFee;
protected getFeeInfo(fromBlockchain: Partial<EvmBlockchainName>, providerAddress: string, percentFeeToken: PriceTokenAmount, useProxy: boolean): Promise<FeeInfo>;
private fetchPoolFees;
private getPoolToken;
private getTransitToken;
private getDstSwap;
static getSymbol(symbol: string, blockchain: BlockchainName, swapWithMetisBlockchain?: boolean): string;
protected getRoutePath(from: PriceTokenAmount, to: PriceTokenAmount, srcOnChainTrade: EvmOnChainTrade | null): Promise<RubicStep[]>;
private shouldWeStopCalculatingWithMetisToken;
}