@ardier16/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
53 lines (43 loc) • 1.25 kB
TypeScript
/* 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 interface IExperts extends BaseContract {
constructor(
jsonInterface: any[],
address?: string,
options?: ContractOptions
): IExperts;
clone(): IExperts;
methods: {
addMember(_exp: string): NonPayableTransactionObject<void>;
getLimit(): NonPayableTransactionObject<string>;
getMembers(): NonPayableTransactionObject<string[]>;
getSize(): NonPayableTransactionObject<string>;
isMember(_exp: string): NonPayableTransactionObject<boolean>;
removeMember(_exp: string): NonPayableTransactionObject<void>;
swapMember(
_oldExp: string,
_newExp: string
): NonPayableTransactionObject<void>;
};
events: {
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
};
}