@q-dev/q-ts-gdk-sdk
Version:
Typescript Library to interact with GDK Contracts
110 lines (87 loc) • 2.91 kB
text/typescript
/* 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 Initialized = ContractEventLog<{
version: string;
0: string;
}>;
export interface DAOParameterStorage extends BaseContract {
constructor(
jsonInterface: any[],
address?: string,
options?: ContractOptions
): DAOParameterStorage;
clone(): DAOParameterStorage;
methods: {
DAO_PARAMETER_STORAGE_RESOURCE(): NonPayableTransactionObject<string>;
__DAOParameterStorage_init(
resource_: string
): NonPayableTransactionObject<void>;
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][]>;
getInjector(): NonPayableTransactionObject<string>;
getResource(): NonPayableTransactionObject<string>;
permissionManager(): 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>;
setDependencies(
registryAddress_: string,
arg1: string | number[]
): NonPayableTransactionObject<void>;
setInjector(injector_: string): NonPayableTransactionObject<void>;
votingType(): NonPayableTransactionObject<string>;
};
events: {
Initialized(cb?: Callback<Initialized>): EventEmitter;
Initialized(
options?: EventOptions,
cb?: Callback<Initialized>
): EventEmitter;
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
};
once(event: "Initialized", cb: Callback<Initialized>): void;
once(
event: "Initialized",
options: EventOptions,
cb: Callback<Initialized>
): void;
}