@aztec/prover-client 3.0.0-nightly.20251128 → 3.0.0-nightly.20251201.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.
package/dest/mocks/fixtures.d.ts
CHANGED
|
@@ -17,4 +17,4 @@ export declare function getSimulator(config: {
|
|
|
17
17
|
}, logger?: Logger): Promise<CircuitSimulator>;
|
|
18
18
|
export declare const makeGlobals: (blockNumber: number, slotNumber?: number, overrides?: Partial<FieldsOf<GlobalVariables> & FieldsOf<CheckpointConstantData>>) => GlobalVariables;
|
|
19
19
|
export declare const makeCheckpointConstants: (slotNumber: number, overrides?: Partial<FieldsOf<CheckpointConstantData>>) => CheckpointConstantData;
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZml4dHVyZXMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tb2Nrcy9maXh0dXJlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJQSxPQUFPLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUNwRCxPQUFPLEtBQUssRUFBRSxRQUFRLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUl4RCxPQUFPLEVBQUUsS0FBSyxnQkFBZ0IsRUFBK0MsTUFBTSx5QkFBeUIsQ0FBQztBQUc3RyxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUM5RCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFpQm5ELGVBQU8sTUFBTSxvQkFBb0I7Ozs7Ozs7Y0FrQ2hDLENBQUM7QUFFRix3QkFBc0IsWUFBWSxDQUNoQyxNQUFNLEVBQUU7SUFBRSxvQkFBb0IsRUFBRSxNQUFNLEdBQUcsU0FBUyxDQUFDO0lBQUMsY0FBYyxFQUFFLE1BQU0sR0FBRyxTQUFTLENBQUE7Q0FBRSxFQUN4RixNQUFNLENBQUMsRUFBRSxNQUFNLEdBQ2QsT0FBTyxDQUFDLGdCQUFnQixDQUFDLENBZTNCO0FBRUQsZUFBTyxNQUFNLFdBQVcsa0pBaUJ2QixDQUFDO0FBRUYsZUFBTyxNQUFNLHVCQUF1Qix1R0FnQm5DLENBQUMifQ==
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../src/mocks/fixtures.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../src/mocks/fixtures.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAIxD,OAAO,EAAE,KAAK,gBAAgB,EAA+C,MAAM,yBAAyB,CAAC;AAG7G,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAiBnD,eAAO,MAAM,oBAAoB;;;;;;;cAkChC,CAAC;AAEF,wBAAsB,YAAY,CAChC,MAAM,EAAE;IAAE,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,EACxF,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CAe3B;AAED,eAAO,MAAM,WAAW,kJAiBvB,CAAC;AAEF,eAAO,MAAM,uBAAuB,uGAgBnC,CAAC"}
|
package/dest/mocks/fixtures.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SlotNumber } from '@aztec/foundation/branded-types';
|
|
1
2
|
import { randomBytes } from '@aztec/foundation/crypto';
|
|
2
3
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
3
4
|
import { Fr } from '@aztec/foundation/fields';
|
|
@@ -70,7 +71,7 @@ export const makeGlobals = (blockNumber, slotNumber = blockNumber, overrides = {
|
|
|
70
71
|
chainId: checkpointConstants.chainId,
|
|
71
72
|
version: checkpointConstants.version,
|
|
72
73
|
blockNumber,
|
|
73
|
-
slotNumber:
|
|
74
|
+
slotNumber: SlotNumber(slotNumber),
|
|
74
75
|
timestamp: BigInt(blockNumber * 123),
|
|
75
76
|
coinbase: checkpointConstants.coinbase,
|
|
76
77
|
feeRecipient: checkpointConstants.feeRecipient,
|
|
@@ -85,7 +86,7 @@ export const makeCheckpointConstants = (slotNumber, overrides = {})=>{
|
|
|
85
86
|
vkTreeRoot: getVKTreeRoot(),
|
|
86
87
|
protocolContractsHash,
|
|
87
88
|
proverId: Fr.ZERO,
|
|
88
|
-
slotNumber:
|
|
89
|
+
slotNumber: SlotNumber(slotNumber),
|
|
89
90
|
coinbase: EthAddress.ZERO,
|
|
90
91
|
feeRecipient: AztecAddress.ZERO,
|
|
91
92
|
gasFees: GasFees.empty(),
|
|
@@ -112,7 +112,7 @@ const logger = createLogger('prover-client:orchestrator');
|
|
|
112
112
|
throw new Error(`Checkpoint not accepting further blocks.`);
|
|
113
113
|
}
|
|
114
114
|
const constants = checkpointProvingState.constants;
|
|
115
|
-
logger.info(`Starting block ${blockNumber} for slot ${constants.slotNumber
|
|
115
|
+
logger.info(`Starting block ${blockNumber} for slot ${constants.slotNumber}.`);
|
|
116
116
|
// Fork the db only when it's not already set. The db for the first block is set in `startNewCheckpoint`.
|
|
117
117
|
if (!this.dbs.has(blockNumber)) {
|
|
118
118
|
// Fork world state at the end of the immediately previous block
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/prover-client",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251201.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -67,19 +67,19 @@
|
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@aztec/bb-prover": "3.0.0-nightly.
|
|
71
|
-
"@aztec/blob-lib": "3.0.0-nightly.
|
|
72
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
73
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
74
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
75
|
-
"@aztec/kv-store": "3.0.0-nightly.
|
|
76
|
-
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.
|
|
77
|
-
"@aztec/noir-types": "3.0.0-nightly.
|
|
78
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
79
|
-
"@aztec/simulator": "3.0.0-nightly.
|
|
80
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
81
|
-
"@aztec/telemetry-client": "3.0.0-nightly.
|
|
82
|
-
"@aztec/world-state": "3.0.0-nightly.
|
|
70
|
+
"@aztec/bb-prover": "3.0.0-nightly.20251201.2",
|
|
71
|
+
"@aztec/blob-lib": "3.0.0-nightly.20251201.2",
|
|
72
|
+
"@aztec/constants": "3.0.0-nightly.20251201.2",
|
|
73
|
+
"@aztec/ethereum": "3.0.0-nightly.20251201.2",
|
|
74
|
+
"@aztec/foundation": "3.0.0-nightly.20251201.2",
|
|
75
|
+
"@aztec/kv-store": "3.0.0-nightly.20251201.2",
|
|
76
|
+
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251201.2",
|
|
77
|
+
"@aztec/noir-types": "3.0.0-nightly.20251201.2",
|
|
78
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251201.2",
|
|
79
|
+
"@aztec/simulator": "3.0.0-nightly.20251201.2",
|
|
80
|
+
"@aztec/stdlib": "3.0.0-nightly.20251201.2",
|
|
81
|
+
"@aztec/telemetry-client": "3.0.0-nightly.20251201.2",
|
|
82
|
+
"@aztec/world-state": "3.0.0-nightly.20251201.2",
|
|
83
83
|
"@google-cloud/storage": "^7.15.0",
|
|
84
84
|
"@iarna/toml": "^2.2.5",
|
|
85
85
|
"commander": "^12.1.0",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"zod": "^3.23.8"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@aztec/noir-contracts.js": "3.0.0-nightly.
|
|
92
|
+
"@aztec/noir-contracts.js": "3.0.0-nightly.20251201.2",
|
|
93
93
|
"@jest/globals": "^30.0.0",
|
|
94
94
|
"@types/jest": "^30.0.0",
|
|
95
95
|
"@types/node": "^22.15.17",
|
package/src/mocks/fixtures.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SlotNumber } from '@aztec/foundation/branded-types';
|
|
1
2
|
import { randomBytes } from '@aztec/foundation/crypto';
|
|
2
3
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
3
4
|
import { Fr } from '@aztec/foundation/fields';
|
|
@@ -93,7 +94,7 @@ export const makeGlobals = (
|
|
|
93
94
|
chainId: checkpointConstants.chainId,
|
|
94
95
|
version: checkpointConstants.version,
|
|
95
96
|
blockNumber /** block number */,
|
|
96
|
-
slotNumber:
|
|
97
|
+
slotNumber: SlotNumber(slotNumber) /** slot number */,
|
|
97
98
|
timestamp: BigInt(blockNumber * 123) /** block number * 123 as pseudo-timestamp for testing */,
|
|
98
99
|
coinbase: checkpointConstants.coinbase,
|
|
99
100
|
feeRecipient: checkpointConstants.feeRecipient,
|
|
@@ -112,7 +113,7 @@ export const makeCheckpointConstants = (
|
|
|
112
113
|
vkTreeRoot: getVKTreeRoot(),
|
|
113
114
|
protocolContractsHash,
|
|
114
115
|
proverId: Fr.ZERO,
|
|
115
|
-
slotNumber:
|
|
116
|
+
slotNumber: SlotNumber(slotNumber),
|
|
116
117
|
coinbase: EthAddress.ZERO,
|
|
117
118
|
feeRecipient: AztecAddress.ZERO,
|
|
118
119
|
gasFees: GasFees.empty(),
|
|
@@ -214,7 +214,7 @@ export class ProvingOrchestrator implements EpochProver {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
const constants = checkpointProvingState.constants;
|
|
217
|
-
logger.info(`Starting block ${blockNumber} for slot ${constants.slotNumber
|
|
217
|
+
logger.info(`Starting block ${blockNumber} for slot ${constants.slotNumber}.`);
|
|
218
218
|
|
|
219
219
|
// Fork the db only when it's not already set. The db for the first block is set in `startNewCheckpoint`.
|
|
220
220
|
if (!this.dbs.has(blockNumber)) {
|