@aztec/aztec 0.87.3-nightly.20250529 → 0.87.4
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.
|
@@ -3,7 +3,6 @@ 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';
|
|
7
6
|
import { type PXEServiceConfig } from '@aztec/pxe/server';
|
|
8
7
|
import type { AztecNode } from '@aztec/stdlib/interfaces/client';
|
|
9
8
|
import type { PublicDataTreeLeaf } from '@aztec/stdlib/trees';
|
|
@@ -35,7 +34,6 @@ export declare function deployContractsToL1(aztecNodeConfig: AztecNodeConfig, hd
|
|
|
35
34
|
slashFactoryAddress?: import("@aztec/foundation/schemas").EthAddress | undefined;
|
|
36
35
|
feeAssetHandlerAddress?: import("@aztec/foundation/schemas").EthAddress | undefined;
|
|
37
36
|
stakingAssetHandlerAddress?: import("@aztec/foundation/schemas").EthAddress | undefined;
|
|
38
|
-
gseAddress?: import("@aztec/foundation/schemas").EthAddress | undefined;
|
|
39
37
|
} & {
|
|
40
38
|
rollupAddress: import("@aztec/foundation/schemas").EthAddress;
|
|
41
39
|
} & {
|
|
@@ -69,7 +67,6 @@ export declare function createSandbox(config: Partial<SandboxConfig> | undefined
|
|
|
69
67
|
export declare function createAztecNode(config?: Partial<AztecNodeConfig>, deps?: {
|
|
70
68
|
telemetry?: TelemetryClient;
|
|
71
69
|
blobSinkClient?: BlobSinkClientInterface;
|
|
72
|
-
dateProvider?: DateProvider;
|
|
73
70
|
}, options?: {
|
|
74
71
|
prefilledPublicData?: PublicDataTreeLeaf[];
|
|
75
72
|
}): 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;AAGjE,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;;;;GA2FtF;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,CAAA;CAAO,EACpF,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,7 +9,6 @@ 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';
|
|
13
12
|
import { getVKTreeRoot } from '@aztec/noir-protocol-circuits-types/vk-tree';
|
|
14
13
|
import { protocolContractTreeRoot } from '@aztec/protocol-contracts';
|
|
15
14
|
import { createPXEService, getPXEServiceConfig } from '@aztec/pxe/server';
|
|
@@ -91,7 +90,6 @@ const localAnvil = foundry;
|
|
|
91
90
|
] : [];
|
|
92
91
|
const { genesisArchiveRoot, prefilledPublicData, fundingNeeded } = await getGenesisValues(fundedAddresses);
|
|
93
92
|
let watcher = undefined;
|
|
94
|
-
const dateProvider = new TestDateProvider();
|
|
95
93
|
if (!aztecNodeConfig.p2pEnabled) {
|
|
96
94
|
const l1ContractAddresses = await deployContractsToL1(aztecNodeConfig, hdAccount, undefined, {
|
|
97
95
|
assumeProvenThroughBlockNumber: Number.MAX_SAFE_INTEGER,
|
|
@@ -112,7 +110,7 @@ const localAnvil = foundry;
|
|
|
112
110
|
});
|
|
113
111
|
watcher = new AnvilTestWatcher(new EthCheatCodes([
|
|
114
112
|
l1RpcUrl
|
|
115
|
-
]), l1ContractAddresses.rollupAddress, publicClient
|
|
113
|
+
]), l1ContractAddresses.rollupAddress, publicClient);
|
|
116
114
|
watcher.setIsSandbox(true);
|
|
117
115
|
await watcher.start();
|
|
118
116
|
}
|
|
@@ -121,8 +119,7 @@ const localAnvil = foundry;
|
|
|
121
119
|
const blobSinkClient = createBlobSinkClient();
|
|
122
120
|
const node = await createAztecNode(aztecNodeConfig, {
|
|
123
121
|
telemetry,
|
|
124
|
-
blobSinkClient
|
|
125
|
-
dateProvider
|
|
122
|
+
blobSinkClient
|
|
126
123
|
}, {
|
|
127
124
|
prefilledPublicData
|
|
128
125
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec",
|
|
3
|
-
"version": "0.87.
|
|
3
|
+
"version": "0.87.4",
|
|
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.4",
|
|
31
|
+
"@aztec/archiver": "0.87.4",
|
|
32
|
+
"@aztec/aztec-faucet": "0.87.4",
|
|
33
|
+
"@aztec/aztec-node": "0.87.4",
|
|
34
|
+
"@aztec/aztec.js": "0.87.4",
|
|
35
|
+
"@aztec/bb-prover": "0.87.4",
|
|
36
|
+
"@aztec/bb.js": "0.87.4",
|
|
37
|
+
"@aztec/blob-sink": "0.87.4",
|
|
38
|
+
"@aztec/bot": "0.87.4",
|
|
39
|
+
"@aztec/builder": "0.87.4",
|
|
40
|
+
"@aztec/cli": "0.87.4",
|
|
41
|
+
"@aztec/cli-wallet": "0.87.4",
|
|
42
|
+
"@aztec/constants": "0.87.4",
|
|
43
|
+
"@aztec/entrypoints": "0.87.4",
|
|
44
|
+
"@aztec/ethereum": "0.87.4",
|
|
45
|
+
"@aztec/foundation": "0.87.4",
|
|
46
|
+
"@aztec/kv-store": "0.87.4",
|
|
47
|
+
"@aztec/noir-contracts.js": "0.87.4",
|
|
48
|
+
"@aztec/noir-protocol-circuits-types": "0.87.4",
|
|
49
|
+
"@aztec/p2p": "0.87.4",
|
|
50
|
+
"@aztec/p2p-bootstrap": "0.87.4",
|
|
51
|
+
"@aztec/protocol-contracts": "0.87.4",
|
|
52
|
+
"@aztec/prover-client": "0.87.4",
|
|
53
|
+
"@aztec/prover-node": "0.87.4",
|
|
54
|
+
"@aztec/pxe": "0.87.4",
|
|
55
|
+
"@aztec/stdlib": "0.87.4",
|
|
56
|
+
"@aztec/telemetry-client": "0.87.4",
|
|
57
|
+
"@aztec/txe": "0.87.4",
|
|
58
|
+
"@aztec/world-state": "0.87.4",
|
|
59
59
|
"@types/chalk": "^2.2.0",
|
|
60
60
|
"abitype": "^0.8.11",
|
|
61
61
|
"chalk": "^5.3.0",
|
package/src/sandbox/sandbox.ts
CHANGED
|
@@ -15,7 +15,6 @@ 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';
|
|
19
18
|
import { getVKTreeRoot } from '@aztec/noir-protocol-circuits-types/vk-tree';
|
|
20
19
|
import { protocolContractTreeRoot } from '@aztec/protocol-contracts';
|
|
21
20
|
import { type PXEServiceConfig, createPXEService, getPXEServiceConfig } from '@aztec/pxe/server';
|
|
@@ -142,7 +141,6 @@ export async function createSandbox(config: Partial<SandboxConfig> = {}, userLog
|
|
|
142
141
|
const { genesisArchiveRoot, prefilledPublicData, fundingNeeded } = await getGenesisValues(fundedAddresses);
|
|
143
142
|
|
|
144
143
|
let watcher: AnvilTestWatcher | undefined = undefined;
|
|
145
|
-
const dateProvider = new TestDateProvider();
|
|
146
144
|
if (!aztecNodeConfig.p2pEnabled) {
|
|
147
145
|
const l1ContractAddresses = await deployContractsToL1(aztecNodeConfig, hdAccount, undefined, {
|
|
148
146
|
assumeProvenThroughBlockNumber: Number.MAX_SAFE_INTEGER,
|
|
@@ -161,12 +159,7 @@ export async function createSandbox(config: Partial<SandboxConfig> = {}, userLog
|
|
|
161
159
|
transport: fallback([httpViemTransport(l1RpcUrl)]) as any,
|
|
162
160
|
});
|
|
163
161
|
|
|
164
|
-
watcher = new AnvilTestWatcher(
|
|
165
|
-
new EthCheatCodes([l1RpcUrl]),
|
|
166
|
-
l1ContractAddresses.rollupAddress,
|
|
167
|
-
publicClient,
|
|
168
|
-
dateProvider,
|
|
169
|
-
);
|
|
162
|
+
watcher = new AnvilTestWatcher(new EthCheatCodes([l1RpcUrl]), l1ContractAddresses.rollupAddress, publicClient);
|
|
170
163
|
watcher.setIsSandbox(true);
|
|
171
164
|
await watcher.start();
|
|
172
165
|
}
|
|
@@ -174,11 +167,7 @@ export async function createSandbox(config: Partial<SandboxConfig> = {}, userLog
|
|
|
174
167
|
const telemetry = initTelemetryClient(getTelemetryClientConfig());
|
|
175
168
|
// Create a local blob sink client inside the sandbox, no http connectivity
|
|
176
169
|
const blobSinkClient = createBlobSinkClient();
|
|
177
|
-
const node = await createAztecNode(
|
|
178
|
-
aztecNodeConfig,
|
|
179
|
-
{ telemetry, blobSinkClient, dateProvider },
|
|
180
|
-
{ prefilledPublicData },
|
|
181
|
-
);
|
|
170
|
+
const node = await createAztecNode(aztecNodeConfig, { telemetry, blobSinkClient }, { prefilledPublicData });
|
|
182
171
|
const pxeServiceConfig = { proverEnabled: aztecNodeConfig.realProofs };
|
|
183
172
|
const pxe = await createAztecPXE(node, pxeServiceConfig);
|
|
184
173
|
|
|
@@ -211,7 +200,7 @@ export async function createSandbox(config: Partial<SandboxConfig> = {}, userLog
|
|
|
211
200
|
*/
|
|
212
201
|
export async function createAztecNode(
|
|
213
202
|
config: Partial<AztecNodeConfig> = {},
|
|
214
|
-
deps: { telemetry?: TelemetryClient; blobSinkClient?: BlobSinkClientInterface
|
|
203
|
+
deps: { telemetry?: TelemetryClient; blobSinkClient?: BlobSinkClientInterface } = {},
|
|
215
204
|
options: { prefilledPublicData?: PublicDataTreeLeaf[] } = {},
|
|
216
205
|
) {
|
|
217
206
|
// TODO(#12272): will clean this up. This is criminal.
|