rubic-sdk
Version:
Simplify dApp creation
46 lines (45 loc) • 2.41 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";
import { TransactionReceipt } from 'web3-eth';
export declare class ScrollBridgeTrade extends EvmCrossChainTrade {
readonly onChainSubtype: {
from: undefined;
to: undefined;
};
readonly type: "scroll_bridge";
readonly isAggregator = false;
readonly bridgeType: "scroll_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;
}, providerAddress: string, routePath: RubicStep[], useProxy: boolean);
getContractParams(_options: GetContractParamsOptions): Promise<ContractParams>;
getTradeAmountRatio(_fromUsd: BigNumber): BigNumber;
getTradeInfo(): TradeInfo;
static claimTargetTokens(sourceTransaction: string, options: SwapTransactionOptions): Promise<TransactionReceipt>;
static redeemTokens(sourceTransactionHash: string, options: SwapTransactionOptions): Promise<TransactionReceipt>;
protected getTransactionConfigAndAmount(receiverAddress?: string): Promise<{
config: EvmEncodeConfig;
amount: string;
}>;
}