Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions yarn-project/archiver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@
"@aztec/protocol-contracts": "workspace:^",
"@aztec/stdlib": "workspace:^",
"@aztec/telemetry-client": "workspace:^",
"@spalladino/viem": "2.38.2-eip7594.0",
"lodash.groupby": "^4.6.0",
"lodash.omit": "^4.5.0",
"tsc-watch": "^6.0.0",
"tslib": "^2.5.0"
"tslib": "^2.5.0",
"viem": "npm:@spalladino/[email protected]"
},
"devDependencies": {
"@jest/globals": "^30.0.0",
Expand Down
9 changes: 1 addition & 8 deletions yarn-project/archiver/src/archiver/archiver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,9 @@ import { makeAndSignCommitteeAttestationsAndSigners, makeBlockAttestationFromBlo
import { getTelemetryClient } from '@aztec/telemetry-client';

import { jest } from '@jest/globals';
import {
type FormattedBlock,
type Log,
type Transaction,
encodeFunctionData,
multicall3Abi,
toHex,
} from '@spalladino/viem';
import assert from 'assert';
import { type MockProxy, mock } from 'jest-mock-extended';
import { type FormattedBlock, type Log, type Transaction, encodeFunctionData, multicall3Abi, toHex } from 'viem';

import { Archiver } from './archiver.js';
import type { ArchiverDataStore } from './archiver_store.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/archiver/src/archiver/archiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ import {
trackSpan,
} from '@aztec/telemetry-client';

import { type GetContractReturnType, createPublicClient, fallback, http } from '@spalladino/viem';
import { EventEmitter } from 'events';
import groupBy from 'lodash.groupby';
import { type GetContractReturnType, createPublicClient, fallback, http } from 'viem';

import type { ArchiverDataStore, ArchiverL1SynchPoint } from './archiver_store.js';
import type { ArchiverConfig } from './config.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/archiver/src/archiver/data_retrieval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
getAbiItem,
hexToBytes,
multicall3Abi,
} from '@spalladino/viem';
} from 'viem';

import { NoBlobBodiesFoundError } from './errors.js';
import type { DataRetrieval } from './structs/data_retrieval.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/aztec-faucet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@
"@aztec/foundation": "workspace:^",
"@aztec/l1-artifacts": "workspace:^",
"@koa/cors": "^5.0.0",
"@spalladino/viem": "2.38.2-eip7594.0",
"koa": "^2.16.1",
"koa-bodyparser": "^4.4.1",
"koa-router": "^13.1.1",
"viem": "npm:@spalladino/[email protected]",
"zod": "^3.23.8"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/aztec-faucet/src/faucet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
type WalletClient,
getContract,
parseEther,
} from '@spalladino/viem';
import { mnemonicToAccount } from '@spalladino/viem/accounts';
} from 'viem';
import { mnemonicToAccount } from 'viem/accounts';

import type { FaucetConfig, L1AssetConfig } from './config.js';

