Skip to content
On this page

Class: JSObjectEventProcessor<ABI, ProcessResultType, ProcessorConfig>

Implements

Constructors

new JSObjectEventProcessor

new JSObjectEventProcessor<ABI, ProcessResultType, ProcessorConfig>(singleEventProcessor): JSObjectEventProcessor< ABI, ProcessResultType, ProcessorConfig >

Type parameters

ParameterDefault
ABI extends readonly (AbiEvent | AbiConstructor | AbiError | AbiFallback | AbiFunction | AbiReceive)[]-
ProcessResultType extends JSObject-
ProcessorConfigundefined

Parameters

ParameterType
singleEventProcessorSingleEventJSONProcessor< 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

ParameterType
configProcessorConfig

Returns

void

Implementation of

EventProcessorWithInitialState.configure

Defined In

packages/ethereum-indexer-js-processor/src/processor/JSObjectEventProcessor.ts:76


copyFrom

copyFrom(otherProcessor): void

Parameters

ParameterType
otherProcessorJSObjectEventProcessor< 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

ParameterType
keeperKeepState< 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

ParameterType
sourceIndexingSource< ABI >
streamConfigUsedStreamConfig

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

ParameterType
eventStreamLogEvent< ABI, undefined >[]
lastSyncLastSync< 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