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) 860 B
import { IGetQuorumQueryParams } from '../../interfaces/queries/params/IGetQuorumQueryParams'; import { IBaseQuery } from '../../interfaces/queries/IBaseQuery'; import { GovernanceContract } from '@contracts'; /** * @title Get Quorum Query * @notice Retrieves the quorum for a specific block number * @dev Queries the governance contract to get the minimum voting power required for a proposal to pass */ export declare class GetQuorumQuery implements IBaseQuery<IGetQuorumQueryParams, bigint> { private readonly governance; constructor(governance: GovernanceContract); /** * @notice Executes the query to get the quorum for a specific block number * @param params The parameters for the query containing block number * @returns The quorum value as a bigint */ execute(params: IGetQuorumQueryParams): Promise<bigint>; }