rubic-sdk
Version:
Simplify dApp creation
32 lines (31 loc) • 1.7 kB
TypeScript
import { PriceTokenAmount } from "../../../../../common/tokens";
import { EvmBlockchainName } from "../../../../../core/blockchain/models/blockchain-name";
import { CrossChainTransferTrade } from '../common/cross-chain-transfer-trade/cross-chain-transfer-trade';
import { CrossChainTransferData } from '../common/cross-chain-transfer-trade/models/cross-chain-payment-info';
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 { RubicStep } from '../common/models/rubicStep';
import { TradeInfo } from '../common/models/trade-info';
import { SimpleSwapCcrSupportedChain } from './constants/simple-swap-ccr-api-blockchain';
import { SimpleSwapCurrency } from './models/simple-swap-currency';
export declare class SimpleSwapCcrTrade extends CrossChainTransferTrade {
get simpleSwapId(): string;
readonly type: "simple_swap";
readonly onChainSubtype: OnChainSubtype;
readonly bridgeType: "simple_swap";
private readonly fromCurrency;
private readonly toCurrency;
protected get fromContractAddress(): string;
constructor(crossChainTrade: {
from: PriceTokenAmount<EvmBlockchainName>;
to: PriceTokenAmount<SimpleSwapCcrSupportedChain>;
gasData: GasData | null;
feeInfo: FeeInfo;
priceImpact: number | null;
fromCurrency: SimpleSwapCurrency;
toCurrency: SimpleSwapCurrency;
}, providerAddress: string, routePath: RubicStep[], useProxy: boolean);
protected getPaymentInfo(receiverAddress: string): Promise<CrossChainTransferData>;
getTradeInfo(): TradeInfo;
}