@ardier16/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
19 lines (18 loc) • 974 B
TypeScript
import Web3 from 'web3';
import { BaseVotingWeightInfo } from '../types';
import { IQthVoting } from '../web3-contracts/IQthVoting';
import { SystemContractInstance } from './SystemContractInstance';
import { VotingWeightProxyInstance } from './governance/VotingWeightProxyInstance';
export interface VotingWeightInfo {
hasAlreadyVoted: boolean;
canVote: boolean;
base: BaseVotingWeightInfo;
}
/**
* QthVoting interface to interact with QthVoting implementation contracts.
* See [onchain documentation](@system-contracts-repo/@network/IQthVoting/) for more details.
*/
export declare class QthVotingHelperInstance<T extends IQthVoting> extends SystemContractInstance<T> {
constructor(web3: Web3, abi: string, address: string);
getVotingWeightInfo(votingWeightProxy: VotingWeightProxyInstance, proposalId: string | number, address: string, hasUserVoted: (proposalId: string | number, address: string) => Promise<boolean>): Promise<VotingWeightInfo>;
}