UNPKG

rubic-sdk

Version:
17 lines (16 loc) 1.41 kB
import { PriceToken, PriceTokenAmount } from "../../../../../common/tokens"; import { BlockchainName, EvmBlockchainName } from "../../../../../core/blockchain/models/blockchain-name"; import { RequiredCrossChainOptions } from "../../models/cross-chain-options"; import { CbridgeCrossChainSupportedBlockchain } from "../cbridge/constants/cbridge-supported-blockchains"; 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 { TaikoBridgeSupportedBlockchain } from './models/taiko-bridge-supported-blockchains'; export declare class TaikoBridgeProvider extends CrossChainProvider { readonly type: "taiko_bridge"; isSupportedBlockchain(blockchain: BlockchainName): blockchain is TaikoBridgeSupportedBlockchain; calculate(fromToken: PriceTokenAmount<EvmBlockchainName>, toToken: PriceToken<EvmBlockchainName>, options: RequiredCrossChainOptions): Promise<CalculationResult>; protected getFeeInfo(_fromBlockchain: CbridgeCrossChainSupportedBlockchain, _providerAddress: string, _percentFeeToken: PriceTokenAmount, _useProxy: boolean): Promise<FeeInfo>; protected getRoutePath(fromToken: PriceTokenAmount<EvmBlockchainName>, toToken: PriceTokenAmount<EvmBlockchainName>): Promise<RubicStep[]>; }