Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: @aztec/stdlib pt1 -> cleanup circuits js #12039

Merged
merged 40 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
270530d
move crypto utils to foundation
Thunkar Feb 17, 2025
2dab622
wip
Thunkar Feb 17, 2025
9b1d99d
compiling
Thunkar Feb 17, 2025
f10e8a4
wip
Thunkar Feb 17, 2025
b4b24fb
fmt
Thunkar Feb 17, 2025
229e47e
wip
Thunkar Feb 17, 2025
247a2f7
fmt
Thunkar Feb 17, 2025
5bc4879
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar Feb 17, 2025
b6ce0ca
merge conflicts
Thunkar Feb 17, 2025
b86e04c
blobs into blob-lib
Thunkar Feb 17, 2025
6ec0796
fmt and fixes
Thunkar Feb 17, 2025
aec13fd
more fixes
Thunkar Feb 17, 2025
b20ba58
fmt
Thunkar Feb 17, 2025
4dfaa9c
fix
Thunkar Feb 17, 2025
e987d28
Merge branch 'master' into gj/cleanup_circuits_js
Thunkar Feb 17, 2025
09e7026
Merge branch 'master' into gj/cleanup_circuits_js
Thunkar Feb 17, 2025
bdb2d2a
Merge branch 'master' into gj/cleanup_circuits_js
Thunkar Feb 18, 2025
af4489a
wip
Thunkar Feb 18, 2025
654acda
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar Feb 18, 2025
07f78e5
more cleanup
Thunkar Feb 18, 2025
28e265e
wip
Thunkar Feb 18, 2025
560e1b0
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar Feb 18, 2025
e8e9950
wip
Thunkar Feb 18, 2025
fafcc94
wip
Thunkar Feb 18, 2025
f31fd29
Merge branch 'master' into gj/cleanup_circuits_js
Thunkar Feb 18, 2025
2afba4f
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar Feb 18, 2025
eed3c90
fix
Thunkar Feb 18, 2025
642b3f1
revert change
Thunkar Feb 18, 2025
d4d99cb
removed pxe testing from service
Thunkar Feb 19, 2025
df04571
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar Feb 19, 2025
f517bab
more circuits.js split
Thunkar Feb 19, 2025
14492b2
probably revert
Thunkar Feb 19, 2025
d58bd00
wip
Thunkar Feb 19, 2025
4e62c6a
wtf
Thunkar Feb 19, 2025
51d1789
wip
Thunkar Feb 19, 2025
89eb557
out of refactor hell?
Thunkar Feb 19, 2025
b3d0c1d
split interfaces
Thunkar Feb 19, 2025
a03779c
fix
Thunkar Feb 19, 2025
5601e70
fmt
Thunkar Feb 19, 2025
4671a5e
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar Feb 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file removed .yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function install_hooks {
echo "(cd barretenberg/cpp && ./format.sh staged)" >$hooks_dir/pre-commit
echo "./yarn-project/precommit.sh" >>$hooks_dir/pre-commit
echo "./noir-projects/precommit.sh" >>$hooks_dir/pre-commit
echo "./yarn-project/circuits.js/precommit.sh" >>$hooks_dir/pre-commit
echo "./yarn-project/constants/precommit.sh" >>$hooks_dir/pre-commit
chmod +x $hooks_dir/pre-commit
}

Expand Down
2 changes: 1 addition & 1 deletion playground/src/components/common/fnParameter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
type AbiType,
isAddressStruct,
isU128Struct,
} from "@aztec/foundation/abi";
} from "@aztec/circuits.js/abi";
import {
Autocomplete,
CircularProgress,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
encodeArguments,
getDefaultInitializer,
getInitializer,
} from "@aztec/foundation/abi";
} from "@aztec/circuits.js/abi";
import { AztecContext } from "../../../aztecEnv";
import { parseAliasedBuffersAsString } from "../../../utils/conversion";
import { FunctionParameter } from "../../common/fnParameter";
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/accounts/scripts/copy-contracts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mkdir -p ./artifacts
contracts=(schnorr_account_contract-SchnorrAccount ecdsa_k_account_contract-EcdsaKAccount ecdsa_r_account_contract-EcdsaRAccount schnorr_single_key_account_contract-SchnorrSingleKeyAccount)

