@aztec/aztec-node 4.0.0-nightly.20260120 → 4.0.0-nightly.20260121

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.
@@ -767,7 +767,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
767
767
  * @param block - The block parameter (block number, block hash, or 'latest').
768
768
  * @returns The requested block.
769
769
  */ async getBlock(block) {
770
- if (block instanceof L2BlockHash) {
770
+ if (L2BlockHash.isL2BlockHash(block)) {
771
771
  return this.getBlockByHash(Fr.fromBuffer(block.toBuffer()));
772
772
  }
773
773
  const blockNumber = block === 'latest' ? await this.getBlockNumber() : block;
@@ -1164,7 +1164,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1164
1164
  return preimage.leaf.value;
1165
1165
  }
1166
1166
  async getBlockHeader(block = 'latest') {
1167
- if (block instanceof L2BlockHash) {
1167
+ if (L2BlockHash.isL2BlockHash(block)) {
1168
1168
  const initialBlockHash = await this.#getInitialHeaderHash();
1169
1169
  if (block.equals(initialBlockHash)) {
1170
1170
  // Block source doesn't handle initial header so we need to handle the case separately.
@@ -1420,7 +1420,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1420
1420
  this.log.debug(`Using committed db for block 'latest', world state synced upto ${blockSyncedTo}`);
1421
1421
  return this.worldStateSynchronizer.getCommitted();
1422
1422
  }
1423
- if (block instanceof L2BlockHash) {
1423
+ if (L2BlockHash.isL2BlockHash(block)) {
1424
1424
  const initialBlockHash = await this.#getInitialHeaderHash();
1425
1425
  if (block.equals(initialBlockHash)) {
1426
1426
  // Block source doesn't handle initial header so we need to handle the case separately.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/aztec-node",
3
- "version": "4.0.0-nightly.20260120",
3
+ "version": "4.0.0-nightly.20260121",
4
4
  "main": "dest/index.js",
5
5
  "type": "module",
6
6
  "exports": {
@@ -65,30 +65,30 @@
65
65
  ]
66
66
  },
67
67
  "dependencies": {
68
- "@aztec/archiver": "4.0.0-nightly.20260120",
69
- "@aztec/bb-prover": "4.0.0-nightly.20260120",
70
- "@aztec/blob-client": "4.0.0-nightly.20260120",
71
- "@aztec/constants": "4.0.0-nightly.20260120",
72
- "@aztec/epoch-cache": "4.0.0-nightly.20260120",
73
- "@aztec/ethereum": "4.0.0-nightly.20260120",
74
- "@aztec/foundation": "4.0.0-nightly.20260120",
75
- "@aztec/kv-store": "4.0.0-nightly.20260120",
76
- "@aztec/l1-artifacts": "4.0.0-nightly.20260120",
77
- "@aztec/merkle-tree": "4.0.0-nightly.20260120",
78
- "@aztec/node-keystore": "4.0.0-nightly.20260120",
79
- "@aztec/node-lib": "4.0.0-nightly.20260120",
80
- "@aztec/noir-protocol-circuits-types": "4.0.0-nightly.20260120",
81
- "@aztec/p2p": "4.0.0-nightly.20260120",
82
- "@aztec/protocol-contracts": "4.0.0-nightly.20260120",
83
- "@aztec/prover-client": "4.0.0-nightly.20260120",
84
- "@aztec/sequencer-client": "4.0.0-nightly.20260120",
85
- "@aztec/simulator": "4.0.0-nightly.20260120",
86
- "@aztec/slasher": "4.0.0-nightly.20260120",
87
- "@aztec/stdlib": "4.0.0-nightly.20260120",
88
- "@aztec/telemetry-client": "4.0.0-nightly.20260120",
89
- "@aztec/validator-client": "4.0.0-nightly.20260120",
90
- "@aztec/validator-ha-signer": "4.0.0-nightly.20260120",
91
- "@aztec/world-state": "4.0.0-nightly.20260120",
68
+ "@aztec/archiver": "4.0.0-nightly.20260121",
69
+ "@aztec/bb-prover": "4.0.0-nightly.20260121",
70
+ "@aztec/blob-client": "4.0.0-nightly.20260121",
71
+ "@aztec/constants": "4.0.0-nightly.20260121",
72
+ "@aztec/epoch-cache": "4.0.0-nightly.20260121",
73
+ "@aztec/ethereum": "4.0.0-nightly.20260121",
74
+ "@aztec/foundation": "4.0.0-nightly.20260121",
75
+ "@aztec/kv-store": "4.0.0-nightly.20260121",
76
+ "@aztec/l1-artifacts": "4.0.0-nightly.20260121",
77
+ "@aztec/merkle-tree": "4.0.0-nightly.20260121",
78
+ "@aztec/node-keystore": "4.0.0-nightly.20260121",
79
+ "@aztec/node-lib": "4.0.0-nightly.20260121",
80
+ "@aztec/noir-protocol-circuits-types": "4.0.0-nightly.20260121",
81
+ "@aztec/p2p": "4.0.0-nightly.20260121",
82
+ "@aztec/protocol-contracts": "4.0.0-nightly.20260121",
83
+ "@aztec/prover-client": "4.0.0-nightly.20260121",
84
+ "@aztec/sequencer-client": "4.0.0-nightly.20260121",
85
+ "@aztec/simulator": "4.0.0-nightly.20260121",
86
+ "@aztec/slasher": "4.0.0-nightly.20260121",
87
+ "@aztec/stdlib": "4.0.0-nightly.20260121",
88
+ "@aztec/telemetry-client": "4.0.0-nightly.20260121",
89
+ "@aztec/validator-client": "4.0.0-nightly.20260121",
90
+ "@aztec/validator-ha-signer": "4.0.0-nightly.20260121",
91
+ "@aztec/world-state": "4.0.0-nightly.20260121",
92
92
  "koa": "^2.16.1",
93
93
  "koa-router": "^13.1.1",
94
94
  "tslib": "^2.4.0",
@@ -577,7 +577,7 @@ export class AztecNodeService implements AztecNode, AztecNodeAdmin, Traceable {
577
577
  * @returns The requested block.
578
578
  */
579
579
  public async getBlock(block: BlockParameter): Promise<L2BlockNew | undefined> {
580
- if (block instanceof L2BlockHash) {
580
+ if (L2BlockHash.isL2BlockHash(block)) {
581
581
  return this.getBlockByHash(Fr.fromBuffer(block.toBuffer()));
582
582
  }
583
583
  const blockNumber = block === 'latest' ? await this.getBlockNumber() : (block as BlockNumber);
@@ -1090,7 +1090,7 @@ export class AztecNodeService implements AztecNode, AztecNodeAdmin, Traceable {
1090
1090
  }
1091
1091
 
1092
1092
  public async getBlockHeader(block: BlockParameter = 'latest'): Promise<BlockHeader | undefined> {
1093
- if (block instanceof L2BlockHash) {
1093
+ if (L2BlockHash.isL2BlockHash(block)) {
1094
1094
  const initialBlockHash = await this.#getInitialHeaderHash();
1095
1095
  if (block.equals(initialBlockHash)) {
1096
1096
  // Block source doesn't handle initial header so we need to handle the case separately.
@@ -1411,7 +1411,7 @@ export class AztecNodeService implements AztecNode, AztecNodeAdmin, Traceable {
1411
1411
  return this.worldStateSynchronizer.getCommitted();
1412
1412
  }
1413
1413
 
1414
- if (block instanceof L2BlockHash) {
1414
+ if (L2BlockHash.isL2BlockHash(block)) {
1415
1415
  const initialBlockHash = await this.#getInitialHeaderHash();
1416
1416
  if (block.equals(initialBlockHash)) {
1417
1417
  // Block source doesn't handle initial header so we need to handle the case separately.