@aztec-labs/archiver 6.0.0-nightly.20260829

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.
Files changed (174) hide show
  1. package/README.md +178 -0
  2. package/dest/archiver.d.ts +194 -0
  3. package/dest/archiver.d.ts.map +1 -0
  4. package/dest/archiver.js +948 -0
  5. package/dest/config.d.ts +34 -0
  6. package/dest/config.d.ts.map +1 -0
  7. package/dest/config.js +100 -0
  8. package/dest/errors.d.ts +97 -0
  9. package/dest/errors.d.ts.map +1 -0
  10. package/dest/errors.js +141 -0
  11. package/dest/factory.d.ts +32 -0
  12. package/dest/factory.d.ts.map +1 -0
  13. package/dest/factory.js +183 -0
  14. package/dest/index.d.ts +20 -0
  15. package/dest/index.d.ts.map +1 -0
  16. package/dest/index.js +18 -0
  17. package/dest/interfaces.d.ts +9 -0
  18. package/dest/interfaces.d.ts.map +1 -0
  19. package/dest/interfaces.js +3 -0
  20. package/dest/l1/bin/retrieve-calldata.d.ts +3 -0
  21. package/dest/l1/bin/retrieve-calldata.d.ts.map +1 -0
  22. package/dest/l1/bin/retrieve-calldata.js +152 -0
  23. package/dest/l1/calldata_retriever.d.ts +143 -0
  24. package/dest/l1/calldata_retriever.d.ts.map +1 -0
  25. package/dest/l1/calldata_retriever.js +413 -0
  26. package/dest/l1/data_retrieval.d.ts +102 -0
  27. package/dest/l1/data_retrieval.d.ts.map +1 -0
  28. package/dest/l1/data_retrieval.js +308 -0
  29. package/dest/l1/debug_tx.d.ts +19 -0
  30. package/dest/l1/debug_tx.d.ts.map +1 -0
  31. package/dest/l1/debug_tx.js +73 -0
  32. package/dest/l1/spire_proposer.d.ts +70 -0
  33. package/dest/l1/spire_proposer.d.ts.map +1 -0
  34. package/dest/l1/spire_proposer.js +149 -0
  35. package/dest/l1/trace_tx.d.ts +43 -0
  36. package/dest/l1/trace_tx.d.ts.map +1 -0
  37. package/dest/l1/trace_tx.js +91 -0
  38. package/dest/l1/types.d.ts +12 -0
  39. package/dest/l1/types.d.ts.map +1 -0
  40. package/dest/l1/types.js +3 -0
  41. package/dest/l1/validate_historical_logs.d.ts +23 -0
  42. package/dest/l1/validate_historical_logs.d.ts.map +1 -0
  43. package/dest/l1/validate_historical_logs.js +108 -0
  44. package/dest/l1/validate_trace.d.ts +32 -0
  45. package/dest/l1/validate_trace.d.ts.map +1 -0
  46. package/dest/l1/validate_trace.js +154 -0
  47. package/dest/modules/contract_data_source_adapter.d.ts +25 -0
  48. package/dest/modules/contract_data_source_adapter.d.ts.map +1 -0
  49. package/dest/modules/contract_data_source_adapter.js +32 -0
  50. package/dest/modules/data_source_base.d.ts +116 -0
  51. package/dest/modules/data_source_base.d.ts.map +1 -0
  52. package/dest/modules/data_source_base.js +334 -0
  53. package/dest/modules/data_store_updater.d.ts +105 -0
  54. package/dest/modules/data_store_updater.d.ts.map +1 -0
  55. package/dest/modules/data_store_updater.js +392 -0
  56. package/dest/modules/instrumentation.d.ts +63 -0
  57. package/dest/modules/instrumentation.d.ts.map +1 -0
  58. package/dest/modules/instrumentation.js +166 -0
  59. package/dest/modules/l1_synchronizer.d.ts +77 -0
  60. package/dest/modules/l1_synchronizer.d.ts.map +1 -0
  61. package/dest/modules/l1_synchronizer.js +1369 -0
  62. package/dest/modules/outbox_trees_resolver.d.ts +64 -0
  63. package/dest/modules/outbox_trees_resolver.d.ts.map +1 -0
  64. package/dest/modules/outbox_trees_resolver.js +184 -0
  65. package/dest/modules/validation.d.ts +40 -0
  66. package/dest/modules/validation.d.ts.map +1 -0
  67. package/dest/modules/validation.js +122 -0
  68. package/dest/store/block_store.d.ts +304 -0
  69. package/dest/store/block_store.d.ts.map +1 -0
  70. package/dest/store/block_store.js +1252 -0
  71. package/dest/store/contract_class_store.d.ts +31 -0
  72. package/dest/store/contract_class_store.d.ts.map +1 -0
  73. package/dest/store/contract_class_store.js +98 -0
  74. package/dest/store/contract_instance_store.d.ts +51 -0
  75. package/dest/store/contract_instance_store.d.ts.map +1 -0
  76. package/dest/store/contract_instance_store.js +129 -0
  77. package/dest/store/data_stores.d.ts +68 -0
  78. package/dest/store/data_stores.d.ts.map +1 -0
  79. package/dest/store/data_stores.js +54 -0
  80. package/dest/store/function_names_cache.d.ts +17 -0
  81. package/dest/store/function_names_cache.d.ts.map +1 -0
  82. package/dest/store/function_names_cache.js +30 -0
  83. package/dest/store/l2_tips_cache.d.ts +25 -0
  84. package/dest/store/l2_tips_cache.d.ts.map +1 -0
  85. package/dest/store/l2_tips_cache.js +26 -0
  86. package/dest/store/log_store.d.ts +59 -0
  87. package/dest/store/log_store.d.ts.map +1 -0
  88. package/dest/store/log_store.js +310 -0
  89. package/dest/store/log_store_codec.d.ts +78 -0
  90. package/dest/store/log_store_codec.d.ts.map +1 -0
  91. package/dest/store/log_store_codec.js +110 -0
  92. package/dest/store/message_store.d.ts +111 -0
  93. package/dest/store/message_store.d.ts.map +1 -0
  94. package/dest/store/message_store.js +522 -0
  95. package/dest/structs/data_retrieval.d.ts +27 -0
  96. package/dest/structs/data_retrieval.d.ts.map +1 -0
  97. package/dest/structs/data_retrieval.js +5 -0
  98. package/dest/structs/inbox_message.d.ts +17 -0
  99. package/dest/structs/inbox_message.d.ts.map +1 -0
  100. package/dest/structs/inbox_message.js +33 -0
  101. package/dest/structs/published.d.ts +2 -0
  102. package/dest/structs/published.d.ts.map +1 -0
  103. package/dest/structs/published.js +1 -0
  104. package/dest/test/fake_l1_state.d.ts +220 -0
  105. package/dest/test/fake_l1_state.d.ts.map +1 -0
  106. package/dest/test/fake_l1_state.js +565 -0
  107. package/dest/test/index.d.ts +5 -0
  108. package/dest/test/index.d.ts.map +1 -0
  109. package/dest/test/index.js +6 -0
  110. package/dest/test/mock_archiver.d.ts +35 -0
  111. package/dest/test/mock_archiver.d.ts.map +1 -0
  112. package/dest/test/mock_archiver.js +93 -0
  113. package/dest/test/mock_l1_to_l2_message_source.d.ts +24 -0
  114. package/dest/test/mock_l1_to_l2_message_source.d.ts.map +1 -0
  115. package/dest/test/mock_l1_to_l2_message_source.js +79 -0
  116. package/dest/test/mock_l2_block_source.d.ts +139 -0
  117. package/dest/test/mock_l2_block_source.d.ts.map +1 -0
  118. package/dest/test/mock_l2_block_source.js +489 -0
  119. package/dest/test/mock_structs.d.ts +92 -0
  120. package/dest/test/mock_structs.d.ts.map +1 -0
  121. package/dest/test/mock_structs.js +188 -0
  122. package/dest/test/noop_l1_archiver.d.ts +34 -0
  123. package/dest/test/noop_l1_archiver.d.ts.map +1 -0
  124. package/dest/test/noop_l1_archiver.js +88 -0
  125. package/package.json +108 -0
  126. package/src/archiver.ts +785 -0
  127. package/src/config.ts +133 -0
  128. package/src/errors.ts +211 -0
  129. package/src/factory.ts +262 -0
  130. package/src/index.ts +29 -0
  131. package/src/interfaces.ts +9 -0
  132. package/src/l1/README.md +55 -0
  133. package/src/l1/bin/retrieve-calldata.ts +194 -0
  134. package/src/l1/calldata_retriever.ts +529 -0
  135. package/src/l1/data_retrieval.ts +498 -0
  136. package/src/l1/debug_tx.ts +98 -0
  137. package/src/l1/spire_proposer.ts +151 -0
  138. package/src/l1/trace_tx.ts +127 -0
  139. package/src/l1/types.ts +12 -0
  140. package/src/l1/validate_historical_logs.ts +140 -0
  141. package/src/l1/validate_trace.ts +228 -0
  142. package/src/modules/contract_data_source_adapter.ts +46 -0
  143. package/src/modules/data_source_base.ts +482 -0
  144. package/src/modules/data_store_updater.ts +520 -0
  145. package/src/modules/instrumentation.ts +217 -0
  146. package/src/modules/l1_synchronizer.ts +1296 -0
  147. package/src/modules/outbox_trees_resolver.ts +220 -0
  148. package/src/modules/validation.ts +186 -0
  149. package/src/store/block_store.ts +1604 -0
  150. package/src/store/contract_class_store.ts +126 -0
  151. package/src/store/contract_instance_store.ts +178 -0
  152. package/src/store/data_stores.ts +103 -0
  153. package/src/store/function_names_cache.ts +37 -0
  154. package/src/store/l2_tips_cache.ts +35 -0
  155. package/src/store/log_store.ts +380 -0
  156. package/src/store/log_store_codec.ts +143 -0
  157. package/src/store/message_store.ts +621 -0
  158. package/src/structs/data_retrieval.ts +27 -0
  159. package/src/structs/inbox_message.ts +48 -0
  160. package/src/structs/published.ts +1 -0
  161. package/src/test/fake_l1_state.ts +807 -0
  162. package/src/test/fixtures/debug_traceTransaction-multicall3.json +88 -0
  163. package/src/test/fixtures/debug_traceTransaction-multiplePropose.json +153 -0
  164. package/src/test/fixtures/debug_traceTransaction-proxied.json +122 -0
  165. package/src/test/fixtures/trace_transaction-multicall3.json +65 -0
  166. package/src/test/fixtures/trace_transaction-multiplePropose.json +319 -0
  167. package/src/test/fixtures/trace_transaction-proxied.json +128 -0
  168. package/src/test/fixtures/trace_transaction-randomRevert.json +216 -0
  169. package/src/test/index.ts +7 -0
  170. package/src/test/mock_archiver.ts +122 -0
  171. package/src/test/mock_l1_to_l2_message_source.ts +81 -0
  172. package/src/test/mock_l2_block_source.ts +620 -0
  173. package/src/test/mock_structs.ts +317 -0
  174. package/src/test/noop_l1_archiver.ts +157 -0
