Type alias: EventProcessor<ABI, ProcessResultType>
EventProcessor: <
ABI
,ProcessResultType
>object
Type parameters
Parameter | Default |
---|---|
ABI extends Abi | - |
ProcessResultType | void |
Type declaration
clear
clear: () =>
Promise
<void
>
Returns
Promise
< void
>
load
load: (
source
,streamConfig
) =>Promise
< {lastSync
:LastSync
<ABI
>;state
:ProcessResultType
;} |undefined
>
Parameters
Parameter | Type |
---|---|
source | IndexingSource < ABI > |
streamConfig | UsedStreamConfig |
Returns
Promise
< {lastSync
: LastSync
< ABI
>; state
: ProcessResultType
;} | undefined
>
process
process: (
eventStream
,lastSync
) =>Promise
<ProcessResultType
>
Parameters
Parameter | Type |
---|---|
eventStream | LogEvent < ABI >[] |
lastSync | LastSync < 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