Skip to content
On this page

Type alias: EventProcessor<ABI, ProcessResultType>

EventProcessor: <ABI, ProcessResultType> object

Type parameters

ParameterDefault
ABI extends Abi-
ProcessResultTypevoid

Type declaration

clear

clear: () => Promise< void >

Returns

Promise< void >


load

load: (source, streamConfig) => Promise< {lastSync: LastSync< ABI >; state: ProcessResultType;} | undefined >

Parameters

ParameterType
sourceIndexingSource< ABI >
streamConfigUsedStreamConfig

Returns

Promise< {lastSync: LastSync< ABI >; state: ProcessResultType;} | undefined >


process

process: (eventStream, lastSync) => Promise< ProcessResultType >

Parameters

ParameterType
eventStreamLogEvent< ABI >[]
lastSyncLastSync< ABI >

Returns

Promise< ProcessResultType >


reset

reset: () => Promise< void >

Returns

Promise< void >


getVersionHash

getVersionHash

Defined In

packages/ethereum-indexer/src/types.ts:32


Generated using TypeDoc and typedoc-plugin-markdown