@@ -0,0 +1,34 @@
1
+ import { type BlobClientConfig } from '@aztec-labs/blob-client/client/config';
2
+ import { type L1ContractsConfig } from '@aztec-labs/ethereum/config';
3
+ import { type L1ReaderConfig } from '@aztec-labs/ethereum/l1-reader';
4
+ import { type ConfigMappingsType } from '@aztec-labs/foundation/config';
5
+ import { type ChainConfig, type SequencerConfig } from '@aztec-labs/stdlib/config';
6
+ import type { ArchiverSpecificConfig } from '@aztec-labs/stdlib/interfaces/server';
7
+ /**
8
+ * The archiver configuration.
9
+ * There are 2 polling intervals used in this configuration. The first is the archiver polling interval, archiverPollingIntervalMS.
10
+ * This is the interval between successive calls to eth_blockNumber via viem.
11
+ * Results of calls to eth_blockNumber are cached by viem with this cache being updated periodically at the interval specified by viemPollingIntervalMS.
12
+ * As a result the maximum observed polling time for new blocks will be viemPollingIntervalMS + archiverPollingIntervalMS.
13
+ */
14
+ export type ArchiverConfig = ArchiverSpecificConfig & L1ReaderConfig & L1ContractsConfig & BlobClientConfig & ChainConfig & Pick<SequencerConfig, 'blockDurationMs' | 'checkpointProposalSyncGraceSeconds'>;
15
+ export declare const archiverConfigMappings: ConfigMappingsType<ArchiverConfig>;
16
+ /**
17
+ * Returns the archiver configuration from the environment variables.
18
+ * Note: If an environment variable is not set, the default value is used.
19
+ * @returns The archiver configuration.
20
+ */
21
+ export declare function getArchiverConfigFromEnv(): ArchiverConfig;
22
+ /** Extracts the archiver-specific configuration from the full ArchiverConfig */
23
+ export declare function mapArchiverConfig(config: Partial<ArchiverConfig>): {
24
+ pollingIntervalMs: number | undefined;
25
+ batchSize: number | undefined;
26
+ skipValidateCheckpointAttestations: boolean | undefined;
27
+ skipPromoteProposedCheckpointDuringL1Sync: boolean | undefined;
28
+ maxAllowedEthClientDriftSeconds: number | undefined;
29
+ ethereumAllowNoDebugHosts: boolean | undefined;
30
+ skipHistoricalLogsCheck: boolean | undefined;
31
+ orphanPruneNoProposalTolerance: number | undefined;
32
+ skipOrphanProposedBlockPruning: boolean | undefined;
33
+ };
34
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxLQUFLLGdCQUFnQixFQUEyQixNQUFNLHVDQUF1QyxDQUFDO0FBQ3ZHLE9BQU8sRUFBRSxLQUFLLGlCQUFpQixFQUE2QixNQUFNLDZCQUE2QixDQUFDO0FBQ2hHLE9BQU8sRUFBRSxLQUFLLGNBQWMsRUFBMEIsTUFBTSxnQ0FBZ0MsQ0FBQztBQUM3RixPQUFPLEVBQ0wsS0FBSyxrQkFBa0IsRUFLeEIsTUFBTSwrQkFBK0IsQ0FBQztBQUN2QyxPQUFPLEVBQUUsS0FBSyxXQUFXLEVBQUUsS0FBSyxlQUFlLEVBQXVCLE1BQU0sMkJBQTJCLENBQUM7QUFDeEcsT0F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CAAC,CAAC;AAElF,eAAO,MAAM,sBAAsB,EAAE,kBAAkB,CAAC,cAAc,CAgFrE,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,wBAAwB,IAAI,cAAc,CAEzD;AAED,gFAAgF;AAChF,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC;;;;;;;;;;EAYhE"}
package/dest/config.js ADDED
@@ -0,0 +1,100 @@
1
+ import { blobClientConfigMapping } from '@aztec-labs/blob-client/client/config';
2
+ import { l1ContractsConfigMappings } from '@aztec-labs/ethereum/config';
3
+ import { l1ReaderConfigMappings } from '@aztec-labs/ethereum/l1-reader';
4
+ import { booleanConfigHelper, getConfigFromMappings, numberConfigHelper, optionalNumberConfigHelper } from '@aztec-labs/foundation/config';
5
+ import { chainConfigMappings } from '@aztec-labs/stdlib/config';
6
+ import { DEFAULT_ORPHAN_PRUNE_NO_PROPOSAL_TOLERANCE } from '@aztec-labs/stdlib/timetable';
7
+ export const archiverConfigMappings = {
8
+ ...blobClientConfigMapping,
9
+ archiverPollingIntervalMS: {
10
+ env: 'ARCHIVER_POLLING_INTERVAL_MS',
11
+ description: 'The polling interval in ms for retrieving new L2 blocks and encrypted logs.',
12
+ ...numberConfigHelper(500)
13
+ },
14
+ archiverBatchSize: {
15
+ env: 'ARCHIVER_BATCH_SIZE',
16
+ description: 'The number of L2 blocks the archiver will attempt to download at a time.',
17
+ ...numberConfigHelper(100)
18
+ },
19
+ archiverStoreMapSizeKb: {
20
+ env: 'ARCHIVER_STORE_MAP_SIZE_KB',
21
+ ...optionalNumberConfigHelper(),
22
+ description: 'The maximum possible size of the archiver DB in KB. Overwrites the general dataStoreMapSizeKb.'
23
+ },
24
+ blockDurationMs: {
25
+ env: 'SEQ_BLOCK_DURATION_MS',
26
+ description: 'Duration per block in milliseconds when building multiple blocks per slot. Used to derive orphan proposed block pruning timing.',
27
+ ...optionalNumberConfigHelper()
28
+ },
29
+ checkpointProposalSyncGraceSeconds: {
30
+ env: 'CHECKPOINT_PROPOSAL_SYNC_GRACE_SECONDS',
31
+ description: 'Consensus grace in seconds for a received checkpoint proposal to materialize into local proposed state.',
32
+ ...optionalNumberConfigHelper()
33
+ },
34
+ skipValidateCheckpointAttestations: {
35
+ description: 'Skip validating checkpoint attestations (for testing purposes only)',
36
+ ...booleanConfigHelper(false)
37
+ },
38
+ skipPromoteProposedCheckpointDuringL1Sync: {
39
+ description: 'Skip promoting proposed checkpoints during L1 sync (for testing purposes only)',
40
+ ...booleanConfigHelper(false)
41
+ },
42
+ maxAllowedEthClientDriftSeconds: {
43
+ env: 'MAX_ALLOWED_ETH_CLIENT_DRIFT_SECONDS',
44
+ description: 'Maximum allowed drift in seconds between the Ethereum client and current time.',
45
+ ...numberConfigHelper(300)
46
+ },
47
+ ethereumAllowNoDebugHosts: {
48
+ env: 'ETHEREUM_ALLOW_NO_DEBUG_HOSTS',
49
+ description: 'Whether to allow starting the archiver without debug/trace method support on Ethereum hosts',
50
+ ...booleanConfigHelper(true)
51
+ },
52
+ archiverSkipHistoricalLogsCheck: {
53
+ env: 'ARCHIVER_SKIP_HISTORICAL_LOGS_CHECK',
54
+ description: 'Skip the startup check that probes the L1 RPC for historical Rollup contract logs. ' + 'Set to true to bypass the check when the connected RPC node is known to prune old logs.',
55
+ ...booleanConfigHelper(false)
56
+ },
57
+ orphanPruneNoProposalTolerance: {
58
+ env: 'ARCHIVER_ORPHAN_PRUNE_NO_PROPOSAL_TOLERANCE',
59
+ description: 'Local tolerance in seconds before pruning an orphan block when no checkpoint proposal was received.',
60
+ ...numberConfigHelper(DEFAULT_ORPHAN_PRUNE_NO_PROPOSAL_TOLERANCE)
61
+ },
62
+ skipOrphanProposedBlockPruning: {
63
+ env: 'ARCHIVER_SKIP_ORPHAN_PROPOSED_BLOCK_PRUNING',
64
+ description: 'Skip pruning orphan proposed blocks that have no matching proposed checkpoint.',
65
+ ...booleanConfigHelper(false)
66
+ },
67
+ testPreloadStandardContracts: {
68
+ env: 'TEST_PRELOAD_STANDARD_CONTRACTS',
69
+ description: 'Preload the standard contracts (AuthRegistry, PublicChecks, HandshakeRegistry) into the contract store at ' + 'block 0. For test environments only, and only safe when genesis seeds the matching registration/deployment ' + 'nullifiers; otherwise a later onchain publish would collide with the block-0 preload.',
70
+ ...booleanConfigHelper(false)
71
+ },
72
+ ...chainConfigMappings,
73
+ ...l1ReaderConfigMappings,
74
+ viemPollingIntervalMS: {
75
+ env: 'ARCHIVER_VIEM_POLLING_INTERVAL_MS',
76
+ description: 'The polling interval viem uses in ms',
77
+ ...numberConfigHelper(1000)
78
+ },
79
+ ...l1ContractsConfigMappings
80
+ };
81
+ /**
82
+ * Returns the archiver configuration from the environment variables.
83
+ * Note: If an environment variable is not set, the default value is used.
84
+ * @returns The archiver configuration.
85
+ */ export function getArchiverConfigFromEnv() {
86
+ return getConfigFromMappings(archiverConfigMappings);
87
+ }
88
+ /** Extracts the archiver-specific configuration from the full ArchiverConfig */ export function mapArchiverConfig(config) {
89
+ return {
90
+ pollingIntervalMs: config.archiverPollingIntervalMS,
91
+ batchSize: config.archiverBatchSize,
92
+ skipValidateCheckpointAttestations: config.skipValidateCheckpointAttestations,
93
+ skipPromoteProposedCheckpointDuringL1Sync: config.skipPromoteProposedCheckpointDuringL1Sync,
94
+ maxAllowedEthClientDriftSeconds: config.maxAllowedEthClientDriftSeconds,
95
+ ethereumAllowNoDebugHosts: config.ethereumAllowNoDebugHosts,
96
+ skipHistoricalLogsCheck: config.archiverSkipHistoricalLogsCheck,
97
+ orphanPruneNoProposalTolerance: config.orphanPruneNoProposalTolerance,
98
+ skipOrphanProposedBlockPruning: config.skipOrphanProposedBlockPruning
99
+ };
100
+ }
@@ -0,0 +1,97 @@
1
+ import type { BlockNumber, CheckpointNumber } from '@aztec-labs/foundation/branded-types';
2
+ import type { Fr } from '@aztec-labs/foundation/schemas';
3
+ export declare class NoBlobBodiesFoundError extends Error {
4
+ constructor(l2BlockNum: number);
5
+ }
6
+ export declare class BlockNumberNotSequentialError extends Error {
7
+ constructor(newBlockNumber: number, previous: number | undefined);
8
+ }
9
+ export declare class InitialCheckpointNumberNotSequentialError extends Error {
10
+ readonly newCheckpointNumber: number;
11
+ readonly previousCheckpointNumber: number | undefined;
12
+ constructor(newCheckpointNumber: number, previousCheckpointNumber: number | undefined);
13
+ }
14
+ export declare class CheckpointNumberNotSequentialError extends Error {
15
+ readonly newCheckpointNumber: CheckpointNumber;
16
+ readonly previousCheckpointNumber: CheckpointNumber | undefined;
17
+ constructor(newCheckpointNumber: CheckpointNumber, previousCheckpointNumber: CheckpointNumber | undefined, source?: 'proposed' | 'confirmed');
18
+ }
19
+ /** Thrown when a proposed block carries a checkpoint number that does not follow the latest one. */
20
+ export declare class BlockCheckpointNumberNotSequentialError extends Error {
21
+ constructor(blockNumber: BlockNumber, blockCheckpointNumber: CheckpointNumber, previous: CheckpointNumber | undefined);
22
+ }
23
+ export declare class BlockIndexNotSequentialError extends Error {
24
+ constructor(newBlockIndex: number, previousBlockIndex: number | undefined);
25
+ }
26
+ export declare class BlockArchiveNotConsistentError extends Error {
27
+ constructor(newBlockNumber: number, previousBlockNumber: number | undefined, newBlockArchive: Fr, previousBlockArchive: Fr);
28
+ }
29
+ export declare class CheckpointNotFoundError extends Error {
30
+ constructor(checkpointNumber: number);
31
+ }
32
+ export declare class BlockNotFoundError extends Error {
33
+ constructor(blockNumber: number);
34
+ }
35
+ /** Thrown when a proposed block matches a block that was already checkpointed. This is expected for late proposals. */
36
+ export declare class BlockAlreadyCheckpointedError extends Error {
37
+ readonly blockNumber: number;
38
+ constructor(blockNumber: number);
39
+ }
40
+ /**
41
+ * Thrown when a query names an Inbox bucket this archiver has not synced. Distinguishes "not synced yet, retry once
42
+ * L1 sync catches up" from a genuinely empty result.
43
+ */
44
+ export declare class InboxBucketNotSyncedError extends Error {
45
+ readonly bucketSeq: bigint;
46
+ constructor(bucketSeq: bigint);
47
+ }
48
+ /**
49
+ * Thrown when a cumulative Inbox message count does not resolve to a bucket boundary this archiver has synced, either
50
+ * because the count sits inside a bucket or because the bucket is not synced yet.
51
+ */
52
+ export declare class InboxBucketBoundaryNotSyncedError extends Error {
53
+ readonly totalMsgCount: bigint;
54
+ constructor(totalMsgCount: bigint);
55
+ }
56
+ /** Thrown when a proposed checkpoint number is stale (already processed). */
57
+ export declare class ProposedCheckpointStaleError extends Error {
58
+ readonly proposedCheckpointNumber: number;
59
+ readonly currentProposedNumber: number;
60
+ constructor(proposedCheckpointNumber: number, currentProposedNumber: number);
61
+ }
62
+ /** Thrown when a proposed checkpoint number is not the expected latestTip + 1. */
63
+ export declare class ProposedCheckpointNotSequentialError extends Error {
64
+ readonly proposedCheckpointNumber: number;
65
+ readonly latestTipNumber: number;
66
+ constructor(proposedCheckpointNumber: number, latestTipNumber: number);
67
+ }
68
+ /** Thrown when a proposed checkpoint or block L2 slot has already expired on L1. */
69
+ export declare class BlockOrCheckpointSlotExpiredError extends Error {
70
+ readonly slot: number;
71
+ readonly nextSlotStart: bigint;
72
+ readonly l1TimestampSynced: bigint | undefined;
73
+ constructor(slot: number, nextSlotStart: bigint, l1TimestampSynced: bigint | undefined);
74
+ }
75
+ /** Thrown when attempting to promote a proposed checkpoint but no proposed checkpoint exists in the store. */
76
+ export declare class NoProposedCheckpointToPromoteError extends Error {
77
+ constructor();
78
+ }
79
+ /** Thrown when the archive root of the proposed checkpoint does not match the expected one. */
80
+ export declare class ProposedCheckpointArchiveRootMismatchError extends Error {
81
+ readonly expectedArchiveRoot: Fr;
82
+ readonly actualArchiveRoot: Fr;
83
+ constructor(expectedArchiveRoot: Fr, actualArchiveRoot: Fr);
84
+ }
85
+ /** Thrown when the proposed checkpoint does not directly follow the latest confirmed checkpoint. */
86
+ export declare class ProposedCheckpointPromotionNotSequentialError extends Error {
87
+ readonly proposedCheckpointNumber: number;
88
+ readonly latestCheckpointNumber: number;
89
+ constructor(proposedCheckpointNumber: number, latestCheckpointNumber: number);
90
+ }
91
+ /** Thrown when a proposed block conflicts with an already checkpointed block (different content). */
92
+ export declare class CannotOverwriteCheckpointedBlockError extends Error {
93
+ readonly blockNumber: number;
94
+ readonly lastCheckpointedBlock: number;
95
+ constructor(blockNumber: number, lastCheckpointedBlock: number);
96
+ }
97
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3JzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvZXJyb3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxFQUFFLFdBQVcsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQzFGLE9BQU8sS0FBSyxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBRXpELHFCQUFhLHNCQUF1QixTQUFRLEtBQUs7SUFDL0MsWUFBWSxVQUFVLEVBQUUsTUFBTSxFQUc3QjtDQUNGO0FBRUQscUJBQWEsNkJBQThCLFNBQVEsS0FBSztJQUN0RCxZQUFZLGNBQWMsRUFBRSxNQUFNLEVBQUUsUUFBUSxFQUFFLE1BQU0sR0FBRyxTQUFTLEVBRy9EO0NBQ0Y7QUFFRCxxQkFBYSx5Q0FBMEMsU0FBUSxLQUFLO2FBRWhELG1CQUFtQixFQUFFLE1BQU07YUFDM0Isd0JBQXdCLEVBQUUsTUFBTSxHQUFHLFNBQVM7SUFGOUQsWUFDa0IsbUJBQW1CLEVBQUUsTUFBTSxFQUMzQix3QkFBd0IsRUFBRSxNQUFNLEdBQUcsU0FBUyxFQVE3RDtDQUNGO0FBRUQscUJBQWEsa0NBQW1DLFNBQVEsS0FBSzthQUV6QyxtQkFBbUIsRUFBRSxnQkFBZ0I7YUFDckMsd0JBQXdCLEVBQUUsZ0JBQWdCLEdBQUcsU0FBUztJQUZ4RSxZQUNrQixtQkFBbUIsRUFBRSxnQkFBZ0IsRUFDckMsd0JBQXdCLEVBQUUsZ0JBQWdCLEdB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,oCAAqC,SAAQ,KAAK;aAE3C,wBAAwB,EAAE,MAAM;aAChC,eAAe,EAAE,MAAM;IAFzC,YACkB,wBAAwB,EAAE,MAAM,EAChC,eAAe,EAAE,MAAM,EAMxC;CACF;AAED,oFAAoF;AACpF,qBAAa,iCAAkC,SAAQ,KAAK;aAExC,IAAI,EAAE,MAAM;aACZ,aAAa,EAAE,MAAM;aACrB,iBAAiB,EAAE,MAAM,GAAG,SAAS;IAHvD,YACkB,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,MAAM,GAAG,SAAS,EAOtD;CACF;AAED,8GAA8G;AAC9G,qBAAa,kCAAmC,SAAQ,KAAK;IAC3D,cAGC;CACF;AAED,+FAA+F;AAC/F,qBAAa,0CAA2C,SAAQ,KAAK;aAEjD,mBAAmB,EAAE,EAAE;aACvB,iBAAiB,EAAE,EAAE;IAFvC,YACkB,mBAAmB,EAAE,EAAE,EACvB,iBAAiB,EAAE,EAAE,EAMtC;CACF;AAED,oGAAoG;AACpG,qBAAa,6CAA8C,SAAQ,KAAK;aAEpD,wBAAwB,EAAE,MAAM;aAChC,sBAAsB,EAAE,MAAM;IAFhD,YACkB,wBAAwB,EAAE,MAAM,EAChC,sBAAsB,EAAE,MAAM,EAM/C;CACF;AAED,qGAAqG;AACrG,qBAAa,qCAAsC,SAAQ,KAAK;aAE5C,WAAW,EAAE,MAAM;aACnB,qBAAqB,EAAE,MAAM;IAF/C,YACkB,WAAW,EAAE,MAAM,EACnB,qBAAqB,EAAE,MAAM,EAM9C;CACF"}
package/dest/errors.js ADDED
@@ -0,0 +1,141 @@
1
+ export class NoBlobBodiesFoundError extends Error {
2
+ constructor(l2BlockNum){
3
+ super(`No blob bodies found for block ${l2BlockNum}`);
4
+ this.name = 'NoBlobBodiesFoundError';
5
+ }
6
+ }
7
+ export class BlockNumberNotSequentialError extends Error {
8
+ constructor(newBlockNumber, previous){
9
+ super(`Cannot insert new block ${newBlockNumber} given previous block number is ${previous ?? 'undefined'}`);
10
+ this.name = 'BlockNumberNotSequentialError';
11
+ }
12
+ }
13
+ export class InitialCheckpointNumberNotSequentialError extends Error {
14
+ newCheckpointNumber;
15
+ previousCheckpointNumber;
16
+ constructor(newCheckpointNumber, previousCheckpointNumber){
17
+ super(`Cannot insert new checkpoint ${newCheckpointNumber} given previous checkpoint number in store is ${previousCheckpointNumber ?? 'undefined'}`), this.newCheckpointNumber = newCheckpointNumber, this.previousCheckpointNumber = previousCheckpointNumber;
18
+ this.name = 'InitialCheckpointNumberNotSequentialError';
19
+ }
20
+ }
21
+ export class CheckpointNumberNotSequentialError extends Error {
22
+ newCheckpointNumber;
23
+ previousCheckpointNumber;
24
+ constructor(newCheckpointNumber, previousCheckpointNumber, source){
25
+ const qualifier = source ? `${source} ` : '';
26
+ super(`Cannot insert new checkpoint ${newCheckpointNumber} given previous ${qualifier}checkpoint number is ${previousCheckpointNumber ?? 'undefined'}`), this.newCheckpointNumber = newCheckpointNumber, this.previousCheckpointNumber = previousCheckpointNumber;
27
+ this.name = 'CheckpointNumberNotSequentialError';
28
+ }
29
+ }
30
+ /** Thrown when a proposed block carries a checkpoint number that does not follow the latest one. */ export class BlockCheckpointNumberNotSequentialError extends Error {
31
+ constructor(blockNumber, blockCheckpointNumber, previous){
32
+ super(`Cannot insert new block ${blockNumber} for checkpoint ${blockCheckpointNumber} given previous checkpoint number is ${previous ?? 'undefined'}`);
33
+ this.name = 'BlockCheckpointNumberNotSequentialError';
34
+ }
35
+ }
36
+ export class BlockIndexNotSequentialError extends Error {
37
+ constructor(newBlockIndex, previousBlockIndex){
38
+ super(`Cannot insert new block at checkpoint index ${newBlockIndex} given previous block index is ${previousBlockIndex ?? 'undefined'}`);
39
+ this.name = 'BlockIndexNotSequentialError';
40
+ }
41
+ }
42
+ export class BlockArchiveNotConsistentError extends Error {
43
+ constructor(newBlockNumber, previousBlockNumber, newBlockArchive, previousBlockArchive){
44
+ super(`Cannot insert new block number ${newBlockNumber} with archive ${newBlockArchive.toString()} previous block number is ${previousBlockNumber ?? 'undefined'}, previous archive is ${previousBlockArchive?.toString() ?? 'undefined'}`);
45
+ this.name = 'BlockArchiveNotConsistentError';
46
+ }
47
+ }
48
+ export class CheckpointNotFoundError extends Error {
49
+ constructor(checkpointNumber){
50
+ super(`Failed to find expected checkpoint number ${checkpointNumber}`);
51
+ this.name = 'CheckpointNotFoundError';
52
+ }
53
+ }
54
+ export class BlockNotFoundError extends Error {
55
+ constructor(blockNumber){
56
+ super(`Failed to find expected block number ${blockNumber}`);
57
+ this.name = 'BlockNotFoundError';
58
+ }
59
+ }
60
+ /** Thrown when a proposed block matches a block that was already checkpointed. This is expected for late proposals. */ export class BlockAlreadyCheckpointedError extends Error {
61
+ blockNumber;
62
+ constructor(blockNumber){
63
+ super(`Block ${blockNumber} has already been checkpointed with the same content`), this.blockNumber = blockNumber;
64
+ this.name = 'BlockAlreadyCheckpointedError';
65
+ }
66
+ }
67
+ /**
68
+ * Thrown when a query names an Inbox bucket this archiver has not synced. Distinguishes "not synced yet, retry once
69
+ * L1 sync catches up" from a genuinely empty result.
70
+ */ export class InboxBucketNotSyncedError extends Error {
71
+ bucketSeq;
72
+ constructor(bucketSeq){
73
+ super(`Inbox bucket ${bucketSeq} has not been synced`), this.bucketSeq = bucketSeq;
74
+ this.name = 'InboxBucketNotSyncedError';
75
+ }
76
+ }
77
+ /**
78
+ * Thrown when a cumulative Inbox message count does not resolve to a bucket boundary this archiver has synced, either
79
+ * because the count sits inside a bucket or because the bucket is not synced yet.
80
+ */ export class InboxBucketBoundaryNotSyncedError extends Error {
81
+ totalMsgCount;
82
+ constructor(totalMsgCount){
83
+ super(`No synced Inbox bucket ends at cumulative message count ${totalMsgCount}`), this.totalMsgCount = totalMsgCount;
84
+ this.name = 'InboxBucketBoundaryNotSyncedError';
85
+ }
86
+ }
87
+ /** Thrown when a proposed checkpoint number is stale (already processed). */ export class ProposedCheckpointStaleError extends Error {
88
+ proposedCheckpointNumber;
89
+ currentProposedNumber;
90
+ constructor(proposedCheckpointNumber, currentProposedNumber){
91
+ super(`Stale proposed checkpoint ${proposedCheckpointNumber}: current proposed is ${currentProposedNumber}`), this.proposedCheckpointNumber = proposedCheckpointNumber, this.currentProposedNumber = currentProposedNumber;
92
+ this.name = 'ProposedCheckpointStaleError';
93
+ }
94
+ }
95
+ /** Thrown when a proposed checkpoint number is not the expected latestTip + 1. */ export class ProposedCheckpointNotSequentialError extends Error {
96
+ proposedCheckpointNumber;
97
+ latestTipNumber;
98
+ constructor(proposedCheckpointNumber, latestTipNumber){
99
+ super(`Proposed checkpoint ${proposedCheckpointNumber} is not sequential: expected ${latestTipNumber + 1} (latest tip + 1, where tip is highest of confirmed or pending)`), this.proposedCheckpointNumber = proposedCheckpointNumber, this.latestTipNumber = latestTipNumber;
100
+ this.name = 'ProposedCheckpointNotSequentialError';
101
+ }
102
+ }
103
+ /** Thrown when a proposed checkpoint or block L2 slot has already expired on L1. */ export class BlockOrCheckpointSlotExpiredError extends Error {
104
+ slot;
105
+ nextSlotStart;
106
+ l1TimestampSynced;
107
+ constructor(slot, nextSlotStart, l1TimestampSynced){
108
+ super(`Checkpoint or block for slot ${slot} is expired: L1 synced to ${l1TimestampSynced} which is past the next slot start ${nextSlotStart}. ` + `If the checkpoint still lands via a late L1 tx, the archiver will pick it up via normal L1-sync (not the pending-queue shortcut).`), this.slot = slot, this.nextSlotStart = nextSlotStart, this.l1TimestampSynced = l1TimestampSynced;
109
+ this.name = 'BlockOrCheckpointSlotExpiredError';
110
+ }
111
+ }
112
+ /** Thrown when attempting to promote a proposed checkpoint but no proposed checkpoint exists in the store. */ export class NoProposedCheckpointToPromoteError extends Error {
113
+ constructor(){
114
+ super('Cannot promote proposed checkpoint: no proposed checkpoint exists');
115
+ this.name = 'NoProposedCheckpointToPromoteError';
116
+ }
117
+ }
118
+ /** Thrown when the archive root of the proposed checkpoint does not match the expected one. */ export class ProposedCheckpointArchiveRootMismatchError extends Error {
119
+ expectedArchiveRoot;
120
+ actualArchiveRoot;
121
+ constructor(expectedArchiveRoot, actualArchiveRoot){
122
+ super(`Cannot promote proposed checkpoint: archive root mismatch (expected ${expectedArchiveRoot}, got ${actualArchiveRoot})`), this.expectedArchiveRoot = expectedArchiveRoot, this.actualArchiveRoot = actualArchiveRoot;
123
+ this.name = 'ProposedCheckpointArchiveRootMismatchError';
124
+ }
125
+ }
126
+ /** Thrown when the proposed checkpoint does not directly follow the latest confirmed checkpoint. */ export class ProposedCheckpointPromotionNotSequentialError extends Error {
127
+ proposedCheckpointNumber;
128
+ latestCheckpointNumber;
129
+ constructor(proposedCheckpointNumber, latestCheckpointNumber){
130
+ super(`Cannot promote proposed checkpoint: not sequential (latest ${latestCheckpointNumber}, proposed ${proposedCheckpointNumber})`), this.proposedCheckpointNumber = proposedCheckpointNumber, this.latestCheckpointNumber = latestCheckpointNumber;
131
+ this.name = 'ProposedCheckpointPromotionNotSequentialError';
132
+ }
133
+ }
134
+ /** Thrown when a proposed block conflicts with an already checkpointed block (different content). */ export class CannotOverwriteCheckpointedBlockError extends Error {
135
+ blockNumber;
136
+ lastCheckpointedBlock;
137
+ constructor(blockNumber, lastCheckpointedBlock){
138
+ super(`Cannot add block ${blockNumber}: would overwrite checkpointed data (checkpointed up to block ${lastCheckpointedBlock})`), this.blockNumber = blockNumber, this.lastCheckpointedBlock = lastCheckpointedBlock;
139
+ this.name = 'CannotOverwriteCheckpointedBlockError';
140
+ }
141
+ }
@@ -0,0 +1,32 @@
1
+ import type { BlockHash } from '@aztec-labs/stdlib/block';
2
+ import type { DataStoreConfig } from '@aztec-labs/stdlib/kv-store';
3
+ import type { BlockHeader } from '@aztec-labs/stdlib/tx';
4
+ import { Archiver, type ArchiverDeps } from './archiver.js';
5
+ import { type ArchiverConfig } from './config.js';
6
+ import { type ArchiverDataStores } from './store/data_stores.js';
7
+ export declare const ARCHIVER_STORE_NAME = "archiver";
8
+ /** Creates an archiver store. */
9
+ export declare function createArchiverStore(userConfig: Pick<ArchiverConfig, 'archiverStoreMapSizeKb'> & DataStoreConfig, genesisBlockHash: BlockHash): Promise<ArchiverDataStores>;
10
+ /**
11
+ * Creates a local archiver.
12
+ * @param config - The archiver configuration.
13
+ * @param deps - The archiver dependencies (blobClient, epochCache, dateProvider, telemetry).
14
+ * @param opts - The options.
15
+ * @param initialHeader - The genesis block header from world-state, used to answer block-0 queries.
16
+ * @param initialBlockHash - Precomputed hash of `initialHeader`. Hoisted to the caller so the archiver
17
+ * can expose `getGenesisBlockHash()` synchronously.
18
+ * @returns The local archiver.
19
+ */
20
+ export declare function createArchiver(config: ArchiverConfig & DataStoreConfig, deps: ArchiverDeps, opts: {
21
+ blockUntilSync: boolean;
22
+ } | undefined, initialHeader: BlockHeader, initialBlockHash: BlockHash): Promise<Archiver>;
23
+ /** Registers protocol contracts in the archiver store. Idempotent — skips contracts that already exist (e.g. on node restart). */
24
+ export declare function registerProtocolContracts(stores: ArchiverDataStores): Promise<void>;
25
+ /**
26
+ * Preloads the standard contracts (AuthRegistry, PublicChecks, HandshakeRegistry) into the archiver store at block 0,
27
+ * mirroring {@link registerProtocolContracts}. Only invoked for test environments (via `testPreloadStandardContracts`),
28
+ * which also seed the matching registration/deployment nullifiers into the genesis nullifier tree so the store and tree
29
+ * stay consistent. Idempotent — skips contracts that already exist (e.g. on node restart).
30
+ */
31
+ export declare function registerStandardContracts(stores: ArchiverDataStores): Promise<void>;
32
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFjdG9yeS5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2ZhY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0JBLE9BQU8sS0FBSyxFQUFtQixTQUFTLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUczRSxPQUFPLEtBQUssRUFBRSxlQUFlLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUtuRSxPQUFPLEtBQ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AAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAKnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKzD,OAAO,EAAE,QAAQ,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,KAAK,cAAc,EAAqB,MAAM,aAAa,CAAC;AAGrE,OAAO,EAAuB,KAAK,kBAAkB,EAA4B,MAAM,wBAAwB,CAAC;AAGhH,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C,iCAAiC;AACjC,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,IAAI,CAAC,cAAc,EAAE,wBAAwB,CAAC,GAAG,eAAe,EAC5E,gBAAgB,EAAE,SAAS,GAC1B,OAAO,CAAC,kBAAkB,CAAC,CAO7B;AAED;;;;;;;;;GASG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,cAAc,GAAG,eAAe,EACxC,IAAI,EAAE,YAAY,EAClB,IAAI;;aAAwD,EAC5D,aAAa,EAAE,WAAW,EAC1B,gBAAgB,EAAE,SAAS,GAC1B,OAAO,CAAC,QAAQ,CAAC,CAwInB;AAED,oIAAkI;AAClI,wBAAsB,yBAAyB,CAAC,MAAM,EAAE,kBAAkB,iBAyBzE;AAED;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAAC,MAAM,EAAE,kBAAkB,iBAsBzE"}
@@ -0,0 +1,183 @@
1
+ import { EpochCache } from '@aztec-labs/epoch-cache';
2
+ import { createEthereumChain } from '@aztec-labs/ethereum/chain';
3
+ import { makeL1HttpTransport } from '@aztec-labs/ethereum/client';
4
+ import { InboxContract, OutboxContract, RollupContract } from '@aztec-labs/ethereum/contracts';
5
+ import { pickL1ContractAddresses } from '@aztec-labs/ethereum/l1-contract-addresses';
6
+ import { BlockNumber } from '@aztec-labs/foundation/branded-types';
7
+ import { Buffer32 } from '@aztec-labs/foundation/buffer';
8
+ import { merge } from '@aztec-labs/foundation/collection';
9
+ import { Fr } from '@aztec-labs/foundation/curves/bn254';
10
+ import { DateProvider } from '@aztec-labs/foundation/timer';
11
+ import { createStore } from '@aztec-labs/kv-store/lmdb-v2';
12
+ import { protocolContractNames } from '@aztec-labs/protocol-contracts';
13
+ import { BundledProtocolContractsProvider } from '@aztec-labs/protocol-contracts/providers/bundle';
14
+ import { getPublishableStandardContracts } from '@aztec-labs/standard-contracts';
15
+ import { FunctionType, decodeFunctionSignature } from '@aztec-labs/stdlib/abi';
16
+ import { DEFAULT_BLOCK_DURATION_MS } from '@aztec-labs/stdlib/config';
17
+ import { computePublicBytecodeCommitment } from '@aztec-labs/stdlib/contract';
18
+ import { DEFAULT_ORPHAN_PRUNE_NO_PROPOSAL_TOLERANCE, getDefaultCheckpointProposalSyncGrace } from '@aztec-labs/stdlib/timetable';
19
+ import { getTelemetryClient } from '@aztec-labs/telemetry-client';
20
+ import { EventEmitter } from 'events';
21
+ import { createPublicClient } from 'viem';
22
+ import { Archiver } from './archiver.js';
23
+ import { mapArchiverConfig } from './config.js';
24
+ import { ArchiverInstrumentation } from './modules/instrumentation.js';
25
+ import { ArchiverL1Synchronizer } from './modules/l1_synchronizer.js';
26
+ import { ARCHIVER_DB_VERSION, createArchiverDataStores } from './store/data_stores.js';
27
+ import { L2TipsCache } from './store/l2_tips_cache.js';
28
+ export const ARCHIVER_STORE_NAME = 'archiver';
29
+ /** Creates an archiver store. */ export async function createArchiverStore(userConfig, genesisBlockHash) {
30
+ const config = {
31
+ ...userConfig,
32
+ dataStoreMapSizeKb: userConfig.archiverStoreMapSizeKb ?? userConfig.dataStoreMapSizeKb
33
+ };
34
+ const store = await createStore(ARCHIVER_STORE_NAME, ARCHIVER_DB_VERSION, config);
35
+ return createArchiverDataStores(store, genesisBlockHash);
36
+ }
37
+ /**
38
+ * Creates a local archiver.
39
+ * @param config - The archiver configuration.
40
+ * @param deps - The archiver dependencies (blobClient, epochCache, dateProvider, telemetry).
41
+ * @param opts - The options.
42
+ * @param initialHeader - The genesis block header from world-state, used to answer block-0 queries.
43
+ * @param initialBlockHash - Precomputed hash of `initialHeader`. Hoisted to the caller so the archiver
44
+ * can expose `getGenesisBlockHash()` synchronously.
45
+ * @returns The local archiver.
46
+ */ export async function createArchiver(config, deps, opts = {
47
+ blockUntilSync: true
48
+ }, initialHeader, initialBlockHash) {
49
+ const archiverStore = await createArchiverStore(config, initialBlockHash);
50
+ await registerProtocolContracts(archiverStore);
51
+ if (config.testPreloadStandardContracts) {
52
+ await registerStandardContracts(archiverStore);
53
+ }
54
+ // Create Ethereum clients
55
+ const chain = createEthereumChain(config.l1RpcUrls, config.l1ChainId);
56
+ const httpTimeout = config.l1HttpTimeoutMS;
57
+ const publicClient = createPublicClient({
58
+ chain: chain.chainInfo,
59
+ transport: makeL1HttpTransport(config.l1RpcUrls, {
60
+ timeout: httpTimeout
61
+ }),
62
+ pollingInterval: config.viemPollingIntervalMS
63
+ });
64
+ // Create debug client using debug RPC URLs if available, otherwise fall back to regular RPC URLs
65
+ const debugRpcUrls = config.l1DebugRpcUrls.length > 0 ? config.l1DebugRpcUrls : config.l1RpcUrls;
66
+ const debugClient = createPublicClient({
67
+ chain: chain.chainInfo,
68
+ transport: makeL1HttpTransport(debugRpcUrls, {
69
+ timeout: httpTimeout
70
+ }),
71
+ pollingInterval: config.viemPollingIntervalMS
72
+ });
73
+ // Create L1 contract instances
74
+ const rollup = new RollupContract(publicClient, config.rollupAddress);
75
+ const inbox = new InboxContract(publicClient, config.inboxAddress);
76
+ const outbox = new OutboxContract(publicClient, config.outboxAddress);
77
+ // Fetch L1 constants from rollup contract
78
+ const [l1StartBlock, l1GenesisTime, proofSubmissionEpochs, genesisArchiveRoot, slashingProposerAddress, targetCommitteeSize, rollupManaLimit] = await Promise.all([
79
+ rollup.getL1StartBlock(),
80
+ rollup.getL1GenesisTime(),
81
+ rollup.getProofSubmissionEpochs(),
82
+ rollup.getGenesisArchiveTreeRoot(),
83
+ rollup.getSlashingProposerAddress(),
84
+ rollup.getTargetCommitteeSize(),
85
+ rollup.getManaLimit()
86
+ ]);
87
+ const l1StartBlockHash = await publicClient.getBlock({
88
+ blockNumber: l1StartBlock,
89
+ includeTransactions: false
90
+ }).then((block)=>Buffer32.fromString(block.hash));
91
+ const { aztecEpochDuration: epochDuration, aztecSlotDuration: slotDuration, ethereumSlotDuration } = config;
92
+ const l1Constants = {
93
+ l1StartBlockHash,
94
+ l1StartBlock,
95
+ l1GenesisTime,
96
+ epochDuration,
97
+ slotDuration,
98
+ ethereumSlotDuration,
99
+ proofSubmissionEpochs: Number(proofSubmissionEpochs),
100
+ targetCommitteeSize,
101
+ genesisArchiveRoot: Fr.fromString(genesisArchiveRoot.toString()),
102
+ rollupManaLimit: Number(rollupManaLimit)
103
+ };
104
+ const archiverConfig = merge({
105
+ pollingIntervalMs: 10_000,
106
+ batchSize: 100,
107
+ maxAllowedEthClientDriftSeconds: 300,
108
+ ethereumAllowNoDebugHosts: false,
109
+ skipHistoricalLogsCheck: false,
110
+ checkpointProposalSyncGrace: config.checkpointProposalSyncGraceSeconds ?? getDefaultCheckpointProposalSyncGrace((config.blockDurationMs ?? DEFAULT_BLOCK_DURATION_MS) / 1000),
111
+ orphanPruneNoProposalTolerance: DEFAULT_ORPHAN_PRUNE_NO_PROPOSAL_TOLERANCE,
112
+ skipOrphanProposedBlockPruning: false,
113
+ blockDuration: (config.blockDurationMs ?? DEFAULT_BLOCK_DURATION_MS) / 1000
114
+ }, mapArchiverConfig(config));
115
+ const epochCache = deps.epochCache ?? await EpochCache.create(config.rollupAddress, config, deps);
116
+ const telemetry = deps.telemetry ?? getTelemetryClient();
117
+ const instrumentation = await ArchiverInstrumentation.new(telemetry, ()=>archiverStore.db.estimateSize());
118
+ // Create the event emitter that will be shared by archiver and synchronizer
119
+ const events = new EventEmitter();
120
+ // Create L2 tips cache shared by archiver and synchronizer. The genesis block hash is dynamic —
121
+ // it depends on the injected initial header (genesisTimestamp + prefilled state). Hoisted to the
122
+ // caller so we can pass the same value to the archiver and expose it via `getGenesisBlockHash()`.
123
+ const l2TipsCache = new L2TipsCache(archiverStore.blocks, initialBlockHash);
124
+ // Create the L1 synchronizer
125
+ const synchronizer = new ArchiverL1Synchronizer(publicClient, debugClient, rollup, inbox, archiverStore, archiverConfig, deps.blobClient, epochCache, deps.dateProvider ?? new DateProvider(), instrumentation, l1Constants, events, instrumentation.tracer, l2TipsCache, undefined);
126
+ const archiver = new Archiver(publicClient, debugClient, rollup, outbox, {
127
+ ...pickL1ContractAddresses(config),
128
+ slashingProposerAddress
129
+ }, archiverStore, archiverConfig, deps.blobClient, instrumentation, l1Constants, synchronizer, events, initialHeader, initialBlockHash, l2TipsCache, deps.dateProvider ?? new DateProvider());
130
+ await archiver.start(opts.blockUntilSync);
131
+ return archiver;
132
+ }
133
+ /** Registers protocol contracts in the archiver store. Idempotent — skips contracts that already exist (e.g. on node restart). */ export async function registerProtocolContracts(stores) {
134
+ const blockNumber = 0;
135
+ for (const name of protocolContractNames){
136
+ const provider = new BundledProtocolContractsProvider();
137
+ const contract = await provider.getProtocolContractArtifact(name);
138
+ // Skip if already registered (happens on node restart with a persisted store).
139
+ if (await stores.contractClasses.getContractClass(contract.contractClass.id)) {
140
+ continue;
141
+ }
142
+ const publicBytecodeCommitment = await computePublicBytecodeCommitment(contract.contractClass.packedBytecode);
143
+ const contractClassPublic = {
144
+ ...contract.contractClass,
145
+ publicBytecodeCommitment
146
+ };
147
+ const publicFunctionSignatures = contract.artifact.functions.filter((fn)=>fn.functionType === FunctionType.PUBLIC).map((fn)=>decodeFunctionSignature(fn.name, fn.parameters));
148
+ await stores.functionNames.register(publicFunctionSignatures);
149
+ await stores.contractClasses.addContractClasses([
150
+ contractClassPublic
151
+ ], BlockNumber(blockNumber));
152
+ await stores.contractInstances.addContractInstances([
153
+ contract.instance
154
+ ], BlockNumber(blockNumber));
155
+ }
156
+ }
157
+ /**
158
+ * Preloads the standard contracts (AuthRegistry, PublicChecks, HandshakeRegistry) into the archiver store at block 0,
159
+ * mirroring {@link registerProtocolContracts}. Only invoked for test environments (via `testPreloadStandardContracts`),
160
+ * which also seed the matching registration/deployment nullifiers into the genesis nullifier tree so the store and tree
161
+ * stay consistent. Idempotent — skips contracts that already exist (e.g. on node restart).
162
+ */ export async function registerStandardContracts(stores) {
163
+ const blockNumber = 0;
164
+ for (const contract of (await getPublishableStandardContracts())){
165
+ // Skip if already registered (happens on node restart with a persisted store).
166
+ if (await stores.contractClasses.getContractClass(contract.contractClass.id)) {
167
+ continue;
168
+ }
169
+ const publicBytecodeCommitment = await computePublicBytecodeCommitment(contract.contractClass.packedBytecode);
170
+ const contractClassPublic = {
171
+ ...contract.contractClass,
172
+ publicBytecodeCommitment
173
+ };
174
+ const publicFunctionSignatures = contract.artifact.functions.filter((fn)=>fn.functionType === FunctionType.PUBLIC).map((fn)=>decodeFunctionSignature(fn.name, fn.parameters));
175
+ await stores.functionNames.register(publicFunctionSignatures);
176
+ await stores.contractClasses.addContractClasses([
177
+ contractClassPublic
178
+ ], BlockNumber(blockNumber));
179
+ await stores.contractInstances.addContractInstances([
180
+ contract.instance
181
+ ], BlockNumber(blockNumber));
182
+ }
183
+ }
@@ -0,0 +1,20 @@
1
+ export * from './factory.js';
2
+ export * from './interfaces.js';
3
+ export * from './archiver.js';
4
+ export * from './modules/data_source_base.js';
5
+ export * from './modules/data_store_updater.js';
6
+ export * from './config.js';
7
+ export * from './errors.js';
8
+ export { type L1PublishedData } from './structs/published.js';
9
+ export { ARCHIVER_DB_VERSION, type ArchiverDataStores, type ArchiverL1SynchPoint, backupArchiverDataStores, createArchiverDataStores, createContractDataSource, getArchiverSynchPoint, } from './store/data_stores.js';
10
+ export { FunctionNamesCache } from './store/function_names_cache.js';
11
+ export { ArchiverContractDataSourceAdapter } from './modules/contract_data_source_adapter.js';
12
+ export { BlockStore } from './store/block_store.js';
13
+ export { LogStore } from './store/log_store.js';
14
+ export { MessageStore } from './store/message_store.js';
15
+ export { ContractClassStore } from './store/contract_class_store.js';
16
+ export { ContractInstanceStore } from './store/contract_instance_store.js';
17
+ export { L2TipsCache } from './store/l2_tips_cache.js';
18
+ export { retrieveL2ProofVerifiedEvents } from './l1/data_retrieval.js';
19
+ export { CalldataRetriever } from './l1/calldata_retriever.js';
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyxpQ0FBaUMsQ0FBQztBQUNoRCxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGFBQWEsQ0FBQztBQUU1QixPQUFPLEVBQUUsS0FBSyxlQUFlLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUM5RCxPQUFPLEVBQ0wsbUJBQW1CLEVBQ25CLEtBQUssa0JBQWtCLEVBQ3ZCLEtBQUssb0JBQW9CLEVBQ3pCLHdCQUF3QixFQUN4Qix3QkFBd0IsRUFDeEIsd0JBQXdCLEVBQ3hCLHFCQUFxQixHQUN0QixNQUFNLHdCQUF3QixDQUFDO0FBQ2hDLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQ3JFLE9BQU8sRUFBRSxpQ0FBaUMsRUFBRSxNQUFNLDJDQUEyQyxDQUFDO0FBQzlGLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNwRCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDaEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQ3hELE9BQU8sRUFBRSxrQkF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