rubic-sdk
Version:
Simplify dApp creation
41 lines (40 loc) • 2.17 kB
TypeScript
import BigNumber from 'bignumber.js';
import { PriceTokenAmount } from "../../../../../../common/tokens";
import { BlockchainName, EvmBlockchainName } from "../../../../../../core/blockchain/models/blockchain-name";
import { EvmEncodeConfig } from "../../../../../../core/blockchain/web3-pure/typed-web3-pure/evm-web3-pure/models/evm-encode-config";
import { ContractParams } from "../../../../../common/models/contract-params";
import { CrossChainTradeType } from '../../../models/cross-chain-trade-type';
import { EvmCrossChainTrade } from '../../common/evm-cross-chain-trade/evm-cross-chain-trade';
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 { GetContractParamsOptions } from '../../common/models/get-contract-params-options';
import { OnChainSubtype } from '../../common/models/on-chain-subtype';
import { TradeInfo } from '../../common/models/trade-info';
import { TeleSwapEvmConstructorParams } from '../models/teleswap-constructor-params';
export declare class TeleSwapEvmCcrTrade extends EvmCrossChainTrade {
readonly type: CrossChainTradeType;
readonly to: PriceTokenAmount<BlockchainName>;
readonly from: PriceTokenAmount<EvmBlockchainName>;
readonly toTokenAmountMin: BigNumber;
private readonly fromWithoutFee;
readonly feeInfo: FeeInfo;
readonly onChainSubtype: OnChainSubtype;
readonly bridgeType: BridgeType;
readonly gasData: GasData | null;
readonly priceImpact: number | null;
private readonly slippage;
readonly isAggregator = false;
private readonly teleSwapSdk;
private get fromBlockchain();
protected get fromContractAddress(): string;
protected get methodName(): string;
constructor(params: TeleSwapEvmConstructorParams);
protected getContractParams(options: GetContractParamsOptions): Promise<ContractParams>;
protected getTransactionConfigAndAmount(receiverAddress: string): Promise<{
config: EvmEncodeConfig;
amount: string;
}>;
private getTxParams;
getTradeInfo(): TradeInfo;
}