@sentio/sdk 2.16.2-rc.1 → 2.16.2-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/lib/aptos/aptos-processor.d.ts +3 -2
  2. package/lib/aptos/aptos-processor.js +22 -23
  3. package/lib/aptos/aptos-processor.js.map +1 -1
  4. package/lib/eth/base-processor-template.d.ts +1 -1
  5. package/lib/eth/base-processor-template.js +5 -3
  6. package/lib/eth/base-processor-template.js.map +1 -1
  7. package/lib/eth/base-processor.d.ts +4 -4
  8. package/lib/eth/base-processor.js +17 -17
  9. package/lib/eth/base-processor.js.map +1 -1
  10. package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +31 -31
  11. package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
  12. package/lib/eth/builtin/internal/erc1155-processor.js +16 -16
  13. package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
  14. package/lib/eth/builtin/internal/erc20-processor.js +24 -24
  15. package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
  16. package/lib/eth/builtin/internal/erc20bytes-processor.js +13 -13
  17. package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
  18. package/lib/eth/builtin/internal/erc721-processor.js +20 -20
  19. package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
  20. package/lib/eth/builtin/internal/weth9-processor.js +19 -19
  21. package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
  22. package/lib/eth/codegen/ethers-sentio.js +11 -11
  23. package/lib/eth/codegen/ethers-sentio.js.map +1 -1
  24. package/lib/eth/codegen/event-handler.js +1 -1
  25. package/lib/eth/codegen/event-handler.js.map +1 -1
  26. package/lib/eth/codegen/functions-handler.js +1 -1
  27. package/lib/eth/codegen/functions-handler.js.map +1 -1
  28. package/lib/eth/generic-processor.test.js.map +1 -1
  29. package/lib/sui/sui-processor.d.ts +5 -3
  30. package/lib/sui/sui-processor.js +24 -2
  31. package/lib/sui/sui-processor.js.map +1 -1
  32. package/package.json +3 -3
  33. package/src/aptos/aptos-processor.ts +38 -51
  34. package/src/eth/base-processor-template.ts +5 -3
  35. package/src/eth/base-processor.ts +25 -25
  36. package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +31 -31
  37. package/src/eth/builtin/internal/erc1155-processor.ts +16 -16
  38. package/src/eth/builtin/internal/erc20-processor.ts +24 -24
  39. package/src/eth/builtin/internal/erc20bytes-processor.ts +13 -13
  40. package/src/eth/builtin/internal/erc721-processor.ts +20 -20
  41. package/src/eth/builtin/internal/weth9-processor.ts +19 -19
  42. package/src/eth/codegen/ethers-sentio.ts +11 -11
  43. package/src/eth/codegen/event-handler.ts +1 -1
  44. package/src/eth/codegen/functions-handler.ts +1 -1
  45. package/src/sui/sui-processor.ts +44 -4
@@ -60,44 +60,6 @@ export class AptosBaseProcessor {
60
60
  // this.loadTypes(this.coder)
61
61
  }
62
62
 
