rubic-sdk
Version:
Simplify dApp creation
53 lines (52 loc) • 2.66 kB
TypeScript
import BigNumber from 'bignumber.js';
import { PriceTokenAmount } from "../../../../../common/tokens";
import { 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 { EncodeTransactionOptions } from "../../../../common/models/encode-transaction-options";
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';
import { AcrossFeeQuoteRequestParams } from './models/across-fee-quote';
export declare class AcrossCrossChainTrade extends EvmCrossChainTrade {
private readonly uniqCodeWithSeparator;
readonly type: "across";
readonly isAggregator = false;
readonly bridgeType: "across";
readonly from: PriceTokenAmount<EvmBlockchainName>;
readonly to: PriceTokenAmount<EvmBlockchainName>;
readonly toTokenAmountMin: BigNumber;
readonly priceImpact: number | null;
readonly gasData: GasData | null;
readonly feeInfo: FeeInfo;
private readonly slippage;
private readonly acrossFeeQuoteRequestParams;
readonly onChainSubtype: OnChainSubtype;
private readonly fromWithoutFee;
private get fromBlockchain();
protected get fromContractAddress(): string;
protected get methodName(): string;
constructor(ccrTrade: {
from: PriceTokenAmount<EvmBlockchainName>;
to: PriceTokenAmount<EvmBlockchainName>;
toTokenAmountMin: BigNumber;
priceImpact: number | null;
gasData: GasData | null;
feeInfo: FeeInfo;
slippage: number;
acrossFeeQuoteRequestParams: AcrossFeeQuoteRequestParams;
}, providerAddress: string, routePath: RubicStep[], useProxy: boolean);
protected getContractParams(options: GetContractParamsOptions): Promise<ContractParams>;
protected getTransactionConfigAndAmount(receiverAddress?: string): Promise<{
config: EvmEncodeConfig;
amount: string;
}>;
getTradeInfo(): TradeInfo;
private getAcrossCallData;
encode(options: EncodeTransactionOptions): Promise<EvmEncodeConfig>;
private getFillDeadline;
}