decl=$(cat <<EOF
import { type NoirCompiledContract } from '@aztec/types/noir';
import { type NoirCompiledContract } from '@aztec/circuits.js/noir';
const circuit: NoirCompiledContract;
export = circuit;
EOF
Expand All @@ -14,4 +14,4 @@ EOF
for contract in "${contracts[@]}"; do
cp "../../noir-projects/noir-contracts/target/$contract.json" ./artifacts/${contract#*-}.json
echo "$decl" > ./artifacts/${contract#*-}.d.json.ts
done
done
2 changes: 1 addition & 1 deletion yarn-project/accounts/src/dapp/dapp_interface.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type AccountWallet, type AuthWitnessProvider } from '@aztec/aztec.js';
import { type AztecAddress, type CompleteAddress, type NodeInfo } from '@aztec/circuits.js';
import type { AztecAddress, CompleteAddress, NodeInfo } from '@aztec/circuits.js';
import { DefaultDappEntrypoint } from '@aztec/entrypoints/dapp';

import { DefaultAccountInterface } from '../defaults/account_interface.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/accounts/src/defaults/account_contract.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type AccountContract, type AccountInterface, type AuthWitnessProvider } from '@aztec/aztec.js/account';
import { type CompleteAddress } from '@aztec/circuit-types';
import { type NodeInfo } from '@aztec/circuits.js';
import { type ContractArtifact } from '@aztec/foundation/abi';
import { type ContractArtifact } from '@aztec/circuits.js/abi';

import { DefaultAccountInterface } from '../defaults/account_interface.js';

Expand Down
3 changes: 2 additions & 1 deletion yarn-project/accounts/src/defaults/account_interface.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { type AccountInterface, type AuthWitnessProvider } from '@aztec/aztec.js/account';
import { type EntrypointInterface, type ExecutionRequestInit } from '@aztec/aztec.js/entrypoint';
import { type AuthWitness, type TxExecutionRequest } from '@aztec/circuit-types';
import { type AztecAddress, type CompleteAddress, Fr, type NodeInfo } from '@aztec/circuits.js';
import { type AztecAddress, type CompleteAddress, type NodeInfo } from '@aztec/circuits.js';
import { DefaultAccountEntrypoint } from '@aztec/entrypoints/account';
import { Fr } from '@aztec/foundation/fields';

/**
* Default implementation for an account interface. Requires that the account uses the default
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/accounts/src/ecdsa/ecdsa_k/account_contract.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type AuthWitnessProvider } from '@aztec/aztec.js/account';
import { AuthWitness, type CompleteAddress } from '@aztec/circuit-types';
import { Ecdsa } from '@aztec/circuits.js/barretenberg';
import { type ContractArtifact } from '@aztec/foundation/abi';
import { type ContractArtifact } from '@aztec/circuits.js/abi';
import { Ecdsa } from '@aztec/foundation/crypto';
import { type Fr } from '@aztec/foundation/fields';

import { DefaultAccountContract } from '../../defaults/account_contract.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/accounts/src/ecdsa/ecdsa_k/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
import { AccountManager, type Salt } from '@aztec/aztec.js/account';
import { type AccountWallet, getWallet } from '@aztec/aztec.js/wallet';
import { type PXE } from '@aztec/circuit-types';
import { type PXE } from '@aztec/circuit-types/interfaces/client';
import { type AztecAddress, type Fr } from '@aztec/circuits.js';

import { EcdsaKAccountContract } from './account_contract.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type AuthWitnessProvider } from '@aztec/aztec.js/account';
import { AuthWitness, type CompleteAddress } from '@aztec/circuit-types';
import { EcdsaSignature } from '@aztec/circuits.js/barretenberg';
import { type ContractArtifact } from '@aztec/foundation/abi';
import { type ContractArtifact } from '@aztec/circuits.js/abi';
import { EcdsaSignature } from '@aztec/foundation/crypto';
import { type Fr } from '@aztec/foundation/fields';

import { DefaultAccountContract } from '../../defaults/account_contract.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/accounts/src/ecdsa/ssh_ecdsa_r/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
import { AccountManager, type Salt } from '@aztec/aztec.js/account';
import { type AccountWallet, getWallet } from '@aztec/aztec.js/wallet';
import { type PXE } from '@aztec/circuit-types';
import { type PXE } from '@aztec/circuit-types/interfaces/client';
import { type AztecAddress, type Fr } from '@aztec/circuits.js';

import { EcdsaRSSHAccountContract } from './account_contract.js';
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/accounts/src/schnorr/account_contract.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { getAccountContractAddress } from '@aztec/aztec.js';
import { type AuthWitnessProvider } from '@aztec/aztec.js/account';
import { AuthWitness, type CompleteAddress, type GrumpkinScalar } from '@aztec/circuit-types';
import { Schnorr } from '@aztec/circuits.js/barretenberg';
import { type ContractArtifact } from '@aztec/circuits.js/abi';
import { deriveSigningKey } from '@aztec/circuits.js/keys';
import { type ContractArtifact } from '@aztec/foundation/abi';
import { Schnorr } from '@aztec/foundation/crypto';
import { type Fr } from '@aztec/foundation/fields';

import { DefaultAccountContract } from '../defaults/account_contract.js';
Expand Down
3 changes: 2 additions & 1 deletion yarn-project/accounts/src/schnorr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
*/
import { AccountManager, type Salt } from '@aztec/aztec.js/account';
import { type AccountWallet, type AccountWalletWithSecretKey, getWallet } from '@aztec/aztec.js/wallet';
import { type GrumpkinScalar, type PXE } from '@aztec/circuit-types';
import { type GrumpkinScalar } from '@aztec/circuit-types';
import { type PXE } from '@aztec/circuit-types/interfaces/client';
import { type AztecAddress, type Fr } from '@aztec/circuits.js';

import { SchnorrAccountContract } from './account_contract.js';
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/accounts/src/single_key/account_contract.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type AuthWitnessProvider } from '@aztec/aztec.js/account';
import { AuthWitness, type CompleteAddress, type GrumpkinScalar } from '@aztec/circuit-types';
import { Schnorr } from '@aztec/circuits.js/barretenberg';
import { type ContractArtifact } from '@aztec/foundation/abi';
import { type ContractArtifact } from '@aztec/circuits.js/abi';
import { Schnorr } from '@aztec/foundation/crypto';
import { type Fr } from '@aztec/foundation/fields';

import { DefaultAccountContract } from '../defaults/account_contract.js';
Expand Down
6 changes: 4 additions & 2 deletions yarn-project/accounts/src/single_key/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
*/
import { AccountManager, type Salt } from '@aztec/aztec.js/account';
import { type AccountWallet, getWallet } from '@aztec/aztec.js/wallet';
import { type GrumpkinScalar, type PXE } from '@aztec/circuit-types';
import { type AztecAddress, type Fr, deriveMasterIncomingViewingSecretKey } from '@aztec/circuits.js';
import { type GrumpkinScalar } from '@aztec/circuit-types';
import { type PXE } from '@aztec/circuit-types/interfaces/client';
import { type AztecAddress, type Fr } from '@aztec/circuits.js';
import { deriveMasterIncomingViewingSecretKey } from '@aztec/circuits.js/keys';

import { SingleKeyAccountContract } from './account_contract.js';

Expand Down
2 changes: 1 addition & 1 deletion yarn-project/accounts/src/testing/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type PXE } from '@aztec/aztec.js';
import { type AccountWalletWithSecretKey } from '@aztec/aztec.js/wallet';
import { type PXE } from '@aztec/circuit-types';
import { deriveMasterIncomingViewingSecretKey } from '@aztec/circuits.js/keys';
import { type AztecAddress } from '@aztec/foundation/aztec-address';
import { Fr, type GrumpkinScalar } from '@aztec/foundation/fields';
Expand Down
6 changes: 3 additions & 3 deletions yarn-project/accounts/src/testing/create_account.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type AccountManager, FeeJuicePaymentMethod, type WaitOpts } from '@aztec/aztec.js';
import { type PXE } from '@aztec/circuit-types';
import { Fr, deriveSigningKey } from '@aztec/circuits.js';
import { type AccountManager, FeeJuicePaymentMethod, type PXE, type WaitOpts } from '@aztec/aztec.js';
import { deriveSigningKey } from '@aztec/circuits.js/keys';
import { Fr } from '@aztec/foundation/fields';

