evx-sdk
Version:
The Evx SDK is a developer toolkit designed to simplify interaction with the Evx decentralized liquidity protocol. It provides an abstraction layer over the smart contracts, allowing developers to easily build applications, integrate liquidity pools, fetc
21 lines (20 loc) • 1.16 kB
TypeScript
import { IGetTicksFromPriceRangeQueryParams } from '../../interfaces/queries/params/IGetTicksFromPriceRangeQueryParams';
import { IGetTicksFromPriceRangeOutput } from '../../interfaces/queries/outputs/IGetTicksFromPriceRangeOutput';
import { IBaseQuery } from '../../interfaces/queries/IBaseQuery';
import { TickLensContract } from '@contracts';
/**
* @title Get Ticks From Price Range Query
* @notice Gets the tick lower and tick upper values from a price range
* @dev This query interacts with the TickLensContract to convert sqrt prices to ticks
*/
export declare class GetTicksFromPriceRangeQuery implements IBaseQuery<IGetTicksFromPriceRangeQueryParams, IGetTicksFromPriceRangeOutput> {
private readonly tickLens;
constructor(tickLens: TickLensContract);
/**
* @notice Executes the get ticks from price range query
* @param params The parameters for getting the ticks from price range
* @returns The tick lower and tick upper values
* @throws Error if sqrtPriceLowerX96 is greater than or equal to sqrtPriceUpperX96
*/
execute(params: IGetTicksFromPriceRangeQueryParams): Promise<IGetTicksFromPriceRangeOutput>;
}