rubic-sdk
Version:
Simplify dApp creation
27 lines (26 loc) • 1.1 kB
TypeScript
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 { TradeInfo } from '../common/models/trade-info';
import { ChangellyCcrTradeParams } from './models/changelly-ccr-trade-params';
export declare class ChangellyCcrTrade extends CrossChainTransferTrade {
/**
* used in rubic-app to send as changelly_id to backend
*/
get changellyId(): string;
readonly type: "changelly";
readonly onChainSubtype: {
from: undefined;
to: undefined;
};
readonly bridgeType: "changelly";
/**
* rate id from getFixRateForAmount request
*/
private readonly rateId;
protected get fromContractAddress(): string;
private readonly changellyTokens;
constructor(ccrTrade: ChangellyCcrTradeParams);
protected getPaymentInfo(receiverAddress: string, refundAddress?: string): Promise<CrossChainTransferData>;
private getFixedRateQuote;
getTradeInfo(): TradeInfo;
}