63
- // getABI(): MoveModule | undefined {
64
- // return undefined
65
- // }
66
-
67
- public onTransaction(
68
- handler: (transaction: Transaction_UserTransaction, ctx: AptosContext) => PromiseOrVoid,
69
- includedFailed = false,
70
- fetchConfig?: Partial<MoveFetchConfig>
71
- ): this {
72
- const _fetchConfig = MoveFetchConfig.fromPartial({ ...DEFAULT_FETCH_CONFIG, ...fetchConfig })
73
-
74
- // const address = this.config.address
75
- // const moduleName = this.moduleName
76
- const processor = this
77
- this.callHandlers.push({
78
- handler: async function (data) {
79
- if (!data.transaction) {
80
- throw new ServerError(Status.INVALID_ARGUMENT, 'call is null')
81
- }
82
- const call = data.transaction as Transaction_UserTransaction
83
- const ctx = new AptosContext(
84
- processor.moduleName,
85
- processor.config.network,
86
- processor.config.address,
87
- BigInt(data.transaction.version),
88
- call,
89
- 0,
90
- processor.config.baseLabels
91
- )
92
- await handler(call, ctx)
93
- return ctx.getProcessResult()
94
- },
95
- filters: [{ function: '', includeFailed: includedFailed }],
96
- fetchConfig: _fetchConfig,
97
- })
98
- return this
99
- }
100
-
101
63
  public onMoveEvent(
102
64
  handler: (event: Event, ctx: AptosContext) => void,
103
65
  filter: EventFilter | EventFilter[],
@@ -157,7 +119,7 @@ export class AptosBaseProcessor {
157
119
  return this
158
120
  }
159
121
 
160
- public onEntryFunctionCall(
122
+ protected onEntryFunctionCall(
161
123
  handler: (call: TransactionPayload_EntryFunctionPayload, ctx: AptosContext) => PromiseOrVoid,
162
124
  filter: FunctionNameAndCallFilter | FunctionNameAndCallFilter[],
163
125
  fetchConfig?: Partial<MoveFetchConfig>
@@ -204,21 +166,46 @@ export class AptosBaseProcessor {
204
166
  return this
205
167
  }
206
168
 
169
+ public onTransaction(
170
+ handler: (transaction: Transaction_UserTransaction, ctx: AptosContext) => PromiseOrVoid,
171
+ includedFailed = false,
172
+ fetchConfig?: Partial<MoveFetchConfig>
173
+ ): this {
174
+ const _fetchConfig = MoveFetchConfig.fromPartial({ ...DEFAULT_FETCH_CONFIG, ...fetchConfig })
175
+
176
+ const processor = this
177
+ this.callHandlers.push({
178
+ handler: async function (data) {
179
+ if (!data.transaction) {
180
+ throw new ServerError(Status.INVALID_ARGUMENT, 'call is null')
181
+ }
182
+ const call = data.transaction as Transaction_UserTransaction
183
+ const ctx = new AptosContext(
184
+ processor.moduleName,
185
+ processor.config.network,
186
+ processor.config.address,
187
+ BigInt(data.transaction.version),
188
+ call,
189
+ 0,
190
+ processor.config.baseLabels
191
+ )
192
+ await handler(call, ctx)
193
+ return ctx.getProcessResult()
194
+ },
195
+ filters: [{ function: '', includeFailed: includedFailed }],
196
+ fetchConfig: _fetchConfig,
197
+ })
198
+ return this
199
+ }
200
+
201
+ public onEvent(handler: (event: Event, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): this {
202
+ this.onMoveEvent(handler, { type: '' }, fetchConfig)
203
+ return this
204
+ }
205
+
207
206
  getChainId(): string {
208
207
  return this.config.network
209
208
  }
210
-
211
- // loadTypes(registry: MoveCoder) {
212
- // if (registry.contains(this.config.address, this.moduleName)) {
213
- // return
214
- // }
215
- // this.loadTypesInternal(registry)
216
- // }
217
- //
218
- // protected loadTypesInternal(registry: MoveCoder) {
219
- // // should be override by subclass
220
- // console.log('')
221
- // }
222
209
  }
223
210
 
224
211
  export class AptosAccountProcessorState extends ListStateStorage<AptosResourcesProcessor> {
@@ -64,10 +64,12 @@ export abstract class BaseProcessorTemplate<
64
64
  const processor = this.bindInternal(options)
65
65
 
66
66
  for (const eh of this.eventHandlers) {
67
- processor.onEvent(eh.handler, eh.filter, eh.fetchConfig)
67
+ // @ts-ignore friendly
68
+ processor.onEthEvent(eh.handler, eh.filter, eh.fetchConfig)
68
69
  }
69
70
  for (const th of this.traceHandlers) {
70
- processor.onTrace(th.signature, th.handler, th.fetchConfig)
71
+ // @ts-ignore friendly
72
+ processor.onEthTrace(th.signature, th.handler, th.fetchConfig)
71
73
  }
72
74
  for (const bh of this.blockHandlers) {
73
75
  processor.onInterval(bh.handler, bh.timeIntervalInMinutes, bh.blockInterval, bh.fetchConfig)
@@ -94,7 +96,7 @@ export abstract class BaseProcessorTemplate<
94
96
  ctx._res.states.configUpdated = true
95
97
  }
96
98
 
97
- public onEvent(
99
+ protected onEthEvent(
98
100
  handler: (event: TypedEvent, ctx: ContractContext<TContract, TBoundContractView>) => PromiseOrVoid,
99
101
  filter: DeferredTopicFilter | DeferredTopicFilter[],
100
102
  fetchConfig?: Partial<EthFetchConfig>
@@ -204,6 +204,28 @@ export abstract class BaseProcessor<
204
204
  }
205
205
 
206
206
  public onEvent(
207
+ handler: (event: TypedEvent, ctx: ContractContext<TContract, TBoundContractView>) => PromiseOrVoid,
208
+ fetchConfig?: Partial<EthFetchConfig>
209
+ ): this {
210
+ const _filters: DeferredTopicFilter[] = []
211
+ const tmpContract = this.CreateBoundContractView()
212
+
213
+ for (const fragment of tmpContract.rawContract.interface.fragments) {
214
+ if (fragment.type === 'event') {
215
+ const filter = tmpContract.rawContract.filters[fragment.format()]
216
+ _filters.push(filter())
217
+ }
218
+ }
219
+ return this.onEthEvent(
220
+ function (log, ctx) {
221
+ return handler(log, ctx)
222
+ },
223
+ _filters,
224
+ fetchConfig
225
+ )
226
+ }
227
+
228
+ protected onEthEvent(
207
229
  handler: (event: TypedEvent, ctx: ContractContext<TContract, TBoundContractView>) => PromiseOrVoid,
208
230
  filter: DeferredTopicFilter | DeferredTopicFilter[],
209
231
  fetchConfig?: Partial<EthFetchConfig>
@@ -325,29 +347,7 @@ export abstract class BaseProcessor<
325
347
  return this
326
348
  }
327
349
 
328
- public onAllEvents(
329
- handler: (event: TypedEvent, ctx: ContractContext<TContract, TBoundContractView>) => PromiseOrVoid,
330
- fetchConfig?: Partial<EthFetchConfig>
331
- ): this {
332
- const _filters: DeferredTopicFilter[] = []
333
- const tmpContract = this.CreateBoundContractView()
334
-
335
- for (const fragment of tmpContract.rawContract.interface.fragments) {
336
- if (fragment.type === 'event') {
337
- const filter = tmpContract.rawContract.filters[fragment.format()]
338
- _filters.push(filter())
339
- }
340
- }
341
- return this.onEvent(
342
- function (log, ctx) {
343
- return handler(log, ctx)
344
- },
345
- _filters,
346
- fetchConfig
347
- )
348
- }
349
-
350
- public onTrace(
350
+ protected onEthTrace(
351
351
  signatures: string | string[],
352
352
  handler: (trace: TypedCallTrace, ctx: ContractContext<TContract, TBoundContractView>) => PromiseOrVoid,
353
353
  fetchConfig?: Partial<EthFetchConfig>
@@ -409,7 +409,7 @@ export abstract class BaseProcessor<
409
409
  return this
410
410
  }
411
411
 
412
- public onAllTraces(
412
+ public onTrace(
413
413
  handler: (event: TypedCallTrace, ctx: ContractContext<TContract, TBoundContractView>) => PromiseOrVoid,
414
414
  fetchConfig?: Partial<EthFetchConfig>
415
415
  ): this {
@@ -424,7 +424,7 @@ export abstract class BaseProcessor<
424
424
  sighashes.push(sighash)
425
425
  }
426
426
  }
427
- return this.onTrace(
427
+ return this.onEthTrace(
428
428
  sighashes,
429
429
  function (trace, ctx) {
430
430
  return handler(trace, ctx)
@@ -620,7 +620,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
620
620
  "AnswerUpdated(int256,uint256,uint256)"
621
621
  ](null, null, null);
622
622
  }
623
- return super.onEvent(handler, filter!, fetchConfig);
623
+ return super.onEthEvent(handler, filter!, fetchConfig);
624
624
  }
625
625
 
626
626
  onEventNewRound(
@@ -635,7 +635,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
635
635
  null
636
636
  );
637
637
  }
638
- return super.onEvent(handler, filter!, fetchConfig);
638
+ return super.onEthEvent(handler, filter!, fetchConfig);
639
639
  }
640
640
 
641
641
  onEventOwnershipTransferRequested(
@@ -653,7 +653,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
653
653
  "OwnershipTransferRequested(address,address)"
654
654
  ](null, null);
655
655
  }
656
- return super.onEvent(handler, filter!, fetchConfig);
656
+ return super.onEthEvent(handler, filter!, fetchConfig);
657
657
  }
658
658
 
659
659
  onEventOwnershipTransferred(
@@ -671,7 +671,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
671
671
  "OwnershipTransferred(address,address)"
672
672
  ](null, null);
673
673
  }
674
- return super.onEvent(handler, filter!, fetchConfig);
674
+ return super.onEthEvent(handler, filter!, fetchConfig);
675
675
  }
