@aztec/world-state 4.0.4-rc.5 → 4.0.4-rc.7

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,4 +1,4 @@
1
- import { GENESIS_BLOCK_HEADER_HASH, INITIAL_L2_BLOCK_NUM, INITIAL_L2_CHECKPOINT_NUM } from '@aztec/constants';
1
+ import { GENESIS_BLOCK_HEADER_HASH, INITIAL_CHECKPOINT_NUMBER, INITIAL_L2_BLOCK_NUM } from '@aztec/constants';
2
2
  import { BlockNumber, CheckpointNumber } from '@aztec/foundation/branded-types';
3
3
  import { createLogger } from '@aztec/foundation/log';
4
4
  import { promiseWithResolvers } from '@aztec/foundation/promise';
@@ -202,7 +202,7 @@ import { WorldStateSynchronizerError } from './errors.js';
202
202
  hash: GENESIS_BLOCK_HEADER_HASH.toString()
203
203
  },
204
204
  checkpoint: {
205
- number: INITIAL_L2_CHECKPOINT_NUM,
205
+ number: INITIAL_CHECKPOINT_NUMBER,
206
206
  hash: genesisCheckpointHeaderHash
207
207
  }
208
208
  },
@@ -212,7 +212,7 @@ import { WorldStateSynchronizerError } from './errors.js';
212
212
  hash: finalizedBlockHash ?? ''
213
213
  },
214
214
  checkpoint: {
215
- number: INITIAL_L2_CHECKPOINT_NUM,
215
+ number: INITIAL_CHECKPOINT_NUMBER,
216
216
  hash: genesisCheckpointHeaderHash
217
217
  }
218
218
  },
@@ -222,7 +222,7 @@ import { WorldStateSynchronizerError } from './errors.js';
222
222
  hash: provenBlockHash ?? ''
223
223
  },
224
224
  checkpoint: {
225
- number: INITIAL_L2_CHECKPOINT_NUM,
225
+ number: INITIAL_CHECKPOINT_NUMBER,
226
226
  hash: genesisCheckpointHeaderHash
227
227
  }
228
228
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/world-state",
3
- "version": "4.0.4-rc.5",
3
+ "version": "4.0.4-rc.7",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/index.js",
@@ -64,19 +64,19 @@
64
64
  ]
65
65
  },
66
66
  "dependencies": {
67
- "@aztec/constants": "4.0.4-rc.5",
68
- "@aztec/foundation": "4.0.4-rc.5",
69
- "@aztec/kv-store": "4.0.4-rc.5",
70
- "@aztec/merkle-tree": "4.0.4-rc.5",
71
- "@aztec/native": "4.0.4-rc.5",
72
- "@aztec/protocol-contracts": "4.0.4-rc.5",
73
- "@aztec/stdlib": "4.0.4-rc.5",
74
- "@aztec/telemetry-client": "4.0.4-rc.5",
67
+ "@aztec/constants": "4.0.4-rc.7",
68
+ "@aztec/foundation": "4.0.4-rc.7",
69
+ "@aztec/kv-store": "4.0.4-rc.7",
70
+ "@aztec/merkle-tree": "4.0.4-rc.7",
71
+ "@aztec/native": "4.0.4-rc.7",
72
+ "@aztec/protocol-contracts": "4.0.4-rc.7",
73
+ "@aztec/stdlib": "4.0.4-rc.7",
74
+ "@aztec/telemetry-client": "4.0.4-rc.7",
75
75
  "tslib": "^2.4.0",
76
76
  "zod": "^3.23.8"
77
77
  },
78
78
  "devDependencies": {
79
- "@aztec/archiver": "4.0.4-rc.5",
79
+ "@aztec/archiver": "4.0.4-rc.7",
80
80
  "@jest/globals": "^30.0.0",
81
81
  "@types/jest": "^30.0.0",
82
82
  "@types/node": "^22.15.17",
@@ -1,4 +1,4 @@
1
- import { GENESIS_BLOCK_HEADER_HASH, INITIAL_L2_BLOCK_NUM, INITIAL_L2_CHECKPOINT_NUM } from '@aztec/constants';
1
+ import { GENESIS_BLOCK_HEADER_HASH, INITIAL_CHECKPOINT_NUMBER, INITIAL_L2_BLOCK_NUM } from '@aztec/constants';
2
2
  import { BlockNumber, CheckpointNumber } from '@aztec/foundation/branded-types';
3
3
  import type { Fr } from '@aztec/foundation/curves/bn254';
4
4
  import { type Logger, createLogger } from '@aztec/foundation/log';
@@ -263,15 +263,15 @@ export class ServerWorldStateSynchronizer
263
263
  proposed: latestBlockId,
264
264
  checkpointed: {
265
265
  block: { number: INITIAL_L2_BLOCK_NUM, hash: GENESIS_BLOCK_HEADER_HASH.toString() },
266
- checkpoint: { number: INITIAL_L2_CHECKPOINT_NUM, hash: genesisCheckpointHeaderHash },
266
+ checkpoint: { number: INITIAL_CHECKPOINT_NUMBER, hash: genesisCheckpointHeaderHash },
267
267
  },
268
268
  finalized: {
269
269
  block: { number: status.finalizedBlockNumber, hash: finalizedBlockHash ?? '' },
270
- checkpoint: { number: INITIAL_L2_CHECKPOINT_NUM, hash: genesisCheckpointHeaderHash },
270
+ checkpoint: { number: INITIAL_CHECKPOINT_NUMBER, hash: genesisCheckpointHeaderHash },
271
271
  },
272
272
  proven: {
273
273
  block: { number: provenBlockNumber, hash: provenBlockHash ?? '' },
274
- checkpoint: { number: INITIAL_L2_CHECKPOINT_NUM, hash: genesisCheckpointHeaderHash },
274
+ checkpoint: { number: INITIAL_CHECKPOINT_NUMBER, hash: genesisCheckpointHeaderHash },
275
275
  },
276
276
  };
277
277
  }