Class: JSObjectEventProcessor<ABI, ProcessResultType, ProcessorConfig>
Implements
EventProcessorWithInitialState
<ABI
,ProcessResultType
,ProcessorConfig
>
Constructors
new JSObjectEventProcessor
new JSObjectEventProcessor<
ABI
,ProcessResultType
,ProcessorConfig
>(singleEventProcessor
):JSObjectEventProcessor
<ABI
,ProcessResultType
,ProcessorConfig
>
Type parameters
Parameter | Default |
---|---|
ABI extends readonly (AbiEvent | AbiConstructor | AbiError | AbiFallback | AbiFunction | AbiReceive )[] | - |
ProcessResultType extends JSObject | - |
ProcessorConfig | undefined |
Parameters
Parameter | Type |
---|---|
singleEventProcessor | SingleEventJSONProcessor < ABI , ProcessResultType , ProcessorConfig > |
Returns
JSObjectEventProcessor
< ABI
, ProcessResultType
, ProcessorConfig
>
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:42
Properties
_json
protected
_json:Partial
<AllData
<ABI
,ProcessResultType
, {history
:HistoryJSObject
;} > >
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:34
config
protected
config:undefined
|ProcessorConfig
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:38
configHash
protected
configHash:undefined
|string
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:40
finality
protected
finality:undefined
|number
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:41
history
protected
history:History
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:35
keeper
protected
optional
keeper:KeepState
<ABI
,ProcessResultType
, {history
:HistoryJSObject
;},ProcessorConfig
>
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:36
singleEventProcessor
private
singleEventProcessor:SingleEventJSONProcessor
<ABI
,ProcessResultType
,ProcessorConfig
>
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:42
source
protected
source:undefined
|IndexingSource
<ABI
>
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:37
version
protected
version:undefined
|string
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:39
Methods
clear
clear():
Promise
<void
>
Returns
Promise
< void
>
Implementation of
EventProcessorWithInitialState.clear
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:114
configure
configure(
config
):void
Parameters
Parameter | Type |
---|---|
config | ProcessorConfig |
Returns
void
Implementation of
EventProcessorWithInitialState.configure
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:76
copyFrom
copyFrom(
otherProcessor
):void
Parameters
Parameter | Type |
---|---|
otherProcessor | JSObjectEventProcessor < ABI , ProcessResultType , ProcessorConfig > |
Returns
void
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:57
createInitialState
createInitialState():
ProcessResultType
Returns
ProcessResultType
Implementation of
EventProcessorWithInitialState.createInitialState
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:72
getVersionHash
getVersionHash():
string
Returns
string
Implementation of
EventProcessorWithInitialState.getVersionHash
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:68
keepState
keepState(
keeper
):void
Parameters
Parameter | Type |
---|---|
keeper | KeepState < ABI , ProcessResultType , {history : HistoryJSObject ;}, ProcessorConfig > |
Returns
void
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:82
load
load(
source
,streamConfig
):Promise
<undefined
| {lastSync
:LastSync
<ABI
>;state
:ProcessResultType
;} >
Parameters
Parameter | Type |
---|---|
source | IndexingSource < ABI > |
streamConfig | UsedStreamConfig |
Returns
Promise
< undefined
| {lastSync
: LastSync
< ABI
>; state
: ProcessResultType
;} >
Implementation of
EventProcessorWithInitialState.load
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:125
process
process(
eventStream
,lastSync
):Promise
<ProcessResultType
>
Parameters
Parameter | Type |
---|---|
eventStream | LogEvent < ABI , undefined >[] |
lastSync | LastSync < ABI > |
Returns
Promise
< ProcessResultType
>
Implementation of
EventProcessorWithInitialState.process
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:169
reset
reset():
Promise
<void
>
Returns
Promise
< void
>
Implementation of
EventProcessorWithInitialState.reset
Defined In
packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:86
Generated using TypeDoc and typedoc-plugin-markdown