@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.
- package/dest/archiver/archiver.d.ts +15 -5
- package/dest/archiver/archiver.d.ts.map +1 -1
- package/dest/archiver/archiver.js +76 -27
- package/dest/archiver/data_retrieval.d.ts.map +1 -1
- package/dest/archiver/data_retrieval.js +13 -2
- package/dest/archiver/kv_archiver_store/contract_instance_store.js +5 -5
- package/dest/archiver/kv_archiver_store/log_store.js +1 -1
- package/dest/archiver/validation.d.ts +11 -0
- package/dest/archiver/validation.d.ts.map +1 -0
- package/dest/archiver/validation.js +76 -0
- package/dest/factory.d.ts +3 -4
- package/dest/factory.d.ts.map +1 -1
- package/dest/factory.js +3 -7
- package/dest/test/mock_l2_block_source.d.ts +3 -1
- package/dest/test/mock_l2_block_source.d.ts.map +1 -1
- package/dest/test/mock_l2_block_source.js +10 -2
- package/package.json +13 -12
- package/src/archiver/archiver.ts +108 -32
- package/src/archiver/data_retrieval.ts +16 -2
- package/src/archiver/kv_archiver_store/contract_instance_store.ts +5 -5
- package/src/archiver/kv_archiver_store/log_store.ts +1 -1
- package/src/archiver/validation.ts +70 -0
- package/src/factory.ts +3 -6
- package/src/test/mock_l2_block_source.ts +11 -3
|
@@ -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
|
-
|
|
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
|
}
|