Skip to content

Documentation / @etherfold/processor-entities / runBlockHandlers

Function: runBlockHandlers() ​

runBlockHandlers<ABI, ProcessorConfig>(store, processor, events, config): Promise<Mutation[]>

Defined in: packages/processor-entities/src/apply.ts:22

Run the author's handlers over ONE block's events, collecting the mutations.

The staging area is what gives read-your-writes inside the block, and the result is coalesced per business key: see createMutationContext.

Type Parameters ​

ABI ​

ABI extends Abi

ProcessorConfig ​

ProcessorConfig

Parameters ​

store ​

StateStore

processor ​

EntityProcessor<ABI, ProcessorConfig>

events ​

readonly LogEvent<ABI>[]

config ​

ProcessorConfig

Returns ​

Promise<Mutation[]>