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
20 lines (19 loc) • 985 B
TypeScript
import { ICheckPoolExistsQueryParams } from '../../interfaces/queries/params/ICheckPoolExistsQueryParams';
import { ICheckPoolExistsOutput } from '../../interfaces/queries/outputs/ICheckPoolExistsOutput';
import { IBaseQuery } from '../../interfaces/queries/IBaseQuery';
import { FactoryContract } from '@contracts';
/**
* @title Check Pool Exists Query
* @notice Checks if a pool exists for the given token pair and fee tier
* @dev Queries the factory contract to get the pool address and determines existence
*/
export declare class CheckPoolExistsQuery implements IBaseQuery<ICheckPoolExistsQueryParams, ICheckPoolExistsOutput> {
private readonly factory;
constructor(factory: FactoryContract);
/**
* @notice Executes the query to check if a pool exists
* @param params The parameters for checking pool existence
* @returns Pool existence status and address
*/
execute(params: ICheckPoolExistsQueryParams): Promise<ICheckPoolExistsOutput>;
}