UNPKG

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

Version:

Typescript Library to interact with GDK Contracts

23 lines (22 loc) 945 B
/// <reference types="node" /> import type { ContractOptions } from "web3-eth-contract"; import type { EventLog } from "web3-core"; import type { EventEmitter } from "events"; import type { Callback, NonPayableTransactionObject, BlockType, BaseContract } from "./types"; export interface EventOptions { filter?: object; fromBlock?: BlockType; topics?: string[]; } export interface AbstractDependant extends BaseContract { constructor(jsonInterface: any[], address?: string, options?: ContractOptions): AbstractDependant; clone(): AbstractDependant; methods: { getInjector(): NonPayableTransactionObject<string>; setDependencies(contractsRegistry_: string, data_: string | number[]): NonPayableTransactionObject<void>; setInjector(injector_: string): NonPayableTransactionObject<void>; }; events: { allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter; }; }