Class BaseProcessorTemplate<TContract, TBoundContractView>Abstract
Constructors
Properties
binds
binds: Set<string> = ...
Methods
Protected
Abstract
bindInternal
onBlockInterval
- onBlockInterval(
handler: (
block: BlockParams,
ctx: ContractContext<TContract, TBoundContractView>,
) => PromiseOrVoid,
blockInterval?: number,
backfillBlockInterval?: number,
fetchConfig?: EthFetchConfig,
preprocessHandler?: (
block: BlockParams,
ctx: ContractContext<TContract, TBoundContractView>,
preprocessStore: { [k: string]: any },
) => Promise<PreprocessResult>,
): BaseProcessorTemplate<TContract, TBoundContractView>
Protected
onEthEvent
- onEthEvent(
handler: (
event: TypedEvent<any, any>,
ctx: ContractContext<TContract, TBoundContractView>,
) => PromiseOrVoid,
filter: DeferredTopicFilter | DeferredTopicFilter[],
fetchConfig?: Partial<EthFetchConfig>,
preprocessHandler?: (
event: TypedEvent<any, any>,
ctx: ContractContext<TContract, TBoundContractView>,
preprocessStore: { [k: string]: any },
) => Promise<PreprocessResult>,
): BaseProcessorTemplate<TContract, TBoundContractView>
onInterval
- onInterval(
handler: (
block: BlockParams,
ctx: ContractContext<TContract, TBoundContractView>,
) => PromiseOrVoid,
timeInterval: undefined | HandleInterval,
blockInterval: undefined | HandleInterval,
fetchConfig: undefined | EthFetchConfig,
preprocessHandler?: (
block: BlockParams,
ctx: ContractContext<TContract, TBoundContractView>,
preprocessStore: { [k: string]: any },
) => Promise<PreprocessResult>,
): BaseProcessorTemplate<TContract, TBoundContractView>
onTimeInterval
- onTimeInterval(
handler: (
block: BlockParams,
ctx: ContractContext<TContract, TBoundContractView>,
) => PromiseOrVoid,
timeIntervalInMinutes?: number,
backfillBlockInterval?: number,
fetchConfig?: EthFetchConfig,
preprocessHandler?: (
block: BlockParams,
ctx: ContractContext<TContract, TBoundContractView>,
preprocessStore: { [k: string]: any },
) => Promise<PreprocessResult>,
): BaseProcessorTemplate<TContract, TBoundContractView>
onTrace
- onTrace(
signature: string,
handler: (
trace: TypedCallTrace<any, any>,
ctx: ContractContext<TContract, TBoundContractView>,
) => PromiseOrVoid,
fetchConfig?: Partial<EthFetchConfig>,
preprocessHandler?: (
trace: TypedCallTrace<any, any>,
ctx: ContractContext<TContract, TBoundContractView>,
preprocessStore: { [k: string]: any },
) => Promise<PreprocessResult>,
): BaseProcessorTemplate<TContract, TBoundContractView>
Bind template using {@param options}, using {@param ctx}'s network value if not provided in the option