rubic-sdk
Version:
Simplify dApp creation
19 lines (18 loc) • 1.49 kB
TypeScript
import { PriceToken, PriceTokenAmount } from "../../../../../common/tokens";
import { BlockchainName } from "../../../../../core/blockchain/models/blockchain-name";
import { Web3PublicSupportedBlockchain } from "../../../../../core/blockchain/web3-public-service/models/web3-public-storage";
import { RequiredCrossChainOptions } from "../../models/cross-chain-options";
import { BridgersCrossChainSupportedBlockchain } from "./constants/bridgers-cross-chain-supported-blockchain";
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";
export declare class BridgersCrossChainProvider extends CrossChainProvider {
readonly type: "bridgers";
isSupportedBlockchain(blockchain: BlockchainName): blockchain is BridgersCrossChainSupportedBlockchain;
areSupportedBlockchains(fromBlockchain: BlockchainName, toBlockchain: BlockchainName): boolean;
calculate(from: PriceTokenAmount, toToken: PriceToken, options: RequiredCrossChainOptions): Promise<CalculationResult>;
private getCalculationResponse;
protected getFeeInfo(fromBlockchain: Web3PublicSupportedBlockchain, providerAddress: string, percentFeeToken: PriceTokenAmount, useProxy: boolean): Promise<FeeInfo>;
protected getRoutePath(fromToken: PriceTokenAmount, toToken: PriceTokenAmount): Promise<RubicStep[]>;
}