UNPKG

@q-dev/q-ts-gdk-sdk

Version:

Typescript Library to interact with GDK Contracts

137 lines (118 loc) 3.25 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type BN from "bn.js"; import type { ContractOptions } from "web3-eth-contract"; import type { EventLog } from "web3-core"; import type { EventEmitter } from "events"; import type { Callback, PayableTransactionObject, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract, } from "./types"; export interface EventOptions { filter?: object; fromBlock?: BlockType; topics?: string[]; } export type ProposalCreated = ContractEventLog<{ id: string; proposal: [ string, string, string, [string, string, string, string, string, string, string], [string, string, string], boolean ]; 0: string; 1: [ string, string, string, [string, string, string, string, string, string, string], [string, string, string], boolean ]; }>; export interface IDAOVoting extends BaseContract { constructor( jsonInterface: any[], address?: string, options?: ContractOptions ): IDAOVoting; clone(): IDAOVoting; methods: { addVotingSituation(situation_: string): NonPayableTransactionObject<void>; checkPermission( member_: string, permission_: string ): NonPayableTransactionObject<boolean>; createDAOVotingSituation( conf_: [ string, [ number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN ] ] ): NonPayableTransactionObject<void>; createProposal( target_: string, situation_: string, remark_: string, callData_: string | number[] ): NonPayableTransactionObject<string>; executeProposal( proposalId_: number | string | BN ): NonPayableTransactionObject<void>; getProposal( proposalId_: number | string | BN ): NonPayableTransactionObject< [ string, string, string, [string, string, string, string, string, string, string], [string, string, string], boolean ] >; getProposalStatus( proposalId_: number | string | BN ): NonPayableTransactionObject<string>; getResource(): NonPayableTransactionObject<string>; getVotingSituations(): NonPayableTransactionObject<string[]>; removeVotingSituation( situation_: string ): NonPayableTransactionObject<void>; veto(proposalId_: number | string | BN): NonPayableTransactionObject<void>; voteAgainst( proposalId_: number | string | BN ): NonPayableTransactionObject<void>; voteFor( proposalId_: number | string | BN ): NonPayableTransactionObject<void>; }; events: { ProposalCreated(cb?: Callback<ProposalCreated>): EventEmitter; ProposalCreated( options?: EventOptions, cb?: Callback<ProposalCreated> ): EventEmitter; allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter; }; once(event: "ProposalCreated", cb: Callback<ProposalCreated>): void; once( event: "ProposalCreated", options: EventOptions, cb: Callback<ProposalCreated> ): void; }