@sentio/sdk 2.57.9-rc.3 → 2.57.9-rc.5

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 (49) hide show
  1. package/lib/aptos/builtin/0x1.d.ts +155 -155
  2. package/lib/aptos/builtin/0x1.d.ts.map +1 -1
  3. package/lib/aptos/builtin/0x1.js +395 -308
  4. package/lib/aptos/builtin/0x1.js.map +1 -1
  5. package/lib/aptos/builtin/0x3.d.ts +52 -52
  6. package/lib/aptos/builtin/0x3.d.ts.map +1 -1
  7. package/lib/aptos/builtin/0x3.js +135 -102
  8. package/lib/aptos/builtin/0x3.js.map +1 -1
  9. package/lib/aptos/builtin/0x4.d.ts +12 -12
  10. package/lib/aptos/builtin/0x4.d.ts.map +1 -1
  11. package/lib/aptos/builtin/0x4.js +22 -22
  12. package/lib/aptos/builtin/0x4.js.map +1 -1
  13. package/lib/eth/abi-decoder/parse-log-worker.d.ts +14 -0
  14. package/lib/eth/abi-decoder/parse-log-worker.d.ts.map +1 -0
  15. package/lib/eth/abi-decoder/parse-log-worker.js +40 -0
  16. package/lib/eth/abi-decoder/parse-log-worker.js.map +1 -0
  17. package/lib/eth/abi-decoder/parse-log.d.ts +4 -0
  18. package/lib/eth/abi-decoder/parse-log.d.ts.map +1 -0
  19. package/lib/eth/abi-decoder/parse-log.js +43 -0
  20. package/lib/eth/abi-decoder/parse-log.js.map +1 -0
  21. package/lib/eth/base-processor.d.ts.map +1 -1
  22. package/lib/eth/base-processor.js +3 -3
  23. package/lib/eth/base-processor.js.map +1 -1
  24. package/lib/move/shared-network-codegen.js +3 -3
  25. package/lib/move/shared-network-codegen.js.map +1 -1
  26. package/lib/sui/builtin/0x1.d.ts +7 -7
  27. package/lib/sui/builtin/0x1.d.ts.map +1 -1
  28. package/lib/sui/builtin/0x1.js +12 -12
  29. package/lib/sui/builtin/0x1.js.map +1 -1
  30. package/lib/sui/builtin/0x2.d.ts +34 -34
  31. package/lib/sui/builtin/0x2.d.ts.map +1 -1
  32. package/lib/sui/builtin/0x2.js +72 -66
  33. package/lib/sui/builtin/0x2.js.map +1 -1
  34. package/lib/sui/builtin/0x3.d.ts +14 -14
  35. package/lib/sui/builtin/0x3.d.ts.map +1 -1
  36. package/lib/sui/builtin/0x3.js +44 -26
  37. package/lib/sui/builtin/0x3.js.map +1 -1
  38. package/package.json +5 -3
  39. package/src/aptos/builtin/0x1.ts +644 -155
  40. package/src/aptos/builtin/0x3.ts +208 -52
  41. package/src/aptos/builtin/0x4.ts +59 -12
  42. package/src/bundle.config.ts +1 -1
  43. package/src/eth/abi-decoder/parse-log-worker.ts +52 -0
  44. package/src/eth/abi-decoder/parse-log.ts +44 -0
  45. package/src/eth/base-processor.ts +15 -16
  46. package/src/move/shared-network-codegen.ts +3 -3
  47. package/src/sui/builtin/0x1.ts +33 -7
  48. package/src/sui/builtin/0x2.ts +177 -34
  49. package/src/sui/builtin/0x3.ts +45 -14
@@ -4,7 +4,7 @@
4
4
 
5
5
  /* Generated types for 0x1, original address 0x1 */
6
6
 