676
676
 
677
677
  onCallAcceptOwnership(
@@ -681,7 +681,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
681
681
  ) => void,
682
682
  fetchConfig?: Partial<EthFetchConfig>
683
683
  ): this {
684
- return super.onTrace("0x79ba5097", handler as any, fetchConfig);
684
+ return super.onEthTrace("0x79ba5097", handler as any, fetchConfig);
685
685
  }
686
686
 
687
687
  onCallAccessController(
@@ -691,7 +691,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
691
691
  ) => void,
692
692
  fetchConfig?: Partial<EthFetchConfig>
693
693
  ): this {
694
- return super.onTrace("0xbc43cbaf", handler as any, fetchConfig);
694
+ return super.onEthTrace("0xbc43cbaf", handler as any, fetchConfig);
695
695
  }
696
696
 
697
697
  onCallAggregator(
@@ -701,7 +701,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
701
701
  ) => void,
702
702
  fetchConfig?: Partial<EthFetchConfig>
703
703
  ): this {
704
- return super.onTrace("0x245a7bfc", handler as any, fetchConfig);
704
+ return super.onEthTrace("0x245a7bfc", handler as any, fetchConfig);
705
705
  }
706
706
 
707
707
  onCallConfirmAggregator(
@@ -711,14 +711,14 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
711
711
  ) => void,
