rubic-sdk
Version:
Simplify dApp creation
25 lines (24 loc) • 1.71 kB
TypeScript
import { PriceToken, PriceTokenAmount } from "../../../../../common/tokens";
import { BlockchainName } from "../../../../../core/blockchain/models/blockchain-name";
import { EvmEncodeConfig } from "../../../../../core/blockchain/web3-pure/typed-web3-pure/evm-web3-pure/models/evm-encode-config";
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 { DeBridgeCrossChainSupportedBlockchain } from "./constants/debridge-cross-chain-supported-blockchain";
import { Estimation } from "./models/estimation-response";
export declare class DebridgeCrossChainProvider extends CrossChainProvider {
readonly type: "dln";
private disabledTrade;
isSupportedBlockchain(blockchain: BlockchainName): blockchain is DeBridgeCrossChainSupportedBlockchain;
calculate(from: PriceTokenAmount<DeBridgeCrossChainSupportedBlockchain>, toToken: PriceToken<DeBridgeCrossChainSupportedBlockchain>, options: RequiredCrossChainOptions): Promise<CalculationResult<EvmEncodeConfig | {
data: string;
}>>;
protected getFeeInfo(fromBlockchain: DeBridgeCrossChainSupportedBlockchain, providerAddress: string, percentFeeToken: PriceTokenAmount, useProxy: boolean): Promise<FeeInfo>;
private parseDebridgeApiError;
protected getRoutePath(estimation: Estimation, from: PriceTokenAmount, to: PriceTokenAmount): Promise<RubicStep[]>;
private getEmptyTrade;
private checkDeflationTokens;
private getAffiliateFee;
}