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
19 lines (18 loc) • 794 B
TypeScript
import { ITokenQueryParams } from '../../interfaces/queries/params/ITokenQueryParams';
import { IBaseQuery } from '../../interfaces/queries/IBaseQuery';
import { GovernanceContract } from '@contracts';
/**
* @title Token Query
* @notice Retrieves the token address from the governance contract
* @dev Queries the governance contract to get the governance token address
*/
export declare class TokenQuery implements IBaseQuery<ITokenQueryParams, string> {
private readonly governance;
constructor(governance: GovernanceContract);
/**
* @notice Executes the query to get the token address
* @param params The parameters for the query (empty for token function)
* @returns The token address as a string
*/
execute(_?: ITokenQueryParams): Promise<string>;
}