rubic-sdk
Version:
Simplify dApp creation
45 lines (44 loc) • 2.23 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 { SwapTransactionOptions } from "../../../../common/models/swap-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 { RubicStep } from "../common/models/rubicStep";
import { TradeInfo } from "../common/models/trade-info";
export declare class ArchonBridgeTrade extends EvmCrossChainTrade {
readonly onChainSubtype: {
from: undefined;
to: undefined;
};
readonly type: "archon_bridge";
readonly isAggregator = false;
readonly bridgeType: "archon_bridge";
readonly from: PriceTokenAmount<EvmBlockchainName>;
readonly to: PriceTokenAmount<EvmBlockchainName>;
readonly toTokenAmountMin: BigNumber;
readonly gasData: GasData | null;
private get fromBlockchain();
protected get fromContractAddress(): string;
readonly feeInfo: FeeInfo;
readonly onChainTrade: null;
protected get methodName(): string;
constructor(crossChainTrade: {
from: PriceTokenAmount<EvmBlockchainName>;
to: PriceTokenAmount<EvmBlockchainName>;
gasData: GasData | null;
feeInfo: FeeInfo;
}, providerAddress: string, routePath: RubicStep[], useProxy: boolean);
protected swapDirect(options?: SwapTransactionOptions): Promise<string | never>;
getContractParams(options: GetContractParamsOptions): Promise<ContractParams>;
getTradeAmountRatio(fromUsd: BigNumber): BigNumber;
getTradeInfo(): TradeInfo;
protected getTransactionConfigAndAmount(receiverAddress?: string): Promise<{
config: EvmEncodeConfig;
amount: string;
}>;
}