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