rubic-sdk
Version:
Simplify dApp creation
49 lines (48 loc) • 2.05 kB
TypeScript
import BigNumber from 'bignumber.js';
import { PriceTokenAmount } from "../../../../../../common/tokens";
import { BitcoinBlockchainName } from "../../../../../../core/blockchain/models/blockchain-name";
import { SwapTransactionOptions } from "../../../../../common/models/swap-transaction-options";
import { BitcoinCrossChainTrade } from '../../common/bitcoin-cross-chain-trade/bitcoin-cross-chain-trade';
import { GasData } from '../../common/evm-cross-chain-trade/models/gas-data';
import { FeeInfo } from '../../common/models/fee-info';
import { OnChainSubtype } from '../../common/models/on-chain-subtype';
import { TradeInfo } from '../../common/models/trade-info';
import { TeleSwapBitcoinConstructorParams } from '../models/teleswap-constructor-params';
export declare class TeleSwapBtcCcrTrade extends BitcoinCrossChainTrade {
readonly type: "tele_swap";
readonly isAggregator = false;
readonly onChainSubtype: OnChainSubtype;
readonly bridgeType: "tele_swap";
readonly from: PriceTokenAmount<BitcoinBlockchainName>;
readonly to: PriceTokenAmount;
readonly toTokenAmountMin: BigNumber;
readonly feeInfo: FeeInfo;
/**
* Overall price impact, fetched from symbiosis api.
*/
readonly priceImpact: number | null;
readonly gasData: GasData | null;
private readonly slippage;
protected get fromContractAddress(): string;
protected get methodName(): string;
readonly memo = "";
private readonly teleSwapSdk;
private get toBlockchain();
constructor(params: TeleSwapBitcoinConstructorParams);
getTradeAmountRatio(fromUsd: BigNumber): BigNumber;
getTradeInfo(): TradeInfo;
/**
*
* @returns txHash(srcTxHash) | never
*/
swap(options?: SwapTransactionOptions): Promise<string | never>;
protected getTransactionConfigAndAmount(receiverAddress: string): Promise<{
config: {
to: string;
value: string;
inputIndexes: number[];
data: string;
};
amount: string;
}>;
}