UNPKG

rubic-sdk-next

Version:
38 lines (37 loc) 1.9 kB
import BigNumber from 'bignumber.js'; import { PriceTokenAmount } from '../../../../../../common/tokens'; import { EvmBlockchainName } from '../../../../../../core/blockchain/models/blockchain-name'; import { ContractParams } from '../../../../../common/models/contract-params'; import { BridgersEvmCrossChainParams } from '../models/bridgers-cross-chain-trade-types'; import { EvmBridgersTransactionData } from '../models/evm-bridgers-transaction-data'; import { EvmCrossChainTrade } from '../../common/evm-cross-chain-trade/evm-cross-chain-trade'; import { GasData } from '../../common/evm-cross-chain-trade/models/gas-data'; import { FeeInfo } from '../../common/models/fee-info'; import { GetContractParamsOptions } from '../../common/models/get-contract-params-options'; import { TradeInfo } from '../../common/models/trade-info'; import { MarkRequired } from 'ts-essentials'; export declare class EvmBridgersCrossChainTrade extends EvmCrossChainTrade { readonly type: "bridgers"; readonly isAggregator = false; readonly from: PriceTokenAmount<EvmBlockchainName>; readonly to: PriceTokenAmount; readonly toTokenAmountMin: BigNumber; readonly gasData: GasData; readonly feeInfo: FeeInfo; readonly onChainSubtype: { from: undefined; to: undefined; }; readonly bridgeType: "bridgers"; readonly priceImpact: number | null; private readonly slippage; protected get methodName(): string; constructor(params: BridgersEvmCrossChainParams); protected getContractParams(options: MarkRequired<GetContractParamsOptions, 'receiverAddress'>): Promise<ContractParams>; getTradeAmountRatio(fromUsd: BigNumber): BigNumber; getTradeInfo(): TradeInfo; protected getTransactionConfigAndAmount(_testMode?: boolean, receiverAddress?: string): Promise<{ config: EvmBridgersTransactionData; amount: string; }>; }