712
712
  fetchConfig?: Partial<EthFetchConfig>
713
713
  ): this {
714
- return super.onTrace("0xa928c096", handler as any, fetchConfig);
714
+ return super.onEthTrace("0xa928c096", handler as any, fetchConfig);
715
715
  }
716
716
 
717
717
  onCallDecimals(
718
718
  handler: (call: DecimalsCallTrace, ctx: EACAggregatorProxyContext) => void,
719
719
  fetchConfig?: Partial<EthFetchConfig>
720
720
  ): this {
721
- return super.onTrace("0x313ce567", handler as any, fetchConfig);
721
+ return super.onEthTrace("0x313ce567", handler as any, fetchConfig);
722
722
  }
723
723
 
724
724
  onCallDescription(
@@ -728,14 +728,14 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
728
728
  ) => void,
729
729
  fetchConfig?: Partial<EthFetchConfig>
730
730
  ): this {
731
- return super.onTrace("0x7284e416", handler as any, fetchConfig);
731
+ return super.onEthTrace("0x7284e416", handler as any, fetchConfig);
732
732
  }
733
733
 
734
734
  onCallGetAnswer(
735
735
  handler: (call: GetAnswerCallTrace, ctx: EACAggregatorProxyContext) => void,
736
736
  fetchConfig?: Partial<EthFetchConfig>
737
737
  ): this {
738
- return super.onTrace("0xb5ab58dc", handler as any, fetchConfig);
738
+ return super.onEthTrace("0xb5ab58dc", handler as any, fetchConfig);
739
739
  }
740
740
 
741
741
  onCallGetRoundData(
@@ -745,7 +745,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
745
745
  ) => void,
746
746
  fetchConfig?: Partial<EthFetchConfig>
747
747
  ): this {
748
- return super.onTrace("0x9a6fc8f5", handler as any, fetchConfig);
748
+ return super.onEthTrace("0x9a6fc8f5", handler as any, fetchConfig);
749
749
  }
750
750
 
751
751
  onCallGetTimestamp(
@@ -755,7 +755,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
755
755
  ) => void,
756
756
  fetchConfig?: Partial<EthFetchConfig>
757
757
  ): this {
758
- return super.onTrace("0xb633620c", handler as any, fetchConfig);
758
+ return super.onEthTrace("0xb633620c", handler as any, fetchConfig);
759
759
  }
760
760
 
761
761
  onCallLatestAnswer(
@@ -765,7 +765,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
765
765
  ) => void,
766
766
  fetchConfig?: Partial<EthFetchConfig>
767
767
  ): this {
768
- return super.onTrace("0x50d25bcd", handler as any, fetchConfig);
768
+ return super.onEthTrace("0x50d25bcd", handler as any, fetchConfig);
769
769
  }
770
770
 
771
771
  onCallLatestRound(
@@ -775,7 +775,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
775
775
  ) => void,
776
776
  fetchConfig?: Partial<EthFetchConfig>
777
777
  ): this {
778
- return super.onTrace("0x668a0f02", handler as any, fetchConfig);
778
+ return super.onEthTrace("0x668a0f02", handler as any, fetchConfig);
779
779
  }