import { getSchnorrAccountContractAddress } from '../schnorr/account_contract.js';
import { getSchnorrAccount } from '../schnorr/index.js';
Expand Down
1 change: 1 addition & 0 deletions yarn-project/archiver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"@aztec/blob-sink": "workspace:^",
"@aztec/circuit-types": "workspace:^",
"@aztec/circuits.js": "workspace:^",
"@aztec/constants": "workspace:^",
"@aztec/ethereum": "workspace:^",
"@aztec/foundation": "workspace:^",
"@aztec/kv-store": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion yarn-project/archiver/src/archiver/archiver.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Blob } from '@aztec/blob-lib';
import { type BlobSinkClientInterface } from '@aztec/blob-sink/client';
import { InboxLeaf, type L1RollupConstants, L2Block } from '@aztec/circuit-types';
import { GENESIS_ARCHIVE_ROOT, PrivateLog } from '@aztec/circuits.js';
import { PrivateLog } from '@aztec/circuits.js';
import { GENESIS_ARCHIVE_ROOT } from '@aztec/constants';
import { DefaultL1ContractsConfig } from '@aztec/ethereum';
import { EthAddress } from '@aztec/foundation/eth-address';
import { Fr } from '@aztec/foundation/fields';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/archiver/src/archiver/archiver_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
type PrivateLog,
type UnconstrainedFunctionWithMembershipProof,
} from '@aztec/circuits.js';
import { type FunctionSelector } from '@aztec/foundation/abi';
import { type FunctionSelector } from '@aztec/circuits.js/abi';
import { type AztecAddress } from '@aztec/foundation/aztec-address';

