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) 817 B
import { IClockQueryParams } from '../../interfaces/queries/params/IClockQueryParams'; import { IBaseQuery } from '../../interfaces/queries/IBaseQuery'; import { GovernanceContract } from '@contracts'; /** * @title Clock Query * @notice Retrieves the current clock value from the Governance contract * @dev Queries the governance contract to get the current timepoint/clock value */ export declare class ClockQuery implements IBaseQuery<IClockQueryParams, bigint> { private readonly governance; constructor(governance: GovernanceContract); /** * @notice Executes the query to get the current clock value * @param params The parameters for the query (empty for clock function) * @returns The current clock value as a bigint */ execute(_?: IClockQueryParams): Promise<bigint>; }