7
- import { CallFilter, MoveFetchConfig } from "@sentio/sdk/move";
7
+ import { CallFilter, MoveFetchConfig, EventFilter } from "@sentio/sdk/move";
8
8
  import {
9
9
  AptosBindOptions,
10
10
  AptosBaseProcessor,
@@ -87,8 +87,13 @@ export class dkg extends AptosBaseProcessor {
87
87
  onEventDKGStartEvent(
88
88
  func: (event: dkg.DKGStartEventInstance, ctx: AptosContext) => void,
89
89
  fetchConfig?: Partial<MoveFetchConfig>,
90
+ eventFilter?: Omit<EventFilter, "type" | "account">,
90
91
  ): dkg {
91
- this.onMoveEvent(func, { type: "dkg::DKGStartEvent" }, fetchConfig);
92
+ this.onMoveEvent(
93
+ func,
94
+ { ...(eventFilter ?? {}), type: "dkg::DKGStartEvent" },
95
+ fetchConfig,
96
+ );
92
97
  return this;
93
98
  }
94
99
  }
@@ -207,8 +212,13 @@ export class code extends AptosBaseProcessor {
207
212
  onEventPublishPackage(
208
213
  func: (event: code.PublishPackageInstance, ctx: AptosContext) => void,
209
214
  fetchConfig?: Partial<MoveFetchConfig>,
215
+ eventFilter?: Omit<EventFilter, "type" | "account">,
210
216
  ): code {
211
- this.onMoveEvent(func, { type: "code::PublishPackage" }, fetchConfig);
217
+ this.onMoveEvent(
218
+ func,
219
+ { ...(eventFilter ?? {}), type: "code::PublishPackage" },
220
+ fetchConfig,
221
+ );
212
222
  return this;
213
223
  }
214
224
  }
@@ -519,24 +529,39 @@ export class coin extends AptosBaseProcessor {
519
529
  onEventDepositEvent(
520
530
  func: (event: coin.DepositEventInstance, ctx: AptosContext) => void,
521
531
  fetchConfig?: Partial<MoveFetchConfig>,
532
+ eventFilter?: Omit<EventFilter, "type" | "account">,
522
533
  ): coin {
523
- this.onMoveEvent(func, { type: "coin::DepositEvent" }, fetchConfig);
534
+ this.onMoveEvent(
535
+ func,
536
+ { ...(eventFilter ?? {}), type: "coin::DepositEvent" },
537
+ fetchConfig,
538
+ );
524
539
  return this;
525
540
  }
526
541
 
527
542
  onEventWithdrawEvent(
528
543
  func: (event: coin.WithdrawEventInstance, ctx: AptosContext) => void,
529
544
  fetchConfig?: Partial<MoveFetchConfig>,
545
+ eventFilter?: Omit<EventFilter, "type" | "account">,
530
546
  ): coin {
531
- this.onMoveEvent(func, { type: "coin::WithdrawEvent" }, fetchConfig);
547
+ this.onMoveEvent(
548
+ func,
549
+ { ...(eventFilter ?? {}), type: "coin::WithdrawEvent" },
550
+ fetchConfig,
551
+ );
532
552
  return this;
533
553
  }
534
554
 
535
555
  onEventCoinDeposit(
536
556
  func: (event: coin.CoinDepositInstance, ctx: AptosContext) => void,
537
557
  fetchConfig?: Partial<MoveFetchConfig>,
558
+ eventFilter?: Omit<EventFilter, "type" | "account">,
538
559
  ): coin {
539
- this.onMoveEvent(func, { type: "coin::CoinDeposit" }, fetchConfig);
560
+ this.onMoveEvent(
561
+ func,
562
+ { ...(eventFilter ?? {}), type: "coin::CoinDeposit" },
563
+ fetchConfig,
564
+ );
540
565
  return this;
541
566
  }
542
567
 
@@ -546,10 +571,11 @@ export class coin extends AptosBaseProcessor {
546
571
  ctx: AptosContext,
547
572
  ) => void,
548
573
  fetchConfig?: Partial<MoveFetchConfig>,
574
+ eventFilter?: Omit<EventFilter, "type" | "account">,
549
575
  ): coin {
550
576
  this.onMoveEvent(
551
577
  func,
552
- { type: "coin::CoinEventHandleDeletion" },
578
+ { ...(eventFilter ?? {}), type: "coin::CoinEventHandleDeletion" },
553
579
  fetchConfig,
554
580
  );
555
581
  return this;
@@ -558,16 +584,26 @@ export class coin extends AptosBaseProcessor {
558
584
  onEventCoinWithdraw(
559
585
  func: (event: coin.CoinWithdrawInstance, ctx: AptosContext) => void,
560
586
  fetchConfig?: Partial<MoveFetchConfig>,
587
+ eventFilter?: Omit<EventFilter, "type" | "account">,
561
588
  ): coin {
562
- this.onMoveEvent(func, { type: "coin::CoinWithdraw" }, fetchConfig);
589
+ this.onMoveEvent(
590
+ func,
591
+ { ...(eventFilter ?? {}), type: "coin::CoinWithdraw" },
592
+ fetchConfig,
593
+ );
563
594
  return this;
564
595
  }
565
596
 
566
597
  onEventPairCreation(
567
598
  func: (event: coin.PairCreationInstance, ctx: AptosContext) => void,
568
599
  fetchConfig?: Partial<MoveFetchConfig>,
600
+ eventFilter?: Omit<EventFilter, "type" | "account">,
569
601
  ): coin {
570
- this.onMoveEvent(func, { type: "coin::PairCreation" }, fetchConfig);
602
+ this.onMoveEvent(
603
+ func,
604
+ { ...(eventFilter ?? {}), type: "coin::PairCreation" },
605
+ fetchConfig,
606
+ );
571
607
  return this;
572
608
  }
573
609
  }
@@ -1624,8 +1660,13 @@ export class jwks extends AptosBaseProcessor {
1624
1660
  onEventObservedJWKsUpdated(
1625
1661
  func: (event: jwks.ObservedJWKsUpdatedInstance, ctx: AptosContext) => void,
1626
1662
  fetchConfig?: Partial<MoveFetchConfig>,
1663
+ eventFilter?: Omit<EventFilter, "type" | "account">,
1627
1664
  ): jwks {
1628
- this.onMoveEvent(func, { type: "jwks::ObservedJWKsUpdated" }, fetchConfig);
1665
+ this.onMoveEvent(
1666
+ func,
1667
+ { ...(eventFilter ?? {}), type: "jwks::ObservedJWKsUpdated" },
1668
+ fetchConfig,
1669
+ );
1629
1670
  return this;
1630
1671
  }
1631
1672
  }
@@ -1952,24 +1993,39 @@ export class block extends AptosBaseProcessor {
1952
1993
  onEventNewBlock(
1953
1994
  func: (event: block.NewBlockInstance, ctx: AptosContext) => void,
1954
1995
  fetchConfig?: Partial<MoveFetchConfig>,
1996
+ eventFilter?: Omit<EventFilter, "type" | "account">,
1955
1997
  ): block {
1956
- this.onMoveEvent(func, { type: "block::NewBlock" }, fetchConfig);
1998
+ this.onMoveEvent(
1999
+ func,
2000
+ { ...(eventFilter ?? {}), type: "block::NewBlock" },
2001
+ fetchConfig,
2002
+ );
1957
2003
  return this;
1958
2004
  }
1959
2005
 
1960
2006
  onEventNewBlockEvent(
1961
2007
  func: (event: block.NewBlockEventInstance, ctx: AptosContext) => void,
1962
2008
  fetchConfig?: Partial<MoveFetchConfig>,
2009
+ eventFilter?: Omit<EventFilter, "type" | "account">,
1963
2010
  ): block {
1964
- this.onMoveEvent(func, { type: "block::NewBlockEvent" }, fetchConfig);
2011
+ this.onMoveEvent(
2012
+ func,
2013
+ { ...(eventFilter ?? {}), type: "block::NewBlockEvent" },
2014
+ fetchConfig,
2015
+ );
1965
2016
  return this;
1966
2017
  }
1967
2018
 
1968
2019
  onEventUpdateEpochInterval(
1969
2020
  func: (event: block.UpdateEpochIntervalInstance, ctx: AptosContext) => void,
1970
2021
  fetchConfig?: Partial<MoveFetchConfig>,
2022
+ eventFilter?: Omit<EventFilter, "type" | "account">,
1971
2023
  ): block {
1972
- this.onMoveEvent(func, { type: "block::UpdateEpochInterval" }, fetchConfig);
2024
+ this.onMoveEvent(
2025
+ func,
2026
+ { ...(eventFilter ?? {}), type: "block::UpdateEpochInterval" },
2027
+ fetchConfig,
2028
+ );
1973
2029
  return this;
1974
2030
  }
1975
2031
 
@@ -1979,10 +2035,11 @@ export class block extends AptosBaseProcessor {
1979
2035
  ctx: AptosContext,
1980
2036
  ) => void,
1981
2037
  fetchConfig?: Partial<MoveFetchConfig>,
2038
+ eventFilter?: Omit<EventFilter, "type" | "account">,
1982
2039
  ): block {
1983
2040
  this.onMoveEvent(
1984
2041
  func,
1985
- { type: "block::UpdateEpochIntervalEvent" },
2042
+ { ...(eventFilter ?? {}), type: "block::UpdateEpochIntervalEvent" },
1986
2043
  fetchConfig,
1987
2044
  );
1988
2045
  return this;
@@ -2425,24 +2482,39 @@ export class stake extends AptosBaseProcessor {
2425
2482
  onEventAddStake(
2426
2483
  func: (event: stake.AddStakeInstance, ctx: AptosContext) => void,
2427
2484
  fetchConfig?: Partial<MoveFetchConfig>,
2485
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2428
2486
  ): stake {
2429
- this.onMoveEvent(func, { type: "stake::AddStake" }, fetchConfig);
2487
+ this.onMoveEvent(
2488
+ func,
2489
+ { ...(eventFilter ?? {}), type: "stake::AddStake" },
2490
+ fetchConfig,
2491
+ );
2430
2492
  return this;
2431
2493
  }
2432
2494
 
2433
2495
  onEventAddStakeEvent(
2434
2496
  func: (event: stake.AddStakeEventInstance, ctx: AptosContext) => void,
2435
2497
  fetchConfig?: Partial<MoveFetchConfig>,
2498
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2436
2499
  ): stake {
2437
- this.onMoveEvent(func, { type: "stake::AddStakeEvent" }, fetchConfig);
2500
+ this.onMoveEvent(
2501
+ func,
2502
+ { ...(eventFilter ?? {}), type: "stake::AddStakeEvent" },
2503
+ fetchConfig,
2504
+ );
2438
2505
  return this;
2439
2506
  }
2440
2507
 
2441
2508
  onEventDistributeRewards(
2442
2509
  func: (event: stake.DistributeRewardsInstance, ctx: AptosContext) => void,
2443
2510
  fetchConfig?: Partial<MoveFetchConfig>,
2511
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2444
2512
  ): stake {
2445
- this.onMoveEvent(func, { type: "stake::DistributeRewards" }, fetchConfig);
2513
+ this.onMoveEvent(
2514
+ func,
2515
+ { ...(eventFilter ?? {}), type: "stake::DistributeRewards" },
2516
+ fetchConfig,
2517
+ );
2446
2518
  return this;
2447
2519
  }
2448
2520
 
@@ -2452,10 +2524,11 @@ export class stake extends AptosBaseProcessor {
2452
2524
  ctx: AptosContext,
2453
2525
  ) => void,
2454
2526
  fetchConfig?: Partial<MoveFetchConfig>,
2527
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2455
2528
  ): stake {
2456
2529
  this.onMoveEvent(
2457
2530
  func,
2458
- { type: "stake::DistributeRewardsEvent" },
2531
+ { ...(eventFilter ?? {}), type: "stake::DistributeRewardsEvent" },
2459
2532
  fetchConfig,
2460
2533
  );
2461
2534
  return this;
@@ -2464,24 +2537,39 @@ export class stake extends AptosBaseProcessor {
2464
2537
  onEventIncreaseLockup(
2465
2538
  func: (event: stake.IncreaseLockupInstance, ctx: AptosContext) => void,
2466
2539
  fetchConfig?: Partial<MoveFetchConfig>,
2540
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2467
2541
  ): stake {
2468
- this.onMoveEvent(func, { type: "stake::IncreaseLockup" }, fetchConfig);
2542
+ this.onMoveEvent(
2543
+ func,
2544
+ { ...(eventFilter ?? {}), type: "stake::IncreaseLockup" },
2545
+ fetchConfig,
2546
+ );
2469
2547
  return this;
2470
2548
  }
2471
2549
 
2472
2550
  onEventIncreaseLockupEvent(
2473
2551
  func: (event: stake.IncreaseLockupEventInstance, ctx: AptosContext) => void,
2474
2552
  fetchConfig?: Partial<MoveFetchConfig>,
2553
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2475
2554
  ): stake {
2476
- this.onMoveEvent(func, { type: "stake::IncreaseLockupEvent" }, fetchConfig);
2555
+ this.onMoveEvent(
2556
+ func,
2557
+ { ...(eventFilter ?? {}), type: "stake::IncreaseLockupEvent" },
2558
+ fetchConfig,
2559
+ );
2477
2560
  return this;
2478
2561
  }
2479
2562
 
2480
2563
  onEventJoinValidatorSet(
2481
2564
  func: (event: stake.JoinValidatorSetInstance, ctx: AptosContext) => void,
2482
2565
  fetchConfig?: Partial<MoveFetchConfig>,
2566
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2483
2567
  ): stake {
2484
- this.onMoveEvent(func, { type: "stake::JoinValidatorSet" }, fetchConfig);
2568
+ this.onMoveEvent(
2569
+ func,
2570
+ { ...(eventFilter ?? {}), type: "stake::JoinValidatorSet" },
2571
+ fetchConfig,
2572
+ );
2485
2573
  return this;
2486
2574
  }
2487
2575
 
@@ -2491,10 +2579,11 @@ export class stake extends AptosBaseProcessor {
2491
2579
  ctx: AptosContext,
2492
2580
  ) => void,
2493
2581
  fetchConfig?: Partial<MoveFetchConfig>,
2582
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2494
2583
  ): stake {
2495
2584
  this.onMoveEvent(
2496
2585
  func,
2497
- { type: "stake::JoinValidatorSetEvent" },
2586
+ { ...(eventFilter ?? {}), type: "stake::JoinValidatorSetEvent" },
2498
2587
  fetchConfig,
2499
2588
  );
2500
2589
  return this;
@@ -2503,8 +2592,13 @@ export class stake extends AptosBaseProcessor {
2503
2592
  onEventLeaveValidatorSet(
2504
2593
  func: (event: stake.LeaveValidatorSetInstance, ctx: AptosContext) => void,
2505
2594
  fetchConfig?: Partial<MoveFetchConfig>,
2595
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2506
2596
  ): stake {
2507
- this.onMoveEvent(func, { type: "stake::LeaveValidatorSet" }, fetchConfig);
2597
+ this.onMoveEvent(
2598
+ func,
2599
+ { ...(eventFilter ?? {}), type: "stake::LeaveValidatorSet" },
2600
+ fetchConfig,
2601
+ );
2508
2602
  return this;
2509
2603
  }
2510
2604
 
@@ -2514,10 +2608,11 @@ export class stake extends AptosBaseProcessor {
2514
2608
  ctx: AptosContext,
2515
2609
  ) => void,
2516
2610
  fetchConfig?: Partial<MoveFetchConfig>,
2611
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2517
2612
  ): stake {
2518
2613
  this.onMoveEvent(
2519
2614
  func,
2520
- { type: "stake::LeaveValidatorSetEvent" },
2615
+ { ...(eventFilter ?? {}), type: "stake::LeaveValidatorSetEvent" },
2521
2616
  fetchConfig,
2522
2617
  );
2523
2618
  return this;
@@ -2526,8 +2621,13 @@ export class stake extends AptosBaseProcessor {
2526
2621
  onEventReactivateStake(
2527
2622
  func: (event: stake.ReactivateStakeInstance, ctx: AptosContext) => void,
2528
2623
  fetchConfig?: Partial<MoveFetchConfig>,
2624
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2529
2625
  ): stake {
2530
- this.onMoveEvent(func, { type: "stake::ReactivateStake" }, fetchConfig);
2626
+ this.onMoveEvent(
2627
+ func,
2628
+ { ...(eventFilter ?? {}), type: "stake::ReactivateStake" },
2629
+ fetchConfig,
2630
+ );
2531
2631
  return this;
2532
2632
  }
2533
2633
 
@@ -2537,10 +2637,11 @@ export class stake extends AptosBaseProcessor {
2537
2637
  ctx: AptosContext,
2538
2638
  ) => void,
2539
2639
  fetchConfig?: Partial<MoveFetchConfig>,
2640
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2540
2641
  ): stake {
2541
2642
  this.onMoveEvent(
2542
2643
  func,
2543
- { type: "stake::ReactivateStakeEvent" },
2644
+ { ...(eventFilter ?? {}), type: "stake::ReactivateStakeEvent" },
2544
2645
  fetchConfig,
2545
2646
  );
2546
2647
  return this;
@@ -2552,10 +2653,11 @@ export class stake extends AptosBaseProcessor {
2552
2653
  ctx: AptosContext,
2553
2654
  ) => void,
2554
2655
  fetchConfig?: Partial<MoveFetchConfig>,
2656
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2555
2657
  ): stake {
2556
2658
  this.onMoveEvent(
2557
2659
  func,
2558
- { type: "stake::RegisterValidatorCandidate" },
2660
+ { ...(eventFilter ?? {}), type: "stake::RegisterValidatorCandidate" },
2559
2661
  fetchConfig,
2560
2662
  );
2561
2663
  return this;
@@ -2567,10 +2669,14 @@ export class stake extends AptosBaseProcessor {
2567
2669
  ctx: AptosContext,
2568
2670
  ) => void,
2569
2671
  fetchConfig?: Partial<MoveFetchConfig>,
2672
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2570
2673
  ): stake {
2571
2674
  this.onMoveEvent(
2572
2675
  func,
2573
- { type: "stake::RegisterValidatorCandidateEvent" },
2676
+ {
2677
+ ...(eventFilter ?? {}),
2678
+ type: "stake::RegisterValidatorCandidateEvent",
2679
+ },
2574
2680
  fetchConfig,
2575
2681
  );
2576
2682
  return this;
@@ -2579,8 +2685,13 @@ export class stake extends AptosBaseProcessor {
2579
2685
  onEventRotateConsensusKey(
2580
2686
  func: (event: stake.RotateConsensusKeyInstance, ctx: AptosContext) => void,
2581
2687
  fetchConfig?: Partial<MoveFetchConfig>,
2688
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2582
2689
  ): stake {
2583
- this.onMoveEvent(func, { type: "stake::RotateConsensusKey" }, fetchConfig);
2690
+ this.onMoveEvent(
2691
+ func,
2692
+ { ...(eventFilter ?? {}), type: "stake::RotateConsensusKey" },
2693
+ fetchConfig,
2694
+ );
2584
2695
  return this;
2585
2696
  }
2586
2697
 
@@ -2590,10 +2701,11 @@ export class stake extends AptosBaseProcessor {
2590
2701
  ctx: AptosContext,
2591
2702
  ) => void,
2592
2703
  fetchConfig?: Partial<MoveFetchConfig>,
2704
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2593
2705
  ): stake {
2594
2706
  this.onMoveEvent(
2595
2707
  func,
2596
- { type: "stake::RotateConsensusKeyEvent" },
2708
+ { ...(eventFilter ?? {}), type: "stake::RotateConsensusKeyEvent" },
2597
2709
  fetchConfig,
2598
2710
  );
2599
2711
  return this;
@@ -2602,32 +2714,52 @@ export class stake extends AptosBaseProcessor {
2602
2714
  onEventSetOperator(
2603
2715
  func: (event: stake.SetOperatorInstance, ctx: AptosContext) => void,
2604
2716
  fetchConfig?: Partial<MoveFetchConfig>,
2717
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2605
2718
  ): stake {
2606
- this.onMoveEvent(func, { type: "stake::SetOperator" }, fetchConfig);
2719
+ this.onMoveEvent(
2720
+ func,
2721
+ { ...(eventFilter ?? {}), type: "stake::SetOperator" },
2722
+ fetchConfig,
2723
+ );
2607
2724
  return this;
2608
2725
  }
2609
2726
 
2610
2727
  onEventSetOperatorEvent(
2611
2728
  func: (event: stake.SetOperatorEventInstance, ctx: AptosContext) => void,
2612
2729
  fetchConfig?: Partial<MoveFetchConfig>,
2730
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2613
2731
  ): stake {
2614
- this.onMoveEvent(func, { type: "stake::SetOperatorEvent" }, fetchConfig);
2732
+ this.onMoveEvent(
2733
+ func,
2734
+ { ...(eventFilter ?? {}), type: "stake::SetOperatorEvent" },
2735
+ fetchConfig,
2736
+ );
2615
2737
  return this;
2616
2738
  }
2617
2739
 
2618
2740
  onEventUnlockStake(
2619
2741
  func: (event: stake.UnlockStakeInstance, ctx: AptosContext) => void,
2620
2742
  fetchConfig?: Partial<MoveFetchConfig>,
2743
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2621
2744
  ): stake {
2622
- this.onMoveEvent(func, { type: "stake::UnlockStake" }, fetchConfig);
2745
+ this.onMoveEvent(
2746
+ func,
2747
+ { ...(eventFilter ?? {}), type: "stake::UnlockStake" },
2748
+ fetchConfig,
2749
+ );
2623
2750
  return this;
2624
2751
  }
2625
2752
 
2626
2753
  onEventUnlockStakeEvent(
2627
2754
  func: (event: stake.UnlockStakeEventInstance, ctx: AptosContext) => void,
2628
2755
  fetchConfig?: Partial<MoveFetchConfig>,
2756
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2629
2757
  ): stake {
2630
- this.onMoveEvent(func, { type: "stake::UnlockStakeEvent" }, fetchConfig);
2758
+ this.onMoveEvent(
2759
+ func,
2760
+ { ...(eventFilter ?? {}), type: "stake::UnlockStakeEvent" },
2761
+ fetchConfig,
2762
+ );
2631
2763
  return this;
2632
2764
  }
2633
2765
 
@@ -2637,10 +2769,14 @@ export class stake extends AptosBaseProcessor {
2637
2769
  ctx: AptosContext,
2638
2770
  ) => void,
2639
2771
  fetchConfig?: Partial<MoveFetchConfig>,
2772
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2640
2773
  ): stake {
2641
2774
  this.onMoveEvent(
2642
2775
  func,
2643
- { type: "stake::UpdateNetworkAndFullnodeAddresses" },
2776
+ {
2777
+ ...(eventFilter ?? {}),
2778
+ type: "stake::UpdateNetworkAndFullnodeAddresses",
2779
+ },
2644
2780
  fetchConfig,
2645
2781
  );
2646
2782
  return this;
@@ -2652,10 +2788,14 @@ export class stake extends AptosBaseProcessor {
2652
2788
  ctx: AptosContext,
2653
2789
  ) => void,
2654
2790
  fetchConfig?: Partial<MoveFetchConfig>,
2791
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2655
2792
  ): stake {
2656
2793
  this.onMoveEvent(
2657
2794
  func,
2658
- { type: "stake::UpdateNetworkAndFullnodeAddressesEvent" },
2795
+ {
2796
+ ...(eventFilter ?? {}),
2797
+ type: "stake::UpdateNetworkAndFullnodeAddressesEvent",
2798
+ },
2659
2799
  fetchConfig,
2660
2800
  );
2661
2801
  return this;
@@ -2664,16 +2804,26 @@ export class stake extends AptosBaseProcessor {
2664
2804
  onEventWithdrawStake(
2665
2805
  func: (event: stake.WithdrawStakeInstance, ctx: AptosContext) => void,
2666
2806
  fetchConfig?: Partial<MoveFetchConfig>,
2807
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2667
2808
  ): stake {
2668
- this.onMoveEvent(func, { type: "stake::WithdrawStake" }, fetchConfig);
2809
+ this.onMoveEvent(
2810
+ func,
2811
+ { ...(eventFilter ?? {}), type: "stake::WithdrawStake" },
2812
+ fetchConfig,
2813
+ );
2669
2814
  return this;
2670
2815
  }
2671
2816
 
2672
2817
  onEventWithdrawStakeEvent(
2673
2818
  func: (event: stake.WithdrawStakeEventInstance, ctx: AptosContext) => void,
2674
2819
  fetchConfig?: Partial<MoveFetchConfig>,
2820
+ eventFilter?: Omit<EventFilter, "type" | "account">,
2675
2821
  ): stake {
2676
- this.onMoveEvent(func, { type: "stake::WithdrawStakeEvent" }, fetchConfig);
2822
+ this.onMoveEvent(
2823
+ func,
2824
+ { ...(eventFilter ?? {}), type: "stake::WithdrawStakeEvent" },
2825
+ fetchConfig,
2826
+ );
2677
2827
  return this;
2678
2828
  }
2679
2829
  }
@@ -4176,16 +4326,26 @@ export class object$ extends AptosBaseProcessor {
4176
4326
  onEventTransfer(
4177
4327
  func: (event: object$.TransferInstance, ctx: AptosContext) => void,
4178
4328
  fetchConfig?: Partial<MoveFetchConfig>,
4329
+ eventFilter?: Omit<EventFilter, "type" | "account">,
4179
4330
  ): object$ {
4180
- this.onMoveEvent(func, { type: "object::Transfer" }, fetchConfig);
4331
+ this.onMoveEvent(
4332
+ func,
4333
+ { ...(eventFilter ?? {}), type: "object::Transfer" },
4334
+ fetchConfig,
4335
+ );
4181
4336
  return this;
4182
4337
  }
4183
4338
 
4184
4339
  onEventTransferEvent(
4185
4340
  func: (event: object$.TransferEventInstance, ctx: AptosContext) => void,
4186
4341
  fetchConfig?: Partial<MoveFetchConfig>,
4342
+ eventFilter?: Omit<EventFilter, "type" | "account">,
4187
4343
  ): object$ {
4188
- this.onMoveEvent(func, { type: "object::TransferEvent" }, fetchConfig);
4344
+ this.onMoveEvent(
4345
+ func,
4346
+ { ...(eventFilter ?? {}), type: "object::TransferEvent" },
4347
+ fetchConfig,
4348
+ );
4189
4349
  return this;
4190
4350
  }
4191
4351
  }
@@ -4663,8 +4823,13 @@ export class voting extends AptosBaseProcessor {
4663
4823
  onEventCreateProposal(
4664
4824
  func: (event: voting.CreateProposalInstance, ctx: AptosContext) => void,
4665
4825
  fetchConfig?: Partial<MoveFetchConfig>,
4826
+ eventFilter?: Omit<EventFilter, "type" | "account">,
4666
4827
  ): voting {
4667
- this.onMoveEvent(func, { type: "voting::CreateProposal" }, fetchConfig);
4828
+ this.onMoveEvent(
4829
+ func,
4830
+ { ...(eventFilter ?? {}), type: "voting::CreateProposal" },
4831
+ fetchConfig,
4832
+ );
4668
4833
  return this;
4669
4834
  }
4670
4835
 
@@ -4674,10 +4839,11 @@ export class voting extends AptosBaseProcessor {
4674
4839
  ctx: AptosContext,
4675
4840
  ) => void,
4676
4841
  fetchConfig?: Partial<MoveFetchConfig>,
4842
+ eventFilter?: Omit<EventFilter, "type" | "account">,
4677
4843
  ): voting {
4678
4844
  this.onMoveEvent(
4679
4845
  func,
4680
- { type: "voting::CreateProposalEvent" },
4846
+ { ...(eventFilter ?? {}), type: "voting::CreateProposalEvent" },
4681
4847
  fetchConfig,
4682
4848
  );
4683
4849
  return this;
@@ -4686,40 +4852,65 @@ export class voting extends AptosBaseProcessor {
4686
4852
  onEventRegisterForum(
4687
4853
  func: (event: voting.RegisterForumInstance, ctx: AptosContext) => void,
4688
4854
  fetchConfig?: Partial<MoveFetchConfig>,
4855
+ eventFilter?: Omit<EventFilter, "type" | "account">,
4689
4856
  ): voting {
4690
- this.onMoveEvent(func, { type: "voting::RegisterForum" }, fetchConfig);
4857
+ this.onMoveEvent(
4858
+ func,
4859
+ { ...(eventFilter ?? {}), type: "voting::RegisterForum" },
4860
+ fetchConfig,
4861
+ );
4691
4862
  return this;
4692
4863
  }
4693
4864
 
4694
4865
  onEventRegisterForumEvent(
4695
4866
  func: (event: voting.RegisterForumEventInstance, ctx: AptosContext) => void,
4696
4867
  fetchConfig?: Partial<MoveFetchConfig>,
4868
+ eventFilter?: Omit<EventFilter, "type" | "account">,
4697
4869
  ): voting {
4698
- this.onMoveEvent(func, { type: "voting::RegisterForumEvent" }, fetchConfig);
4870
+ this.onMoveEvent(
4871
+ func,
4872
+ { ...(eventFilter ?? {}), type: "voting::RegisterForumEvent" },
4873
+ fetchConfig,
4874
+ );
4699
4875
  return this;
4700
4876
  }
4701
4877
 
4702
4878
  onEventResolveProposal(
4703
4879
  func: (event: voting.ResolveProposalInstance, ctx: AptosContext) => void,
4704
4880
  fetchConfig?: Partial<MoveFetchConfig>,
4881
+ eventFilter?: Omit<EventFilter, "type" | "account">,
4705
4882
  ): voting {
4706
- this.onMoveEvent(func, { type: "voting::ResolveProposal" }, fetchConfig);
4883
+ this.onMoveEvent(
4884
+ func,
4885
+ { ...(eventFilter ?? {}), type: "voting::ResolveProposal" },
4886
+ fetchConfig,
4887
+ );
4707
4888
  return this;
4708
4889
  }
4709
4890
 
4710
4891
  onEventVote(
4711
4892
  func: (event: voting.VoteInstance, ctx: AptosContext) => void,
4712
4893
  fetchConfig?: Partial<MoveFetchConfig>,
4894
+ eventFilter?: Omit<EventFilter, "type" | "account">,
4713
4895
  ): voting {
4714
- this.onMoveEvent(func, { type: "voting::Vote" }, fetchConfig);
4896
+ this.onMoveEvent(
4897
+ func,
4898
+ { ...(eventFilter ?? {}), type: "voting::Vote" },
4899
+ fetchConfig,
4900
+ );
4715
4901
  return this;
4716
4902
  }
4717
4903
 
4718
4904
  onEventVoteEvent(
4719
4905
  func: (event: voting.VoteEventInstance, ctx: AptosContext) => void,
4720
4906
  fetchConfig?: Partial<MoveFetchConfig>,
4907
+ eventFilter?: Omit<EventFilter, "type" | "account">,
4721
4908
  ): voting {
4722
- this.onMoveEvent(func, { type: "voting::VoteEvent" }, fetchConfig);
4909
+ this.onMoveEvent(
4910
+ func,
4911
+ { ...(eventFilter ?? {}), type: "voting::VoteEvent" },
4912
+ fetchConfig,
4913
+ );
4723
4914
  return this;
4724
4915
  }
4725
4916
  }
@@ -5491,32 +5682,52 @@ export class account extends AptosBaseProcessor {
5491
5682
  onEventCoinRegister(
5492
5683
  func: (event: account.CoinRegisterInstance, ctx: AptosContext) => void,
5493
5684
  fetchConfig?: Partial<MoveFetchConfig>,
5685
+ eventFilter?: Omit<EventFilter, "type" | "account">,
5494
5686
  ): account {
5495
- this.onMoveEvent(func, { type: "account::CoinRegister" }, fetchConfig);
5687
+ this.onMoveEvent(
5688
+ func,
5689
+ { ...(eventFilter ?? {}), type: "account::CoinRegister" },
5690
+ fetchConfig,
5691
+ );
5496
5692
  return this;
5497
5693
  }
5498
5694
 
5499
5695
  onEventCoinRegisterEvent(
5500
5696
  func: (event: account.CoinRegisterEventInstance, ctx: AptosContext) => void,
5501
5697
  fetchConfig?: Partial<MoveFetchConfig>,
5698
+ eventFilter?: Omit<EventFilter, "type" | "account">,
5502
5699
  ): account {
5503
- this.onMoveEvent(func, { type: "account::CoinRegisterEvent" }, fetchConfig);
5700
+ this.onMoveEvent(
5701
+ func,
5702
+ { ...(eventFilter ?? {}), type: "account::CoinRegisterEvent" },
5703
+ fetchConfig,
5704
+ );
5504
5705
  return this;
5505
5706
  }
5506
5707
 
5507
5708
  onEventKeyRotation(
5508
5709
  func: (event: account.KeyRotationInstance, ctx: AptosContext) => void,
5509
5710
  fetchConfig?: Partial<MoveFetchConfig>,
5711
+ eventFilter?: Omit<EventFilter, "type" | "account">,
5510
5712
  ): account {
5511
- this.onMoveEvent(func, { type: "account::KeyRotation" }, fetchConfig);
5713
+ this.onMoveEvent(
5714
+ func,
5715
+ { ...(eventFilter ?? {}), type: "account::KeyRotation" },
5716
+ fetchConfig,
5717
+ );
5512
5718
  return this;
5513
5719
  }
5514
5720
 
5515
5721
  onEventKeyRotationEvent(
5516
5722
  func: (event: account.KeyRotationEventInstance, ctx: AptosContext) => void,
5517
5723
  fetchConfig?: Partial<MoveFetchConfig>,
5724
+ eventFilter?: Omit<EventFilter, "type" | "account">,
5518
5725
  ): account {
5519
- this.onMoveEvent(func, { type: "account::KeyRotationEvent" }, fetchConfig);
5726
+ this.onMoveEvent(
5727
+ func,
5728
+ { ...(eventFilter ?? {}), type: "account::KeyRotationEvent" },
5729
+ fetchConfig,
5730
+ );
5520
5731
  return this;
5521
5732
  }
5522
5733
  }
@@ -6915,56 +7126,91 @@ export class vesting extends AptosBaseProcessor {
6915
7126
  onEventDistribute(
6916
7127
  func: (event: vesting.DistributeInstance, ctx: AptosContext) => void,
6917
7128
  fetchConfig?: Partial<MoveFetchConfig>,
7129
+ eventFilter?: Omit<EventFilter, "type" | "account">,
6918
7130
  ): vesting {
6919
- this.onMoveEvent(func, { type: "vesting::Distribute" }, fetchConfig);
7131
+ this.onMoveEvent(
7132
+ func,
7133
+ { ...(eventFilter ?? {}), type: "vesting::Distribute" },
7134
+ fetchConfig,
7135
+ );
6920
7136
  return this;
6921
7137
  }
6922
7138
 
6923
7139
  onEventDistributeEvent(
6924
7140
  func: (event: vesting.DistributeEventInstance, ctx: AptosContext) => void,
6925
7141
  fetchConfig?: Partial<MoveFetchConfig>,
7142
+ eventFilter?: Omit<EventFilter, "type" | "account">,
6926
7143
  ): vesting {
6927
- this.onMoveEvent(func, { type: "vesting::DistributeEvent" }, fetchConfig);
7144
+ this.onMoveEvent(
7145
+ func,
7146
+ { ...(eventFilter ?? {}), type: "vesting::DistributeEvent" },
7147
+ fetchConfig,
7148
+ );
6928
7149
  return this;
6929
7150
  }
6930
7151
 
6931
7152
  onEventResetLockup(
6932
7153
  func: (event: vesting.ResetLockupInstance, ctx: AptosContext) => void,
6933
7154
  fetchConfig?: Partial<MoveFetchConfig>,
7155
+ eventFilter?: Omit<EventFilter, "type" | "account">,
6934
7156
  ): vesting {
6935
- this.onMoveEvent(func, { type: "vesting::ResetLockup" }, fetchConfig);
7157
+ this.onMoveEvent(
7158
+ func,
7159
+ { ...(eventFilter ?? {}), type: "vesting::ResetLockup" },
7160
+ fetchConfig,
7161
+ );
6936
7162
  return this;
6937
7163
  }
6938
7164
 
6939
7165
  onEventResetLockupEvent(
6940
7166
  func: (event: vesting.ResetLockupEventInstance, ctx: AptosContext) => void,
6941
7167
  fetchConfig?: Partial<MoveFetchConfig>,
7168
+ eventFilter?: Omit<EventFilter, "type" | "account">,
6942
7169
  ): vesting {
6943
- this.onMoveEvent(func, { type: "vesting::ResetLockupEvent" }, fetchConfig);
7170
+ this.onMoveEvent(
7171
+ func,
7172
+ { ...(eventFilter ?? {}), type: "vesting::ResetLockupEvent" },
7173
+ fetchConfig,
7174
+ );
6944
7175
  return this;
6945
7176
  }
6946
7177
 
6947
7178
  onEventUpdateVoter(
6948
7179
  func: (event: vesting.UpdateVoterInstance, ctx: AptosContext) => void,
6949
7180
  fetchConfig?: Partial<MoveFetchConfig>,
7181
+ eventFilter?: Omit<EventFilter, "type" | "account">,
6950
7182
  ): vesting {
6951
- this.onMoveEvent(func, { type: "vesting::UpdateVoter" }, fetchConfig);
7183
+ this.onMoveEvent(
7184
+ func,
7185
+ { ...(eventFilter ?? {}), type: "vesting::UpdateVoter" },
7186
+ fetchConfig,
7187
+ );
6952
7188
  return this;
6953
7189
  }
6954
7190
 
6955
7191
  onEventUpdateVoterEvent(
6956
7192
  func: (event: vesting.UpdateVoterEventInstance, ctx: AptosContext) => void,
6957
7193
  fetchConfig?: Partial<MoveFetchConfig>,
7194
+ eventFilter?: Omit<EventFilter, "type" | "account">,
6958
7195
  ): vesting {
6959
- this.onMoveEvent(func, { type: "vesting::UpdateVoterEvent" }, fetchConfig);
7196
+ this.onMoveEvent(
7197
+ func,
7198
+ { ...(eventFilter ?? {}), type: "vesting::UpdateVoterEvent" },
7199
+ fetchConfig,
7200
+ );
6960
7201
  return this;
6961
7202
  }
6962
7203
 
6963
7204
  onEventAdminWithdraw(
6964
7205
  func: (event: vesting.AdminWithdrawInstance, ctx: AptosContext) => void,
6965
7206
  fetchConfig?: Partial<MoveFetchConfig>,
7207
+ eventFilter?: Omit<EventFilter, "type" | "account">,
6966
7208
  ): vesting {
6967
- this.onMoveEvent(func, { type: "vesting::AdminWithdraw" }, fetchConfig);
7209
+ this.onMoveEvent(
7210
+ func,
7211
+ { ...(eventFilter ?? {}), type: "vesting::AdminWithdraw" },
7212
+ fetchConfig,
7213
+ );
6968
7214
  return this;
6969
7215
  }
6970
7216
 
@@ -6974,10 +7220,11 @@ export class vesting extends AptosBaseProcessor {
6974
7220
  ctx: AptosContext,
6975
7221
  ) => void,
6976
7222
  fetchConfig?: Partial<MoveFetchConfig>,
7223
+ eventFilter?: Omit<EventFilter, "type" | "account">,
6977
7224
  ): vesting {
6978
7225
  this.onMoveEvent(
6979
7226
  func,
6980
- { type: "vesting::AdminWithdrawEvent" },
7227
+ { ...(eventFilter ?? {}), type: "vesting::AdminWithdrawEvent" },
6981
7228
  fetchConfig,
6982
7229
  );
6983
7230
  return this;
@@ -6989,10 +7236,11 @@ export class vesting extends AptosBaseProcessor {
6989
7236
  ctx: AptosContext,
6990
7237
  ) => void,
6991
7238
  fetchConfig?: Partial<MoveFetchConfig>,
7239
+ eventFilter?: Omit<EventFilter, "type" | "account">,
6992
7240
  ): vesting {
6993
7241
  this.onMoveEvent(
6994
7242
  func,
6995
- { type: "vesting::CreateVestingContract" },
7243
+ { ...(eventFilter ?? {}), type: "vesting::CreateVestingContract" },
6996
7244
  fetchConfig,
6997
7245
  );
6998
7246
  return this;
@@ -7004,10 +7252,11 @@ export class vesting extends AptosBaseProcessor {
7004
7252
  ctx: AptosContext,
7005
7253
  ) => void,
7006
7254
  fetchConfig?: Partial<MoveFetchConfig>,
7255
+ eventFilter?: Omit<EventFilter, "type" | "account">,
7007
7256
  ): vesting {
7008
7257
  this.onMoveEvent(
7009
7258
  func,
7010
- { type: "vesting::CreateVestingContractEvent" },
7259
+ { ...(eventFilter ?? {}), type: "vesting::CreateVestingContractEvent" },
7011
7260
  fetchConfig,
7012
7261
  );
7013
7262
  return this;
@@ -7016,8 +7265,13 @@ export class vesting extends AptosBaseProcessor {
7016
7265
  onEventSetBeneficiary(
7017
7266
  func: (event: vesting.SetBeneficiaryInstance, ctx: AptosContext) => void,
7018
7267
  fetchConfig?: Partial<MoveFetchConfig>,
7268
+ eventFilter?: Omit<EventFilter, "type" | "account">,
7019
7269
  ): vesting {
7020
- this.onMoveEvent(func, { type: "vesting::SetBeneficiary" }, fetchConfig);
7270
+ this.onMoveEvent(
7271
+ func,
7272
+ { ...(eventFilter ?? {}), type: "vesting::SetBeneficiary" },
7273
+ fetchConfig,
7274
+ );
7021
7275
  return this;
7022
7276
  }
7023
7277
 
@@ -7027,10 +7281,11 @@ export class vesting extends AptosBaseProcessor {
7027
7281
  ctx: AptosContext,
7028
7282
  ) => void,
7029
7283
  fetchConfig?: Partial<MoveFetchConfig>,
7284
+ eventFilter?: Omit<EventFilter, "type" | "account">,
7030
7285
  ): vesting {
7031
7286
  this.onMoveEvent(
7032
7287
  func,
7033
- { type: "vesting::SetBeneficiaryEvent" },
7288
+ { ...(eventFilter ?? {}), type: "vesting::SetBeneficiaryEvent" },
7034
7289
  fetchConfig,
7035
7290
  );
7036
7291
  return this;
@@ -7039,24 +7294,39 @@ export class vesting extends AptosBaseProcessor {
7039
7294
  onEventTerminate(
7040
7295
  func: (event: vesting.TerminateInstance, ctx: AptosContext) => void,
7041
7296
  fetchConfig?: Partial<MoveFetchConfig>,
7297
+ eventFilter?: Omit<EventFilter, "type" | "account">,
7042
7298
  ): vesting {
7043
- this.onMoveEvent(func, { type: "vesting::Terminate" }, fetchConfig);
7299
+ this.onMoveEvent(
7300
+ func,
7301
+ { ...(eventFilter ?? {}), type: "vesting::Terminate" },
7302
+ fetchConfig,
7303
+ );
7044
7304
  return this;
7045
7305
  }
7046
7306
 
7047
7307
  onEventTerminateEvent(
7048
7308
  func: (event: vesting.TerminateEventInstance, ctx: AptosContext) => void,
7049
7309
  fetchConfig?: Partial<MoveFetchConfig>,
7310
+ eventFilter?: Omit<EventFilter, "type" | "account">,
7050
7311
  ): vesting {
7051
- this.onMoveEvent(func, { type: "vesting::TerminateEvent" }, fetchConfig);
7312
+ this.onMoveEvent(
7313
+ func,
7314
+ { ...(eventFilter ?? {}), type: "vesting::TerminateEvent" },
7315
+ fetchConfig,
7316
+ );
7052
7317
  return this;
7053
7318
  }
7054
7319
 
7055
7320
  onEventUnlockRewards(
7056
7321
  func: (event: vesting.UnlockRewardsInstance, ctx: AptosContext) => void,
7057
7322
  fetchConfig?: Partial<MoveFetchConfig>,
7323
+ eventFilter?: Omit<EventFilter, "type" | "account">,
7058
7324
  ): vesting {
7059
- this.onMoveEvent(func, { type: "vesting::UnlockRewards" }, fetchConfig);
7325
+ this.onMoveEvent(
7326
+ func,
7327
+ { ...(eventFilter ?? {}), type: "vesting::UnlockRewards" },
7328
+ fetchConfig,
7329
+ );
7060
7330
  return this;
7061
7331
  }
7062
7332
 
@@ -7066,10 +7336,11 @@ export class vesting extends AptosBaseProcessor {
7066
7336
  ctx: AptosContext,
7067
7337
  ) => void,
7068
7338
  fetchConfig?: Partial<MoveFetchConfig>,
7339
+ eventFilter?: Omit<EventFilter, "type" | "account">,
7069
7340
  ): vesting {
7070
7341
  this.onMoveEvent(
7071
7342
  func,
7072
- { type: "vesting::UnlockRewardsEvent" },
7343
+ { ...(eventFilter ?? {}), type: "vesting::UnlockRewardsEvent" },
7073
7344
  fetchConfig,
7074
7345
  );
7075
7346
  return this;
@@ -7078,8 +7349,13 @@ export class vesting extends AptosBaseProcessor {
7078
7349
  onEventUpdateOperator(
7079
7350
  func: (event: vesting.UpdateOperatorInstance, ctx: AptosContext) => void,
7080
7351
  fetchConfig?: Partial<MoveFetchConfig>,
7352
+ eventFilter?: Omit<EventFilter, "type" | "account">,
7081
7353
  ): vesting {
7082
- this.onMoveEvent(func, { type: "vesting::UpdateOperator" }, fetchConfig);
7354
+ this.onMoveEvent(
7355
+ func,
7356
+ { ...(eventFilter ?? {}), type: "vesting::UpdateOperator" },
7357
+ fetchConfig,
7358
+ );
7083
7359
  return this;
7084
7360
  }
7085
7361
 
@@ -7089,10 +7365,11 @@ export class vesting extends AptosBaseProcessor {
7089
7365
  ctx: AptosContext,
7090
7366
  ) => void,
7091
7367
  fetchConfig?: Partial<MoveFetchConfig>,
7368
+ eventFilter?: Omit<EventFilter, "type" | "account">,
7092
7369
  ): vesting {
7093
7370
  this.onMoveEvent(
7094
7371
  func,
7095
- { type: "vesting::UpdateOperatorEvent" },
7372
+ { ...(eventFilter ?? {}), type: "vesting::UpdateOperatorEvent" },
7096
7373
  fetchConfig,
7097
7374
  );
7098
7375
  return this;
@@ -7101,16 +7378,26 @@ export class vesting extends AptosBaseProcessor {
7101
7378
  onEventVest(
7102
7379
  func: (event: vesting.VestInstance, ctx: AptosContext) => void,
7103
7380
  fetchConfig?: Partial<MoveFetchConfig>,
7381
+ eventFilter?: Omit<EventFilter, "type" | "account">,
7104
7382
  ): vesting {
7105
- this.onMoveEvent(func, { type: "vesting::Vest" }, fetchConfig);
7383
+ this.onMoveEvent(
7384
+ func,
7385
+ { ...(eventFilter ?? {}), type: "vesting::Vest" },
7386
+ fetchConfig,
7387
+ );
7106
7388
  return this;
7107
7389
  }
7108
7390
 
7109
7391
  onEventVestEvent(
7110
7392
  func: (event: vesting.VestEventInstance, ctx: AptosContext) => void,
7111
7393
  fetchConfig?: Partial<MoveFetchConfig>,
7394
+ eventFilter?: Omit<EventFilter, "type" | "account">,
7112
7395
  ): vesting {
7113
- this.onMoveEvent(func, { type: "vesting::VestEvent" }, fetchConfig);
7396
+ this.onMoveEvent(
7397
+ func,
7398
+ { ...(eventFilter ?? {}), type: "vesting::VestEvent" },
7399
+ fetchConfig,
7400
+ );
7114
7401
  return this;
7115
7402
  }
7116
7403
  }
@@ -9289,10 +9576,11 @@ export class randomness extends AptosBaseProcessor {
9289
9576
  ctx: AptosContext,
9290
9577
  ) => void,
9291
9578
  fetchConfig?: Partial<MoveFetchConfig>,
9579
+ eventFilter?: Omit<EventFilter, "type" | "account">,
9292
9580
  ): randomness {
9293
9581
  this.onMoveEvent(
9294
9582
  func,
9295
- { type: "randomness::RandomnessGeneratedEvent" },
9583
+ { ...(eventFilter ?? {}), type: "randomness::RandomnessGeneratedEvent" },
9296
9584
  fetchConfig,
9297
9585
  );
9298
9586
  return this;
@@ -10288,10 +10576,14 @@ export class aptos_account extends AptosBaseProcessor {
10288
10576
  ctx: AptosContext,
10289
10577
  ) => void,
10290
10578
  fetchConfig?: Partial<MoveFetchConfig>,
10579
+ eventFilter?: Omit<EventFilter, "type" | "account">,
10291
10580
  ): aptos_account {
10292
10581
  this.onMoveEvent(
10293
10582
  func,
10294
- { type: "aptos_account::DirectCoinTransferConfigUpdated" },
10583
+ {
10584
+ ...(eventFilter ?? {}),
10585
+ type: "aptos_account::DirectCoinTransferConfigUpdated",
10586
+ },
10295
10587
  fetchConfig,
10296
10588
  );
10297
10589
  return this;
@@ -10303,10 +10595,14 @@ export class aptos_account extends AptosBaseProcessor {
10303
10595
  ctx: AptosContext,
10304
10596
  ) => void,
10305
10597
  fetchConfig?: Partial<MoveFetchConfig>,
10598
+ eventFilter?: Omit<EventFilter, "type" | "account">,
10306
10599
  ): aptos_account {
10307
10600
  this.onMoveEvent(
10308
10601
  func,
10309
- { type: "aptos_account::DirectCoinTransferConfigUpdatedEvent" },
10602
+ {
10603
+ ...(eventFilter ?? {}),
10604
+ type: "aptos_account::DirectCoinTransferConfigUpdatedEvent",
10605
+ },
10310
10606
  fetchConfig,
10311
10607
  );
10312
10608
  return this;
@@ -11600,8 +11896,13 @@ export class fungible_asset extends AptosBaseProcessor {
11600
11896
  onEventDeposit(
11601
11897
  func: (event: fungible_asset.DepositInstance, ctx: AptosContext) => void,
11602
11898
  fetchConfig?: Partial<MoveFetchConfig>,
11899
+ eventFilter?: Omit<EventFilter, "type" | "account">,
11603
11900
  ): fungible_asset {
11604
- this.onMoveEvent(func, { type: "fungible_asset::Deposit" }, fetchConfig);
11901
+ this.onMoveEvent(
11902
+ func,
11903
+ { ...(eventFilter ?? {}), type: "fungible_asset::Deposit" },
11904
+ fetchConfig,
11905
+ );
11605
11906
  return this;
11606
11907
  }
11607
11908
 
@@ -11611,10 +11912,11 @@ export class fungible_asset extends AptosBaseProcessor {
11611
11912
  ctx: AptosContext,
11612
11913
  ) => void,
11613
11914
  fetchConfig?: Partial<MoveFetchConfig>,
11915
+ eventFilter?: Omit<EventFilter, "type" | "account">,
11614
11916
  ): fungible_asset {
11615
11917
  this.onMoveEvent(
11616
11918
  func,
11617
- { type: "fungible_asset::DepositEvent" },
11919
+ { ...(eventFilter ?? {}), type: "fungible_asset::DepositEvent" },
11618
11920
  fetchConfig,
11619
11921
  );
11620
11922
  return this;
@@ -11623,8 +11925,13 @@ export class fungible_asset extends AptosBaseProcessor {
11623
11925
  onEventFrozen(
11624
11926
  func: (event: fungible_asset.FrozenInstance, ctx: AptosContext) => void,
11625
11927
  fetchConfig?: Partial<MoveFetchConfig>,
11928
+ eventFilter?: Omit<EventFilter, "type" | "account">,
11626
11929
  ): fungible_asset {
11627
- this.onMoveEvent(func, { type: "fungible_asset::Frozen" }, fetchConfig);
11930
+ this.onMoveEvent(
11931
+ func,
11932
+ { ...(eventFilter ?? {}), type: "fungible_asset::Frozen" },
11933
+ fetchConfig,
11934
+ );
11628
11935
  return this;
11629
11936
  }
11630
11937
 
@@ -11634,10 +11941,11 @@ export class fungible_asset extends AptosBaseProcessor {
11634
11941
  ctx: AptosContext,
11635
11942
  ) => void,
11636
11943
  fetchConfig?: Partial<MoveFetchConfig>,
11944
+ eventFilter?: Omit<EventFilter, "type" | "account">,
11637
11945
  ): fungible_asset {
11638
11946
  this.onMoveEvent(
11639
11947
  func,
11640
- { type: "fungible_asset::FrozenEvent" },
11948
+ { ...(eventFilter ?? {}), type: "fungible_asset::FrozenEvent" },
11641
11949
  fetchConfig,
11642
11950
  );
11643
11951
  return this;
@@ -11646,8 +11954,13 @@ export class fungible_asset extends AptosBaseProcessor {
11646
11954
  onEventWithdraw(
11647
11955
  func: (event: fungible_asset.WithdrawInstance, ctx: AptosContext) => void,
11648
11956
  fetchConfig?: Partial<MoveFetchConfig>,
11957
+ eventFilter?: Omit<EventFilter, "type" | "account">,
11649
11958
  ): fungible_asset {
11650
- this.onMoveEvent(func, { type: "fungible_asset::Withdraw" }, fetchConfig);
11959
+ this.onMoveEvent(
11960
+ func,
11961
+ { ...(eventFilter ?? {}), type: "fungible_asset::Withdraw" },
11962
+ fetchConfig,
11963
+ );
11651
11964
  return this;
11652
11965
  }
11653
11966
 
@@ -11657,10 +11970,11 @@ export class fungible_asset extends AptosBaseProcessor {
11657
11970
  ctx: AptosContext,
11658
11971
  ) => void,
11659
11972
  fetchConfig?: Partial<MoveFetchConfig>,
11973
+ eventFilter?: Omit<EventFilter, "type" | "account">,
11660
11974
  ): fungible_asset {
11661
11975
  this.onMoveEvent(
11662
11976
  func,
11663
- { type: "fungible_asset::WithdrawEvent" },
11977
+ { ...(eventFilter ?? {}), type: "fungible_asset::WithdrawEvent" },
11664
11978
  fetchConfig,
11665
11979
  );
11666
11980
  return this;
@@ -12838,10 +13152,11 @@ export class delegation_pool extends AptosBaseProcessor {
12838
13152
  ctx: AptosContext,
12839
13153
  ) => void,
12840
13154
  fetchConfig?: Partial<MoveFetchConfig>,
13155
+ eventFilter?: Omit<EventFilter, "type" | "account">,
12841
13156
  ): delegation_pool {
12842
13157
  this.onMoveEvent(
12843
13158
  func,
12844
- { type: "delegation_pool::CreateProposal" },
13159
+ { ...(eventFilter ?? {}), type: "delegation_pool::CreateProposal" },
12845
13160
  fetchConfig,
12846
13161
  );
12847
13162
  return this;
@@ -12853,10 +13168,11 @@ export class delegation_pool extends AptosBaseProcessor {
12853
13168
  ctx: AptosContext,
12854
13169
  ) => void,
12855
13170
  fetchConfig?: Partial<MoveFetchConfig>,
13171
+ eventFilter?: Omit<EventFilter, "type" | "account">,
12856
13172
  ): delegation_pool {
12857
13173
  this.onMoveEvent(
12858
13174
  func,
12859
- { type: "delegation_pool::CreateProposalEvent" },
13175
+ { ...(eventFilter ?? {}), type: "delegation_pool::CreateProposalEvent" },
12860
13176
  fetchConfig,
12861
13177
  );
12862
13178
  return this;
@@ -12865,24 +13181,39 @@ export class delegation_pool extends AptosBaseProcessor {
12865
13181
  onEventVote(
12866
13182
  func: (event: delegation_pool.VoteInstance, ctx: AptosContext) => void,
12867
13183
  fetchConfig?: Partial<MoveFetchConfig>,
13184
+ eventFilter?: Omit<EventFilter, "type" | "account">,
12868
13185
  ): delegation_pool {
12869
- this.onMoveEvent(func, { type: "delegation_pool::Vote" }, fetchConfig);
13186
+ this.onMoveEvent(
13187
+ func,
13188
+ { ...(eventFilter ?? {}), type: "delegation_pool::Vote" },
13189
+ fetchConfig,
13190
+ );
12870
13191
  return this;
12871
13192
  }
12872
13193
 
12873
13194
  onEventVoteEvent(
12874
13195
  func: (event: delegation_pool.VoteEventInstance, ctx: AptosContext) => void,
12875
13196
  fetchConfig?: Partial<MoveFetchConfig>,
13197
+ eventFilter?: Omit<EventFilter, "type" | "account">,
12876
13198
  ): delegation_pool {
12877
- this.onMoveEvent(func, { type: "delegation_pool::VoteEvent" }, fetchConfig);
13199
+ this.onMoveEvent(
13200
+ func,
13201
+ { ...(eventFilter ?? {}), type: "delegation_pool::VoteEvent" },
13202
+ fetchConfig,
13203
+ );
12878
13204
  return this;
12879
13205
  }
12880
13206
 
12881
13207
  onEventAddStake(
12882
13208
  func: (event: delegation_pool.AddStakeInstance, ctx: AptosContext) => void,
12883
13209
  fetchConfig?: Partial<MoveFetchConfig>,
13210
+ eventFilter?: Omit<EventFilter, "type" | "account">,
12884
13211
  ): delegation_pool {
12885
- this.onMoveEvent(func, { type: "delegation_pool::AddStake" }, fetchConfig);
13212
+ this.onMoveEvent(
13213
+ func,
13214
+ { ...(eventFilter ?? {}), type: "delegation_pool::AddStake" },
13215
+ fetchConfig,
13216
+ );
12886
13217
  return this;
12887
13218
  }
12888
13219
 
@@ -12892,10 +13223,11 @@ export class delegation_pool extends AptosBaseProcessor {
12892
13223
  ctx: AptosContext,
12893
13224
  ) => void,
12894
13225
  fetchConfig?: Partial<MoveFetchConfig>,
13226
+ eventFilter?: Omit<EventFilter, "type" | "account">,
12895
13227
  ): delegation_pool {
12896
13228
  this.onMoveEvent(
12897
13229
  func,
12898
- { type: "delegation_pool::AddStakeEvent" },
13230
+ { ...(eventFilter ?? {}), type: "delegation_pool::AddStakeEvent" },
12899
13231
  fetchConfig,
12900
13232
  );
12901
13233
  return this;
@@ -12907,10 +13239,11 @@ export class delegation_pool extends AptosBaseProcessor {
12907
13239
  ctx: AptosContext,
12908
13240
  ) => void,
12909
13241
  fetchConfig?: Partial<MoveFetchConfig>,
13242
+ eventFilter?: Omit<EventFilter, "type" | "account">,
12910
13243
  ): delegation_pool {
12911
13244
  this.onMoveEvent(
12912
13245
  func,
12913
- { type: "delegation_pool::ReactivateStake" },
13246
+ { ...(eventFilter ?? {}), type: "delegation_pool::ReactivateStake" },
12914
13247
  fetchConfig,
12915
13248
  );
12916
13249
  return this;
@@ -12922,10 +13255,11 @@ export class delegation_pool extends AptosBaseProcessor {
12922
13255
  ctx: AptosContext,
12923
13256
  ) => void,
12924
13257
  fetchConfig?: Partial<MoveFetchConfig>,
13258
+ eventFilter?: Omit<EventFilter, "type" | "account">,
12925
13259
  ): delegation_pool {
12926
13260
  this.onMoveEvent(
12927
13261
  func,
12928
- { type: "delegation_pool::ReactivateStakeEvent" },
13262
+ { ...(eventFilter ?? {}), type: "delegation_pool::ReactivateStakeEvent" },
12929
13263
  fetchConfig,
12930
13264
  );
12931
13265
  return this;
@@ -12937,10 +13271,11 @@ export class delegation_pool extends AptosBaseProcessor {
12937
13271
  ctx: AptosContext,
12938
13272
  ) => void,
12939
13273
  fetchConfig?: Partial<MoveFetchConfig>,
13274
+ eventFilter?: Omit<EventFilter, "type" | "account">,
12940
13275
  ): delegation_pool {
12941
13276
  this.onMoveEvent(
12942
13277
  func,
12943
- { type: "delegation_pool::UnlockStake" },
13278
+ { ...(eventFilter ?? {}), type: "delegation_pool::UnlockStake" },
12944
13279
  fetchConfig,
12945
13280
  );
12946
13281
  return this;
@@ -12952,10 +13287,11 @@ export class delegation_pool extends AptosBaseProcessor {
12952
13287
  ctx: AptosContext,
12953
13288
  ) => void,
12954
13289
  fetchConfig?: Partial<MoveFetchConfig>,
13290
+ eventFilter?: Omit<EventFilter, "type" | "account">,
12955
13291
  ): delegation_pool {
12956
13292
  this.onMoveEvent(
12957
13293
  func,
12958
- { type: "delegation_pool::UnlockStakeEvent" },
13294
+ { ...(eventFilter ?? {}), type: "delegation_pool::UnlockStakeEvent" },
12959
13295
  fetchConfig,
12960
13296
  );
12961
13297
  return this;
@@ -12967,10 +13303,11 @@ export class delegation_pool extends AptosBaseProcessor {
12967
13303
  ctx: AptosContext,
12968
13304
  ) => void,
12969
13305
  fetchConfig?: Partial<MoveFetchConfig>,
13306
+ eventFilter?: Omit<EventFilter, "type" | "account">,
12970
13307
  ): delegation_pool {
12971
13308
  this.onMoveEvent(
12972
13309
  func,
12973
- { type: "delegation_pool::WithdrawStake" },
13310
+ { ...(eventFilter ?? {}), type: "delegation_pool::WithdrawStake" },
12974
13311
  fetchConfig,
12975
13312
  );
12976
13313
  return this;
@@ -12982,10 +13319,11 @@ export class delegation_pool extends AptosBaseProcessor {
12982
13319
  ctx: AptosContext,
12983
13320
  ) => void,
12984
13321
  fetchConfig?: Partial<MoveFetchConfig>,
13322
+ eventFilter?: Omit<EventFilter, "type" | "account">,
12985
13323
  ): delegation_pool {
12986
13324
  this.onMoveEvent(
12987
13325
  func,
12988
- { type: "delegation_pool::WithdrawStakeEvent" },
13326
+ { ...(eventFilter ?? {}), type: "delegation_pool::WithdrawStakeEvent" },
12989
13327
  fetchConfig,
12990
13328
  );
12991
13329
  return this;
@@ -12997,10 +13335,11 @@ export class delegation_pool extends AptosBaseProcessor {
12997
13335
  ctx: AptosContext,
12998
13336
  ) => void,
12999
13337
  fetchConfig?: Partial<MoveFetchConfig>,
13338
+ eventFilter?: Omit<EventFilter, "type" | "account">,
13000
13339
  ): delegation_pool {
13001
13340
  this.onMoveEvent(
13002
13341
  func,
13003
- { type: "delegation_pool::AllowlistDelegator" },
13342
+ { ...(eventFilter ?? {}), type: "delegation_pool::AllowlistDelegator" },
13004
13343
  fetchConfig,
13005
13344
  );
13006
13345
  return this;
@@ -13012,10 +13351,14 @@ export class delegation_pool extends AptosBaseProcessor {
13012
13351
  ctx: AptosContext,
13013
13352
  ) => void,
13014
13353
  fetchConfig?: Partial<MoveFetchConfig>,
13354
+ eventFilter?: Omit<EventFilter, "type" | "account">,
13015
13355
  ): delegation_pool {
13016
13356
  this.onMoveEvent(
13017
13357
  func,
13018
- { type: "delegation_pool::CommissionPercentageChange" },
13358
+ {
13359
+ ...(eventFilter ?? {}),
13360
+ type: "delegation_pool::CommissionPercentageChange",
13361
+ },
13019
13362
  fetchConfig,
13020
13363
  );
13021
13364
  return this;
@@ -13027,10 +13370,11 @@ export class delegation_pool extends AptosBaseProcessor {
13027
13370
  ctx: AptosContext,
13028
13371
  ) => void,
13029
13372
  fetchConfig?: Partial<MoveFetchConfig>,
13373
+ eventFilter?: Omit<EventFilter, "type" | "account">,
13030
13374
  ): delegation_pool {
13031
13375
  this.onMoveEvent(
13032
13376
  func,
13033
- { type: "delegation_pool::DelegateVotingPower" },
13377
+ { ...(eventFilter ?? {}), type: "delegation_pool::DelegateVotingPower" },
13034
13378
  fetchConfig,
13035
13379
  );
13036
13380
  return this;
@@ -13042,10 +13386,14 @@ export class delegation_pool extends AptosBaseProcessor {
13042
13386
  ctx: AptosContext,
13043
13387
  ) => void,
13044
13388
  fetchConfig?: Partial<MoveFetchConfig>,
13389
+ eventFilter?: Omit<EventFilter, "type" | "account">,
13045
13390
  ): delegation_pool {
13046
13391
  this.onMoveEvent(
13047
13392
  func,
13048
- { type: "delegation_pool::DelegateVotingPowerEvent" },
13393
+ {
13394
+ ...(eventFilter ?? {}),
13395
+ type: "delegation_pool::DelegateVotingPowerEvent",
13396
+ },
13049
13397
  fetchConfig,
13050
13398
  );
13051
13399
  return this;
@@ -13057,10 +13405,14 @@ export class delegation_pool extends AptosBaseProcessor {
13057
13405
  ctx: AptosContext,
13058
13406
  ) => void,
13059
13407
  fetchConfig?: Partial<MoveFetchConfig>,
13408
+ eventFilter?: Omit<EventFilter, "type" | "account">,
13060
13409
  ): delegation_pool {
13061
13410
  this.onMoveEvent(
13062
13411
  func,
13063
- { type: "delegation_pool::DisableDelegatorsAllowlisting" },
13412
+ {
13413
+ ...(eventFilter ?? {}),
13414
+ type: "delegation_pool::DisableDelegatorsAllowlisting",
13415
+ },
13064
13416
  fetchConfig,
13065
13417
  );
13066
13418
  return this;
@@ -13072,10 +13424,11 @@ export class delegation_pool extends AptosBaseProcessor {
13072
13424
  ctx: AptosContext,
13073
13425
  ) => void,
13074
13426
  fetchConfig?: Partial<MoveFetchConfig>,
13427
+ eventFilter?: Omit<EventFilter, "type" | "account">,
13075
13428
  ): delegation_pool {
13076
13429
  this.onMoveEvent(
13077
13430
  func,
13078
- { type: "delegation_pool::DistributeCommission" },
13431
+ { ...(eventFilter ?? {}), type: "delegation_pool::DistributeCommission" },
13079
13432
  fetchConfig,
13080
13433
  );
13081
13434
  return this;
@@ -13087,10 +13440,14 @@ export class delegation_pool extends AptosBaseProcessor {
13087
13440
  ctx: AptosContext,
13088
13441
  ) => void,
13089
13442
  fetchConfig?: Partial<MoveFetchConfig>,
13443
+ eventFilter?: Omit<EventFilter, "type" | "account">,
13090
13444
  ): delegation_pool {
13091
13445
  this.onMoveEvent(
13092
13446
  func,
13093
- { type: "delegation_pool::DistributeCommissionEvent" },
13447
+ {
13448
+ ...(eventFilter ?? {}),
13449
+ type: "delegation_pool::DistributeCommissionEvent",
13450
+ },
13094
13451
  fetchConfig,
13095
13452
  );
13096
13453
  return this;
@@ -13102,10 +13459,14 @@ export class delegation_pool extends AptosBaseProcessor {
13102
13459
  ctx: AptosContext,
13103
13460
  ) => void,
13104
13461
  fetchConfig?: Partial<MoveFetchConfig>,
13462
+ eventFilter?: Omit<EventFilter, "type" | "account">,
13105
13463
  ): delegation_pool {
13106
13464
  this.onMoveEvent(
13107
13465
  func,
13108
- { type: "delegation_pool::EnableDelegatorsAllowlisting" },
13466
+ {
13467
+ ...(eventFilter ?? {}),
13468
+ type: "delegation_pool::EnableDelegatorsAllowlisting",
13469
+ },
13109
13470
  fetchConfig,
13110
13471
  );
13111
13472
  return this;
@@ -13117,10 +13478,11 @@ export class delegation_pool extends AptosBaseProcessor {
13117
13478
  ctx: AptosContext,
13118
13479
  ) => void,
13119
13480
  fetchConfig?: Partial<MoveFetchConfig>,
13481
+ eventFilter?: Omit<EventFilter, "type" | "account">,
13120
13482
  ): delegation_pool {
13121
13483
  this.onMoveEvent(
13122
13484
  func,
13123
- { type: "delegation_pool::EvictDelegator" },
13485
+ { ...(eventFilter ?? {}), type: "delegation_pool::EvictDelegator" },
13124
13486
  fetchConfig,
13125
13487
  );
13126
13488
  return this;
@@ -13132,10 +13494,14 @@ export class delegation_pool extends AptosBaseProcessor {
13132
13494
  ctx: AptosContext,
13133
13495
  ) => void,
13134
13496
  fetchConfig?: Partial<MoveFetchConfig>,
13497
+ eventFilter?: Omit<EventFilter, "type" | "account">,
13135
13498
  ): delegation_pool {
13136
13499
  this.onMoveEvent(
13137
13500
  func,
13138
- { type: "delegation_pool::RemoveDelegatorFromAllowlist" },
13501
+ {
13502
+ ...(eventFilter ?? {}),
13503
+ type: "delegation_pool::RemoveDelegatorFromAllowlist",
13504
+ },
13139
13505
  fetchConfig,
13140
13506
  );
13141
13507
  return this;
@@ -13147,10 +13513,14 @@ export class delegation_pool extends AptosBaseProcessor {
13147
13513
  ctx: AptosContext,
13148
13514
  ) => void,
13149
13515
  fetchConfig?: Partial<MoveFetchConfig>,
13516
+ eventFilter?: Omit<EventFilter, "type" | "account">,
13150
13517
  ): delegation_pool {
13151
13518
  this.onMoveEvent(
13152
13519
  func,
13153
- { type: "delegation_pool::SetBeneficiaryForOperator" },
13520
+ {
13521
+ ...(eventFilter ?? {}),
13522
+ type: "delegation_pool::SetBeneficiaryForOperator",
13523
+ },
13154
13524
  fetchConfig,
13155
13525
  );
13156
13526
  return this;
@@ -15084,8 +15454,13 @@ export class reconfiguration extends AptosBaseProcessor {
15084
15454
  onEventNewEpoch(
15085
15455
  func: (event: reconfiguration.NewEpochInstance, ctx: AptosContext) => void,
15086
15456
  fetchConfig?: Partial<MoveFetchConfig>,
15457
+ eventFilter?: Omit<EventFilter, "type" | "account">,
15087
15458
  ): reconfiguration {
15088
- this.onMoveEvent(func, { type: "reconfiguration::NewEpoch" }, fetchConfig);
15459
+ this.onMoveEvent(
15460
+ func,
15461
+ { ...(eventFilter ?? {}), type: "reconfiguration::NewEpoch" },
15462
+ fetchConfig,
15463
+ );
15089
15464
  return this;
15090
15465
  }
15091
15466
 
@@ -15095,10 +15470,11 @@ export class reconfiguration extends AptosBaseProcessor {
15095
15470
  ctx: AptosContext,
15096
15471
  ) => void,
15097
15472
  fetchConfig?: Partial<MoveFetchConfig>,
15473
+ eventFilter?: Omit<EventFilter, "type" | "account">,
15098
15474
  ): reconfiguration {
15099
15475
  this.onMoveEvent(
15100
15476
  func,
15101
- { type: "reconfiguration::NewEpochEvent" },
15477
+ { ...(eventFilter ?? {}), type: "reconfiguration::NewEpochEvent" },
15102
15478
  fetchConfig,
15103
15479
  );
15104
15480
  return this;
@@ -15221,10 +15597,11 @@ export class transaction_fee extends AptosBaseProcessor {
15221
15597
  ctx: AptosContext,
15222
15598
  ) => void,
15223
15599
  fetchConfig?: Partial<MoveFetchConfig>,
15600
+ eventFilter?: Omit<EventFilter, "type" | "account">,
15224
15601
  ): transaction_fee {
15225
15602
  this.onMoveEvent(
15226
15603
  func,
15227
- { type: "transaction_fee::FeeStatement" },
15604
+ { ...(eventFilter ?? {}), type: "transaction_fee::FeeStatement" },
15228
15605
  fetchConfig,
15229
15606
  );
15230
15607
  return this;
@@ -15562,10 +15939,11 @@ export class aptos_governance extends AptosBaseProcessor {
15562
15939
  ctx: AptosContext,
15563
15940
  ) => void,
15564
15941
  fetchConfig?: Partial<MoveFetchConfig>,
15942
+ eventFilter?: Omit<EventFilter, "type" | "account">,
15565
15943
  ): aptos_governance {
15566
15944
  this.onMoveEvent(
15567
15945
  func,
15568
- { type: "aptos_governance::CreateProposal" },
15946
+ { ...(eventFilter ?? {}), type: "aptos_governance::CreateProposal" },
15569
15947
  fetchConfig,
15570
15948
  );
15571
15949
  return this;
@@ -15577,10 +15955,11 @@ export class aptos_governance extends AptosBaseProcessor {
15577
15955
  ctx: AptosContext,
15578
15956
  ) => void,
15579
15957
  fetchConfig?: Partial<MoveFetchConfig>,
15958
+ eventFilter?: Omit<EventFilter, "type" | "account">,
15580
15959
  ): aptos_governance {
15581
15960
  this.onMoveEvent(
15582
15961
  func,
15583
- { type: "aptos_governance::CreateProposalEvent" },
15962
+ { ...(eventFilter ?? {}), type: "aptos_governance::CreateProposalEvent" },
15584
15963
  fetchConfig,
15585
15964
  );
15586
15965
  return this;
@@ -15589,8 +15968,13 @@ export class aptos_governance extends AptosBaseProcessor {
15589
15968
  onEventVote(
15590
15969
  func: (event: aptos_governance.VoteInstance, ctx: AptosContext) => void,
15591
15970
  fetchConfig?: Partial<MoveFetchConfig>,
15971
+ eventFilter?: Omit<EventFilter, "type" | "account">,
15592
15972
  ): aptos_governance {
15593
- this.onMoveEvent(func, { type: "aptos_governance::Vote" }, fetchConfig);
15973
+ this.onMoveEvent(
15974
+ func,
15975
+ { ...(eventFilter ?? {}), type: "aptos_governance::Vote" },
15976
+ fetchConfig,
15977
+ );
15594
15978
  return this;
15595
15979
  }
15596
15980
 
@@ -15600,10 +15984,11 @@ export class aptos_governance extends AptosBaseProcessor {
15600
15984
  ctx: AptosContext,
15601
15985
  ) => void,
15602
15986
  fetchConfig?: Partial<MoveFetchConfig>,
15987
+ eventFilter?: Omit<EventFilter, "type" | "account">,
15603
15988
  ): aptos_governance {
15604
15989
  this.onMoveEvent(
15605
15990
  func,
15606
- { type: "aptos_governance::VoteEvent" },
15991
+ { ...(eventFilter ?? {}), type: "aptos_governance::VoteEvent" },
15607
15992
  fetchConfig,
15608
15993
  );
15609
15994
  return this;
@@ -15615,10 +16000,11 @@ export class aptos_governance extends AptosBaseProcessor {
15615
16000
  ctx: AptosContext,
15616
16001
  ) => void,
15617
16002
  fetchConfig?: Partial<MoveFetchConfig>,
16003
+ eventFilter?: Omit<EventFilter, "type" | "account">,
15618
16004
  ): aptos_governance {
15619
16005
  this.onMoveEvent(
15620
16006
  func,
15621
- { type: "aptos_governance::UpdateConfig" },
16007
+ { ...(eventFilter ?? {}), type: "aptos_governance::UpdateConfig" },
15622
16008
  fetchConfig,
15623
16009
  );
15624
16010
  return this;
@@ -15630,10 +16016,11 @@ export class aptos_governance extends AptosBaseProcessor {
15630
16016
  ctx: AptosContext,
15631
16017
  ) => void,
15632
16018
  fetchConfig?: Partial<MoveFetchConfig>,
16019
+ eventFilter?: Omit<EventFilter, "type" | "account">,
15633
16020
  ): aptos_governance {
15634
16021
  this.onMoveEvent(
15635
16022
  func,
15636
- { type: "aptos_governance::UpdateConfigEvent" },
16023
+ { ...(eventFilter ?? {}), type: "aptos_governance::UpdateConfigEvent" },
15637
16024
  fetchConfig,
15638
16025
  );
15639
16026
  return this;
@@ -17105,8 +17492,13 @@ export class multisig_account extends AptosBaseProcessor {
17105
17492
  onEventVote(
17106
17493
  func: (event: multisig_account.VoteInstance, ctx: AptosContext) => void,
17107
17494
  fetchConfig?: Partial<MoveFetchConfig>,
17495
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17108
17496
  ): multisig_account {
17109
- this.onMoveEvent(func, { type: "multisig_account::Vote" }, fetchConfig);
17497
+ this.onMoveEvent(
17498
+ func,
17499
+ { ...(eventFilter ?? {}), type: "multisig_account::Vote" },
17500
+ fetchConfig,
17501
+ );
17110
17502
  return this;
17111
17503
  }
17112
17504
 
@@ -17116,10 +17508,11 @@ export class multisig_account extends AptosBaseProcessor {
17116
17508
  ctx: AptosContext,
17117
17509
  ) => void,
17118
17510
  fetchConfig?: Partial<MoveFetchConfig>,
17511
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17119
17512
  ): multisig_account {
17120
17513
  this.onMoveEvent(
17121
17514
  func,
17122
- { type: "multisig_account::VoteEvent" },
17515
+ { ...(eventFilter ?? {}), type: "multisig_account::VoteEvent" },
17123
17516
  fetchConfig,
17124
17517
  );
17125
17518
  return this;
@@ -17131,10 +17524,11 @@ export class multisig_account extends AptosBaseProcessor {
17131
17524
  ctx: AptosContext,
17132
17525
  ) => void,
17133
17526
  fetchConfig?: Partial<MoveFetchConfig>,
17527
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17134
17528
  ): multisig_account {
17135
17529
  this.onMoveEvent(
17136
17530
  func,
17137
- { type: "multisig_account::AddOwners" },
17531
+ { ...(eventFilter ?? {}), type: "multisig_account::AddOwners" },
17138
17532
  fetchConfig,
17139
17533
  );
17140
17534
  return this;
@@ -17146,10 +17540,11 @@ export class multisig_account extends AptosBaseProcessor {
17146
17540
  ctx: AptosContext,
17147
17541
  ) => void,
17148
17542
  fetchConfig?: Partial<MoveFetchConfig>,
17543
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17149
17544
  ): multisig_account {
17150
17545
  this.onMoveEvent(
17151
17546
  func,
17152
- { type: "multisig_account::AddOwnersEvent" },
17547
+ { ...(eventFilter ?? {}), type: "multisig_account::AddOwnersEvent" },
17153
17548
  fetchConfig,
17154
17549
  );
17155
17550
  return this;
@@ -17161,10 +17556,11 @@ export class multisig_account extends AptosBaseProcessor {
17161
17556
  ctx: AptosContext,
17162
17557
  ) => void,
17163
17558
  fetchConfig?: Partial<MoveFetchConfig>,
17559
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17164
17560
  ): multisig_account {
17165
17561
  this.onMoveEvent(
17166
17562
  func,
17167
- { type: "multisig_account::CreateTransaction" },
17563
+ { ...(eventFilter ?? {}), type: "multisig_account::CreateTransaction" },
17168
17564
  fetchConfig,
17169
17565
  );
17170
17566
  return this;
@@ -17176,10 +17572,14 @@ export class multisig_account extends AptosBaseProcessor {
17176
17572
  ctx: AptosContext,
17177
17573
  ) => void,
17178
17574
  fetchConfig?: Partial<MoveFetchConfig>,
17575
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17179
17576
  ): multisig_account {
17180
17577
  this.onMoveEvent(
17181
17578
  func,
17182
- { type: "multisig_account::CreateTransactionEvent" },
17579
+ {
17580
+ ...(eventFilter ?? {}),
17581
+ type: "multisig_account::CreateTransactionEvent",
17582
+ },
17183
17583
  fetchConfig,
17184
17584
  );
17185
17585
  return this;
@@ -17191,10 +17591,14 @@ export class multisig_account extends AptosBaseProcessor {
17191
17591
  ctx: AptosContext,
17192
17592
  ) => void,
17193
17593
  fetchConfig?: Partial<MoveFetchConfig>,
17594
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17194
17595
  ): multisig_account {
17195
17596
  this.onMoveEvent(
17196
17597
  func,
17197
- { type: "multisig_account::ExecuteRejectedTransaction" },
17598
+ {
17599
+ ...(eventFilter ?? {}),
17600
+ type: "multisig_account::ExecuteRejectedTransaction",
17601
+ },
17198
17602
  fetchConfig,
17199
17603
  );
17200
17604
  return this;
@@ -17206,10 +17610,14 @@ export class multisig_account extends AptosBaseProcessor {
17206
17610
  ctx: AptosContext,
17207
17611
  ) => void,
17208
17612
  fetchConfig?: Partial<MoveFetchConfig>,
17613
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17209
17614
  ): multisig_account {
17210
17615
  this.onMoveEvent(
17211
17616
  func,
17212
- { type: "multisig_account::ExecuteRejectedTransactionEvent" },
17617
+ {
17618
+ ...(eventFilter ?? {}),
17619
+ type: "multisig_account::ExecuteRejectedTransactionEvent",
17620
+ },
17213
17621
  fetchConfig,
17214
17622
  );
17215
17623
  return this;
@@ -17221,10 +17629,11 @@ export class multisig_account extends AptosBaseProcessor {
17221
17629
  ctx: AptosContext,
17222
17630
  ) => void,
17223
17631
  fetchConfig?: Partial<MoveFetchConfig>,
17632
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17224
17633
  ): multisig_account {
17225
17634
  this.onMoveEvent(
17226
17635
  func,
17227
- { type: "multisig_account::MetadataUpdated" },
17636
+ { ...(eventFilter ?? {}), type: "multisig_account::MetadataUpdated" },
17228
17637
  fetchConfig,
17229
17638
  );
17230
17639
  return this;
@@ -17236,10 +17645,14 @@ export class multisig_account extends AptosBaseProcessor {
17236
17645
  ctx: AptosContext,
17237
17646
  ) => void,
17238
17647
  fetchConfig?: Partial<MoveFetchConfig>,
17648
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17239
17649
  ): multisig_account {
17240
17650
  this.onMoveEvent(
17241
17651
  func,
17242
- { type: "multisig_account::MetadataUpdatedEvent" },
17652
+ {
17653
+ ...(eventFilter ?? {}),
17654
+ type: "multisig_account::MetadataUpdatedEvent",
17655
+ },
17243
17656
  fetchConfig,
17244
17657
  );
17245
17658
  return this;
@@ -17251,10 +17664,11 @@ export class multisig_account extends AptosBaseProcessor {
17251
17664
  ctx: AptosContext,
17252
17665
  ) => void,
17253
17666
  fetchConfig?: Partial<MoveFetchConfig>,
17667
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17254
17668
  ): multisig_account {
17255
17669
  this.onMoveEvent(
17256
17670
  func,
17257
- { type: "multisig_account::RemoveOwners" },
17671
+ { ...(eventFilter ?? {}), type: "multisig_account::RemoveOwners" },
17258
17672
  fetchConfig,
17259
17673
  );
17260
17674
  return this;
@@ -17266,10 +17680,11 @@ export class multisig_account extends AptosBaseProcessor {
17266
17680
  ctx: AptosContext,
17267
17681
  ) => void,
17268
17682
  fetchConfig?: Partial<MoveFetchConfig>,
17683
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17269
17684
  ): multisig_account {
17270
17685
  this.onMoveEvent(
17271
17686
  func,
17272
- { type: "multisig_account::RemoveOwnersEvent" },
17687
+ { ...(eventFilter ?? {}), type: "multisig_account::RemoveOwnersEvent" },
17273
17688
  fetchConfig,
17274
17689
  );
17275
17690
  return this;
@@ -17281,10 +17696,14 @@ export class multisig_account extends AptosBaseProcessor {
17281
17696
  ctx: AptosContext,
17282
17697
  ) => void,
17283
17698
  fetchConfig?: Partial<MoveFetchConfig>,
17699
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17284
17700
  ): multisig_account {
17285
17701
  this.onMoveEvent(
17286
17702
  func,
17287
- { type: "multisig_account::TransactionExecutionFailed" },
17703
+ {
17704
+ ...(eventFilter ?? {}),
17705
+ type: "multisig_account::TransactionExecutionFailed",
17706
+ },
17288
17707
  fetchConfig,
17289
17708
  );
17290
17709
  return this;
@@ -17296,10 +17715,14 @@ export class multisig_account extends AptosBaseProcessor {
17296
17715
  ctx: AptosContext,
17297
17716
  ) => void,
17298
17717
  fetchConfig?: Partial<MoveFetchConfig>,
17718
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17299
17719
  ): multisig_account {
17300
17720
  this.onMoveEvent(
17301
17721
  func,
17302
- { type: "multisig_account::TransactionExecutionFailedEvent" },
17722
+ {
17723
+ ...(eventFilter ?? {}),
17724
+ type: "multisig_account::TransactionExecutionFailedEvent",
17725
+ },
17303
17726
  fetchConfig,
17304
17727
  );
17305
17728
  return this;
@@ -17311,10 +17734,14 @@ export class multisig_account extends AptosBaseProcessor {
17311
17734
  ctx: AptosContext,
17312
17735
  ) => void,
17313
17736
  fetchConfig?: Partial<MoveFetchConfig>,
17737
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17314
17738
  ): multisig_account {
17315
17739
  this.onMoveEvent(
17316
17740
  func,
17317
- { type: "multisig_account::TransactionExecutionSucceeded" },
17741
+ {
17742
+ ...(eventFilter ?? {}),
17743
+ type: "multisig_account::TransactionExecutionSucceeded",
17744
+ },
17318
17745
  fetchConfig,
17319
17746
  );
17320
17747
  return this;
@@ -17326,10 +17753,14 @@ export class multisig_account extends AptosBaseProcessor {
17326
17753
  ctx: AptosContext,
17327
17754
  ) => void,
17328
17755
  fetchConfig?: Partial<MoveFetchConfig>,
17756
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17329
17757
  ): multisig_account {
17330
17758
  this.onMoveEvent(
17331
17759
  func,
17332
- { type: "multisig_account::TransactionExecutionSucceededEvent" },
17760
+ {
17761
+ ...(eventFilter ?? {}),
17762
+ type: "multisig_account::TransactionExecutionSucceededEvent",
17763
+ },
17333
17764
  fetchConfig,
17334
17765
  );
17335
17766
  return this;
@@ -17341,10 +17772,14 @@ export class multisig_account extends AptosBaseProcessor {
17341
17772
  ctx: AptosContext,
17342
17773
  ) => void,
17343
17774
  fetchConfig?: Partial<MoveFetchConfig>,
17775
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17344
17776
  ): multisig_account {
17345
17777
  this.onMoveEvent(
17346
17778
  func,
17347
- { type: "multisig_account::UpdateSignaturesRequired" },
17779
+ {
17780
+ ...(eventFilter ?? {}),
17781
+ type: "multisig_account::UpdateSignaturesRequired",
17782
+ },
17348
17783
  fetchConfig,
17349
17784
  );
17350
17785
  return this;
@@ -17356,10 +17791,14 @@ export class multisig_account extends AptosBaseProcessor {
17356
17791
  ctx: AptosContext,
17357
17792
  ) => void,
17358
17793
  fetchConfig?: Partial<MoveFetchConfig>,
17794
+ eventFilter?: Omit<EventFilter, "type" | "account">,
17359
17795
  ): multisig_account {
17360
17796
  this.onMoveEvent(
17361
17797
  func,
17362
- { type: "multisig_account::UpdateSignaturesRequiredEvent" },
17798
+ {
17799
+ ...(eventFilter ?? {}),
17800
+ type: "multisig_account::UpdateSignaturesRequiredEvent",
17801
+ },
17363
17802
  fetchConfig,
17364
17803
  );
17365
17804
  return this;
@@ -19566,8 +20005,13 @@ export class staking_contract extends AptosBaseProcessor {
19566
20005
  onEventAddStake(
19567
20006
  func: (event: staking_contract.AddStakeInstance, ctx: AptosContext) => void,
19568
20007
  fetchConfig?: Partial<MoveFetchConfig>,
20008
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19569
20009
  ): staking_contract {
19570
- this.onMoveEvent(func, { type: "staking_contract::AddStake" }, fetchConfig);
20010
+ this.onMoveEvent(
20011
+ func,
20012
+ { ...(eventFilter ?? {}), type: "staking_contract::AddStake" },
20013
+ fetchConfig,
20014
+ );
19571
20015
  return this;
19572
20016
  }
19573
20017
 
@@ -19577,10 +20021,11 @@ export class staking_contract extends AptosBaseProcessor {
19577
20021
  ctx: AptosContext,
19578
20022
  ) => void,
19579
20023
  fetchConfig?: Partial<MoveFetchConfig>,
20024
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19580
20025
  ): staking_contract {
19581
20026
  this.onMoveEvent(
19582
20027
  func,
19583
- { type: "staking_contract::AddStakeEvent" },
20028
+ { ...(eventFilter ?? {}), type: "staking_contract::AddStakeEvent" },
19584
20029
  fetchConfig,
19585
20030
  );
19586
20031
  return this;
@@ -19592,10 +20037,11 @@ export class staking_contract extends AptosBaseProcessor {
19592
20037
  ctx: AptosContext,
19593
20038
  ) => void,
19594
20039
  fetchConfig?: Partial<MoveFetchConfig>,
20040
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19595
20041
  ): staking_contract {
19596
20042
  this.onMoveEvent(
19597
20043
  func,
19598
- { type: "staking_contract::UnlockStake" },
20044
+ { ...(eventFilter ?? {}), type: "staking_contract::UnlockStake" },
19599
20045
  fetchConfig,
19600
20046
  );
19601
20047
  return this;
@@ -19607,10 +20053,11 @@ export class staking_contract extends AptosBaseProcessor {
19607
20053
  ctx: AptosContext,
19608
20054
  ) => void,
19609
20055
  fetchConfig?: Partial<MoveFetchConfig>,
20056
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19610
20057
  ): staking_contract {
19611
20058
  this.onMoveEvent(
19612
20059
  func,
19613
- { type: "staking_contract::UnlockStakeEvent" },
20060
+ { ...(eventFilter ?? {}), type: "staking_contract::UnlockStakeEvent" },
19614
20061
  fetchConfig,
19615
20062
  );
19616
20063
  return this;
@@ -19622,10 +20069,14 @@ export class staking_contract extends AptosBaseProcessor {
19622
20069
  ctx: AptosContext,
19623
20070
  ) => void,
19624
20071
  fetchConfig?: Partial<MoveFetchConfig>,
20072
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19625
20073
  ): staking_contract {
19626
20074
  this.onMoveEvent(
19627
20075
  func,
19628
- { type: "staking_contract::SetBeneficiaryForOperator" },
20076
+ {
20077
+ ...(eventFilter ?? {}),
20078
+ type: "staking_contract::SetBeneficiaryForOperator",
20079
+ },
19629
20080
  fetchConfig,
19630
20081
  );
19631
20082
  return this;
@@ -19637,10 +20088,11 @@ export class staking_contract extends AptosBaseProcessor {
19637
20088
  ctx: AptosContext,
19638
20089
  ) => void,
19639
20090
  fetchConfig?: Partial<MoveFetchConfig>,
20091
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19640
20092
  ): staking_contract {
19641
20093
  this.onMoveEvent(
19642
20094
  func,
19643
- { type: "staking_contract::AddDistribution" },
20095
+ { ...(eventFilter ?? {}), type: "staking_contract::AddDistribution" },
19644
20096
  fetchConfig,
19645
20097
  );
19646
20098
  return this;
@@ -19652,10 +20104,14 @@ export class staking_contract extends AptosBaseProcessor {
19652
20104
  ctx: AptosContext,
19653
20105
  ) => void,
19654
20106
  fetchConfig?: Partial<MoveFetchConfig>,
20107
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19655
20108
  ): staking_contract {
19656
20109
  this.onMoveEvent(
19657
20110
  func,
19658
- { type: "staking_contract::AddDistributionEvent" },
20111
+ {
20112
+ ...(eventFilter ?? {}),
20113
+ type: "staking_contract::AddDistributionEvent",
20114
+ },
19659
20115
  fetchConfig,
19660
20116
  );
19661
20117
  return this;
@@ -19667,10 +20123,14 @@ export class staking_contract extends AptosBaseProcessor {
19667
20123
  ctx: AptosContext,
19668
20124
  ) => void,
19669
20125
  fetchConfig?: Partial<MoveFetchConfig>,
20126
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19670
20127
  ): staking_contract {
19671
20128
  this.onMoveEvent(
19672
20129
  func,
19673
- { type: "staking_contract::CreateStakingContract" },
20130
+ {
20131
+ ...(eventFilter ?? {}),
20132
+ type: "staking_contract::CreateStakingContract",
20133
+ },
19674
20134
  fetchConfig,
19675
20135
  );
19676
20136
  return this;
@@ -19682,10 +20142,14 @@ export class staking_contract extends AptosBaseProcessor {
19682
20142
  ctx: AptosContext,
19683
20143
  ) => void,
19684
20144
  fetchConfig?: Partial<MoveFetchConfig>,
20145
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19685
20146
  ): staking_contract {
19686
20147
  this.onMoveEvent(
19687
20148
  func,
19688
- { type: "staking_contract::CreateStakingContractEvent" },
20149
+ {
20150
+ ...(eventFilter ?? {}),
20151
+ type: "staking_contract::CreateStakingContractEvent",
20152
+ },
19689
20153
  fetchConfig,
19690
20154
  );
19691
20155
  return this;
@@ -19697,10 +20161,11 @@ export class staking_contract extends AptosBaseProcessor {
19697
20161
  ctx: AptosContext,
19698
20162
  ) => void,
19699
20163
  fetchConfig?: Partial<MoveFetchConfig>,
20164
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19700
20165
  ): staking_contract {
19701
20166
  this.onMoveEvent(
19702
20167
  func,
19703
- { type: "staking_contract::Distribute" },
20168
+ { ...(eventFilter ?? {}), type: "staking_contract::Distribute" },
19704
20169
  fetchConfig,
19705
20170
  );
19706
20171
  return this;
@@ -19712,10 +20177,11 @@ export class staking_contract extends AptosBaseProcessor {
19712
20177
  ctx: AptosContext,
19713
20178
  ) => void,
19714
20179
  fetchConfig?: Partial<MoveFetchConfig>,
20180
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19715
20181
  ): staking_contract {
19716
20182
  this.onMoveEvent(
19717
20183
  func,
19718
- { type: "staking_contract::DistributeEvent" },
20184
+ { ...(eventFilter ?? {}), type: "staking_contract::DistributeEvent" },
19719
20185
  fetchConfig,
19720
20186
  );
19721
20187
  return this;
@@ -19727,10 +20193,11 @@ export class staking_contract extends AptosBaseProcessor {
19727
20193
  ctx: AptosContext,
19728
20194
  ) => void,
19729
20195
  fetchConfig?: Partial<MoveFetchConfig>,
20196
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19730
20197
  ): staking_contract {
19731
20198
  this.onMoveEvent(
19732
20199
  func,
19733
- { type: "staking_contract::RequestCommission" },
20200
+ { ...(eventFilter ?? {}), type: "staking_contract::RequestCommission" },
19734
20201
  fetchConfig,
19735
20202
  );
19736
20203
  return this;
@@ -19742,10 +20209,14 @@ export class staking_contract extends AptosBaseProcessor {
19742
20209
  ctx: AptosContext,
19743
20210
  ) => void,
19744
20211
  fetchConfig?: Partial<MoveFetchConfig>,
20212
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19745
20213
  ): staking_contract {
19746
20214
  this.onMoveEvent(
19747
20215
  func,
19748
- { type: "staking_contract::RequestCommissionEvent" },
20216
+ {
20217
+ ...(eventFilter ?? {}),
20218
+ type: "staking_contract::RequestCommissionEvent",
20219
+ },
19749
20220
  fetchConfig,
19750
20221
  );
19751
20222
  return this;
@@ -19757,10 +20228,11 @@ export class staking_contract extends AptosBaseProcessor {
19757
20228
  ctx: AptosContext,
19758
20229
  ) => void,
19759
20230
  fetchConfig?: Partial<MoveFetchConfig>,
20231
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19760
20232
  ): staking_contract {
19761
20233
  this.onMoveEvent(
19762
20234
  func,
19763
- { type: "staking_contract::ResetLockup" },
20235
+ { ...(eventFilter ?? {}), type: "staking_contract::ResetLockup" },
19764
20236
  fetchConfig,
19765
20237
  );
19766
20238
  return this;
@@ -19772,10 +20244,11 @@ export class staking_contract extends AptosBaseProcessor {
19772
20244
  ctx: AptosContext,
19773
20245
  ) => void,
19774
20246
  fetchConfig?: Partial<MoveFetchConfig>,
20247
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19775
20248
  ): staking_contract {
19776
20249
  this.onMoveEvent(
19777
20250
  func,
19778
- { type: "staking_contract::ResetLockupEvent" },
20251
+ { ...(eventFilter ?? {}), type: "staking_contract::ResetLockupEvent" },
19779
20252
  fetchConfig,
19780
20253
  );
19781
20254
  return this;
@@ -19787,10 +20260,14 @@ export class staking_contract extends AptosBaseProcessor {
19787
20260
  ctx: AptosContext,
19788
20261
  ) => void,
19789
20262
  fetchConfig?: Partial<MoveFetchConfig>,
20263
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19790
20264
  ): staking_contract {
19791
20265
  this.onMoveEvent(
19792
20266
  func,
19793
- { type: "staking_contract::StakingGroupUpdateCommissionEvent" },
20267
+ {
20268
+ ...(eventFilter ?? {}),
20269
+ type: "staking_contract::StakingGroupUpdateCommissionEvent",
20270
+ },
19794
20271
  fetchConfig,
19795
20272
  );
19796
20273
  return this;
@@ -19802,10 +20279,11 @@ export class staking_contract extends AptosBaseProcessor {
19802
20279
  ctx: AptosContext,
19803
20280
  ) => void,
19804
20281
  fetchConfig?: Partial<MoveFetchConfig>,
20282
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19805
20283
  ): staking_contract {
19806
20284
  this.onMoveEvent(
19807
20285
  func,
19808
- { type: "staking_contract::SwitchOperator" },
20286
+ { ...(eventFilter ?? {}), type: "staking_contract::SwitchOperator" },
19809
20287
  fetchConfig,
19810
20288
  );
19811
20289
  return this;
@@ -19817,10 +20295,11 @@ export class staking_contract extends AptosBaseProcessor {
19817
20295
  ctx: AptosContext,
19818
20296
  ) => void,
19819
20297
  fetchConfig?: Partial<MoveFetchConfig>,
20298
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19820
20299
  ): staking_contract {
19821
20300
  this.onMoveEvent(
19822
20301
  func,
19823
- { type: "staking_contract::SwitchOperatorEvent" },
20302
+ { ...(eventFilter ?? {}), type: "staking_contract::SwitchOperatorEvent" },
19824
20303
  fetchConfig,
19825
20304
  );
19826
20305
  return this;
@@ -19832,10 +20311,11 @@ export class staking_contract extends AptosBaseProcessor {
19832
20311
  ctx: AptosContext,
19833
20312
  ) => void,
19834
20313
  fetchConfig?: Partial<MoveFetchConfig>,
20314
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19835
20315
  ): staking_contract {
19836
20316
  this.onMoveEvent(
19837
20317
  func,
19838
- { type: "staking_contract::UpdateCommission" },
20318
+ { ...(eventFilter ?? {}), type: "staking_contract::UpdateCommission" },
19839
20319
  fetchConfig,
19840
20320
  );
19841
20321
  return this;
@@ -19847,10 +20327,14 @@ export class staking_contract extends AptosBaseProcessor {
19847
20327
  ctx: AptosContext,
19848
20328
  ) => void,
19849
20329
  fetchConfig?: Partial<MoveFetchConfig>,
20330
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19850
20331
  ): staking_contract {
19851
20332
  this.onMoveEvent(
19852
20333
  func,
19853
- { type: "staking_contract::UpdateCommissionEvent" },
20334
+ {
20335
+ ...(eventFilter ?? {}),
20336
+ type: "staking_contract::UpdateCommissionEvent",
20337
+ },
19854
20338
  fetchConfig,
19855
20339
  );
19856
20340
  return this;
@@ -19862,10 +20346,11 @@ export class staking_contract extends AptosBaseProcessor {
19862
20346
  ctx: AptosContext,
19863
20347
  ) => void,
19864
20348
  fetchConfig?: Partial<MoveFetchConfig>,
20349
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19865
20350
  ): staking_contract {
19866
20351
  this.onMoveEvent(
19867
20352
  func,
19868
- { type: "staking_contract::UpdateVoter" },
20353
+ { ...(eventFilter ?? {}), type: "staking_contract::UpdateVoter" },
19869
20354
  fetchConfig,
19870
20355
  );
19871
20356
  return this;
@@ -19877,10 +20362,11 @@ export class staking_contract extends AptosBaseProcessor {
19877
20362
  ctx: AptosContext,
19878
20363
  ) => void,
19879
20364
  fetchConfig?: Partial<MoveFetchConfig>,
20365
+ eventFilter?: Omit<EventFilter, "type" | "account">,
19880
20366
  ): staking_contract {
19881
20367
  this.onMoveEvent(
19882
20368
  func,
19883
- { type: "staking_contract::UpdateVoterEvent" },
20369
+ { ...(eventFilter ?? {}), type: "staking_contract::UpdateVoterEvent" },
19884
20370
  fetchConfig,
19885
20371
  );
19886
20372
  return this;
@@ -21543,10 +22029,11 @@ export class object_code_deployment extends AptosBaseProcessor {
21543
22029
  ctx: AptosContext,
21544
22030
  ) => void,
21545
22031
  fetchConfig?: Partial<MoveFetchConfig>,
22032
+ eventFilter?: Omit<EventFilter, "type" | "account">,
21546
22033
  ): object_code_deployment {
21547
22034
  this.onMoveEvent(
21548
22035
  func,
21549
- { type: "object_code_deployment::Freeze" },
22036
+ { ...(eventFilter ?? {}), type: "object_code_deployment::Freeze" },
21550
22037
  fetchConfig,
21551
22038
  );
21552
22039
  return this;
@@ -21558,10 +22045,11 @@ export class object_code_deployment extends AptosBaseProcessor {
21558
22045
  ctx: AptosContext,
21559
22046
  ) => void,
21560
22047
  fetchConfig?: Partial<MoveFetchConfig>,
22048
+ eventFilter?: Omit<EventFilter, "type" | "account">,
21561
22049
  ): object_code_deployment {
21562
22050
  this.onMoveEvent(
21563
22051
  func,
21564
- { type: "object_code_deployment::Publish" },
22052
+ { ...(eventFilter ?? {}), type: "object_code_deployment::Publish" },
21565
22053
  fetchConfig,
21566
22054
  );
21567
22055
  return this;
@@ -21573,10 +22061,11 @@ export class object_code_deployment extends AptosBaseProcessor {
21573
22061
  ctx: AptosContext,
21574
22062
  ) => void,
21575
22063
  fetchConfig?: Partial<MoveFetchConfig>,
22064
+ eventFilter?: Omit<EventFilter, "type" | "account">,
21576
22065
  ): object_code_deployment {
21577
22066
  this.onMoveEvent(
21578
22067
  func,
21579
- { type: "object_code_deployment::Upgrade" },
22068
+ { ...(eventFilter ?? {}), type: "object_code_deployment::Upgrade" },
21580
22069
  fetchConfig,
21581
22070
  );
21582
22071
  return this;