@aztec/end-to-end 3.0.0-nightly.20251023 → 3.0.0-nightly.20251024

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 (126) hide show
  1. package/dest/bench/client_flows/benchmark.d.ts +3 -2
  2. package/dest/bench/client_flows/benchmark.d.ts.map +1 -1
  3. package/dest/bench/client_flows/client_flows_benchmark.d.ts +7 -2
  4. package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
  5. package/dest/bench/client_flows/client_flows_benchmark.js +4 -1
  6. package/dest/bench/utils.d.ts +1 -1
  7. package/dest/bench/utils.d.ts.map +1 -1
  8. package/dest/bench/utils.js +1 -1
  9. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +5 -1
  10. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +1 -1
  11. package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.js +3 -1
  12. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +3 -1
  13. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
  14. package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +2 -1
  15. package/dest/e2e_deploy_contract/deploy_test.d.ts +8 -1
  16. package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
  17. package/dest/e2e_deploy_contract/deploy_test.js +3 -1
  18. package/dest/e2e_epochs/epochs_test.d.ts +3 -1
  19. package/dest/e2e_epochs/epochs_test.d.ts.map +1 -1
  20. package/dest/e2e_epochs/epochs_test.js +6 -1
  21. package/dest/e2e_fees/bridging_race.notest.js +2 -1
  22. package/dest/e2e_fees/fees_test.d.ts +3 -1
  23. package/dest/e2e_fees/fees_test.d.ts.map +1 -1
  24. package/dest/e2e_fees/fees_test.js +2 -1
  25. package/dest/e2e_l1_publisher/write_json.d.ts +3 -1
  26. package/dest/e2e_l1_publisher/write_json.d.ts.map +1 -1
  27. package/dest/e2e_l1_publisher/write_json.js +2 -2
  28. package/dest/e2e_multi_validator/utils.d.ts +1 -1
  29. package/dest/e2e_multi_validator/utils.d.ts.map +1 -1
  30. package/dest/e2e_nested_contract/nested_contract_test.d.ts +4 -1
  31. package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +1 -1
  32. package/dest/e2e_nested_contract/nested_contract_test.js +1 -1
  33. package/dest/e2e_p2p/inactivity_slash_test.d.ts +2 -2
  34. package/dest/e2e_p2p/inactivity_slash_test.d.ts.map +1 -1
  35. package/dest/e2e_p2p/p2p_network.d.ts +1 -1
  36. package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
  37. package/dest/e2e_p2p/p2p_network.js +2 -1
  38. package/dest/e2e_p2p/shared.d.ts +4 -1
  39. package/dest/e2e_p2p/shared.d.ts.map +1 -1
  40. package/dest/e2e_p2p/shared.js +4 -1
  41. package/dest/e2e_token_contract/token_contract_test.d.ts +3 -1
  42. package/dest/e2e_token_contract/token_contract_test.d.ts.map +1 -1
  43. package/dest/e2e_token_contract/token_contract_test.js +1 -1
  44. package/dest/fixtures/e2e_prover_test.d.ts +3 -1
  45. package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
  46. package/dest/fixtures/e2e_prover_test.js +2 -1
  47. package/dest/fixtures/get_acvm_config.d.ts +1 -1
  48. package/dest/fixtures/get_acvm_config.d.ts.map +1 -1
  49. package/dest/fixtures/get_bb_config.d.ts +1 -1
  50. package/dest/fixtures/get_bb_config.d.ts.map +1 -1
  51. package/dest/fixtures/get_bb_config.js +1 -1
  52. package/dest/fixtures/setup_l1_contracts.d.ts +1 -1
  53. package/dest/fixtures/setup_l1_contracts.d.ts.map +1 -1
  54. package/dest/fixtures/snapshot_manager.d.ts +4 -1
  55. package/dest/fixtures/snapshot_manager.d.ts.map +1 -1
  56. package/dest/fixtures/snapshot_manager.js +3 -1
  57. package/dest/fixtures/token_utils.d.ts +3 -1
  58. package/dest/fixtures/token_utils.d.ts.map +1 -1
  59. package/dest/fixtures/token_utils.js +1 -1
  60. package/dest/fixtures/utils.d.ts +5 -1
  61. package/dest/fixtures/utils.d.ts.map +1 -1
  62. package/dest/fixtures/utils.js +4 -1
  63. package/dest/fixtures/web3signer.d.ts.map +1 -1
  64. package/dest/fixtures/web3signer.js +2 -1
  65. package/dest/quality_of_service/alert_checker.d.ts +1 -1
  66. package/dest/quality_of_service/alert_checker.d.ts.map +1 -1
  67. package/dest/shared/cross_chain_test_harness.d.ts +11 -1
  68. package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
  69. package/dest/shared/cross_chain_test_harness.js +4 -1
  70. package/dest/shared/gas_portal_test_harness.d.ts +5 -1
  71. package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
  72. package/dest/shared/gas_portal_test_harness.js +4 -1
  73. package/dest/shared/jest_setup.js +1 -1
  74. package/dest/shared/submit-transactions.d.ts +3 -1
  75. package/dest/shared/submit-transactions.d.ts.map +1 -1
  76. package/dest/shared/submit-transactions.js +2 -1
  77. package/dest/shared/uniswap_l1_l2.d.ts +3 -1
  78. package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
  79. package/dest/shared/uniswap_l1_l2.js +4 -1
  80. package/dest/simulators/lending_simulator.d.ts +2 -1
  81. package/dest/simulators/lending_simulator.d.ts.map +1 -1
  82. package/dest/simulators/lending_simulator.js +2 -1
  83. package/dest/simulators/token_simulator.d.ts +3 -1
  84. package/dest/simulators/token_simulator.d.ts.map +1 -1
  85. package/dest/simulators/token_simulator.js +1 -1
  86. package/dest/spartan/setup_test_wallets.d.ts +3 -1
  87. package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
  88. package/dest/spartan/setup_test_wallets.js +7 -1
  89. package/dest/spartan/utils.d.ts.map +1 -1
  90. package/dest/spartan/utils.js +2 -1
  91. package/package.json +37 -37
  92. package/src/bench/client_flows/benchmark.ts +5 -5
  93. package/src/bench/client_flows/client_flows_benchmark.ts +6 -11
  94. package/src/bench/client_flows/data_extractor.ts +1 -1
  95. package/src/bench/utils.ts +1 -1
  96. package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +6 -9
  97. package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +3 -1
  98. package/src/e2e_deploy_contract/deploy_test.ts +8 -12
  99. package/src/e2e_epochs/epochs_test.ts +8 -10
  100. package/src/e2e_fees/bridging_race.notest.ts +3 -1
  101. package/src/e2e_fees/fees_test.ts +4 -1
  102. package/src/e2e_l1_publisher/write_json.ts +5 -3
  103. package/src/e2e_multi_validator/utils.ts +1 -1
  104. package/src/e2e_nested_contract/nested_contract_test.ts +4 -1
  105. package/src/e2e_p2p/inactivity_slash_test.ts +1 -1
  106. package/src/e2e_p2p/p2p_network.ts +2 -1
  107. package/src/e2e_p2p/shared.ts +6 -10
  108. package/src/e2e_token_contract/token_contract_test.ts +3 -1
  109. package/src/fixtures/e2e_prover_test.ts +3 -1
  110. package/src/fixtures/get_acvm_config.ts +1 -1
  111. package/src/fixtures/get_bb_config.ts +2 -1
  112. package/src/fixtures/setup_l1_contracts.ts +1 -1
  113. package/src/fixtures/snapshot_manager.ts +6 -11
  114. package/src/fixtures/token_utils.ts +4 -1
  115. package/src/fixtures/utils.ts +6 -12
  116. package/src/fixtures/web3signer.ts +2 -1
  117. package/src/quality_of_service/alert_checker.ts +1 -1
  118. package/src/shared/cross_chain_test_harness.ts +12 -12
  119. package/src/shared/gas_portal_test_harness.ts +7 -12
  120. package/src/shared/jest_setup.ts +1 -1
  121. package/src/shared/submit-transactions.ts +5 -1
  122. package/src/shared/uniswap_l1_l2.ts +6 -9
  123. package/src/simulators/lending_simulator.ts +2 -1
  124. package/src/simulators/token_simulator.ts +4 -1
  125. package/src/spartan/setup_test_wallets.ts +8 -12
  126. package/src/spartan/utils.ts +2 -1
