Constructors
constructor
- new Base(web3: default, _fromAddress: string, factoryContract: any, contractName: BaseContracts, contractAbi: any[]): Base
-
Parameters
-
web3: default
-
_fromAddress: string
-
factoryContract: any
-
-
contractAbi: any[]
Properties
contract
contract: any = null
Protected contractAbi
contractAbi: any[]
Protected factoryContract
factoryContract: any
Protected web3
web3: default
Accessors
fromAddress
- get fromAddress(): string
Methods
ensureContract
- ensureContract(): Promise<any>
getContractAddress
- getContractAddress(): Promise<any>
getPastEvents
- getPastEvents<T>(eventName: string, filter?: object, includeBlockData?: boolean): Promise<T[]>
-
Type parameters
Parameters
-
eventName: string
-
filter: object = {}
-
includeBlockData: boolean = false
Returns Promise<T[]>
getRawPastEvents
- getRawPastEvents(eventName: string, filter?: object): Promise<default[]>
-
Parameters
-
eventName: string
-
filter: object = {}
Returns Promise<default[]>