@aztec/epoch-cache 0.86.0-starknet.1 → 0.87.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.
@@ -78,7 +78,7 @@ import { getEpochCacheConfigEnvVars } from './config.js';
78
78
  }
79
79
  getEpochAndSlotAtSlot(slot) {
80
80
  const epoch = getEpochAtSlot(slot, this.l1constants);
81
- const ts = getTimestampRangeForEpoch(slot, this.l1constants)[0];
81
+ const ts = getTimestampRangeForEpoch(epoch, this.l1constants)[0];
82
82
  return {
83
83
  epoch,
84
84
  ts,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/epoch-cache",
3
- "version": "0.86.0-starknet.1",
3
+ "version": "0.87.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/index.js",
@@ -26,10 +26,10 @@
26
26
  "../package.common.json"
27
27
  ],
28
28
  "dependencies": {
29
- "@aztec/ethereum": "0.86.0-starknet.1",
30
- "@aztec/foundation": "0.86.0-starknet.1",
31
- "@aztec/l1-artifacts": "0.86.0-starknet.1",
32
- "@aztec/stdlib": "0.86.0-starknet.1",
29
+ "@aztec/ethereum": "0.87.0",
30
+ "@aztec/foundation": "0.87.0",
31
+ "@aztec/l1-artifacts": "0.87.0",
32
+ "@aztec/stdlib": "0.87.0",
33
33
  "@viem/anvil": "^0.0.10",
34
34
  "dotenv": "^16.0.3",
35
35
  "get-port": "^7.1.0",
@@ -41,10 +41,10 @@
41
41
  "devDependencies": {
42
42
  "@jest/globals": "^29.5.0",
43
43
  "@types/jest": "^29.5.0",
44
- "@types/node": "^18.14.6",
44
+ "@types/node": "^22.15.17",
45
45
  "jest": "^29.5.0",
46
46
  "ts-node": "^10.9.1",
47
- "typescript": "^5.0.4"
47
+ "typescript": "^5.3.3"
48
48
  },
49
49
  "files": [
50
50
  "dest",
@@ -86,6 +86,6 @@
86
86
  ]
87
87
  },
88
88
  "engines": {
89
- "node": ">=18"
89
+ "node": ">=20.10"
90
90
  }
91
91
  }
@@ -128,7 +128,7 @@ export class EpochCache implements EpochCacheInterface {
128
128
 
129
129
  private getEpochAndSlotAtSlot(slot: bigint): EpochAndSlot {
130
130
  const epoch = getEpochAtSlot(slot, this.l1constants);
131
- const ts = getTimestampRangeForEpoch(slot, this.l1constants)[0];
131
+ const ts = getTimestampRangeForEpoch(epoch, this.l1constants)[0];
132
132
  return { epoch, ts, slot };
133
133
  }
134
134