@@ -1,12 +1,9 @@
1
- import {
2
- AztecAddress,
3
- type AztecNode,
4
- Fr,
5
- type Logger,
6
- type TxHash,
7
- computeSecretHash,
8
- createLogger,
9
- } from '@aztec/aztec.js';
1
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import { computeSecretHash } from '@aztec/aztec.js/crypto';
3
+ import { Fr } from '@aztec/aztec.js/fields';
4
+ import { type Logger, createLogger } from '@aztec/aztec.js/log';
5
+ import type { AztecNode } from '@aztec/aztec.js/node';
6
+ import type { TxHash } from '@aztec/aztec.js/tx';
10
7
  import type { CheatCodes } from '@aztec/aztec/testing';
11
8
  import type { TokenContract } from '@aztec/noir-contracts.js/Token';
12
9
  import { TokenBlacklistContract } from '@aztec/noir-contracts.js/TokenBlacklist';
@@ -1,5 +1,7 @@
1
1
  import type { AztecNodeConfig } from '@aztec/aztec-node';
2
- import { AztecAddress, type AztecNode, EthAddress, type Logger, createLogger } from '@aztec/aztec.js';
2
+ import { AztecAddress, EthAddress } from '@aztec/aztec.js/addresses';
3
+ import { type Logger, createLogger } from '@aztec/aztec.js/log';
4
+ import type { AztecNode } from '@aztec/aztec.js/node';
3
5
  import { CheatCodes } from '@aztec/aztec/testing';
