Skip to content

Documentation / @etherfold/js-processor / EventFunctions

Type Alias: EventFunctions<ABI, ProcessResultType, ProcessorConfig>

EventFunctions<ABI, ProcessResultType, ProcessorConfig> = { [Property in ExtractAbiEventNames<ABI> as `on${Property}`]?: ProcessorConfig extends undefined ? (json: ProcessResultType, event: LogEvent<ABI> & { args: InputValues<ExtractAbiEvent<ABI, Property>> }) => void : (json: ProcessResultType, event: LogEvent<ABI> & { args: InputValues<ExtractAbiEvent<ABI, Property>> }, config: ProcessorConfig) => Promise<void> | void }

Defined in: js-processor/src/processor/types.ts:24

Type Parameters

ABI

ABI extends Abi

ProcessResultType

ProcessResultType extends JSObject

ProcessorConfig

ProcessorConfig = undefined