@aztec/slasher 3.0.0-nightly.20251209 → 3.0.0-nightly.20251210

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 { BlockNumber } from '@aztec/foundation/branded-types';
1
+ import { BlockNumber, CheckpointNumber } from '@aztec/foundation/branded-types';
2
2
  import { merge, pick } from '@aztec/foundation/collection';
3
3
  import { createLogger } from '@aztec/foundation/log';
4
4
  import { L2BlockSourceEvents } from '@aztec/stdlib/block';
@@ -103,8 +103,8 @@ const EpochPruneWatcherPenaltiesConfigKeys = [
103
103
  if (missingTxs && missingTxs.length > 0) {
104
104
  throw new TransactionsNotAvailableError(missingTxs);
105
105
  }
106
- const blockNumber = blockFromL1.number;
107
- const l1ToL2Messages = await this.l1ToL2MessageSource.getL1ToL2Messages(blockNumber);
106
+ const checkpointNumber = CheckpointNumber.fromBlockNumber(blockFromL1.number);
107
+ const l1ToL2Messages = await this.l1ToL2MessageSource.getL1ToL2Messages(checkpointNumber);
108
108
  const { block, failedTxs, numTxs } = await this.blockBuilder.buildBlock(txs, l1ToL2Messages, blockFromL1.header.globalVariables, {}, fork);
109
109
  if (numTxs !== txs.length) {
110
110
  // This should be detected by state mismatch, but this makes it easier to debug.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/slasher",
3
- "version": "3.0.0-nightly.20251209",
3
+ "version": "3.0.0-nightly.20251210",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/index.js",
@@ -54,20 +54,20 @@
54
54
  ]
55
55
  },
56
56
  "dependencies": {
57
- "@aztec/epoch-cache": "3.0.0-nightly.20251209",
58
- "@aztec/ethereum": "3.0.0-nightly.20251209",
59
- "@aztec/foundation": "3.0.0-nightly.20251209",
60
- "@aztec/kv-store": "3.0.0-nightly.20251209",
61
- "@aztec/l1-artifacts": "3.0.0-nightly.20251209",
62
- "@aztec/stdlib": "3.0.0-nightly.20251209",
63
- "@aztec/telemetry-client": "3.0.0-nightly.20251209",
57
+ "@aztec/epoch-cache": "3.0.0-nightly.20251210",
58
+ "@aztec/ethereum": "3.0.0-nightly.20251210",
59
+ "@aztec/foundation": "3.0.0-nightly.20251210",
60
+ "@aztec/kv-store": "3.0.0-nightly.20251210",
61
+ "@aztec/l1-artifacts": "3.0.0-nightly.20251210",
62
+ "@aztec/stdlib": "3.0.0-nightly.20251210",
63
+ "@aztec/telemetry-client": "3.0.0-nightly.20251210",
64
64
  "source-map-support": "^0.5.21",
65
65
  "tslib": "^2.4.0",
66
66
  "viem": "npm:@aztec/viem@2.38.2",
67
67
  "zod": "^3.23.8"
68
68
  },
69
69
  "devDependencies": {
70
- "@aztec/aztec.js": "3.0.0-nightly.20251209",
70
+ "@aztec/aztec.js": "3.0.0-nightly.20251210",
71
71
  "@jest/globals": "^30.0.0",
72
72
  "@types/jest": "^30.0.0",
73
73
  "@types/node": "^22.15.17",
@@ -1,5 +1,5 @@
1
1
  import { EpochCache } from '@aztec/epoch-cache';
2
- import { BlockNumber, EpochNumber } from '@aztec/foundation/branded-types';
2
+ import { BlockNumber, CheckpointNumber, EpochNumber } from '@aztec/foundation/branded-types';
3
3
  import { merge, pick } from '@aztec/foundation/collection';
4
4
  import { type Logger, createLogger } from '@aztec/foundation/log';
5
5
  import {
@@ -145,8 +145,8 @@ export class EpochPruneWatcher extends (EventEmitter as new () => WatcherEmitter
145
145
  throw new TransactionsNotAvailableError(missingTxs);
146
146
  }
147
147
 
148
- const blockNumber = blockFromL1.number;
149
- const l1ToL2Messages = await this.l1ToL2MessageSource.getL1ToL2Messages(blockNumber);
148
+ const checkpointNumber = CheckpointNumber.fromBlockNumber(blockFromL1.number);
149
+ const l1ToL2Messages = await this.l1ToL2MessageSource.getL1ToL2Messages(checkpointNumber);
150
150
  const { block, failedTxs, numTxs } = await this.blockBuilder.buildBlock(
151
151
  txs,
152
152
  l1ToL2Messages,