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) • 954 B
TypeScript
import { IQuoteExactInputQueryParams } from '../../interfaces/queries/params/IQuoteExactInputQueryParams';
import { IQuoteExactInputOutput } from '../../interfaces/queries/outputs/IQuoteExactInputOutput';
import { IBaseQuery } from '../../interfaces/queries/IBaseQuery';
import { RPC } from '@providers';
/**
* @title Quote Exact Input Query
* @notice Gets a quote for an exact input swap
* @dev This query interacts with the QuoterContract to get a quote for an exact input swap
*/
export declare class QuoteExactInputQuery implements IBaseQuery<IQuoteExactInputQueryParams, IQuoteExactInputOutput> {
private readonly rpc;
constructor(rpc: RPC);
/**
* @notice Executes the quote exact input query
* @param params The parameters for getting the quote
* @returns The quote data including amount out, price impact, and gas estimate
*/
execute(params: IQuoteExactInputQueryParams): Promise<IQuoteExactInputOutput>;
}