UNPKG

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

Version:

Typescript Library to interact with GDK Contracts

247 lines (246 loc) 9.47 kB
/// <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, ContractEventLog, BaseContract } from "./types"; export interface EventOptions { filter?: object; fromBlock?: BlockType; topics?: string[]; } export type DeployedDAOMemberStorage = ContractEventLog<{ daoMemberStorageProxy_: string; 0: string; 1: string; }>; export type DeployedDAOPanelVoting = ContractEventLog<{ daoPanelVotingProxy_: string; 0: string; 1: string; }>; export type DeployedDAOParameterStorage = ContractEventLog<{ daoParameterStorageProxy_: string; 0: string; 1: string; }>; export type DeployedDAORegistry = ContractEventLog<{ daoRegistryProxy_: string; params_: [ string, string[], string[], string[], string[], [ string, string, string, string, string ], [ [ string, string, string, [ string, [string, string, string, string, string, string] ][] ], [ string, string, string ][], string[] ] ]; 0: string; 1: [ string, string[], string[], string[], string[], [ string, string, string, string, string ], [ [ string, string, string, [ string, [string, string, string, string, string, string] ][] ], [ string, string, string ][], string[] ] ]; }>; export type DeployedDAOVault = ContractEventLog<{ daoVaultProxy_: string; 0: string; 1: string; }>; export type DeployedNativeToken = ContractEventLog<{ nativeTokenProxy_: string; 0: string; 1: string; }>; export type DeployedPermissionManager = ContractEventLog<{ permissionManagerProxy_: string; 0: string; 1: string; }>; export type DeployedTokenFactory = ContractEventLog<{ tokenFactoryProxy_: string; 0: string; 1: string; }>; export type DeployedTokenRegistry = ContractEventLog<{ tokenRegistryProxy_: string; 0: string; 1: string; }>; export type DeployedVotingFactory = ContractEventLog<{ votingFactoryProxy_: string; 0: string; 1: string; }>; export type DeployedVotingRegistry = ContractEventLog<{ votingRegistryProxy_: string; 0: string; 1: string; }>; export interface IMasterDAOFactory extends BaseContract { constructor(jsonInterface: any[], address?: string, options?: ContractOptions): IMasterDAOFactory; clone(): IMasterDAOFactory; methods: { deployDAO(params_: [ string, string[], string[], string[], string[], [ string, string, string, number | string | BN, number | string | BN ], [ [ string, string, string, [ string, [ number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN ] ][] ], [ string, string | number[], number | string | BN ][], string[] ] ]): NonPayableTransactionObject<string>; deployDAOPanel(dao_: string, daoPanelParams_: [ [ string, string, string, [ string, [ number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN ] ][] ], [ string, string | number[], number | string | BN ][], string[] ]): NonPayableTransactionObject<{ 0: string; 1: string; 2: string; }>; }; events: { DeployedDAOMemberStorage(cb?: Callback<DeployedDAOMemberStorage>): EventEmitter; DeployedDAOMemberStorage(options?: EventOptions, cb?: Callback<DeployedDAOMemberStorage>): EventEmitter; DeployedDAOPanelVoting(cb?: Callback<DeployedDAOPanelVoting>): EventEmitter; DeployedDAOPanelVoting(options?: EventOptions, cb?: Callback<DeployedDAOPanelVoting>): EventEmitter; DeployedDAOParameterStorage(cb?: Callback<DeployedDAOParameterStorage>): EventEmitter; DeployedDAOParameterStorage(options?: EventOptions, cb?: Callback<DeployedDAOParameterStorage>): EventEmitter; DeployedDAORegistry(cb?: Callback<DeployedDAORegistry>): EventEmitter; DeployedDAORegistry(options?: EventOptions, cb?: Callback<DeployedDAORegistry>): EventEmitter; DeployedDAOVault(cb?: Callback<DeployedDAOVault>): EventEmitter; DeployedDAOVault(options?: EventOptions, cb?: Callback<DeployedDAOVault>): EventEmitter; DeployedNativeToken(cb?: Callback<DeployedNativeToken>): EventEmitter; DeployedNativeToken(options?: EventOptions, cb?: Callback<DeployedNativeToken>): EventEmitter; DeployedPermissionManager(cb?: Callback<DeployedPermissionManager>): EventEmitter; DeployedPermissionManager(options?: EventOptions, cb?: Callback<DeployedPermissionManager>): EventEmitter; DeployedTokenFactory(cb?: Callback<DeployedTokenFactory>): EventEmitter; DeployedTokenFactory(options?: EventOptions, cb?: Callback<DeployedTokenFactory>): EventEmitter; DeployedTokenRegistry(cb?: Callback<DeployedTokenRegistry>): EventEmitter; DeployedTokenRegistry(options?: EventOptions, cb?: Callback<DeployedTokenRegistry>): EventEmitter; DeployedVotingFactory(cb?: Callback<DeployedVotingFactory>): EventEmitter; DeployedVotingFactory(options?: EventOptions, cb?: Callback<DeployedVotingFactory>): EventEmitter; DeployedVotingRegistry(cb?: Callback<DeployedVotingRegistry>): EventEmitter; DeployedVotingRegistry(options?: EventOptions, cb?: Callback<DeployedVotingRegistry>): EventEmitter; allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter; }; once(event: "DeployedDAOMemberStorage", cb: Callback<DeployedDAOMemberStorage>): void; once(event: "DeployedDAOMemberStorage", options: EventOptions, cb: Callback<DeployedDAOMemberStorage>): void; once(event: "DeployedDAOPanelVoting", cb: Callback<DeployedDAOPanelVoting>): void; once(event: "DeployedDAOPanelVoting", options: EventOptions, cb: Callback<DeployedDAOPanelVoting>): void; once(event: "DeployedDAOParameterStorage", cb: Callback<DeployedDAOParameterStorage>): void; once(event: "DeployedDAOParameterStorage", options: EventOptions, cb: Callback<DeployedDAOParameterStorage>): void; once(event: "DeployedDAORegistry", cb: Callback<DeployedDAORegistry>): void; once(event: "DeployedDAORegistry", options: EventOptions, cb: Callback<DeployedDAORegistry>): void; once(event: "DeployedDAOVault", cb: Callback<DeployedDAOVault>): void; once(event: "DeployedDAOVault", options: EventOptions, cb: Callback<DeployedDAOVault>): void; once(event: "DeployedNativeToken", cb: Callback<DeployedNativeToken>): void; once(event: "DeployedNativeToken", options: EventOptions, cb: Callback<DeployedNativeToken>): void; once(event: "DeployedPermissionManager", cb: Callback<DeployedPermissionManager>): void; once(event: "DeployedPermissionManager", options: EventOptions, cb: Callback<DeployedPermissionManager>): void; once(event: "DeployedTokenFactory", cb: Callback<DeployedTokenFactory>): void; once(event: "DeployedTokenFactory", options: EventOptions, cb: Callback<DeployedTokenFactory>): void; once(event: "DeployedTokenRegistry", cb: Callback<DeployedTokenRegistry>): void; once(event: "DeployedTokenRegistry", options: EventOptions, cb: Callback<DeployedTokenRegistry>): void; once(event: "DeployedVotingFactory", cb: Callback<DeployedVotingFactory>): void; once(event: "DeployedVotingFactory", options: EventOptions, cb: Callback<DeployedVotingFactory>): void; once(event: "DeployedVotingRegistry", cb: Callback<DeployedVotingRegistry>): void; once(event: "DeployedVotingRegistry", options: EventOptions, cb: Callback<DeployedVotingRegistry>): void; }