@aztec/pxe 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 (81) hide show
  1. package/dest/contract_data_oracle/index.d.ts +6 -6
  2. package/dest/contract_data_oracle/index.d.ts.map +1 -1
  3. package/dest/contract_data_oracle/index.js +1 -1
  4. package/dest/contract_data_oracle/private_functions_tree.d.ts +3 -3
  5. package/dest/contract_data_oracle/private_functions_tree.d.ts.map +1 -1
  6. package/dest/database/contracts/contract_artifact_db.d.ts +2 -2
  7. package/dest/database/contracts/contract_artifact_db.d.ts.map +1 -1
  8. package/dest/database/contracts/contract_instance_db.d.ts +2 -2
  9. package/dest/database/contracts/contract_instance_db.d.ts.map +1 -1
  10. package/dest/database/deferred_note_dao.d.ts +1 -1
  11. package/dest/database/deferred_note_dao.d.ts.map +1 -1
  12. package/dest/database/deferred_note_dao.js +1 -1
  13. package/dest/database/kv_pxe_database.d.ts +6 -6
  14. package/dest/database/kv_pxe_database.d.ts.map +1 -1
  15. package/dest/database/kv_pxe_database.js +1 -1
  16. package/dest/database/note_dao.d.ts +2 -2
  17. package/dest/database/note_dao.d.ts.map +1 -1
  18. package/dest/database/note_dao.js +1 -1
  19. package/dest/database/pxe_database.d.ts +10 -10
  20. package/dest/database/pxe_database.d.ts.map +1 -1
  21. package/dest/database/pxe_database_test_suite.d.ts +1 -1
  22. package/dest/database/pxe_database_test_suite.d.ts.map +1 -1
  23. package/dest/database/pxe_database_test_suite.js +1 -1
  24. package/dest/kernel_oracle/index.d.ts +4 -4
  25. package/dest/kernel_oracle/index.d.ts.map +1 -1
  26. package/dest/kernel_prover/hints_builder.d.ts +3 -3
  27. package/dest/kernel_prover/hints_builder.d.ts.map +1 -1
  28. package/dest/kernel_prover/kernel_prover.d.ts +4 -4
  29. package/dest/kernel_prover/kernel_prover.d.ts.map +1 -1
  30. package/dest/kernel_prover/kernel_prover.js +1 -1
  31. package/dest/kernel_prover/proof_creator.d.ts +2 -2
  32. package/dest/kernel_prover/proof_creator.d.ts.map +1 -1
  33. package/dest/kernel_prover/proving_data_oracle.d.ts +3 -3
  34. package/dest/kernel_prover/proving_data_oracle.d.ts.map +1 -1
  35. package/dest/note_processor/note_processor.d.ts +5 -5
  36. package/dest/note_processor/note_processor.d.ts.map +1 -1
  37. package/dest/note_processor/note_processor.js +1 -1
  38. package/dest/note_processor/produce_note_dao.d.ts +3 -3
  39. package/dest/note_processor/produce_note_dao.d.ts.map +1 -1
  40. package/dest/note_processor/produce_note_dao.js +1 -1
  41. package/dest/pxe_http/pxe_http_server.d.ts +1 -1
  42. package/dest/pxe_http/pxe_http_server.d.ts.map +1 -1
  43. package/dest/pxe_service/create_pxe_service.d.ts +2 -2
  44. package/dest/pxe_service/create_pxe_service.d.ts.map +1 -1
  45. package/dest/pxe_service/pxe_service.d.ts +7 -7
  46. package/dest/pxe_service/pxe_service.d.ts.map +1 -1
  47. package/dest/pxe_service/pxe_service.js +1 -1
  48. package/dest/pxe_service/test/pxe_test_suite.d.ts +1 -1
  49. package/dest/pxe_service/test/pxe_test_suite.d.ts.map +1 -1
  50. package/dest/simulator/index.d.ts +2 -2
  51. package/dest/simulator/index.d.ts.map +1 -1
  52. package/dest/simulator_oracle/index.d.ts +7 -7
  53. package/dest/simulator_oracle/index.d.ts.map +1 -1
  54. package/dest/simulator_oracle/index.js +1 -1
  55. package/dest/synchronizer/synchronizer.d.ts +4 -4
  56. package/dest/synchronizer/synchronizer.d.ts.map +1 -1
  57. package/dest/synchronizer/synchronizer.js +2 -2
  58. package/package.json +12 -12
  59. package/src/contract_data_oracle/index.ts +9 -9
  60. package/src/contract_data_oracle/private_functions_tree.ts +3 -3
  61. package/src/database/contracts/contract_artifact_db.ts +2 -2
  62. package/src/database/contracts/contract_instance_db.ts +2 -2
  63. package/src/database/deferred_note_dao.ts +1 -1
  64. package/src/database/kv_pxe_database.ts +12 -6
  65. package/src/database/note_dao.ts +2 -2
  66. package/src/database/pxe_database.ts +11 -11
  67. package/src/database/pxe_database_test_suite.ts +3 -3
  68. package/src/kernel_oracle/index.ts +9 -9
  69. package/src/kernel_prover/hints_builder.ts +9 -9
  70. package/src/kernel_prover/kernel_prover.ts +9 -9
  71. package/src/kernel_prover/proof_creator.ts +9 -9
  72. package/src/kernel_prover/proving_data_oracle.ts +11 -11
  73. package/src/note_processor/note_processor.ts +9 -9
  74. package/src/note_processor/produce_note_dao.ts +3 -3
  75. package/src/pxe_http/pxe_http_server.ts +1 -1
  76. package/src/pxe_service/create_pxe_service.ts +2 -2
  77. package/src/pxe_service/pxe_service.ts +26 -26
  78. package/src/pxe_service/test/pxe_test_suite.ts +1 -1
  79. package/src/simulator/index.ts +2 -2
  80. package/src/simulator_oracle/index.ts +19 -19
  81. package/src/synchronizer/synchronizer.ts +15 -8
