@aztec/aztec 0.0.1-commit.b6e433891 → 0.0.1-commit.b8a057fa
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/bin/index.js +3 -1
- package/dest/cli/aztec_start_action.d.ts +1 -1
- package/dest/cli/aztec_start_action.d.ts.map +1 -1
- package/dest/cli/aztec_start_action.js +16 -24
- package/dest/cli/aztec_start_options.d.ts +2 -2
- package/dest/cli/aztec_start_options.d.ts.map +1 -1
- package/dest/cli/aztec_start_options.js +15 -15
- package/dest/cli/cmds/compile.d.ts +1 -1
- package/dest/cli/cmds/compile.d.ts.map +1 -1
- package/dest/cli/cmds/compile.js +32 -24
- package/dest/cli/cmds/profile.d.ts +1 -1
- package/dest/cli/cmds/profile.d.ts.map +1 -1
- package/dest/cli/cmds/profile.js +1 -1
- package/dest/cli/cmds/profile_gates.d.ts +2 -2
- package/dest/cli/cmds/profile_gates.d.ts.map +1 -1
- package/dest/cli/cmds/profile_gates.js +21 -3
- package/dest/cli/cmds/prover.d.ts +4 -0
- package/dest/cli/cmds/prover.d.ts.map +1 -0
- package/dest/cli/cmds/prover.js +24 -0
- package/dest/cli/cmds/standby.d.ts +30 -6
- package/dest/cli/cmds/standby.d.ts.map +1 -1
- package/dest/cli/cmds/standby.js +48 -5
- package/dest/cli/cmds/start_bot.d.ts +1 -1
- package/dest/cli/cmds/start_bot.d.ts.map +1 -1
- package/dest/cli/cmds/start_bot.js +8 -4
- package/dest/cli/cmds/start_node.d.ts +1 -1
- package/dest/cli/cmds/start_node.d.ts.map +1 -1
- package/dest/cli/cmds/start_node.js +22 -47
- package/dest/cli/cmds/start_prover_agent.d.ts +1 -1
- package/dest/cli/cmds/start_prover_agent.d.ts.map +1 -1
- package/dest/cli/cmds/start_prover_agent.js +5 -17
- package/dest/cli/cmds/start_prover_broker.d.ts +1 -1
- package/dest/cli/cmds/start_prover_broker.d.ts.map +1 -1
- package/dest/cli/cmds/start_prover_broker.js +11 -8
- package/dest/cli/cmds/start_txe.d.ts +2 -2
- package/dest/cli/cmds/start_txe.d.ts.map +1 -1
- package/dest/cli/cmds/start_txe.js +6 -5
- package/dest/cli/cmds/utils/artifacts.d.ts +6 -1
- package/dest/cli/cmds/utils/artifacts.d.ts.map +1 -1
- package/dest/cli/cmds/utils/collect_crate_dirs.d.ts +21 -0
- package/dest/cli/cmds/utils/collect_crate_dirs.d.ts.map +1 -0
- package/dest/cli/cmds/utils/collect_crate_dirs.js +114 -0
- package/dest/cli/cmds/utils/needs_recompile.d.ts +1 -1
- package/dest/cli/cmds/utils/needs_recompile.d.ts.map +1 -1
- package/dest/cli/cmds/utils/needs_recompile.js +9 -53
- package/dest/cli/cmds/utils/warn_if_aztec_version_mismatch.d.ts +4 -0
- package/dest/cli/cmds/utils/warn_if_aztec_version_mismatch.d.ts.map +1 -0
- package/dest/cli/cmds/utils/warn_if_aztec_version_mismatch.js +61 -0
- package/dest/cli/util.d.ts +10 -5
- package/dest/cli/util.d.ts.map +1 -1
- package/dest/cli/util.js +26 -53
- package/dest/examples/token.js +3 -3
- package/dest/local-network/auth_registry.d.ts +5 -0
- package/dest/local-network/auth_registry.d.ts.map +1 -0
- package/dest/local-network/auth_registry.js +17 -0
- package/dest/local-network/banana_fpc.d.ts +3 -2
- package/dest/local-network/banana_fpc.d.ts.map +1 -1
- package/dest/local-network/banana_fpc.js +11 -7
- package/dest/local-network/local-network.d.ts +8 -32
- package/dest/local-network/local-network.d.ts.map +1 -1
- package/dest/local-network/local-network.js +52 -73
- package/dest/testing/cheat_codes.d.ts +17 -23
- package/dest/testing/cheat_codes.d.ts.map +1 -1
- package/dest/testing/cheat_codes.js +17 -43
- package/dest/testing/epoch_test_settler.d.ts +2 -2
- package/dest/testing/epoch_test_settler.d.ts.map +1 -1
- package/dest/testing/epoch_test_settler.js +6 -25
- package/dest/testing/index.d.ts +1 -2
- package/dest/testing/index.d.ts.map +1 -1
- package/dest/testing/index.js +0 -1
- package/dest/testing/token_allowed_setup.d.ts +9 -4
- package/dest/testing/token_allowed_setup.d.ts.map +1 -1
- package/dest/testing/token_allowed_setup.js +12 -8
- package/package.json +34 -33
- package/scripts/add_crate.sh +11 -60
- package/scripts/aztec.sh +6 -2
- package/scripts/init.sh +5 -5
- package/scripts/new.sh +2 -2
- package/scripts/setup_workspace.sh +3 -2
- package/scripts/templates/blank/contract/Nargo.toml +6 -0
- package/scripts/templates/blank/contract/src/main.nr +10 -0
- package/scripts/templates/blank/test/Nargo.toml +7 -0
- package/scripts/templates/blank/test/src/lib.nr +11 -0
- package/scripts/templates/counter/contract/Nargo.toml +7 -0
- package/scripts/templates/counter/contract/src/main.nr +48 -0
- package/scripts/templates/counter/test/Nargo.toml +7 -0
- package/scripts/templates/counter/test/src/lib.nr +32 -0
- package/src/bin/index.ts +3 -1
- package/src/cli/aztec_start_action.ts +14 -17
- package/src/cli/aztec_start_options.ts +22 -23
- package/src/cli/cmds/compile.ts +37 -23
- package/src/cli/cmds/profile.ts +2 -1
- package/src/cli/cmds/profile_gates.ts +20 -4
- package/src/cli/cmds/prover.ts +42 -0
- package/src/cli/cmds/standby.ts +59 -7
- package/src/cli/cmds/start_bot.ts +9 -6
- package/src/cli/cmds/start_node.ts +29 -39
- package/src/cli/cmds/start_prover_agent.ts +5 -8
- package/src/cli/cmds/start_prover_broker.ts +10 -11
- package/src/cli/cmds/start_txe.ts +7 -5
- package/src/cli/cmds/utils/artifacts.ts +5 -0
- package/src/cli/cmds/utils/collect_crate_dirs.ts +118 -0
- package/src/cli/cmds/utils/needs_recompile.ts +8 -61
- package/src/cli/cmds/utils/warn_if_aztec_version_mismatch.ts +76 -0
- package/src/cli/util.ts +27 -68
- package/src/examples/token.ts +3 -3
- package/src/local-network/auth_registry.ts +19 -0
- package/src/local-network/banana_fpc.ts +12 -8
- package/src/local-network/local-network.ts +56 -83
- package/src/testing/cheat_codes.ts +18 -49
- package/src/testing/epoch_test_settler.ts +8 -31
- package/src/testing/index.ts +0 -1
- package/src/testing/token_allowed_setup.ts +15 -8
- package/dest/cli/cmds/start_archiver.d.ts +0 -9
- package/dest/cli/cmds/start_archiver.d.ts.map +0 -1
- package/dest/cli/cmds/start_archiver.js +0 -48
- package/dest/testing/anvil_test_watcher.d.ts +0 -42
- package/dest/testing/anvil_test_watcher.d.ts.map +0 -1
- package/dest/testing/anvil_test_watcher.js +0 -181
- package/src/cli/cmds/start_archiver.ts +0 -50
- package/src/testing/anvil_test_watcher.ts +0 -210
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { readdir, stat } from 'fs/promises';
|
|
2
|
+
import { join } from 'path';
|
|
3
|
+
|
|
4
|
+
import { collectCrateDirs } from './collect_crate_dirs.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Returns true if recompilation is needed: either no artifacts exist in target/ or any .nr or Nargo.toml source file
|
|
@@ -16,7 +17,10 @@ export async function needsRecompile(): Promise<boolean> {
|
|
|
16
17
|
return true;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
// Git deps are pinned to a specific tag in Nargo.toml and nargo always fetches an exact tag, so their contents never
|
|
21
|
+
// change without Nargo.toml itself changing — and Nargo.toml is already tracked as a source file. Hence we can
|
|
22
|
+
// safely ignore checking source files of git deps.
|
|
23
|
+
const crateDirs = await collectCrateDirs('.', { skipGitDeps: true });
|
|
20
24
|
return hasNewerSourceFile(crateDirs, oldestArtifactMs);
|
|
21
25
|
}
|
|
22
26
|
|
|
@@ -49,63 +53,6 @@ async function getOldestArtifactModificationTime(targetDir: string): Promise<num
|
|
|
49
53
|
return oldest;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
|
-
/**
|
|
53
|
-
* Recursively collects crate directories starting from startCrateDir by following path-based dependencies declared in
|
|
54
|
-
* Nargo.toml files. Git-based deps are ignored (they only change when Nargo.toml itself is modified since the deps are
|
|
55
|
-
* tagged).
|
|
56
|
-
*/
|
|
57
|
-
async function collectCrateDirs(startCrateDir: string): Promise<string[]> {
|
|
58
|
-
// We have a set of visited dirs we check against when entering a new dir because we could stumble upon a directory
|
|
59
|
-
// multiple times in case multiple deps shared a dep (e.g. dep A and dep B both sharing dep C).
|
|
60
|
-
const visited = new Set<string>();
|
|
61
|
-
|
|
62
|
-
async function visit(crateDir: string): Promise<void> {
|
|
63
|
-
const absDir = resolve(crateDir);
|
|
64
|
-
if (visited.has(absDir)) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
visited.add(absDir);
|
|
68
|
-
|
|
69
|
-
// Every dep is its own crate and every crate needs to have Nargo.toml defined in the root so we try to load it and
|
|
70
|
-
// error out if it's not the case.
|
|
71
|
-
const tomlPath = join(absDir, 'Nargo.toml');
|
|
72
|
-
const content = await readFile(tomlPath, 'utf-8').catch(() => {
|
|
73
|
-
throw new Error(`Incorrectly defined dependency. Nargo.toml not found in ${absDir}`);
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
const parsed = TOML.parse(content) as Record<string, any>;
|
|
77
|
-
|
|
78
|
-
const members = (parsed.workspace as Record<string, any>)?.members as string[] | undefined;
|
|
79
|
-
|
|
80
|
-
// A Nargo.toml is either a workspace root (has workspace.members) or a single crate (has dependencies).
|
|
81
|
-
if (Array.isArray(members)) {
|
|
82
|
-
// The crate is a workspace root and has members defined so we visit the members
|
|
83
|
-
for (const member of members) {
|
|
84
|
-
const memberPath = resolve(absDir, member);
|
|
85
|
-
await visit(memberPath);
|
|
86
|
-
}
|
|
87
|
-
} else {
|
|
88
|
-
// The crate is not a workspace root so we check for dependencies
|
|
89
|
-
const deps = (parsed.dependencies as Record<string, any>) ?? {};
|
|
90
|
-
for (const dep of Object.values(deps)) {
|
|
91
|
-
if (dep && typeof dep === 'object' && typeof dep.path === 'string') {
|
|
92
|
-
const depPath = resolve(absDir, dep.path);
|
|
93
|
-
const s = await stat(depPath);
|
|
94
|
-
if (!s.isDirectory()) {
|
|
95
|
-
throw new Error(
|
|
96
|
-
`Dependency path "${dep.path}" in ${tomlPath} resolves to ${depPath} which is not a directory`,
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
await visit(depPath);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
await visit(startCrateDir);
|
|
106
|
-
return [...visited];
|
|
107
|
-
}
|
|
108
|
-
|
|
109
56
|
/**
|
|
110
57
|
* Walks crate dirs looking for .nr and Nargo.toml files newer than thresholdMs. Short-circuits on the first match.
|
|
111
58
|
*/
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { LogFn } from '@aztec/foundation/log';
|
|
2
|
+
import { DEV_VERSION, getPackageVersion } from '@aztec/stdlib/update-checker';
|
|
3
|
+
|
|
4
|
+
import TOML from '@iarna/toml';
|
|
5
|
+
import { readFile } from 'fs/promises';
|
|
6
|
+
import { join } from 'path';
|
|
7
|
+
|
|
8
|
+
import { collectCrateDirs } from './collect_crate_dirs.js';
|
|
9
|
+
|
|
10
|
+
/** Returns true if the given git URL points to the AztecProtocol/aztec-nr repository. */
|
|
11
|
+
function isAztecNrGitUrl(gitUrl: string): boolean {
|
|
12
|
+
let url: URL;
|
|
13
|
+
try {
|
|
14
|
+
url = new URL(gitUrl);
|
|
15
|
+
} catch {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
if (url.hostname !== 'github.com') {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
const repoPath = url.pathname
|
|
22
|
+
.replace(/^\//, '')
|
|
23
|
+
.replace(/\.git$/, '')
|
|
24
|
+
.replace(/\/$/, '');
|
|
25
|
+
return repoPath === 'AztecProtocol/aztec-nr';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** Warns if any aztec-nr git dependency in a crate's Nargo.toml has a tag that doesn't match the CLI version. */
|
|
29
|
+
export async function warnIfAztecVersionMismatch(log: LogFn, cliVersion?: string): Promise<void> {
|
|
30
|
+
const version = cliVersion ?? getPackageVersion();
|
|
31
|
+
if (version === DEV_VERSION) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const expectedTag = `v${version}`;
|
|
36
|
+
const mismatches: { file: string; depName: string; tag: string }[] = [];
|
|
37
|
+
|
|
38
|
+
const crateDirs = await collectCrateDirs('.', { skipGitDeps: true });
|
|
39
|
+
|
|
40
|
+
for (const dir of crateDirs) {
|
|
41
|
+
const tomlPath = join(dir, 'Nargo.toml');
|
|
42
|
+
let content: string;
|
|
43
|
+
try {
|
|
44
|
+
content = await readFile(tomlPath, 'utf-8');
|
|
45
|
+
} catch {
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const parsed = TOML.parse(content) as Record<string, any>;
|
|
50
|
+
const deps = (parsed.dependencies as Record<string, any>) ?? {};
|
|
51
|
+
|
|
52
|
+
for (const [depName, dep] of Object.entries(deps)) {
|
|
53
|
+
// Skip non-object deps (e.g. malformed entries) and anything that isn't a tagged git dep.
|
|
54
|
+
if (!dep || typeof dep !== 'object' || typeof dep.git !== 'string' || typeof dep.tag !== 'string') {
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
// Only flag deps that are sourced from the aztec-nr repo.
|
|
58
|
+
if (!isAztecNrGitUrl(dep.git)) {
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
if (dep.tag !== expectedTag) {
|
|
62
|
+
mismatches.push({ file: tomlPath, depName, tag: dep.tag });
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (mismatches.length > 0) {
|
|
68
|
+
const details = mismatches.map(m => ` ${m.file} — ${m.depName} (${m.tag})`).join('\n');
|
|
69
|
+
log(
|
|
70
|
+
`WARNING: Aztec dependency version mismatch detected.\n` +
|
|
71
|
+
`The following aztec-nr dependencies do not match the CLI version (${expectedTag}):\n` +
|
|
72
|
+
`${details}\n\n` +
|
|
73
|
+
`See https://docs.aztec.network/errors/9 for how to update your dependencies.`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
}
|
package/src/cli/util.ts
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import type { AztecNodeConfig } from '@aztec/aztec-node';
|
|
2
2
|
import type { AccountManager } from '@aztec/aztec.js/wallet';
|
|
3
|
-
import {
|
|
4
|
-
import { RegistryContract } from '@aztec/ethereum/contracts';
|
|
5
|
-
import type { ViemClient } from '@aztec/ethereum/types';
|
|
6
|
-
import type { ConfigMappingsType, NetworkNames } from '@aztec/foundation/config';
|
|
3
|
+
import type { ConfigMappingsType } from '@aztec/foundation/config';
|
|
7
4
|
import { jsonStringify } from '@aztec/foundation/json-rpc';
|
|
8
|
-
import {
|
|
5
|
+
import type { LogFn } from '@aztec/foundation/log';
|
|
9
6
|
import type { ProverConfig } from '@aztec/stdlib/interfaces/server';
|
|
10
|
-
import { type VersionCheck, getPackageVersion } from '@aztec/stdlib/update-checker';
|
|
11
7
|
import type { EmbeddedWallet } from '@aztec/wallets/embedded';
|
|
12
8
|
|
|
13
9
|
import chalk from 'chalk';
|
|
14
10
|
import type { Command } from 'commander';
|
|
15
|
-
import type { Hex } from 'viem';
|
|
16
11
|
|
|
17
12
|
import { type AztecStartOption, aztecStartOptions } from './aztec_start_options.js';
|
|
18
13
|
|
|
@@ -51,6 +46,24 @@ export function isShuttingDown(): boolean {
|
|
|
51
46
|
return shutdownPromise !== undefined;
|
|
52
47
|
}
|
|
53
48
|
|
|
49
|
+
/**
|
|
50
|
+
* Stops the node's subsystems (via the registered signal handlers) without exiting the process, leaving
|
|
51
|
+
* the HTTP health server listening so K8s liveness/readiness probes keep passing. Unlike {@link shutdown}
|
|
52
|
+
* this deliberately does not latch `shutdownPromise` or call `process.exit`; instead it re-arms
|
|
53
|
+
* SIGTERM/SIGINT so a later K8s pod deletion still terminates the wound-down pod with a clean exit.
|
|
54
|
+
*/
|
|
55
|
+
export async function softShutdown(logFn: LogFn, signalHandlers: Array<() => Promise<void>>): Promise<void> {
|
|
56
|
+
logFn('Canonical rollup upgrade detected: stopping subsystems, health server stays up.', {
|
|
57
|
+
exitCode: ExitCode.ROLLUP_UPGRADE,
|
|
58
|
+
});
|
|
59
|
+
await Promise.allSettled(signalHandlers.map(fn => fn()));
|
|
60
|
+
for (const sig of ['SIGTERM', 'SIGINT'] as const) {
|
|
61
|
+
process.removeAllListeners(sig);
|
|
62
|
+
process.once(sig, () => process.exit(ExitCode.ROLLUP_UPGRADE));
|
|
63
|
+
}
|
|
64
|
+
logFn('Subsystems stopped due to rollup upgrade. Health server remains active.');
|
|
65
|
+
}
|
|
66
|
+
|
|
54
67
|
export const installSignalHandlers = (logFn: LogFn, cb?: Array<() => Promise<void>>) => {
|
|
55
68
|
const signals = [
|
|
56
69
|
['SIGINT', ExitCode.SIGINT],
|
|
@@ -81,18 +94,18 @@ export async function createAccountLogs(accountManagers: AccountManager[], walle
|
|
|
81
94
|
if (registeredAccounts.find(a => a.item.equals(completeAddress.address))) {
|
|
82
95
|
accountLogStrings.push(` Address: ${completeAddress.address.toString()}\n`);
|
|
83
96
|
accountLogStrings.push(` Partial Address: ${completeAddress.partialAddress.toString()}\n`);
|
|
84
|
-
accountLogStrings.push(` Secret Key: ${
|
|
97
|
+
accountLogStrings.push(` Secret Key: ${accountManager.getSecretKey().toString()}\n`);
|
|
98
|
+
accountLogStrings.push(` Master nullifier public key hash: ${completeAddress.publicKeys.npkMHash.toString()}\n`);
|
|
99
|
+
accountLogStrings.push(` Master incoming viewing public key: ${completeAddress.publicKeys.ivpkM.toString()}\n\n`);
|
|
85
100
|
accountLogStrings.push(
|
|
86
|
-
` Master
|
|
101
|
+
` Master outgoing viewing public key hash: ${completeAddress.publicKeys.ovpkMHash.toString()}\n\n`,
|
|
87
102
|
);
|
|
103
|
+
accountLogStrings.push(` Master tagging public key hash: ${completeAddress.publicKeys.tpkMHash.toString()}\n\n`);
|
|
88
104
|
accountLogStrings.push(
|
|
89
|
-
` Master
|
|
105
|
+
` Master message-signing public key hash: ${completeAddress.publicKeys.mspkMHash.toString()}\n\n`,
|
|
90
106
|
);
|
|
91
107
|
accountLogStrings.push(
|
|
92
|
-
` Master
|
|
93
|
-
);
|
|
94
|
-
accountLogStrings.push(
|
|
95
|
-
` Master tagging public key: ${completeAddress.publicKeys.masterTaggingPublicKey.toString()}\n\n`,
|
|
108
|
+
` Master fallback public key hash: ${completeAddress.publicKeys.fbpkMHash.toString()}\n\n`,
|
|
96
109
|
);
|
|
97
110
|
}
|
|
98
111
|
}
|
|
@@ -291,60 +304,6 @@ export async function preloadCrsDataForServerSideProving(
|
|
|
291
304
|
}
|
|
292
305
|
}
|
|
293
306
|
|
|
294
|
-
export async function setupVersionChecker(
|
|
295
|
-
network: NetworkNames,
|
|
296
|
-
followsCanonicalRollup: boolean,
|
|
297
|
-
publicClient: ViemClient,
|
|
298
|
-
signalHandlers: Array<() => Promise<void>>,
|
|
299
|
-
cacheDir?: string,
|
|
300
|
-
): Promise<void> {
|
|
301
|
-
const networkConfig = await getNetworkConfig(network, cacheDir);
|
|
302
|
-
if (!networkConfig) {
|
|
303
|
-
return;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
const { VersionChecker } = await import('@aztec/stdlib/update-checker');
|
|
307
|
-
|
|
308
|
-
const logger = createLogger('version_check');
|
|
309
|
-
const registry = new RegistryContract(publicClient, networkConfig.registryAddress as Hex);
|
|
310
|
-
|
|
311
|
-
const checks: Array<VersionCheck> = [];
|
|
312
|
-
checks.push({
|
|
313
|
-
name: 'node',
|
|
314
|
-
currentVersion: getPackageVersion() ?? 'unknown',
|
|
315
|
-
getLatestVersion: async () => {
|
|
316
|
-
const cfg = await getNetworkConfig(network, cacheDir);
|
|
317
|
-
return cfg?.nodeVersion;
|
|
318
|
-
},
|
|
319
|
-
});
|
|
320
|
-
|
|
321
|
-
if (followsCanonicalRollup) {
|
|
322
|
-
const getLatestVersion = async () => {
|
|
323
|
-
const version = (await registry.getRollupVersions()).at(-1);
|
|
324
|
-
return version !== undefined ? String(version) : undefined;
|
|
325
|
-
};
|
|
326
|
-
const currentVersion = await getLatestVersion();
|
|
327
|
-
if (currentVersion !== undefined) {
|
|
328
|
-
checks.push({
|
|
329
|
-
name: 'rollup',
|
|
330
|
-
currentVersion,
|
|
331
|
-
getLatestVersion,
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
const checker = new VersionChecker(checks, 600_000, logger);
|
|
337
|
-
checker.on('newVersion', ({ name, latestVersion, currentVersion }) => {
|
|
338
|
-
if (isShuttingDown()) {
|
|
339
|
-
return;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
logger.warn(`New ${name} version available`, { latestVersion, currentVersion });
|
|
343
|
-
});
|
|
344
|
-
checker.start();
|
|
345
|
-
signalHandlers.push(() => checker.stop());
|
|
346
|
-
}
|
|
347
|
-
|
|
348
307
|
export function stringifyConfig(config: object): string {
|
|
349
308
|
return Object.entries(config)
|
|
350
309
|
.map(([key, value]) => `${key}=${jsonStringify(value)}`)
|
package/src/examples/token.ts
CHANGED
|
@@ -21,10 +21,10 @@ async function main() {
|
|
|
21
21
|
|
|
22
22
|
const wallet = await EmbeddedWallet.create(node);
|
|
23
23
|
|
|
24
|
-
// During local network setup we
|
|
24
|
+
// During local network setup we create a few initializerless accounts. Below we add them to our wallet.
|
|
25
25
|
const [aliceInitialAccountData, bobInitialAccountData] = await getInitialTestAccountsData();
|
|
26
|
-
await wallet.
|
|
27
|
-
await wallet.
|
|
26
|
+
await wallet.createSchnorrInitializerlessAccount(aliceInitialAccountData.secret, aliceInitialAccountData.salt);
|
|
27
|
+
await wallet.createSchnorrInitializerlessAccount(bobInitialAccountData.secret, bobInitialAccountData.salt);
|
|
28
28
|
|
|
29
29
|
const alice = aliceInitialAccountData.address;
|
|
30
30
|
const bob = bobInitialAccountData.address;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { WaitOpts } from '@aztec/aztec.js/contracts';
|
|
2
|
+
import { publishContractClass, publishInstance } from '@aztec/aztec.js/deployment';
|
|
3
|
+
import type { Wallet } from '@aztec/aztec.js/wallet';
|
|
4
|
+
import { AuthRegistryArtifact, getStandardAuthRegistry } from '@aztec/standard-contracts/auth-registry';
|
|
5
|
+
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
6
|
+
|
|
7
|
+
export async function publishStandardAuthRegistry(
|
|
8
|
+
wallet: Wallet,
|
|
9
|
+
from: AztecAddress,
|
|
10
|
+
waitOpts?: WaitOpts,
|
|
11
|
+
): Promise<void> {
|
|
12
|
+
const { instance, contractClass } = await getStandardAuthRegistry();
|
|
13
|
+
if (!(await wallet.getContractClassMetadata(contractClass.id)).isContractClassPubliclyRegistered) {
|
|
14
|
+
await (await publishContractClass(wallet, AuthRegistryArtifact)).send({ from, wait: waitOpts });
|
|
15
|
+
}
|
|
16
|
+
if (!(await wallet.getContractMetadata(instance.address)).isContractPublished) {
|
|
17
|
+
await publishInstance(wallet, instance).send({ from, wait: waitOpts });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type InitialAccountData, getInitialTestAccountsData } from '@aztec/accounts/testing';
|
|
2
|
+
import type { WaitOpts } from '@aztec/aztec.js/contracts';
|
|
2
3
|
import type { Wallet } from '@aztec/aztec.js/wallet';
|
|
3
4
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
4
5
|
import type { LogFn } from '@aztec/foundation/log';
|
|
@@ -45,19 +46,22 @@ export async function getBananaFPCAddress(initialAccounts: InitialAccountData[])
|
|
|
45
46
|
return (await getBananaFPCInstance(initialAccounts)).address;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
export async function setupBananaFPC(
|
|
49
|
+
export async function setupBananaFPC(
|
|
50
|
+
initialAccounts: InitialAccountData[],
|
|
51
|
+
wallet: Wallet,
|
|
52
|
+
log: LogFn,
|
|
53
|
+
waitOpts?: WaitOpts,
|
|
54
|
+
) {
|
|
49
55
|
const bananaCoinAddress = await getBananaCoinAddress(initialAccounts);
|
|
50
56
|
const admin = getBananaAdmin(initialAccounts);
|
|
51
57
|
const [{ contract: bananaCoin }, { contract: fpc }] = await Promise.all([
|
|
52
|
-
TokenContract.deploy(wallet, admin, bananaCoinArgs.name, bananaCoinArgs.symbol, bananaCoinArgs.decimal
|
|
53
|
-
|
|
54
|
-
contractAddressSalt: BANANA_COIN_SALT,
|
|
58
|
+
TokenContract.deploy(wallet, admin, bananaCoinArgs.name, bananaCoinArgs.symbol, bananaCoinArgs.decimal, {
|
|
59
|
+
salt: BANANA_COIN_SALT,
|
|
55
60
|
universalDeploy: true,
|
|
56
|
-
}),
|
|
57
|
-
FPCContract.deploy(wallet, bananaCoinAddress, admin).send({
|
|
61
|
+
}).send({ from: admin, wait: waitOpts }),
|
|
62
|
+
FPCContract.deploy(wallet, bananaCoinAddress, admin, { salt: BANANA_FPC_SALT, universalDeploy: true }).send({
|
|
58
63
|
from: admin,
|
|
59
|
-
|
|
60
|
-
universalDeploy: true,
|
|
64
|
+
wait: waitOpts,
|
|
61
65
|
}),
|
|
62
66
|
]);
|
|
63
67
|
|
|
@@ -1,51 +1,53 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --no-warnings
|
|
2
2
|
import { getInitialTestAccountsData } from '@aztec/accounts/testing';
|
|
3
|
-
import {
|
|
3
|
+
import { createAztecNodeService } from '@aztec/aztec-node';
|
|
4
4
|
import { type AztecNodeConfig, getConfigEnvVars } from '@aztec/aztec-node/config';
|
|
5
5
|
import { Fr } from '@aztec/aztec.js/fields';
|
|
6
6
|
import { createLogger } from '@aztec/aztec.js/log';
|
|
7
7
|
import { type BlobClientInterface, createBlobClient } from '@aztec/blob-client/client';
|
|
8
8
|
import { GENESIS_ARCHIVE_ROOT } from '@aztec/constants';
|
|
9
|
-
import { createEthereumChain } from '@aztec/ethereum/chain';
|
|
10
9
|
import { waitForPublicClient } from '@aztec/ethereum/client';
|
|
11
10
|
import { getL1ContractsConfigEnvVars } from '@aztec/ethereum/config';
|
|
12
11
|
import { NULL_KEY } from '@aztec/ethereum/constants';
|
|
13
12
|
import { deployAztecL1Contracts } from '@aztec/ethereum/deploy-aztec-l1-contracts';
|
|
14
|
-
import {
|
|
13
|
+
import type { L1ContractAddresses } from '@aztec/ethereum/l1-contract-addresses';
|
|
15
14
|
import { SecretValue } from '@aztec/foundation/config';
|
|
16
15
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
17
16
|
import type { LogFn } from '@aztec/foundation/log';
|
|
18
17
|
import { DateProvider, TestDateProvider } from '@aztec/foundation/timer';
|
|
19
18
|
import { getVKTreeRoot } from '@aztec/noir-protocol-circuits-types/vk-tree';
|
|
20
19
|
import { protocolContractsHash } from '@aztec/protocol-contracts';
|
|
21
|
-
import { SequencerState } from '@aztec/sequencer-client';
|
|
22
20
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
23
21
|
import type { ProvingJobBroker } from '@aztec/stdlib/interfaces/server';
|
|
24
|
-
import
|
|
22
|
+
import { TxStatus } from '@aztec/stdlib/tx';
|
|
23
|
+
import type { GenesisData } from '@aztec/stdlib/world-state';
|
|
25
24
|
import {
|
|
26
25
|
type TelemetryClient,
|
|
27
26
|
getConfigEnvVars as getTelemetryClientConfig,
|
|
28
27
|
initTelemetryClient,
|
|
29
28
|
} from '@aztec/telemetry-client';
|
|
30
29
|
import { EmbeddedWallet } from '@aztec/wallets/embedded';
|
|
31
|
-
import {
|
|
30
|
+
import { createFundedInitializerlessAccounts } from '@aztec/wallets/testing';
|
|
32
31
|
import { getGenesisValues } from '@aztec/world-state/testing';
|
|
33
32
|
|
|
34
|
-
import {
|
|
33
|
+
import type { Hex } from 'viem';
|
|
35
34
|
import { mnemonicToAccount, privateKeyToAddress } from 'viem/accounts';
|
|
36
35
|
import { foundry } from 'viem/chains';
|
|
37
36
|
|
|
38
37
|
import { createAccountLogs } from '../cli/util.js';
|
|
39
38
|
import { DefaultMnemonic } from '../mnemonic.js';
|
|
40
|
-
import { AnvilTestWatcher } from '../testing/anvil_test_watcher.js';
|
|
41
|
-
import { EpochTestSettler } from '../testing/epoch_test_settler.js';
|
|
42
39
|
import { getTokenAllowedSetupFunctions } from '../testing/token_allowed_setup.js';
|
|
40
|
+
import { publishStandardAuthRegistry } from './auth_registry.js';
|
|
43
41
|
import { getBananaFPCAddress, setupBananaFPC } from './banana_fpc.js';
|
|
44
42
|
import { getSponsoredFPCAddress } from './sponsored_fpc.js';
|
|
45
43
|
|
|
46
44
|
const logger = createLogger('local-network');
|
|
47
45
|
|
|
48
|
-
|
|
46
|
+
// The embedded wallet defaults to waiting for PROPOSED, which returns as soon as a tx lands in a
|
|
47
|
+
// proposed L2 block. That is flaky for the serial sandbox setup below: a proposed block can be
|
|
48
|
+
// pruned before its checkpoint is published, dropping a tx we already moved on from ("Tx dropped by
|
|
49
|
+
// P2P node"). Wait for the checkpoint so each setup tx is durably included before the next is sent.
|
|
50
|
+
const setupWaitOpts = { waitForStatus: TxStatus.CHECKPOINTED };
|
|
49
51
|
|
|
50
52
|
/**
|
|
51
53
|
* Function to deploy our L1 contracts to the local network L1
|
|
@@ -59,7 +61,7 @@ export async function deployContractsToL1(
|
|
|
59
61
|
genesisArchiveRoot?: Fr;
|
|
60
62
|
feeJuicePortalInitialBalance?: bigint;
|
|
61
63
|
} = {},
|
|
62
|
-
) {
|
|
64
|
+
): Promise<L1ContractAddresses> {
|
|
63
65
|
await waitForPublicClient(aztecNodeConfig);
|
|
64
66
|
|
|
65
67
|
const l1Contracts = await deployAztecL1Contracts(aztecNodeConfig.l1RpcUrls[0], privateKey, foundry.id, {
|
|
@@ -70,14 +72,14 @@ export async function deployContractsToL1(
|
|
|
70
72
|
genesisArchiveRoot: opts.genesisArchiveRoot ?? new Fr(GENESIS_ARCHIVE_ROOT),
|
|
71
73
|
feeJuicePortalInitialBalance: opts.feeJuicePortalInitialBalance,
|
|
72
74
|
aztecTargetCommitteeSize: 0, // no committee in local network
|
|
73
|
-
|
|
75
|
+
slasherEnabled: false, // no slashing in local network
|
|
74
76
|
realVerifier: false,
|
|
75
77
|
});
|
|
76
78
|
|
|
77
|
-
aztecNodeConfig
|
|
79
|
+
Object.assign(aztecNodeConfig, l1Contracts.l1ContractAddresses);
|
|
78
80
|
aztecNodeConfig.rollupVersion = l1Contracts.rollupVersion;
|
|
79
81
|
|
|
80
|
-
return
|
|
82
|
+
return l1Contracts.l1ContractAddresses;
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
/** Local network settings. */
|
|
@@ -107,10 +109,33 @@ export async function createLocalNetwork(config: Partial<LocalNetworkConfig> = {
|
|
|
107
109
|
// in the setup allowlist so FPC-based fee payments work out of the box.
|
|
108
110
|
const tokenAllowList = await getTokenAllowedSetupFunctions();
|
|
109
111
|
|
|
112
|
+
const envConfig = getConfigEnvVars();
|
|
110
113
|
const aztecNodeConfig: AztecNodeConfig = {
|
|
111
|
-
...
|
|
114
|
+
...envConfig,
|
|
112
115
|
...config,
|
|
116
|
+
skipOrphanProposedBlockPruning: true,
|
|
117
|
+
// The local network builds node config from env without a DATA_DIRECTORY, so the validator's
|
|
118
|
+
// local signing protection runs against an ephemeral store. That is acceptable for this dev
|
|
119
|
+
// network; production validators must persist it and fail-fast when the data directory is unset.
|
|
120
|
+
allowEphemeralSigningProtection: config.allowEphemeralSigningProtection ?? true,
|
|
113
121
|
txPublicSetupAllowListExtend: [...tokenAllowList, ...(config.txPublicSetupAllowListExtend ?? [])],
|
|
122
|
+
// The local network runs against anvil with no committee, so it defaults to the deterministic
|
|
123
|
+
// AutomineSequencer, which owns L1 time control (warps the dateProvider and L1 timestamps to slot
|
|
124
|
+
// boundaries as it builds), replacing the deleted AnvilTestWatcher. This remains true when p2p is
|
|
125
|
+
// enabled for local peer testing; local-network is not a mode for connecting to an existing network.
|
|
126
|
+
useAutomineSequencer: config.useAutomineSequencer ?? true,
|
|
127
|
+
// The AutomineSequencer owns epoch proving in the local network — it writes epoch out hashes to
|
|
128
|
+
// the L1 Outbox and advances the proven tip as checkpoints land, through the same serial queue as
|
|
129
|
+
// its builds — replacing the standalone EpochTestSettler that used to race the build loop.
|
|
130
|
+
automineEnableProveEpoch: config.automineEnableProveEpoch ?? true,
|
|
131
|
+
// Defaults for the local network / sandbox; callers (e.g. the CLI) may override. No real proving
|
|
132
|
+
// happens here — the AutomineSequencer synthetically settles epochs. Short epochs let it write out
|
|
133
|
+
// hashes quickly (so users can consume L2-to-L1 messages without a long wait), with a wider
|
|
134
|
+
// proof-submission window so the synthetic settler has headroom before the rollup would prune an
|
|
135
|
+
// unproven checkpoint.
|
|
136
|
+
realProofs: config.realProofs ?? false,
|
|
137
|
+
aztecEpochDuration: config.aztecEpochDuration ?? 4,
|
|
138
|
+
aztecProofSubmissionEpochs: config.aztecProofSubmissionEpochs ?? 2,
|
|
114
139
|
};
|
|
115
140
|
const hdAccount = mnemonicToAccount(config.l1Mnemonic || DefaultMnemonic);
|
|
116
141
|
if (
|
|
@@ -134,7 +159,7 @@ export async function createLocalNetwork(config: Partial<LocalNetworkConfig> = {
|
|
|
134
159
|
const initialAccounts = await (async () => {
|
|
135
160
|
if (config.testAccounts === true || config.testAccounts === undefined) {
|
|
136
161
|
if (aztecNodeConfig.p2pEnabled) {
|
|
137
|
-
userLog(`Not setting up test accounts
|
|
162
|
+
userLog(`Not setting up test accounts when p2p is enabled`);
|
|
138
163
|
} else {
|
|
139
164
|
userLog(`Setting up test accounts`);
|
|
140
165
|
return await getInitialTestAccountsData();
|
|
@@ -145,79 +170,27 @@ export async function createLocalNetwork(config: Partial<LocalNetworkConfig> = {
|
|
|
145
170
|
|
|
146
171
|
const bananaFPC = await getBananaFPCAddress(initialAccounts);
|
|
147
172
|
const sponsoredFPC = await getSponsoredFPCAddress();
|
|
148
|
-
const prefundAddresses = (aztecNodeConfig.prefundAddresses ?? []).map(a => AztecAddress.
|
|
173
|
+
const prefundAddresses = (aztecNodeConfig.prefundAddresses ?? []).map(a => AztecAddress.fromStringUnsafe(a));
|
|
149
174
|
const fundedAddresses = [
|
|
150
175
|
...initialAccounts.map(a => a.address),
|
|
151
176
|
...(initialAccounts.length ? [bananaFPC, sponsoredFPC] : []),
|
|
152
177
|
...prefundAddresses,
|
|
153
178
|
];
|
|
154
|
-
const { genesisArchiveRoot,
|
|
179
|
+
const { genesisArchiveRoot, genesis, fundingNeeded } = await getGenesisValues(fundedAddresses);
|
|
155
180
|
|
|
156
181
|
const dateProvider = new TestDateProvider();
|
|
157
182
|
|
|
158
|
-
let cheatcodes: EthCheatCodes | undefined;
|
|
159
|
-
let rollupAddress: EthAddress | undefined;
|
|
160
|
-
let watcher: AnvilTestWatcher | undefined;
|
|
161
183
|
if (!aztecNodeConfig.p2pEnabled) {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
{
|
|
166
|
-
genesisArchiveRoot,
|
|
167
|
-
feeJuicePortalInitialBalance: fundingNeeded,
|
|
168
|
-
},
|
|
169
|
-
));
|
|
170
|
-
|
|
171
|
-
const chain =
|
|
172
|
-
aztecNodeConfig.l1RpcUrls.length > 0
|
|
173
|
-
? createEthereumChain([l1RpcUrl], aztecNodeConfig.l1ChainId)
|
|
174
|
-
: { chainInfo: localAnvil };
|
|
175
|
-
|
|
176
|
-
const publicClient = createPublicClient({
|
|
177
|
-
chain: chain.chainInfo,
|
|
178
|
-
transport: fallback([httpViemTransport(l1RpcUrl)]) as any,
|
|
184
|
+
await deployContractsToL1(aztecNodeConfig, aztecNodeConfig.validatorPrivateKeys.getValue()[0], {
|
|
185
|
+
genesisArchiveRoot,
|
|
186
|
+
feeJuicePortalInitialBalance: fundingNeeded,
|
|
179
187
|
});
|
|
180
|
-
|
|
181
|
-
cheatcodes = new EthCheatCodes([l1RpcUrl], dateProvider);
|
|
182
|
-
|
|
183
|
-
watcher = new AnvilTestWatcher(cheatcodes, rollupAddress, publicClient, dateProvider);
|
|
184
|
-
watcher.setisLocalNetwork(true);
|
|
185
|
-
watcher.setIsMarkingAsProven(false); // Do not mark as proven in the watcher. It's marked in the epochTestSettler after the out hash is set.
|
|
186
|
-
|
|
187
|
-
await watcher.start();
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
const telemetry = await initTelemetryClient(getTelemetryClientConfig());
|
|
191
191
|
// Create a local blob client client inside the local network, no http connectivity
|
|
192
192
|
const blobClient = createBlobClient();
|
|
193
|
-
const node = await createAztecNode(aztecNodeConfig, { telemetry, blobClient, dateProvider }, {
|
|
194
|
-
|
|
195
|
-
// Now that the node is up, let the watcher check for pending txs so it can skip unfilled slots faster when
|
|
196
|
-
// transactions are waiting in the mempool. Also let it check if the sequencer is actively building, to avoid
|
|
197
|
-
// warping time out from under an in-progress block.
|
|
198
|
-
watcher?.setGetPendingTxCount(() => node.getPendingTxCount());
|
|
199
|
-
const sequencer = node.getSequencer()?.getSequencer();
|
|
200
|
-
if (sequencer) {
|
|
201
|
-
const idleStates: Set<string> = new Set([
|
|
202
|
-
SequencerState.STOPPED,
|
|
203
|
-
SequencerState.STOPPING,
|
|
204
|
-
SequencerState.IDLE,
|
|
205
|
-
SequencerState.SYNCHRONIZING,
|
|
206
|
-
]);
|
|
207
|
-
watcher?.setIsSequencerBuilding(() => !idleStates.has(sequencer.getState()));
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
let epochTestSettler: EpochTestSettler | undefined;
|
|
211
|
-
if (!aztecNodeConfig.p2pEnabled) {
|
|
212
|
-
epochTestSettler = new EpochTestSettler(
|
|
213
|
-
cheatcodes!,
|
|
214
|
-
rollupAddress!,
|
|
215
|
-
node.getBlockSource(),
|
|
216
|
-
logger.createChild('epoch-settler'),
|
|
217
|
-
{ pollingIntervalMs: 200 },
|
|
218
|
-
);
|
|
219
|
-
await epochTestSettler.start();
|
|
220
|
-
}
|
|
193
|
+
const node = await createAztecNode(aztecNodeConfig, { telemetry, blobClient, dateProvider }, { genesis });
|
|
221
194
|
|
|
222
195
|
if (initialAccounts.length) {
|
|
223
196
|
const wallet = await EmbeddedWallet.create(node, {
|
|
@@ -226,11 +199,14 @@ export async function createLocalNetwork(config: Partial<LocalNetworkConfig> = {
|
|
|
226
199
|
});
|
|
227
200
|
|
|
228
201
|
userLog('Setting up funded test accounts...');
|
|
229
|
-
const accountManagers = await
|
|
202
|
+
const accountManagers = await createFundedInitializerlessAccounts(wallet, initialAccounts);
|
|
230
203
|
const accLogs = await createAccountLogs(accountManagers, wallet);
|
|
231
204
|
userLog(accLogs.join(''));
|
|
232
205
|
|
|
233
|
-
|
|
206
|
+
userLog('Publishing standard AuthRegistry contract...');
|
|
207
|
+
await publishStandardAuthRegistry(wallet, initialAccounts[0].address, setupWaitOpts);
|
|
208
|
+
|
|
209
|
+
await setupBananaFPC(initialAccounts, wallet, userLog, setupWaitOpts);
|
|
234
210
|
|
|
235
211
|
userLog(`SponsoredFPC: ${await getSponsoredFPCAddress()}`);
|
|
236
212
|
|
|
@@ -240,8 +216,6 @@ export async function createLocalNetwork(config: Partial<LocalNetworkConfig> = {
|
|
|
240
216
|
|
|
241
217
|
const stop = async () => {
|
|
242
218
|
await node.stop();
|
|
243
|
-
await watcher?.stop();
|
|
244
|
-
await epochTestSettler?.stop();
|
|
245
219
|
};
|
|
246
220
|
|
|
247
221
|
return { node, stop };
|
|
@@ -259,16 +233,15 @@ export async function createAztecNode(
|
|
|
259
233
|
dateProvider?: DateProvider;
|
|
260
234
|
proverBroker?: ProvingJobBroker;
|
|
261
235
|
} = {},
|
|
262
|
-
options: {
|
|
236
|
+
options: { genesis?: GenesisData } = {},
|
|
263
237
|
) {
|
|
264
238
|
// TODO(#12272): will clean this up. This is criminal.
|
|
265
|
-
|
|
239
|
+
// Not sure why this was ever done. Will be fixed in A-989, A-991, A-990.
|
|
266
240
|
const aztecNodeConfig: AztecNodeConfig = {
|
|
267
|
-
...
|
|
241
|
+
...getConfigEnvVars(),
|
|
268
242
|
...config,
|
|
269
|
-
l1Contracts: { ...l1Contracts, ...config.l1Contracts },
|
|
270
243
|
};
|
|
271
|
-
const node = await
|
|
244
|
+
const node = await createAztecNodeService(
|
|
272
245
|
aztecNodeConfig,
|
|
273
246
|
{ ...deps, proverNodeDeps: { broker: deps.proverBroker } },
|
|
274
247
|
options,
|