@aztec/sequencer-client 0.32.0 → 0.32.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 (95) hide show
  1. package/dest/client/sequencer-client.d.ts +8 -8
  2. package/dest/client/sequencer-client.d.ts.map +1 -1
  3. package/dest/client/sequencer-client.js +1 -1
  4. package/dest/config.d.ts +3 -3
  5. package/dest/config.d.ts.map +1 -1
  6. package/dest/config.js +1 -1
  7. package/dest/global_variable_builder/config.d.ts +1 -1
  8. package/dest/global_variable_builder/config.d.ts.map +1 -1
  9. package/dest/global_variable_builder/global_builder.d.ts +1 -1
  10. package/dest/global_variable_builder/global_builder.d.ts.map +1 -1
  11. package/dest/global_variable_builder/global_builder.js +1 -1
  12. package/dest/global_variable_builder/index.d.ts +2 -2
  13. package/dest/global_variable_builder/index.d.ts.map +1 -1
  14. package/dest/global_variable_builder/index.js +1 -1
  15. package/dest/global_variable_builder/viem-reader.d.ts +2 -2
  16. package/dest/global_variable_builder/viem-reader.d.ts.map +1 -1
  17. package/dest/publisher/config.d.ts +1 -1
  18. package/dest/publisher/config.d.ts.map +1 -1
  19. package/dest/publisher/index.d.ts +1 -1
  20. package/dest/publisher/index.d.ts.map +1 -1
  21. package/dest/publisher/l1-publisher.d.ts +3 -3
  22. package/dest/publisher/l1-publisher.d.ts.map +1 -1
  23. package/dest/publisher/viem-tx-sender.d.ts +3 -3
  24. package/dest/publisher/viem-tx-sender.d.ts.map +1 -1
  25. package/dest/publisher/viem-tx-sender.js +1 -1
  26. package/dest/receiver.d.ts +1 -1
  27. package/dest/receiver.d.ts.map +1 -1
  28. package/dest/sequencer/abstract_phase_manager.d.ts +6 -6
  29. package/dest/sequencer/abstract_phase_manager.d.ts.map +1 -1
  30. package/dest/sequencer/abstract_phase_manager.js +1 -1
  31. package/dest/sequencer/app_logic_phase_manager.d.ts +6 -6
  32. package/dest/sequencer/app_logic_phase_manager.d.ts.map +1 -1
  33. package/dest/sequencer/app_logic_phase_manager.js +1 -1
  34. package/dest/sequencer/hints_builder.d.ts +3 -3
  35. package/dest/sequencer/hints_builder.d.ts.map +1 -1
  36. package/dest/sequencer/phase_manager_factory.d.ts +7 -7
  37. package/dest/sequencer/phase_manager_factory.d.ts.map +1 -1
  38. package/dest/sequencer/phase_manager_factory.js +1 -1
  39. package/dest/sequencer/public_processor.d.ts +6 -6
  40. package/dest/sequencer/public_processor.d.ts.map +1 -1
  41. package/dest/sequencer/public_processor.js +1 -1
  42. package/dest/sequencer/sequencer.d.ts +11 -11
  43. package/dest/sequencer/sequencer.d.ts.map +1 -1
  44. package/dest/sequencer/sequencer.js +1 -1
  45. package/dest/sequencer/setup_phase_manager.d.ts +6 -6
  46. package/dest/sequencer/setup_phase_manager.d.ts.map +1 -1
  47. package/dest/sequencer/setup_phase_manager.js +1 -1
  48. package/dest/sequencer/tail_phase_manager.d.ts +6 -6
  49. package/dest/sequencer/tail_phase_manager.d.ts.map +1 -1
  50. package/dest/sequencer/tail_phase_manager.js +1 -1
  51. package/dest/sequencer/teardown_phase_manager.d.ts +6 -6
  52. package/dest/sequencer/teardown_phase_manager.d.ts.map +1 -1
  53. package/dest/sequencer/teardown_phase_manager.js +1 -1
  54. package/dest/sequencer/tx_validator.d.ts +3 -3
  55. package/dest/sequencer/tx_validator.d.ts.map +1 -1
  56. package/dest/sequencer/tx_validator.js +2 -2
  57. package/dest/sequencer/tx_validator_factory.d.ts +3 -3
  58. package/dest/sequencer/tx_validator_factory.d.ts.map +1 -1
  59. package/dest/sequencer/utils.d.ts +1 -1
  60. package/dest/sequencer/utils.d.ts.map +1 -1
  61. package/dest/simulator/index.d.ts +1 -1
  62. package/dest/simulator/index.d.ts.map +1 -1
  63. package/dest/simulator/public_executor.d.ts +5 -5
  64. package/dest/simulator/public_executor.d.ts.map +1 -1
  65. package/dest/simulator/public_executor.js +2 -2
  66. package/dest/simulator/public_kernel.d.ts +3 -3
  67. package/dest/simulator/public_kernel.d.ts.map +1 -1
  68. package/dest/simulator/public_kernel.js +1 -1
  69. package/package.json +13 -13
  70. package/src/client/sequencer-client.ts +8 -8
  71. package/src/config.ts +5 -5
  72. package/src/global_variable_builder/config.ts +1 -1
  73. package/src/global_variable_builder/global_builder.ts +1 -1
  74. package/src/global_variable_builder/index.ts +2 -2
  75. package/src/global_variable_builder/viem-reader.ts +6 -6
  76. package/src/publisher/config.ts +1 -1
  77. package/src/publisher/index.ts +1 -1
  78. package/src/publisher/l1-publisher.ts +4 -4
  79. package/src/publisher/viem-tx-sender.ts +12 -12
  80. package/src/receiver.ts +1 -1
  81. package/src/sequencer/abstract_phase_manager.ts +14 -14
  82. package/src/sequencer/app_logic_phase_manager.ts +11 -6
  83. package/src/sequencer/hints_builder.ts +9 -9
  84. package/src/sequencer/phase_manager_factory.ts +7 -7
  85. package/src/sequencer/public_processor.ts +10 -10
  86. package/src/sequencer/sequencer.ts +13 -13
  87. package/src/sequencer/setup_phase_manager.ts +11 -6
  88. package/src/sequencer/tail_phase_manager.ts +11 -6
  89. package/src/sequencer/teardown_phase_manager.ts +11 -6
  90. package/src/sequencer/tx_validator.ts +10 -4
  91. package/src/sequencer/tx_validator_factory.ts +3 -3
  92. package/src/sequencer/utils.ts +1 -1
  93. package/src/simulator/index.ts +3 -3
  94. package/src/simulator/public_executor.ts +20 -11
  95. package/src/simulator/public_kernel.ts +6 -6