4
6
  import {
5
7
  type DeployL1ContractsArgs,
@@ -1,15 +1,11 @@
1
- import {
2
- type AztecAddress,
3
- type AztecNode,
4
- type ContractArtifact,
5
- type ContractBase,
6
- Fr,
7
- type Logger,
8
- type PublicKeys,
9
- type Wallet,
10
- createLogger,
11
- getContractInstanceFromInstantiationParams,
12
- } from '@aztec/aztec.js';
1
+ import type { ContractArtifact } from '@aztec/aztec.js/abi';
2
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
3
+ import { type ContractBase, getContractInstanceFromInstantiationParams } from '@aztec/aztec.js/contracts';
4
+ import { Fr } from '@aztec/aztec.js/fields';
5
+ import type { PublicKeys } from '@aztec/aztec.js/keys';
6
+ import { type Logger, createLogger } from '@aztec/aztec.js/log';
7
+ import type { AztecNode } from '@aztec/aztec.js/node';
8
+ import type { Wallet } from '@aztec/aztec.js/wallet';
13
9
  import type { StatefulTestContract } from '@aztec/noir-test-contracts.js/StatefulTest';
14
10
  import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client';
15
11
  import type { TestWallet } from '@aztec/test-wallet/server';
@@ -1,14 +1,10 @@
1
1
  import { type AztecNodeConfig, AztecNodeService } from '@aztec/aztec-node';
2
- import {
3
- Fr,
4
- type Logger,
5
- MerkleTreeId,
6
- type Wallet,
7
- getContractInstanceFromInstantiationParams,
8
- getTimestampRangeForEpoch,
9
- retryUntil,
10
- sleep,
11
- } from '@aztec/aztec.js';
2
+ import { getTimestampRangeForEpoch } from '@aztec/aztec.js/block';
3
+ import { getContractInstanceFromInstantiationParams } from '@aztec/aztec.js/contracts';
4
+ import { Fr } from '@aztec/aztec.js/fields';
5
+ import type { Logger } from '@aztec/aztec.js/log';
6
+ import { MerkleTreeId } from '@aztec/aztec.js/trees';
7
+ import type { Wallet } from '@aztec/aztec.js/wallet';
12
8
  import { EpochCache } from '@aztec/epoch-cache';
13
9
  import { DefaultL1ContractsConfig, type ExtendedViemWalletClient, createExtendedL1Client } from '@aztec/ethereum';
14
10
  import { RollupContract } from '@aztec/ethereum/contracts';
@@ -16,6 +12,8 @@ import { ChainMonitor, DelayedTxUtils, type Delayer, waitUntilL1Timestamp, withD
16
12
  import { SecretValue } from '@aztec/foundation/config';
17
13
  import { randomBytes } from '@aztec/foundation/crypto';
18
14
  import { withLogNameSuffix } from '@aztec/foundation/log';
15
+ import { retryUntil } from '@aztec/foundation/retry';
16
+ import { sleep } from '@aztec/foundation/sleep';
19
17
  import { SpamContract } from '@aztec/noir-test-contracts.js/Spam';
20
18
  import { getMockPubSubP2PServiceFactory } from '@aztec/p2p/test-helpers';
21
19
  import { ProverNode, type ProverNodeConfig, ProverNodePublisher } from '@aztec/prover-node';
@@ -1,6 +1,8 @@
1
1
  import { SchnorrAccountContract } from '@aztec/accounts/schnorr';
2
- import { Fr, type Logger, sleep } from '@aztec/aztec.js';
2
+ import { Fr } from '@aztec/aztec.js/fields';
3
+ import type { Logger } from '@aztec/aztec.js/log';
3
4
  import { Fq } from '@aztec/foundation/fields';
5
+ import { sleep } from '@aztec/foundation/sleep';
4
6
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
5
7
  import type { TestWallet } from '@aztec/test-wallet/server';
6
8
 
@@ -1,8 +1,11 @@
1
- import { type AztecAddress, type AztecNode, type Logger, createLogger, sleep } from '@aztec/aztec.js';
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import { type Logger, createLogger } from '@aztec/aztec.js/log';
3
+ import type { AztecNode } from '@aztec/aztec.js/node';
2
4
  import { CheatCodes } from '@aztec/aztec/testing';
3
5
  import { type DeployL1ContractsArgs, RollupContract, createExtendedL1Client } from '@aztec/ethereum';
4
6
  import { ChainMonitor } from '@aztec/ethereum/test';
5
7
  import { EthAddress } from '@aztec/foundation/eth-address';
8
+ import { sleep } from '@aztec/foundation/sleep';
6
9
  import { TestERC20Abi } from '@aztec/l1-artifacts';
7
10
  import { AppSubscriptionContract } from '@aztec/noir-contracts.js/AppSubscription';
8
11
  import { FPCContract } from '@aztec/noir-contracts.js/FPC';
@@ -1,4 +1,6 @@
1
- import { AztecAddress, Fr, type L2Block } from '@aztec/aztec.js';
1
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import type { L2Block } from '@aztec/aztec.js/block';
3
+ import { Fr } from '@aztec/aztec.js/fields';
2
4
  import { BatchedBlob, Blob } from '@aztec/blob-lib';
3
5
  import { EthAddress } from '@aztec/foundation/eth-address';
4
6
 
@@ -32,12 +34,12 @@ export async function writeJson(
32
34
 
33
35
  const jsonObject = {
34
36
  populate: {
35
- l1ToL2Content: l1ToL2Content.map(asHex),
37
+ l1ToL2Content: l1ToL2Content.map(value => asHex(value)),
36
38
  recipient: asHex(recipientAddress.toField()),
37
39
  sender: deployerAddress,
38
40
  },
39
41
  messages: {
40
- l2ToL1Messages: block.body.txEffects.flatMap(txEffect => txEffect.l2ToL1Msgs).map(asHex),
42
+ l2ToL1Messages: block.body.txEffects.flatMap(txEffect => txEffect.l2ToL1Msgs).map(value => asHex(value)),
41
43
  },
42
44
  block: {
43
45
  // The json formatting in forge is a bit brittle, so we convert Fr to a number in the few values below.
@@ -1,4 +1,4 @@
1
- import type { AztecAddress } from '@aztec/aztec.js';
1
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
2
2
  import { getAddressFromPrivateKey } from '@aztec/ethereum';
3
3
  import { EthAddress } from '@aztec/foundation/eth-address';
4
4
  import type { EthPrivateKey } from '@aztec/node-keystore';
@@ -1,4 +1,7 @@
1
- import { AztecAddress, type AztecNode, type Logger, type Wallet, createLogger } from '@aztec/aztec.js';
1
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import { type Logger, createLogger } from '@aztec/aztec.js/log';
3
+ import type { AztecNode } from '@aztec/aztec.js/node';
4
+ import type { Wallet } from '@aztec/aztec.js/wallet';
2
5
  import { ChildContract } from '@aztec/noir-test-contracts.js/Child';
3
6
  import { ParentContract } from '@aztec/noir-test-contracts.js/Parent';
4
7
 
@@ -1,5 +1,5 @@
1
1
  import type { AztecNodeService } from '@aztec/aztec-node';
2
- import { EthAddress } from '@aztec/aztec.js';
2
+ import { EthAddress } from '@aztec/aztec.js/addresses';
3
3
  import { RollupContract } from '@aztec/ethereum';
4
4
 
5
5
  import fs from 'fs';
@@ -1,6 +1,7 @@
1
1
  import type { InitialAccountData } from '@aztec/accounts/testing';
2
2
  import type { AztecNodeConfig, AztecNodeService } from '@aztec/aztec-node';
3
- import { AztecAddress, EthAddress, Fr } from '@aztec/aztec.js';
3
+ import { AztecAddress, EthAddress } from '@aztec/aztec.js/addresses';
4
+ import { Fr } from '@aztec/aztec.js/fields';
4
5
  import {
5
6
  type EmpireSlashingProposerContract,
6
7
  type ExtendedViemWalletClient,
@@ -1,18 +1,14 @@
1
1
  import type { InitialAccountData } from '@aztec/accounts/testing';
2
2
  import type { AztecNodeService } from '@aztec/aztec-node';
3
- import {
4
- AztecAddress,
5
- Fr,
6
- type Logger,
7
- type SentTx,
8
- Tx,
9
- TxStatus,
10
- getContractInstanceFromInstantiationParams,
11
- retryUntil,
12
- } from '@aztec/aztec.js';
3
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
4
+ import { type SentTx, getContractInstanceFromInstantiationParams } from '@aztec/aztec.js/contracts';
5
+ import { Fr } from '@aztec/aztec.js/fields';
6
+ import type { Logger } from '@aztec/aztec.js/log';
7
+ import { Tx, TxStatus } from '@aztec/aztec.js/tx';
13
8
  import type { RollupCheatCodes } from '@aztec/aztec/testing';
14
9
  import type { EmpireSlashingProposerContract, RollupContract, TallySlashingProposerContract } from '@aztec/ethereum';
15
10
  import { timesAsync, unique } from '@aztec/foundation/collection';
11
+ import { retryUntil } from '@aztec/foundation/retry';
16
12
  import { pluralize } from '@aztec/foundation/string';
17
13
  import type { SpamContract } from '@aztec/noir-test-contracts.js/Spam';
18
14
  import { TestContract, TestContractArtifact } from '@aztec/noir-test-contracts.js/Test';
@@ -1,4 +1,6 @@
1
- import { AztecAddress, type AztecNode, type Logger, createLogger } from '@aztec/aztec.js';
1
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import { type Logger, createLogger } from '@aztec/aztec.js/log';
3
+ import type { AztecNode } from '@aztec/aztec.js/node';
2
4
  import { TokenContract } from '@aztec/noir-contracts.js/Token';
3
5
  import { InvalidAccountContract } from '@aztec/noir-test-contracts.js/InvalidAccount';
4
6
  import type { TestWallet } from '@aztec/test-wallet/server';
@@ -1,6 +1,8 @@
1
1
  import type { InitialAccountData } from '@aztec/accounts/testing';
2
2
  import { type Archiver, createArchiver } from '@aztec/archiver';
3
- import { AztecAddress, type AztecNode, EthAddress, type Logger, createLogger } from '@aztec/aztec.js';
3
+ import { AztecAddress, EthAddress } from '@aztec/aztec.js/addresses';
4
+ import { type Logger, createLogger } from '@aztec/aztec.js/log';
5
+ import type { AztecNode } from '@aztec/aztec.js/node';
4
6
  import { CheatCodes } from '@aztec/aztec/testing';
5
7
  import {
6
8
  BBCircuitVerifier,
@@ -1,4 +1,4 @@
1
- import type { Logger } from '@aztec/aztec.js';
1
+ import type { Logger } from '@aztec/aztec.js/log';
2
2
  import { parseBooleanEnv } from '@aztec/foundation/config';
3
3
  import { randomBytes } from '@aztec/foundation/crypto';
4
4
  import { tryRmDir } from '@aztec/foundation/fs';
@@ -1,10 +1,11 @@
1
- import { type Logger, fileURLToPath } from '@aztec/aztec.js';
1
+ import type { Logger } from '@aztec/aztec.js/log';
2
2
  import type { BBConfig } from '@aztec/bb-prover';
3
3
  import { tryRmDir } from '@aztec/foundation/fs';
4
4
 
5
5
  import fs from 'node:fs/promises';
6
6
  import { tmpdir } from 'node:os';
7
7
  import path from 'path';
8
+ import { fileURLToPath } from 'url';
8
9
 
9
10
  const {
10
11
  BB_RELEASE_DIR = 'barretenberg/cpp/build/bin',
@@ -1,4 +1,4 @@
1
- import type { Logger } from '@aztec/aztec.js';
1
+ import type { Logger } from '@aztec/aztec.js/log';
2
2
  import { type DeployL1ContractsArgs, type L1ContractsConfig, deployL1Contracts } from '@aztec/ethereum';
3
3
  import { getVKTreeRoot } from '@aztec/noir-protocol-circuits-types/vk-tree';
4
4
  import { protocolContractsHash } from '@aztec/protocol-contracts';
@@ -1,18 +1,13 @@
1
1
  import { SchnorrAccountContractArtifact } from '@aztec/accounts/schnorr';
2
2
  import { type InitialAccountData, generateSchnorrAccounts } from '@aztec/accounts/testing';
3
3
  import { type AztecNodeConfig, AztecNodeService, getConfigEnvVars } from '@aztec/aztec-node';
4
- import {
5
- AztecAddress,
6
- type AztecNode,
7
- BatchCall,
8
- type ContractFunctionInteraction,
9
- EthAddress,
10
- type Logger,
11
- type Wallet,
12
- getContractClassFromArtifact,
13
- waitForProven,
14
- } from '@aztec/aztec.js';
4
+ import { AztecAddress, EthAddress } from '@aztec/aztec.js/addresses';
5
+ import { getContractClassFromArtifact } from '@aztec/aztec.js/contracts';
6
+ import { BatchCall, type ContractFunctionInteraction, waitForProven } from '@aztec/aztec.js/contracts';
15
7
  import { publishContractClass, publishInstance } from '@aztec/aztec.js/deployment';
8
+ import type { Logger } from '@aztec/aztec.js/log';
9
+ import type { AztecNode } from '@aztec/aztec.js/node';
10
+ import type { Wallet } from '@aztec/aztec.js/wallet';
16
11
  import { AnvilTestWatcher, CheatCodes } from '@aztec/aztec/testing';
17
12
  import { type BlobSinkServer, createBlobSinkServer } from '@aztec/blob-sink/server';
18
13
  import {
@@ -1,4 +1,7 @@
1
- import { type AztecAddress, BatchCall, type Logger, type Wallet } from '@aztec/aztec.js';
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import { BatchCall } from '@aztec/aztec.js/contracts';
3
+ import type { Logger } from '@aztec/aztec.js/log';
4
+ import type { Wallet } from '@aztec/aztec.js/wallet';
2
5
  import { TokenContract } from '@aztec/noir-contracts.js/Token';
3
6
 
4
7
  export async function deployToken(wallet: Wallet, admin: AztecAddress, initialAdminBalance: bigint, logger: Logger) {
@@ -2,19 +2,12 @@ import { SchnorrAccountContractArtifact } from '@aztec/accounts/schnorr';
2
2
  import { type InitialAccountData, generateSchnorrAccounts, getInitialTestAccountsData } from '@aztec/accounts/testing';
3
3
  import { type Archiver, createArchiver } from '@aztec/archiver';
4
4
  import { type AztecNodeConfig, AztecNodeService, getConfigEnvVars } from '@aztec/aztec-node';
5
- import {
6
- AztecAddress,
7
- type AztecNode,
8
- BatchCall,
9
- type ContractMethod,
10
- type Logger,
11
- type Wallet,
12
- createAztecNodeClient,
13
- createLogger,
14
- sleep,
15
- waitForNode,
16
- } from '@aztec/aztec.js';
5
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
6
+ import { BatchCall, type ContractMethod } from '@aztec/aztec.js/contracts';
17
7
  import { publishContractClass, publishInstance } from '@aztec/aztec.js/deployment';
8
+ import { type Logger, createLogger } from '@aztec/aztec.js/log';
9
+ import { type AztecNode, createAztecNodeClient, waitForNode } from '@aztec/aztec.js/node';
10
+ import type { Wallet } from '@aztec/aztec.js/wallet';
18
11
  import { AnvilTestWatcher, CheatCodes } from '@aztec/aztec/testing';
19
12
  import { createBlobSinkClient } from '@aztec/blob-sink/client';
20
13
  import { type BlobSinkServer, createBlobSinkServer } from '@aztec/blob-sink/server';
@@ -46,6 +39,7 @@ import { Fr } from '@aztec/foundation/fields';
46
39
  import { tryRmDir } from '@aztec/foundation/fs';
47
40
  import { withLogNameSuffix } from '@aztec/foundation/log';
48
41
  import { retryUntil } from '@aztec/foundation/retry';
42
+ import { sleep } from '@aztec/foundation/sleep';
49
43
  import { DateProvider, TestDateProvider } from '@aztec/foundation/timer';
50
44
  import type { DataStoreConfig } from '@aztec/kv-store/config';
51
45
  import { SponsoredFPCContract } from '@aztec/noir-contracts.js/SponsoredFPC';
@@ -1,5 +1,6 @@
1
- import { retryUntil, sleep } from '@aztec/aztec.js';
2
1
  import { randomBytes } from '@aztec/foundation/crypto';
2
+ import { retryUntil } from '@aztec/foundation/retry';
3
+ import { sleep } from '@aztec/foundation/sleep';
3
4
  import { RemoteSigner } from '@aztec/node-keystore';
4
5
 
5
6
  import { mkdirSync } from 'node:fs';
@@ -1,4 +1,4 @@
1
- import type { Logger } from '@aztec/aztec.js';
1
+ import type { Logger } from '@aztec/aztec.js/log';
2
2
 
3
3
  import * as fs from 'fs';
4
4
  import * as yaml from 'js-yaml';
@@ -1,21 +1,21 @@
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import { EthAddress } from '@aztec/aztec.js/addresses';
3
+ import { AuthWitness } from '@aztec/aztec.js/authorization';
1
4
  import {
2
- AuthWitness,
3
- type AztecAddress,
4
- type AztecNode,
5
- EthAddress,
6
- type FieldsOf,
7
- Fr,
8
5
  type L1TokenManager,
9
6
  L1TokenPortalManager,
10
7
  type L2AmountClaim,
11
8
  type L2AmountClaimWithRecipient,
12
- type Logger,
13
- type SiblingPath,
14
- type TxReceipt,
15
- type Wallet,
16
- retryUntil,
17
- } from '@aztec/aztec.js';
9
+ } from '@aztec/aztec.js/ethereum';
10
+ import { Fr } from '@aztec/aztec.js/fields';
11
+ import type { Logger } from '@aztec/aztec.js/log';
12
+ import type { AztecNode } from '@aztec/aztec.js/node';
13
+ import type { SiblingPath } from '@aztec/aztec.js/trees';
14
+ import type { TxReceipt } from '@aztec/aztec.js/tx';
15
+ import type { Wallet } from '@aztec/aztec.js/wallet';
18
16
  import { type ExtendedViemWalletClient, type L1ContractAddresses, deployL1Contract } from '@aztec/ethereum';
17
+ import { retryUntil } from '@aztec/foundation/retry';
18
+ import type { FieldsOf } from '@aztec/foundation/types';
19
19
  import { TestERC20Abi, TokenPortalAbi, TokenPortalBytecode } from '@aztec/l1-artifacts';
20
20
  import { TokenContract } from '@aztec/noir-contracts.js/Token';
21
21
  import { TokenBridgeContract } from '@aztec/noir-contracts.js/TokenBridge';
@@ -1,16 +1,11 @@
1
- import {
2
- AztecAddress,
3
- type AztecNode,
4
- EthAddress,
5
- Fr,
6
- L1FeeJuicePortalManager,
7
- type L1TokenManager,
8
- type L2AmountClaim,
9
- type Logger,
10
- type Wallet,
11
- retryUntil,
12
- } from '@aztec/aztec.js';
1
+ import { AztecAddress, EthAddress } from '@aztec/aztec.js/addresses';
2
+ import { L1FeeJuicePortalManager, type L1TokenManager, type L2AmountClaim } from '@aztec/aztec.js/ethereum';
3
+ import { Fr } from '@aztec/aztec.js/fields';
4
+ import type { Logger } from '@aztec/aztec.js/log';
5
+ import type { AztecNode } from '@aztec/aztec.js/node';
6
+ import type { Wallet } from '@aztec/aztec.js/wallet';
13
7
  import type { ExtendedViemWalletClient } from '@aztec/ethereum';
8
+ import { retryUntil } from '@aztec/foundation/retry';
14
9
  import { FeeJuiceContract } from '@aztec/noir-contracts.js/FeeJuice';
15
10
  import { ProtocolContractAddress } from '@aztec/protocol-contracts';
16
11
  import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client';
@@ -1,4 +1,4 @@
1
- import { createLogger } from '@aztec/aztec.js';
1
+ import { createLogger } from '@aztec/aztec.js/log';
2
2
 
3
3
  import { beforeEach, expect } from '@jest/globals';
4
4
  import { basename } from 'path';
@@ -1,4 +1,8 @@
1
- import { AztecAddress, Fr, GrumpkinScalar, type Logger, type SentTx, TxStatus } from '@aztec/aztec.js';
1
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import type { SentTx } from '@aztec/aztec.js/contracts';
3
+ import { Fr, GrumpkinScalar } from '@aztec/aztec.js/fields';
4
+ import type { Logger } from '@aztec/aztec.js/log';
5
+ import { TxStatus } from '@aztec/aztec.js/tx';
2
6
  import { times } from '@aztec/foundation/collection';
3
7
  import type { TestWallet } from '@aztec/test-wallet/server';
4
8
 
@@ -1,12 +1,9 @@
1
- import {
2
- AztecAddress,
3
- type AztecNode,
4
- EthAddress,
5
- Fr,
6
- type Logger,
7
- computeAuthWitMessageHash,
8
- generateClaimSecret,
9
- } from '@aztec/aztec.js';
1
+ import { AztecAddress, EthAddress } from '@aztec/aztec.js/addresses';
2
+ import { computeAuthWitMessageHash } from '@aztec/aztec.js/authorization';
3
+ import { generateClaimSecret } from '@aztec/aztec.js/ethereum';
4
+ import { Fr } from '@aztec/aztec.js/fields';
5
+ import type { Logger } from '@aztec/aztec.js/log';
6
+ import type { AztecNode } from '@aztec/aztec.js/node';
10
7
  import { CheatCodes } from '@aztec/aztec/testing';
11
8
  import {
12
9
  type DeployL1ContractsReturnType,
@@ -1,5 +1,6 @@
1
1
  // Convenience struct to hold an account's address and secret that can easily be passed around.
2
- import { AztecAddress, Fr } from '@aztec/aztec.js';
2
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
3
+ import { Fr } from '@aztec/aztec.js/fields';
3
4
  import { CheatCodes } from '@aztec/aztec/testing';
4
5
  import type { RollupContract } from '@aztec/ethereum';
5
6
  import { pedersenHash } from '@aztec/foundation/crypto';
@@ -1,4 +1,7 @@
1
- import { type AztecAddress, BatchCall, type Logger, type Wallet } from '@aztec/aztec.js';
1
+ import type { AztecAddress } from '@aztec/aztec.js/addresses';
2
+ import { BatchCall } from '@aztec/aztec.js/contracts';
3
+ import type { Logger } from '@aztec/aztec.js/log';
4
+ import type { Wallet } from '@aztec/aztec.js/wallet';
2
5
  import type { TokenContract } from '@aztec/noir-contracts.js/Token';
3
6
 
4
7
  import chunk from 'lodash.chunk';
@@ -1,18 +1,14 @@
1
1
  import { generateSchnorrAccounts } from '@aztec/accounts/testing';
2
- import {
3
- AztecAddress,
4
- type AztecNode,
5
- FeeJuicePaymentMethodWithClaim,
6
- type FeePaymentMethod,
7
- Fr,
8
- L1FeeJuicePortalManager,
9
- SponsoredFeePaymentMethod,
10
- type Wallet,
11
- createAztecNodeClient,
12
- retryUntil,
13
- } from '@aztec/aztec.js';
2
+ import { AztecAddress } from '@aztec/aztec.js/addresses';
3
+ import { L1FeeJuicePortalManager } from '@aztec/aztec.js/ethereum';
4
+ import { FeeJuicePaymentMethodWithClaim } from '@aztec/aztec.js/fee';
5
+ import { type FeePaymentMethod, SponsoredFeePaymentMethod } from '@aztec/aztec.js/fee';
6
+ import { Fr } from '@aztec/aztec.js/fields';
7
+ import { type AztecNode, createAztecNodeClient } from '@aztec/aztec.js/node';
8
+ import type { Wallet } from '@aztec/aztec.js/wallet';
14
9
  import { createEthereumChain, createExtendedL1Client } from '@aztec/ethereum';
15
10
  import type { Logger } from '@aztec/foundation/log';
11
+ import { retryUntil } from '@aztec/foundation/retry';
16
12
  import { TokenContract } from '@aztec/noir-contracts.js/Token';
17
13
  import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client';
18
14
  import { TestWallet, proveInteraction, registerInitialSandboxAccountsInWallet } from '@aztec/test-wallet/server';
@@ -1,9 +1,10 @@
1
- import { createLogger, sleep } from '@aztec/aztec.js';
1
+ import { createLogger } from '@aztec/aztec.js/log';
2
2
  import type { RollupCheatCodes } from '@aztec/aztec/testing';
3
3
  import type { L1ContractAddresses, ViemPublicClient } from '@aztec/ethereum';
4
4
  import type { Logger } from '@aztec/foundation/log';
5
5
  import { makeBackoff, retry } from '@aztec/foundation/retry';
6
6
  import { schemas } from '@aztec/foundation/schemas';
7
+ import { sleep } from '@aztec/foundation/sleep';
7
8
  import {
8
9
  type AztecNodeAdmin,
9
10
  type AztecNodeAdminConfig,