@aztec/archiver 1.2.0 → 2.0.0-nightly.20250813

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.
@@ -5,9 +5,9 @@ import type { Fr } from '@aztec/foundation/fields';
5
5
  import { createLogger } from '@aztec/foundation/log';
6
6
  import type { FunctionSelector } from '@aztec/stdlib/abi';
7
7
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
8
- import { L2Block, L2BlockHash, type L2BlockSource, type L2Tips } from '@aztec/stdlib/block';
8
+ import { L2Block, L2BlockHash, type L2BlockSource, type L2Tips, type ValidateBlockResult } from '@aztec/stdlib/block';
9
9
  import type { ContractClassPublic, ContractDataSource, ContractInstanceWithAddress } from '@aztec/stdlib/contract';
10
- import { type L1RollupConstants, getSlotRangeForEpoch } from '@aztec/stdlib/epoch-helpers';
10
+ import { EmptyL1RollupConstants, type L1RollupConstants, getSlotRangeForEpoch } from '@aztec/stdlib/epoch-helpers';
11
11
  import { type BlockHeader, TxHash, TxReceipt, TxStatus } from '@aztec/stdlib/tx';
12
12
  import type { UInt64 } from '@aztec/stdlib/types';
13
13
 
@@ -219,7 +219,7 @@ export class MockL2BlockSource implements L2BlockSource, ContractDataSource {
219
219
  }
220
220
 
221
221
  getL1Constants(): Promise<L1RollupConstants> {
222
- throw new Error('Method not implemented.');
222
+ return Promise.resolve(EmptyL1RollupConstants);
223
223
  }
224
224
 
225
225
  getL1Timestamp(): Promise<bigint> {
@@ -271,4 +271,12 @@ export class MockL2BlockSource implements L2BlockSource, ContractDataSource {
271
271
  syncImmediate(): Promise<void> {
272
272
  return Promise.resolve();
273
273
  }
274
+
275
+ isPendingChainInvalid(): Promise<boolean> {
276
+ return Promise.resolve(false);
277
+ }
278
+
279
+ getPendingChainValidationStatus(): Promise<ValidateBlockResult> {
280
+ return Promise.resolve({ valid: true });
281
+ }
274
282
  }