@aztec/node-lib 5.0.0-nightly.20260421 → 5.0.0-nightly.20260423
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.
|
@@ -26,4 +26,4 @@ export declare class L1TxMetrics implements IL1TxMetrics {
|
|
|
26
26
|
recordMinedTx(state: L1TxState, l1Timestamp: Date): void;
|
|
27
27
|
recordDroppedTx(state: L1TxState): void;
|
|
28
28
|
}
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibDFfdHhfbWV0cmljcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21ldHJpY3MvbDFfdHhfbWV0cmljcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssRUFBRSxZQUFZLEVBQUUsU0FBUyxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFHM0UsT0FBTyxFQUdMLEtBQUssS0FBSyxFQUlYLE1BQU0seUJBQXlCLENBQUM7QUFFakMsTUFBTSxNQUFNLFNBQVMsR0FBRyxXQUFXLEdBQUcsUUFBUSxHQUFHLE9BQU8sQ0FBQztBQUV6RDs7R0FFRztBQUNILHFCQUFhLFdBQVksWUFBVyxZQUFZO0lBbUI1QyxPQUFPLENBQUMsS0FBSztJQUNiLE9BQU8sQ0FBQyxLQUFLO0lBQ2IsT0FBTyxDQUFDLE1BQU07SUFuQmhCLE9BQU8sQ0FBQyxlQUFlLENBQVk7SUFHbkMsT0FBTyxDQUFDLG9CQUFvQixDQUFZO0lBR3hDLE9BQU8sQ0FBQyxZQUFZLENBQWdCO0lBQ3BDLE9BQU8sQ0FBQyxlQUFlLENBQWdCO0lBQ3ZDLE9BQU8sQ0FBQyxnQkFBZ0IsQ0FBZ0I7SUFDeEMsT0FBTyxDQUFDLGVBQWUsQ0FBZ0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E,SAAmB,EAC1B,MAAM,yCAAsC,EAoBrD;IAED;;;;OAIG;IACI,aAAa,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"l1_tx_metrics.d.ts","sourceRoot":"","sources":["../../src/metrics/l1_tx_metrics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAG3E,OAAO,EAGL,KAAK,KAAK,EAIX,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEzD;;GAEG;AACH,qBAAa,WAAY,YAAW,YAAY;IAmB5C,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,MAAM;IAnBhB,OAAO,CAAC,eAAe,CAAY;IAGnC,OAAO,CAAC,oBAAoB,CAAY;IAGxC,OAAO,CAAC,YAAY,CAAgB;IACpC,OAAO,CAAC,eAAe,CAAgB;IACvC,OAAO,CAAC,gBAAgB,CAAgB;IACxC,OAAO,CAAC,eAAe,CAAgB;IAGvC,OAAO,CAAC,uBAAuB,CAAY;IAC3C,OAAO,CAAC,eAAe,CAAY;IACnC,OAAO,CAAC,gBAAgB,CAAY;IAEpC,YACU,KAAK,EAAE,KAAK,EACZ,KAAK,GAAE,SAAmB,EAC1B,MAAM,yCAAsC,EAoBrD;IAED;;;;OAIG;IACI,aAAa,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,GAAG,IAAI,CAsD9D;IAEM,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,CAiB7C;CACF"}
|
|
@@ -69,15 +69,15 @@ import { Attributes, Metrics, createUpDownCounterWithDefault } from '@aztec/tele
|
|
|
69
69
|
// Record number of attempts until mined
|
|
70
70
|
const attempts = isCancelTx ? state.cancelTxHashes.length : state.txHashes.length;
|
|
71
71
|
this.txAttemptsUntilMined.record(attempts, attributes);
|
|
72
|
-
// Record gas prices at end state
|
|
73
|
-
const
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
this.
|
|
78
|
-
|
|
79
|
-
if (
|
|
80
|
-
this.blobFeeHistogram.record(
|
|
72
|
+
// Record gas prices at end state, converted from wei to gwei to match metric unit definitions
|
|
73
|
+
const weiToGwei = 1e9;
|
|
74
|
+
const maxPriorityFeeGwei = Number(state.gasPrice.maxPriorityFeePerGas) / weiToGwei;
|
|
75
|
+
const maxFeeGwei = Number(state.gasPrice.maxFeePerGas) / weiToGwei;
|
|
76
|
+
const blobFeeGwei = state.gasPrice.maxFeePerBlobGas ? Number(state.gasPrice.maxFeePerBlobGas) / weiToGwei : undefined;
|
|
77
|
+
this.maxPriorityFeeHistogram.record(maxPriorityFeeGwei, attributes);
|
|
78
|
+
this.maxFeeHistogram.record(maxFeeGwei, attributes);
|
|
79
|
+
if (blobFeeGwei !== undefined) {
|
|
80
|
+
this.blobFeeHistogram.record(blobFeeGwei, attributes);
|
|
81
81
|
}
|
|
82
82
|
this.logger.debug(`Recorded tx end state metrics`, {
|
|
83
83
|
status: TxUtilsState[state.status],
|
|
@@ -85,9 +85,9 @@ import { Attributes, Metrics, createUpDownCounterWithDefault } from '@aztec/tele
|
|
|
85
85
|
isCancelTx,
|
|
86
86
|
isReverted,
|
|
87
87
|
scope: this.scope,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
maxPriorityFeeGwei,
|
|
89
|
+
maxFeeGwei,
|
|
90
|
+
blobFeeGwei
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
recordDroppedTx(state) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/node-lib",
|
|
3
|
-
"version": "5.0.0-nightly.
|
|
3
|
+
"version": "5.0.0-nightly.20260423",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"typedocOptions": {
|
|
6
6
|
"entryPoints": [
|
|
@@ -66,28 +66,28 @@
|
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@aztec/archiver": "5.0.0-nightly.
|
|
70
|
-
"@aztec/bb-prover": "5.0.0-nightly.
|
|
71
|
-
"@aztec/blob-client": "5.0.0-nightly.
|
|
72
|
-
"@aztec/constants": "5.0.0-nightly.
|
|
73
|
-
"@aztec/epoch-cache": "5.0.0-nightly.
|
|
74
|
-
"@aztec/ethereum": "5.0.0-nightly.
|
|
75
|
-
"@aztec/foundation": "5.0.0-nightly.
|
|
76
|
-
"@aztec/kv-store": "5.0.0-nightly.
|
|
77
|
-
"@aztec/p2p": "5.0.0-nightly.
|
|
78
|
-
"@aztec/protocol-contracts": "5.0.0-nightly.
|
|
79
|
-
"@aztec/prover-client": "5.0.0-nightly.
|
|
80
|
-
"@aztec/sequencer-client": "5.0.0-nightly.
|
|
81
|
-
"@aztec/simulator": "5.0.0-nightly.
|
|
82
|
-
"@aztec/stdlib": "5.0.0-nightly.
|
|
83
|
-
"@aztec/telemetry-client": "5.0.0-nightly.
|
|
84
|
-
"@aztec/validator-client": "5.0.0-nightly.
|
|
85
|
-
"@aztec/world-state": "5.0.0-nightly.
|
|
69
|
+
"@aztec/archiver": "5.0.0-nightly.20260423",
|
|
70
|
+
"@aztec/bb-prover": "5.0.0-nightly.20260423",
|
|
71
|
+
"@aztec/blob-client": "5.0.0-nightly.20260423",
|
|
72
|
+
"@aztec/constants": "5.0.0-nightly.20260423",
|
|
73
|
+
"@aztec/epoch-cache": "5.0.0-nightly.20260423",
|
|
74
|
+
"@aztec/ethereum": "5.0.0-nightly.20260423",
|
|
75
|
+
"@aztec/foundation": "5.0.0-nightly.20260423",
|
|
76
|
+
"@aztec/kv-store": "5.0.0-nightly.20260423",
|
|
77
|
+
"@aztec/p2p": "5.0.0-nightly.20260423",
|
|
78
|
+
"@aztec/protocol-contracts": "5.0.0-nightly.20260423",
|
|
79
|
+
"@aztec/prover-client": "5.0.0-nightly.20260423",
|
|
80
|
+
"@aztec/sequencer-client": "5.0.0-nightly.20260423",
|
|
81
|
+
"@aztec/simulator": "5.0.0-nightly.20260423",
|
|
82
|
+
"@aztec/stdlib": "5.0.0-nightly.20260423",
|
|
83
|
+
"@aztec/telemetry-client": "5.0.0-nightly.20260423",
|
|
84
|
+
"@aztec/validator-client": "5.0.0-nightly.20260423",
|
|
85
|
+
"@aztec/world-state": "5.0.0-nightly.20260423",
|
|
86
86
|
"tslib": "^2.4.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@aztec/blob-lib": "5.0.0-nightly.
|
|
90
|
-
"@aztec/node-keystore": "5.0.0-nightly.
|
|
89
|
+
"@aztec/blob-lib": "5.0.0-nightly.20260423",
|
|
90
|
+
"@aztec/node-keystore": "5.0.0-nightly.20260423",
|
|
91
91
|
"@jest/globals": "^30.0.0",
|
|
92
92
|
"@types/jest": "^30.0.0",
|
|
93
93
|
"@types/node": "^22.15.17",
|
|
@@ -92,17 +92,19 @@ export class L1TxMetrics implements IL1TxMetrics {
|
|
|
92
92
|
const attempts = isCancelTx ? state.cancelTxHashes.length : state.txHashes.length;
|
|
93
93
|
this.txAttemptsUntilMined.record(attempts, attributes);
|
|
94
94
|
|
|
95
|
-
// Record gas prices at end state
|
|
96
|
-
const
|
|
97
|
-
const
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
95
|
+
// Record gas prices at end state, converted from wei to gwei to match metric unit definitions
|
|
96
|
+
const weiToGwei = 1e9;
|
|
97
|
+
const maxPriorityFeeGwei = Number(state.gasPrice.maxPriorityFeePerGas) / weiToGwei;
|
|
98
|
+
const maxFeeGwei = Number(state.gasPrice.maxFeePerGas) / weiToGwei;
|
|
99
|
+
const blobFeeGwei = state.gasPrice.maxFeePerBlobGas
|
|
100
|
+
? Number(state.gasPrice.maxFeePerBlobGas) / weiToGwei
|
|
101
|
+
: undefined;
|
|
102
|
+
|
|
103
|
+
this.maxPriorityFeeHistogram.record(maxPriorityFeeGwei, attributes);
|
|
104
|
+
this.maxFeeHistogram.record(maxFeeGwei, attributes);
|
|
105
|
+
|
|
106
|
+
if (blobFeeGwei !== undefined) {
|
|
107
|
+
this.blobFeeHistogram.record(blobFeeGwei, attributes);
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
this.logger.debug(`Recorded tx end state metrics`, {
|
|
@@ -111,9 +113,9 @@ export class L1TxMetrics implements IL1TxMetrics {
|
|
|
111
113
|
isCancelTx,
|
|
112
114
|
isReverted,
|
|
113
115
|
scope: this.scope,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
maxPriorityFeeGwei,
|
|
117
|
+
maxFeeGwei,
|
|
118
|
+
blobFeeGwei,
|
|
117
119
|
});
|
|
118
120
|
}
|
|
119
121
|
|