UNPKG

@ardier16/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

66 lines (57 loc) 1.52 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import BN from "bn.js"; import { ContractOptions } from "web3-eth-contract"; import { EventLog } from "web3-core"; import { EventEmitter } from "events"; import { Callback, PayableTransactionObject, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract, } from "./types"; interface EventOptions { filter?: object; fromBlock?: BlockType; topics?: string[]; } export type VetoOccurred = ContractEventLog<{ id: string; sender: string; 0: string; 1: string; }>; export interface IVetoable extends BaseContract { constructor( jsonInterface: any[], address?: string, options?: ContractOptions ): IVetoable; clone(): IVetoable; methods: { veto(_proposalId: number | string | BN): NonPayableTransactionObject<void>; getVetosNumber( _proposalId: number | string | BN ): NonPayableTransactionObject<string>; getVetosPercentage( _proposalId: number | string | BN ): NonPayableTransactionObject<string>; }; events: { VetoOccurred(cb?: Callback<VetoOccurred>): EventEmitter; VetoOccurred( options?: EventOptions, cb?: Callback<VetoOccurred> ): EventEmitter; allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter; }; once(event: "VetoOccurred", cb: Callback<VetoOccurred>): void; once( event: "VetoOccurred", options: EventOptions, cb: Callback<VetoOccurred> ): void; }