780
780
 
781
781
  onCallLatestRoundData(
@@ -785,7 +785,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
785
785
  ) => void,
786
786
  fetchConfig?: Partial<EthFetchConfig>
787
787
  ): this {
788
- return super.onTrace("0xfeaf968c", handler as any, fetchConfig);
788
+ return super.onEthTrace("0xfeaf968c", handler as any, fetchConfig);
789
789
  }
790
790
 
791
791
  onCallLatestTimestamp(
@@ -795,14 +795,14 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
795
795
  ) => void,
796
796
  fetchConfig?: Partial<EthFetchConfig>
797
797
  ): this {
798
- return super.onTrace("0x8205bf6a", handler as any, fetchConfig);
798
+ return super.onEthTrace("0x8205bf6a", handler as any, fetchConfig);
799
799
  }
800
800
 
801
801
  onCallOwner(
802
802
  handler: (call: OwnerCallTrace, ctx: EACAggregatorProxyContext) => void,
803
803
  fetchConfig?: Partial<EthFetchConfig>
804
804
  ): this {
805
- return super.onTrace("0x8da5cb5b", handler as any, fetchConfig);
805
+ return super.onEthTrace("0x8da5cb5b", handler as any, fetchConfig);
806
806
  }
807
807
 
808
808
  onCallPhaseAggregators(
@@ -812,14 +812,14 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
812
812
  ) => void,
813
813
  fetchConfig?: Partial<EthFetchConfig>
814
814
  ): this {
815
- return super.onTrace("0xc1597304", handler as any, fetchConfig);
815
+ return super.onEthTrace("0xc1597304", handler as any, fetchConfig);
816
816
  }
817
817
 
818
818
  onCallPhaseId(
819
819
  handler: (call: PhaseIdCallTrace, ctx: EACAggregatorProxyContext) => void,
820
820
  fetchConfig?: Partial<EthFetchConfig>
821
821
  ): this {
822
- return super.onTrace("0x58303b10", handler as any, fetchConfig);
822
+ return super.onEthTrace("0x58303b10", handler as any, fetchConfig);
823
823
  }
824
824
 
825
825
  onCallProposeAggregator(
@@ -829,7 +829,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
829
829
  ) => void,
830
830
  fetchConfig?: Partial<EthFetchConfig>
831
831
  ): this {
832
- return super.onTrace("0xf8a2abd3", handler as any, fetchConfig);
832
+ return super.onEthTrace("0xf8a2abd3", handler as any, fetchConfig);
833
833
  }
834
834
 
835
835
  onCallProposedAggregator(
@@ -839,7 +839,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
839
839
  ) => void,
840
840
  fetchConfig?: Partial<EthFetchConfig>
841
841
  ): this {
842
- return super.onTrace("0xe8c4be30", handler as any, fetchConfig);
842
+ return super.onEthTrace("0xe8c4be30", handler as any, fetchConfig);
843
843
  }
844
844
 
845
845
  onCallProposedGetRoundData(
@@ -849,7 +849,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
849
849
  ) => void,
850
850
  fetchConfig?: Partial<EthFetchConfig>
851
851
  ): this {
852
- return super.onTrace("0x6001ac53", handler as any, fetchConfig);
852
+ return super.onEthTrace("0x6001ac53", handler as any, fetchConfig);
853
853
  }
854
854
 
855
855
  onCallProposedLatestRoundData(
@@ -859,7 +859,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
859
859
  ) => void,
860
860
  fetchConfig?: Partial<EthFetchConfig>
861
861
  ): this {
862
- return super.onTrace("0x8f6b4d91", handler as any, fetchConfig);
862
+ return super.onEthTrace("0x8f6b4d91", handler as any, fetchConfig);
863
863
  }
864
864
 
865
865
  onCallSetController(
@@ -869,7 +869,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
869
869
  ) => void,
870
870
  fetchConfig?: Partial<EthFetchConfig>
871
871
  ): this {
872
- return super.onTrace("0x92eefe9b", handler as any, fetchConfig);
872
+ return super.onEthTrace("0x92eefe9b", handler as any, fetchConfig);
873
873
  }
874
874
 
875
875
  onCallTransferOwnership(
@@ -879,14 +879,14 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
879
879
  ) => void,
880
880
  fetchConfig?: Partial<EthFetchConfig>
