@aztec/aztec 0.87.2 → 0.87.3-nightly.20250528
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/cli/cmds/start_prover_agent.d.ts.map +1 -1
- package/dest/cli/cmds/start_prover_agent.js +19 -0
- package/dest/sandbox/sandbox.d.ts +3 -0
- package/dest/sandbox/sandbox.d.ts.map +1 -1
- package/dest/sandbox/sandbox.js +5 -2
- package/package.json +30 -30
- package/src/cli/cmds/start_prover_agent.ts +13 -0
- package/src/sandbox/sandbox.ts +14 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start_prover_agent.d.ts","sourceRoot":"","sources":["../../../src/cli/cmds/start_prover_agent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"start_prover_agent.d.ts","sourceRoot":"","sources":["../../../src/cli/cmds/start_prover_agent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAgBnD,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,GAAG,EACZ,cAAc,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,EACvC,QAAQ,EAAE,qBAAqB,EAC/B,OAAO,EAAE,KAAK,iBA2Df"}
|
|
@@ -3,6 +3,7 @@ import { Agent, makeUndiciFetch } from '@aztec/foundation/json-rpc/undici';
|
|
|
3
3
|
import { buildServerCircuitProver } from '@aztec/prover-client';
|
|
4
4
|
import { InlineProofStore, ProvingAgent, createProvingJobBrokerClient, proverAgentConfigMappings } from '@aztec/prover-client/broker';
|
|
5
5
|
import { getProverNodeAgentConfigFromEnv } from '@aztec/prover-node';
|
|
6
|
+
import { ProverAgentApiSchema } from '@aztec/stdlib/interfaces/server';
|
|
6
7
|
import { initTelemetryClient, makeTracedFetch, telemetryClientConfigMappings } from '@aztec/telemetry-client';
|
|
7
8
|
import { extractRelevantOptions, preloadCrsDataForServerSideProving } from '../util.js';
|
|
8
9
|
import { getVersions } from '../versioning.js';
|
|
@@ -16,9 +17,11 @@ export async function startProverAgent(options, signalHandlers, services, userLo
|
|
|
16
17
|
...extractRelevantOptions(options, proverAgentConfigMappings, 'proverAgent')
|
|
17
18
|
};
|
|
18
19
|
if (config.realProofs && (!config.bbBinaryPath || !config.acvmBinaryPath)) {
|
|
20
|
+
userLog(`Requested real proving but no path to bb or acvm binaries provided`);
|
|
19
21
|
process.exit(1);
|
|
20
22
|
}
|
|
21
23
|
if (!config.proverBrokerUrl) {
|
|
24
|
+
userLog(`Missing prover broker URL. Pass --proverAgent.proverBrokerUrl <value>`);
|
|
22
25
|
process.exit(1);
|
|
23
26
|
}
|
|
24
27
|
await preloadCrsDataForServerSideProving(config, userLog);
|
|
@@ -34,6 +37,22 @@ export async function startProverAgent(options, signalHandlers, services, userLo
|
|
|
34
37
|
const prover = await buildServerCircuitProver(config, telemetry);
|
|
35
38
|
const proofStore = new InlineProofStore();
|
|
36
39
|
const agents = times(config.proverAgentCount, ()=>new ProvingAgent(broker, proofStore, prover, config.proverAgentProofTypes, config.proverAgentPollIntervalMs, telemetry));
|
|
40
|
+
// expose all agents as individual services
|
|
41
|
+
for(let i = 0; i < agents.length; i++){
|
|
42
|
+
services[`agent${i}`] = [
|
|
43
|
+
agents[i],
|
|
44
|
+
ProverAgentApiSchema,
|
|
45
|
+
()=>agents[i].getStatus().status !== 'stopped'
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
// shortcut in the most common case of having a single running agent
|
|
49
|
+
if (agents.length === 1) {
|
|
50
|
+
services[`agent`] = [
|
|
51
|
+
agents[0],
|
|
52
|
+
ProverAgentApiSchema,
|
|
53
|
+
()=>agents[0].getStatus().status !== 'stopped'
|
|
54
|
+
];
|
|
55
|
+
}
|
|
37
56
|
await Promise.all(agents.map((agent)=>agent.start()));
|
|
38
57
|
signalHandlers.push(async ()=>{
|
|
39
58
|
await Promise.all(agents.map((agent)=>agent.stop()));
|
|
@@ -3,6 +3,7 @@ import { type AztecNodeConfig, AztecNodeService } from '@aztec/aztec-node';
|
|
|
3
3
|
import { type BlobSinkClientInterface } from '@aztec/blob-sink/client';
|
|
4
4
|
import { Fr } from '@aztec/foundation/fields';
|
|
5
5
|
import { type LogFn } from '@aztec/foundation/log';
|
|
6
|
+
import { DateProvider } from '@aztec/foundation/timer';
|
|
6
7
|
import { type PXEServiceConfig } from '@aztec/pxe/server';
|
|
7
8
|
import type { AztecNode } from '@aztec/stdlib/interfaces/client';
|
|
8
9
|
import type { PublicDataTreeLeaf } from '@aztec/stdlib/trees';
|
|
@@ -34,6 +35,7 @@ export declare function deployContractsToL1(aztecNodeConfig: AztecNodeConfig, hd
|
|
|
34
35
|
slashFactoryAddress?: import("@aztec/foundation/schemas").EthAddress | undefined;
|
|
35
36
|
feeAssetHandlerAddress?: import("@aztec/foundation/schemas").EthAddress | undefined;
|
|
36
37
|
stakingAssetHandlerAddress?: import("@aztec/foundation/schemas").EthAddress | undefined;
|
|
38
|
+
gseAddress?: import("@aztec/foundation/schemas").EthAddress | undefined;
|
|
37
39
|
} & {
|
|
38
40
|
rollupAddress: import("@aztec/foundation/schemas").EthAddress;
|
|
39
41
|
} & {
|
|
@@ -67,6 +69,7 @@ export declare function createSandbox(config: Partial<SandboxConfig> | undefined
|
|
|
67
69
|
export declare function createAztecNode(config?: Partial<AztecNodeConfig>, deps?: {
|
|
68
70
|
telemetry?: TelemetryClient;
|
|
69
71
|
blobSinkClient?: BlobSinkClientInterface;
|
|
72
|
+
dateProvider?: DateProvider;
|
|
70
73
|
}, options?: {
|
|
71
74
|
prefilledPublicData?: PublicDataTreeLeaf[];
|
|
72
75
|
}): Promise<AztecNodeService>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../src/sandbox/sandbox.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,KAAK,eAAe,EAAE,gBAAgB,EAAoB,MAAM,mBAAmB,CAAC;AAE7F,OAAO,EAAE,KAAK,uBAAuB,EAAwB,MAAM,yBAAyB,CAAC;AAU7F,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,KAAK,KAAK,EAAgB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../src/sandbox/sandbox.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,KAAK,eAAe,EAAE,gBAAgB,EAAoB,MAAM,mBAAmB,CAAC;AAE7F,OAAO,EAAE,KAAK,uBAAuB,EAAwB,MAAM,yBAAyB,CAAC;AAU7F,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,KAAK,KAAK,EAAgB,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAoB,MAAM,yBAAyB,CAAC;AAGzE,OAAO,EAAE,KAAK,gBAAgB,EAAyC,MAAM,mBAAmB,CAAC;AACjG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,iBAAiB,EAA2D,MAAM,MAAM,CAAC;AAavH;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,SAAS,GAAG,iBAAiB,EACxC,oBAAoB,yCAAS,EAC7B,IAAI,GAAE;IACJ,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,EAAE,CAAC;IACxB,4BAA4B,CAAC,EAAE,MAAM,CAAC;CAClC;;;;;;;;;;;;;;;;;;;;;GA4BP;AAED,wBAAwB;AACxB,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG;IAC5C,0DAA0D;IAC1D,UAAU,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,KAAK,EAAE,OAAO,CAAC;IACf,uDAAuD;IACvD,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,YAAK,EAAE,OAAO,EAAE,KAAK;;;;GAqGtF;AAED;;;GAGG;AACH,wBAAsB,eAAe,CACnC,MAAM,GAAE,OAAO,CAAC,eAAe,CAAM,EACrC,IAAI,GAAE;IAAE,SAAS,CAAC,EAAE,eAAe,CAAC;IAAC,cAAc,CAAC,EAAE,uBAAuB,CAAC;IAAC,YAAY,CAAC,EAAE,YAAY,CAAA;CAAO,EACjH,OAAO,GAAE;IAAE,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAA;CAAO,6BAW7D;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,GAAE,OAAO,CAAC,gBAAgB,CAAM,mDAI3F"}
|
package/dest/sandbox/sandbox.js
CHANGED
|
@@ -9,6 +9,7 @@ import { GENESIS_ARCHIVE_ROOT } from '@aztec/constants';
|
|
|
9
9
|
import { NULL_KEY, createEthereumChain, deployL1Contracts, getL1ContractsConfigEnvVars, waitForPublicClient } from '@aztec/ethereum';
|
|
10
10
|
import { Fr } from '@aztec/foundation/fields';
|
|
11
11
|
import { createLogger } from '@aztec/foundation/log';
|
|
12
|
+
import { TestDateProvider } from '@aztec/foundation/timer';
|
|
12
13
|
import { getVKTreeRoot } from '@aztec/noir-protocol-circuits-types/vk-tree';
|
|
13
14
|
import { protocolContractTreeRoot } from '@aztec/protocol-contracts';
|
|
14
15
|
import { createPXEService, getPXEServiceConfig } from '@aztec/pxe/server';
|
|
@@ -90,6 +91,7 @@ const localAnvil = foundry;
|
|
|
90
91
|
] : [];
|
|
91
92
|
const { genesisArchiveRoot, prefilledPublicData, fundingNeeded } = await getGenesisValues(fundedAddresses);
|
|
92
93
|
let watcher = undefined;
|
|
94
|
+
const dateProvider = new TestDateProvider();
|
|
93
95
|
if (!aztecNodeConfig.p2pEnabled) {
|
|
94
96
|
const l1ContractAddresses = await deployContractsToL1(aztecNodeConfig, hdAccount, undefined, {
|
|
95
97
|
assumeProvenThroughBlockNumber: Number.MAX_SAFE_INTEGER,
|
|
@@ -110,7 +112,7 @@ const localAnvil = foundry;
|
|
|
110
112
|
});
|
|
111
113
|
watcher = new AnvilTestWatcher(new EthCheatCodes([
|
|
112
114
|
l1RpcUrl
|
|
113
|
-
]), l1ContractAddresses.rollupAddress, publicClient);
|
|
115
|
+
]), l1ContractAddresses.rollupAddress, publicClient, dateProvider);
|
|
114
116
|
watcher.setIsSandbox(true);
|
|
115
117
|
await watcher.start();
|
|
116
118
|
}
|
|
@@ -119,7 +121,8 @@ const localAnvil = foundry;
|
|
|
119
121
|
const blobSinkClient = createBlobSinkClient();
|
|
120
122
|
const node = await createAztecNode(aztecNodeConfig, {
|
|
121
123
|
telemetry,
|
|
122
|
-
blobSinkClient
|
|
124
|
+
blobSinkClient,
|
|
125
|
+
dateProvider
|
|
123
126
|
}, {
|
|
124
127
|
prefilledPublicData
|
|
125
128
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec",
|
|
3
|
-
"version": "0.87.
|
|
3
|
+
"version": "0.87.3-nightly.20250528",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js"
|
|
@@ -27,35 +27,35 @@
|
|
|
27
27
|
"../package.common.json"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aztec/accounts": "0.87.
|
|
31
|
-
"@aztec/archiver": "0.87.
|
|
32
|
-
"@aztec/aztec-faucet": "0.87.
|
|
33
|
-
"@aztec/aztec-node": "0.87.
|
|
34
|
-
"@aztec/aztec.js": "0.87.
|
|
35
|
-
"@aztec/bb-prover": "0.87.
|
|
36
|
-
"@aztec/bb.js": "0.87.
|
|
37
|
-
"@aztec/blob-sink": "0.87.
|
|
38
|
-
"@aztec/bot": "0.87.
|
|
39
|
-
"@aztec/builder": "0.87.
|
|
40
|
-
"@aztec/cli": "0.87.
|
|
41
|
-
"@aztec/cli-wallet": "0.87.
|
|
42
|
-
"@aztec/constants": "0.87.
|
|
43
|
-
"@aztec/entrypoints": "0.87.
|
|
44
|
-
"@aztec/ethereum": "0.87.
|
|
45
|
-
"@aztec/foundation": "0.87.
|
|
46
|
-
"@aztec/kv-store": "0.87.
|
|
47
|
-
"@aztec/noir-contracts.js": "0.87.
|
|
48
|
-
"@aztec/noir-protocol-circuits-types": "0.87.
|
|
49
|
-
"@aztec/p2p": "0.87.
|
|
50
|
-
"@aztec/p2p-bootstrap": "0.87.
|
|
51
|
-
"@aztec/protocol-contracts": "0.87.
|
|
52
|
-
"@aztec/prover-client": "0.87.
|
|
53
|
-
"@aztec/prover-node": "0.87.
|
|
54
|
-
"@aztec/pxe": "0.87.
|
|
55
|
-
"@aztec/stdlib": "0.87.
|
|
56
|
-
"@aztec/telemetry-client": "0.87.
|
|
57
|
-
"@aztec/txe": "0.87.
|
|
58
|
-
"@aztec/world-state": "0.87.
|
|
30
|
+
"@aztec/accounts": "0.87.3-nightly.20250528",
|
|
31
|
+
"@aztec/archiver": "0.87.3-nightly.20250528",
|
|
32
|
+
"@aztec/aztec-faucet": "0.87.3-nightly.20250528",
|
|
33
|
+
"@aztec/aztec-node": "0.87.3-nightly.20250528",
|
|
34
|
+
"@aztec/aztec.js": "0.87.3-nightly.20250528",
|
|
35
|
+
"@aztec/bb-prover": "0.87.3-nightly.20250528",
|
|
36
|
+
"@aztec/bb.js": "0.87.3-nightly.20250528",
|
|
37
|
+
"@aztec/blob-sink": "0.87.3-nightly.20250528",
|
|
38
|
+
"@aztec/bot": "0.87.3-nightly.20250528",
|
|
39
|
+
"@aztec/builder": "0.87.3-nightly.20250528",
|
|
40
|
+
"@aztec/cli": "0.87.3-nightly.20250528",
|
|
41
|
+
"@aztec/cli-wallet": "0.87.3-nightly.20250528",
|
|
42
|
+
"@aztec/constants": "0.87.3-nightly.20250528",
|
|
43
|
+
"@aztec/entrypoints": "0.87.3-nightly.20250528",
|
|
44
|
+
"@aztec/ethereum": "0.87.3-nightly.20250528",
|
|
45
|
+
"@aztec/foundation": "0.87.3-nightly.20250528",
|
|
46
|
+
"@aztec/kv-store": "0.87.3-nightly.20250528",
|
|
47
|
+
"@aztec/noir-contracts.js": "0.87.3-nightly.20250528",
|
|
48
|
+
"@aztec/noir-protocol-circuits-types": "0.87.3-nightly.20250528",
|
|
49
|
+
"@aztec/p2p": "0.87.3-nightly.20250528",
|
|
50
|
+
"@aztec/p2p-bootstrap": "0.87.3-nightly.20250528",
|
|
51
|
+
"@aztec/protocol-contracts": "0.87.3-nightly.20250528",
|
|
52
|
+
"@aztec/prover-client": "0.87.3-nightly.20250528",
|
|
53
|
+
"@aztec/prover-node": "0.87.3-nightly.20250528",
|
|
54
|
+
"@aztec/pxe": "0.87.3-nightly.20250528",
|
|
55
|
+
"@aztec/stdlib": "0.87.3-nightly.20250528",
|
|
56
|
+
"@aztec/telemetry-client": "0.87.3-nightly.20250528",
|
|
57
|
+
"@aztec/txe": "0.87.3-nightly.20250528",
|
|
58
|
+
"@aztec/world-state": "0.87.3-nightly.20250528",
|
|
59
59
|
"@types/chalk": "^2.2.0",
|
|
60
60
|
"abitype": "^0.8.11",
|
|
61
61
|
"chalk": "^5.3.0",
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
proverAgentConfigMappings,
|
|
12
12
|
} from '@aztec/prover-client/broker';
|
|
13
13
|
import { getProverNodeAgentConfigFromEnv } from '@aztec/prover-node';
|
|
14
|
+
import { ProverAgentApiSchema } from '@aztec/stdlib/interfaces/server';
|
|
14
15
|
import { initTelemetryClient, makeTracedFetch, telemetryClientConfigMappings } from '@aztec/telemetry-client';
|
|
15
16
|
|
|
16
17
|
import { extractRelevantOptions, preloadCrsDataForServerSideProving } from '../util.js';
|
|
@@ -33,10 +34,12 @@ export async function startProverAgent(
|
|
|
33
34
|
};
|
|
34
35
|
|
|
35
36
|
if (config.realProofs && (!config.bbBinaryPath || !config.acvmBinaryPath)) {
|
|
37
|
+
userLog(`Requested real proving but no path to bb or acvm binaries provided`);
|
|
36
38
|
process.exit(1);
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
if (!config.proverBrokerUrl) {
|
|
42
|
+
userLog(`Missing prover broker URL. Pass --proverAgent.proverBrokerUrl <value>`);
|
|
40
43
|
process.exit(1);
|
|
41
44
|
}
|
|
42
45
|
|
|
@@ -61,6 +64,16 @@ export async function startProverAgent(
|
|
|
61
64
|
),
|
|
62
65
|
);
|
|
63
66
|
|
|
67
|
+
// expose all agents as individual services
|
|
68
|
+
for (let i = 0; i < agents.length; i++) {
|
|
69
|
+
services[`agent${i}`] = [agents[i], ProverAgentApiSchema, () => agents[i].getStatus().status !== 'stopped'];
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// shortcut in the most common case of having a single running agent
|
|
73
|
+
if (agents.length === 1) {
|
|
74
|
+
services[`agent`] = [agents[0], ProverAgentApiSchema, () => agents[0].getStatus().status !== 'stopped'];
|
|
75
|
+
}
|
|
76
|
+
|
|
64
77
|
await Promise.all(agents.map(agent => agent.start()));
|
|
65
78
|
|
|
66
79
|
signalHandlers.push(async () => {
|
package/src/sandbox/sandbox.ts
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
} from '@aztec/ethereum';
|
|
16
16
|
import { Fr } from '@aztec/foundation/fields';
|
|
17
17
|
import { type LogFn, createLogger } from '@aztec/foundation/log';
|
|
18
|
+
import { DateProvider, TestDateProvider } from '@aztec/foundation/timer';
|
|
18
19
|
import { getVKTreeRoot } from '@aztec/noir-protocol-circuits-types/vk-tree';
|
|
19
20
|
import { protocolContractTreeRoot } from '@aztec/protocol-contracts';
|
|
20
21
|
import { type PXEServiceConfig, createPXEService, getPXEServiceConfig } from '@aztec/pxe/server';
|
|
@@ -141,6 +142,7 @@ export async function createSandbox(config: Partial<SandboxConfig> = {}, userLog
|
|
|
141
142
|
const { genesisArchiveRoot, prefilledPublicData, fundingNeeded } = await getGenesisValues(fundedAddresses);
|
|
142
143
|
|
|
143
144
|
let watcher: AnvilTestWatcher | undefined = undefined;
|
|
145
|
+
const dateProvider = new TestDateProvider();
|
|
144
146
|
if (!aztecNodeConfig.p2pEnabled) {
|
|
145
147
|
const l1ContractAddresses = await deployContractsToL1(aztecNodeConfig, hdAccount, undefined, {
|
|
146
148
|
assumeProvenThroughBlockNumber: Number.MAX_SAFE_INTEGER,
|
|
@@ -159,7 +161,12 @@ export async function createSandbox(config: Partial<SandboxConfig> = {}, userLog
|
|
|
159
161
|
transport: fallback([httpViemTransport(l1RpcUrl)]) as any,
|
|
160
162
|
});
|
|
161
163
|
|
|
162
|
-
watcher = new AnvilTestWatcher(
|
|
164
|
+
watcher = new AnvilTestWatcher(
|
|
165
|
+
new EthCheatCodes([l1RpcUrl]),
|
|
166
|
+
l1ContractAddresses.rollupAddress,
|
|
167
|
+
publicClient,
|
|
168
|
+
dateProvider,
|
|
169
|
+
);
|
|
163
170
|
watcher.setIsSandbox(true);
|
|
164
171
|
await watcher.start();
|
|
165
172
|
}
|
|
@@ -167,7 +174,11 @@ export async function createSandbox(config: Partial<SandboxConfig> = {}, userLog
|
|
|
167
174
|
const telemetry = initTelemetryClient(getTelemetryClientConfig());
|
|
168
175
|
// Create a local blob sink client inside the sandbox, no http connectivity
|
|
169
176
|
const blobSinkClient = createBlobSinkClient();
|
|
170
|
-
const node = await createAztecNode(
|
|
177
|
+
const node = await createAztecNode(
|
|
178
|
+
aztecNodeConfig,
|
|
179
|
+
{ telemetry, blobSinkClient, dateProvider },
|
|
180
|
+
{ prefilledPublicData },
|
|
181
|
+
);
|
|
171
182
|
const pxeServiceConfig = { proverEnabled: aztecNodeConfig.realProofs };
|
|
172
183
|
const pxe = await createAztecPXE(node, pxeServiceConfig);
|
|
173
184
|
|
|
@@ -200,7 +211,7 @@ export async function createSandbox(config: Partial<SandboxConfig> = {}, userLog
|
|
|
200
211
|
*/
|
|
201
212
|
export async function createAztecNode(
|
|
202
213
|
config: Partial<AztecNodeConfig> = {},
|
|
203
|
-
deps: { telemetry?: TelemetryClient; blobSinkClient?: BlobSinkClientInterface } = {},
|
|
214
|
+
deps: { telemetry?: TelemetryClient; blobSinkClient?: BlobSinkClientInterface; dateProvider?: DateProvider } = {},
|
|
204
215
|
options: { prefilledPublicData?: PublicDataTreeLeaf[] } = {},
|
|
205
216
|
) {
|
|
206
217
|
// TODO(#12272): will clean this up. This is criminal.
|