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
20 lines (19 loc) • 903 B
TypeScript
import { IGetStateQueryParams } from '../../interfaces/queries/params/IGetStateQueryParams';
import { IBaseQuery } from '../../interfaces/queries/IBaseQuery';
import { GovernanceContract } from '@contracts';
import { ProposalState } from '../../enums/ProposalState';
/**
* @title Get State Query
* @notice Retrieves the current state of a specific proposal
* @dev Queries the governance contract to get the current state of a proposal
*/
export declare class GetStateQuery implements IBaseQuery<IGetStateQueryParams, ProposalState> {
private readonly governance;
constructor(governance: GovernanceContract);
/**
* @notice Executes the query to get the proposal state
* @param params The parameters for the query containing proposal ID
* @returns The proposal state as a ProposalState enum value
*/
execute(params: IGetStateQueryParams): Promise<ProposalState>;
}