Skip to content

Documentation / @etherfold/processor-entities / fromEntityProcessor

Function: fromEntityProcessor() ​

fromEntityProcessor<ABI, ProcessorConfig>(processor, options?): (store) => EntityEventProcessor<ABI, ProcessorConfig>

Defined in: packages/processor-entities/src/EntityEventProcessor.ts:319

A factory, so each indexer gets its own instance.

It takes the STORE, because that is the deployment's choice and the whole point: the same left-hand side, a different store, and the processor is untouched.

Type Parameters ​

ABI ​

ABI extends Abi

ProcessorConfig ​

ProcessorConfig = undefined

Parameters ​

processor ​

EntityProcessor<ABI, ProcessorConfig> | (() => EntityProcessor<ABI, ProcessorConfig>)

options? ​

EntityEventProcessorOptions = {}

Returns ​

(store) => EntityEventProcessor<ABI, ProcessorConfig>