@aztec/archiver 0.0.1-commit.a89ec08 → 0.0.1-commit.aa0c64f
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/README.md +19 -11
- package/dest/archiver.d.ts +71 -16
- package/dest/archiver.d.ts.map +1 -1
- package/dest/archiver.js +276 -71
- package/dest/config.d.ts +7 -3
- package/dest/config.d.ts.map +1 -1
- package/dest/config.js +43 -14
- package/dest/errors.d.ts +50 -2
- package/dest/errors.d.ts.map +1 -1
- package/dest/errors.js +74 -2
- package/dest/factory.d.ts +19 -7
- package/dest/factory.d.ts.map +1 -1
- package/dest/factory.js +67 -24
- package/dest/index.d.ts +11 -3
- package/dest/index.d.ts.map +1 -1
- package/dest/index.js +10 -2
- package/dest/l1/calldata_retriever.d.ts +9 -1
- package/dest/l1/calldata_retriever.d.ts.map +1 -1
- package/dest/l1/calldata_retriever.js +22 -11
- package/dest/l1/data_retrieval.d.ts +30 -13
- package/dest/l1/data_retrieval.d.ts.map +1 -1
- package/dest/l1/data_retrieval.js +36 -37
- package/dest/l1/trace_tx.d.ts +12 -66
- package/dest/l1/trace_tx.d.ts.map +1 -1
- package/dest/l1/validate_historical_logs.d.ts +23 -0
- package/dest/l1/validate_historical_logs.d.ts.map +1 -0
- package/dest/l1/validate_historical_logs.js +108 -0
- package/dest/modules/contract_data_source_adapter.d.ts +25 -0
- package/dest/modules/contract_data_source_adapter.d.ts.map +1 -0
- package/dest/modules/contract_data_source_adapter.js +32 -0
- package/dest/modules/data_source_base.d.ts +71 -48
- package/dest/modules/data_source_base.d.ts.map +1 -1
- package/dest/modules/data_source_base.js +250 -144
- package/dest/modules/data_store_updater.d.ts +30 -13
- package/dest/modules/data_store_updater.d.ts.map +1 -1
- package/dest/modules/data_store_updater.js +129 -111
- package/dest/modules/instrumentation.d.ts +26 -2
- package/dest/modules/instrumentation.d.ts.map +1 -1
- package/dest/modules/instrumentation.js +58 -9
- package/dest/modules/l1_synchronizer.d.ts +13 -8
- package/dest/modules/l1_synchronizer.d.ts.map +1 -1
- package/dest/modules/l1_synchronizer.js +463 -224
- package/dest/modules/outbox_trees_resolver.d.ts +62 -0
- package/dest/modules/outbox_trees_resolver.d.ts.map +1 -0
- package/dest/modules/outbox_trees_resolver.js +162 -0
- package/dest/modules/validation.d.ts +30 -7
- package/dest/modules/validation.d.ts.map +1 -1
- package/dest/modules/validation.js +35 -17
- package/dest/store/block_store.d.ts +175 -68
- package/dest/store/block_store.d.ts.map +1 -1
- package/dest/store/block_store.js +627 -239
- package/dest/store/contract_class_store.d.ts +17 -4
- package/dest/store/contract_class_store.d.ts.map +1 -1
- package/dest/store/contract_class_store.js +37 -67
- package/dest/store/contract_instance_store.d.ts +28 -1
- package/dest/store/contract_instance_store.d.ts.map +1 -1
- package/dest/store/contract_instance_store.js +49 -1
- package/dest/store/data_stores.d.ts +68 -0
- package/dest/store/data_stores.d.ts.map +1 -0
- package/dest/store/data_stores.js +54 -0
- package/dest/store/function_names_cache.d.ts +17 -0
- package/dest/store/function_names_cache.d.ts.map +1 -0
- package/dest/store/function_names_cache.js +30 -0
- package/dest/store/l2_tips_cache.d.ts +13 -7
- package/dest/store/l2_tips_cache.d.ts.map +1 -1
- package/dest/store/l2_tips_cache.js +13 -76
- package/dest/store/log_store.d.ts +42 -37
- package/dest/store/log_store.d.ts.map +1 -1
- package/dest/store/log_store.js +259 -443
- package/dest/store/log_store_codec.d.ts +78 -0
- package/dest/store/log_store_codec.d.ts.map +1 -0
- package/dest/store/log_store_codec.js +110 -0
- package/dest/store/message_store.d.ts +11 -1
- package/dest/store/message_store.d.ts.map +1 -1
- package/dest/store/message_store.js +50 -8
- package/dest/test/fake_l1_state.d.ts +8 -3
- package/dest/test/fake_l1_state.d.ts.map +1 -1
- package/dest/test/fake_l1_state.js +78 -21
- package/dest/test/mock_l2_block_source.d.ts +48 -50
- package/dest/test/mock_l2_block_source.d.ts.map +1 -1
- package/dest/test/mock_l2_block_source.js +228 -179
- package/dest/test/mock_structs.d.ts +1 -1
- package/dest/test/mock_structs.d.ts.map +1 -1
- package/dest/test/mock_structs.js +2 -2
- package/dest/test/noop_l1_archiver.d.ts +14 -6
- package/dest/test/noop_l1_archiver.d.ts.map +1 -1
- package/dest/test/noop_l1_archiver.js +26 -10
- package/package.json +15 -14
- package/src/archiver.ts +361 -77
- package/src/config.ts +51 -13
- package/src/errors.ts +117 -2
- package/src/factory.ts +81 -22
- package/src/index.ts +18 -2
- package/src/l1/calldata_retriever.ts +29 -11
- package/src/l1/data_retrieval.ts +60 -54
- package/src/l1/validate_historical_logs.ts +140 -0
- package/src/modules/contract_data_source_adapter.ts +46 -0
- package/src/modules/data_source_base.ts +325 -187
- package/src/modules/data_store_updater.ts +155 -139
- package/src/modules/instrumentation.ts +63 -10
- package/src/modules/l1_synchronizer.ts +630 -273
- package/src/modules/outbox_trees_resolver.ts +199 -0
- package/src/modules/validation.ts +80 -23
- package/src/store/block_store.ts +766 -290
- package/src/store/contract_class_store.ts +43 -101
- package/src/store/contract_instance_store.ts +61 -1
- package/src/store/data_stores.ts +104 -0
- package/src/store/function_names_cache.ts +37 -0
- package/src/store/l2_tips_cache.ts +16 -70
- package/src/store/log_store.ts +298 -609
- package/src/store/log_store_codec.ts +143 -0
- package/src/store/message_store.ts +59 -9
- package/src/structs/inbox_message.ts +1 -1
- package/src/test/fake_l1_state.ts +99 -32
- package/src/test/mock_l2_block_source.ts +285 -232
- package/src/test/mock_structs.ts +5 -2
- package/src/test/noop_l1_archiver.ts +54 -11
- package/dest/store/kv_archiver_store.d.ts +0 -362
- package/dest/store/kv_archiver_store.d.ts.map +0 -1
- package/dest/store/kv_archiver_store.js +0 -475
- package/src/store/kv_archiver_store.ts +0 -685
package/dest/archiver.js
CHANGED
|
@@ -379,14 +379,22 @@ import { EthAddress } from '@aztec/foundation/eth-address';
|
|
|
379
379
|
import { createLogger } from '@aztec/foundation/log';
|
|
380
380
|
import { promiseWithResolvers } from '@aztec/foundation/promise';
|
|
381
381
|
import { RunningPromise, makeLoggingErrorHandler } from '@aztec/foundation/running-promise';
|
|
382
|
-
import {
|
|
382
|
+
import { elapsed } from '@aztec/foundation/timer';
|
|
383
|
+
import { L2BlockSourceEvents, l2TipsEqual } from '@aztec/stdlib/block';
|
|
384
|
+
import { getEpochAtSlot, getSlotAtNextL1Block, getSlotRangeForEpoch, getTimestampForSlot, getTimestampRangeForEpoch } from '@aztec/stdlib/epoch-helpers';
|
|
385
|
+
import { ConsensusTimetable } from '@aztec/stdlib/timetable';
|
|
383
386
|
import { trackSpan } from '@aztec/telemetry-client';
|
|
384
387
|
import { mapArchiverConfig } from './config.js';
|
|
385
|
-
import { BlockAlreadyCheckpointedError, NoBlobBodiesFoundError } from './errors.js';
|
|
388
|
+
import { BlockAlreadyCheckpointedError, BlockOrCheckpointSlotExpiredError, NoBlobBodiesFoundError } from './errors.js';
|
|
389
|
+
import { validateAndLogHistoricalLogsAvailability } from './l1/validate_historical_logs.js';
|
|
386
390
|
import { validateAndLogTraceAvailability } from './l1/validate_trace.js';
|
|
387
391
|
import { ArchiverDataSourceBase } from './modules/data_source_base.js';
|
|
388
392
|
import { ArchiverDataStoreUpdater } from './modules/data_store_updater.js';
|
|
389
|
-
import {
|
|
393
|
+
import { OutboxTreesResolver } from './modules/outbox_trees_resolver.js';
|
|
394
|
+
import { backupArchiverDataStores, getArchiverSynchPoint } from './store/data_stores.js';
|
|
395
|
+
const noCheckpointProposalPresence = {
|
|
396
|
+
hasCheckpointProposalForSlot: ()=>Promise.resolve(false)
|
|
397
|
+
};
|
|
390
398
|
_dec = trackSpan('Archiver.sync');
|
|
391
399
|
/**
|
|
392
400
|
* Pulls checkpoints in a non-blocking manner and provides interface for their retrieval.
|
|
@@ -396,11 +404,14 @@ _dec = trackSpan('Archiver.sync');
|
|
|
396
404
|
publicClient;
|
|
397
405
|
debugClient;
|
|
398
406
|
rollup;
|
|
407
|
+
outbox;
|
|
399
408
|
l1Addresses;
|
|
400
|
-
|
|
409
|
+
dataStores;
|
|
401
410
|
config;
|
|
402
411
|
blobClient;
|
|
403
412
|
l1Constants;
|
|
413
|
+
dateProvider;
|
|
414
|
+
checkpointProposalPresence;
|
|
404
415
|
log;
|
|
405
416
|
static{
|
|
406
417
|
({ e: [_initProto] } = _apply_decs_2203_r(this, [
|
|
@@ -414,41 +425,73 @@ _dec = trackSpan('Archiver.sync');
|
|
|
414
425
|
/** Event emitter for archiver events (L2BlockProven, L2PruneUnproven, L2PruneUncheckpointed, etc). */ events;
|
|
415
426
|
/** A loop in which we will be continually fetching new checkpoints. */ runningPromise;
|
|
416
427
|
/** L1 synchronizer that handles fetching checkpoints and messages from L1. */ synchronizer;
|
|
428
|
+
/** Resolver for L2-to-L1 message membership witnesses, built over this archiver's read view. */ outboxTreesResolver;
|
|
417
429
|
initialSyncComplete;
|
|
418
430
|
initialSyncPromise;
|
|
419
|
-
/** Queue of blocks to be added to the store, processed by the sync loop. */
|
|
431
|
+
/** Queue of blocks and checkpoints to be added to the store, processed by the sync loop. */ inboundQueue;
|
|
420
432
|
/** Helper to handle updates to the store */ updater;
|
|
421
433
|
/** In-memory cache for L2 chain tips. */ l2TipsCache;
|
|
434
|
+
/** Consensus timing model used for proposed-checkpoint arrival expectations. */ timetable;
|
|
422
435
|
tracer;
|
|
436
|
+
instrumentation;
|
|
423
437
|
/**
|
|
424
438
|
* Creates a new instance of the Archiver.
|
|
425
439
|
* @param publicClient - A client for interacting with the Ethereum node.
|
|
426
440
|
* @param debugClient - A client for interacting with the Ethereum node for debug/trace methods.
|
|
427
441
|
* @param rollup - Rollup contract instance.
|
|
442
|
+
* @param outbox - Outbox contract instance, used to read per-epoch L2-to-L1 message roots.
|
|
428
443
|
* @param inbox - Inbox contract instance.
|
|
429
|
-
* @param l1Addresses - L1 contract addresses (registry, governance proposer,
|
|
430
|
-
* @param
|
|
444
|
+
* @param l1Addresses - L1 contract addresses (registry, governance proposer, slashing proposer).
|
|
445
|
+
* @param dataStores - Archiver substores for storage & retrieval of blocks, encrypted logs & contract data.
|
|
431
446
|
* @param config - Archiver configuration options.
|
|
432
447
|
* @param blobClient - Client for retrieving blob data.
|
|
433
|
-
* @param epochCache - Cache for epoch-related data.
|
|
434
|
-
* @param dateProvider - Provider for current date/time.
|
|
435
448
|
* @param instrumentation - Instrumentation for metrics and tracing.
|
|
436
449
|
* @param l1Constants - L1 rollup constants.
|
|
450
|
+
* @param synchronizer - L1 synchronizer that handles fetching checkpoints and messages from L1.
|
|
451
|
+
* @param events - Event emitter shared with the synchronizer.
|
|
452
|
+
* @param initialHeader - Genesis block header.
|
|
453
|
+
* @param initialBlockHash - Precomputed hash of the genesis block header.
|
|
454
|
+
* @param l2TipsCache - In-memory cache for L2 chain tips.
|
|
455
|
+
* @param dateProvider - Provider for current date/time, used for wall-clock orphan-block pruning.
|
|
437
456
|
* @param log - A logger.
|
|
438
|
-
*/ constructor(publicClient, debugClient, rollup, l1Addresses,
|
|
439
|
-
super(
|
|
457
|
+
*/ constructor(publicClient, debugClient, rollup, outbox, l1Addresses, dataStores, config, blobClient, instrumentation, l1Constants, synchronizer, events, initialHeader, initialBlockHash, l2TipsCache, dateProvider, checkpointProposalPresence = noCheckpointProposalPresence, log = createLogger('archiver')){
|
|
458
|
+
super(dataStores, l1Constants, initialHeader, initialBlockHash, l1Constants.genesisArchiveRoot), this.publicClient = publicClient, this.debugClient = debugClient, this.rollup = rollup, this.outbox = outbox, this.l1Addresses = l1Addresses, this.dataStores = dataStores, this.config = config, this.blobClient = blobClient, this.l1Constants = l1Constants, this.dateProvider = dateProvider, this.checkpointProposalPresence = checkpointProposalPresence, this.log = log, this.initialSyncComplete = (_initProto(this), false), this.inboundQueue = [];
|
|
440
459
|
this.tracer = instrumentation.tracer;
|
|
460
|
+
this.instrumentation = instrumentation;
|
|
441
461
|
this.initialSyncPromise = promiseWithResolvers();
|
|
442
462
|
this.synchronizer = synchronizer;
|
|
443
463
|
this.events = events;
|
|
444
|
-
this.l2TipsCache = l2TipsCache
|
|
445
|
-
this.
|
|
464
|
+
this.l2TipsCache = l2TipsCache;
|
|
465
|
+
this.timetable = new ConsensusTimetable({
|
|
466
|
+
l1Constants,
|
|
467
|
+
blockDuration: this.config.blockDuration,
|
|
468
|
+
checkpointProposalSyncGrace: this.config.checkpointProposalSyncGrace
|
|
469
|
+
});
|
|
470
|
+
this.updater = new ArchiverDataStoreUpdater(this.dataStores, this.l2TipsCache, {
|
|
446
471
|
rollupManaLimit: l1Constants.rollupManaLimit
|
|
447
472
|
});
|
|
473
|
+
// The resolver reads its witness data from this archiver and pins its lazy Outbox-root fetches
|
|
474
|
+
// to the archiver's synced L1 block. No method on `this` is invoked during construction.
|
|
475
|
+
this.outboxTreesResolver = new OutboxTreesResolver(this.outbox, this, ()=>Promise.resolve(this.getL1BlockNumber()), l1Constants.epochDuration);
|
|
448
476
|
// Running promise starts with a small interval inbetween runs, so all iterations needed for the initial sync
|
|
449
477
|
// are done as fast as possible. This then gets updated once the initial sync completes.
|
|
450
478
|
this.runningPromise = new RunningPromise(()=>this.sync(), this.log, this.config.pollingIntervalMs / 10, makeLoggingErrorHandler(this.log, NoBlobBodiesFoundError, BlockTagTooOldError));
|
|
451
479
|
}
|
|
480
|
+
/**
|
|
481
|
+
* Returns the L2-to-L1 membership witness for `message` emitted by tx `txHash`. The node selects
|
|
482
|
+
* the smallest partial-proof root on the Outbox that covers the tx's checkpoint and builds the
|
|
483
|
+
* witness against it.
|
|
484
|
+
*
|
|
485
|
+
* The node reads the Outbox roots lazily, pinned to its synced L1 block, so the witness reflects
|
|
486
|
+
* the node's synced view. Returns `undefined` if the tx isn't yet in a block/epoch or no covering
|
|
487
|
+
* root has landed on L1 as of the synced block.
|
|
488
|
+
*
|
|
489
|
+
* Caveat: roots are cached only for the current synced L1 block and re-fetched once the node
|
|
490
|
+
* advances, so a reorg is picked up on the next synced-block advance rather than re-validated per
|
|
491
|
+
* request.
|
|
492
|
+
*/ getL2ToL1MembershipWitness(txHash, message, messageIndexInTx) {
|
|
493
|
+
return this.outboxTreesResolver.getL2ToL1MembershipWitness(txHash, message, messageIndexInTx);
|
|
494
|
+
}
|
|
452
495
|
/** Updates archiver config */ updateConfig(newConfig) {
|
|
453
496
|
this.config = merge(this.config, mapArchiverConfig(newConfig));
|
|
454
497
|
this.synchronizer.setConfig(this.config);
|
|
@@ -463,10 +506,16 @@ _dec = trackSpan('Archiver.sync');
|
|
|
463
506
|
await this.blobClient.testSources();
|
|
464
507
|
await this.synchronizer.testEthereumNodeSynced();
|
|
465
508
|
await validateAndLogTraceAvailability(this.debugClient, this.config.ethereumAllowNoDebugHosts ?? false, this.log.getBindings());
|
|
509
|
+
await validateAndLogHistoricalLogsAvailability(this.publicClient, {
|
|
510
|
+
rollupAddress: this.l1Addresses.rollupAddress,
|
|
511
|
+
inboxAddress: this.l1Addresses.inboxAddress,
|
|
512
|
+
registryAddress: this.l1Addresses.registryAddress,
|
|
513
|
+
governanceProposerAddress: this.l1Addresses.governanceProposerAddress
|
|
514
|
+
}, this.config.skipHistoricalLogsCheck ?? false, this.log.getBindings());
|
|
466
515
|
// Log initial state for the archiver
|
|
467
516
|
const { l1StartBlock } = this.l1Constants;
|
|
468
|
-
const { blocksSynchedTo = l1StartBlock, messagesSynchedTo = l1StartBlock } = await this.
|
|
469
|
-
const currentL2Checkpoint = await this.
|
|
517
|
+
const { blocksSynchedTo = l1StartBlock, messagesSynchedTo = l1StartBlock } = await getArchiverSynchPoint(this.stores);
|
|
518
|
+
const currentL2Checkpoint = await this.getCheckpointNumber();
|
|
470
519
|
this.log.info(`Starting archiver sync to rollup contract ${this.rollup.address} from L1 block ${blocksSynchedTo} and L2 checkpoint ${currentL2Checkpoint}`, {
|
|
471
520
|
blocksSynchedTo,
|
|
472
521
|
messagesSynchedTo,
|
|
@@ -481,6 +530,16 @@ _dec = trackSpan('Archiver.sync');
|
|
|
481
530
|
syncImmediate() {
|
|
482
531
|
return this.runningPromise.trigger();
|
|
483
532
|
}
|
|
533
|
+
/** Sets the proposal-presence provider used by orphan proposed-block pruning. */ setCheckpointProposalPresence(checkpointProposalPresence) {
|
|
534
|
+
this.checkpointProposalPresence = checkpointProposalPresence;
|
|
535
|
+
}
|
|
536
|
+
trySyncImmediate() {
|
|
537
|
+
try {
|
|
538
|
+
return this.syncImmediate();
|
|
539
|
+
} catch (err) {
|
|
540
|
+
this.log.error(`Failed to trigger immediate archiver sync: ${err}`, err);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
484
543
|
/**
|
|
485
544
|
* Queues a block to be added to the archiver store and triggers processing.
|
|
486
545
|
* The block will be processed by the sync loop.
|
|
@@ -488,59 +547,91 @@ _dec = trackSpan('Archiver.sync');
|
|
|
488
547
|
* @param block - The L2 block to add.
|
|
489
548
|
* @returns A promise that resolves when the block has been added to the store, or rejects on error.
|
|
490
549
|
*/ addBlock(block) {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
});
|
|
497
|
-
this.log.debug(`Queued block ${block.number} for processing`);
|
|
498
|
-
// Trigger an immediate sync, but don't wait for it - the promise resolves when the block is processed
|
|
499
|
-
this.syncImmediate().catch((err)=>{
|
|
500
|
-
this.log.error(`Sync immediate call failed: ${err}`);
|
|
501
|
-
});
|
|
550
|
+
const promise = promiseWithResolvers();
|
|
551
|
+
this.inboundQueue.push({
|
|
552
|
+
block,
|
|
553
|
+
...promise,
|
|
554
|
+
type: 'block'
|
|
502
555
|
});
|
|
556
|
+
this.log.debug(`Queued block ${block.number} for processing`);
|
|
557
|
+
void this.trySyncImmediate();
|
|
558
|
+
return promise.promise;
|
|
503
559
|
}
|
|
504
560
|
/**
|
|
505
|
-
*
|
|
561
|
+
* Queues a new proposed checkpoint into the archiver store.
|
|
562
|
+
* Checks that the checkpoint is not for an L2 slot already synced from L1.
|
|
563
|
+
* Resolves once the checkpoint has been processed.
|
|
564
|
+
*/ addProposedCheckpoint(pending) {
|
|
565
|
+
const promise = promiseWithResolvers();
|
|
566
|
+
this.inboundQueue.push({
|
|
567
|
+
checkpoint: pending,
|
|
568
|
+
...promise,
|
|
569
|
+
type: 'checkpoint'
|
|
570
|
+
});
|
|
571
|
+
this.log.debug(`Queued checkpoint ${pending.checkpointNumber} for processing`);
|
|
572
|
+
void this.trySyncImmediate();
|
|
573
|
+
return promise.promise;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Processes all queued blocks and checkpoints, adding them to the store.
|
|
506
577
|
* Called at the beginning of each sync iteration.
|
|
507
|
-
*
|
|
508
|
-
*/ async
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
this.
|
|
578
|
+
* Items are processed in the order they were queued.
|
|
579
|
+
*/ async processInboundQueue() {
|
|
580
|
+
const blocksAdded = [];
|
|
581
|
+
if (this.inboundQueue.length === 0) {
|
|
582
|
+
return blocksAdded;
|
|
583
|
+
}
|
|
584
|
+
// Take all items from the queue
|
|
585
|
+
const queuedItems = this.inboundQueue.splice(0, this.inboundQueue.length);
|
|
586
|
+
this.log.debug(`Processing ${queuedItems.length} queued inbound items`);
|
|
515
587
|
// Calculate slot threshold for validation
|
|
516
588
|
const l1Timestamp = this.synchronizer.getL1Timestamp();
|
|
517
589
|
const slotAtNextL1Block = l1Timestamp === undefined ? undefined : getSlotAtNextL1Block(l1Timestamp, this.l1Constants);
|
|
518
|
-
//
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
590
|
+
// Helpers for manipulating blocks and checkpoints in the queue
|
|
591
|
+
const getSlot = (item)=>item.type === 'block' ? item.block.header.globalVariables.slotNumber : item.checkpoint.header.slotNumber;
|
|
592
|
+
const getNumber = (item)=>item.type === 'block' ? item.block.number : item.checkpoint.checkpointNumber;
|
|
593
|
+
// Process each item individually to properly resolve/reject each promise
|
|
594
|
+
for (const item of queuedItems){
|
|
595
|
+
const { resolve, reject, type } = item;
|
|
596
|
+
const itemSlot = getSlot(item);
|
|
597
|
+
const itemNumber = getNumber(item);
|
|
598
|
+
if (slotAtNextL1Block !== undefined && itemSlot < slotAtNextL1Block) {
|
|
599
|
+
const nextSlotTimestamp = getTimestampForSlot(slotAtNextL1Block, this.l1Constants);
|
|
600
|
+
this.log.warn(`Rejecting proposed ${type} ${itemNumber} for past slot ${itemSlot} (current ${slotAtNextL1Block})`, {
|
|
601
|
+
number: itemNumber,
|
|
602
|
+
type,
|
|
524
603
|
l1Timestamp,
|
|
525
|
-
slotAtNextL1Block
|
|
604
|
+
slotAtNextL1Block,
|
|
605
|
+
nextSlotTimestamp
|
|
526
606
|
});
|
|
527
|
-
reject(new
|
|
607
|
+
reject(new BlockOrCheckpointSlotExpiredError(itemSlot, nextSlotTimestamp, l1Timestamp));
|
|
528
608
|
continue;
|
|
529
609
|
}
|
|
530
610
|
try {
|
|
531
|
-
|
|
532
|
-
|
|
611
|
+
if (type === 'block') {
|
|
612
|
+
const [durationMs] = await elapsed(()=>this.updater.addProposedBlock(item.block));
|
|
613
|
+
this.instrumentation.processNewProposedBlock(durationMs, item.block);
|
|
614
|
+
blocksAdded.push(item.block);
|
|
615
|
+
} else {
|
|
616
|
+
await this.updater.addProposedCheckpoint(item.checkpoint);
|
|
617
|
+
}
|
|
618
|
+
this.log.debug(`Added ${type} ${itemNumber} to store`);
|
|
533
619
|
resolve();
|
|
534
620
|
} catch (err) {
|
|
535
621
|
if (err instanceof BlockAlreadyCheckpointedError) {
|
|
536
|
-
this.log.debug(`Proposed block ${
|
|
622
|
+
this.log.debug(`Proposed block ${itemNumber} matches already checkpointed block, ignoring late proposal`);
|
|
623
|
+
// A late proposal that matches an already-checkpointed block adds nothing new, so it is not appended.
|
|
537
624
|
resolve();
|
|
538
625
|
continue;
|
|
539
626
|
}
|
|
540
|
-
this.log.error(`Failed to add
|
|
627
|
+
this.log.error(`Failed to add ${type} ${itemNumber} to store: ${err.message}`, err, {
|
|
628
|
+
number: itemNumber,
|
|
629
|
+
type
|
|
630
|
+
});
|
|
541
631
|
reject(err);
|
|
542
632
|
}
|
|
543
633
|
}
|
|
634
|
+
return blocksAdded;
|
|
544
635
|
}
|
|
545
636
|
waitForInitialSync() {
|
|
546
637
|
return this.initialSyncPromise.promise;
|
|
@@ -548,14 +639,112 @@ _dec = trackSpan('Archiver.sync');
|
|
|
548
639
|
/**
|
|
549
640
|
* Fetches logs from L1 contracts and processes them.
|
|
550
641
|
*/ async sync() {
|
|
642
|
+
// Capture the tips before any mutation so the aggregate event can report what moved this pass.
|
|
643
|
+
const fromTips = await this.getL2Tips();
|
|
644
|
+
// Accumulate the blocks added across the pass's sub-steps (queued proposals + L1 checkpoint payloads).
|
|
645
|
+
const blocksAdded = [];
|
|
551
646
|
// Process any queued blocks first, before doing L1 sync
|
|
552
|
-
await this.
|
|
647
|
+
blocksAdded.push(...await this.processInboundQueue());
|
|
553
648
|
// Now perform L1 sync
|
|
554
|
-
await this.syncFromL1();
|
|
649
|
+
blocksAdded.push(...await this.syncFromL1());
|
|
650
|
+
// Prune proposed blocks with no corresponding proposed checkpoint after the appropriate materialization deadline.
|
|
651
|
+
await this.pruneOrphanProposedBlocks();
|
|
652
|
+
// Emit a single aggregate update event after all pass work has committed and the tips cache has refreshed,
|
|
653
|
+
// so `toTips` and the source state observed by listeners are consistent with the event payload. The pass
|
|
654
|
+
// mutated state if the tips moved (added blocks, a prune, or a thin tier movement) or blocks were added; a
|
|
655
|
+
// fully-synced no-op pass emits nothing.
|
|
656
|
+
const toTips = await this.getL2Tips();
|
|
657
|
+
if (!l2TipsEqual(fromTips, toTips) || blocksAdded.length > 0) {
|
|
658
|
+
this.events.emit(L2BlockSourceEvents.L2BlockSourceUpdated, {
|
|
659
|
+
type: L2BlockSourceEvents.L2BlockSourceUpdated,
|
|
660
|
+
fromTips,
|
|
661
|
+
toTips,
|
|
662
|
+
blocksAdded
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* Prunes a block-only local tip that was built atop a checkpoint that was never itself proposed.
|
|
668
|
+
*
|
|
669
|
+
* Under pipelining, a proposer publishes the blocks for a checkpoint (block-only proposals) before
|
|
670
|
+
* assembling and publishing the enclosing proposed checkpoint at the end of the build slot. A node
|
|
671
|
+
* that received those blocks but never the proposed checkpoint is left with an orphan tip it must not build on.
|
|
672
|
+
* If no checkpoint proposal was received for the orphan slot, we prune after the receive deadline plus local
|
|
673
|
+
* tolerance. If a checkpoint proposal was received but has not materialized into proposed archiver state,
|
|
674
|
+
* we prune after the consensus materialization deadline.
|
|
675
|
+
*
|
|
676
|
+
* The uncheckpointed suffix is scanned in order. Blocks covered by proposed checkpoints are left in
|
|
677
|
+
* place; the first block not covered by a proposed checkpoint starts the orphan suffix to prune.
|
|
678
|
+
*/ async pruneOrphanProposedBlocks() {
|
|
679
|
+
if (this.config.skipOrphanProposedBlockPruning) {
|
|
680
|
+
return;
|
|
681
|
+
}
|
|
682
|
+
const tips = await this.getL2Tips();
|
|
683
|
+
const now = BigInt(this.dateProvider.nowInSeconds());
|
|
684
|
+
// Frontier block covered by a proposed (or, falling back, confirmed) checkpoint. Blocks beyond it
|
|
685
|
+
// have no enclosing checkpoint proposal and are the orphan-pruning candidates.
|
|
686
|
+
const proposedCheckpointBlockNumber = await this.stores.blocks.getProposedCheckpointL2BlockNumber();
|
|
687
|
+
// The proposed tip is a proposed-checkpointed block, so there are no orphan proposed blocks to prune
|
|
688
|
+
if (proposedCheckpointBlockNumber === tips.proposed.number) {
|
|
689
|
+
this.log.trace(`No orphan proposed blocks to prune: proposed tip ${tips.proposed.number} is checkpointed`, {
|
|
690
|
+
proposed: tips.proposed,
|
|
691
|
+
proposedCheckpointBlockNumber
|
|
692
|
+
});
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
// Load the blocks that are candidates for pruning (ie blocks without a proposed checkpoint covering them)
|
|
696
|
+
const blocksWithoutProposedCheckpoint = await this.stores.blocks.getBlocksData({
|
|
697
|
+
from: BlockNumber(proposedCheckpointBlockNumber + 1),
|
|
698
|
+
limit: tips.proposed.number - proposedCheckpointBlockNumber
|
|
699
|
+
});
|
|
700
|
+
// Iterate through them in order, the first one with a slot that should have received a proposed checkpoint
|
|
701
|
+
// is the first orphan block, and all blocks after it are also orphaned and should be pruned.
|
|
702
|
+
let lastSlotChecked = undefined;
|
|
703
|
+
for (const blockData of blocksWithoutProposedCheckpoint){
|
|
704
|
+
// No need to recheck if this block had the same slot as the previous one.
|
|
705
|
+
const blockSlot = blockData.header.getSlot();
|
|
706
|
+
const blockNumber = blockData.header.getBlockNumber();
|
|
707
|
+
if (lastSlotChecked !== undefined && blockSlot === lastSlotChecked) {
|
|
708
|
+
continue;
|
|
709
|
+
}
|
|
710
|
+
lastSlotChecked = blockSlot;
|
|
711
|
+
const hasCheckpointProposal = await this.checkpointProposalPresence.hasCheckpointProposalForSlot(blockSlot);
|
|
712
|
+
const deadlineType = hasCheckpointProposal ? 'checkpoint-proposal-synced' : 'checkpoint-proposal-received';
|
|
713
|
+
const selectedDeadline = BigInt(hasCheckpointProposal ? this.timetable.getCheckpointProposalSyncedDeadline(blockSlot) : Math.ceil(this.timetable.getCheckpointProposalReceiveDeadline(blockSlot) + this.config.orphanPruneNoProposalTolerance));
|
|
714
|
+
// If it's still not checkpointed once strictly past the selected deadline, prune it along with all blocks after
|
|
715
|
+
// it. A proposal may still legitimately arrive or materialize at exactly its deadline, so the tip is only
|
|
716
|
+
// orphaned once that instant has fully elapsed.
|
|
717
|
+
if (now > selectedDeadline) {
|
|
718
|
+
const pruneAfterBlockNumber = BlockNumber(blockNumber - 1);
|
|
719
|
+
this.log.warn(`Pruning orphan blocks after block ${pruneAfterBlockNumber}: block at slot ${blockSlot} belongs to ` + `checkpoint ${blockData.checkpointNumber} which has no matching proposed checkpoint`, {
|
|
720
|
+
firstUncheckpointedBlockHeader: blockData.header.toInspect(),
|
|
721
|
+
blockCheckpointNumber: blockData.checkpointNumber,
|
|
722
|
+
blockNumber,
|
|
723
|
+
blockSlot,
|
|
724
|
+
hasCheckpointProposal,
|
|
725
|
+
deadlineType,
|
|
726
|
+
selectedDeadline,
|
|
727
|
+
now
|
|
728
|
+
});
|
|
729
|
+
const prunedBlocks = await this.updater.removeBlocksWithoutProposedCheckpointAfter(pruneAfterBlockNumber);
|
|
730
|
+
if (prunedBlocks.length > 0) {
|
|
731
|
+
this.instrumentation.recordPrune('orphan');
|
|
732
|
+
this.events.emit(L2BlockSourceEvents.L2PruneUncheckpointed, {
|
|
733
|
+
type: L2BlockSourceEvents.L2PruneUncheckpointed,
|
|
734
|
+
slotNumber: blockSlot,
|
|
735
|
+
blocks: prunedBlocks
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
return;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
this.log.trace('No orphan proposed blocks to prune: all uncheckpointed blocks are still within deadline', {
|
|
742
|
+
blocksWithoutProposedCheckpoint: blocksWithoutProposedCheckpoint.map((b)=>b.header.toInspect())
|
|
743
|
+
});
|
|
555
744
|
}
|
|
556
745
|
async syncFromL1() {
|
|
557
746
|
// Delegate to the L1 synchronizer
|
|
558
|
-
await this.synchronizer.syncFromL1(this.initialSyncComplete);
|
|
747
|
+
const blocksAdded = await this.synchronizer.syncFromL1(this.initialSyncComplete);
|
|
559
748
|
// Check if we've completed initial sync
|
|
560
749
|
const currentL1BlockNumber = this.synchronizer.getL1BlockNumber();
|
|
561
750
|
if (currentL1BlockNumber !== undefined && !this.initialSyncComplete) {
|
|
@@ -563,7 +752,7 @@ _dec = trackSpan('Archiver.sync');
|
|
|
563
752
|
if (currentL1BlockNumber + 1n >= l1BlockNumberAtEnd) {
|
|
564
753
|
this.log.info(`Initial archiver sync to L1 block ${currentL1BlockNumber} complete`, {
|
|
565
754
|
l1BlockNumber: currentL1BlockNumber,
|
|
566
|
-
syncPoint: await this.
|
|
755
|
+
syncPoint: await getArchiverSynchPoint(this.stores),
|
|
567
756
|
...await this.getL2Tips()
|
|
568
757
|
});
|
|
569
758
|
this.runningPromise.setPollingIntervalMS(this.config.pollingIntervalMs);
|
|
@@ -571,6 +760,7 @@ _dec = trackSpan('Archiver.sync');
|
|
|
571
760
|
this.initialSyncPromise.resolve();
|
|
572
761
|
}
|
|
573
762
|
}
|
|
763
|
+
return blocksAdded;
|
|
574
764
|
}
|
|
575
765
|
/** Resumes the archiver after a stop. */ resume() {
|
|
576
766
|
if (this.runningPromise.isRunning()) {
|
|
@@ -589,7 +779,7 @@ _dec = trackSpan('Archiver.sync');
|
|
|
589
779
|
return Promise.resolve();
|
|
590
780
|
}
|
|
591
781
|
backupTo(destPath) {
|
|
592
|
-
return this.
|
|
782
|
+
return backupArchiverDataStores(this.dataStores, destPath);
|
|
593
783
|
}
|
|
594
784
|
getL1Constants() {
|
|
595
785
|
return Promise.resolve(this.l1Constants);
|
|
@@ -624,9 +814,9 @@ _dec = trackSpan('Archiver.sync');
|
|
|
624
814
|
}
|
|
625
815
|
}
|
|
626
816
|
let slotFromCheckpoint;
|
|
627
|
-
const latestCheckpointNumber = await this.
|
|
817
|
+
const latestCheckpointNumber = await this.stores.blocks.getLatestCheckpointNumber();
|
|
628
818
|
if (latestCheckpointNumber > 0) {
|
|
629
|
-
const checkpointData = await this.
|
|
819
|
+
const checkpointData = await this.stores.blocks.getCheckpointData(latestCheckpointNumber);
|
|
630
820
|
if (checkpointData) {
|
|
631
821
|
slotFromCheckpoint = checkpointData.header.slotNumber;
|
|
632
822
|
}
|
|
@@ -655,8 +845,9 @@ _dec = trackSpan('Archiver.sync');
|
|
|
655
845
|
// The epoch is complete if the current checkpointed L2 block is the last one in the epoch (or later).
|
|
656
846
|
// We use the checkpointed block number (synced from L1) instead of 'latest' to avoid returning true
|
|
657
847
|
// prematurely when proposed blocks have been pushed to the archiver but not yet checkpointed on L1.
|
|
658
|
-
const
|
|
659
|
-
|
|
848
|
+
const header = (await this.getBlockData({
|
|
849
|
+
tag: 'checkpointed'
|
|
850
|
+
}))?.header;
|
|
660
851
|
const slot = header ? header.globalVariables.slotNumber : undefined;
|
|
661
852
|
const [_startSlot, endSlot] = getSlotRangeForEpoch(epochNumber, this.l1Constants);
|
|
662
853
|
if (slot && slot >= endSlot) {
|
|
@@ -684,6 +875,13 @@ _dec = trackSpan('Archiver.sync');
|
|
|
684
875
|
removeCheckpointsAfter(checkpointNumber) {
|
|
685
876
|
return this.updater.removeCheckpointsAfter(checkpointNumber);
|
|
686
877
|
}
|
|
878
|
+
/**
|
|
879
|
+
* Removes all uncheckpointed blocks strictly after `blockNumber`, along with the proposed checkpoints
|
|
880
|
+
* that referenced them. Used by the AutomineSequencer to undo a local insert whose propose tx failed
|
|
881
|
+
* to land on L1 (no reorg needed — nothing reached L1). Refuses to touch checkpointed blocks.
|
|
882
|
+
*/ removeUncheckpointedBlocksAfter(blockNumber) {
|
|
883
|
+
return this.updater.removeUncheckpointedBlocksAfter(blockNumber);
|
|
884
|
+
}
|
|
687
885
|
/** Used by TXE to add checkpoints directly without syncing from L1. */ async addCheckpoints(checkpoints, pendingChainValidationStatus) {
|
|
688
886
|
await this.updater.addCheckpoints(checkpoints, pendingChainValidationStatus);
|
|
689
887
|
return true;
|
|
@@ -698,21 +896,28 @@ _dec = trackSpan('Archiver.sync');
|
|
|
698
896
|
if (targetL2BlockNumber >= currentL2Block) {
|
|
699
897
|
throw new Error(`Target L2 block ${targetL2BlockNumber} must be less than current L2 block ${currentL2Block}`);
|
|
700
898
|
}
|
|
701
|
-
const
|
|
702
|
-
if (
|
|
899
|
+
const checkpointedTip = await this.stores.blocks.getCheckpointedL2BlockNumber();
|
|
900
|
+
if (targetL2BlockNumber > checkpointedTip) {
|
|
901
|
+
throw new Error(`Target L2 block ${targetL2BlockNumber} is not checkpointed yet`);
|
|
902
|
+
}
|
|
903
|
+
const targetBlockData = await this.stores.blocks.getBlockData({
|
|
904
|
+
number: targetL2BlockNumber
|
|
905
|
+
});
|
|
906
|
+
if (!targetBlockData) {
|
|
703
907
|
throw new Error(`Target L2 block ${targetL2BlockNumber} not found`);
|
|
704
908
|
}
|
|
705
|
-
const targetCheckpointNumber =
|
|
909
|
+
const targetCheckpointNumber = targetBlockData.checkpointNumber;
|
|
706
910
|
// Rollback operates at checkpoint granularity: the target block must be the last block of its checkpoint.
|
|
707
|
-
const checkpointData = await this.
|
|
708
|
-
if (checkpointData) {
|
|
709
|
-
|
|
710
|
-
if (targetL2BlockNumber !== lastBlockInCheckpoint) {
|
|
711
|
-
const previousCheckpointBoundary = checkpointData.startBlock > 1 ? BlockNumber(checkpointData.startBlock - 1) : BlockNumber(0);
|
|
712
|
-
throw new Error(`Target L2 block ${targetL2BlockNumber} is not at a checkpoint boundary. ` + `Checkpoint ${targetCheckpointNumber} spans blocks ${checkpointData.startBlock} to ${lastBlockInCheckpoint}. ` + `Use block ${lastBlockInCheckpoint} to roll back to this checkpoint, ` + `or block ${previousCheckpointBoundary} to roll back to the previous one.`);
|
|
713
|
-
}
|
|
911
|
+
const checkpointData = await this.stores.blocks.getCheckpointData(targetCheckpointNumber);
|
|
912
|
+
if (!checkpointData) {
|
|
913
|
+
throw new Error(`Checkpoint ${targetCheckpointNumber} not found for block ${targetL2BlockNumber}`);
|
|
714
914
|
}
|
|
715
|
-
const
|
|
915
|
+
const lastBlockInCheckpoint = BlockNumber(checkpointData.startBlock + checkpointData.blockCount - 1);
|
|
916
|
+
if (targetL2BlockNumber !== lastBlockInCheckpoint) {
|
|
917
|
+
const previousCheckpointBoundary = checkpointData.startBlock > 1 ? BlockNumber(checkpointData.startBlock - 1) : BlockNumber(0);
|
|
918
|
+
throw new Error(`Target L2 block ${targetL2BlockNumber} is not at a checkpoint boundary. ` + `Checkpoint ${targetCheckpointNumber} spans blocks ${checkpointData.startBlock} to ${lastBlockInCheckpoint}. ` + `Use block ${lastBlockInCheckpoint} to roll back to this checkpoint, ` + `or block ${previousCheckpointBoundary} to roll back to the previous one.`);
|
|
919
|
+
}
|
|
920
|
+
const targetL1BlockNumber = checkpointData.l1.blockNumber;
|
|
716
921
|
const targetL1Block = await this.publicClient.getBlock({
|
|
717
922
|
blockNumber: targetL1BlockNumber,
|
|
718
923
|
includeTransactions: false
|
|
@@ -724,13 +929,13 @@ _dec = trackSpan('Archiver.sync');
|
|
|
724
929
|
this.log.info(`Removing checkpoints after checkpoint ${targetCheckpointNumber} (target block ${targetL2BlockNumber})`);
|
|
725
930
|
await this.updater.removeCheckpointsAfter(targetCheckpointNumber);
|
|
726
931
|
this.log.info(`Rolling back L1 to L2 messages to checkpoint ${targetCheckpointNumber}`);
|
|
727
|
-
await this.
|
|
932
|
+
await this.stores.messages.rollbackL1ToL2MessagesToCheckpoint(targetCheckpointNumber);
|
|
728
933
|
this.log.info(`Setting L1 syncpoints to ${targetL1BlockNumber}`);
|
|
729
|
-
await this.
|
|
730
|
-
await this.
|
|
934
|
+
await this.stores.blocks.setSynchedL1BlockNumber(targetL1BlockNumber);
|
|
935
|
+
await this.stores.messages.setMessageSyncState({
|
|
731
936
|
l1BlockNumber: targetL1BlockNumber,
|
|
732
937
|
l1BlockHash: targetL1BlockHash
|
|
733
|
-
});
|
|
938
|
+
}, undefined);
|
|
734
939
|
if (targetL2BlockNumber < currentProvenBlock) {
|
|
735
940
|
this.log.info(`Rolling back proven L2 checkpoint to ${targetCheckpointNumber}`);
|
|
736
941
|
await this.updater.setProvenCheckpointNumber(targetCheckpointNumber);
|
package/dest/config.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type BlobClientConfig } from '@aztec/blob-client/client/config';
|
|
|
2
2
|
import { type L1ContractsConfig } from '@aztec/ethereum/config';
|
|
3
3
|
import { type L1ReaderConfig } from '@aztec/ethereum/l1-reader';
|
|
4
4
|
import { type ConfigMappingsType } from '@aztec/foundation/config';
|
|
5
|
-
import { type ChainConfig } from '@aztec/stdlib/config';
|
|
5
|
+
import { type ChainConfig, type SequencerConfig } from '@aztec/stdlib/config';
|
|
6
6
|
import type { ArchiverSpecificConfig } from '@aztec/stdlib/interfaces/server';
|
|
7
7
|
/**
|
|
8
8
|
* The archiver configuration.
|
|
@@ -11,7 +11,7 @@ import type { ArchiverSpecificConfig } from '@aztec/stdlib/interfaces/server';
|
|
|
11
11
|
* Results of calls to eth_blockNumber are cached by viem with this cache being updated periodically at the interval specified by viemPollingIntervalMS.
|
|
12
12
|
* As a result the maximum observed polling time for new blocks will be viemPollingIntervalMS + archiverPollingIntervalMS.
|
|
13
13
|
*/
|
|
14
|
-
export type ArchiverConfig = ArchiverSpecificConfig & L1ReaderConfig & L1ContractsConfig & BlobClientConfig & ChainConfig
|
|
14
|
+
export type ArchiverConfig = ArchiverSpecificConfig & L1ReaderConfig & L1ContractsConfig & BlobClientConfig & ChainConfig & Pick<SequencerConfig, 'blockDurationMs' | 'checkpointProposalSyncGraceSeconds'>;
|
|
15
15
|
export declare const archiverConfigMappings: ConfigMappingsType<ArchiverConfig>;
|
|
16
16
|
/**
|
|
17
17
|
* Returns the archiver configuration from the environment variables.
|
|
@@ -24,7 +24,11 @@ export declare function mapArchiverConfig(config: Partial<ArchiverConfig>): {
|
|
|
24
24
|
pollingIntervalMs: number | undefined;
|
|
25
25
|
batchSize: number | undefined;
|
|
26
26
|
skipValidateCheckpointAttestations: boolean | undefined;
|
|
27
|
+
skipPromoteProposedCheckpointDuringL1Sync: boolean | undefined;
|
|
27
28
|
maxAllowedEthClientDriftSeconds: number | undefined;
|
|
28
29
|
ethereumAllowNoDebugHosts: boolean | undefined;
|
|
30
|
+
skipHistoricalLogsCheck: boolean | undefined;
|
|
31
|
+
orphanPruneNoProposalTolerance: number | undefined;
|
|
32
|
+
skipOrphanProposedBlockPruning: boolean | undefined;
|
|
29
33
|
};
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxLQUFLLGdCQUFnQixFQUEyQixNQUFNLGtDQUFrQyxDQUFDO0FBQ2xHLE9BQU8sRUFBRSxLQUFLLGlCQUFpQixFQUE2QixNQUFNLHdCQUF3QixDQUFDO0FBQzNGLE9BQU8sRUFBRSxLQUFLLGNBQWMsRUFBMEIsTUFBTSwyQkFBMkIsQ0FBQztBQUN4RixPQUFPLEVBQ0wsS0FBSyxrQkFBa0IsRUFLeEIsTUFBTSwwQkFBMEIsQ0FBQztBQUNsQyxPQUFPLEVBQUUsS0FBSyxXQUFXLEVBQUUsS0FBSyxlQUFlLEVBQXVCLE1BQU0sc0JBQXNCLENBQUM7QUFDbkcsT0FBTyxLQUFLLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUc5RTs7Ozs7O0dBTUc7QUFDSCxNQUFNLE1BQU0sY0FBYyxHQUFHLHNCQUFzQixHQUNqRCxjQUFjLEdBQ2QsaUJBQWlCLEdBQ2pCLGdCQUFnQixHQUNoQixXQUFXLEdBQ1gsSUFBSSxDQUFDLGVBQWUsRUFBRSxpQkFBaUIsR0FBRyxvQ0FBb0MsQ0FBQyxDQUFDO0FBRWxGLGVBQU8sTUFBTSxzQkFBc0IsRUFBRSxrQkFBa0IsQ0FBQyxjQUFjLENBZ0ZyRSxDQUFDO0FBRUY7Ozs7R0FJRztBQUNILHdCQUFnQix3QkFBd0IsSUFBSSxjQUFjLENBRXpEO0FBRUQsZ0ZBQWdGO0FBQ2hGLHdCQUFnQixpQkFBaUIsQ0FBQyxNQUFNLEVBQUUsT0FBTyxDQUFDLGNBQWMsQ0FBQzs7Ozs7Ozs7OztFQVloRSJ9
|
package/dest/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAA2B,MAAM,kCAAkC,CAAC;AAClG,OAAO,EAAE,KAAK,iBAAiB,EAA6B,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAA2B,MAAM,kCAAkC,CAAC;AAClG,OAAO,EAAE,KAAK,iBAAiB,EAA6B,MAAM,wBAAwB,CAAC;AAC3F,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,2BAA2B,CAAC;AACxF,OAAO,EACL,KAAK,kBAAkB,EAKxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAuB,MAAM,sBAAsB,CAAC;AACnG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAG9E;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG,sBAAsB,GACjD,cAAc,GACd,iBAAiB,GACjB,gBAAgB,GAChB,WAAW,GACX,IAAI,CAAC,eAAe,EAAE,iBAAiB,GAAG,oCAAoC,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"}
|