@aztec/prover-client 1.1.3 → 1.2.0
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":"light.d.ts","sourceRoot":"","sources":["../../src/block-factory/light.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAEhG,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,WAAW,EAAmB,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,KAAK,eAAe,EAAsB,MAAM,yBAAyB,CAAC;AAQnF;;;;;;;;;;;GAWG;AACH,qBAAa,uBAAwB,YAAW,aAAa;IASzD,OAAO,CAAC,EAAE;IACV,OAAO,CAAC,SAAS;IATnB,OAAO,CAAC,eAAe,CAAC,CAAkB;IAC1C,OAAO,CAAC,cAAc,CAAC,CAAO;IAE9B,OAAO,CAAC,GAAG,CAA4B;IAEvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6C;gBAG1D,EAAE,EAAE,yBAAyB,EAC7B,SAAS,GAAE,eAAsC;IAGrD,aAAa,CAAC,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAU1F,MAAM,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAWzC,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;YAIvB,UAAU;
|
|
1
|
+
{"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../src/block-factory/light.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAEhG,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,WAAW,EAAmB,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,KAAK,eAAe,EAAsB,MAAM,yBAAyB,CAAC;AAQnF;;;;;;;;;;;GAWG;AACH,qBAAa,uBAAwB,YAAW,aAAa;IASzD,OAAO,CAAC,EAAE;IACV,OAAO,CAAC,SAAS;IATnB,OAAO,CAAC,eAAe,CAAC,CAAkB;IAC1C,OAAO,CAAC,cAAc,CAAC,CAAO;IAE9B,OAAO,CAAC,GAAG,CAA4B;IAEvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6C;gBAG1D,EAAE,EAAE,yBAAyB,EAC7B,SAAS,GAAE,eAAsC;IAGrD,aAAa,CAAC,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAU1F,MAAM,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAWzC,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;YAIvB,UAAU;CAwBzB;AAED;;;GAGG;AACH,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,WAAW,EAAE,EAClB,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,EAAE,EAAE,EACpB,EAAE,EAAE,yBAAyB,EAC7B,SAAS,GAAE,eAAsC,oBAWlD"}
|
|
@@ -57,12 +57,14 @@ import { buildHeaderAndBodyFromTxs, getTreeSnapshot, insertSideEffectsAndBuildBa
|
|
|
57
57
|
}
|
|
58
58
|
async buildBlock() {
|
|
59
59
|
const { header, body } = await buildHeaderAndBodyFromTxs(this.txs ?? [], this.globalVariables, this.l1ToL2Messages, this.db);
|
|
60
|
+
header.state.validate();
|
|
60
61
|
await this.db.updateArchive(header);
|
|
61
62
|
const newArchive = await getTreeSnapshot(MerkleTreeId.ARCHIVE, this.db);
|
|
62
63
|
const block = new L2Block(newArchive, header, body);
|
|
63
64
|
this.logger.debug(`Built block ${block.number}`, {
|
|
64
65
|
globalVariables: this.globalVariables?.toInspect(),
|
|
65
66
|
archiveRoot: newArchive.root.toString(),
|
|
67
|
+
stateReference: header.state.toInspect(),
|
|
66
68
|
blockHash: (await block.hash()).toString(),
|
|
67
69
|
txs: block.body.txEffects.map((tx)=>tx.txHash.toString())
|
|
68
70
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/prover-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -68,19 +68,19 @@
|
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@aztec/bb-prover": "1.
|
|
72
|
-
"@aztec/blob-lib": "1.
|
|
73
|
-
"@aztec/constants": "1.
|
|
74
|
-
"@aztec/ethereum": "1.
|
|
75
|
-
"@aztec/foundation": "1.
|
|
76
|
-
"@aztec/kv-store": "1.
|
|
77
|
-
"@aztec/noir-protocol-circuits-types": "1.
|
|
78
|
-
"@aztec/noir-types": "1.
|
|
79
|
-
"@aztec/protocol-contracts": "1.
|
|
80
|
-
"@aztec/simulator": "1.
|
|
81
|
-
"@aztec/stdlib": "1.
|
|
82
|
-
"@aztec/telemetry-client": "1.
|
|
83
|
-
"@aztec/world-state": "1.
|
|
71
|
+
"@aztec/bb-prover": "1.2.0",
|
|
72
|
+
"@aztec/blob-lib": "1.2.0",
|
|
73
|
+
"@aztec/constants": "1.2.0",
|
|
74
|
+
"@aztec/ethereum": "1.2.0",
|
|
75
|
+
"@aztec/foundation": "1.2.0",
|
|
76
|
+
"@aztec/kv-store": "1.2.0",
|
|
77
|
+
"@aztec/noir-protocol-circuits-types": "1.2.0",
|
|
78
|
+
"@aztec/noir-types": "1.2.0",
|
|
79
|
+
"@aztec/protocol-contracts": "1.2.0",
|
|
80
|
+
"@aztec/simulator": "1.2.0",
|
|
81
|
+
"@aztec/stdlib": "1.2.0",
|
|
82
|
+
"@aztec/telemetry-client": "1.2.0",
|
|
83
|
+
"@aztec/world-state": "1.2.0",
|
|
84
84
|
"@google-cloud/storage": "^7.15.0",
|
|
85
85
|
"@iarna/toml": "^2.2.5",
|
|
86
86
|
"commander": "^12.1.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"zod": "^3.23.8"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@aztec/noir-contracts.js": "1.
|
|
93
|
+
"@aztec/noir-contracts.js": "1.2.0",
|
|
94
94
|
"@jest/globals": "^30.0.0",
|
|
95
95
|
"@types/jest": "^30.0.0",
|
|
96
96
|
"@types/node": "^22.15.17",
|
|
@@ -73,6 +73,8 @@ export class LightweightBlockFactory implements IBlockFactory {
|
|
|
73
73
|
this.db,
|
|
74
74
|
);
|
|
75
75
|
|
|
76
|
+
header.state.validate();
|
|
77
|
+
|
|
76
78
|
await this.db.updateArchive(header);
|
|
77
79
|
const newArchive = await getTreeSnapshot(MerkleTreeId.ARCHIVE, this.db);
|
|
78
80
|
|
|
@@ -80,6 +82,7 @@ export class LightweightBlockFactory implements IBlockFactory {
|
|
|
80
82
|
this.logger.debug(`Built block ${block.number}`, {
|
|
81
83
|
globalVariables: this.globalVariables?.toInspect(),
|
|
82
84
|
archiveRoot: newArchive.root.toString(),
|
|
85
|
+
stateReference: header.state.toInspect(),
|
|
83
86
|
blockHash: (await block.hash()).toString(),
|
|
84
87
|
txs: block.body.txEffects.map(tx => tx.txHash.toString()),
|
|
85
88
|
});
|