@q-dev/q-ts-gdk-sdk
Version:
Typescript Library to interact with GDK Contracts
24 lines (23 loc) • 1.19 kB
TypeScript
/// <reference types="node" />
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, NonPayableTransactionObject, BlockType, BaseContract } from "./types";
export interface EventOptions {
filter?: object;
fromBlock?: BlockType;
topics?: string[];
}
export interface IFactoryDAORegistry extends BaseContract {
constructor(jsonInterface: any[], address?: string, options?: ContractOptions): IFactoryDAORegistry;
clone(): IFactoryDAORegistry;
methods: {
injectDependenciesToExistingPools(name_: string, offset_: number | string | BN, limit_: number | string | BN): NonPayableTransactionObject<void>;
injectDependenciesToExistingPoolsWithData(name_: string, data_: string | number[], offset_: number | string | BN, limit_: number | string | BN): NonPayableTransactionObject<void>;
setNewImplementations(names_: string[], newImplementations_: string[]): NonPayableTransactionObject<void>;
};
events: {
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
};
}