import { type DataRetrieval } from './structs/data_retrieval.js';
Expand Down
12 changes: 7 additions & 5 deletions yarn-project/archiver/src/archiver/archiver_store_test_suite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import {
type ContractClassPublic,
type ContractInstanceWithAddress,
Fr,
INITIAL_L2_BLOCK_NUM,
L1_TO_L2_MSG_SUBTREE_HEIGHT,
MAX_NULLIFIERS_PER_TX,
PRIVATE_LOG_SIZE_IN_FIELDS,
PUBLIC_LOG_DATA_SIZE_IN_FIELDS,
PrivateLog,
PublicLog,
SerializableContractInstance,
Expand All @@ -20,6 +15,13 @@ import {
makeExecutablePrivateFunctionWithMembershipProof,
makeUnconstrainedFunctionWithMembershipProof,
} from '@aztec/circuits.js/testing';
import {
INITIAL_L2_BLOCK_NUM,
L1_TO_L2_MSG_SUBTREE_HEIGHT,
MAX_NULLIFIERS_PER_TX,
PRIVATE_LOG_SIZE_IN_FIELDS,
PUBLIC_LOG_DATA_SIZE_IN_FIELDS,
} from '@aztec/constants';
import { times, timesParallel } from '@aztec/foundation/collection';
import { randomInt } from '@aztec/foundation/crypto';

Expand Down
3 changes: 2 additions & 1 deletion yarn-project/archiver/src/archiver/data_retrieval.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Blob, BlobDeserializationError } from '@aztec/blob-lib';
import { type BlobSinkClientInterface } from '@aztec/blob-sink/client';
import { Body, InboxLeaf, L2Block } from '@aztec/circuit-types';
import { AppendOnlyTreeSnapshot, BlockHeader, Fr, Proof } from '@aztec/circuits.js';
import { BlockHeader, Fr, Proof } from '@aztec/circuits.js';
import { AppendOnlyTreeSnapshot } from '@aztec/circuits.js/trees';
import { asyncPool } from '@aztec/foundation/async-pool';
import { type EthAddress } from '@aztec/foundation/eth-address';
import { type ViemSignature } from '@aztec/foundation/eth-signature';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { Body, type InBlock, L2Block, L2BlockHash, type TxEffect, type TxHash, TxReceipt } from '@aztec/circuit-types';
import { AppendOnlyTreeSnapshot, type AztecAddress, BlockHeader, INITIAL_L2_BLOCK_NUM } from '@aztec/circuits.js';
import { type AztecAddress, BlockHeader } from '@aztec/circuits.js';
import { AppendOnlyTreeSnapshot } from '@aztec/circuits.js/trees';
import { INITIAL_L2_BLOCK_NUM } from '@aztec/constants';
import { toArray } from '@aztec/foundation/iterable';
import { createLogger } from '@aztec/foundation/log';
import type { AztecAsyncKVStore, AztecAsyncMap, AztecAsyncSingleton, Range } from '@aztec/kv-store';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
type PrivateLog,
type UnconstrainedFunctionWithMembershipProof,
} from '@aztec/circuits.js';
import { FunctionSelector } from '@aztec/foundation/abi';
import { FunctionSelector } from '@aztec/circuits.js/abi';
import { type AztecAddress } from '@aztec/foundation/aztec-address';
import { toArray } from '@aztec/foundation/iterable';
import { createLogger } from '@aztec/foundation/log';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ import {
UnencryptedL2Log,
} from '@aztec/circuit-types';
import { type Fr, PrivateLog, PublicLog } from '@aztec/circuits.js';
import {
INITIAL_L2_BLOCK_NUM,
MAX_NOTE_HASHES_PER_TX,
PUBLIC_LOG_DATA_SIZE_IN_FIELDS,
} from '@aztec/circuits.js/constants';
import { INITIAL_L2_BLOCK_NUM, MAX_NOTE_HASHES_PER_TX, PUBLIC_LOG_DATA_SIZE_IN_FIELDS } from '@aztec/constants';
import { createLogger } from '@aztec/foundation/log';
import { BufferReader, numToUInt32BE } from '@aztec/foundation/serialize';
import type { AztecAsyncKVStore, AztecAsyncMap } from '@aztec/kv-store';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { InboxLeaf } from '@aztec/circuit-types';
import { Fr, L1_TO_L2_MSG_SUBTREE_HEIGHT } from '@aztec/circuits.js';
import { Fr } from '@aztec/circuits.js';
import { L1_TO_L2_MSG_SUBTREE_HEIGHT } from '@aztec/constants';
import { createLogger } from '@aztec/foundation/log';
import type { AztecAsyncKVStore, AztecAsyncMap, AztecAsyncSingleton } from '@aztec/kv-store';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { type InBlock, type L2Block } from '@aztec/circuit-types';
import { type Fr, MAX_NULLIFIERS_PER_TX } from '@aztec/circuits.js';
import { type Fr } from '@aztec/circuits.js';
import { MAX_NULLIFIERS_PER_TX } from '@aztec/constants';
import { createLogger } from '@aztec/foundation/log';
import type { AztecAsyncKVStore, AztecAsyncMap } from '@aztec/kv-store';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { InboxLeaf } from '@aztec/circuit-types';
import { INITIAL_L2_BLOCK_NUM, NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP } from '@aztec/circuits.js';
import { INITIAL_L2_BLOCK_NUM, NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP } from '@aztec/constants';
import { Fr } from '@aztec/foundation/fields';

