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) • 874 B
TypeScript
import { IProposalSnapshotQueryParams } from '../../interfaces/queries/params/IProposalSnapshotQueryParams';
import { IBaseQuery } from '../../interfaces/queries/IBaseQuery';
import { GovernanceContract } from '@contracts';
/**
* @title Proposal Snapshot Query
* @notice Retrieves the snapshot for a specific proposal
* @dev Queries the governance contract to get the snapshot block/timestamp for a proposal
*/
export declare class ProposalSnapshotQuery implements IBaseQuery<IProposalSnapshotQueryParams, bigint> {
private readonly governance;
constructor(governance: GovernanceContract);
/**
* @notice Executes the query to get the proposal snapshot
* @param params The parameters for the query containing proposal ID
* @returns The proposal snapshot as a bigint
*/
execute(params: IProposalSnapshotQueryParams): Promise<bigint>;
}