@sentio/sdk 2.6.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
@@ -347,7 +347,7 @@ export class ERC20Processor extends BaseProcessor<
347
347
  onEventApproval(
348
348
  handler: (event: ApprovalEvent, ctx: ERC20Context) => void,
349
349
  filter?: ApprovalEventFilter | ApprovalEventFilter[],
350
- fetchConfig?: EthFetchConfig
350
+ fetchConfig?: Partial<EthFetchConfig>
351
351
  ) {
352
352
  if (!filter) {
353
353
  filter = templateContract.filters["Approval(address,address,uint256)"](
@@ -364,7 +364,7 @@ export class ERC20Processor extends BaseProcessor<
364
364
  filter?:
365
365
  | OwnershipTransferredEventFilter
366
366
  | OwnershipTransferredEventFilter[],
367
- fetchConfig?: EthFetchConfig
367
+ fetchConfig?: Partial<EthFetchConfig>
368
368
  ) {
369
369
  if (!filter) {
370
370
  filter = templateContract.filters[
@@ -377,7 +377,7 @@ export class ERC20Processor extends BaseProcessor<
377
377
  onEventTransfer(
378
378
  handler: (event: TransferEvent, ctx: ERC20Context) => void,
379
379
  filter?: TransferEventFilter | TransferEventFilter[],
380
- fetchConfig?: EthFetchConfig
380
+ fetchConfig?: Partial<EthFetchConfig>
381
381
  ) {
382
382
  if (!filter) {
383
383
  filter = templateContract.filters["Transfer(address,address,uint256)"](
@@ -391,126 +391,126 @@ export class ERC20Processor extends BaseProcessor<
391
391
 
392
392
  onCallAllowance(
393
393
  handler: (call: AllowanceCallTrace, ctx: ERC20Context) => void,
394
- fetchConfig?: EthFetchConfig
394
+ fetchConfig?: Partial<EthFetchConfig>
395
395
  ) {
396
396
  return super.onTrace("0xdd62ed3e", handler, fetchConfig);
397
397
  }
398
398
 
399
399
  onCallApprove(
400
400
  handler: (call: ApproveCallTrace, ctx: ERC20Context) => void,
401
- fetchConfig?: EthFetchConfig
401
+ fetchConfig?: Partial<EthFetchConfig>
402
402
  ) {
403
403
  return super.onTrace("0x095ea7b3", handler, fetchConfig);
404
404
  }
405
405
 
406
406
  onCallBalanceOf(
407
407
  handler: (call: BalanceOfCallTrace, ctx: ERC20Context) => void,
408
- fetchConfig?: EthFetchConfig
408
+ fetchConfig?: Partial<EthFetchConfig>
409
409
  ) {
410
410
  return super.onTrace("0x70a08231", handler, fetchConfig);
411
411
  }
412
412
 
413
413
  onCallBurn(
414
414
  handler: (call: BurnCallTrace, ctx: ERC20Context) => void,
415
- fetchConfig?: EthFetchConfig
415
+ fetchConfig?: Partial<EthFetchConfig>
416
416
  ) {
417
417
  return super.onTrace("0x42966c68", handler, fetchConfig);
418
418
  }
419
419
 
420
420
  onCallBurnFrom(
421
421
  handler: (call: BurnFromCallTrace, ctx: ERC20Context) => void,
422
- fetchConfig?: EthFetchConfig
422
+ fetchConfig?: Partial<EthFetchConfig>
423
423
  ) {
424
424
  return super.onTrace("0x79cc6790", handler, fetchConfig);
425
425
  }
426
426
 
427
427
  onCallDecimals(
428
428
  handler: (call: DecimalsCallTrace, ctx: ERC20Context) => void,
429
- fetchConfig?: EthFetchConfig
429
+ fetchConfig?: Partial<EthFetchConfig>
430
430
  ) {
431
431
  return super.onTrace("0x313ce567", handler, fetchConfig);
432
432
  }
433
433
 
434
434
  onCallDecreaseAllowance(
435
435
  handler: (call: DecreaseAllowanceCallTrace, ctx: ERC20Context) => void,
436
- fetchConfig?: EthFetchConfig
436
+ fetchConfig?: Partial<EthFetchConfig>
437
437
  ) {
438
438
  return super.onTrace("0xa457c2d7", handler, fetchConfig);
439
439
  }
440
440
 
441
441
  onCallIncreaseAllowance(
442
442
  handler: (call: IncreaseAllowanceCallTrace, ctx: ERC20Context) => void,
443
- fetchConfig?: EthFetchConfig
443
+ fetchConfig?: Partial<EthFetchConfig>
444
444
  ) {
445
445
  return super.onTrace("0x39509351", handler, fetchConfig);
446
446
  }
447
447
 
448
448
  onCallLocker(
449
449
  handler: (call: LockerCallTrace, ctx: ERC20Context) => void,
450
- fetchConfig?: EthFetchConfig
450
+ fetchConfig?: Partial<EthFetchConfig>
451
451
  ) {
452
452
  return super.onTrace("0xd7b96d4e", handler, fetchConfig);
453
453
  }
454
454
 
455
455
  onCallName(
456
456
  handler: (call: NameCallTrace, ctx: ERC20Context) => void,
457
- fetchConfig?: EthFetchConfig
457
+ fetchConfig?: Partial<EthFetchConfig>
458
458
  ) {
459
459
  return super.onTrace("0x06fdde03", handler, fetchConfig);
460
460
  }
461
461
 
462
462
  onCallOwner(
463
463
  handler: (call: OwnerCallTrace, ctx: ERC20Context) => void,
464
- fetchConfig?: EthFetchConfig
464
+ fetchConfig?: Partial<EthFetchConfig>
465
465
  ) {
466
466
  return super.onTrace("0x8da5cb5b", handler, fetchConfig);
467
467
  }
468
468
 
469
469
  onCallRenounceOwnership(
470
470
  handler: (call: RenounceOwnershipCallTrace, ctx: ERC20Context) => void,
471
- fetchConfig?: EthFetchConfig
471
+ fetchConfig?: Partial<EthFetchConfig>
472
472
  ) {
473
473
  return super.onTrace("0x715018a6", handler, fetchConfig);
474
474
  }
475
475
 
476
476
  onCallSetLocker(
477
477
  handler: (call: SetLockerCallTrace, ctx: ERC20Context) => void,
478
- fetchConfig?: EthFetchConfig
478
+ fetchConfig?: Partial<EthFetchConfig>
479
479
  ) {
480
480
  return super.onTrace("0x171060ec", handler, fetchConfig);
481
481
  }
482
482
 
483
483
  onCallSymbol(
484
484
  handler: (call: SymbolCallTrace, ctx: ERC20Context) => void,
485
- fetchConfig?: EthFetchConfig
485
+ fetchConfig?: Partial<EthFetchConfig>
486
486
  ) {
487
487
  return super.onTrace("0x95d89b41", handler, fetchConfig);
488
488
  }
489
489
 
490
490
  onCallTotalSupply(
491
491
  handler: (call: TotalSupplyCallTrace, ctx: ERC20Context) => void,
492
- fetchConfig?: EthFetchConfig
492
+ fetchConfig?: Partial<EthFetchConfig>
493
493
  ) {
494
494
  return super.onTrace("0x18160ddd", handler, fetchConfig);
495
495
  }
496
496
 
497
497
  onCallTransfer(
498
498
  handler: (call: TransferCallTrace, ctx: ERC20Context) => void,
499
- fetchConfig?: EthFetchConfig
499
+ fetchConfig?: Partial<EthFetchConfig>
500
500
  ) {
501
501
  return super.onTrace("0xa9059cbb", handler, fetchConfig);
502
502
  }
503
503
 
504
504
  onCallTransferFrom(
505
505
  handler: (call: TransferFromCallTrace, ctx: ERC20Context) => void,
506
- fetchConfig?: EthFetchConfig
506
+ fetchConfig?: Partial<EthFetchConfig>
507
507
  ) {
508
508
  return super.onTrace("0x23b872dd", handler, fetchConfig);
509
509
  }
510
510
 
511
511
  onCallTransferOwnership(
512
512
  handler: (call: TransferOwnershipCallTrace, ctx: ERC20Context) => void,
513
- fetchConfig?: EthFetchConfig
513
+ fetchConfig?: Partial<EthFetchConfig>
514
514
  ) {
515
515
  return super.onTrace("0xf2fde38b", handler, fetchConfig);
516
516
  }
@@ -578,7 +578,7 @@ export class ERC20ProcessorTemplate extends BaseProcessorTemplate<
578
578
  onEventApproval(
579
579
  handler: (event: ApprovalEvent, ctx: ERC20Context) => void,
580
580
  filter?: ApprovalEventFilter | ApprovalEventFilter[],
581
- fetchConfig?: EthFetchConfig
581
+ fetchConfig?: Partial<EthFetchConfig>
582
582
  ) {
583
583
  if (!filter) {
584
584
  filter = templateContract.filters["Approval(address,address,uint256)"](
@@ -595,7 +595,7 @@ export class ERC20ProcessorTemplate extends BaseProcessorTemplate<
595
595
  filter?:
596
596
  | OwnershipTransferredEventFilter
597
597
  | OwnershipTransferredEventFilter[],
598
- fetchConfig?: EthFetchConfig
598
+ fetchConfig?: Partial<EthFetchConfig>
599
599
  ) {
600
600
  if (!filter) {
601
601
  filter = templateContract.filters[
@@ -608,7 +608,7 @@ export class ERC20ProcessorTemplate extends BaseProcessorTemplate<
608
608
  onEventTransfer(
609
609
  handler: (event: TransferEvent, ctx: ERC20Context) => void,
610
610
  filter?: TransferEventFilter | TransferEventFilter[],
611
- fetchConfig?: EthFetchConfig
611
+ fetchConfig?: Partial<EthFetchConfig>
612
612
  ) {
613
613
  if (!filter) {
614
614
  filter = templateContract.filters["Transfer(address,address,uint256)"](
@@ -242,7 +242,7 @@ export class ERC20BytesProcessor extends BaseProcessor<
242
242
  onEventApproval(
243
243
  handler: (event: ApprovalEvent, ctx: ERC20BytesContext) => void,
244
244
  filter?: ApprovalEventFilter | ApprovalEventFilter[],
245
- fetchConfig?: EthFetchConfig
245
+ fetchConfig?: Partial<EthFetchConfig>
246
246
  ) {
247
247
  if (!filter) {
248
248
  filter = templateContract.filters["Approval(address,address,uint256)"](
@@ -257,7 +257,7 @@ export class ERC20BytesProcessor extends BaseProcessor<
257
257
  onEventTransfer(
258
258
  handler: (event: TransferEvent, ctx: ERC20BytesContext) => void,
259
259
  filter?: TransferEventFilter | TransferEventFilter[],
260
- fetchConfig?: EthFetchConfig
260
+ fetchConfig?: Partial<EthFetchConfig>
261
261
  ) {
262
262
  if (!filter) {
263
263
  filter = templateContract.filters["Transfer(address,address,uint256)"](
@@ -271,63 +271,63 @@ export class ERC20BytesProcessor extends BaseProcessor<
271
271
 
272
272
  onCallName(
273
273
  handler: (call: NameCallTrace, ctx: ERC20BytesContext) => void,
274
- fetchConfig?: EthFetchConfig
274
+ fetchConfig?: Partial<EthFetchConfig>
275
275
  ) {
276
276
  return super.onTrace("0x06fdde03", handler, fetchConfig);
277
277
  }
278
278
 
279
279
  onCallApprove(
280
280
  handler: (call: ApproveCallTrace, ctx: ERC20BytesContext) => void,
281
- fetchConfig?: EthFetchConfig
281
+ fetchConfig?: Partial<EthFetchConfig>
282
282
  ) {
283
283
  return super.onTrace("0x095ea7b3", handler, fetchConfig);
284
284
  }
285
285
 
286
286
  onCallTotalSupply(
287
287
  handler: (call: TotalSupplyCallTrace, ctx: ERC20BytesContext) => void,
288
- fetchConfig?: EthFetchConfig
288
+ fetchConfig?: Partial<EthFetchConfig>
289
289
  ) {
290
290
  return super.onTrace("0x18160ddd", handler, fetchConfig);
291
291
  }
292
292
 
293
293
  onCallTransferFrom(
294
294
  handler: (call: TransferFromCallTrace, ctx: ERC20BytesContext) => void,
295
- fetchConfig?: EthFetchConfig
295
+ fetchConfig?: Partial<EthFetchConfig>
296
296
  ) {
297
297
  return super.onTrace("0x23b872dd", handler, fetchConfig);
298
298
  }
299
299
 
300
300
  onCallDecimals(
301
301
  handler: (call: DecimalsCallTrace, ctx: ERC20BytesContext) => void,
302
- fetchConfig?: EthFetchConfig
302
+ fetchConfig?: Partial<EthFetchConfig>
303
303
  ) {
304
304
  return super.onTrace("0x313ce567", handler, fetchConfig);
305
305
  }
306
306
 
307
307
  onCallBalanceOf(
308
308
  handler: (call: BalanceOfCallTrace, ctx: ERC20BytesContext) => void,
309
- fetchConfig?: EthFetchConfig
309
+ fetchConfig?: Partial<EthFetchConfig>
310
310
  ) {
311
311
  return super.onTrace("0x70a08231", handler, fetchConfig);
312
312
  }
313
313
 
314
314
  onCallSymbol(
315
315
  handler: (call: SymbolCallTrace, ctx: ERC20BytesContext) => void,
316
- fetchConfig?: EthFetchConfig
316
+ fetchConfig?: Partial<EthFetchConfig>
317
317
  ) {
318
318
  return super.onTrace("0x95d89b41", handler, fetchConfig);
319
319
  }
320
320
 
321
321
  onCallTransfer(
322
322
  handler: (call: TransferCallTrace, ctx: ERC20BytesContext) => void,
323
- fetchConfig?: EthFetchConfig
323
+ fetchConfig?: Partial<EthFetchConfig>
324
324
  ) {
325
325
  return super.onTrace("0xa9059cbb", handler, fetchConfig);
326
326
  }
327
327
 
328
328
  onCallAllowance(
329
329
  handler: (call: AllowanceCallTrace, ctx: ERC20BytesContext) => void,
330
- fetchConfig?: EthFetchConfig
330
+ fetchConfig?: Partial<EthFetchConfig>
331
331
  ) {
332
332
  return super.onTrace("0xdd62ed3e", handler, fetchConfig);
333
333
  }
@@ -389,7 +389,7 @@ export class ERC20BytesProcessorTemplate extends BaseProcessorTemplate<
389
389
  onEventApproval(
390
390
  handler: (event: ApprovalEvent, ctx: ERC20BytesContext) => void,
391
391
  filter?: ApprovalEventFilter | ApprovalEventFilter[],
392
- fetchConfig?: EthFetchConfig
392
+ fetchConfig?: Partial<EthFetchConfig>
393
393
  ) {
394
394
  if (!filter) {
395
395
  filter = templateContract.filters["Approval(address,address,uint256)"](
@@ -404,7 +404,7 @@ export class ERC20BytesProcessorTemplate extends BaseProcessorTemplate<
404
404
  onEventTransfer(
405
405
  handler: (event: TransferEvent, ctx: ERC20BytesContext) => void,
406
406
  filter?: TransferEventFilter | TransferEventFilter[],
407
- fetchConfig?: EthFetchConfig
407
+ fetchConfig?: Partial<EthFetchConfig>
408
408
  ) {
409
409
  if (!filter) {
410
410
  filter = templateContract.filters["Transfer(address,address,uint256)"](
@@ -376,7 +376,7 @@ export class ERC721Processor extends BaseProcessor<
376
376
  onEventApproval(
377
377
  handler: (event: ApprovalEvent, ctx: ERC721Context) => void,
378
378
  filter?: ApprovalEventFilter | ApprovalEventFilter[],
379
- fetchConfig?: EthFetchConfig
379
+ fetchConfig?: Partial<EthFetchConfig>
380
380
  ) {
381
381
  if (!filter) {
382
382
  filter = templateContract.filters["Approval(address,address,uint256)"](
@@ -391,7 +391,7 @@ export class ERC721Processor extends BaseProcessor<
391
391
  onEventApprovalForAll(
392
392
  handler: (event: ApprovalForAllEvent, ctx: ERC721Context) => void,
393
393
  filter?: ApprovalForAllEventFilter | ApprovalForAllEventFilter[],
394
- fetchConfig?: EthFetchConfig
394
+ fetchConfig?: Partial<EthFetchConfig>
395
395
  ) {
396
396
  if (!filter) {
397
397
  filter = templateContract.filters["ApprovalForAll(address,address,bool)"](
@@ -406,7 +406,7 @@ export class ERC721Processor extends BaseProcessor<
406
406
  onEventTransfer(
407
407
  handler: (event: TransferEvent, ctx: ERC721Context) => void,
408
408
  filter?: TransferEventFilter | TransferEventFilter[],
409
- fetchConfig?: EthFetchConfig
409
+ fetchConfig?: Partial<EthFetchConfig>
410
410
  ) {
411
411
  if (!filter) {
412
412
  filter = templateContract.filters["Transfer(address,address,uint256)"](
@@ -420,49 +420,49 @@ export class ERC721Processor extends BaseProcessor<
420
420
 
421
421
  onCallApprove(
422
422
  handler: (call: ApproveCallTrace, ctx: ERC721Context) => void,
423
- fetchConfig?: EthFetchConfig
423
+ fetchConfig?: Partial<EthFetchConfig>
424
424
  ) {
425
425
  return super.onTrace("0x095ea7b3", handler, fetchConfig);
426
426
  }
427
427
 
428
428
  onCallTotalSupply(
429
429
  handler: (call: TotalSupplyCallTrace, ctx: ERC721Context) => void,
430
- fetchConfig?: EthFetchConfig
430
+ fetchConfig?: Partial<EthFetchConfig>
431
431
  ) {
432
432
  return super.onTrace("0x18160ddd", handler, fetchConfig);
433
433
  }
434
434
 
435
435
  onCallBalanceOf(
436
436
  handler: (call: BalanceOfCallTrace, ctx: ERC721Context) => void,
437
- fetchConfig?: EthFetchConfig
437
+ fetchConfig?: Partial<EthFetchConfig>
438
438
  ) {
439
439
  return super.onTrace("0x70a08231", handler, fetchConfig);
440
440
  }
441
441
 
442
442
  onCallGetApproved(
443
443
  handler: (call: GetApprovedCallTrace, ctx: ERC721Context) => void,
444
- fetchConfig?: EthFetchConfig
444
+ fetchConfig?: Partial<EthFetchConfig>
445
445
  ) {
446
446
  return super.onTrace("0x081812fc", handler, fetchConfig);
447
447
  }
448
448
 
449
449
  onCallIsApprovedForAll(
450
450
  handler: (call: IsApprovedForAllCallTrace, ctx: ERC721Context) => void,
451
- fetchConfig?: EthFetchConfig
451
+ fetchConfig?: Partial<EthFetchConfig>
452
452
  ) {
453
453
  return super.onTrace("0xe985e9c5", handler, fetchConfig);
454
454
  }
455
455
 
456
456
  onCallName(
457
457
  handler: (call: NameCallTrace, ctx: ERC721Context) => void,
458
- fetchConfig?: EthFetchConfig
458
+ fetchConfig?: Partial<EthFetchConfig>
459
459
  ) {
460
460
  return super.onTrace("0x06fdde03", handler, fetchConfig);
461
461
  }
462
462
 
463
463
  onCallOwnerOf(
464
464
  handler: (call: OwnerOfCallTrace, ctx: ERC721Context) => void,
465
- fetchConfig?: EthFetchConfig
465
+ fetchConfig?: Partial<EthFetchConfig>
466
466
  ) {
467
467
  return super.onTrace("0x6352211e", handler, fetchConfig);
468
468
  }
@@ -472,7 +472,7 @@ export class ERC721Processor extends BaseProcessor<
472
472
  call: SafeTransferFrom_address_address_uint256CallTrace,
473
473
  ctx: ERC721Context
474
474
  ) => void,
475
- fetchConfig?: EthFetchConfig
475
+ fetchConfig?: Partial<EthFetchConfig>
476
476
  ) {
477
477
  return super.onTrace("0x42842e0e", handler, fetchConfig);
478
478
  }
@@ -482,42 +482,42 @@ export class ERC721Processor extends BaseProcessor<
482
482
  call: SafeTransferFrom_address_address_uint256_bytesCallTrace,
483
483
  ctx: ERC721Context
484
484
  ) => void,
485
- fetchConfig?: EthFetchConfig
485
+ fetchConfig?: Partial<EthFetchConfig>
486
486
  ) {
487
487
  return super.onTrace("0xb88d4fde", handler, fetchConfig);
488
488
  }
489
489
 
490
490
  onCallSetApprovalForAll(
491
491
  handler: (call: SetApprovalForAllCallTrace, ctx: ERC721Context) => void,
492
- fetchConfig?: EthFetchConfig
492
+ fetchConfig?: Partial<EthFetchConfig>
493
493
  ) {
494
494
  return super.onTrace("0xa22cb465", handler, fetchConfig);
495
495
  }
496
496
 
497
497
  onCallSupportsInterface(
498
498
  handler: (call: SupportsInterfaceCallTrace, ctx: ERC721Context) => void,
499
- fetchConfig?: EthFetchConfig
499
+ fetchConfig?: Partial<EthFetchConfig>
500
500
  ) {
501
501
  return super.onTrace("0x01ffc9a7", handler, fetchConfig);
502
502
  }
503
503
 
504
504
  onCallSymbol(
505
505
  handler: (call: SymbolCallTrace, ctx: ERC721Context) => void,
506
- fetchConfig?: EthFetchConfig
506
+ fetchConfig?: Partial<EthFetchConfig>
507
507
  ) {
508
508
  return super.onTrace("0x95d89b41", handler, fetchConfig);
509
509
  }
510
510
 
511
511
  onCallTokenURI(
512
512
  handler: (call: TokenURICallTrace, ctx: ERC721Context) => void,
513
- fetchConfig?: EthFetchConfig
513
+ fetchConfig?: Partial<EthFetchConfig>
514
514
  ) {
515
515
  return super.onTrace("0xc87b56dd", handler, fetchConfig);
516
516
  }
517
517
 
518
518
  onCallTransferFrom(
519
519
  handler: (call: TransferFromCallTrace, ctx: ERC721Context) => void,
520
- fetchConfig?: EthFetchConfig
520
+ fetchConfig?: Partial<EthFetchConfig>
521
521
  ) {
522
522
  return super.onTrace("0x23b872dd", handler, fetchConfig);
523
523
  }
@@ -595,7 +595,7 @@ export class ERC721ProcessorTemplate extends BaseProcessorTemplate<
595
595
  onEventApproval(
596
596
  handler: (event: ApprovalEvent, ctx: ERC721Context) => void,
597
597
  filter?: ApprovalEventFilter | ApprovalEventFilter[],
598
- fetchConfig?: EthFetchConfig
598
+ fetchConfig?: Partial<EthFetchConfig>
599
599
  ) {
600
600
  if (!filter) {
601
601
  filter = templateContract.filters["Approval(address,address,uint256)"](
@@ -610,7 +610,7 @@ export class ERC721ProcessorTemplate extends BaseProcessorTemplate<
610
610
  onEventApprovalForAll(
611
611
  handler: (event: ApprovalForAllEvent, ctx: ERC721Context) => void,
612
612
  filter?: ApprovalForAllEventFilter | ApprovalForAllEventFilter[],
613
- fetchConfig?: EthFetchConfig
613
+ fetchConfig?: Partial<EthFetchConfig>
614
614
  ) {
615
615
  if (!filter) {
616
616
  filter = templateContract.filters["ApprovalForAll(address,address,bool)"](
@@ -625,7 +625,7 @@ export class ERC721ProcessorTemplate extends BaseProcessorTemplate<
625
625
  onEventTransfer(
626
626
  handler: (event: TransferEvent, ctx: ERC721Context) => void,
627
627
  filter?: TransferEventFilter | TransferEventFilter[],
628
- fetchConfig?: EthFetchConfig
628
+ fetchConfig?: Partial<EthFetchConfig>
629
629
  ) {
630
630
  if (!filter) {
631
631
  filter = templateContract.filters["Transfer(address,address,uint256)"](
@@ -249,7 +249,7 @@ export class WETH9Processor extends BaseProcessor<
249
249
  onEventApproval(
250
250
  handler: (event: ApprovalEvent, ctx: WETH9Context) => void,
251
251
  filter?: ApprovalEventFilter | ApprovalEventFilter[],
252
- fetchConfig?: EthFetchConfig
252
+ fetchConfig?: Partial<EthFetchConfig>
253
253
  ) {
254
254
  if (!filter) {
255
255
  filter = templateContract.filters["Approval(address,address,uint256)"](
@@ -264,7 +264,7 @@ export class WETH9Processor extends BaseProcessor<
264
264
  onEventTransfer(
265
265
  handler: (event: TransferEvent, ctx: WETH9Context) => void,
266
266
  filter?: TransferEventFilter | TransferEventFilter[],
267
- fetchConfig?: EthFetchConfig
267
+ fetchConfig?: Partial<EthFetchConfig>
268
268
  ) {
269
269
  if (!filter) {
270
270
  filter = templateContract.filters["Transfer(address,address,uint256)"](
@@ -279,7 +279,7 @@ export class WETH9Processor extends BaseProcessor<
279
279
  onEventDeposit(
280
280
  handler: (event: DepositEvent, ctx: WETH9Context) => void,
281
281
  filter?: DepositEventFilter | DepositEventFilter[],
282
- fetchConfig?: EthFetchConfig
282
+ fetchConfig?: Partial<EthFetchConfig>
283
283
  ) {
284
284
  if (!filter) {
285
285
  filter = templateContract.filters["Deposit(address,uint256)"](null, null);
@@ -290,7 +290,7 @@ export class WETH9Processor extends BaseProcessor<
290
290
  onEventWithdrawal(
291
291
  handler: (event: WithdrawalEvent, ctx: WETH9Context) => void,
292
292
  filter?: WithdrawalEventFilter | WithdrawalEventFilter[],
293
- fetchConfig?: EthFetchConfig
293
+ fetchConfig?: Partial<EthFetchConfig>
294
294
  ) {
295
295
  if (!filter) {
296
296
  filter = templateContract.filters["Withdrawal(address,uint256)"](
@@ -303,77 +303,77 @@ export class WETH9Processor extends BaseProcessor<
303
303
 
304
304
  onCallName(
305
305
  handler: (call: NameCallTrace, ctx: WETH9Context) => void,
306
- fetchConfig?: EthFetchConfig
306
+ fetchConfig?: Partial<EthFetchConfig>
307
307
  ) {
308
308
  return super.onTrace("0x06fdde03", handler, fetchConfig);
309
309
  }
310
310
 
311
311
  onCallApprove(
312
312
  handler: (call: ApproveCallTrace, ctx: WETH9Context) => void,
313
- fetchConfig?: EthFetchConfig
313
+ fetchConfig?: Partial<EthFetchConfig>
314
314
  ) {
315
315
  return super.onTrace("0x095ea7b3", handler, fetchConfig);
316
316
  }
317
317
 
318
318
  onCallTotalSupply(
319
319
  handler: (call: TotalSupplyCallTrace, ctx: WETH9Context) => void,
320
- fetchConfig?: EthFetchConfig
320
+ fetchConfig?: Partial<EthFetchConfig>
321
321
  ) {
322
322
  return super.onTrace("0x18160ddd", handler, fetchConfig);
323
323
  }
324
324
 
325
325
  onCallTransferFrom(
326
326
  handler: (call: TransferFromCallTrace, ctx: WETH9Context) => void,
327
- fetchConfig?: EthFetchConfig
327
+ fetchConfig?: Partial<EthFetchConfig>
328
328
  ) {
329
329
  return super.onTrace("0x23b872dd", handler, fetchConfig);
330
330
  }
331
331
 
332
332
  onCallWithdraw(
333
333
  handler: (call: WithdrawCallTrace, ctx: WETH9Context) => void,
334
- fetchConfig?: EthFetchConfig
334
+ fetchConfig?: Partial<EthFetchConfig>
335
335
  ) {
336
336
  return super.onTrace("0x2e1a7d4d", handler, fetchConfig);
337
337
  }
338
338
 
339
339
  onCallDecimals(
340
340
  handler: (call: DecimalsCallTrace, ctx: WETH9Context) => void,
341
- fetchConfig?: EthFetchConfig
341
+ fetchConfig?: Partial<EthFetchConfig>
342
342
  ) {
343
343
  return super.onTrace("0x313ce567", handler, fetchConfig);
344
344
  }
345
345
 
346
346
  onCallBalanceOf(
347
347
  handler: (call: BalanceOfCallTrace, ctx: WETH9Context) => void,
348
- fetchConfig?: EthFetchConfig
348
+ fetchConfig?: Partial<EthFetchConfig>
349
349
  ) {
350
350
  return super.onTrace("0x70a08231", handler, fetchConfig);
351
351
  }
352
352
 
353
353
  onCallSymbol(
354
354
  handler: (call: SymbolCallTrace, ctx: WETH9Context) => void,
355
- fetchConfig?: EthFetchConfig
355
+ fetchConfig?: Partial<EthFetchConfig>
356
356
  ) {
357
357
  return super.onTrace("0x95d89b41", handler, fetchConfig);
358
358
  }
359
359
 
360
360
  onCallTransfer(
361
361
  handler: (call: TransferCallTrace, ctx: WETH9Context) => void,
362
- fetchConfig?: EthFetchConfig
362
+ fetchConfig?: Partial<EthFetchConfig>
363
363
  ) {
364
364
  return super.onTrace("0xa9059cbb", handler, fetchConfig);
365
365
  }
366
366
 
367
367
  onCallDeposit(
368
368
  handler: (call: DepositCallTrace, ctx: WETH9Context) => void,
369
- fetchConfig?: EthFetchConfig
369
+ fetchConfig?: Partial<EthFetchConfig>
370
370
  ) {
371
371
  return super.onTrace("0xd0e30db0", handler, fetchConfig);
372
372
  }
373
373
 
374
374
  onCallAllowance(
375
375
  handler: (call: AllowanceCallTrace, ctx: WETH9Context) => void,
376
- fetchConfig?: EthFetchConfig
376
+ fetchConfig?: Partial<EthFetchConfig>
377
377
  ) {
378
378
  return super.onTrace("0xdd62ed3e", handler, fetchConfig);
379
379
  }
@@ -438,7 +438,7 @@ export class WETH9ProcessorTemplate extends BaseProcessorTemplate<
438
438
  onEventApproval(
439
439
  handler: (event: ApprovalEvent, ctx: WETH9Context) => void,
440
440
  filter?: ApprovalEventFilter | ApprovalEventFilter[],
441
- fetchConfig?: EthFetchConfig
441
+ fetchConfig?: Partial<EthFetchConfig>
442
442
  ) {
443
443
  if (!filter) {
444
444
  filter = templateContract.filters["Approval(address,address,uint256)"](
@@ -453,7 +453,7 @@ export class WETH9ProcessorTemplate extends BaseProcessorTemplate<
453
453
  onEventTransfer(
454
454
  handler: (event: TransferEvent, ctx: WETH9Context) => void,
455
455
  filter?: TransferEventFilter | TransferEventFilter[],
456
- fetchConfig?: EthFetchConfig
456
+ fetchConfig?: Partial<EthFetchConfig>
457
457
  ) {
458
458
  if (!filter) {
459
459
  filter = templateContract.filters["Transfer(address,address,uint256)"](
@@ -468,7 +468,7 @@ export class WETH9ProcessorTemplate extends BaseProcessorTemplate<
468
468
  onEventDeposit(
469
469
  handler: (event: DepositEvent, ctx: WETH9Context) => void,
470
470
  filter?: DepositEventFilter | DepositEventFilter[],
471
- fetchConfig?: EthFetchConfig
471
+ fetchConfig?: Partial<EthFetchConfig>
472
472
  ) {
473
473
  if (!filter) {
474
474
  filter = templateContract.filters["Deposit(address,uint256)"](null, null);
@@ -479,7 +479,7 @@ export class WETH9ProcessorTemplate extends BaseProcessorTemplate<
479
479
  onEventWithdrawal(
480
480
  handler: (event: WithdrawalEvent, ctx: WETH9Context) => void,
481
481
  filter?: WithdrawalEventFilter | WithdrawalEventFilter[],
482
- fetchConfig?: EthFetchConfig
482
+ fetchConfig?: Partial<EthFetchConfig>
483
483
  ) {
484
484
  if (!filter) {
485
485
  filter = templateContract.filters["Withdrawal(address,uint256)"](
@@ -11,7 +11,7 @@ export function generateEventHandler(event: EventDeclaration, contractName: stri
11
11
  onEvent${eventName}(
12
12
  handler: (event: ${eventNamePrefix}Event, ctx: ${contractName}Context) => void,
13
13
  filter?: ${eventNamePrefix}EventFilter | ${eventNamePrefix}EventFilter[],
14
- fetchConfig?: EthFetchConfig
14
+ fetchConfig?: Partial<EthFetchConfig>
15
15
  ) {
16
16
  if (!filter) {
17
17
  filter = templateContract.filters['${filterName}'](${event.inputs.map(() => 'null').join(',')})
@@ -47,7 +47,7 @@ function generateCallHandler(fn: FunctionDeclaration, contractName: string, over
47
47
  return `
48
48
  onCall${upperFirst(overloadedName ?? fn.name)}(
49
49
  handler: (call: ${upperFirst(overloadedName ?? fn.name)}CallTrace, ctx: ${contractName}Context) => void,
50
- fetchConfig?: EthFetchConfig
50
+ fetchConfig?: Partial<EthFetchConfig>
51
51
  ) {
52
52
  return super.onTrace("${sighash}", handler, fetchConfig);
53
53
  }