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) • 883 B
TypeScript
import { IBallotTypeHashQueryParams } from '../../interfaces/queries/params/IBallotTypeHashQueryParams';
import { IBaseQuery } from '../../interfaces/queries/IBaseQuery';
import { GovernanceContract } from '@contracts';
/**
* @title Ballot Type Hash Query
* @notice Retrieves the ballot type hash from the Governance contract
* @dev Queries the governance contract to get the BALLOT_TYPEHASH for EIP-712 signatures
*/
export declare class BallotTypeHashQuery implements IBaseQuery<IBallotTypeHashQueryParams, string> {
private readonly governance;
constructor(governance: GovernanceContract);
/**
* @notice Executes the query to get the ballot type hash
* @param params The parameters for the query (empty for BALLOT_TYPEHASH function)
* @returns The ballot type hash as a string
*/
execute(_?: IBallotTypeHashQueryParams): Promise<string>;
}