package/src/config.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { AztecAddress, Fr } from '@aztec/circuits.js';
2
- import { L1ContractAddresses, NULL_KEY } from '@aztec/ethereum';
2
+ import { type L1ContractAddresses, NULL_KEY } from '@aztec/ethereum';
3
3
  import { EthAddress } from '@aztec/foundation/eth-address';
4
4
 
5
- import { Hex } from 'viem';
5
+ import { type Hex } from 'viem';
6
6
 
7
- import { GlobalReaderConfig } from './global_variable_builder/index.js';
8
- import { PublisherConfig, TxSenderConfig } from './publisher/config.js';
9
- import { SequencerConfig } from './sequencer/config.js';
7
+ import { type GlobalReaderConfig } from './global_variable_builder/index.js';
8
+ import { type PublisherConfig, type TxSenderConfig } from './publisher/config.js';
9
+ import { type SequencerConfig } from './sequencer/config.js';
10
10
 
11
11
  /** Chain configuration. */
12
12
  type ChainConfig = {
@@ -1,4 +1,4 @@
1
- import { L1ContractAddresses } from '@aztec/ethereum';
1
+ import { type L1ContractAddresses } from '@aztec/ethereum';
2
2
 
3
3
  /**
4
4
  * Configuration of the L1GlobalReader.
@@ -1,4 +1,4 @@
1
- import { AztecAddress, EthAddress, GlobalVariables } from '@aztec/circuits.js';
1
+ import { type AztecAddress, type EthAddress, GlobalVariables } from '@aztec/circuits.js';
2
2
  import { Fr } from '@aztec/foundation/fields';
3
3
  import { createDebugLogger } from '@aztec/foundation/log';
4
4
 
@@ -1,5 +1,5 @@
1
- import { GlobalReaderConfig } from './config.js';
2
- import { GlobalVariableBuilder, SimpleTestGlobalVariableBuilder } from './global_builder.js';
1
+ import { type GlobalReaderConfig } from './config.js';
2
+ import { type GlobalVariableBuilder, SimpleTestGlobalVariableBuilder } from './global_builder.js';
3
3
  import { ViemReader } from './viem-reader.js';
4
4
 
5
5
  export { SimpleTestGlobalVariableBuilder as SimpleGlobalVariableBuilder } from './global_builder.js';
@@ -2,18 +2,18 @@ import { createEthereumChain } from '@aztec/ethereum';
2
2
  import { RollupAbi } from '@aztec/l1-artifacts';
3
3
 
4
4
  import {
5
- GetContractReturnType,
6
- HttpTransport,
7
- PublicClient,
5
+ type GetContractReturnType,
6
+ type HttpTransport,
7
+ type PublicClient,
8
8
  createPublicClient,
9
9
  getAddress,
10
10
  getContract,
11
11
  http,
12
12
  } from 'viem';
13
- import * as chains from 'viem/chains';
13
+ import type * as chains from 'viem/chains';
14
14
 
15
- import { GlobalReaderConfig } from './config.js';
16
- import { L1GlobalReader } from './global_builder.js';
15
+ import { type GlobalReaderConfig } from './config.js';
16
+ import { type L1GlobalReader } from './global_builder.js';
17
17
 
18
18
  /**
19
19
  * Reads values from L1 state using viem.
@@ -1,4 +1,4 @@
1
- import { L1ContractAddresses } from '@aztec/ethereum';
1
+ import { type L1ContractAddresses } from '@aztec/ethereum';
2
2
 
3
3
  /**
4
4
  * The configuration of the rollup transaction publisher.
@@ -1,4 +1,4 @@
1
- import { PublisherConfig, TxSenderConfig } from './config.js';
1
+ import { type PublisherConfig, type TxSenderConfig } from './config.js';
2
2
  import { L1Publisher } from './l1-publisher.js';
3
3
  import { ViemTxSender } from './viem-tx-sender.js';
4
4
 
@@ -1,12 +1,12 @@
1
- import { L2Block } from '@aztec/circuit-types';
2
- import { L1PublishStats } from '@aztec/circuit-types/stats';
1
+ import { type L2Block } from '@aztec/circuit-types';
2
+ import { type L1PublishStats } from '@aztec/circuit-types/stats';
3
3
  import { createDebugLogger } from '@aztec/foundation/log';
4
4
  import { InterruptibleSleep } from '@aztec/foundation/sleep';
5
5
 
6
6
  import pick from 'lodash.pick';
7
7
 
8
- import { L2BlockReceiver } from '../receiver.js';
9
- import { PublisherConfig } from './config.js';
8
+ import { type L2BlockReceiver } from '../receiver.js';
9
+ import { type PublisherConfig } from './config.js';
10
10
 
11
11
  /**
12
12
  * Stats for a sent transaction.
@@ -1,14 +1,14 @@
1
- import { L2Block } from '@aztec/circuit-types';
1
+ import { type L2Block } from '@aztec/circuit-types';
2
2
  import { createEthereumChain } from '@aztec/ethereum';
3
3
  import { createDebugLogger } from '@aztec/foundation/log';
4
4
  import { AvailabilityOracleAbi, RollupAbi } from '@aztec/l1-artifacts';
5
5
 
6
6
  import {
7
- GetContractReturnType,
8
- Hex,
9
- HttpTransport,
10
- PublicClient,
11
- WalletClient,
7
+ type GetContractReturnType,
8
+ type Hex,
9
+ type HttpTransport,
10
+ type PublicClient,
11
+ type WalletClient,
12
12
  createPublicClient,
13
13
  createWalletClient,
14
14
  getAddress,
@@ -16,15 +16,15 @@ import {
16
16
  hexToBytes,
17
17
  http,
18
18
  } from 'viem';
19
- import { PrivateKeyAccount, privateKeyToAccount } from 'viem/accounts';
19
+ import { type PrivateKeyAccount, privateKeyToAccount } from 'viem/accounts';
20
20
  import * as chains from 'viem/chains';
21
21
 
22
- import { TxSenderConfig } from './config.js';
22
+ import { type TxSenderConfig } from './config.js';
23
23
  import {
24
- L1PublisherTxSender,
25
- MinimalTransactionReceipt,
26
- L1ProcessArgs as ProcessTxArgs,
27
- TransactionStats,
24
+ type L1PublisherTxSender,
25
+ type MinimalTransactionReceipt,
26
+ type L1ProcessArgs as ProcessTxArgs,
27
+ type TransactionStats,
28
28
  } from './l1-publisher.js';
29
29
 
30
30
  /**
package/src/receiver.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { L2Block } from '@aztec/circuit-types';
1
+ import { type L2Block } from '@aztec/circuit-types';
2
2
 
3
3
  /**
4
4
  * Given the necessary rollup data, verifies it, and updates the underlying state accordingly to advance the state of the system.
@@ -1,12 +1,12 @@
1
- import { MerkleTreeId, SimulationError, Tx, UnencryptedFunctionL2Logs } from '@aztec/circuit-types';
1
+ import { MerkleTreeId, type SimulationError, type Tx, type UnencryptedFunctionL2Logs } from '@aztec/circuit-types';
2
2
  import {
3
3
  AztecAddress,
4
4
  CallRequest,
5
5
  ContractStorageRead,
6
6
  ContractStorageUpdateRequest,
7
7
  Fr,
8
- GlobalVariables,
9
- Header,
8
+ type GlobalVariables,
9
+ type Header,
10
10
  L2ToL1Message,
11
11
  MAX_NEW_L2_TO_L1_MSGS_PER_CALL,
12
12
  MAX_NEW_NOTE_HASHES_PER_CALL,
@@ -20,16 +20,16 @@ import {
20
20
  MAX_PUBLIC_DATA_UPDATE_REQUESTS_PER_CALL,
21
21
  MAX_REVERTIBLE_PUBLIC_DATA_UPDATE_REQUESTS_PER_TX,
22
22
  MembershipWitness,
23
- PrivateKernelTailCircuitPublicInputs,
24
- Proof,
23
+ type PrivateKernelTailCircuitPublicInputs,
24
+ type Proof,
25
25
  PublicCallData,
26
- PublicCallRequest,
26
+ type PublicCallRequest,
27
27
  PublicCallStackItem,
28
28
  PublicCircuitPublicInputs,
29
29
  PublicDataRead,
30
30
  PublicDataUpdateRequest,
31
31
  PublicKernelCircuitPrivateInputs,
32
- PublicKernelCircuitPublicInputs,
32
+ type PublicKernelCircuitPublicInputs,
33
33
  PublicKernelData,
34
34
  PublicKernelTailCircuitPrivateInputs,
35
35
  RETURN_VALUES_LENGTH,
@@ -43,19 +43,19 @@ import {
43
43
  } from '@aztec/circuits.js';
44
44
  import { computeVarArgsHash } from '@aztec/circuits.js/hash';
45
45
  import { arrayNonEmptyLength, padArrayEnd } from '@aztec/foundation/collection';
46
- import { DebugLogger, createDebugLogger } from '@aztec/foundation/log';
47
- import { Tuple } from '@aztec/foundation/serialize';
46
+ import { type DebugLogger, createDebugLogger } from '@aztec/foundation/log';
47
+ import { type Tuple } from '@aztec/foundation/serialize';
48
48
  import {
49
- PublicExecution,
50
- PublicExecutionResult,
51
- PublicExecutor,
49
+ type PublicExecution,
50
+ type PublicExecutionResult,
51
+ type PublicExecutor,
52
52
  collectPublicDataReads,
53
53
  collectPublicDataUpdateRequests,
54
54
  isPublicExecutionResult,
55
55
  } from '@aztec/simulator';
56
- import { MerkleTreeOperations } from '@aztec/world-state';
56
+ import { type MerkleTreeOperations } from '@aztec/world-state';
57
57
 
58
- import { PublicKernelCircuitSimulator } from '../simulator/index.js';
58
+ import { type PublicKernelCircuitSimulator } from '../simulator/index.js';
59
59
  import { HintsBuilder } from './hints_builder.js';
60
60
  import { lastSideEffectCounter } from './utils.js';
61
61
 
@@ -1,10 +1,15 @@
1
- import { Tx } from '@aztec/circuit-types';
2
- import { GlobalVariables, Header, Proof, PublicKernelCircuitPublicInputs } from '@aztec/circuits.js';
3
- import { PublicExecutor, PublicStateDB } from '@aztec/simulator';
4
- import { MerkleTreeOperations } from '@aztec/world-state';
1
+ import { type Tx } from '@aztec/circuit-types';
2
+ import {
3
+ type GlobalVariables,
4
+ type Header,
5
+ type Proof,
6
+ type PublicKernelCircuitPublicInputs,
7
+ } from '@aztec/circuits.js';
8
+ import { type PublicExecutor, type PublicStateDB } from '@aztec/simulator';
9
+ import { type MerkleTreeOperations } from '@aztec/world-state';
5
10
 
6
- import { PublicKernelCircuitSimulator } from '../simulator/index.js';
7
- import { ContractsDataSourcePublicDB } from '../simulator/public_executor.js';
11
+ import { type PublicKernelCircuitSimulator } from '../simulator/index.js';
12
+ import { type ContractsDataSourcePublicDB } from '../simulator/public_executor.js';
8
13
  import { AbstractPhaseManager, PublicKernelPhase } from './abstract_phase_manager.js';
9
14
 
10
15
  /**
@@ -1,21 +1,21 @@
1
1
  import { MerkleTreeId } from '@aztec/circuit-types';
2
2
  import {
3
- Fr,
3
+ type Fr,
4
4
  MAX_NEW_NULLIFIERS_PER_TX,
5
- MAX_NON_REVERTIBLE_NULLIFIERS_PER_TX,
6
- MAX_NULLIFIER_NON_EXISTENT_READ_REQUESTS_PER_TX,
7
- MAX_NULLIFIER_READ_REQUESTS_PER_TX,
8
- MAX_REVERTIBLE_NULLIFIERS_PER_TX,
5
+ type MAX_NON_REVERTIBLE_NULLIFIERS_PER_TX,
6
+ type MAX_NULLIFIER_NON_EXISTENT_READ_REQUESTS_PER_TX,
7
+ type MAX_NULLIFIER_READ_REQUESTS_PER_TX,
8
+ type MAX_REVERTIBLE_NULLIFIERS_PER_TX,
9
9
  MembershipWitness,
10
10
  NULLIFIER_TREE_HEIGHT,
11
- ReadRequestContext,
12
- SideEffectLinkedToNoteHash,
11
+ type ReadRequestContext,
12
+ type SideEffectLinkedToNoteHash,
13
13
  buildNullifierNonExistentReadRequestHints,
14
14
  buildNullifierReadRequestHints,
15
15
  concatAccumulatedData,
16
16
  } from '@aztec/circuits.js';
17
- import { Tuple } from '@aztec/foundation/serialize';
18
- import { MerkleTreeOperations } from '@aztec/world-state';
17
+ import { type Tuple } from '@aztec/foundation/serialize';
18
+ import { type MerkleTreeOperations } from '@aztec/world-state';
19
19
 
20
20
  export class HintsBuilder {
21
21
  constructor(private db: MerkleTreeOperations) {}
@@ -1,11 +1,11 @@
1
- import { Tx } from '@aztec/circuit-types';
2
- import { GlobalVariables, Header, PublicKernelCircuitPublicInputs } from '@aztec/circuits.js';
3
- import { PublicExecutor, PublicStateDB } from '@aztec/simulator';
4
- import { MerkleTreeOperations } from '@aztec/world-state';
1
+ import { type Tx } from '@aztec/circuit-types';
2
+ import { type GlobalVariables, type Header, type PublicKernelCircuitPublicInputs } from '@aztec/circuits.js';
3
+ import { type PublicExecutor, type PublicStateDB } from '@aztec/simulator';
4
+ import { type MerkleTreeOperations } from '@aztec/world-state';
5
5
 
6
- import { PublicKernelCircuitSimulator } from '../simulator/index.js';
7
- import { ContractsDataSourcePublicDB } from '../simulator/public_executor.js';
8
- import { AbstractPhaseManager, PublicKernelPhase } from './abstract_phase_manager.js';
6
+ import { type PublicKernelCircuitSimulator } from '../simulator/index.js';
7
+ import { type ContractsDataSourcePublicDB } from '../simulator/public_executor.js';
8
+ import { type AbstractPhaseManager, PublicKernelPhase } from './abstract_phase_manager.js';
9
9
  import { AppLogicPhaseManager } from './app_logic_phase_manager.js';
10
10
  import { SetupPhaseManager } from './setup_phase_manager.js';
11
11
  import { TailPhaseManager } from './tail_phase_manager.js';
@@ -1,7 +1,7 @@
1
1
  import {
2
- FailedTx,
3
- ProcessedTx,
4
- SimulationError,
2
+ type FailedTx,
3
+ type ProcessedTx,
4
+ type SimulationError,
5
5
  Tx,
6
6
  getPreviousOutputAndProof,
7
7
  makeEmptyProcessedTx,
@@ -9,18 +9,18 @@ import {
9
9
  toTxEffect,
10
10
  validateProcessedTx,
11
11
  } from '@aztec/circuit-types';
12
- import { TxSequencerProcessingStats } from '@aztec/circuit-types/stats';
13
- import { GlobalVariables, Header } from '@aztec/circuits.js';
12
+ import { type TxSequencerProcessingStats } from '@aztec/circuit-types/stats';
13
+ import { type GlobalVariables, type Header } from '@aztec/circuits.js';
14
14
  import { createDebugLogger } from '@aztec/foundation/log';
15
15
  import { Timer } from '@aztec/foundation/timer';
16
- import { PublicExecutor, PublicStateDB, SimulationProvider } from '@aztec/simulator';
17
- import { ContractDataSource } from '@aztec/types/contracts';
18
- import { MerkleTreeOperations } from '@aztec/world-state';
16
+ import { PublicExecutor, type PublicStateDB, type SimulationProvider } from '@aztec/simulator';
17
+ import { type ContractDataSource } from '@aztec/types/contracts';
18
+ import { type MerkleTreeOperations } from '@aztec/world-state';
19
19
 
20
- import { PublicKernelCircuitSimulator } from '../simulator/index.js';
20
+ import { type PublicKernelCircuitSimulator } from '../simulator/index.js';
21
21
  import { ContractsDataSourcePublicDB, WorldStateDB, WorldStatePublicDB } from '../simulator/public_executor.js';
22
22
  import { RealPublicKernelCircuitSimulator } from '../simulator/public_kernel.js';
23
- import { AbstractPhaseManager } from './abstract_phase_manager.js';
23
+ import { type AbstractPhaseManager } from './abstract_phase_manager.js';
24
24
  import { PhaseManagerFactory } from './phase_manager_factory.js';
25
25
 
26
26
  /**
@@ -1,20 +1,20 @@
1
- import { L1ToL2MessageSource, L2Block, L2BlockSource, ProcessedTx, Tx } from '@aztec/circuit-types';
2
- import { BlockProver, PROVING_STATUS } from '@aztec/circuit-types/interfaces';
3
- import { L2BlockBuiltStats } from '@aztec/circuit-types/stats';
4
- import { AztecAddress, EthAddress, GlobalVariables } from '@aztec/circuits.js';
1
+ import { type L1ToL2MessageSource, type L2Block, type L2BlockSource, type ProcessedTx, Tx } from '@aztec/circuit-types';
2
+ import { type BlockProver, PROVING_STATUS } from '@aztec/circuit-types/interfaces';
3
+ import { type L2BlockBuiltStats } from '@aztec/circuit-types/stats';
4
+ import { AztecAddress, EthAddress, type GlobalVariables } from '@aztec/circuits.js';
5
5
  import { Fr } from '@aztec/foundation/fields';
6
6
  import { createDebugLogger } from '@aztec/foundation/log';
7
7
  import { RunningPromise } from '@aztec/foundation/running-promise';
8
8
  import { Timer, elapsed } from '@aztec/foundation/timer';
9
- import { P2P } from '@aztec/p2p';
10
- import { WorldStateStatus, WorldStateSynchronizer } from '@aztec/world-state';
11
-
12
- import { GlobalVariableBuilder } from '../global_variable_builder/global_builder.js';
13
- import { L1Publisher } from '../publisher/l1-publisher.js';
14
- import { SequencerConfig } from './config.js';
15
- import { PublicProcessorFactory } from './public_processor.js';
16
- import { TxValidator } from './tx_validator.js';
17
- import { TxValidatorFactory } from './tx_validator_factory.js';
9
+ import { type P2P } from '@aztec/p2p';
10
+ import { type WorldStateStatus, type WorldStateSynchronizer } from '@aztec/world-state';
11
+
12
+ import { type GlobalVariableBuilder } from '../global_variable_builder/global_builder.js';
13
+ import { type L1Publisher } from '../publisher/l1-publisher.js';
14
+ import { type SequencerConfig } from './config.js';
15
+ import { type PublicProcessorFactory } from './public_processor.js';
16
+ import { type TxValidator } from './tx_validator.js';
17
+ import { type TxValidatorFactory } from './tx_validator_factory.js';
18
18
 
19
19
  /**
20
20
  * Sequencer client
@@ -1,10 +1,15 @@
1
- import { Tx } from '@aztec/circuit-types';
2
- import { GlobalVariables, Header, Proof, PublicKernelCircuitPublicInputs } from '@aztec/circuits.js';
3
- import { PublicExecutor, PublicStateDB } from '@aztec/simulator';
4
- import { MerkleTreeOperations } from '@aztec/world-state';
1
+ import { type Tx } from '@aztec/circuit-types';
2
+ import {
3
+ type GlobalVariables,
4
+ type Header,
5
+ type Proof,
6
+ type PublicKernelCircuitPublicInputs,
7
+ } from '@aztec/circuits.js';
8
+ import { type PublicExecutor, type PublicStateDB } from '@aztec/simulator';
9
+ import { type MerkleTreeOperations } from '@aztec/world-state';
5
10
 
6
- import { PublicKernelCircuitSimulator } from '../simulator/index.js';
7
- import { ContractsDataSourcePublicDB } from '../simulator/public_executor.js';
11
+ import { type PublicKernelCircuitSimulator } from '../simulator/index.js';
12
+ import { type ContractsDataSourcePublicDB } from '../simulator/public_executor.js';
8
13
  import { AbstractPhaseManager, PublicKernelPhase } from './abstract_phase_manager.js';
9
14
 
10
15
  /**
@@ -1,10 +1,15 @@
1
- import { Tx } from '@aztec/circuit-types';
2
- import { GlobalVariables, Header, Proof, PublicKernelCircuitPublicInputs } from '@aztec/circuits.js';
3
- import { PublicExecutor, PublicStateDB } from '@aztec/simulator';
4
- import { MerkleTreeOperations } from '@aztec/world-state';
1
+ import { type Tx } from '@aztec/circuit-types';
2
+ import {
3
+ type GlobalVariables,
4
+ type Header,
5
+ type Proof,
6
+ type PublicKernelCircuitPublicInputs,
7
+ } from '@aztec/circuits.js';
8
+ import { type PublicExecutor, type PublicStateDB } from '@aztec/simulator';
9
+ import { type MerkleTreeOperations } from '@aztec/world-state';
5
10
 
6
- import { PublicKernelCircuitSimulator } from '../simulator/index.js';
7
- import { ContractsDataSourcePublicDB } from '../simulator/public_executor.js';
11
+ import { type PublicKernelCircuitSimulator } from '../simulator/index.js';
12
+ import { type ContractsDataSourcePublicDB } from '../simulator/public_executor.js';
8
13
  import { AbstractPhaseManager, PublicKernelPhase } from './abstract_phase_manager.js';
9
14
 
10
15
  export class TailPhaseManager extends AbstractPhaseManager {
@@ -1,10 +1,15 @@
1
- import { Tx } from '@aztec/circuit-types';
2
- import { GlobalVariables, Header, Proof, PublicKernelCircuitPublicInputs } from '@aztec/circuits.js';
3
- import { PublicExecutor, PublicStateDB } from '@aztec/simulator';
4
- import { MerkleTreeOperations } from '@aztec/world-state';
1
+ import { type Tx } from '@aztec/circuit-types';
2
+ import {
3
+ type GlobalVariables,
4
+ type Header,
5
+ type Proof,
6
+ type PublicKernelCircuitPublicInputs,
7
+ } from '@aztec/circuits.js';
8
+ import { type PublicExecutor, type PublicStateDB } from '@aztec/simulator';
9
+ import { type MerkleTreeOperations } from '@aztec/world-state';
5
10
 
6
- import { PublicKernelCircuitSimulator } from '../simulator/index.js';
7
- import { ContractsDataSourcePublicDB } from '../simulator/public_executor.js';
11
+ import { type PublicKernelCircuitSimulator } from '../simulator/index.js';
12
+ import { type ContractsDataSourcePublicDB } from '../simulator/public_executor.js';
8
13
  import { AbstractPhaseManager, PublicKernelPhase } from './abstract_phase_manager.js';
9
14
 
10
15
  /**
@@ -1,9 +1,15 @@
1
- import { ProcessedTx, Tx } from '@aztec/circuit-types';
2
- import { AztecAddress, EthAddress, Fr, GlobalVariables, PublicCallRequest } from '@aztec/circuits.js';
1
+ import { type ProcessedTx, Tx } from '@aztec/circuit-types';
2
+ import {
3
+ type AztecAddress,
4
+ type EthAddress,
5
+ Fr,
6
+ type GlobalVariables,
7
+ type PublicCallRequest,
8
+ } from '@aztec/circuits.js';
3
9
  import { pedersenHash } from '@aztec/foundation/crypto';
4
- import { Logger, createDebugLogger } from '@aztec/foundation/log';
10
+ import { type Logger, createDebugLogger } from '@aztec/foundation/log';
5
11
  import { getCanonicalGasTokenAddress } from '@aztec/protocol-contracts/gas-token';
6
- import { ContractDataSource } from '@aztec/types/contracts';
12
+ import { type ContractDataSource } from '@aztec/types/contracts';
7
13
 
8
14
  import { AbstractPhaseManager, PublicKernelPhase } from './abstract_phase_manager.js';
9
15
 
@@ -1,6 +1,6 @@
1
- import { AztecAddress, EthAddress, Fr, GlobalVariables } from '@aztec/circuits.js';
2
- import { ContractDataSource } from '@aztec/types/contracts';
3
- import { MerkleTreeOperations } from '@aztec/world-state';
1
+ import { type AztecAddress, type EthAddress, type Fr, type GlobalVariables } from '@aztec/circuits.js';
2
+ import { type ContractDataSource } from '@aztec/types/contracts';
3
+ import { type MerkleTreeOperations } from '@aztec/world-state';
4
4
 
5
5
  import { WorldStateDB, WorldStatePublicDB } from '../simulator/public_executor.js';
6
6
  import { TxValidator } from './tx_validator.js';
@@ -1,4 +1,4 @@
1
- import { Tx } from '@aztec/circuit-types';
1
+ import { type Tx } from '@aztec/circuit-types';
2
2
  import { CallRequest } from '@aztec/circuits.js';
3
3
 
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  import {
2
- PublicKernelCircuitPrivateInputs,
3
- PublicKernelCircuitPublicInputs,
4
- PublicKernelTailCircuitPrivateInputs,
2
+ type PublicKernelCircuitPrivateInputs,
3
+ type PublicKernelCircuitPublicInputs,
4
+ type PublicKernelTailCircuitPrivateInputs,
5
5
  } from '@aztec/circuits.js';
6
6
 
7
7
  /**
@@ -1,22 +1,31 @@
1
- import { MerkleTreeId, NullifierMembershipWitness, Tx } from '@aztec/circuit-types';
1
+ import { MerkleTreeId, NullifierMembershipWitness, type Tx } from '@aztec/circuit-types';
2
2
  import {
3
- AztecAddress,
3
+ type AztecAddress,
4
4
  ContractClassRegisteredEvent,
5
5
  ContractInstanceDeployedEvent,
6
- EthAddress,
6
+ type EthAddress,
7
7
  Fr,
8
- FunctionSelector,
9
- L1_TO_L2_MSG_TREE_HEIGHT,
10
- NULLIFIER_TREE_HEIGHT,
11
- NullifierLeafPreimage,
12
- PublicDataTreeLeafPreimage,
8
+ type FunctionSelector,
9
+ type L1_TO_L2_MSG_TREE_HEIGHT,
10
+ type NULLIFIER_TREE_HEIGHT,
11
+ type NullifierLeafPreimage,
12
+ type PublicDataTreeLeafPreimage,
13
13
  } from '@aztec/circuits.js';
14
14
  import { computeL1ToL2MessageNullifier, computePublicDataTreeLeafSlot } from '@aztec/circuits.js/hash';
15
15
  import { createDebugLogger } from '@aztec/foundation/log';
16
16
  import { getCanonicalClassRegistererAddress } from '@aztec/protocol-contracts/class-registerer';
17
- import { CommitmentsDB, MessageLoadOracleInputs, PublicContractsDB, PublicStateDB } from '@aztec/simulator';
18
- import { ContractClassPublic, ContractDataSource, ContractInstanceWithAddress } from '@aztec/types/contracts';
19
- import { MerkleTreeOperations } from '@aztec/world-state';
17
+ import {
18
+ type CommitmentsDB,
19
+ MessageLoadOracleInputs,
20
+ type PublicContractsDB,
21
+ type PublicStateDB,
22
+ } from '@aztec/simulator';
23
+ import {
24
+ type ContractClassPublic,
25
+ type ContractDataSource,
26
+ type ContractInstanceWithAddress,
27
+ } from '@aztec/types/contracts';
28
+ import { type MerkleTreeOperations } from '@aztec/world-state';
20
29
 
21
30
  /**
22
31
  * Implements the PublicContractsDB using a ContractDataSource.
@@ -1,8 +1,8 @@
1
- import { CircuitSimulationStats } from '@aztec/circuit-types/stats';
1
+ import { type CircuitSimulationStats } from '@aztec/circuit-types/stats';
2
2
  import {
3
- PublicKernelCircuitPrivateInputs,
4
- PublicKernelCircuitPublicInputs,
5
- PublicKernelTailCircuitPrivateInputs,
3
+ type PublicKernelCircuitPrivateInputs,
4
+ type PublicKernelCircuitPublicInputs,
5
+ type PublicKernelTailCircuitPrivateInputs,
6
6
  } from '@aztec/circuits.js';
7
7
  import { createDebugLogger } from '@aztec/foundation/log';
8
8
  import { elapsed } from '@aztec/foundation/timer';
@@ -20,9 +20,9 @@ import {
20
20
  convertPublicTeardownRollupInputsToWitnessMap,
21
21
  convertPublicTeardownRollupOutputFromWitnessMap,
22
22
  } from '@aztec/noir-protocol-circuits-types';
23
- import { SimulationProvider, WASMSimulator } from '@aztec/simulator';
23
+ import { type SimulationProvider, WASMSimulator } from '@aztec/simulator';
24
24
 
25
- import { PublicKernelCircuitSimulator } from './index.js';
25
+ import { type PublicKernelCircuitSimulator } from './index.js';
26
26
 
27
27
  /**
28
28
  * Implements the PublicKernelCircuitSimulator.