rubic-sdk
Version:
Simplify dApp creation
18 lines (17 loc) • 1.4 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 { ArchonBridgeSupportedBlockchain } from "./constants/archon-bridge-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 ArchonBridgeProvider extends CrossChainProvider {
readonly type: "archon_bridge";
isSupportedBlockchain(blockchain: BlockchainName): blockchain is ArchonBridgeSupportedBlockchain;
areSupportedBlockchains(fromBlockchain: BlockchainName, toBlockchain: BlockchainName): boolean;
calculate(fromToken: PriceTokenAmount<EvmBlockchainName>, toToken: PriceToken<EvmBlockchainName>, options: RequiredCrossChainOptions): Promise<CalculationResult>;
protected getFeeInfo(fromBlockchain: ArchonBridgeSupportedBlockchain, providerAddress: string, percentFeeToken: PriceTokenAmount, useProxy: boolean): Promise<FeeInfo>;
protected getRoutePath(fromToken: PriceTokenAmount, toToken: PriceTokenAmount): Promise<RubicStep[]>;
private checkUnsupportedTokens;
}