@aztec/cli 2.1.0-rc.1 → 2.1.0-rc.10
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.
- package/dest/cmds/infrastructure/sequencers.js +2 -2
- package/dest/cmds/l1/create_l1_account.js +1 -1
- package/dest/cmds/l1/get_l1_addresses.js +1 -1
- package/dest/cmds/l1/get_l1_balance.js +1 -1
- package/dest/cmds/l1/index.d.ts.map +1 -1
- package/dest/cmds/l1/index.js +0 -18
- package/dest/cmds/l1/prover_stats.js +1 -1
- package/dest/cmds/l1/trigger_seed_snapshot.js +1 -1
- package/dest/cmds/l1/update_l1_validators.js +15 -7
- package/dest/config/chain_l2_config.d.ts +1 -1
- package/dest/config/chain_l2_config.d.ts.map +1 -1
- package/dest/config/chain_l2_config.js +14 -5
- package/dest/config/network_config.js +1 -1
- package/dest/utils/aztec.js +2 -2
- package/package.json +25 -25
- package/src/cmds/infrastructure/sequencers.ts +2 -2
- package/src/cmds/l1/create_l1_account.ts +1 -1
- package/src/cmds/l1/get_l1_addresses.ts +1 -1
- package/src/cmds/l1/get_l1_balance.ts +1 -1
- package/src/cmds/l1/index.ts +0 -32
- package/src/cmds/l1/prover_stats.ts +1 -1
- package/src/cmds/l1/trigger_seed_snapshot.ts +1 -1
- package/src/cmds/l1/update_l1_validators.ts +7 -7
- package/src/config/chain_l2_config.ts +8 -6
- package/src/config/network_config.ts +1 -1
- package/src/utils/aztec.ts +2 -2
- package/dest/cmds/devnet/bootstrap_network.d.ts +0 -3
- package/dest/cmds/devnet/bootstrap_network.d.ts.map +0 -1
- package/dest/cmds/devnet/bootstrap_network.js +0 -216
- package/dest/cmds/devnet/faucet.d.ts +0 -4
- package/dest/cmds/devnet/faucet.d.ts.map +0 -1
- package/dest/cmds/devnet/faucet.js +0 -26
- package/dest/cmds/devnet/index.d.ts +0 -4
- package/dest/cmds/devnet/index.d.ts.map +0 -1
- package/dest/cmds/devnet/index.js +0 -14
- package/src/cmds/devnet/bootstrap_network.ts +0 -321
- package/src/cmds/devnet/faucet.ts +0 -33
- package/src/cmds/devnet/index.ts +0 -60
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fr, createCompatibleClient } from '@aztec/aztec.js';
|
|
2
2
|
import { GSEContract, RollupContract, createEthereumChain, getL1ContractsConfigEnvVars } from '@aztec/ethereum';
|
|
3
3
|
import { RollupAbi, TestERC20Abi } from '@aztec/l1-artifacts';
|
|
4
|
-
import { createPublicClient, createWalletClient, fallback, getContract, http } from 'viem';
|
|
5
|
-
import { mnemonicToAccount } from 'viem/accounts';
|
|
4
|
+
import { createPublicClient, createWalletClient, fallback, getContract, http } from '@spalladino/viem';
|
|
5
|
+
import { mnemonicToAccount } from '@spalladino/viem/accounts';
|
|
6
6
|
export async function sequencers(opts) {
|
|
7
7
|
const { command, who: maybeWho, mnemonic, bn254SecretKey, rpcUrl, l1RpcUrls, chainId, log, debugLogger } = opts;
|
|
8
8
|
const client = await createCompatibleClient(rpcUrl, debugLogger);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { generatePrivateKey, privateKeyToAccount } from 'viem/accounts';
|
|
1
|
+
import { generatePrivateKey, privateKeyToAccount } from '@spalladino/viem/accounts';
|
|
2
2
|
import { prettyPrintJSON } from '../../utils/commands.js';
|
|
3
3
|
export function createL1Account(json, log) {
|
|
4
4
|
const privateKey = generatePrivateKey();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RegistryContract, createEthereumChain } from '@aztec/ethereum';
|
|
2
|
-
import { createPublicClient, fallback, http } from 'viem';
|
|
2
|
+
import { createPublicClient, fallback, http } from '@spalladino/viem';
|
|
3
3
|
export async function getL1Addresses(registryAddress, rollupVersion, rpcUrls, chainId, json, log) {
|
|
4
4
|
const chain = createEthereumChain(rpcUrls, chainId);
|
|
5
5
|
const publicClient = createPublicClient({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createEthereumChain } from '@aztec/ethereum';
|
|
2
2
|
import { TestERC20Abi } from '@aztec/l1-artifacts';
|
|
3
|
-
import { createPublicClient, fallback, getContract, http } from 'viem';
|
|
3
|
+
import { createPublicClient, fallback, getContract, http } from '@spalladino/viem';
|
|
4
4
|
import { prettyPrintJSON } from '../../utils/commands.js';
|
|
5
5
|
export async function getL1Balance(who, token, l1RpcUrls, chainId, json, log) {
|
|
6
6
|
const chain = createEthereumChain(l1RpcUrls, chainId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,KAAK,OAAO,EAAU,MAAM,WAAW,CAAC;AAcjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAa3D,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cmds/l1/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,KAAK,OAAO,EAAU,MAAM,WAAW,CAAC;AAcjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAa3D,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,WAkf/E"}
|
package/dest/cmds/l1/index.js
CHANGED
|
@@ -194,23 +194,5 @@ export function injectCommands(program, log, debugLogger) {
|
|
|
194
194
|
const { advanceEpoch } = await import('./advance_epoch.js');
|
|
195
195
|
await advanceEpoch(options.l1RpcUrls, options.rpcUrl, log);
|
|
196
196
|
});
|
|
197
|
-
program.command('prover-stats', {
|
|
198
|
-
hidden: true
|
|
199
|
-
}).addOption(l1RpcUrlsOption).addOption(l1ChainIdOption).option('--start-block <number>', 'The L1 block number to start from', parseBigint, 1n).option('--end-block <number>', 'The last L1 block number to query', parseBigint).option('--batch-size <number>', 'The number of blocks to query in each batch', parseBigint, 100n).option('--proving-timeout <number>', 'Cutoff for proving time to consider a block', parseBigint).option('--l1-rollup-address <string>', 'Address of the rollup contract (required if node URL is not set)').option('--node-url <string>', 'JSON RPC URL of an Aztec node to retrieve the rollup contract address (required if L1 rollup address is not set)').option('--raw-logs', 'Output raw logs instead of aggregated stats').action(async (options)=>{
|
|
200
|
-
const { proverStats } = await import('./prover_stats.js');
|
|
201
|
-
const { l1RpcUrls, chainId, l1RollupAddress, startBlock, endBlock, batchSize, nodeUrl, provingTimeout, rawLogs } = options;
|
|
202
|
-
await proverStats({
|
|
203
|
-
l1RpcUrls,
|
|
204
|
-
chainId,
|
|
205
|
-
l1RollupAddress,
|
|
206
|
-
startBlock,
|
|
207
|
-
endBlock,
|
|
208
|
-
batchSize,
|
|
209
|
-
nodeUrl,
|
|
210
|
-
provingTimeout,
|
|
211
|
-
rawLogs,
|
|
212
|
-
log
|
|
213
|
-
});
|
|
214
|
-
});
|
|
215
197
|
return program;
|
|
216
198
|
}
|
|
@@ -5,9 +5,9 @@ import { EthAddress } from '@aztec/foundation/eth-address';
|
|
|
5
5
|
import { createLogger } from '@aztec/foundation/log';
|
|
6
6
|
import { RollupAbi } from '@aztec/l1-artifacts';
|
|
7
7
|
import { createAztecNodeClient } from '@aztec/stdlib/interfaces/client';
|
|
8
|
+
import { createPublicClient, fallback, getAbiItem, getAddress, http } from '@spalladino/viem';
|
|
8
9
|
import chunk from 'lodash.chunk';
|
|
9
10
|
import groupBy from 'lodash.groupby';
|
|
10
|
-
import { createPublicClient, fallback, getAbiItem, getAddress, http } from 'viem';
|
|
11
11
|
export async function proverStats(opts) {
|
|
12
12
|
const debugLog = createLogger('cli:prover_stats');
|
|
13
13
|
const { startBlock, chainId, l1RpcUrls, l1RollupAddress, batchSize, nodeUrl, provingTimeout, endBlock, rawLogs, log } = opts;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createEthereumChain, createExtendedL1Client } from '@aztec/ethereum';
|
|
2
2
|
import { RollupAbi } from '@aztec/l1-artifacts/RollupAbi';
|
|
3
|
-
import { getContract } from 'viem';
|
|
3
|
+
import { getContract } from '@spalladino/viem';
|
|
4
4
|
export async function triggerSeedSnapshot({ rpcUrls, chainId, privateKey, mnemonic, rollupAddress, log }) {
|
|
5
5
|
const chain = createEthereumChain(rpcUrls, chainId);
|
|
6
6
|
const client = createExtendedL1Client(rpcUrls, privateKey ?? mnemonic, chain.chainInfo);
|
|
@@ -2,8 +2,8 @@ import { GSEContract, RollupContract, createEthereumChain, createExtendedL1Clien
|
|
|
2
2
|
import { EthCheatCodes } from '@aztec/ethereum/test';
|
|
3
3
|
import { RollupAbi, StakingAssetHandlerAbi } from '@aztec/l1-artifacts';
|
|
4
4
|
import { ZkPassportProofParams } from '@aztec/stdlib/zkpassport';
|
|
5
|
-
import { encodeFunctionData, formatEther, getContract } from 'viem';
|
|
6
|
-
import { generatePrivateKey, mnemonicToAccount, privateKeyToAccount } from 'viem/accounts';
|
|
5
|
+
import { encodeFunctionData, formatEther, getContract } from '@spalladino/viem';
|
|
6
|
+
import { generatePrivateKey, mnemonicToAccount, privateKeyToAccount } from '@spalladino/viem/accounts';
|
|
7
7
|
import { addLeadingHex } from '../../utils/aztec.js';
|
|
8
8
|
export function generateL1Account() {
|
|
9
9
|
const privateKey = generatePrivateKey();
|
|
@@ -34,7 +34,9 @@ export async function addL1Validator({ rpcUrls, chainId, privateKey, mnemonic, a
|
|
|
34
34
|
const gseAddress = await rollup.read.getGSE();
|
|
35
35
|
const gse = new GSEContract(l1Client, gseAddress);
|
|
36
36
|
const registrationTuple = await gse.makeRegistrationTuple(blsSecretKey);
|
|
37
|
-
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client,
|
|
37
|
+
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, {
|
|
38
|
+
logger: debugLogger
|
|
39
|
+
});
|
|
38
40
|
const proofParamsObj = ZkPassportProofParams.fromBuffer(proofParams);
|
|
39
41
|
const merkleProofArray = merkleProof.map((proof)=>addLeadingHex(proof));
|
|
40
42
|
const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
|
|
@@ -88,7 +90,9 @@ export async function addL1ValidatorViaRollup({ rpcUrls, chainId, privateKey, mn
|
|
|
88
90
|
const gseAddress = await rollup.read.getGSE();
|
|
89
91
|
const gse = new GSEContract(l1Client, gseAddress);
|
|
90
92
|
const registrationTuple = await gse.makeRegistrationTuple(blsSecretKey);
|
|
91
|
-
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client,
|
|
93
|
+
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, {
|
|
94
|
+
logger: debugLogger
|
|
95
|
+
});
|
|
92
96
|
const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
|
|
93
97
|
to: rollupAddress.toString(),
|
|
94
98
|
data: encodeFunctionData({
|
|
@@ -128,7 +132,9 @@ export async function removeL1Validator({ rpcUrls, chainId, privateKey, mnemonic
|
|
|
128
132
|
const account = getAccount(privateKey, mnemonic);
|
|
129
133
|
const chain = createEthereumChain(rpcUrls, chainId);
|
|
130
134
|
const l1Client = createExtendedL1Client(rpcUrls, account, chain.chainInfo);
|
|
131
|
-
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client,
|
|
135
|
+
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, {
|
|
136
|
+
logger: debugLogger
|
|
137
|
+
});
|
|
132
138
|
dualLog(`Removing validator ${validatorAddress.toString()} from rollup ${rollupAddress.toString()}`);
|
|
133
139
|
const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
|
|
134
140
|
to: rollupAddress.toString(),
|
|
@@ -148,7 +154,9 @@ export async function pruneRollup({ rpcUrls, chainId, privateKey, mnemonic, roll
|
|
|
148
154
|
const account = getAccount(privateKey, mnemonic);
|
|
149
155
|
const chain = createEthereumChain(rpcUrls, chainId);
|
|
150
156
|
const l1Client = createExtendedL1Client(rpcUrls, account, chain.chainInfo);
|
|
151
|
-
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client,
|
|
157
|
+
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, {
|
|
158
|
+
logger: debugLogger
|
|
159
|
+
});
|
|
152
160
|
dualLog(`Trying prune`);
|
|
153
161
|
const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
|
|
154
162
|
to: rollupAddress.toString(),
|
|
@@ -208,7 +216,7 @@ export async function debugRollup({ rpcUrls, chainId, rollupAddress, log }) {
|
|
|
208
216
|
log(`Committee: ${committee?.map((v)=>v.toString()).join(', ')}`);
|
|
209
217
|
const archive = await rollup.archive();
|
|
210
218
|
log(`Archive: ${archive}`);
|
|
211
|
-
const epochNum = await rollup.
|
|
219
|
+
const epochNum = await rollup.getCurrentEpochNumber();
|
|
212
220
|
log(`Current epoch: ${epochNum}`);
|
|
213
221
|
const slot = await rollup.getSlotNumber();
|
|
214
222
|
log(`Current slot: ${slot}`);
|
|
@@ -12,7 +12,7 @@ export type L2ChainConfig = L1ContractsConfig & Pick<P2PConfig, 'txPoolDeleteTxs
|
|
|
12
12
|
seqMinTxsPerBlock: number;
|
|
13
13
|
seqMaxTxsPerBlock: number;
|
|
14
14
|
realProofs: boolean;
|
|
15
|
-
|
|
15
|
+
snapshotsUrls: string[];
|
|
16
16
|
autoUpdate: SharedNodeConfig['autoUpdate'];
|
|
17
17
|
autoUpdateUrl?: string;
|
|
18
18
|
maxTxPoolSize: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain_l2_config.d.ts","sourceRoot":"","sources":["../../src/config/chain_l2_config.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACnF,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"chain_l2_config.d.ts","sourceRoot":"","sources":["../../src/config/chain_l2_config.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACnF,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAarE,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,GAC5C,IAAI,CAAC,aAAa,EAAE,sBAAsB,GAAG,uBAAuB,CAAC,GAAG;IACtE,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IAIpC,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,uBAAuB,EAAE,MAAM,CAAC;IAGhC,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AA+CJ,eAAO,MAAM,4BAA4B,EAAE,aA+E1C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,aAmDxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,aAsDlC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,aA+EnC,CAAC;AAIF,wBAAsB,YAAY,CAAC,WAAW,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,MAAM,gBAQ9E;AAED,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,YAAY,EACzB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAoBpC;AAMD,wBAAsB,gCAAgC,CAAC,WAAW,EAAE,YAAY,iBA4F/E"}
|
|
@@ -6,6 +6,7 @@ import publicIncludeMetrics from '../../public_include_metric_prefixes.json' wit
|
|
|
6
6
|
};
|
|
7
7
|
import { cachedFetch } from './cached_fetch.js';
|
|
8
8
|
import { enrichEthAddressVar, enrichVar } from './enrich_env.js';
|
|
9
|
+
const SNAPSHOTS_URL = 'https://aztec-labs-snapshots.com';
|
|
9
10
|
const defaultDBMapSizeKb = 128 * 1_024 * 1_024; // 128 GB
|
|
10
11
|
const tbMapSizeKb = 1_024 * 1_024 * 1_024; // 1 TB
|
|
11
12
|
const DefaultSlashConfig = {
|
|
@@ -52,7 +53,9 @@ export const stagingIgnitionL2ChainConfig = {
|
|
|
52
53
|
seqMinTxsPerBlock: 0,
|
|
53
54
|
seqMaxTxsPerBlock: 0,
|
|
54
55
|
realProofs: true,
|
|
55
|
-
|
|
56
|
+
snapshotsUrls: [
|
|
57
|
+
`${SNAPSHOTS_URL}/staging-ignition/`
|
|
58
|
+
],
|
|
56
59
|
autoUpdate: 'config-and-version',
|
|
57
60
|
autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-ignition.json',
|
|
58
61
|
maxTxPoolSize: 100_000_000,
|
|
@@ -116,7 +119,9 @@ export const stagingPublicL2ChainConfig = {
|
|
|
116
119
|
seqMinTxsPerBlock: 0,
|
|
117
120
|
seqMaxTxsPerBlock: 20,
|
|
118
121
|
realProofs: true,
|
|
119
|
-
|
|
122
|
+
snapshotsUrls: [
|
|
123
|
+
`${SNAPSHOTS_URL}/staging-public/`
|
|
124
|
+
],
|
|
120
125
|
autoUpdate: 'config-and-version',
|
|
121
126
|
autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-public.json',
|
|
122
127
|
publicIncludeMetrics,
|
|
@@ -153,7 +158,9 @@ export const testnetL2ChainConfig = {
|
|
|
153
158
|
seqMinTxsPerBlock: 0,
|
|
154
159
|
seqMaxTxsPerBlock: 20,
|
|
155
160
|
realProofs: true,
|
|
156
|
-
|
|
161
|
+
snapshotsUrls: [
|
|
162
|
+
`${SNAPSHOTS_URL}/testnet/`
|
|
163
|
+
],
|
|
157
164
|
autoUpdate: 'config-and-version',
|
|
158
165
|
autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/testnet.json',
|
|
159
166
|
maxTxPoolSize: 100_000_000,
|
|
@@ -193,7 +200,9 @@ export const ignitionL2ChainConfig = {
|
|
|
193
200
|
seqMinTxsPerBlock: 0,
|
|
194
201
|
seqMaxTxsPerBlock: 0,
|
|
195
202
|
realProofs: true,
|
|
196
|
-
|
|
203
|
+
snapshotsUrls: [
|
|
204
|
+
`${SNAPSHOTS_URL}/ignition/`
|
|
205
|
+
],
|
|
197
206
|
autoUpdate: 'notify',
|
|
198
207
|
autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/ignition.json',
|
|
199
208
|
maxTxPoolSize: 100_000_000,
|
|
@@ -308,7 +317,7 @@ export async function enrichEnvironmentWithChainConfig(networkName) {
|
|
|
308
317
|
enrichVar('SEQ_MAX_TX_PER_BLOCK', config.seqMaxTxsPerBlock.toString());
|
|
309
318
|
enrichVar('PROVER_REAL_PROOFS', config.realProofs.toString());
|
|
310
319
|
enrichVar('PXE_PROVER_ENABLED', config.realProofs.toString());
|
|
311
|
-
enrichVar('
|
|
320
|
+
enrichVar('SYNC_SNAPSHOTS_URLS', config.snapshotsUrls.join(','));
|
|
312
321
|
enrichVar('P2P_MAX_TX_POOL_SIZE', config.maxTxPoolSize.toString());
|
|
313
322
|
enrichVar('DATA_STORE_MAP_SIZE_KB', config.dbMapSizeKb.toString());
|
|
314
323
|
enrichVar('ARCHIVER_STORE_MAP_SIZE_KB', config.archiverStoreMapSizeKb.toString());
|
|
@@ -71,7 +71,7 @@ const NETWORK_CONFIG_CACHE_DURATION_MS = 60 * 60 * 1000; // 1 hour
|
|
|
71
71
|
}
|
|
72
72
|
enrichVar('BOOTSTRAP_NODES', networkConfig.bootnodes.join(','));
|
|
73
73
|
enrichVar('L1_CHAIN_ID', String(networkConfig.l1ChainId));
|
|
74
|
-
enrichVar('
|
|
74
|
+
enrichVar('SYNC_SNAPSHOTS_URLS', networkConfig.snapshots.join(','));
|
|
75
75
|
enrichEthAddressVar('REGISTRY_CONTRACT_ADDRESS', networkConfig.registryAddress.toString());
|
|
76
76
|
if (networkConfig.feeAssetHandlerAddress) {
|
|
77
77
|
enrichEthAddressVar('FEE_ASSET_HANDLER_CONTRACT_ADDRESS', networkConfig.feeAssetHandlerAddress.toString());
|
package/dest/utils/aztec.js
CHANGED
|
@@ -27,7 +27,7 @@ import { encodeArgs } from './encoding.js';
|
|
|
27
27
|
* @param mnemonic - The mnemonic to be used in contract deployment.
|
|
28
28
|
*/ export async function deployAztecContracts(rpcUrls, chainId, privateKey, mnemonic, mnemonicIndex, salt, initialValidators, genesisArchiveRoot, feeJuicePortalInitialBalance, acceleratedTestDeployments, config, existingToken, realVerifier, createVerificationJson, debugLogger) {
|
|
29
29
|
const { createEthereumChain, deployL1Contracts } = await import('@aztec/ethereum');
|
|
30
|
-
const { mnemonicToAccount, privateKeyToAccount } = await import('viem/accounts');
|
|
30
|
+
const { mnemonicToAccount, privateKeyToAccount } = await import('@spalladino/viem/accounts');
|
|
31
31
|
const account = !privateKey ? mnemonicToAccount(mnemonic, {
|
|
32
32
|
addressIndex: mnemonicIndex
|
|
33
33
|
}) : privateKeyToAccount(addLeadingHex(privateKey));
|
|
@@ -49,7 +49,7 @@ import { encodeArgs } from './encoding.js';
|
|
|
49
49
|
}
|
|
50
50
|
export async function deployNewRollupContracts(registryAddress, rpcUrls, chainId, privateKey, mnemonic, mnemonicIndex, salt, initialValidators, genesisArchiveRoot, feeJuicePortalInitialBalance, config, realVerifier, logger) {
|
|
51
51
|
const { createEthereumChain, deployRollupForUpgrade, createExtendedL1Client } = await import('@aztec/ethereum');
|
|
52
|
-
const { mnemonicToAccount, privateKeyToAccount } = await import('viem/accounts');
|
|
52
|
+
const { mnemonicToAccount, privateKeyToAccount } = await import('@spalladino/viem/accounts');
|
|
53
53
|
const { getVKTreeRoot } = await import('@aztec/noir-protocol-circuits-types/vk-tree');
|
|
54
54
|
const account = !privateKey ? mnemonicToAccount(mnemonic, {
|
|
55
55
|
addressIndex: mnemonicIndex
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "2.1.0-rc.
|
|
3
|
+
"version": "2.1.0-rc.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./contracts": "./dest/cmds/contracts/index.js",
|
|
@@ -70,30 +70,30 @@
|
|
|
70
70
|
]
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@aztec/archiver": "2.1.0-rc.
|
|
74
|
-
"@aztec/aztec.js": "2.1.0-rc.
|
|
75
|
-
"@aztec/constants": "2.1.0-rc.
|
|
76
|
-
"@aztec/entrypoints": "2.1.0-rc.
|
|
77
|
-
"@aztec/ethereum": "2.1.0-rc.
|
|
78
|
-
"@aztec/foundation": "2.1.0-rc.
|
|
79
|
-
"@aztec/l1-artifacts": "2.1.0-rc.
|
|
80
|
-
"@aztec/node-lib": "2.1.0-rc.
|
|
81
|
-
"@aztec/p2p": "2.1.0-rc.
|
|
82
|
-
"@aztec/stdlib": "2.1.0-rc.
|
|
83
|
-
"@aztec/world-state": "2.1.0-rc.
|
|
73
|
+
"@aztec/archiver": "2.1.0-rc.10",
|
|
74
|
+
"@aztec/aztec.js": "2.1.0-rc.10",
|
|
75
|
+
"@aztec/constants": "2.1.0-rc.10",
|
|
76
|
+
"@aztec/entrypoints": "2.1.0-rc.10",
|
|
77
|
+
"@aztec/ethereum": "2.1.0-rc.10",
|
|
78
|
+
"@aztec/foundation": "2.1.0-rc.10",
|
|
79
|
+
"@aztec/l1-artifacts": "2.1.0-rc.10",
|
|
80
|
+
"@aztec/node-lib": "2.1.0-rc.10",
|
|
81
|
+
"@aztec/p2p": "2.1.0-rc.10",
|
|
82
|
+
"@aztec/stdlib": "2.1.0-rc.10",
|
|
83
|
+
"@aztec/world-state": "2.1.0-rc.10",
|
|
84
84
|
"@iarna/toml": "^2.2.5",
|
|
85
85
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
86
|
+
"@spalladino/viem": "2.38.2-eip7594.0",
|
|
86
87
|
"commander": "^12.1.0",
|
|
87
88
|
"lodash.chunk": "^4.2.0",
|
|
88
89
|
"lodash.groupby": "^4.6.0",
|
|
89
90
|
"semver": "^7.5.4",
|
|
90
91
|
"source-map-support": "^0.5.21",
|
|
91
|
-
"tslib": "^2.4.0"
|
|
92
|
-
"viem": "2.23.7"
|
|
92
|
+
"tslib": "^2.4.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@aztec/accounts": "2.1.0-rc.
|
|
96
|
-
"@aztec/protocol-contracts": "2.1.0-rc.
|
|
95
|
+
"@aztec/accounts": "2.1.0-rc.10",
|
|
96
|
+
"@aztec/protocol-contracts": "2.1.0-rc.10",
|
|
97
97
|
"@jest/globals": "^30.0.0",
|
|
98
98
|
"@types/jest": "^30.0.0",
|
|
99
99
|
"@types/lodash.chunk": "^4.2.9",
|
|
@@ -109,15 +109,15 @@
|
|
|
109
109
|
"typescript": "^5.3.3"
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|
|
112
|
-
"@aztec/accounts": "2.1.0-rc.
|
|
113
|
-
"@aztec/bb-prover": "2.1.0-rc.
|
|
114
|
-
"@aztec/ethereum": "2.1.0-rc.
|
|
115
|
-
"@aztec/l1-artifacts": "2.1.0-rc.
|
|
116
|
-
"@aztec/noir-contracts.js": "2.1.0-rc.
|
|
117
|
-
"@aztec/noir-protocol-circuits-types": "2.1.0-rc.
|
|
118
|
-
"@aztec/noir-test-contracts.js": "2.1.0-rc.
|
|
119
|
-
"@aztec/protocol-contracts": "2.1.0-rc.
|
|
120
|
-
"@aztec/stdlib": "2.1.0-rc.
|
|
112
|
+
"@aztec/accounts": "2.1.0-rc.10",
|
|
113
|
+
"@aztec/bb-prover": "2.1.0-rc.10",
|
|
114
|
+
"@aztec/ethereum": "2.1.0-rc.10",
|
|
115
|
+
"@aztec/l1-artifacts": "2.1.0-rc.10",
|
|
116
|
+
"@aztec/noir-contracts.js": "2.1.0-rc.10",
|
|
117
|
+
"@aztec/noir-protocol-circuits-types": "2.1.0-rc.10",
|
|
118
|
+
"@aztec/noir-test-contracts.js": "2.1.0-rc.10",
|
|
119
|
+
"@aztec/protocol-contracts": "2.1.0-rc.10",
|
|
120
|
+
"@aztec/stdlib": "2.1.0-rc.10"
|
|
121
121
|
},
|
|
122
122
|
"files": [
|
|
123
123
|
"dest",
|
|
@@ -3,8 +3,8 @@ import { GSEContract, RollupContract, createEthereumChain, getL1ContractsConfigE
|
|
|
3
3
|
import type { LogFn, Logger } from '@aztec/foundation/log';
|
|
4
4
|
import { RollupAbi, TestERC20Abi } from '@aztec/l1-artifacts';
|
|
5
5
|
|
|
6
|
-
import { createPublicClient, createWalletClient, fallback, getContract, http } from 'viem';
|
|
7
|
-
import { mnemonicToAccount } from 'viem/accounts';
|
|
6
|
+
import { createPublicClient, createWalletClient, fallback, getContract, http } from '@spalladino/viem';
|
|
7
|
+
import { mnemonicToAccount } from '@spalladino/viem/accounts';
|
|
8
8
|
|
|
9
9
|
export async function sequencers(opts: {
|
|
10
10
|
command: 'list' | 'add' | 'remove' | 'who-next' | 'flush';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LogFn } from '@aztec/foundation/log';
|
|
2
2
|
|
|
3
|
-
import { generatePrivateKey, privateKeyToAccount } from 'viem/accounts';
|
|
3
|
+
import { generatePrivateKey, privateKeyToAccount } from '@spalladino/viem/accounts';
|
|
4
4
|
|
|
5
5
|
import { prettyPrintJSON } from '../../utils/commands.js';
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@ import { EthAddress } from '@aztec/aztec.js';
|
|
|
2
2
|
import { RegistryContract, type ViemPublicClient, createEthereumChain } from '@aztec/ethereum';
|
|
3
3
|
import type { LogFn } from '@aztec/foundation/log';
|
|
4
4
|
|
|
5
|
-
import { createPublicClient, fallback, http } from 'viem';
|
|
5
|
+
import { createPublicClient, fallback, http } from '@spalladino/viem';
|
|
6
6
|
|
|
7
7
|
export async function getL1Addresses(
|
|
8
8
|
registryAddress: EthAddress,
|
|
@@ -3,7 +3,7 @@ import type { EthAddress } from '@aztec/foundation/eth-address';
|
|
|
3
3
|
import type { LogFn } from '@aztec/foundation/log';
|
|
4
4
|
import { TestERC20Abi } from '@aztec/l1-artifacts';
|
|
5
5
|
|
|
6
|
-
import { createPublicClient, fallback, getContract, http } from 'viem';
|
|
6
|
+
import { createPublicClient, fallback, getContract, http } from '@spalladino/viem';
|
|
7
7
|
|
|
8
8
|
import { prettyPrintJSON } from '../../utils/commands.js';
|
|
9
9
|
|
package/src/cmds/l1/index.ts
CHANGED
|
@@ -525,37 +525,5 @@ export function injectCommands(program: Command, log: LogFn, debugLogger: Logger
|
|
|
525
525
|
await advanceEpoch(options.l1RpcUrls, options.rpcUrl, log);
|
|
526
526
|
});
|
|
527
527
|
|
|
528
|
-
program
|
|
529
|
-
.command('prover-stats', { hidden: true })
|
|
530
|
-
.addOption(l1RpcUrlsOption)
|
|
531
|
-
.addOption(l1ChainIdOption)
|
|
532
|
-
.option('--start-block <number>', 'The L1 block number to start from', parseBigint, 1n)
|
|
533
|
-
.option('--end-block <number>', 'The last L1 block number to query', parseBigint)
|
|
534
|
-
.option('--batch-size <number>', 'The number of blocks to query in each batch', parseBigint, 100n)
|
|
535
|
-
.option('--proving-timeout <number>', 'Cutoff for proving time to consider a block', parseBigint)
|
|
536
|
-
.option('--l1-rollup-address <string>', 'Address of the rollup contract (required if node URL is not set)')
|
|
537
|
-
.option(
|
|
538
|
-
'--node-url <string>',
|
|
539
|
-
'JSON RPC URL of an Aztec node to retrieve the rollup contract address (required if L1 rollup address is not set)',
|
|
540
|
-
)
|
|
541
|
-
.option('--raw-logs', 'Output raw logs instead of aggregated stats')
|
|
542
|
-
.action(async options => {
|
|
543
|
-
const { proverStats } = await import('./prover_stats.js');
|
|
544
|
-
const { l1RpcUrls, chainId, l1RollupAddress, startBlock, endBlock, batchSize, nodeUrl, provingTimeout, rawLogs } =
|
|
545
|
-
options;
|
|
546
|
-
await proverStats({
|
|
547
|
-
l1RpcUrls,
|
|
548
|
-
chainId,
|
|
549
|
-
l1RollupAddress,
|
|
550
|
-
startBlock,
|
|
551
|
-
endBlock,
|
|
552
|
-
batchSize,
|
|
553
|
-
nodeUrl,
|
|
554
|
-
provingTimeout,
|
|
555
|
-
rawLogs,
|
|
556
|
-
log,
|
|
557
|
-
});
|
|
558
|
-
});
|
|
559
|
-
|
|
560
528
|
return program;
|
|
561
529
|
}
|
|
@@ -6,9 +6,9 @@ import { type LogFn, type Logger, createLogger } from '@aztec/foundation/log';
|
|
|
6
6
|
import { RollupAbi } from '@aztec/l1-artifacts';
|
|
7
7
|
import { createAztecNodeClient } from '@aztec/stdlib/interfaces/client';
|
|
8
8
|
|
|
9
|
+
import { createPublicClient, fallback, getAbiItem, getAddress, http } from '@spalladino/viem';
|
|
9
10
|
import chunk from 'lodash.chunk';
|
|
10
11
|
import groupBy from 'lodash.groupby';
|
|
11
|
-
import { createPublicClient, fallback, getAbiItem, getAddress, http } from 'viem';
|
|
12
12
|
|
|
13
13
|
export async function proverStats(opts: {
|
|
14
14
|
l1RpcUrls: string[];
|
|
@@ -2,7 +2,7 @@ import { createEthereumChain, createExtendedL1Client } from '@aztec/ethereum';
|
|
|
2
2
|
import type { LogFn } from '@aztec/foundation/log';
|
|
3
3
|
import { RollupAbi } from '@aztec/l1-artifacts/RollupAbi';
|
|
4
4
|
|
|
5
|
-
import { getContract } from 'viem';
|
|
5
|
+
import { getContract } from '@spalladino/viem';
|
|
6
6
|
|
|
7
7
|
import type { RollupCommandArgs } from './update_l1_validators.js';
|
|
8
8
|
|
|
@@ -14,8 +14,8 @@ import type { LogFn, Logger } from '@aztec/foundation/log';
|
|
|
14
14
|
import { RollupAbi, StakingAssetHandlerAbi } from '@aztec/l1-artifacts';
|
|
15
15
|
import { ZkPassportProofParams } from '@aztec/stdlib/zkpassport';
|
|
16
16
|
|
|
17
|
-
import { encodeFunctionData, formatEther, getContract } from 'viem';
|
|
18
|
-
import { generatePrivateKey, mnemonicToAccount, privateKeyToAccount } from 'viem/accounts';
|
|
17
|
+
import { encodeFunctionData, formatEther, getContract } from '@spalladino/viem';
|
|
18
|
+
import { generatePrivateKey, mnemonicToAccount, privateKeyToAccount } from '@spalladino/viem/accounts';
|
|
19
19
|
|
|
20
20
|
import { addLeadingHex } from '../../utils/aztec.js';
|
|
21
21
|
|
|
@@ -96,7 +96,7 @@ export async function addL1Validator({
|
|
|
96
96
|
|
|
97
97
|
const registrationTuple = await gse.makeRegistrationTuple(blsSecretKey);
|
|
98
98
|
|
|
99
|
-
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
|
|
99
|
+
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, { logger: debugLogger });
|
|
100
100
|
const proofParamsObj = ZkPassportProofParams.fromBuffer(proofParams);
|
|
101
101
|
const merkleProofArray = merkleProof.map(proof => addLeadingHex(proof));
|
|
102
102
|
|
|
@@ -172,7 +172,7 @@ export async function addL1ValidatorViaRollup({
|
|
|
172
172
|
|
|
173
173
|
const registrationTuple = await gse.makeRegistrationTuple(blsSecretKey);
|
|
174
174
|
|
|
175
|
-
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
|
|
175
|
+
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, { logger: debugLogger });
|
|
176
176
|
|
|
177
177
|
const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
|
|
178
178
|
to: rollupAddress.toString(),
|
|
@@ -219,7 +219,7 @@ export async function removeL1Validator({
|
|
|
219
219
|
const account = getAccount(privateKey, mnemonic);
|
|
220
220
|
const chain = createEthereumChain(rpcUrls, chainId);
|
|
221
221
|
const l1Client = createExtendedL1Client(rpcUrls, account, chain.chainInfo);
|
|
222
|
-
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
|
|
222
|
+
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, { logger: debugLogger });
|
|
223
223
|
|
|
224
224
|
dualLog(`Removing validator ${validatorAddress.toString()} from rollup ${rollupAddress.toString()}`);
|
|
225
225
|
const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
|
|
@@ -246,7 +246,7 @@ export async function pruneRollup({
|
|
|
246
246
|
const account = getAccount(privateKey, mnemonic);
|
|
247
247
|
const chain = createEthereumChain(rpcUrls, chainId);
|
|
248
248
|
const l1Client = createExtendedL1Client(rpcUrls, account, chain.chainInfo);
|
|
249
|
-
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, debugLogger);
|
|
249
|
+
const l1TxUtils = createL1TxUtilsFromViemWallet(l1Client, { logger: debugLogger });
|
|
250
250
|
|
|
251
251
|
dualLog(`Trying prune`);
|
|
252
252
|
const { receipt } = await l1TxUtils.sendAndMonitorTransaction({
|
|
@@ -308,7 +308,7 @@ export async function debugRollup({ rpcUrls, chainId, rollupAddress, log }: Roll
|
|
|
308
308
|
log(`Committee: ${committee?.map(v => v.toString()).join(', ')}`);
|
|
309
309
|
const archive = await rollup.archive();
|
|
310
310
|
log(`Archive: ${archive}`);
|
|
311
|
-
const epochNum = await rollup.
|
|
311
|
+
const epochNum = await rollup.getCurrentEpochNumber();
|
|
312
312
|
log(`Current epoch: ${epochNum}`);
|
|
313
313
|
const slot = await rollup.getSlotNumber();
|
|
314
314
|
log(`Current slot: ${slot}`);
|
|
@@ -11,6 +11,8 @@ import publicIncludeMetrics from '../../public_include_metric_prefixes.json' wit
|
|
|
11
11
|
import { cachedFetch } from './cached_fetch.js';
|
|
12
12
|
import { enrichEthAddressVar, enrichVar } from './enrich_env.js';
|
|
13
13
|
|
|
14
|
+
const SNAPSHOTS_URL = 'https://aztec-labs-snapshots.com';
|
|
15
|
+
|
|
14
16
|
const defaultDBMapSizeKb = 128 * 1_024 * 1_024; // 128 GB
|
|
15
17
|
const tbMapSizeKb = 1_024 * 1_024 * 1_024; // 1 TB
|
|
16
18
|
|
|
@@ -25,7 +27,7 @@ export type L2ChainConfig = L1ContractsConfig &
|
|
|
25
27
|
seqMinTxsPerBlock: number;
|
|
26
28
|
seqMaxTxsPerBlock: number;
|
|
27
29
|
realProofs: boolean;
|
|
28
|
-
|
|
30
|
+
snapshotsUrls: string[];
|
|
29
31
|
autoUpdate: SharedNodeConfig['autoUpdate'];
|
|
30
32
|
autoUpdateUrl?: string;
|
|
31
33
|
maxTxPoolSize: number;
|
|
@@ -99,7 +101,7 @@ export const stagingIgnitionL2ChainConfig: L2ChainConfig = {
|
|
|
99
101
|
seqMinTxsPerBlock: 0,
|
|
100
102
|
seqMaxTxsPerBlock: 0,
|
|
101
103
|
realProofs: true,
|
|
102
|
-
|
|
104
|
+
snapshotsUrls: [`${SNAPSHOTS_URL}/staging-ignition/`],
|
|
103
105
|
autoUpdate: 'config-and-version',
|
|
104
106
|
autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-ignition.json',
|
|
105
107
|
maxTxPoolSize: 100_000_000, // 100MB
|
|
@@ -180,7 +182,7 @@ export const stagingPublicL2ChainConfig: L2ChainConfig = {
|
|
|
180
182
|
seqMinTxsPerBlock: 0,
|
|
181
183
|
seqMaxTxsPerBlock: 20,
|
|
182
184
|
realProofs: true,
|
|
183
|
-
|
|
185
|
+
snapshotsUrls: [`${SNAPSHOTS_URL}/staging-public/`],
|
|
184
186
|
autoUpdate: 'config-and-version',
|
|
185
187
|
autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/staging-public.json',
|
|
186
188
|
publicIncludeMetrics,
|
|
@@ -233,7 +235,7 @@ export const testnetL2ChainConfig: L2ChainConfig = {
|
|
|
233
235
|
seqMinTxsPerBlock: 0,
|
|
234
236
|
seqMaxTxsPerBlock: 20,
|
|
235
237
|
realProofs: true,
|
|
236
|
-
|
|
238
|
+
snapshotsUrls: [`${SNAPSHOTS_URL}/testnet/`],
|
|
237
239
|
autoUpdate: 'config-and-version',
|
|
238
240
|
autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/testnet.json',
|
|
239
241
|
maxTxPoolSize: 100_000_000, // 100MB
|
|
@@ -289,7 +291,7 @@ export const ignitionL2ChainConfig: L2ChainConfig = {
|
|
|
289
291
|
seqMinTxsPerBlock: 0,
|
|
290
292
|
seqMaxTxsPerBlock: 0,
|
|
291
293
|
realProofs: true,
|
|
292
|
-
|
|
294
|
+
snapshotsUrls: [`${SNAPSHOTS_URL}/ignition/`],
|
|
293
295
|
autoUpdate: 'notify',
|
|
294
296
|
autoUpdateUrl: 'https://storage.googleapis.com/aztec-testnet/auto-update/ignition.json',
|
|
295
297
|
maxTxPoolSize: 100_000_000, // 100MB
|
|
@@ -424,7 +426,7 @@ export async function enrichEnvironmentWithChainConfig(networkName: NetworkNames
|
|
|
424
426
|
enrichVar('SEQ_MAX_TX_PER_BLOCK', config.seqMaxTxsPerBlock.toString());
|
|
425
427
|
enrichVar('PROVER_REAL_PROOFS', config.realProofs.toString());
|
|
426
428
|
enrichVar('PXE_PROVER_ENABLED', config.realProofs.toString());
|
|
427
|
-
enrichVar('
|
|
429
|
+
enrichVar('SYNC_SNAPSHOTS_URLS', config.snapshotsUrls.join(','));
|
|
428
430
|
enrichVar('P2P_MAX_TX_POOL_SIZE', config.maxTxPoolSize.toString());
|
|
429
431
|
|
|
430
432
|
enrichVar('DATA_STORE_MAP_SIZE_KB', config.dbMapSizeKb.toString());
|
|
@@ -93,7 +93,7 @@ export async function enrichEnvironmentWithNetworkConfig(networkName: NetworkNam
|
|
|
93
93
|
|
|
94
94
|
enrichVar('BOOTSTRAP_NODES', networkConfig.bootnodes.join(','));
|
|
95
95
|
enrichVar('L1_CHAIN_ID', String(networkConfig.l1ChainId));
|
|
96
|
-
enrichVar('
|
|
96
|
+
enrichVar('SYNC_SNAPSHOTS_URLS', networkConfig.snapshots.join(','));
|
|
97
97
|
|
|
98
98
|
enrichEthAddressVar('REGISTRY_CONTRACT_ADDRESS', networkConfig.registryAddress.toString());
|
|
99
99
|
if (networkConfig.feeAssetHandlerAddress) {
|
package/src/utils/aztec.ts
CHANGED
|
@@ -63,7 +63,7 @@ export async function deployAztecContracts(
|
|
|
63
63
|
debugLogger: Logger,
|
|
64
64
|
): Promise<DeployL1ContractsReturnType> {
|
|
65
65
|
const { createEthereumChain, deployL1Contracts } = await import('@aztec/ethereum');
|
|
66
|
-
const { mnemonicToAccount, privateKeyToAccount } = await import('viem/accounts');
|
|
66
|
+
const { mnemonicToAccount, privateKeyToAccount } = await import('@spalladino/viem/accounts');
|
|
67
67
|
|
|
68
68
|
const account = !privateKey
|
|
69
69
|
? mnemonicToAccount(mnemonic!, { addressIndex: mnemonicIndex })
|
|
@@ -112,7 +112,7 @@ export async function deployNewRollupContracts(
|
|
|
112
112
|
logger: Logger,
|
|
113
113
|
): Promise<{ rollup: RollupContract; slashFactoryAddress: EthAddress }> {
|
|
114
114
|
const { createEthereumChain, deployRollupForUpgrade, createExtendedL1Client } = await import('@aztec/ethereum');
|
|
115
|
-
const { mnemonicToAccount, privateKeyToAccount } = await import('viem/accounts');
|
|
115
|
+
const { mnemonicToAccount, privateKeyToAccount } = await import('@spalladino/viem/accounts');
|
|
116
116
|
const { getVKTreeRoot } = await import('@aztec/noir-protocol-circuits-types/vk-tree');
|
|
117
117
|
|
|
118
118
|
const account = !privateKey
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { LogFn, Logger } from '@aztec/foundation/log';
|
|
2
|
-
export declare function bootstrapNetwork(pxeUrl: string, l1Urls: string[], l1ChainId: string, l1PrivateKey: `0x${string}` | undefined, l1Mnemonic: string, addressIndex: number, json: boolean, log: LogFn, debugLog: Logger): Promise<void>;
|
|
3
|
-
//# sourceMappingURL=bootstrap_network.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap_network.d.ts","sourceRoot":"","sources":["../../../src/cmds/devnet/bootstrap_network.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAqB3D,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EAAE,EAChB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,KAAK,MAAM,EAAE,GAAG,SAAS,EACvC,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,KAAK,EACV,QAAQ,EAAE,MAAM,iBAkFjB"}
|