@aztec/p2p 0.87.0 → 0.87.2
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,5 +1,5 @@
|
|
|
1
1
|
import { createLogger } from '@aztec/foundation/log';
|
|
2
|
-
import { TX_ERROR_INCORRECT_L1_CHAIN_ID, TX_ERROR_INCORRECT_PROTOCOL_CONTRACT_TREE_ROOT, TX_ERROR_INCORRECT_ROLLUP_VERSION, TX_ERROR_INCORRECT_VK_TREE_ROOT,
|
|
2
|
+
import { TX_ERROR_INCORRECT_L1_CHAIN_ID, TX_ERROR_INCORRECT_PROTOCOL_CONTRACT_TREE_ROOT, TX_ERROR_INCORRECT_ROLLUP_VERSION, TX_ERROR_INCORRECT_VK_TREE_ROOT, TX_ERROR_INVALID_MAX_BLOCK_NUMBER, Tx } from '@aztec/stdlib/tx';
|
|
3
3
|
export class MetadataTxValidator {
|
|
4
4
|
values;
|
|
5
5
|
#log;
|
|
@@ -16,7 +16,7 @@ export class MetadataTxValidator {
|
|
|
16
16
|
errors.push(TX_ERROR_INCORRECT_ROLLUP_VERSION);
|
|
17
17
|
}
|
|
18
18
|
if (!await this.#isValidForBlockNumber(tx)) {
|
|
19
|
-
errors.push(
|
|
19
|
+
errors.push(TX_ERROR_INVALID_MAX_BLOCK_NUMBER);
|
|
20
20
|
}
|
|
21
21
|
if (!await this.#hasCorrectVkTreeRoot(tx)) {
|
|
22
22
|
errors.push(TX_ERROR_INCORRECT_VK_TREE_ROOT);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/p2p",
|
|
3
|
-
"version": "0.87.
|
|
3
|
+
"version": "0.87.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@aztec/constants": "0.87.
|
|
67
|
-
"@aztec/epoch-cache": "0.87.
|
|
68
|
-
"@aztec/foundation": "0.87.
|
|
69
|
-
"@aztec/kv-store": "0.87.
|
|
70
|
-
"@aztec/noir-contracts.js": "0.87.
|
|
71
|
-
"@aztec/noir-protocol-circuits-types": "0.87.
|
|
72
|
-
"@aztec/protocol-contracts": "0.87.
|
|
73
|
-
"@aztec/simulator": "0.87.
|
|
74
|
-
"@aztec/stdlib": "0.87.
|
|
75
|
-
"@aztec/telemetry-client": "0.87.
|
|
66
|
+
"@aztec/constants": "0.87.2",
|
|
67
|
+
"@aztec/epoch-cache": "0.87.2",
|
|
68
|
+
"@aztec/foundation": "0.87.2",
|
|
69
|
+
"@aztec/kv-store": "0.87.2",
|
|
70
|
+
"@aztec/noir-contracts.js": "0.87.2",
|
|
71
|
+
"@aztec/noir-protocol-circuits-types": "0.87.2",
|
|
72
|
+
"@aztec/protocol-contracts": "0.87.2",
|
|
73
|
+
"@aztec/simulator": "0.87.2",
|
|
74
|
+
"@aztec/stdlib": "0.87.2",
|
|
75
|
+
"@aztec/telemetry-client": "0.87.2",
|
|
76
76
|
"@chainsafe/discv5": "9.0.0",
|
|
77
77
|
"@chainsafe/enr": "3.0.0",
|
|
78
78
|
"@chainsafe/libp2p-gossipsub": "13.0.0",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"xxhash-wasm": "^1.1.0"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@aztec/archiver": "0.87.
|
|
104
|
+
"@aztec/archiver": "0.87.2",
|
|
105
105
|
"@jest/globals": "^29.5.0",
|
|
106
106
|
"@types/jest": "^29.5.0",
|
|
107
107
|
"@types/node": "^22.15.17",
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
TX_ERROR_INCORRECT_PROTOCOL_CONTRACT_TREE_ROOT,
|
|
7
7
|
TX_ERROR_INCORRECT_ROLLUP_VERSION,
|
|
8
8
|
TX_ERROR_INCORRECT_VK_TREE_ROOT,
|
|
9
|
-
|
|
9
|
+
TX_ERROR_INVALID_MAX_BLOCK_NUMBER,
|
|
10
10
|
Tx,
|
|
11
11
|
type TxValidationResult,
|
|
12
12
|
type TxValidator,
|
|
@@ -28,7 +28,7 @@ export class MetadataTxValidator<T extends AnyTx> implements TxValidator<T> {
|
|
|
28
28
|
errors.push(TX_ERROR_INCORRECT_ROLLUP_VERSION);
|
|
29
29
|
}
|
|
30
30
|
if (!(await this.#isValidForBlockNumber(tx))) {
|
|
31
|
-
errors.push(
|
|
31
|
+
errors.push(TX_ERROR_INVALID_MAX_BLOCK_NUMBER);
|
|
32
32
|
}
|
|
33
33
|
if (!(await this.#hasCorrectVkTreeRoot(tx))) {
|
|
34
34
|
errors.push(TX_ERROR_INCORRECT_VK_TREE_ROOT);
|