@aztec/blob-client 4.0.0-nightly.20260108 → 4.0.0-nightly.20260110
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/README.md +1 -1
- package/dest/archive/config.js +1 -1
- package/dest/archive/instrumentation.d.ts +1 -1
- package/dest/archive/instrumentation.d.ts.map +1 -1
- package/dest/archive/instrumentation.js +4 -13
- package/package.json +7 -7
- package/src/archive/config.ts +1 -1
- package/src/archive/instrumentation.ts +4 -13
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ URL for uploading blobs to a file store.
|
|
|
31
31
|
**L1 Consensus Host URLs** (`L1_CONSENSUS_HOST_URLS`):
|
|
32
32
|
Beacon node URLs for fetching recent blobs directly from L1.
|
|
33
33
|
|
|
34
|
-
**Archive API URL** (`
|
|
34
|
+
**Archive API URL** (`BLOB_ARCHIVE_API_URL`):
|
|
35
35
|
Blobscan or similar archive API for historical blob data.
|
|
36
36
|
|
|
37
37
|
### File Store Connectivity Testing
|
package/dest/archive/config.js
CHANGED
|
@@ -2,7 +2,7 @@ import { l1ReaderConfigMappings } from '@aztec/ethereum/l1-reader';
|
|
|
2
2
|
import { pickConfigMappings } from '@aztec/foundation/config';
|
|
3
3
|
export const blobArchiveApiConfigMappings = {
|
|
4
4
|
archiveApiUrl: {
|
|
5
|
-
env: '
|
|
5
|
+
env: 'BLOB_ARCHIVE_API_URL',
|
|
6
6
|
description: 'The URL of the archive API'
|
|
7
7
|
},
|
|
8
8
|
...pickConfigMappings(l1ReaderConfigMappings, [
|
|
@@ -8,4 +8,4 @@ export declare class BlobArchiveClientInstrumentation {
|
|
|
8
8
|
incRequest(type: 'blocks' | 'blobs', status: number): void;
|
|
9
9
|
incRetrievedBlobs(count: number): void;
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5zdHJ1bWVudGF0aW9uLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXJjaGl2ZS9pbnN0cnVtZW50YXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUF1QixLQUFLLGVBQWUsRUFBc0IsTUFBTSx5QkFBeUIsQ0FBQztBQUV4RyxxQkFBYSxnQ0FBZ0M7SUFPekMsT0FBTyxDQUFDLFFBQVE7SUFObEIsT0FBTyxDQUFDLG1CQUFtQixDQUFnQjtJQUMzQyxPQUFPLENBQUMsa0JBQWtCLENBQWdCO0lBQzFDLE9BQU8sQ0FBQyxjQUFjLENBQWdCO0lBRXRDLFlBQ0UsTUFBTSxFQUFFLGVBQWUsRUFDZixRQUFRLEVBQUUsTUFBTSxFQUN4QixJQUFJLEVBQUUsTUFBTSxFQVFiO0lBRUQsVUFBVSxDQUFDLElBQUksRUFBRSxRQUFRLEdBQUcsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLFFBTWxEO0lBRUQsaUJBQWlCLENBQUMsS0FBSyxFQUFFLE1BQU0sUUFFOUI7Q0FDRiJ9
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../src/archive/instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../src/archive/instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,eAAe,EAAsB,MAAM,yBAAyB,CAAC;AAExG,qBAAa,gCAAgC;IAOzC,OAAO,CAAC,QAAQ;IANlB,OAAO,CAAC,mBAAmB,CAAgB;IAC3C,OAAO,CAAC,kBAAkB,CAAgB;IAC1C,OAAO,CAAC,cAAc,CAAgB;IAEtC,YACE,MAAM,EAAE,eAAe,EACf,QAAQ,EAAE,MAAM,EACxB,IAAI,EAAE,MAAM,EAQb;IAED,UAAU,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,EAAE,MAAM,EAAE,MAAM,QAMlD;IAED,iBAAiB,CAAC,KAAK,EAAE,MAAM,QAE9B;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Attributes, Metrics
|
|
1
|
+
import { Attributes, Metrics } from '@aztec/telemetry-client';
|
|
2
2
|
export class BlobArchiveClientInstrumentation {
|
|
3
3
|
httpHost;
|
|
4
4
|
blockRequestCounter;
|
|
@@ -7,18 +7,9 @@ export class BlobArchiveClientInstrumentation {
|
|
|
7
7
|
constructor(client, httpHost, name){
|
|
8
8
|
this.httpHost = httpHost;
|
|
9
9
|
const meter = client.getMeter(name);
|
|
10
|
-
this.blockRequestCounter = meter.createUpDownCounter(Metrics.BLOB_SINK_ARCHIVE_BLOCK_REQUEST_COUNT
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
});
|
|
14
|
-
this.blobRequestCounter = meter.createUpDownCounter(Metrics.BLOB_SINK_ARCHIVE_BLOB_REQUEST_COUNT, {
|
|
15
|
-
description: 'Number of requests made to retrieve blobs from the blob archive',
|
|
16
|
-
valueType: ValueType.INT
|
|
17
|
-
});
|
|
18
|
-
this.retrievedBlobs = meter.createUpDownCounter(Metrics.BLOB_SINK_ARCHIVE_BLOB_COUNT, {
|
|
19
|
-
description: 'Number of blobs retrieved from the blob archive',
|
|
20
|
-
valueType: ValueType.INT
|
|
21
|
-
});
|
|
10
|
+
this.blockRequestCounter = meter.createUpDownCounter(Metrics.BLOB_SINK_ARCHIVE_BLOCK_REQUEST_COUNT);
|
|
11
|
+
this.blobRequestCounter = meter.createUpDownCounter(Metrics.BLOB_SINK_ARCHIVE_BLOB_REQUEST_COUNT);
|
|
12
|
+
this.retrievedBlobs = meter.createUpDownCounter(Metrics.BLOB_SINK_ARCHIVE_BLOB_COUNT);
|
|
22
13
|
}
|
|
23
14
|
incRequest(type, status) {
|
|
24
15
|
const counter = type === 'blocks' ? this.blockRequestCounter : this.blobRequestCounter;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/blob-client",
|
|
3
|
-
"version": "4.0.0-nightly.
|
|
3
|
+
"version": "4.0.0-nightly.20260110",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": "./dest/client/bin/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@aztec/blob-lib": "4.0.0-nightly.
|
|
60
|
-
"@aztec/ethereum": "4.0.0-nightly.
|
|
61
|
-
"@aztec/foundation": "4.0.0-nightly.
|
|
62
|
-
"@aztec/kv-store": "4.0.0-nightly.
|
|
63
|
-
"@aztec/stdlib": "4.0.0-nightly.
|
|
64
|
-
"@aztec/telemetry-client": "4.0.0-nightly.
|
|
59
|
+
"@aztec/blob-lib": "4.0.0-nightly.20260110",
|
|
60
|
+
"@aztec/ethereum": "4.0.0-nightly.20260110",
|
|
61
|
+
"@aztec/foundation": "4.0.0-nightly.20260110",
|
|
62
|
+
"@aztec/kv-store": "4.0.0-nightly.20260110",
|
|
63
|
+
"@aztec/stdlib": "4.0.0-nightly.20260110",
|
|
64
|
+
"@aztec/telemetry-client": "4.0.0-nightly.20260110",
|
|
65
65
|
"express": "^4.21.2",
|
|
66
66
|
"snappy": "^7.2.2",
|
|
67
67
|
"source-map-support": "^0.5.21",
|
package/src/archive/config.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type BlobArchiveApiConfig = {
|
|
|
7
7
|
|
|
8
8
|
export const blobArchiveApiConfigMappings: ConfigMappingsType<BlobArchiveApiConfig> = {
|
|
9
9
|
archiveApiUrl: {
|
|
10
|
-
env: '
|
|
10
|
+
env: 'BLOB_ARCHIVE_API_URL',
|
|
11
11
|
description: 'The URL of the archive API',
|
|
12
12
|
},
|
|
13
13
|
...pickConfigMappings(l1ReaderConfigMappings, ['l1ChainId']),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Attributes, Metrics, type TelemetryClient, type UpDownCounter
|
|
1
|
+
import { Attributes, Metrics, type TelemetryClient, type UpDownCounter } from '@aztec/telemetry-client';
|
|
2
2
|
|
|
3
3
|
export class BlobArchiveClientInstrumentation {
|
|
4
4
|
private blockRequestCounter: UpDownCounter;
|
|
@@ -11,20 +11,11 @@ export class BlobArchiveClientInstrumentation {
|
|
|
11
11
|
name: string,
|
|
12
12
|
) {
|
|
13
13
|
const meter = client.getMeter(name);
|
|
14
|
-
this.blockRequestCounter = meter.createUpDownCounter(Metrics.BLOB_SINK_ARCHIVE_BLOCK_REQUEST_COUNT
|
|
15
|
-
description: 'Number of requests made to retrieve blocks from the blob archive',
|
|
16
|
-
valueType: ValueType.INT,
|
|
17
|
-
});
|
|
14
|
+
this.blockRequestCounter = meter.createUpDownCounter(Metrics.BLOB_SINK_ARCHIVE_BLOCK_REQUEST_COUNT);
|
|
18
15
|
|
|
19
|
-
this.blobRequestCounter = meter.createUpDownCounter(Metrics.BLOB_SINK_ARCHIVE_BLOB_REQUEST_COUNT
|
|
20
|
-
description: 'Number of requests made to retrieve blobs from the blob archive',
|
|
21
|
-
valueType: ValueType.INT,
|
|
22
|
-
});
|
|
16
|
+
this.blobRequestCounter = meter.createUpDownCounter(Metrics.BLOB_SINK_ARCHIVE_BLOB_REQUEST_COUNT);
|
|
23
17
|
|
|
24
|
-
this.retrievedBlobs = meter.createUpDownCounter(Metrics.BLOB_SINK_ARCHIVE_BLOB_COUNT
|
|
25
|
-
description: 'Number of blobs retrieved from the blob archive',
|
|
26
|
-
valueType: ValueType.INT,
|
|
27
|
-
});
|
|
18
|
+
this.retrievedBlobs = meter.createUpDownCounter(Metrics.BLOB_SINK_ARCHIVE_BLOB_COUNT);
|
|
28
19
|
}
|
|
29
20
|
|
|
30
21
|
incRequest(type: 'blocks' | 'blobs', status: number) {
|