UNPKG

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) 1.02 kB
import { IGetProposalVotesQueryParams } from '../../interfaces/queries/params/IGetProposalVotesQueryParams'; import { IGetProposalVotesResult } from '../../interfaces/queries/IGetProposalVotesResult'; import { IBaseQuery } from '../../interfaces/queries/IBaseQuery'; import { GovernanceContract } from '@contracts'; /** * @title Get Proposal Votes Query * @notice Retrieves the votes breakdown for a specific proposal * @dev Queries the governance contract to get the votes for, against, and abstain for a proposal */ export declare class GetProposalVotesQuery implements IBaseQuery<IGetProposalVotesQueryParams, IGetProposalVotesResult> { private readonly governance; constructor(governance: GovernanceContract); /** * @notice Executes the query to get the proposal votes * @param params The parameters for the query containing proposal ID * @returns The proposal votes breakdown as an object */ execute(params: IGetProposalVotesQueryParams): Promise<IGetProposalVotesResult>; }