@aztec/txe 4.0.0-nightly.20260114 → 4.0.0-nightly.20260115
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.
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ArchiverDataSourceBase } from '@aztec/archiver';
|
|
2
2
|
import { type EpochNumber, type SlotNumber } from '@aztec/foundation/branded-types';
|
|
3
3
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
4
4
|
import type { EthAddress } from '@aztec/foundation/eth-address';
|
|
5
5
|
import type { AztecAsyncKVStore } from '@aztec/kv-store';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import type { L2Tips, ValidateCheckpointResult } from '@aztec/stdlib/block';
|
|
7
|
+
import type { PublishedCheckpoint } from '@aztec/stdlib/checkpoint';
|
|
8
8
|
import type { L1RollupConstants } from '@aztec/stdlib/epoch-helpers';
|
|
9
|
-
import type { BlockHeader } from '@aztec/stdlib/tx';
|
|
10
9
|
/**
|
|
11
10
|
* TXE Archiver implementation.
|
|
12
11
|
* Provides most of the endpoints needed by the node for reading from and writing to state,
|
|
13
12
|
* without needing any of the extra overhead that the Archiver itself requires (i.e. an L1 client).
|
|
14
13
|
*/
|
|
15
|
-
export declare class TXEArchiver extends
|
|
14
|
+
export declare class TXEArchiver extends ArchiverDataSourceBase {
|
|
15
|
+
private readonly updater;
|
|
16
16
|
constructor(db: AztecAsyncKVStore);
|
|
17
17
|
addCheckpoints(checkpoints: PublishedCheckpoint[], result?: ValidateCheckpointResult): Promise<boolean>;
|
|
18
18
|
getRollupAddress(): Promise<EthAddress>;
|
|
@@ -25,10 +25,7 @@ export declare class TXEArchiver extends ArchiveSourceBase {
|
|
|
25
25
|
getL2Tips(): Promise<L2Tips>;
|
|
26
26
|
getL2SlotNumber(): Promise<SlotNumber | undefined>;
|
|
27
27
|
getL2EpochNumber(): Promise<EpochNumber | undefined>;
|
|
28
|
-
getCheckpointsForEpoch(_epochNumber: EpochNumber): Promise<Checkpoint[]>;
|
|
29
|
-
getBlocksForEpoch(_epochNumber: EpochNumber): Promise<L2Block[]>;
|
|
30
|
-
getBlockHeadersForEpoch(_epochNumber: EpochNumber): Promise<BlockHeader[]>;
|
|
31
28
|
isEpochComplete(_epochNumber: EpochNumber): Promise<boolean>;
|
|
32
29
|
syncImmediate(): Promise<void>;
|
|
33
30
|
}
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJjaGl2ZXIuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdGF0ZV9tYWNoaW5lL2FyY2hpdmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxzQkFBc0IsRUFBaUQsTUFBTSxpQkFBaUIsQ0FBQztBQUV4RyxPQUFPLEVBQW9CLEtBQUssV0FBVyxFQUFFLEtBQUssVUFBVSxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFDdEcsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ3BELE9BQU8sS0FBSyxFQUFFLFVBQVUsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ2hFLE9BQU8sS0FBSyxFQUFFLGlCQUFpQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDekQsT0FBTyxLQUFLLEVBQW9DLE1BQU0sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQzlHLE9BQU8sS0FBSyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDcEUsT0FBTyxLQUFLLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUVyRTs7OztHQUlHO0FBQ0gscUJBQWEsV0FBWSxTQUF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O,CAAC,WAAW,GAAG,SAAS,CAAC,CAE1D;IAEM,eAAe,CAAC,YAAY,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAElE;IAEM,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAEpC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ArchiverDataSourceBase, ArchiverDataStoreUpdater, KVArchiverDataStore } from '@aztec/archiver';
|
|
2
2
|
import { GENESIS_ARCHIVE_ROOT } from '@aztec/constants';
|
|
3
3
|
import { CheckpointNumber } from '@aztec/foundation/branded-types';
|
|
4
4
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
@@ -6,14 +6,15 @@ import { Fr } from '@aztec/foundation/curves/bn254';
|
|
|
6
6
|
* TXE Archiver implementation.
|
|
7
7
|
* Provides most of the endpoints needed by the node for reading from and writing to state,
|
|
8
8
|
* without needing any of the extra overhead that the Archiver itself requires (i.e. an L1 client).
|
|
9
|
-
*/ export class TXEArchiver extends
|
|
9
|
+
*/ export class TXEArchiver extends ArchiverDataSourceBase {
|
|
10
|
+
updater = new ArchiverDataStoreUpdater(this.store);
|
|
10
11
|
constructor(db){
|
|
11
12
|
const store = new KVArchiverDataStore(db, 9999);
|
|
12
13
|
super(store);
|
|
13
14
|
}
|
|
14
15
|
// TXE-specific method for adding checkpoints
|
|
15
16
|
addCheckpoints(checkpoints, result) {
|
|
16
|
-
return addCheckpointsWithContractData(
|
|
17
|
+
return this.updater.addCheckpointsWithContractData(checkpoints, result);
|
|
17
18
|
}
|
|
18
19
|
// Abstract method implementations
|
|
19
20
|
getRollupAddress() {
|
|
@@ -75,15 +76,6 @@ import { Fr } from '@aztec/foundation/curves/bn254';
|
|
|
75
76
|
getL2EpochNumber() {
|
|
76
77
|
throw new Error('TXE Archiver does not implement "getL2EpochNumber"');
|
|
77
78
|
}
|
|
78
|
-
getCheckpointsForEpoch(_epochNumber) {
|
|
79
|
-
throw new Error('TXE Archiver does not implement "getCheckpointsForEpoch"');
|
|
80
|
-
}
|
|
81
|
-
getBlocksForEpoch(_epochNumber) {
|
|
82
|
-
throw new Error('TXE Archiver does not implement "getBlocksForEpoch"');
|
|
83
|
-
}
|
|
84
|
-
getBlockHeadersForEpoch(_epochNumber) {
|
|
85
|
-
throw new Error('TXE Archiver does not implement "getBlockHeadersForEpoch"');
|
|
86
|
-
}
|
|
87
79
|
isEpochComplete(_epochNumber) {
|
|
88
80
|
throw new Error('TXE Archiver does not implement "isEpochComplete"');
|
|
89
81
|
}
|
package/dest/util/encoding.d.ts
CHANGED
|
@@ -150,7 +150,7 @@ export declare const ForeignCallArgsSchema: z.ZodArray<z.ZodUnion<[z.ZodString,
|
|
|
150
150
|
error_kind: "custom";
|
|
151
151
|
} & import("@aztec/stdlib/abi").AbiType) | undefined>;
|
|
152
152
|
}>, z.ZodObject<{
|
|
153
|
-
bytecode: import("
|
|
153
|
+
bytecode: import("@aztec/foundation/schemas").ZodFor<Buffer<ArrayBufferLike>>;
|
|
154
154
|
verificationKey: z.ZodOptional<z.ZodString>;
|
|
155
155
|
debugSymbols: z.ZodString;
|
|
156
156
|
debug: z.ZodOptional<z.ZodObject<{
|
|
@@ -656,27 +656,27 @@ export declare const ForeignCallArgsSchema: z.ZodArray<z.ZodUnion<[z.ZodString,
|
|
|
656
656
|
}>;
|
|
657
657
|
}>, z.ZodIntersection<z.ZodObject<{
|
|
658
658
|
version: z.ZodLiteral<1>;
|
|
659
|
-
salt: import("
|
|
660
|
-
deployer: import("
|
|
661
|
-
currentContractClassId: import("
|
|
662
|
-
originalContractClassId: import("
|
|
663
|
-
initializationHash: import("
|
|
659
|
+
salt: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
660
|
+
deployer: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
|
|
661
|
+
currentContractClassId: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
662
|
+
originalContractClassId: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
663
|
+
initializationHash: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
664
664
|
publicKeys: z.ZodEffects<z.ZodObject<{
|
|
665
|
-
masterNullifierPublicKey: z.ZodType<import("
|
|
666
|
-
masterIncomingViewingPublicKey: z.ZodType<import("
|
|
667
|
-
masterOutgoingViewingPublicKey: z.ZodType<import("
|
|
668
|
-
masterTaggingPublicKey: z.ZodType<import("
|
|
665
|
+
masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
|
|
666
|
+
masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
|
|
667
|
+
masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
|
|
668
|
+
masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
|
|
669
669
|
}, "strip", z.ZodTypeAny, {
|
|
670
|
-
masterNullifierPublicKey: import("
|
|
671
|
-
masterIncomingViewingPublicKey: import("
|
|
672
|
-
masterOutgoingViewingPublicKey: import("
|
|
673
|
-
masterTaggingPublicKey: import("
|
|
670
|
+
masterNullifierPublicKey: import("@aztec/foundation/schemas").Point;
|
|
671
|
+
masterIncomingViewingPublicKey: import("@aztec/foundation/schemas").Point;
|
|
672
|
+
masterOutgoingViewingPublicKey: import("@aztec/foundation/schemas").Point;
|
|
673
|
+
masterTaggingPublicKey: import("@aztec/foundation/schemas").Point;
|
|
674
674
|
}, {
|
|
675
675
|
masterNullifierPublicKey: string;
|
|
676
676
|
masterIncomingViewingPublicKey: string;
|
|
677
677
|
masterOutgoingViewingPublicKey: string;
|
|
678
678
|
masterTaggingPublicKey: string;
|
|
679
|
-
}>, import("
|
|
679
|
+
}>, import("@aztec/stdlib/keys").PublicKeys, {
|
|
680
680
|
masterNullifierPublicKey: string;
|
|
681
681
|
masterIncomingViewingPublicKey: string;
|
|
682
682
|
masterOutgoingViewingPublicKey: string;
|
|
@@ -689,7 +689,7 @@ export declare const ForeignCallArgsSchema: z.ZodArray<z.ZodUnion<[z.ZodString,
|
|
|
689
689
|
currentContractClassId: Fr;
|
|
690
690
|
originalContractClassId: Fr;
|
|
691
691
|
initializationHash: Fr;
|
|
692
|
-
publicKeys: import("
|
|
692
|
+
publicKeys: import("@aztec/stdlib/keys").PublicKeys;
|
|
693
693
|
}, {
|
|
694
694
|
version: 1;
|
|
695
695
|
salt?: any;
|
|
@@ -704,7 +704,7 @@ export declare const ForeignCallArgsSchema: z.ZodArray<z.ZodUnion<[z.ZodString,
|
|
|
704
704
|
masterTaggingPublicKey: string;
|
|
705
705
|
};
|
|
706
706
|
}>, z.ZodObject<{
|
|
707
|
-
address: import("
|
|
707
|
+
address: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
|
|
708
708
|
}, "strip", z.ZodTypeAny, {
|
|
709
709
|
address: AztecAddress;
|
|
710
710
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/txe",
|
|
3
|
-
"version": "4.0.0-nightly.
|
|
3
|
+
"version": "4.0.0-nightly.20260115",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": "./dest/index.js",
|
|
6
6
|
"bin": "./dest/bin/index.js",
|
|
@@ -61,27 +61,27 @@
|
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@aztec/accounts": "4.0.0-nightly.
|
|
65
|
-
"@aztec/archiver": "4.0.0-nightly.
|
|
66
|
-
"@aztec/aztec-node": "4.0.0-nightly.
|
|
67
|
-
"@aztec/aztec.js": "4.0.0-nightly.
|
|
68
|
-
"@aztec/bb-prover": "4.0.0-nightly.
|
|
69
|
-
"@aztec/constants": "4.0.0-nightly.
|
|
70
|
-
"@aztec/foundation": "4.0.0-nightly.
|
|
71
|
-
"@aztec/key-store": "4.0.0-nightly.
|
|
72
|
-
"@aztec/kv-store": "4.0.0-nightly.
|
|
73
|
-
"@aztec/protocol-contracts": "4.0.0-nightly.
|
|
74
|
-
"@aztec/pxe": "4.0.0-nightly.
|
|
75
|
-
"@aztec/simulator": "4.0.0-nightly.
|
|
76
|
-
"@aztec/stdlib": "4.0.0-nightly.
|
|
77
|
-
"@aztec/world-state": "4.0.0-nightly.
|
|
64
|
+
"@aztec/accounts": "4.0.0-nightly.20260115",
|
|
65
|
+
"@aztec/archiver": "4.0.0-nightly.20260115",
|
|
66
|
+
"@aztec/aztec-node": "4.0.0-nightly.20260115",
|
|
67
|
+
"@aztec/aztec.js": "4.0.0-nightly.20260115",
|
|
68
|
+
"@aztec/bb-prover": "4.0.0-nightly.20260115",
|
|
69
|
+
"@aztec/constants": "4.0.0-nightly.20260115",
|
|
70
|
+
"@aztec/foundation": "4.0.0-nightly.20260115",
|
|
71
|
+
"@aztec/key-store": "4.0.0-nightly.20260115",
|
|
72
|
+
"@aztec/kv-store": "4.0.0-nightly.20260115",
|
|
73
|
+
"@aztec/protocol-contracts": "4.0.0-nightly.20260115",
|
|
74
|
+
"@aztec/pxe": "4.0.0-nightly.20260115",
|
|
75
|
+
"@aztec/simulator": "4.0.0-nightly.20260115",
|
|
76
|
+
"@aztec/stdlib": "4.0.0-nightly.20260115",
|
|
77
|
+
"@aztec/world-state": "4.0.0-nightly.20260115",
|
|
78
78
|
"zod": "^3.23.8"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@jest/globals": "^30.0.0",
|
|
82
82
|
"@types/jest": "^30.0.0",
|
|
83
83
|
"@types/node": "^22.15.17",
|
|
84
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
84
|
+
"@typescript/native-preview": "7.0.0-dev.20260113.1",
|
|
85
85
|
"jest": "^30.0.0",
|
|
86
86
|
"jest-mock-extended": "^4.0.0",
|
|
87
87
|
"ts-node": "^10.9.1",
|
|
@@ -1,27 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ArchiverDataSourceBase, ArchiverDataStoreUpdater, KVArchiverDataStore } from '@aztec/archiver';
|
|
2
2
|
import { GENESIS_ARCHIVE_ROOT } from '@aztec/constants';
|
|
3
3
|
import { CheckpointNumber, type EpochNumber, type SlotNumber } from '@aztec/foundation/branded-types';
|
|
4
4
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
5
5
|
import type { EthAddress } from '@aztec/foundation/eth-address';
|
|
6
6
|
import type { AztecAsyncKVStore } from '@aztec/kv-store';
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
L2Block,
|
|
10
|
-
type L2BlockId,
|
|
11
|
-
type L2TipId,
|
|
12
|
-
type L2Tips,
|
|
13
|
-
type ValidateCheckpointResult,
|
|
14
|
-
} from '@aztec/stdlib/block';
|
|
15
|
-
import { Checkpoint, type PublishedCheckpoint } from '@aztec/stdlib/checkpoint';
|
|
7
|
+
import type { CheckpointId, L2BlockId, L2TipId, L2Tips, ValidateCheckpointResult } from '@aztec/stdlib/block';
|
|
8
|
+
import type { PublishedCheckpoint } from '@aztec/stdlib/checkpoint';
|
|
16
9
|
import type { L1RollupConstants } from '@aztec/stdlib/epoch-helpers';
|
|
17
|
-
import type { BlockHeader } from '@aztec/stdlib/tx';
|
|
18
10
|
|
|
19
11
|
/**
|
|
20
12
|
* TXE Archiver implementation.
|
|
21
13
|
* Provides most of the endpoints needed by the node for reading from and writing to state,
|
|
22
14
|
* without needing any of the extra overhead that the Archiver itself requires (i.e. an L1 client).
|
|
23
15
|
*/
|
|
24
|
-
export class TXEArchiver extends
|
|
16
|
+
export class TXEArchiver extends ArchiverDataSourceBase {
|
|
17
|
+
private readonly updater = new ArchiverDataStoreUpdater(this.store);
|
|
18
|
+
|
|
25
19
|
constructor(db: AztecAsyncKVStore) {
|
|
26
20
|
const store = new KVArchiverDataStore(db, 9999);
|
|
27
21
|
super(store);
|
|
@@ -29,7 +23,7 @@ export class TXEArchiver extends ArchiveSourceBase {
|
|
|
29
23
|
|
|
30
24
|
// TXE-specific method for adding checkpoints
|
|
31
25
|
public addCheckpoints(checkpoints: PublishedCheckpoint[], result?: ValidateCheckpointResult): Promise<boolean> {
|
|
32
|
-
return addCheckpointsWithContractData(
|
|
26
|
+
return this.updater.addCheckpointsWithContractData(checkpoints, result);
|
|
33
27
|
}
|
|
34
28
|
|
|
35
29
|
// Abstract method implementations
|
|
@@ -94,18 +88,6 @@ export class TXEArchiver extends ArchiveSourceBase {
|
|
|
94
88
|
throw new Error('TXE Archiver does not implement "getL2EpochNumber"');
|
|
95
89
|
}
|
|
96
90
|
|
|
97
|
-
public getCheckpointsForEpoch(_epochNumber: EpochNumber): Promise<Checkpoint[]> {
|
|
98
|
-
throw new Error('TXE Archiver does not implement "getCheckpointsForEpoch"');
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
public getBlocksForEpoch(_epochNumber: EpochNumber): Promise<L2Block[]> {
|
|
102
|
-
throw new Error('TXE Archiver does not implement "getBlocksForEpoch"');
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
public getBlockHeadersForEpoch(_epochNumber: EpochNumber): Promise<BlockHeader[]> {
|
|
106
|
-
throw new Error('TXE Archiver does not implement "getBlockHeadersForEpoch"');
|
|
107
|
-
}
|
|
108
|
-
|
|
109
91
|
public isEpochComplete(_epochNumber: EpochNumber): Promise<boolean> {
|
|
110
92
|
throw new Error('TXE Archiver does not implement "isEpochComplete"');
|
|
111
93
|
}
|