UNPKG

rubic-sdk-next

Version:
37 lines (36 loc) 1.87 kB
import BigNumber from 'bignumber.js'; import { PriceTokenAmount } from '../../../../../../common/tokens'; import { BitcoinBlockchainName, BlockchainName } from '../../../../../../core/blockchain/models/blockchain-name'; import { BitcoinCrossChainTrade } from '../../common/bitcoin-cross-chain-trade/bitcoin-cross-chain-trade'; import { CrossChainTradeType } from '../../../models/cross-chain-trade-type'; import { GasData } from '../../common/evm-cross-chain-trade/models/gas-data'; import { BridgeType } from '../../common/models/bridge-type'; import { FeeInfo } from '../../common/models/fee-info'; import { OnChainSubtype } from '../../common/models/on-chain-subtype'; import { TradeInfo } from '../../common/models/trade-info'; import { RangoCrossChainTradeConstructorParams } from '../model/rango-cross-chain-parser-types'; export declare class RangoBitcoinCrossChainTrade extends BitcoinCrossChainTrade { readonly type: CrossChainTradeType; readonly isAggregator: boolean; readonly to: PriceTokenAmount<BlockchainName>; readonly from: PriceTokenAmount<BitcoinBlockchainName>; readonly toTokenAmountMin: BigNumber; readonly feeInfo: FeeInfo; readonly onChainSubtype: OnChainSubtype; readonly bridgeType: BridgeType; readonly gasData: GasData; readonly priceImpact: number | null; private readonly slippage; protected readonly needProvidePubKey = false; /** * @description UUID returned by rango-api to track transaction status in getRangoDstSwapStatus */ rangoRequestId: string | undefined; private readonly swapQueryParams; private get fromBlockchain(); protected get fromContractAddress(): string; protected get methodName(): string; readonly memo: string; constructor(params: RangoCrossChainTradeConstructorParams<BitcoinBlockchainName>); getTradeInfo(): TradeInfo; }