881
881
  ): this {
882
- return super.onTrace("0xf2fde38b", handler as any, fetchConfig);
882
+ return super.onEthTrace("0xf2fde38b", handler as any, fetchConfig);
883
883
  }
884
884
 
885
885
  onCallVersion(
886
886
  handler: (call: VersionCallTrace, ctx: EACAggregatorProxyContext) => void,
887
887
  fetchConfig?: Partial<EthFetchConfig>
888
888
  ): this {
889
- return super.onTrace("0x54fd4d50", handler as any, fetchConfig);
889
+ return super.onEthTrace("0x54fd4d50", handler as any, fetchConfig);
890
890
  }
891
891
 
892
892
  public static filters = {
@@ -975,7 +975,7 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
975
975
  "AnswerUpdated(int256,uint256,uint256)"
976
976
  ](null, null, null);
977
977
  }
978
- return super.onEvent(handler, filter!, fetchConfig);
978
+ return super.onEthEvent(handler, filter!, fetchConfig);
979
979
  }
980
980
 
981
981
  onEventNewRound(
@@ -990,7 +990,7 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
990
990
  null
991
991
  );
992
992
  }
993
- return super.onEvent(handler, filter!, fetchConfig);
993
+ return super.onEthEvent(handler, filter!, fetchConfig);
994
994
  }
995
995
 
996
996
  onEventOwnershipTransferRequested(
@@ -1008,7 +1008,7 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
1008
1008
  "OwnershipTransferRequested(address,address)"
1009
1009
  ](null, null);
1010
1010
  }
1011
- return super.onEvent(handler, filter!, fetchConfig);
1011
+ return super.onEthEvent(handler, filter!, fetchConfig);
1012
1012
  }
1013
1013
 
1014
1014
  onEventOwnershipTransferred(
@@ -1026,7 +1026,7 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
1026
1026
  "OwnershipTransferred(address,address)"
1027
1027
  ](null, null);
1028
1028
  }
1029
- return super.onEvent(handler, filter!, fetchConfig);
1029
+ return super.onEthEvent(handler, filter!, fetchConfig);
1030
1030
  }
1031
1031
  }
1032
1032
 
@@ -266,7 +266,7 @@ export class ERC1155Processor extends BaseProcessor<
266
266
  null
267
267
  );
268
268
  }
269
- return super.onEvent(handler, filter!, fetchConfig);
269
+ return super.onEthEvent(handler, filter!, fetchConfig);
270
270
  }
271
271
 
272
272
  onEventTransferBatch(
@@ -279,7 +279,7 @@ export class ERC1155Processor extends BaseProcessor<
279
279
  "TransferBatch(address,address,address,uint256[],uint256[])"
280
280
  ](null, null, null, null, null);
281
281
  }
282
- return super.onEvent(handler, filter!, fetchConfig);
282
+ return super.onEthEvent(handler, filter!, fetchConfig);
283
283
  }
284
284
 
285
285
  onEventTransferSingle(
@@ -292,7 +292,7 @@ export class ERC1155Processor extends BaseProcessor<
292
292
  "TransferSingle(address,address,address,uint256,uint256)"
293
293
  ](null, null, null, null, null);
294
294
  }
295
- return super.onEvent(handler, filter!, fetchConfig);
295
+ return super.onEthEvent(handler, filter!, fetchConfig);
296
296
  }
297
297
 
298
298
  onEventURI(
@@ -303,28 +303,28 @@ export class ERC1155Processor extends BaseProcessor<
303
303
  if (!filter) {
304
304
  filter = templateContract.filters["URI(string,uint256)"](null, null);
305
305
  }
306
- return super.onEvent(handler, filter!, fetchConfig);
306
+ return super.onEthEvent(handler, filter!, fetchConfig);
307
307
  }
308
308
 
309
309
  onCallBalanceOf(
310
310
  handler: (call: BalanceOfCallTrace, ctx: ERC1155Context) => void,
311
311
  fetchConfig?: Partial<EthFetchConfig>
312
312
  ): this {
313
- return super.onTrace("0x00fdd58e", handler as any, fetchConfig);
313
+ return super.onEthTrace("0x00fdd58e", handler as any, fetchConfig);
314
314
  }
315
315
 
