UNPKG

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

Version:

Typescript Library to interact with GDK Contracts

137 lines (119 loc) 3.44 kB
/* 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 AddedToGroups = ContractEventLog<{ who: string; groupsToAddTo: string[]; 0: string; 1: string[]; }>; export type GrantedGroupRoles = ContractEventLog<{ groupTo: string; rolesToGrant: string[]; 0: string; 1: string[]; }>; export type RemovedFromGroups = ContractEventLog<{ who: string; groupsToRemoveFrom: string[]; 0: string; 1: string[]; }>; export type RevokedGroupRoles = ContractEventLog<{ groupFrom: string; rolesToRevoke: string[]; 0: string; 1: string[]; }>; export interface IRBACGroupable extends BaseContract { constructor( jsonInterface: any[], address?: string, options?: ContractOptions ): IRBACGroupable; clone(): IRBACGroupable; methods: { addUserToGroups( who_: string, groupsToAddTo_: string[] ): NonPayableTransactionObject<void>; getGroupRoles(group_: string): NonPayableTransactionObject<string[]>; getUserGroups(who_: string): NonPayableTransactionObject<string[]>; grantGroupRoles( groupTo_: string, rolesToGrant_: string[] ): NonPayableTransactionObject<void>; removeUserFromGroups( who_: string, groupsToRemoveFrom_: string[] ): NonPayableTransactionObject<void>; revokeGroupRoles( groupFrom_: string, rolesToRevoke_: string[] ): NonPayableTransactionObject<void>; }; events: { AddedToGroups(cb?: Callback<AddedToGroups>): EventEmitter; AddedToGroups( options?: EventOptions, cb?: Callback<AddedToGroups> ): EventEmitter; GrantedGroupRoles(cb?: Callback<GrantedGroupRoles>): EventEmitter; GrantedGroupRoles( options?: EventOptions, cb?: Callback<GrantedGroupRoles> ): EventEmitter; RemovedFromGroups(cb?: Callback<RemovedFromGroups>): EventEmitter; RemovedFromGroups( options?: EventOptions, cb?: Callback<RemovedFromGroups> ): EventEmitter; RevokedGroupRoles(cb?: Callback<RevokedGroupRoles>): EventEmitter; RevokedGroupRoles( options?: EventOptions, cb?: Callback<RevokedGroupRoles> ): EventEmitter; allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter; }; once(event: "AddedToGroups", cb: Callback<AddedToGroups>): void; once( event: "AddedToGroups", options: EventOptions, cb: Callback<AddedToGroups> ): void; once(event: "GrantedGroupRoles", cb: Callback<GrantedGroupRoles>): void; once( event: "GrantedGroupRoles", options: EventOptions, cb: Callback<GrantedGroupRoles> ): void; once(event: "RemovedFromGroups", cb: Callback<RemovedFromGroups>): void; once( event: "RemovedFromGroups", options: EventOptions, cb: Callback<RemovedFromGroups> ): void; once(event: "RevokedGroupRoles", cb: Callback<RevokedGroupRoles>): void; once( event: "RevokedGroupRoles", options: EventOptions, cb: Callback<RevokedGroupRoles> ): void; }