@aztec/archiver 3.0.0-nightly.20251207 → 3.0.0-nightly.20251209
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.
|
@@ -8,7 +8,7 @@ import { Fr } from '@aztec/foundation/fields';
|
|
|
8
8
|
import { toArray } from '@aztec/foundation/iterable';
|
|
9
9
|
import { sleep } from '@aztec/foundation/sleep';
|
|
10
10
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
11
|
-
import { CommitteeAttestation, EthAddress, L2Block, L2BlockHash, PublishedL2Block, randomBlockInfo,
|
|
11
|
+
import { CommitteeAttestation, EthAddress, L2Block, L2BlockHash, PublishedL2Block, randomBlockInfo, wrapDataInBlock } from '@aztec/stdlib/block';
|
|
12
12
|
import { SerializableContractInstance, computePublicBytecodeCommitment } from '@aztec/stdlib/contract';
|
|
13
13
|
import { LogId, PrivateLog, PublicLog } from '@aztec/stdlib/logs';
|
|
14
14
|
import { InboxLeaf } from '@aztec/stdlib/messaging';
|
|
@@ -413,11 +413,11 @@ import { MessageStoreError } from './kv_archiver_store/message_store.js';
|
|
|
413
413
|
await expect(store.getTxEffect(TxHash.random())).resolves.toBeUndefined();
|
|
414
414
|
});
|
|
415
415
|
it.each([
|
|
416
|
-
()=>
|
|
417
|
-
()=>
|
|
418
|
-
()=>
|
|
419
|
-
()=>
|
|
420
|
-
()=>
|
|
416
|
+
()=>wrapDataInBlock(blocks[0].block.body.txEffects[0], blocks[0].block),
|
|
417
|
+
()=>wrapDataInBlock(blocks[9].block.body.txEffects[3], blocks[9].block),
|
|
418
|
+
()=>wrapDataInBlock(blocks[3].block.body.txEffects[1], blocks[3].block),
|
|
419
|
+
()=>wrapDataInBlock(blocks[5].block.body.txEffects[2], blocks[5].block),
|
|
420
|
+
()=>wrapDataInBlock(blocks[1].block.body.txEffects[0], blocks[1].block)
|
|
421
421
|
])('tries to retrieves a previously stored transaction after deleted', async (getExpectedTx)=>{
|
|
422
422
|
await store.unwindBlocks(BlockNumber(blocks.length), blocks.length);
|
|
423
423
|
const expectedTx = await getExpectedTx();
|
|
@@ -428,7 +428,7 @@ import { MessageStoreError } from './kv_archiver_store/message_store.js';
|
|
|
428
428
|
await expect(store.getTxEffect(TxHash.random())).resolves.toBeUndefined();
|
|
429
429
|
});
|
|
430
430
|
it('does not fail if the block is unwound while requesting a tx', async ()=>{
|
|
431
|
-
const expectedTx = await
|
|
431
|
+
const expectedTx = await wrapDataInBlock(blocks[1].block.body.txEffects[0], blocks[1].block);
|
|
432
432
|
let done = false;
|
|
433
433
|
void (async ()=>{
|
|
434
434
|
while(!done){
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/archiver",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251209",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@aztec/blob-lib": "3.0.0-nightly.
|
|
70
|
-
"@aztec/blob-sink": "3.0.0-nightly.
|
|
71
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
72
|
-
"@aztec/epoch-cache": "3.0.0-nightly.
|
|
73
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
74
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
75
|
-
"@aztec/kv-store": "3.0.0-nightly.
|
|
76
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
77
|
-
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.
|
|
78
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
79
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
80
|
-
"@aztec/telemetry-client": "3.0.0-nightly.
|
|
69
|
+
"@aztec/blob-lib": "3.0.0-nightly.20251209",
|
|
70
|
+
"@aztec/blob-sink": "3.0.0-nightly.20251209",
|
|
71
|
+
"@aztec/constants": "3.0.0-nightly.20251209",
|
|
72
|
+
"@aztec/epoch-cache": "3.0.0-nightly.20251209",
|
|
73
|
+
"@aztec/ethereum": "3.0.0-nightly.20251209",
|
|
74
|
+
"@aztec/foundation": "3.0.0-nightly.20251209",
|
|
75
|
+
"@aztec/kv-store": "3.0.0-nightly.20251209",
|
|
76
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251209",
|
|
77
|
+
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251209",
|
|
78
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251209",
|
|
79
|
+
"@aztec/stdlib": "3.0.0-nightly.20251209",
|
|
80
|
+
"@aztec/telemetry-client": "3.0.0-nightly.20251209",
|
|
81
81
|
"lodash.groupby": "^4.6.0",
|
|
82
82
|
"lodash.omit": "^4.5.0",
|
|
83
83
|
"tslib": "^2.5.0",
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
PublishedL2Block,
|
|
21
21
|
type ValidateBlockResult,
|
|
22
22
|
randomBlockInfo,
|
|
23
|
-
|
|
23
|
+
wrapDataInBlock,
|
|
24
24
|
} from '@aztec/stdlib/block';
|
|
25
25
|
import {
|
|
26
26
|
type ContractClassPublic,
|
|
@@ -413,11 +413,11 @@ export function describeArchiverDataStore(
|
|
|
413
413
|
});
|
|
414
414
|
|
|
415
415
|
it.each([
|
|
416
|
-
() =>
|
|
417
|
-
() =>
|
|
418
|
-
() =>
|
|
419
|
-
() =>
|
|
420
|
-
() =>
|
|
416
|
+
() => wrapDataInBlock(blocks[0].block.body.txEffects[0], blocks[0].block),
|
|
417
|
+
() => wrapDataInBlock(blocks[9].block.body.txEffects[3], blocks[9].block),
|
|
418
|
+
() => wrapDataInBlock(blocks[3].block.body.txEffects[1], blocks[3].block),
|
|
419
|
+
() => wrapDataInBlock(blocks[5].block.body.txEffects[2], blocks[5].block),
|
|
420
|
+
() => wrapDataInBlock(blocks[1].block.body.txEffects[0], blocks[1].block),
|
|
421
421
|
])('tries to retrieves a previously stored transaction after deleted', async getExpectedTx => {
|
|
422
422
|
await store.unwindBlocks(BlockNumber(blocks.length), blocks.length);
|
|
423
423
|
|
|
@@ -431,7 +431,7 @@ export function describeArchiverDataStore(
|
|
|
431
431
|
});
|
|
432
432
|
|
|
433
433
|
it('does not fail if the block is unwound while requesting a tx', async () => {
|
|
434
|
-
const expectedTx = await
|
|
434
|
+
const expectedTx = await wrapDataInBlock(blocks[1].block.body.txEffects[0], blocks[1].block);
|
|
435
435
|
let done = false;
|
|
436
436
|
void (async () => {
|
|
437
437
|
while (!done) {
|