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) • 891 B
TypeScript
import { IHasVotedQueryParams } from '../../interfaces/queries/params/IHasVotedQueryParams';
import { IBaseQuery } from '../../interfaces/queries/IBaseQuery';
import { GovernanceContract } from '@contracts';
/**
* @title Has Voted Query
* @notice Checks if a specific account has voted on a given proposal
* @dev Queries the governance contract to check the voting status of an account for a specific proposal
*/
export declare class HasVotedQuery implements IBaseQuery<IHasVotedQueryParams, boolean> {
private readonly governance;
constructor(governance: GovernanceContract);
/**
* @notice Executes the query to check if an account has voted
* @param params The parameters for the query containing proposal ID and account address
* @returns True if the account has voted, false otherwise
*/
execute(params: IHasVotedQueryParams): Promise<boolean>;
}