@@ -25,8 +25,11 @@ import {
2525 TypedEventRecord ,
2626 SubstrateEvent ,
2727 SecondLayerHandlerProcessor ,
28+ RuntimeHandlerInputMap ,
29+ SubstrateEventFilter ,
30+ SubstrateCallFilter ,
2831} from '@subql/types' ;
29- import { DsProcessor , DictionaryQueryEntry } from '@subql/types-core' ;
32+ import { DsProcessor , DictionaryQueryEntry , SecondLayerHandlerProcessor_1_0_0 } from '@subql/types-core' ;
3033import { plainToClass } from 'class-transformer' ;
3134import {
3235 IsOptional ,
@@ -231,12 +234,16 @@ function buildInterface(ds: FrontierEvmDatasource, assets?: Record<string, strin
231234 return contractInterfaces [ abi ] ;
232235}
233236
234- const EventProcessor : SecondLayerHandlerProcessor <
237+ const EventProcessor : SecondLayerHandlerProcessor_1_0_0 <
235238 SubstrateHandlerKind . Event ,
239+ RuntimeHandlerInputMap ,
240+ {
241+ [ SubstrateHandlerKind . Event ] : SubstrateEventFilter ;
242+ } ,
236243 FrontierEvmEventFilter ,
237244 FrontierEvmEvent ,
238- // [EvmLog] ,
239- FrontierEvmDatasource
245+ FrontierEvmDatasource ,
246+ ApiPromise
240247> = {
241248 specVersion : '1.0.0' ,
242249 baseFilter : [ { module : 'evm' , method : 'Log' } ] ,
@@ -350,12 +357,17 @@ const EventProcessor: SecondLayerHandlerProcessor<
350357 } ,
351358} ;
352359
353- const CallProcessor : SecondLayerHandlerProcessor <
360+ const CallProcessor : SecondLayerHandlerProcessor_1_0_0 <
354361 SubstrateHandlerKind . Call ,
362+ RuntimeHandlerInputMap ,
363+ {
364+ [ SubstrateHandlerKind . Call ] : SubstrateCallFilter ;
365+ } ,
355366 FrontierEvmCallFilter ,
356367 FrontierEvmCall ,
357368 // [TransactionV3 | EthTransaction],
358- FrontierEvmDatasource
369+ FrontierEvmDatasource ,
370+ ApiPromise
359371> = {
360372 specVersion : '1.0.0' ,
361373 baseFilter : [ { module : 'ethereum' , method : 'transact' } ] ,
0 commit comments