@@ -1,17 +1,17 @@
1
- import { AztecAddress, MembershipWitness, VK_TREE_HEIGHT } from '@aztec/circuits.js';
1
+ import { type AztecAddress, MembershipWitness, VK_TREE_HEIGHT } from '@aztec/circuits.js';
2
2
  import {
3
- ContractArtifact,
4
- FunctionArtifact,
5
- FunctionDebugMetadata,
6
- FunctionSelector,
3
+ type ContractArtifact,
4
+ type FunctionArtifact,
5
+ type FunctionDebugMetadata,
6
+ type FunctionSelector,
7
7
  getFunctionDebugMetadata,
8
8
  } from '@aztec/foundation/abi';
9
- import { Fr } from '@aztec/foundation/fields';
9
+ import { type Fr } from '@aztec/foundation/fields';
10
10
  import { ContractClassNotFoundError, ContractNotFoundError } from '@aztec/simulator';
11
- import { ContractClass, ContractInstance } from '@aztec/types/contracts';
11
+ import { type ContractClass, type ContractInstance } from '@aztec/types/contracts';
12
12
 
13
- import { ContractArtifactDatabase } from '../database/contracts/contract_artifact_db.js';
14
- import { ContractInstanceDatabase } from '../database/contracts/contract_instance_db.js';
13
+ import { type ContractArtifactDatabase } from '../database/contracts/contract_artifact_db.js';
14
+ import { type ContractInstanceDatabase } from '../database/contracts/contract_instance_db.js';
15
15
  import { PrivateFunctionsTree } from './private_functions_tree.js';
16
16
 
