@aztec/aztec 0.85.0-alpha-testnet.1 → 0.85.0-nightly.20250417

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.
@@ -1 +1 @@
1
- {"version":3,"file":"start_archiver.d.ts","sourceRoot":"","sources":["../../../src/cli/cmds/start_archiver.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAIpB,MAAM,iBAAiB,CAAC;AAQzB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,KAAK,eAAe,EAA4C,MAAM,wBAAwB,CAAC;AAQxG,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC;AAEhD,oCAAoC;AACpC,wBAAsB,aAAa,CACjC,OAAO,EAAE,GAAG,EACZ,cAAc,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,EACvC,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC;IAAE,MAAM,EAAE,cAAc,GAAG,eAAe,CAAA;CAAE,CAAC,CAmCvD"}
1
+ {"version":3,"file":"start_archiver.d.ts","sourceRoot":"","sources":["../../../src/cli/cmds/start_archiver.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAIpB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,KAAK,eAAe,EAAsB,MAAM,wBAAwB,CAAC;AAQlF,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC;AAEhD,oCAAoC;AACpC,wBAAsB,aAAa,CACjC,OAAO,EAAE,GAAG,EACZ,cAAc,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,EACvC,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC;IAAE,MAAM,EAAE,cAAc,GAAG,eAAe,CAAA;CAAE,CAAC,CAmCvD"}
@@ -1,18 +1,14 @@
1
1
  import { Archiver, KVArchiverDataStore, archiverConfigMappings, getArchiverConfigFromEnv } from '@aztec/archiver';
2
2
  import { createLogger } from '@aztec/aztec.js';
3
- import { blobSinkConfigMapping, createBlobSinkClient, getBlobSinkConfigFromEnv } from '@aztec/blob-sink/client';
4
- import { dataConfigMappings, getDataConfigFromEnv } from '@aztec/kv-store/config';
3
+ import { blobSinkConfigMapping, createBlobSinkClient } from '@aztec/blob-sink/client';
4
+ import { dataConfigMappings } from '@aztec/kv-store/config';
5
5
  import { createStore } from '@aztec/kv-store/lmdb-v2';
6
6
  import { ArchiverApiSchema } from '@aztec/stdlib/interfaces/server';
7
7
  import { getConfigEnvVars as getTelemetryClientConfig, initTelemetryClient } from '@aztec/telemetry-client';
8
8
  import { getL1Config } from '../get_l1_config.js';
9
9
  import { extractRelevantOptions } from '../util.js';
10
10
  /** Starts a standalone archiver. */ export async function startArchiver(options, signalHandlers, services) {
11
- const envConfig = {
12
- ...getArchiverConfigFromEnv(),
13
- ...getDataConfigFromEnv(),
14
- ...getBlobSinkConfigFromEnv()
15
- };
11
+ const envConfig = getArchiverConfigFromEnv();
16
12
  const cliOptions = extractRelevantOptions(options, {
17
13
  ...archiverConfigMappings,
18
14
  ...dataConfigMappings,
@@ -36,7 +32,9 @@ import { extractRelevantOptions } from '../util.js';
36
32
  const store = await createStore('archiver', KVArchiverDataStore.SCHEMA_VERSION, archiverConfig, storeLog);
37
33
  const archiverStore = new KVArchiverDataStore(store, archiverConfig.maxLogs);
38
34
  const telemetry = initTelemetryClient(getTelemetryClientConfig());
39
- const blobSinkClient = createBlobSinkClient(archiverConfig);
35
+ const blobSinkClient = createBlobSinkClient(archiverConfig, {
36
+ logger: createLogger('archiver:blob-sink:client')
37
+ });
40
38
  const archiver = await Archiver.createAndSync(archiverConfig, archiverStore, {
41
39
  telemetry,
42
40
  blobSinkClient
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/aztec",
3
- "version": "0.85.0-alpha-testnet.1",
3
+ "version": "0.85.0-nightly.20250417",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/index.js"
@@ -19,8 +19,6 @@
19
19
  "start:debug": "node --inspect=0.0.0.0:9221 --no-warnings ./dest/bin",
20
20
  "start:sandbox": "ETHEREUM_HOSTS=http://0.0.0.0:8545/ && yarn start start --sandbox",
21
21
  "clean": "rm -rf ./dest .tsbuildinfo",
22
- "formatting": "run -T prettier --check ./src && run -T eslint ./src",
23
- "formatting:fix": "run -T eslint --fix ./src && run -T prettier -w ./src",
24
22
  "build:dev": "tsc -b --watch",
25
23
  "test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}",
26
24
  "run:example:token": "LOG_LEVEL='verbose' node ./dest/examples/token.js"
@@ -29,35 +27,35 @@
29
27
  "../package.common.json"
30
28
  ],
31
29
  "dependencies": {
32
- "@aztec/accounts": "0.85.0-alpha-testnet.1",
33
- "@aztec/archiver": "0.85.0-alpha-testnet.1",
34
- "@aztec/aztec-faucet": "0.85.0-alpha-testnet.1",
35
- "@aztec/aztec-node": "0.85.0-alpha-testnet.1",
36
- "@aztec/aztec.js": "0.85.0-alpha-testnet.1",
37
- "@aztec/bb-prover": "0.85.0-alpha-testnet.1",
38
- "@aztec/bb.js": "0.85.0-alpha-testnet.1",
39
- "@aztec/blob-sink": "0.85.0-alpha-testnet.1",
40
- "@aztec/bot": "0.85.0-alpha-testnet.1",
41
- "@aztec/builder": "0.85.0-alpha-testnet.1",
42
- "@aztec/cli": "0.85.0-alpha-testnet.1",
43
- "@aztec/cli-wallet": "0.85.0-alpha-testnet.1",
44
- "@aztec/constants": "0.85.0-alpha-testnet.1",
45
- "@aztec/entrypoints": "0.85.0-alpha-testnet.1",
46
- "@aztec/ethereum": "0.85.0-alpha-testnet.1",
47
- "@aztec/foundation": "0.85.0-alpha-testnet.1",
48
- "@aztec/kv-store": "0.85.0-alpha-testnet.1",
49
- "@aztec/noir-contracts.js": "0.85.0-alpha-testnet.1",
50
- "@aztec/noir-protocol-circuits-types": "0.85.0-alpha-testnet.1",
51
- "@aztec/p2p": "0.85.0-alpha-testnet.1",
52
- "@aztec/p2p-bootstrap": "0.85.0-alpha-testnet.1",
53
- "@aztec/protocol-contracts": "0.85.0-alpha-testnet.1",
54
- "@aztec/prover-client": "0.85.0-alpha-testnet.1",
55
- "@aztec/prover-node": "0.85.0-alpha-testnet.1",
56
- "@aztec/pxe": "0.85.0-alpha-testnet.1",
57
- "@aztec/stdlib": "0.85.0-alpha-testnet.1",
58
- "@aztec/telemetry-client": "0.85.0-alpha-testnet.1",
59
- "@aztec/txe": "0.85.0-alpha-testnet.1",
60
- "@aztec/world-state": "0.85.0-alpha-testnet.1",
30
+ "@aztec/accounts": "0.85.0-nightly.20250417",
31
+ "@aztec/archiver": "0.85.0-nightly.20250417",
32
+ "@aztec/aztec-faucet": "0.85.0-nightly.20250417",
33
+ "@aztec/aztec-node": "0.85.0-nightly.20250417",
34
+ "@aztec/aztec.js": "0.85.0-nightly.20250417",
35
+ "@aztec/bb-prover": "0.85.0-nightly.20250417",
36
+ "@aztec/bb.js": "0.85.0-nightly.20250417",
37
+ "@aztec/blob-sink": "0.85.0-nightly.20250417",
38
+ "@aztec/bot": "0.85.0-nightly.20250417",
39
+ "@aztec/builder": "0.85.0-nightly.20250417",
40
+ "@aztec/cli": "0.85.0-nightly.20250417",
41
+ "@aztec/cli-wallet": "0.85.0-nightly.20250417",
42
+ "@aztec/constants": "0.85.0-nightly.20250417",
43
+ "@aztec/entrypoints": "0.85.0-nightly.20250417",
44
+ "@aztec/ethereum": "0.85.0-nightly.20250417",
45
+ "@aztec/foundation": "0.85.0-nightly.20250417",
46
+ "@aztec/kv-store": "0.85.0-nightly.20250417",
47
+ "@aztec/noir-contracts.js": "0.85.0-nightly.20250417",
48
+ "@aztec/noir-protocol-circuits-types": "0.85.0-nightly.20250417",
49
+ "@aztec/p2p": "0.85.0-nightly.20250417",
50
+ "@aztec/p2p-bootstrap": "0.85.0-nightly.20250417",
51
+ "@aztec/protocol-contracts": "0.85.0-nightly.20250417",
52
+ "@aztec/prover-client": "0.85.0-nightly.20250417",
53
+ "@aztec/prover-node": "0.85.0-nightly.20250417",
54
+ "@aztec/pxe": "0.85.0-nightly.20250417",
55
+ "@aztec/stdlib": "0.85.0-nightly.20250417",
56
+ "@aztec/telemetry-client": "0.85.0-nightly.20250417",
57
+ "@aztec/txe": "0.85.0-nightly.20250417",
58
+ "@aztec/world-state": "0.85.0-nightly.20250417",
61
59
  "@types/chalk": "^2.2.0",
62
60
  "abitype": "^0.8.11",
63
61
  "chalk": "^5.3.0",
@@ -6,14 +6,9 @@ import {
6
6
  getArchiverConfigFromEnv,
7
7
  } from '@aztec/archiver';
8
8
  import { createLogger } from '@aztec/aztec.js';
9
- import {
10
- type BlobSinkConfig,
11
- blobSinkConfigMapping,
12
- createBlobSinkClient,
13
- getBlobSinkConfigFromEnv,
14
- } from '@aztec/blob-sink/client';
9
+ import { type BlobSinkConfig, blobSinkConfigMapping, createBlobSinkClient } from '@aztec/blob-sink/client';
15
10
  import type { NamespacedApiHandlers } from '@aztec/foundation/json-rpc/server';
16
- import { type DataStoreConfig, dataConfigMappings, getDataConfigFromEnv } from '@aztec/kv-store/config';
11
+ import { type DataStoreConfig, dataConfigMappings } from '@aztec/kv-store/config';
17
12
  import { createStore } from '@aztec/kv-store/lmdb-v2';
18
13
  import { ArchiverApiSchema } from '@aztec/stdlib/interfaces/server';
19
14
  import { getConfigEnvVars as getTelemetryClientConfig, initTelemetryClient } from '@aztec/telemetry-client';
@@ -29,7 +24,7 @@ export async function startArchiver(
29
24
  signalHandlers: (() => Promise<void>)[],
30
25
  services: NamespacedApiHandlers,
31
26
  ): Promise<{ config: ArchiverConfig & DataStoreConfig }> {
32
- const envConfig = { ...getArchiverConfigFromEnv(), ...getDataConfigFromEnv(), ...getBlobSinkConfigFromEnv() };
27
+ const envConfig = getArchiverConfigFromEnv();
33
28
  const cliOptions = extractRelevantOptions<ArchiverConfig & DataStoreConfig & BlobSinkConfig>(
34
29
  options,
35
30
  { ...archiverConfigMappings, ...dataConfigMappings, ...blobSinkConfigMapping },
@@ -57,7 +52,7 @@ export async function startArchiver(
57
52
  const archiverStore = new KVArchiverDataStore(store, archiverConfig.maxLogs);
58
53
 
59
54
  const telemetry = initTelemetryClient(getTelemetryClientConfig());
60
- const blobSinkClient = createBlobSinkClient(archiverConfig);
55
+ const blobSinkClient = createBlobSinkClient(archiverConfig, { logger: createLogger('archiver:blob-sink:client') });
61
56
  const archiver = await Archiver.createAndSync(archiverConfig, archiverStore, { telemetry, blobSinkClient }, true);
62
57
  services.archiver = [archiver, ArchiverApiSchema];
63
58
  signalHandlers.push(archiver.stop);