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
17 lines (16 loc) • 815 B
TypeScript
import { IGetSlot0QueryParams } from '../../interfaces/queries/params/IGetSlot0QueryParams';
import { IGetSlot0Output } from '../../interfaces/queries/outputs/IGetSlot0Output';
import { IBaseQuery } from '../../interfaces/queries/IBaseQuery';
/**
* @title Get Slot0 Query
* @notice Gets the current slot0 information from a pool
* @dev Queries the pool contract's slot0 function to get the current price, tick, and state
*/
export declare class GetSlot0Query implements IBaseQuery<IGetSlot0QueryParams, IGetSlot0Output> {
/**
* @notice Executes the query to get the slot0 information
* @param params The parameters for the query
* @returns The current slot0 state including sqrt price, tick, and observation data
*/
execute(params: IGetSlot0QueryParams): Promise<IGetSlot0Output>;
}