@sentio/sdk 2.6.1-rc.1 → 2.6.2-rc.1

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 (37) hide show
  1. package/lib/eth/account-processor.d.ts +7 -7
  2. package/lib/eth/account-processor.js +1 -1
  3. package/lib/eth/account-processor.js.map +1 -1
  4. package/lib/eth/base-processor-template.d.ts +2 -2
  5. package/lib/eth/base-processor-template.js +4 -3
  6. package/lib/eth/base-processor-template.js.map +1 -1
  7. package/lib/eth/base-processor.d.ts +2 -2
  8. package/lib/eth/base-processor.js +2 -2
  9. package/lib/eth/base-processor.js.map +1 -1
  10. package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts +31 -31
  11. package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
  12. package/lib/eth/builtin/internal/erc1155-processor.d.ts +16 -16
  13. package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
  14. package/lib/eth/builtin/internal/erc20-processor.d.ts +24 -24
  15. package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
  16. package/lib/eth/builtin/internal/erc20bytes-processor.d.ts +13 -13
  17. package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
  18. package/lib/eth/builtin/internal/erc721-processor.d.ts +20 -20
  19. package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
  20. package/lib/eth/builtin/internal/weth9-processor.d.ts +19 -19
  21. package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
  22. package/lib/eth/codegen/event-handler.js +1 -1
  23. package/lib/eth/codegen/event-handler.js.map +1 -1
  24. package/lib/eth/codegen/functions-handler.js +1 -1
  25. package/lib/eth/codegen/functions-handler.js.map +1 -1
  26. package/package.json +4 -4
  27. package/src/eth/account-processor.ts +11 -11
  28. package/src/eth/base-processor-template.ts +5 -4
  29. package/src/eth/base-processor.ts +4 -4
  30. package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +31 -31
  31. package/src/eth/builtin/internal/erc1155-processor.ts +16 -16
  32. package/src/eth/builtin/internal/erc20-processor.ts +24 -24
  33. package/src/eth/builtin/internal/erc20bytes-processor.ts +13 -13
  34. package/src/eth/builtin/internal/erc721-processor.ts +20 -20
  35. package/src/eth/builtin/internal/weth9-processor.ts +19 -19
  36. package/src/eth/codegen/event-handler.ts +1 -1
  37. package/src/eth/codegen/functions-handler.ts +1 -1
