@q-dev/q-ts-gdk-sdk
Version:
Typescript Library to interact with GDK Contracts
31 lines (30 loc) • 1.77 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 IDAOParameterStorage extends BaseContract {
constructor(jsonInterface: any[], address?: string, options?: ContractOptions): IDAOParameterStorage;
clone(): IDAOParameterStorage;
methods: {
changeDAOParameter(parameter_: [string, string | number[], number | string | BN]): NonPayableTransactionObject<void>;
changeDAOParameters(parameters_: [string, string | number[], number | string | BN][]): NonPayableTransactionObject<void>;
checkPermission(member_: string, permission_: string): NonPayableTransactionObject<boolean>;
getDAOParameter(parameterName_: string): NonPayableTransactionObject<[string, string, string]>;
getDAOParameters(): NonPayableTransactionObject<[string, string, string][]>;
getResource(): NonPayableTransactionObject<string>;
removeDAOParameter(parameterName_: string): NonPayableTransactionObject<void>;
removeDAOParameters(parameterNames_: string[]): NonPayableTransactionObject<void>;
setDAOParameter(parameter_: [string, string | number[], number | string | BN]): NonPayableTransactionObject<void>;
setDAOParameters(parameters_: [string, string | number[], number | string | BN][]): NonPayableTransactionObject<void>;
};
events: {
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
};
}