import { L1ToL2MessageStore } from './l1_to_l2_message_store.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { InboxLeaf } from '@aztec/circuit-types';
import { L1_TO_L2_MSG_SUBTREE_HEIGHT } from '@aztec/circuits.js/constants';
import { L1_TO_L2_MSG_SUBTREE_HEIGHT } from '@aztec/constants';
import { type Fr } from '@aztec/foundation/fields';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@ import {
type ContractInstanceWithAddress,
type ExecutablePrivateFunctionWithMembershipProof,
Fr,
INITIAL_L2_BLOCK_NUM,
MAX_NOTE_HASHES_PER_TX,
MAX_NULLIFIERS_PER_TX,
PUBLIC_LOG_DATA_SIZE_IN_FIELDS,
type PrivateLog,
type PublicLog,
type UnconstrainedFunctionWithMembershipProof,
} from '@aztec/circuits.js';
import { FunctionSelector } from '@aztec/foundation/abi';
import { FunctionSelector } from '@aztec/circuits.js/abi';
import {
INITIAL_L2_BLOCK_NUM,
MAX_NOTE_HASHES_PER_TX,
MAX_NULLIFIERS_PER_TX,
PUBLIC_LOG_DATA_SIZE_IN_FIELDS,
} from '@aztec/constants';
import { type AztecAddress } from '@aztec/foundation/aztec-address';
import { createLogger } from '@aztec/foundation/log';