@@ -50,7 +50,7 @@ export class AccountProcessor {
50
50
  onERC20TransferIn(
51
51
  handler: (event: ERC20TransferEvent, ctx: AccountContext) => PromiseOrVoid,
52
52
  tokensAddresses: string[] = [],
53
- fetchConfig?: EthFetchConfig
53
+ fetchConfig?: Partial<EthFetchConfig>
54
54
  ) {
55
55
  return this.onERC20(
56
56
  handler,
@@ -69,7 +69,7 @@ export class AccountProcessor {
69
69
  onERC20TransferOut(
70
70
  handler: (event: ERC20TransferEvent, ctx: AccountContext) => PromiseOrVoid,
71
71
  tokensAddresses: string[] = [],
72
- fetchConfig?: EthFetchConfig
72
+ fetchConfig?: Partial<EthFetchConfig>
73
73
  ) {
74
74
  return this.onERC20(
75
75
  handler,
@@ -88,7 +88,7 @@ export class AccountProcessor {
88
88
  onERC20Minted(
89
89
  handler: (event: ERC20TransferEvent, ctx: AccountContext) => PromiseOrVoid,
90
90
  tokensAddresses: string[] = [],
91
- fetchConfig?: EthFetchConfig
91
+ fetchConfig?: Partial<EthFetchConfig>
92
92
  ) {
93
93
  return this.onERC20(
94
94
  handler,
@@ -103,7 +103,7 @@ export class AccountProcessor {
103
103
  handler: (event: ERC20TransferEvent, ctx: AccountContext) => PromiseOrVoid,
104
104
  tokensAddresses: string[] = [],
105
105
  defaultFilter: (address: string) => AddressOrTypeEventFilter,
106
- fetchConfig?: EthFetchConfig
106
+ fetchConfig?: Partial<EthFetchConfig>
107
107
  ) {
108
108
  return this.onERC(handler, tokensAddresses, defaultFilter, AddressType.ERC20, fetchConfig)
109
109
  }
@@ -117,7 +117,7 @@ export class AccountProcessor {
117
117
  onERC721TransferIn(
118
118
  handler: (event: ERC721TransferEvent, ctx: AccountContext) => PromiseOrVoid,
119
119
  collections: string[],
120
- fetchConfig?: EthFetchConfig
120
+ fetchConfig?: Partial<EthFetchConfig>
121
121
  ) {
122
122
  return this.onERC721(
123
123
  handler,
@@ -136,7 +136,7 @@ export class AccountProcessor {
136
136
  onERC721TransferOut(
137
137
  handler: (event: ERC721TransferEvent, ctx: AccountContext) => PromiseOrVoid,
138
138
  collections: string[],
139
- fetchConfig?: EthFetchConfig
139
+ fetchConfig?: Partial<EthFetchConfig>
140
140
  ) {
141
141
  return this.onERC721(
142
142
  handler,
@@ -155,7 +155,7 @@ export class AccountProcessor {
155
155
  onERC721Minted(
156
156
  handler: (event: ERC721TransferEvent, ctx: AccountContext) => PromiseOrVoid,
157
157
  collections: string[] = [],
158
- fetchConfig?: EthFetchConfig
158
+ fetchConfig?: Partial<EthFetchConfig>
159
159
  ) {
160
160
  return this.onERC721(
161
161
  handler,
@@ -170,7 +170,7 @@ export class AccountProcessor {
170
170
  handler: (event: ERC721TransferEvent, ctx: AccountContext) => PromiseOrVoid,
171
171
  collections: string[],
172
172
  defaultFilter: (address: string) => AddressOrTypeEventFilter,
173
- fetchConfig?: EthFetchConfig
173
+ fetchConfig?: Partial<EthFetchConfig>
174
174
  ) {
175
175
  return this.onERC(handler, collections, defaultFilter, AddressType.ERC721, fetchConfig)
176
176
  }
@@ -180,7 +180,7 @@ export class AccountProcessor {
180
180
  contractAddresses: string[],
181
181
  defaultFilter: (address: string) => AddressOrTypeEventFilter,
182
182
  addressType: AddressType,
183
- fetchConfig?: EthFetchConfig
183
+ fetchConfig?: Partial<EthFetchConfig>
184
184
  ) {
185
185
  const filters = []
186
186
  for (const token of contractAddresses) {
@@ -200,7 +200,7 @@ export class AccountProcessor {
200
200
  protected onEvent(
201
201
  handler: (event: LogDescription, ctx: AccountContext) => PromiseOrVoid,
202
202
  filter: AddressOrTypeEventFilter | AddressOrTypeEventFilter[],
203
- fetchConfig?: EthFetchConfig
203
+ fetchConfig?: Partial<EthFetchConfig>
204
204
  ) {
205
205
  const chainId = this.getChainId()
206
206
 
@@ -232,7 +232,7 @@ export class AccountProcessor {
232
232
 
233
233
  this.eventHandlers.push({
234
234
  filters: _filters,
235
- fetchConfig: fetchConfig || EthFetchConfig.fromPartial({}),
235
+ fetchConfig: EthFetchConfig.fromPartial(fetchConfig || {}),
236
236
  handler: async function (data) {
237
237
  const { log, block, transaction, transactionReceipt } = formatEthData(data)
238
238
 
@@ -90,12 +90,12 @@ export abstract class BaseProcessorTemplate<
90
90
  public onEvent(
91
91
  handler: (event: EthEvent, ctx: ContractContext<TContract, TBoundContractView>) => PromiseOrVoid,
92
92
  filter: DeferredTopicFilter | DeferredTopicFilter[],
93
- fetchConfig?: EthFetchConfig
93
+ fetchConfig?: Partial<EthFetchConfig>
94
94
  ) {
95
95
  this.eventHandlers.push({
96
96
  handler: handler,
97
97
  filter: filter,
98
- fetchConfig: fetchConfig,
98
+ fetchConfig: EthFetchConfig.fromPartial(fetchConfig || {}),
99
99
  })
100
100
  return this
101
101
  }
@@ -134,9 +134,10 @@ export abstract class BaseProcessorTemplate<
134
134
 
135
135
  public onTrace(
136
136
  signature: string,
137
- handler: (trace: Trace, ctx: ContractContext<TContract, TBoundContractView>) => PromiseOrVoid
137
+ handler: (trace: Trace, ctx: ContractContext<TContract, TBoundContractView>) => PromiseOrVoid,
138
+ fetchConfig?: Partial<EthFetchConfig>
138
139
  ) {
139
- this.traceHandlers.push({ signature, handler })
140
+ this.traceHandlers.push({ signature, handler, fetchConfig: EthFetchConfig.fromPartial(fetchConfig || {}) })
140
141
  return this
141
142
  }
142
143
 
@@ -80,7 +80,7 @@ export abstract class BaseProcessor<
80
80
  public onEvent(
81
81
  handler: (event: EthEvent, ctx: ContractContext<TContract, TBoundContractView>) => PromiseOrVoid,
82
82
  filter: DeferredTopicFilter | DeferredTopicFilter[],
83
- fetchConfig?: EthFetchConfig
83
+ fetchConfig?: Partial<EthFetchConfig>
84
84
  ) {
85
85
  const chainId = this.getChainId()
86
86
  let _filters: DeferredTopicFilter[] = []
@@ -95,7 +95,7 @@ export abstract class BaseProcessor<
95
95
  const processor = this
96
96
  this.eventHandlers.push({
97
97
  filters: _filters,
98
- fetchConfig: fetchConfig || EthFetchConfig.fromPartial({}),
98
+ fetchConfig: EthFetchConfig.fromPartial(fetchConfig || {}),
99
99
  handler: async function (data: Data_EthLog) {
100
100
  const { log, block, transaction, transactionReceipt } = formatEthData(data)
101
101
  if (!log) {
@@ -207,7 +207,7 @@ export abstract class BaseProcessor<
207
207
  public onTrace(
208
208
  signature: string,
209
209
  handler: (trace: Trace, ctx: ContractContext<TContract, TBoundContractView>) => PromiseOrVoid,
210
- fetchConfig?: EthFetchConfig
210
+ fetchConfig?: Partial<EthFetchConfig>
211
211
  ) {
212
212
  const chainId = this.getChainId()
213
213
  const contractName = this.config.name
@@ -215,7 +215,7 @@ export abstract class BaseProcessor<
215
215
 
216
216
  this.traceHandlers.push({
217
217
  signature,
218
- fetchConfig: fetchConfig || EthFetchConfig.fromPartial({}),
218
+ fetchConfig: EthFetchConfig.fromPartial(fetchConfig || {}),
219
219
  handler: async function (data: Data_EthTrace) {
220
220
  const contractView = processor.CreateBoundContractView()
221
221
  const contractInterface = contractView.rawContract.interface
@@ -668,7 +668,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
668
668
  ctx: EACAggregatorProxyContext
669
669
  ) => void,
670
670
  filter?: AnswerUpdatedEventFilter | AnswerUpdatedEventFilter[],
671
- fetchConfig?: EthFetchConfig
671
+ fetchConfig?: Partial<EthFetchConfig>
672
672
  ) {
673
673
  if (!filter) {
674
674
  filter = templateContract.filters[
@@ -681,7 +681,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
681
681
  onEventNewRound(
682
682
  handler: (event: NewRoundEvent, ctx: EACAggregatorProxyContext) => void,
683
683
  filter?: NewRoundEventFilter | NewRoundEventFilter[],
684
- fetchConfig?: EthFetchConfig
684
+ fetchConfig?: Partial<EthFetchConfig>
685
685
  ) {
686
686
  if (!filter) {
687
687
  filter = templateContract.filters["NewRound(uint256,address,uint256)"](
@@ -701,7 +701,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
701
701
  filter?:
702
702
  | OwnershipTransferRequestedEventFilter
703
703
  | OwnershipTransferRequestedEventFilter[],
704
- fetchConfig?: EthFetchConfig
704
+ fetchConfig?: Partial<EthFetchConfig>
705
705
  ) {
706
706
  if (!filter) {
707
707
  filter = templateContract.filters[
@@ -719,7 +719,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
719
719
  filter?:
720
720
  | OwnershipTransferredEventFilter
721
721
  | OwnershipTransferredEventFilter[],
722
- fetchConfig?: EthFetchConfig
722
+ fetchConfig?: Partial<EthFetchConfig>
723
723
  ) {
724
724
  if (!filter) {
725
725
  filter = templateContract.filters[
@@ -734,7 +734,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
734
734
  call: AcceptOwnershipCallTrace,
735
735
  ctx: EACAggregatorProxyContext
736
736
  ) => void,
737
- fetchConfig?: EthFetchConfig
737
+ fetchConfig?: Partial<EthFetchConfig>
738
738
  ) {
739
739
  return super.onTrace("0x79ba5097", handler, fetchConfig);
740
740
  }
@@ -744,7 +744,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
744
744
  call: AccessControllerCallTrace,
745
745
  ctx: EACAggregatorProxyContext
746
746
  ) => void,
747
- fetchConfig?: EthFetchConfig
747
+ fetchConfig?: Partial<EthFetchConfig>
748
748
  ) {
749
749
  return super.onTrace("0xbc43cbaf", handler, fetchConfig);
750
750
  }
@@ -754,7 +754,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
754
754
  call: AggregatorCallTrace,
755
755
  ctx: EACAggregatorProxyContext
756
756
  ) => void,
757
- fetchConfig?: EthFetchConfig
757
+ fetchConfig?: Partial<EthFetchConfig>
758
758
  ) {
759
759
  return super.onTrace("0x245a7bfc", handler, fetchConfig);
760
760
  }
@@ -764,14 +764,14 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
764
764
  call: ConfirmAggregatorCallTrace,
765
765
  ctx: EACAggregatorProxyContext
766
766
  ) => void,
767
- fetchConfig?: EthFetchConfig
767
+ fetchConfig?: Partial<EthFetchConfig>
768
768
  ) {
769
769
  return super.onTrace("0xa928c096", handler, fetchConfig);
770
770
  }
771
771
 
772
772
  onCallDecimals(
773
773
  handler: (call: DecimalsCallTrace, ctx: EACAggregatorProxyContext) => void,
774
- fetchConfig?: EthFetchConfig
774
+ fetchConfig?: Partial<EthFetchConfig>
775
775
  ) {
776
776
  return super.onTrace("0x313ce567", handler, fetchConfig);
777
777
  }
@@ -781,14 +781,14 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
781
781
  call: DescriptionCallTrace,
782
782
  ctx: EACAggregatorProxyContext
783
783
  ) => void,
784
- fetchConfig?: EthFetchConfig
784
+ fetchConfig?: Partial<EthFetchConfig>
785
785
  ) {
786
786
  return super.onTrace("0x7284e416", handler, fetchConfig);
787
787
  }
788
788
 
789
789
  onCallGetAnswer(
790
790
  handler: (call: GetAnswerCallTrace, ctx: EACAggregatorProxyContext) => void,
791
- fetchConfig?: EthFetchConfig
791
+ fetchConfig?: Partial<EthFetchConfig>
792
792
  ) {
793
793
  return super.onTrace("0xb5ab58dc", handler, fetchConfig);
794
794
  }
@@ -798,7 +798,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
798
798
  call: GetRoundDataCallTrace,
799
799
  ctx: EACAggregatorProxyContext
800
800
  ) => void,
801
- fetchConfig?: EthFetchConfig
801
+ fetchConfig?: Partial<EthFetchConfig>
802
802
  ) {
803
803
  return super.onTrace("0x9a6fc8f5", handler, fetchConfig);
804
804
  }
@@ -808,7 +808,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
808
808
  call: GetTimestampCallTrace,
809
809
  ctx: EACAggregatorProxyContext
810
810
  ) => void,
811
- fetchConfig?: EthFetchConfig
811
+ fetchConfig?: Partial<EthFetchConfig>
812
812
  ) {
813
813
  return super.onTrace("0xb633620c", handler, fetchConfig);
814
814
  }
@@ -818,7 +818,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
818
818
  call: LatestAnswerCallTrace,
819
819
  ctx: EACAggregatorProxyContext
820
820
  ) => void,
821
- fetchConfig?: EthFetchConfig
821
+ fetchConfig?: Partial<EthFetchConfig>
822
822
  ) {
823
823
  return super.onTrace("0x50d25bcd", handler, fetchConfig);
824
824
  }
@@ -828,7 +828,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
828
828
  call: LatestRoundCallTrace,
829
829
  ctx: EACAggregatorProxyContext
830
830
  ) => void,
831
- fetchConfig?: EthFetchConfig
831
+ fetchConfig?: Partial<EthFetchConfig>
832
832
  ) {
833
833
  return super.onTrace("0x668a0f02", handler, fetchConfig);
834
834
  }
@@ -838,7 +838,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
838
838
  call: LatestRoundDataCallTrace,
839
839
  ctx: EACAggregatorProxyContext
840
840
  ) => void,
841
- fetchConfig?: EthFetchConfig
841
+ fetchConfig?: Partial<EthFetchConfig>
842
842
  ) {
843
843
  return super.onTrace("0xfeaf968c", handler, fetchConfig);
844
844
  }
@@ -848,14 +848,14 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
848
848
  call: LatestTimestampCallTrace,
849
849
  ctx: EACAggregatorProxyContext
850
850
  ) => void,
851
- fetchConfig?: EthFetchConfig
851
+ fetchConfig?: Partial<EthFetchConfig>
852
852
  ) {
853
853
  return super.onTrace("0x8205bf6a", handler, fetchConfig);
854
854
  }
855
855
 
856
856
  onCallOwner(
857
857
  handler: (call: OwnerCallTrace, ctx: EACAggregatorProxyContext) => void,
858
- fetchConfig?: EthFetchConfig
858
+ fetchConfig?: Partial<EthFetchConfig>
859
859
  ) {
860
860
  return super.onTrace("0x8da5cb5b", handler, fetchConfig);
861
861
  }
@@ -865,14 +865,14 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
865
865
  call: PhaseAggregatorsCallTrace,
866
866
  ctx: EACAggregatorProxyContext
867
867
  ) => void,
868
- fetchConfig?: EthFetchConfig
868
+ fetchConfig?: Partial<EthFetchConfig>
869
869
  ) {
870
870
  return super.onTrace("0xc1597304", handler, fetchConfig);
871
871
  }
872
872
 
873
873
  onCallPhaseId(
874
874
  handler: (call: PhaseIdCallTrace, ctx: EACAggregatorProxyContext) => void,
875
- fetchConfig?: EthFetchConfig
875
+ fetchConfig?: Partial<EthFetchConfig>
876
876
  ) {
877
877
  return super.onTrace("0x58303b10", handler, fetchConfig);
878
878
  }
@@ -882,7 +882,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
882
882
  call: ProposeAggregatorCallTrace,
883
883
  ctx: EACAggregatorProxyContext
884
884
  ) => void,
885
- fetchConfig?: EthFetchConfig
885
+ fetchConfig?: Partial<EthFetchConfig>
886
886
  ) {
887
887
  return super.onTrace("0xf8a2abd3", handler, fetchConfig);
888
888
  }
@@ -892,7 +892,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
892
892
  call: ProposedAggregatorCallTrace,
893
893
  ctx: EACAggregatorProxyContext
894
894
  ) => void,
895
- fetchConfig?: EthFetchConfig
895
+ fetchConfig?: Partial<EthFetchConfig>
896
896
  ) {
897
897
  return super.onTrace("0xe8c4be30", handler, fetchConfig);
898
898
  }
@@ -902,7 +902,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
902
902
  call: ProposedGetRoundDataCallTrace,
903
903
  ctx: EACAggregatorProxyContext
904
904
  ) => void,
905
- fetchConfig?: EthFetchConfig
905
+ fetchConfig?: Partial<EthFetchConfig>
906
906
  ) {
907
907
  return super.onTrace("0x6001ac53", handler, fetchConfig);
908
908
  }
@@ -912,7 +912,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
912
912
  call: ProposedLatestRoundDataCallTrace,
913
913
  ctx: EACAggregatorProxyContext
914
914
  ) => void,
915
- fetchConfig?: EthFetchConfig
915
+ fetchConfig?: Partial<EthFetchConfig>
916
916
  ) {
917
917
  return super.onTrace("0x8f6b4d91", handler, fetchConfig);
918
918
  }
@@ -922,7 +922,7 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
922
922
  call: SetControllerCallTrace,
923
923
  ctx: EACAggregatorProxyContext
924
924
  ) => void,
925
- fetchConfig?: EthFetchConfig
925
+ fetchConfig?: Partial<EthFetchConfig>
926
926
  ) {
927
927
  return super.onTrace("0x92eefe9b", handler, fetchConfig);
928
928
  }
@@ -932,14 +932,14 @@ export class EACAggregatorProxyProcessor extends BaseProcessor<
932
932
  call: TransferOwnershipCallTrace,
933
933
  ctx: EACAggregatorProxyContext
934
934
  ) => void,
935
- fetchConfig?: EthFetchConfig
935
+ fetchConfig?: Partial<EthFetchConfig>
936
936
  ) {
937
937
  return super.onTrace("0xf2fde38b", handler, fetchConfig);
938
938
  }
939
939
 
940
940
  onCallVersion(
941
941
  handler: (call: VersionCallTrace, ctx: EACAggregatorProxyContext) => void,
942
- fetchConfig?: EthFetchConfig
942
+ fetchConfig?: Partial<EthFetchConfig>
943
943
  ) {
944
944
  return super.onTrace("0x54fd4d50", handler, fetchConfig);
945
945
  }
@@ -1023,7 +1023,7 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
1023
1023
  ctx: EACAggregatorProxyContext
1024
1024
  ) => void,
1025
1025
  filter?: AnswerUpdatedEventFilter | AnswerUpdatedEventFilter[],
1026
- fetchConfig?: EthFetchConfig
1026
+ fetchConfig?: Partial<EthFetchConfig>
1027
1027
  ) {
1028
1028
  if (!filter) {
1029
1029
  filter = templateContract.filters[
@@ -1036,7 +1036,7 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
1036
1036
  onEventNewRound(
1037
1037
  handler: (event: NewRoundEvent, ctx: EACAggregatorProxyContext) => void,
1038
1038
  filter?: NewRoundEventFilter | NewRoundEventFilter[],
1039
- fetchConfig?: EthFetchConfig
1039
+ fetchConfig?: Partial<EthFetchConfig>
1040
1040
  ) {
1041
1041
  if (!filter) {
1042
1042
  filter = templateContract.filters["NewRound(uint256,address,uint256)"](
@@ -1056,7 +1056,7 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
1056
1056
  filter?:
1057
1057
  | OwnershipTransferRequestedEventFilter
1058
1058
  | OwnershipTransferRequestedEventFilter[],
1059
- fetchConfig?: EthFetchConfig
1059
+ fetchConfig?: Partial<EthFetchConfig>
1060
1060
  ) {
1061
1061
  if (!filter) {
1062
1062
  filter = templateContract.filters[
@@ -1074,7 +1074,7 @@ export class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate<
1074
1074
  filter?:
1075
1075
  | OwnershipTransferredEventFilter
1076
1076
  | OwnershipTransferredEventFilter[],
1077
- fetchConfig?: EthFetchConfig
1077
+ fetchConfig?: Partial<EthFetchConfig>
1078
1078
  ) {
1079
1079
  if (!filter) {
1080
1080
  filter = templateContract.filters[
@@ -274,7 +274,7 @@ export class ERC1155Processor extends BaseProcessor<
274
274
  onEventApprovalForAll(
275
275
  handler: (event: ApprovalForAllEvent, ctx: ERC1155Context) => void,
276
276
  filter?: ApprovalForAllEventFilter | ApprovalForAllEventFilter[],
277
- fetchConfig?: EthFetchConfig
277
+ fetchConfig?: Partial<EthFetchConfig>
278
278
  ) {
279
279
  if (!filter) {
280
280
  filter = templateContract.filters["ApprovalForAll(address,address,bool)"](
@@ -289,7 +289,7 @@ export class ERC1155Processor extends BaseProcessor<
289
289
  onEventTransferBatch(
290
290
  handler: (event: TransferBatchEvent, ctx: ERC1155Context) => void,
291
291
  filter?: TransferBatchEventFilter | TransferBatchEventFilter[],
292
- fetchConfig?: EthFetchConfig
292
+ fetchConfig?: Partial<EthFetchConfig>
293
293
  ) {
294
294
  if (!filter) {
295
295
  filter = templateContract.filters[
@@ -302,7 +302,7 @@ export class ERC1155Processor extends BaseProcessor<
302
302
  onEventTransferSingle(
303
303
  handler: (event: TransferSingleEvent, ctx: ERC1155Context) => void,
304
304
  filter?: TransferSingleEventFilter | TransferSingleEventFilter[],
305
- fetchConfig?: EthFetchConfig
305
+ fetchConfig?: Partial<EthFetchConfig>
306
306
  ) {
307
307
  if (!filter) {
308
308
  filter = templateContract.filters[
@@ -315,7 +315,7 @@ export class ERC1155Processor extends BaseProcessor<
315
315
  onEventURI(
316
316
  handler: (event: URIEvent, ctx: ERC1155Context) => void,
317
317
  filter?: URIEventFilter | URIEventFilter[],
318
- fetchConfig?: EthFetchConfig
318
+ fetchConfig?: Partial<EthFetchConfig>
319
319
  ) {
320
320
  if (!filter) {
321
321
  filter = templateContract.filters["URI(string,uint256)"](null, null);
@@ -325,21 +325,21 @@ export class ERC1155Processor extends BaseProcessor<
325
325
 
326
326
  onCallBalanceOf(
327
327
  handler: (call: BalanceOfCallTrace, ctx: ERC1155Context) => void,
328
- fetchConfig?: EthFetchConfig
328
+ fetchConfig?: Partial<EthFetchConfig>
329
329
  ) {
330
330
  return super.onTrace("0x00fdd58e", handler, fetchConfig);
331
331
  }
332
332
 
333
333
  onCallBalanceOfBatch(
334
334
  handler: (call: BalanceOfBatchCallTrace, ctx: ERC1155Context) => void,
335
- fetchConfig?: EthFetchConfig
335
+ fetchConfig?: Partial<EthFetchConfig>
336
336
  ) {
337
337
  return super.onTrace("0x4e1273f4", handler, fetchConfig);
338
338
  }
339
339
 
340
340
  onCallIsApprovedForAll(
341
341
  handler: (call: IsApprovedForAllCallTrace, ctx: ERC1155Context) => void,
342
- fetchConfig?: EthFetchConfig
342
+ fetchConfig?: Partial<EthFetchConfig>
343
343
  ) {
344
344
  return super.onTrace("0xe985e9c5", handler, fetchConfig);
345
345
  }
@@ -349,35 +349,35 @@ export class ERC1155Processor extends BaseProcessor<
349
349
  call: SafeBatchTransferFromCallTrace,
350
350
  ctx: ERC1155Context
351
351
  ) => void,
352
- fetchConfig?: EthFetchConfig
352
+ fetchConfig?: Partial<EthFetchConfig>
353
353
  ) {
354
354
  return super.onTrace("0x2eb2c2d6", handler, fetchConfig);
355
355
  }
356
356
 
357
357
  onCallSafeTransferFrom(
358
358
  handler: (call: SafeTransferFromCallTrace, ctx: ERC1155Context) => void,
359
- fetchConfig?: EthFetchConfig
359
+ fetchConfig?: Partial<EthFetchConfig>
360
360
  ) {
361
361
  return super.onTrace("0xf242432a", handler, fetchConfig);
362
362
  }
363
363
 
364
364
  onCallSetApprovalForAll(
365
365
  handler: (call: SetApprovalForAllCallTrace, ctx: ERC1155Context) => void,
366
- fetchConfig?: EthFetchConfig
366
+ fetchConfig?: Partial<EthFetchConfig>
367
367
  ) {
368
368
  return super.onTrace("0xa22cb465", handler, fetchConfig);
369
369
  }
370
370
 
371
371
  onCallSupportsInterface(
372
372
  handler: (call: SupportsInterfaceCallTrace, ctx: ERC1155Context) => void,
373
- fetchConfig?: EthFetchConfig
373
+ fetchConfig?: Partial<EthFetchConfig>
374
374
  ) {
375
375
  return super.onTrace("0x01ffc9a7", handler, fetchConfig);
376
376
  }
377
377
 
378
378
  onCallUri(
379
379
  handler: (call: UriCallTrace, ctx: ERC1155Context) => void,
380
- fetchConfig?: EthFetchConfig
380
+ fetchConfig?: Partial<EthFetchConfig>
381
381
  ) {
382
382
  return super.onTrace("0x0e89341c", handler, fetchConfig);
383
383
  }
@@ -458,7 +458,7 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
458
458
  onEventApprovalForAll(
459
459
  handler: (event: ApprovalForAllEvent, ctx: ERC1155Context) => void,
460
460
  filter?: ApprovalForAllEventFilter | ApprovalForAllEventFilter[],
461
- fetchConfig?: EthFetchConfig
461
+ fetchConfig?: Partial<EthFetchConfig>
462
462
  ) {
463
463
  if (!filter) {
464
464
  filter = templateContract.filters["ApprovalForAll(address,address,bool)"](
@@ -473,7 +473,7 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
473
473
  onEventTransferBatch(
474
474
  handler: (event: TransferBatchEvent, ctx: ERC1155Context) => void,
475
475
  filter?: TransferBatchEventFilter | TransferBatchEventFilter[],
476
- fetchConfig?: EthFetchConfig
476
+ fetchConfig?: Partial<EthFetchConfig>
477
477
  ) {
478
478
  if (!filter) {
479
479
  filter = templateContract.filters[
@@ -486,7 +486,7 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
486
486
  onEventTransferSingle(
487
487
  handler: (event: TransferSingleEvent, ctx: ERC1155Context) => void,
488
488
  filter?: TransferSingleEventFilter | TransferSingleEventFilter[],
489
- fetchConfig?: EthFetchConfig
489
+ fetchConfig?: Partial<EthFetchConfig>
490
490
  ) {
491
491
  if (!filter) {
492
492
  filter = templateContract.filters[
@@ -499,7 +499,7 @@ export class ERC1155ProcessorTemplate extends BaseProcessorTemplate<
499
499
  onEventURI(
500
500
  handler: (event: URIEvent, ctx: ERC1155Context) => void,
501
501
  filter?: URIEventFilter | URIEventFilter[],
502
- fetchConfig?: EthFetchConfig
502
+ fetchConfig?: Partial<EthFetchConfig>
503
503
  ) {
504
504
  if (!filter) {
505
505
  filter = templateContract.filters["URI(string,uint256)"](null, null);