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) • 873 B
TypeScript
import { IGetVotesQueryParams } from '../../interfaces/queries/params/IGetVotesQueryParams';
import { IBaseQuery } from '../../interfaces/queries/IBaseQuery';
import { GovernanceContract } from '@contracts';
/**
* @title Get Votes Query
* @notice Retrieves the voting power for a given account at a specific block number
* @dev Queries the governance contract to get the voting power of an account at a historical block
*/
export declare class GetVotesQuery implements IBaseQuery<IGetVotesQueryParams, bigint> {
private readonly governance;
constructor(governance: GovernanceContract);
/**
* @notice Executes the query to get the voting power
* @param params The parameters for the query containing account address and block number
* @returns The voting power as a bigint
*/
execute(params: IGetVotesQueryParams): Promise<bigint>;
}