Expand Down
5 changes: 3 additions & 2 deletions yarn-project/archiver/src/factory.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { type BlobSinkClientInterface } from '@aztec/blob-sink/client';
import { type ArchiverApi, type Service, getComponentsVersionsFromConfig } from '@aztec/circuit-types';
import { getComponentsVersionsFromConfig } from '@aztec/circuit-types';
import { type ArchiverApi, type Service } from '@aztec/circuit-types/interfaces/server';
import {
type ContractClassPublic,
computePublicBytecodeCommitment,
getContractClassFromArtifact,
} from '@aztec/circuits.js';
import { FunctionType, decodeFunctionSignature } from '@aztec/foundation/abi';
import { FunctionType, decodeFunctionSignature } from '@aztec/circuits.js/abi';
import { createLogger } from '@aztec/foundation/log';
import { type Maybe } from '@aztec/foundation/types';
import { type DataStoreConfig } from '@aztec/kv-store/config';
Expand Down
8 changes: 2 additions & 6 deletions yarn-project/archiver/src/rpc/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import {
type ArchiverApi,
ArchiverApiSchema,
type ComponentsVersions,
getVersioningResponseHandler,
} from '@aztec/circuit-types';
import { type ComponentsVersions, getVersioningResponseHandler } from '@aztec/circuit-types';
import { type ArchiverApi, ArchiverApiSchema } from '@aztec/circuit-types/interfaces/server';
import { createSafeJsonRpcClient } from '@aztec/foundation/json-rpc/client';
import { createTracedJsonRpcServer, makeTracedFetch } from '@aztec/telemetry-client';

Expand Down
3 changes: 3 additions & 0 deletions yarn-project/archiver/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
{
"path": "../circuits.js"
},
{
"path": "../constants"
},
{
"path": "../ethereum"
},
Expand Down
1 change: 1 addition & 0 deletions yarn-project/aztec-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"@aztec/blob-sink": "workspace:^",
"@aztec/circuit-types": "workspace:^",
"@aztec/circuits.js": "workspace:^",
"@aztec/constants": "workspace:^",
"@aztec/epoch-cache": "workspace:^",
"@aztec/ethereum": "workspace:^",
"@aztec/foundation": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/aztec-node/src/aztec-node/http_rpc_server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type AztecNode, AztecNodeApiSchema } from '@aztec/circuit-types';
import { type AztecNode, AztecNodeApiSchema } from '@aztec/circuit-types/interfaces/client';
import { createTracedJsonRpcServer } from '@aztec/telemetry-client';

/**
Expand Down
9 changes: 4 additions & 5 deletions yarn-project/aztec-node/src/aztec-node/server.test.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
import { TestCircuitVerifier } from '@aztec/bb-prover';
import {
type AztecNode,
type L1ToL2MessageSource,
type L2BlockSource,
type L2LogsSource,
MerkleTreeId,
type MerkleTreeReadOperations,
type NullifierWithBlockSource,
type WorldStateSynchronizer,
mockTx,
} from '@aztec/circuit-types';
import { type AztecNode } from '@aztec/circuit-types/interfaces/client';
import { type MerkleTreeReadOperations, type WorldStateSynchronizer } from '@aztec/circuit-types/interfaces/server';
import { mockTx } from '@aztec/circuit-types/testing';
import {
AztecAddress,
type ContractDataSource,
EthAddress,
Fr,
GasFees,
MaxBlockNumber,
PublicDataTreeLeafPreimage,
RollupValidationRequests,
} from '@aztec/circuits.js';
import { PublicDataTreeLeafPreimage } from '@aztec/circuits.js/trees';
import { type P2P } from '@aztec/p2p';
import { computeFeePayerBalanceLeafSlot } from '@aztec/protocol-contracts/fee-juice';
import { type GlobalVariableBuilder } from '@aztec/sequencer-client';
Expand Down
Loading