rubic-sdk
Version:
Simplify dApp creation
47 lines (46 loc) • 2.27 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 { EvmCrossChainTrade } from '../common/evm-cross-chain-trade/evm-cross-chain-trade';
import { GasData } from '../common/evm-cross-chain-trade/models/gas-data';
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 { RubicStep } from '../common/models/rubicStep';
import { TradeInfo } from '../common/models/trade-info';
export declare class UniZenCcrTrade extends EvmCrossChainTrade {
protected get methodName(): string;
readonly from: PriceTokenAmount<EvmBlockchainName>;
readonly to: PriceTokenAmount<BlockchainName>;
readonly feeInfo: FeeInfo;
readonly type: "unizen";
readonly gasData: GasData | null;
readonly toTokenAmountMin: BigNumber;
readonly isAggregator = false;
readonly slippageTolerance: number;
readonly priceImpact: number | null;
readonly onChainSubtype: OnChainSubtype;
readonly bridgeType: "unizen";
private readonly contractAddress;
constructor(ccrTrade: {
from: PriceTokenAmount<EvmBlockchainName>;
to: PriceTokenAmount<BlockchainName>;
feeInfo: FeeInfo;
gasData: GasData | null;
slippage: number;
priceImpact: number | null;
contractAddress: string;
toTokenAmountMin: BigNumber;
}, providerAddress: string, routePath: RubicStep[], useProxy: boolean);
private get fromBlockchain();
protected get fromContractAddress(): string;
protected getContractParams(options: GetContractParamsOptions): Promise<ContractParams>;
protected getTransactionConfigAndAmount(receiverAddress?: string): Promise<{
config: EvmEncodeConfig;
amount: string;
}>;
private getQuoteInfo;
getTradeInfo(): TradeInfo;
}