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