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

19 lines (18 loc) 1.02 kB
import { IGetVotesWithParamsQueryParams } from '../../interfaces/queries/params/IGetVotesWithParamsQueryParams'; import { IBaseQuery } from '../../interfaces/queries/IBaseQuery'; import { GovernanceContract } from '@contracts'; /** * @title Get Votes With Params Query * @notice Retrieves the voting power for a given account at a specific timepoint with additional parameters * @dev Queries the governance contract to get the voting power of an account at a historical timepoint with custom parameters */ export declare class GetVotesWithParamsQuery implements IBaseQuery<IGetVotesWithParamsQueryParams, bigint> { private readonly governance; constructor(governance: GovernanceContract); /** * @notice Executes the query to get the voting power with parameters * @param params The parameters for the query containing account address, timepoint and additional params * @returns The voting power as a bigint */ execute(params: IGetVotesWithParamsQueryParams): Promise<bigint>; }