17
17
  /**
@@ -5,11 +5,11 @@ import {
5
5
  computePrivateFunctionsTree,
6
6
  getContractClassFromArtifact,
7
7
  } from '@aztec/circuits.js';
8
- import { MerkleTree } from '@aztec/circuits.js/merkle';
9
- import { ContractArtifact, FunctionSelector } from '@aztec/foundation/abi';
8
+ import { type MerkleTree } from '@aztec/circuits.js/merkle';
9
+ import { type ContractArtifact, type FunctionSelector } from '@aztec/foundation/abi';
10
10
  import { Fr } from '@aztec/foundation/fields';
11
11
  import { assertLength } from '@aztec/foundation/serialize';
12
- import { ContractClassWithId } from '@aztec/types/contracts';
12
+ import { type ContractClassWithId } from '@aztec/types/contracts';
13
13
 
14
14
  /**
15
15
  * Represents a Merkle tree of functions for a particular Contract Class.
@@ -1,5 +1,5 @@
1
- import { ContractArtifact } from '@aztec/foundation/abi';
2
- import { Fr } from '@aztec/foundation/fields';
1
+ import { type ContractArtifact } from '@aztec/foundation/abi';
2
+ import { type Fr } from '@aztec/foundation/fields';
3
3
 
4
4
  /**
5
5
  * PXE database for managing contract artifacts.
@@ -1,5 +1,5 @@
1
- import { AztecAddress } from '@aztec/circuits.js';
2
- import { ContractInstanceWithAddress } from '@aztec/types/contracts';
1
+ import { type AztecAddress } from '@aztec/circuits.js';
2
+ import { type ContractInstanceWithAddress } from '@aztec/types/contracts';
3
3
 
4
4
  /**
5
5
  * PXE database for managing contract instances.
@@ -1,5 +1,5 @@
1
1
  import { Note, TxHash } from '@aztec/circuit-types';
2
- import { AztecAddress, Fr, Point, PublicKey, Vector } from '@aztec/circuits.js';
2
+ import { AztecAddress, Fr, Point, type PublicKey, Vector } from '@aztec/circuits.js';
3
3
  import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize';
4
4
 
5
5
  /**
@@ -1,15 +1,21 @@
1
- import { MerkleTreeId, NoteFilter, NoteStatus, PublicKey } from '@aztec/circuit-types';
1
+ import { MerkleTreeId, type NoteFilter, NoteStatus, type PublicKey } from '@aztec/circuit-types';
2
2
  import { AztecAddress, CompleteAddress, Header } from '@aztec/circuits.js';
3
- import { ContractArtifact } from '@aztec/foundation/abi';
3
+ import { type ContractArtifact } from '@aztec/foundation/abi';
4
4
  import { toBufferBE } from '@aztec/foundation/bigint-buffer';
5
- import { Fr, Point } from '@aztec/foundation/fields';
6
- import { AztecArray, AztecKVStore, AztecMap, AztecMultiMap, AztecSingleton } from '@aztec/kv-store';
5
+ import { Fr, type Point } from '@aztec/foundation/fields';
6
+ import {
7
+ type AztecArray,
8
+ type AztecKVStore,
9
+ type AztecMap,
10
+ type AztecMultiMap,
11
+ type AztecSingleton,
12
+ } from '@aztec/kv-store';
7
13
  import { contractArtifactFromBuffer, contractArtifactToBuffer } from '@aztec/types/abi';
8
- import { ContractInstanceWithAddress, SerializableContractInstance } from '@aztec/types/contracts';
14
+ import { type ContractInstanceWithAddress, SerializableContractInstance } from '@aztec/types/contracts';
9
15
 
10
16
  import { DeferredNoteDao } from './deferred_note_dao.js';
11
17
  import { NoteDao } from './note_dao.js';
12
- import { PxeDatabase } from './pxe_database.js';
18
+ import { type PxeDatabase } from './pxe_database.js';
13
19
 
14
20
  /**
15
21
  * A PXE database backed by LMDB.
@@ -1,8 +1,8 @@
1
1
  import { Note, TxHash } from '@aztec/circuit-types';
2
- import { AztecAddress, Fr, Point, PublicKey } from '@aztec/circuits.js';
2
+ import { AztecAddress, Fr, Point, type PublicKey } from '@aztec/circuits.js';
3
3
  import { toBigIntBE } from '@aztec/foundation/bigint-buffer';
4
4
  import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize';
5
- import { NoteData } from '@aztec/simulator';
5
+ import { type NoteData } from '@aztec/simulator';
6
6
 
7
7
  /**
8
8
  * A note with contextual data.
@@ -1,14 +1,14 @@
1
- import { NoteFilter } from '@aztec/circuit-types';
2
- import { CompleteAddress, Header, PublicKey } from '@aztec/circuits.js';
3
- import { ContractArtifact } from '@aztec/foundation/abi';
4
- import { AztecAddress } from '@aztec/foundation/aztec-address';
5
- import { Fr } from '@aztec/foundation/fields';
6
- import { ContractInstanceWithAddress } from '@aztec/types/contracts';
7
-
8
- import { ContractArtifactDatabase } from './contracts/contract_artifact_db.js';
9
- import { ContractInstanceDatabase } from './contracts/contract_instance_db.js';
10
- import { DeferredNoteDao } from './deferred_note_dao.js';
11
- import { NoteDao } from './note_dao.js';
1
+ import { type NoteFilter } from '@aztec/circuit-types';
2
+ import { type CompleteAddress, type Header, type PublicKey } from '@aztec/circuits.js';
3
+ import { type ContractArtifact } from '@aztec/foundation/abi';
4
+ import { type AztecAddress } from '@aztec/foundation/aztec-address';
5
+ import { type Fr } from '@aztec/foundation/fields';
6
+ import { type ContractInstanceWithAddress } from '@aztec/types/contracts';
7
+
8
+ import { type ContractArtifactDatabase } from './contracts/contract_artifact_db.js';
9
+ import { type ContractInstanceDatabase } from './contracts/contract_instance_db.js';
10
+ import { type DeferredNoteDao } from './deferred_note_dao.js';
11
+ import { type NoteDao } from './note_dao.js';
12
12
 
13
13
  /**
14
14
  * A database interface that provides methods for retrieving, adding, and removing transactional data related to Aztec
@@ -1,4 +1,4 @@
1
- import { NoteFilter, NoteStatus, randomTxHash } from '@aztec/circuit-types';
1
+ import { type NoteFilter, NoteStatus, randomTxHash } from '@aztec/circuit-types';
2
2
  import { AztecAddress, CompleteAddress, INITIAL_L2_BLOCK_NUM } from '@aztec/circuits.js';
3
3
  import { makeHeader } from '@aztec/circuits.js/testing';
4
4
  import { randomInt } from '@aztec/foundation/crypto';
@@ -6,9 +6,9 @@ import { Fr, Point } from '@aztec/foundation/fields';
6
6
  import { BenchmarkingContractArtifact } from '@aztec/noir-contracts.js/Benchmarking';
7
7
  import { SerializableContractInstance } from '@aztec/types/contracts';
8
8
 
9
- import { NoteDao } from './note_dao.js';
9
+ import { type NoteDao } from './note_dao.js';
10
10
  import { randomNoteDao } from './note_dao.test.js';
11
- import { PxeDatabase } from './pxe_database.js';
11
+ import { type PxeDatabase } from './pxe_database.js';
12
12
 
13
13
  /**
14
14
  * A common test suite for a PXE database.
@@ -1,18 +1,18 @@
1
- import { AztecNode, KeyStore } from '@aztec/circuit-types';
1
+ import { type AztecNode, type KeyStore } from '@aztec/circuit-types';
2
2
  import {
3
- AztecAddress,
4
- Fr,
5
- FunctionSelector,
3
+ type AztecAddress,
4
+ type Fr,
5
+ type FunctionSelector,
6
6
  MembershipWitness,
7
- NOTE_HASH_TREE_HEIGHT,
8
- Point,
7
+ type NOTE_HASH_TREE_HEIGHT,
8
+ type Point,
9
9
  computeContractClassIdPreimage,
10
10
  computeSaltedInitializationHash,
11
11
  } from '@aztec/circuits.js';
12
- import { Tuple } from '@aztec/foundation/serialize';
12
+ import { type Tuple } from '@aztec/foundation/serialize';
13
13
 
14
- import { ContractDataOracle } from '../contract_data_oracle/index.js';
15
- import { ProvingDataOracle } from './../kernel_prover/proving_data_oracle.js';
14
+ import { type ContractDataOracle } from '../contract_data_oracle/index.js';
15
+ import { type ProvingDataOracle } from './../kernel_prover/proving_data_oracle.js';
16
16
 
17
17
  // TODO: Block number should not be "latest".
18
18
  // It should be fixed at the time the proof is being simulated. I.e., it should be the same as the value defined in the constant data.
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  Fr,
3
3
  GrumpkinScalar,
4
- MAX_NEW_NOTE_HASHES_PER_TX,
4
+ type MAX_NEW_NOTE_HASHES_PER_TX,
5
5
  MAX_NEW_NULLIFIERS_PER_TX,
6
6
  MAX_NOTE_HASH_READ_REQUESTS_PER_TX,
7
7
  MAX_NULLIFIER_KEY_VALIDATION_REQUESTS_PER_TX,
8
- MAX_NULLIFIER_READ_REQUESTS_PER_TX,
8
+ type MAX_NULLIFIER_READ_REQUESTS_PER_TX,
9
9
  MembershipWitness,
10
10
  NULLIFIER_TREE_HEIGHT,
11
- NullifierKeyValidationRequestContext,
12
- ReadRequestContext,
13
- SideEffect,
14
- SideEffectLinkedToNoteHash,
15
- SideEffectType,
11
+ type NullifierKeyValidationRequestContext,
12
+ type ReadRequestContext,
13
+ type SideEffect,
14
+ type SideEffectLinkedToNoteHash,
15
+ type SideEffectType,
16
16
  buildNullifierReadRequestHints,
17
17
  } from '@aztec/circuits.js';
18
18
  import { makeTuple } from '@aztec/foundation/array';
19
- import { Tuple } from '@aztec/foundation/serialize';
19
+ import { type Tuple } from '@aztec/foundation/serialize';
20
20
 
21
- import { ProvingDataOracle } from './proving_data_oracle.js';
21
+ import { type ProvingDataOracle } from './proving_data_oracle.js';
22
22
 
23
23
  export class HintsBuilder {
24
24
  constructor(private oracle: ProvingDataOracle) {}
@@ -1,9 +1,9 @@
1
1
  import {
2
- AztecAddress,
2
+ type AztecAddress,
3
3
  CallRequest,
4
4
  Fr,
5
- MAX_NEW_NOTE_HASHES_PER_TX,
6
- MAX_NEW_NULLIFIERS_PER_TX,
5
+ type MAX_NEW_NOTE_HASHES_PER_TX,
6
+ type MAX_NEW_NULLIFIERS_PER_TX,
7
7
  MAX_NOTE_HASH_READ_REQUESTS_PER_CALL,
8
8
  MAX_PRIVATE_CALL_STACK_LENGTH_PER_CALL,
9
9
  MAX_PUBLIC_CALL_STACK_LENGTH_PER_CALL,
@@ -14,9 +14,9 @@ import {
14
14
  PrivateKernelInnerCircuitPublicInputs,
15
15
  PrivateKernelInnerData,
16
16
  PrivateKernelTailCircuitPrivateInputs,
17
- SideEffect,
18
- SideEffectLinkedToNoteHash,
19
- TxRequest,
17
+ type SideEffect,
18
+ type SideEffectLinkedToNoteHash,
19
+ type TxRequest,
20
20
  VK_TREE_HEIGHT,
21
21
  VerificationKey,
22
22
  makeEmptyProof,
@@ -26,11 +26,11 @@ import { padArrayEnd } from '@aztec/foundation/collection';
26
26
  import { createDebugLogger } from '@aztec/foundation/log';
27
27
  import { assertLength, mapTuple } from '@aztec/foundation/serialize';
28
28
  import { pushTestData } from '@aztec/foundation/testing';
29
- import { ExecutionResult, NoteAndSlot } from '@aztec/simulator';
29
+ import { type ExecutionResult, type NoteAndSlot } from '@aztec/simulator';
30
30
 
31
31
  import { HintsBuilder } from './hints_builder.js';
32
- import { KernelProofCreator, ProofCreator, ProofOutput, ProofOutputFinal } from './proof_creator.js';
33
- import { ProvingDataOracle } from './proving_data_oracle.js';
32
+ import { KernelProofCreator, type ProofCreator, type ProofOutput, type ProofOutputFinal } from './proof_creator.js';
33
+ import { type ProvingDataOracle } from './proving_data_oracle.js';
34
34
 
35
35
  /**
36
36
  * Represents an output note data object.
@@ -1,16 +1,16 @@
1
- import { CircuitSimulationStats } from '@aztec/circuit-types/stats';
1
+ import { type CircuitSimulationStats } from '@aztec/circuit-types/stats';
2
2
  import {
3
- PrivateCircuitPublicInputs,
4
- PrivateKernelInitCircuitPrivateInputs,
5
- PrivateKernelInnerCircuitPrivateInputs,
6
- PrivateKernelInnerCircuitPublicInputs,
7
- PrivateKernelTailCircuitPrivateInputs,
8
- PrivateKernelTailCircuitPublicInputs,
9
- Proof,
3
+ type PrivateCircuitPublicInputs,
4
+ type PrivateKernelInitCircuitPrivateInputs,
5
+ type PrivateKernelInnerCircuitPrivateInputs,
6
+ type PrivateKernelInnerCircuitPublicInputs,
7
+ type PrivateKernelTailCircuitPrivateInputs,
8
+ type PrivateKernelTailCircuitPublicInputs,
9
+ type Proof,
10
10
  makeEmptyProof,
11
11
  } from '@aztec/circuits.js';
12
12
  import { siloNoteHash } from '@aztec/circuits.js/hash';
13
- import { Fr } from '@aztec/foundation/fields';
13
+ import { type Fr } from '@aztec/foundation/fields';
14
14
  import { createDebugLogger } from '@aztec/foundation/log';
15
15
  import { elapsed } from '@aztec/foundation/timer';
16
16
  import { executeInit, executeInner, executeTail } from '@aztec/noir-protocol-circuits-types';
@@ -1,16 +1,16 @@
1
- import { NullifierMembershipWitness } from '@aztec/circuit-types';
1
+ import { type NullifierMembershipWitness } from '@aztec/circuit-types';
2
2
  import {
3
- FUNCTION_TREE_HEIGHT,
4
- Fr,
5
- FunctionSelector,
6
- GrumpkinPrivateKey,
7
- MembershipWitness,
8
- NOTE_HASH_TREE_HEIGHT,
9
- Point,
10
- VK_TREE_HEIGHT,
11
- VerificationKey,
3
+ type FUNCTION_TREE_HEIGHT,
4
+ type Fr,
5
+ type FunctionSelector,
6
+ type GrumpkinPrivateKey,
7
+ type MembershipWitness,
8
+ type NOTE_HASH_TREE_HEIGHT,
9
+ type Point,
10
+ type VK_TREE_HEIGHT,
11
+ type VerificationKey,
12
12
  } from '@aztec/circuits.js';
13
- import { AztecAddress } from '@aztec/foundation/aztec-address';
13
+ import { type AztecAddress } from '@aztec/foundation/aztec-address';
14
14
 
15
15
  /**
16
16
  * Provides functionality to fetch membership witnesses for verification keys,
@@ -1,22 +1,22 @@
1
1
  import {
2
- AztecNode,
3
- EncryptedL2BlockL2Logs,
4
- KeyStore,
2
+ type AztecNode,
3
+ type EncryptedL2BlockL2Logs,
4
+ type KeyStore,
5
5
  L1NotePayload,
6
- L2BlockContext,
6
+ type L2BlockContext,
7
7
  TaggedNote,
8
8
  } from '@aztec/circuit-types';
9
- import { NoteProcessorStats } from '@aztec/circuit-types/stats';
10
- import { INITIAL_L2_BLOCK_NUM, MAX_NEW_NOTE_HASHES_PER_TX, PublicKey } from '@aztec/circuits.js';
9
+ import { type NoteProcessorStats } from '@aztec/circuit-types/stats';
10
+ import { INITIAL_L2_BLOCK_NUM, MAX_NEW_NOTE_HASHES_PER_TX, type PublicKey } from '@aztec/circuits.js';
11
11
  import { Grumpkin } from '@aztec/circuits.js/barretenberg';
12
- import { Fr } from '@aztec/foundation/fields';
12
+ import { type Fr } from '@aztec/foundation/fields';
13
13
  import { createDebugLogger } from '@aztec/foundation/log';
14
14
  import { Timer } from '@aztec/foundation/timer';
15
15
  import { ContractNotFoundError } from '@aztec/simulator';
16
16
 
17
17
  import { DeferredNoteDao } from '../database/deferred_note_dao.js';
18
- import { PxeDatabase } from '../database/index.js';
19
- import { NoteDao } from '../database/note_dao.js';
18
+ import { type PxeDatabase } from '../database/index.js';
19
+ import { type NoteDao } from '../database/note_dao.js';
20
20
  import { getAcirSimulator } from '../simulator/index.js';
21
21
  import { produceNoteDao } from './produce_note_dao.js';
22
22
 
@@ -1,7 +1,7 @@
1
- import { L1NotePayload, TxHash } from '@aztec/circuit-types';
2
- import { Fr, PublicKey } from '@aztec/circuits.js';
1
+ import { type L1NotePayload, type TxHash } from '@aztec/circuit-types';
2
+ import { Fr, type PublicKey } from '@aztec/circuits.js';
3
3
  import { computeCommitmentNonce, siloNullifier } from '@aztec/circuits.js/hash';
4
- import { AcirSimulator } from '@aztec/simulator';
4
+ import { type AcirSimulator } from '@aztec/simulator';
5
5
 
6
6
  import { NoteDao } from '../database/note_dao.js';
7
7
 
@@ -8,7 +8,7 @@ import {
8
8
  LogId,
9
9
  Note,
10
10
  NullifierMembershipWitness,
11
- PXE,
11
+ type PXE,
12
12
  Tx,
13
13
  TxEffect,
14
14
  TxExecutionRequest,
@@ -1,4 +1,4 @@
1
- import { AztecNode } from '@aztec/circuit-types';
1
+ import { type AztecNode } from '@aztec/circuit-types';
2
2
  import { Grumpkin } from '@aztec/circuits.js/barretenberg';
3
3
  import { randomBytes } from '@aztec/foundation/crypto';
4
4
  import { TestKeyStore } from '@aztec/key-store';
@@ -11,7 +11,7 @@ import { getCanonicalMultiCallEntrypointContract } from '@aztec/protocol-contrac
11
11
 
12
12
  import { join } from 'path';
13
13
 
14
- import { PXEServiceConfig } from '../config/index.js';
14
+ import { type PXEServiceConfig } from '../config/index.js';
15
15
  import { KVPxeDatabase } from '../database/kv_pxe_database.js';
16
16
  import { PXEService } from './pxe_service.js';
17
17
 
@@ -1,61 +1,61 @@
1
1
  import {
2
- AuthWitness,
3
- AztecNode,
2
+ type AuthWitness,
3
+ type AztecNode,
4
4
  EncryptedTxL2Logs,
5
5
  ExtendedNote,
6
- FunctionCall,
7
- GetUnencryptedLogsResponse,
8
- KeyStore,
9
- L2Block,
10
- LogFilter,
6
+ type FunctionCall,
7
+ type GetUnencryptedLogsResponse,
8
+ type KeyStore,
9
+ type L2Block,
10
+ type LogFilter,
11
11
  MerkleTreeId,
12
- NoteFilter,
13
- PXE,
12
+ type NoteFilter,
13
+ type PXE,
14
14
  SimulationError,
15
15
  Tx,
16
- TxEffect,
17
- TxExecutionRequest,
18
- TxHash,
19
- TxReceipt,
16
+ type TxEffect,
17
+ type TxExecutionRequest,
18
+ type TxHash,
19
+ type TxReceipt,
20
20
  UnencryptedTxL2Logs,
21
21
  isNoirCallStackUnresolved,
22
22
  } from '@aztec/circuit-types';
23
- import { TxPXEProcessingStats } from '@aztec/circuit-types/stats';
23
+ import { type TxPXEProcessingStats } from '@aztec/circuit-types/stats';
24
24
  import {
25
25
  AztecAddress,
26
26
  CallRequest,
27
27
  CompleteAddress,
28
28
  FunctionData,
29
- GrumpkinPrivateKey,
29
+ type GrumpkinPrivateKey,
30
30
  MAX_NON_REVERTIBLE_PUBLIC_CALL_STACK_LENGTH_PER_TX,
31
31
  MAX_REVERTIBLE_PUBLIC_CALL_STACK_LENGTH_PER_TX,
32
- PartialAddress,
33
- PrivateKernelTailCircuitPublicInputs,
34
- PublicCallRequest,
32
+ type PartialAddress,
33
+ type PrivateKernelTailCircuitPublicInputs,
34
+ type PublicCallRequest,
35
35
  computeContractClassId,
36
36
  getContractClassFromArtifact,
37
37
  } from '@aztec/circuits.js';
38
38
  import { computeCommitmentNonce, siloNullifier } from '@aztec/circuits.js/hash';
39
- import { ContractArtifact, DecodedReturn, FunctionSelector, encodeArguments } from '@aztec/foundation/abi';
39
+ import { type ContractArtifact, type DecodedReturn, FunctionSelector, encodeArguments } from '@aztec/foundation/abi';
40
40
  import { arrayNonEmptyLength, padArrayEnd } from '@aztec/foundation/collection';
41
41
  import { Fr } from '@aztec/foundation/fields';
42
42
  import { SerialQueue } from '@aztec/foundation/fifo';
43
- import { DebugLogger, createDebugLogger } from '@aztec/foundation/log';
43
+ import { type DebugLogger, createDebugLogger } from '@aztec/foundation/log';
44
44
  import { Timer } from '@aztec/foundation/timer';
45
45
  import {
46
- AcirSimulator,
47
- ExecutionResult,
46
+ type AcirSimulator,
47
+ type ExecutionResult,
48
48
  collectEncryptedLogs,
49
49
  collectEnqueuedPublicFunctionCalls,
50
50
  collectUnencryptedLogs,
51
51
  resolveOpcodeLocations,
52
52
  } from '@aztec/simulator';
53
- import { ContractClassWithId, ContractInstanceWithAddress } from '@aztec/types/contracts';
54
- import { NodeInfo } from '@aztec/types/interfaces';
53
+ import { type ContractClassWithId, type ContractInstanceWithAddress } from '@aztec/types/contracts';
54
+ import { type NodeInfo } from '@aztec/types/interfaces';
55
55
 
56
- import { PXEServiceConfig, getPackageInfo } from '../config/index.js';
56
+ import { type PXEServiceConfig, getPackageInfo } from '../config/index.js';
57
57
  import { ContractDataOracle } from '../contract_data_oracle/index.js';
58
- import { PxeDatabase } from '../database/index.js';
58
+ import { type PxeDatabase } from '../database/index.js';
59
59
  import { NoteDao } from '../database/note_dao.js';
60
60
  import { KernelOracle } from '../kernel_oracle/index.js';
61
61
  import { KernelProver } from '../kernel_prover/kernel_prover.js';
@@ -1,5 +1,5 @@
1
1
  import {
2
- PXE,
2
+ type PXE,
3
3
  TxExecutionRequest,
4
4
  randomContractArtifact,
5
5
  randomContractInstanceWithAddress,
@@ -1,8 +1,8 @@
1
- import { AztecNode, KeyStore } from '@aztec/circuit-types';
1
+ import { type AztecNode, type KeyStore } from '@aztec/circuit-types';
2
2
  import { AcirSimulator } from '@aztec/simulator';
3
3
 
4
4
  import { ContractDataOracle } from '../contract_data_oracle/index.js';
5
- import { PxeDatabase } from '../database/pxe_database.js';
5
+ import { type PxeDatabase } from '../database/pxe_database.js';
6
6
  import { SimulatorOracle } from '../simulator_oracle/index.js';
7
7
 
8
8
  /**
@@ -1,30 +1,30 @@
1
1
  import {
2
- AztecNode,
3
- KeyStore,
4
- L2Block,
2
+ type AztecNode,
3
+ type KeyStore,
4
+ type L2Block,
5
5
  MerkleTreeId,
6
- NoteStatus,
7
- NullifierMembershipWitness,
8
- PublicDataWitness,
9
- SiblingPath,
6
+ type NoteStatus,
7
+ type NullifierMembershipWitness,
8
+ type PublicDataWitness,
9
+ type SiblingPath,
10
10
  } from '@aztec/circuit-types';
11
11
  import {
12
- AztecAddress,
13
- CompleteAddress,
14
- EthAddress,
15
- Fr,
16
- FunctionSelector,
17
- Header,
18
- L1_TO_L2_MSG_TREE_HEIGHT,
12
+ type AztecAddress,
13
+ type CompleteAddress,
14
+ type EthAddress,
15
+ type Fr,
16
+ type FunctionSelector,
17
+ type Header,
18
+ type L1_TO_L2_MSG_TREE_HEIGHT,
19
19
  } from '@aztec/circuits.js';
20
20
  import { computeL1ToL2MessageNullifier } from '@aztec/circuits.js/hash';
21
- import { FunctionArtifactWithDebugMetadata, getFunctionArtifactWithDebugMetadata } from '@aztec/foundation/abi';
21
+ import { type FunctionArtifactWithDebugMetadata, getFunctionArtifactWithDebugMetadata } from '@aztec/foundation/abi';
22
22
  import { createDebugLogger } from '@aztec/foundation/log';
23
- import { DBOracle, KeyPair, MessageLoadOracleInputs } from '@aztec/simulator';
24
- import { ContractInstance } from '@aztec/types/contracts';
23
+ import { type DBOracle, type KeyPair, MessageLoadOracleInputs } from '@aztec/simulator';
24
+ import { type ContractInstance } from '@aztec/types/contracts';
25
25
 
26
- import { ContractDataOracle } from '../contract_data_oracle/index.js';
27
- import { PxeDatabase } from '../database/index.js';
26
+ import { type ContractDataOracle } from '../contract_data_oracle/index.js';
27
+ import { type PxeDatabase } from '../database/index.js';
28
28
 
29
29
  /**
30
30
  * A data oracle that provides information needed for simulating a transaction.
@@ -1,13 +1,20 @@
1
- import { AztecNode, KeyStore, L2BlockContext, L2BlockL2Logs, MerkleTreeId, TxHash } from '@aztec/circuit-types';
2
- import { NoteProcessorCaughtUpStats } from '@aztec/circuit-types/stats';
3
- import { AztecAddress, Fr, INITIAL_L2_BLOCK_NUM, PublicKey } from '@aztec/circuits.js';
4
- import { SerialQueue } from '@aztec/foundation/fifo';
5
- import { DebugLogger, createDebugLogger } from '@aztec/foundation/log';
1
+ import {
2
+ type AztecNode,
3
+ type KeyStore,
4
+ L2BlockContext,
5
+ L2BlockL2Logs,
6
+ MerkleTreeId,
7
+ type TxHash,
8
+ } from '@aztec/circuit-types';
9
+ import { type NoteProcessorCaughtUpStats } from '@aztec/circuit-types/stats';
10
+ import { type AztecAddress, type Fr, INITIAL_L2_BLOCK_NUM, type PublicKey } from '@aztec/circuits.js';
11
+ import { type SerialQueue } from '@aztec/foundation/fifo';
12
+ import { type DebugLogger, createDebugLogger } from '@aztec/foundation/log';
6
13
  import { RunningPromise } from '@aztec/foundation/running-promise';
7
14
 
8
- import { DeferredNoteDao } from '../database/deferred_note_dao.js';
9
- import { PxeDatabase } from '../database/index.js';
10
- import { NoteDao } from '../database/note_dao.js';
15
+ import { type DeferredNoteDao } from '../database/deferred_note_dao.js';
16
+ import { type PxeDatabase } from '../database/index.js';
17
+ import { type NoteDao } from '../database/note_dao.js';
11
18
  import { NoteProcessor } from '../note_processor/index.js';
12
19
 
13
20
  /**