@aztec/sequencer-client 0.70.0 → 0.71.0

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.
@@ -4,8 +4,7 @@ import { createLogger } from '@aztec/foundation/log';
4
4
  import { type AztecKVStore } from '@aztec/kv-store';
5
5
  import { type DataStoreConfig } from '@aztec/kv-store/config';
6
6
  import { createStore } from '@aztec/kv-store/lmdb';
7
- import { type TelemetryClient } from '@aztec/telemetry-client';
8
- import { NoopTelemetryClient } from '@aztec/telemetry-client/noop';
7
+ import { type TelemetryClient, getTelemetryClient } from '@aztec/telemetry-client';
9
8
 
10
9
  import { SlasherClient } from './slasher_client.js';
11
10
  import { type SlasherConfig } from './slasher_client.js';
@@ -13,7 +12,7 @@ import { type SlasherConfig } from './slasher_client.js';
13
12
  export const createSlasherClient = async (
14
13
  _config: SlasherConfig & DataStoreConfig & L1ContractsConfig & L1ReaderConfig,
15
14
  l2BlockSource: L2BlockSource,
16
- telemetry: TelemetryClient = new NoopTelemetryClient(),
15
+ telemetry: TelemetryClient = getTelemetryClient(),
17
16
  deps: { store?: AztecKVStore } = {},
18
17
  ) => {
19
18
  const config = { ..._config };
@@ -12,8 +12,7 @@ import { EthAddress } from '@aztec/foundation/eth-address';
12
12
  import { createLogger } from '@aztec/foundation/log';
13
13
  import { type AztecKVStore, type AztecMap, type AztecSingleton } from '@aztec/kv-store';
14
14
  import { SlashFactoryAbi } from '@aztec/l1-artifacts';
15
- import { type TelemetryClient, WithTracer } from '@aztec/telemetry-client';
16
- import { NoopTelemetryClient } from '@aztec/telemetry-client/noop';
15
+ import { type TelemetryClient, WithTracer, getTelemetryClient } from '@aztec/telemetry-client';
17
16
 
18
17
  import {
19
18
  type Chain,
@@ -113,7 +112,7 @@ export class SlasherClient extends WithTracer {
113
112
  private config: SlasherConfig & L1ContractsConfig & L1ReaderConfig,
114
113
  private store: AztecKVStore,
115
114
  private l2BlockSource: L2BlockSource,
116
- telemetry: TelemetryClient = new NoopTelemetryClient(),
115
+ telemetry: TelemetryClient = getTelemetryClient(),
117
116
  private log = createLogger('slasher'),
118
117
  ) {
119
118
  super(telemetry, 'slasher');
package/src/test/index.ts CHANGED
@@ -3,12 +3,11 @@ import { type PublicProcessorFactory } from '@aztec/simulator/server';
3
3
  import { SequencerClient } from '../client/sequencer-client.js';
4
4
  import { type L1Publisher } from '../publisher/l1-publisher.js';
5
5
  import { Sequencer } from '../sequencer/sequencer.js';
6
- import { type SequencerState } from '../sequencer/utils.js';
6
+ import { type SequencerTimetable } from '../sequencer/timetable.js';
7
7
 
8
8
  class TestSequencer_ extends Sequencer {
9
9
  public override publicProcessorFactory!: PublicProcessorFactory;
10
- public override timeTable!: Record<SequencerState, number>;
11
- public override processTxTime!: number;
10
+ public override timetable!: SequencerTimetable;
12
11
  public override publisher!: L1Publisher;
13
12
  }
14
13