rubic-sdk
Version:
Simplify dApp creation
36 lines (35 loc) • 1.77 kB
TypeScript
import BigNumber from 'bignumber.js';
import { PriceTokenAmount } from "../../../../../../common/tokens";
import { TonBlockchainName } from "../../../../../../core/blockchain/models/blockchain-name";
import { TonEncodedConfig } from "../../../../../../core/blockchain/web3-private-service/web3-private/ton-web3-private/models/ton-types";
import { ContractParams } from "../../../../../common/models/contract-params";
import { SwapTransactionOptions } from "../../../../../common/models/swap-transaction-options";
import { FeeInfo } from '../../common/models/fee-info';
import { TradeInfo } from '../../common/models/trade-info';
import { TonCrossChainTrade } from '../../common/ton-cross-chain-trade/ton-cross-chain-trade';
import { BridgersTonCrossChainParams } from '../models/bridgers-cross-chain-trade-types';
export declare class TonBridgersCrossChainTrade extends TonCrossChainTrade {
readonly type: "bridgers";
readonly isAggregator = false;
readonly from: PriceTokenAmount<TonBlockchainName>;
readonly to: PriceTokenAmount;
readonly toTokenAmountMin: BigNumber;
readonly feeInfo: FeeInfo;
readonly onChainSubtype: {
from: undefined;
to: undefined;
};
readonly bridgeType: "bridgers";
readonly priceImpact: number | null;
private readonly slippage;
protected get fromContractAddress(): string;
protected get methodName(): string;
constructor(params: BridgersTonCrossChainParams);
swap(options?: SwapTransactionOptions): Promise<string | never>;
protected getContractParams(): Promise<ContractParams>;
getTradeInfo(): TradeInfo;
protected getTransactionConfigAndAmount(receiverAddress?: string): Promise<{
config: TonEncodedConfig;
amount: string;
}>;
}