316
316
  onCallBalanceOfBatch(
317
317
  handler: (call: BalanceOfBatchCallTrace, ctx: ERC1155Context) => void,
318
318
  fetchConfig?: Partial<EthFetchConfig>
319
319
  ): this {
320
- return super.onTrace("0x4e1273f4", handler as any, fetchConfig);
320
+ return super.onEthTrace("0x4e1273f4", handler as any, fetchConfig);
321
321
  }
322
322
 
323
323
  onCallIsApprovedForAll(
324
324
  handler: (call: IsApprovedForAllCallTrace, ctx: ERC1155Context) => void,
325
325
  fetchConfig?: Partial<EthFetchConfig>
326
326
  ): this {
327
- return super.onTrace("0xe985e9c5", handler as any, fetchConfig);
327
+ return super.onEthTrace("0xe985e9c5", handler as any, fetchConfig);
328
328
  }
329
329
 
330
330
  onCallSafeBatchTransferFrom(
@@ -334,35 +334,35 @@ export class ERC1155Processor extends BaseProcessor<
334
334
  ) => void,
335
335
  fetchConfig?: Partial<EthFetchConfig>
336
336
  ): this {
337
- return super.onTrace("0x2eb2c2d6", handler as any, fetchConfig);
337
+ return super.onEthTrace("0x2eb2c2d6", handler as any, fetchConfig);
338
338
  }
339
339
 
340
340
  onCallSafeTransferFrom(
341
341
  handler: (call: SafeTransferFromCallTrace, ctx: ERC1155Context) => void,
342
342
  fetchConfig?: Partial<EthFetchConfig>
343
343
  ): this {
344
- return super.onTrace("0xf242432a", handler as any, fetchConfig);
344
+ return super.onEthTrace("0xf242432a", handler as any, fetchConfig);
345
345
  }
346
346
 
347
347
  onCallSetApprovalForAll(
348
348
  handler: (call: SetApprovalForAllCallTrace, ctx: ERC1155Context) => void,
349
349
  fetchConfig?: Partial<EthFetchConfig>
350
350
  ): this {
351
- return super.onTrace("0xa22cb465", handler as any, fetchConfig);
351
+ return super.onEthTrace("0xa22cb465", handler as any, fetchConfig);
352
352
  }
353
353
 
354
354
  onCallSupportsInterface(
355
355
  handler: (call: SupportsInterfaceCallTrace, ctx: ERC1155Context) => void,
356
356
  fetchConfig?: Partial<EthFetchConfig>
357
357
  ): this {
358
- return super.onTrace("0x01ffc9a7", handler as any, fetchConfig);
358
+ return super.onEthTrace("0x01ffc9a7", handler as any, fetchConfig);
359
359
  }
360
360
 
361
361
  onCallUri(
362
362
  handler: (call: UriCallTrace, ctx: ERC1155Context) => void,
363
363
  fetchConfig?: Partial<EthFetchConfig>
364
364
  ): this {
365
- return super.onTrace("0x0e89341c", handler as any, fetchConfig);
365
+ return super.onEthTrace("0x0e89341c", handler as any, fetchConfig);
366
366
  }
367
367
 
368
368
  public static filters = {
@@ -450,7 +450,7 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
450
450
  null
451
451
  );
452
452
  }
453
- return super.onEvent(handler, filter!, fetchConfig);
453
+ return super.onEthEvent(handler, filter!, fetchConfig);
454
454
  }
455
455
 
456
456
  onEventTransferBatch(
@@ -463,7 +463,7 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
463
463
  "TransferBatch(address,address,address,uint256[],uint256[])"
464
464
  ](null, null, null, null, null);
465
465
  }
466
- return super.onEvent(handler, filter!, fetchConfig);
466
+ return super.onEthEvent(handler, filter!, fetchConfig);
467
467
  }
468
468
 
469
469
  onEventTransferSingle(
@@ -476,7 +476,7 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
476
476
  "TransferSingle(address,address,address,uint256,uint256)"
477
477
  ](null, null, null, null, null);
478
478
  }
479
- return super.onEvent(handler, filter!, fetchConfig);
479
+ return super.onEthEvent(handler, filter!, fetchConfig);
480
480
  }
481
481
 
482
482
  onEventURI(
@@ -487,7 +487,7 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
487
487
  if (!filter) {
488
488
  filter = templateContract.filters["URI(string,uint256)"](null, null);
489
489
  }
490
- return super.onEvent(handler, filter!, fetchConfig);
490
+ return super.onEthEvent(handler, filter!, fetchConfig);
491
491
  }
492
492
  }
493
493