rubic-sdk
Version:
Simplify dApp creation
16 lines (15 loc) • 1.39 kB
TypeScript
import { PriceToken, PriceTokenAmount } from "../../../../../../../common/tokens";
import { EvmBlockchainName, SuiBlockchainName } from "../../../../../../../core/blockchain/models/blockchain-name";
import { OpenoceanOnChainSupportedBlockchain } from '../constants/open-ocean-on-chain-supported-blockchain';
import { OpenoceanSuiSwapQuoteResponse, OpenoceanSwapQuoteResponse } from '../models/open-cean-swap-quote-response';
import { OpenOceanQuoteResponse } from '../models/open-ocean-quote-response';
export declare class OpenOceanApiService {
private static apiV4Url;
private static xApiUrl;
static readonly nativeOpenOceanAddress = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
static fetchQuoteData(fromWithoutFee: PriceTokenAmount<OpenoceanOnChainSupportedBlockchain>, toToken: PriceToken<EvmBlockchainName>, slippageTolerance: number): Promise<OpenOceanQuoteResponse>;
static fetchSwapData(fromWithoutFee: PriceTokenAmount<OpenoceanOnChainSupportedBlockchain>, to: PriceTokenAmount, walletAddress: string, slippageTolerance: number): Promise<OpenoceanSwapQuoteResponse>;
static fetchSuiSwapData(fromWithoutFee: PriceTokenAmount<SuiBlockchainName>, to: PriceTokenAmount, walletAddress: string, slippageTolerance: number, senderAddress: string): Promise<OpenoceanSuiSwapQuoteResponse>;
private static getGasPriceNonWei;
private static getTokenAddress;
}