Skip to content

Documentation / @etherfold/processor-entities / EventHandlers

Type Alias: EventHandlers<ABI, ProcessorConfig> ​

EventHandlers<ABI, ProcessorConfig> = { [Property in ExtractAbiEventNames<ABI> as `on${Property}`]?: (state: MutationContext, event: LogEvent<ABI> & { args: InputValues<ExtractAbiEvent<ABI, Property>> }, config: ProcessorConfig) => Promise<void> | void }

Defined in: packages/processor-entities/src/types.ts:38

on<EventName> handlers, typed off the ABI.

Type Parameters ​

ABI ​

ABI extends Abi

ProcessorConfig ​

ProcessorConfig = undefined