Expand Down
4 changes: 2 additions & 2 deletions yarn-project/aztec-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@
"@aztec/telemetry-client": "workspace:^",
"@aztec/validator-client": "workspace:^",
"@aztec/world-state": "workspace:^",
"@spalladino/viem": "2.38.2-eip7594.0",
"koa": "^2.16.1",
"koa-router": "^13.1.1",
"tslib": "^2.4.0"
"tslib": "^2.4.0",
"viem": "npm:@spalladino/[email protected]"
},
"devDependencies": {
"@jest/globals": "^30.0.0",
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/aztec-node/src/aztec-node/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import type { SequencerClientConfig, TxSenderConfig } from '@aztec/sequencer-cli
import { AztecAddress } from '@aztec/stdlib/aztec-address';
import type { ValidatorClientConfig } from '@aztec/validator-client/config';

import type { Hex } from '@spalladino/viem';
import { generatePrivateKey, privateKeyToAddress } from '@spalladino/viem/accounts';
import type { Hex } from 'viem';
import { generatePrivateKey, privateKeyToAddress } from 'viem/accounts';

import { createKeyStoreForValidator } from './config.js';

Expand Down
2 changes: 1 addition & 1 deletion yarn-project/aztec-node/src/aztec-node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import type { SlasherConfig } from '@aztec/stdlib/interfaces/server';
import { type ValidatorClientConfig, validatorClientConfigMappings } from '@aztec/validator-client/config';
import { type WorldStateConfig, worldStateConfigMappings } from '@aztec/world-state/config';

import { privateKeyToAddress } from '@spalladino/viem/accounts';
import { privateKeyToAddress } from 'viem/accounts';

import { type SentinelConfig, sentinelConfigMappings } from '../sentinel/config.js';

Expand Down
2 changes: 1 addition & 1 deletion yarn-project/aztec-node/src/aztec-node/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ import {
} from '@aztec/validator-client';
import { createWorldStateSynchronizer } from '@aztec/world-state';

import { createPublicClient, fallback, http } from '@spalladino/viem';
import { createPublicClient, fallback, http } from 'viem';

import { createSentinel } from '../sentinel/factory.js';
import { Sentinel } from '../sentinel/sentinel.js';
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/aztec.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@
"@aztec/l1-artifacts": "workspace:^",
"@aztec/protocol-contracts": "workspace:^",
"@aztec/stdlib": "workspace:^",
"@spalladino/viem": "2.38.2-eip7594.0",
"axios": "^1.12.0",
"tslib": "^2.4.0"
"tslib": "^2.4.0",
"viem": "npm:@spalladino/[email protected]"
},
"devDependencies": {
"@jest/globals": "^30.0.0",
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/aztec.js/src/ethereum/portal_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { computeL2ToL1MessageHash, computeSecretHash } from '@aztec/stdlib/hash'
import type { PXE } from '@aztec/stdlib/interfaces/client';
import { getL2ToL1MessageLeafId } from '@aztec/stdlib/messaging';

import { type Hex, getContract, toFunctionSelector } from '@spalladino/viem';
import { type Hex, getContract, toFunctionSelector } from 'viem';

import type { Wallet } from '../index.js';

Expand Down
4 changes: 2 additions & 2 deletions yarn-project/aztec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@
"@aztec/telemetry-client": "workspace:^",
"@aztec/txe": "workspace:^",
"@aztec/world-state": "workspace:^",
"@spalladino/viem": "2.38.2-eip7594.0",
"@types/chalk": "^2.2.0",
"abitype": "^0.8.11",
"chalk": "^5.3.0",
"commander": "^12.1.0",
"koa": "^2.16.1",
"koa-router": "^13.1.1"
"koa-router": "^13.1.1",
"viem": "npm:@spalladino/[email protected]"
},
"files": [
"dest",
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/aztec/src/examples/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { EthAddress } from '@aztec/aztec.js';
import type { ExtendedViemWalletClient } from '@aztec/ethereum';
import { jsonStringify } from '@aztec/foundation/json-rpc';

import type { Hex } from '@spalladino/viem';
import type { Abi, Narrow } from 'abitype';
import type { Hex } from 'viem';

/**
* Helper function to deploy ETH contracts.
Expand Down
12 changes: 3 additions & 9 deletions yarn-project/aztec/src/sandbox/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,9 @@ import {
} from '@aztec/telemetry-client';
import { getGenesisValues } from '@aztec/world-state/testing';

import {
type HDAccount,
type PrivateKeyAccount,
createPublicClient,
fallback,
http as httpViemTransport,
} from '@spalladino/viem';
import { mnemonicToAccount, privateKeyToAddress } from '@spalladino/viem/accounts';
import { foundry } from '@spalladino/viem/chains';
import { type HDAccount, type PrivateKeyAccount, createPublicClient, fallback, http as httpViemTransport } from 'viem';
import { mnemonicToAccount, privateKeyToAddress } from 'viem/accounts';
import { foundry } from 'viem/chains';

import { createAccountLogs } from '../cli/util.js';
import { DefaultMnemonic } from '../mnemonic.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/aztec/src/testing/anvil_test_watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { RunningPromise } from '@aztec/foundation/running-promise';
import type { TestDateProvider } from '@aztec/foundation/timer';
import { RollupAbi } from '@aztec/l1-artifacts/RollupAbi';

import { type GetContractReturnType, getAddress, getContract } from '@spalladino/viem';
import { type GetContractReturnType, getAddress, getContract } from 'viem';

/**
* Represents a watcher for a rollup contract.
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/bb-prover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@
"@aztec/noir-test-contracts.js": "workspace:^",
"@aztec/protocol-contracts": "workspace:^",
"@jest/globals": "^30.0.0",
"@spalladino/viem": "2.38.2-eip7594.0",
"@types/jest": "^30.0.0",
"@types/node": "^22.15.17",
"@types/source-map-support": "^0.5.10",
"jest": "^30.0.0",
"jest-mock-extended": "^4.0.0",
"ts-node": "^10.9.1",
"typescript": "^5.3.3"
"typescript": "^5.3.3",
"viem": "npm:@spalladino/[email protected]"
},
"files": [
"dest",
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/blob-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@
"@aztec/kv-store": "workspace:*",
"@aztec/stdlib": "workspace:^",
"@aztec/telemetry-client": "workspace:*",
"@spalladino/viem": "2.38.2-eip7594.0",
"express": "^4.21.2",
"snappy": "^7.2.2",
"source-map-support": "^0.5.21",
"tslib": "^2.4.0",
"viem": "npm:@spalladino/[email protected]",
"zod": "^3.23.8"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/blob-sink/src/client/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { type Logger, createLogger } from '@aztec/foundation/log';
import { makeBackoff, retry } from '@aztec/foundation/retry';
import { bufferToHex } from '@aztec/foundation/string';

import { type RpcBlock, createPublicClient, fallback, http } from '@spalladino/viem';
import { type RpcBlock, createPublicClient, fallback, http } from 'viem';

import { createBlobArchiveClient } from '../archive/factory.js';
import type { BlobArchiveClient } from '../archive/interface.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/blob-sink/src/client/tests.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeEncodedBlob } from '@aztec/blob-lib/testing';

import type { Hex } from '@spalladino/viem';
import type { Hex } from 'viem';

import type { BlobSinkClientInterface } from './interface.js';

Expand Down
2 changes: 1 addition & 1 deletion yarn-project/blob-sink/src/types/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Hex } from '@spalladino/viem';
import type { Hex } from 'viem';
import { z } from 'zod';

export interface PostBlobSidecarRequest {
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@
"@aztec/world-state": "workspace:^",
"@iarna/toml": "^2.2.5",
"@libp2p/peer-id-factory": "^3.0.4",
"@spalladino/viem": "2.38.2-eip7594.0",
"commander": "^12.1.0",
"lodash.chunk": "^4.2.0",
"lodash.groupby": "^4.6.0",
"semver": "^7.5.4",
"source-map-support": "^0.5.21",
"tslib": "^2.4.0"
"tslib": "^2.4.0",
"viem": "npm:@spalladino/[email protected]"
},
"devDependencies": {
"@aztec/accounts": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/cli/src/cmds/infrastructure/sequencers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { GSEContract, RollupContract, createEthereumChain, getL1ContractsConfigE
import type { LogFn, Logger } from '@aztec/foundation/log';
import { RollupAbi, TestERC20Abi } from '@aztec/l1-artifacts';

import { createPublicClient, createWalletClient, fallback, getContract, http } from '@spalladino/viem';
import { mnemonicToAccount } from '@spalladino/viem/accounts';
import { createPublicClient, createWalletClient, fallback, getContract, http } from 'viem';
import { mnemonicToAccount } from 'viem/accounts';

export async function sequencers(opts: {
command: 'list' | 'add' | 'remove' | 'who-next' | 'flush';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/cli/src/cmds/l1/create_l1_account.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { LogFn } from '@aztec/foundation/log';

import { generatePrivateKey, privateKeyToAccount } from '@spalladino/viem/accounts';
import { generatePrivateKey, privateKeyToAccount } from 'viem/accounts';

import { prettyPrintJSON } from '../../utils/commands.js';

Expand Down
2 changes: 1 addition & 1 deletion yarn-project/cli/src/cmds/l1/get_l1_addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { EthAddress } from '@aztec/aztec.js';
import { RegistryContract, type ViemPublicClient, createEthereumChain } from '@aztec/ethereum';
import type { LogFn } from '@aztec/foundation/log';

import { createPublicClient, fallback, http } from '@spalladino/viem';
import { createPublicClient, fallback, http } from 'viem';

export async function getL1Addresses(
registryAddress: EthAddress,
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/cli/src/cmds/l1/get_l1_balance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { EthAddress } from '@aztec/foundation/eth-address';
import type { LogFn } from '@aztec/foundation/log';
import { TestERC20Abi } from '@aztec/l1-artifacts';

import { createPublicClient, fallback, getContract, http } from '@spalladino/viem';
import { createPublicClient, fallback, getContract, http } from 'viem';

import { prettyPrintJSON } from '../../utils/commands.js';

Expand Down
2 changes: 1 addition & 1 deletion yarn-project/cli/src/cmds/l1/prover_stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { type LogFn, type Logger, createLogger } from '@aztec/foundation/log';
import { RollupAbi } from '@aztec/l1-artifacts';
import { createAztecNodeClient } from '@aztec/stdlib/interfaces/client';

import { createPublicClient, fallback, getAbiItem, getAddress, http } from '@spalladino/viem';
import chunk from 'lodash.chunk';
import groupBy from 'lodash.groupby';
import { createPublicClient, fallback, getAbiItem, getAddress, http } from 'viem';

export async function proverStats(opts: {
l1RpcUrls: string[];
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/cli/src/cmds/l1/trigger_seed_snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createEthereumChain, createExtendedL1Client } from '@aztec/ethereum';
import type { LogFn } from '@aztec/foundation/log';
import { RollupAbi } from '@aztec/l1-artifacts/RollupAbi';

import { getContract } from '@spalladino/viem';
import { getContract } from 'viem';

import type { RollupCommandArgs } from './update_l1_validators.js';

Expand Down
4 changes: 2 additions & 2 deletions yarn-project/cli/src/cmds/l1/update_l1_validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import type { LogFn, Logger } from '@aztec/foundation/log';
import { RollupAbi, StakingAssetHandlerAbi } from '@aztec/l1-artifacts';
import { ZkPassportProofParams } from '@aztec/stdlib/zkpassport';

import { encodeFunctionData, formatEther, getContract } from '@spalladino/viem';
import { generatePrivateKey, mnemonicToAccount, privateKeyToAccount } from '@spalladino/viem/accounts';
import { encodeFunctionData, formatEther, getContract } from 'viem';
import { generatePrivateKey, mnemonicToAccount, privateKeyToAccount } from 'viem/accounts';

import { addLeadingHex } from '../../utils/aztec.js';

Expand Down
4 changes: 2 additions & 2 deletions yarn-project/cli/src/utils/aztec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export async function deployAztecContracts(
debugLogger: Logger,
): Promise<DeployL1ContractsReturnType> {
const { createEthereumChain, deployL1Contracts } = await import('@aztec/ethereum');
const { mnemonicToAccount, privateKeyToAccount } = await import('@spalladino/viem/accounts');
const { mnemonicToAccount, privateKeyToAccount } = await import('viem/accounts');

const account = !privateKey
? mnemonicToAccount(mnemonic!, { addressIndex: mnemonicIndex })
Expand Down Expand Up @@ -112,7 +112,7 @@ export async function deployNewRollupContracts(
logger: Logger,
): Promise<{ rollup: RollupContract; slashFactoryAddress: EthAddress }> {
const { createEthereumChain, deployRollupForUpgrade, createExtendedL1Client } = await import('@aztec/ethereum');
const { mnemonicToAccount, privateKeyToAccount } = await import('@spalladino/viem/accounts');
const { mnemonicToAccount, privateKeyToAccount } = await import('viem/accounts');
const { getVKTreeRoot } = await import('@aztec/noir-protocol-circuits-types/vk-tree');

const account = !privateKey
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/end-to-end/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"@iarna/toml": "^2.2.5",
"@jest/globals": "^30.0.0",
"@noble/curves": "=1.0.0",
"@spalladino/viem": "2.38.2-eip7594.0",
"@swc/core": "^1.4.11",
"@swc/jest": "^0.2.36",
"@types/fs-extra": "^11.0.2",
Expand Down Expand Up @@ -97,6 +96,7 @@
"tslib": "^2.4.0",
"typescript": "^5.3.3",
"util": "^0.12.5",
"viem": "npm:@spalladino/[email protected]",
"zod": "^3.23.8"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
import { TokenContract } from '@aztec/noir-contracts.js/Token';
import { TokenBridgeContract } from '@aztec/noir-contracts.js/TokenBridge';

import { getContract } from '@spalladino/viem';
import { getContract } from 'viem';

// docs:end:imports
// docs:start:utils
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import { HonkVerifierAbi, HonkVerifierBytecode, IVerifierAbi } from '@aztec/l1-a
import { Proof } from '@aztec/stdlib/proofs';
import { RootRollupPublicInputs } from '@aztec/stdlib/rollup';

import { type GetContractReturnType, type Hex, getContract } from '@spalladino/viem';
import { mnemonicToAccount } from '@spalladino/viem/accounts';
import type { Anvil } from '@viem/anvil';
import { readFile } from 'fs/promises';
import { join } from 'path';
import { type GetContractReturnType, type Hex, getContract } from 'viem';
import { mnemonicToAccount } from 'viem/accounts';

import { MNEMONIC } from '../fixtures/fixtures.js';
import { getACVMConfig } from '../fixtures/get_acvm_config.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import type { ProposedBlockHeader, StateReference, Tx } from '@aztec/stdlib/tx';
import { NodeKeystoreAdapter, ValidatorClient } from '@aztec/validator-client';

import { jest } from '@jest/globals';
import { privateKeyToAccount } from '@spalladino/viem/accounts';
import { mkdtemp, rmdir } from 'fs/promises';
import { tmpdir } from 'os';
import { join } from 'path';
import { privateKeyToAccount } from 'viem/accounts';

import {
addressForPrivateKey,
Expand Down
Loading
Loading