@aztec/aztec-node 0.0.1-commit.7d4e6cd → 0.0.1-commit.858058eac
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dest/aztec-node/node_metrics.d.ts +1 -1
- package/dest/aztec-node/node_metrics.d.ts.map +1 -1
- package/dest/aztec-node/node_metrics.js +8 -4
- package/dest/aztec-node/server.d.ts +25 -92
- package/dest/aztec-node/server.d.ts.map +1 -1
- package/dest/aztec-node/server.js +151 -159
- package/dest/sentinel/factory.d.ts +1 -1
- package/dest/sentinel/factory.d.ts.map +1 -1
- package/dest/sentinel/factory.js +1 -1
- package/dest/sentinel/sentinel.js +1 -1
- package/dest/sentinel/store.d.ts +2 -2
- package/dest/sentinel/store.d.ts.map +1 -1
- package/package.json +26 -25
- package/src/aztec-node/node_metrics.ts +12 -5
- package/src/aztec-node/server.ts +193 -221
- package/src/sentinel/factory.ts +1 -6
- package/src/sentinel/sentinel.ts +1 -1
|
@@ -374,7 +374,6 @@ var _dec, _initProto;
|
|
|
374
374
|
import { createArchiver } from '@aztec/archiver';
|
|
375
375
|
import { BBCircuitVerifier, QueuedIVCVerifier, TestCircuitVerifier } from '@aztec/bb-prover';
|
|
376
376
|
import { createBlobClientWithFileStores } from '@aztec/blob-client/client';
|
|
377
|
-
import { INITIAL_L2_BLOCK_NUM } from '@aztec/constants';
|
|
378
377
|
import { EpochCache } from '@aztec/epoch-cache';
|
|
379
378
|
import { createEthereumChain } from '@aztec/ethereum/chain';
|
|
380
379
|
import { getPublicClient } from '@aztec/ethereum/client';
|
|
@@ -393,12 +392,12 @@ import { trySnapshotSync, uploadSnapshot } from '@aztec/node-lib/actions';
|
|
|
393
392
|
import { createForwarderL1TxUtilsFromEthSigner, createL1TxUtilsWithBlobsFromEthSigner } from '@aztec/node-lib/factories';
|
|
394
393
|
import { createP2PClient, getDefaultAllowedSetupFunctions } from '@aztec/p2p';
|
|
395
394
|
import { ProtocolContractAddress } from '@aztec/protocol-contracts';
|
|
396
|
-
import {
|
|
395
|
+
import { GlobalVariableBuilder, SequencerClient } from '@aztec/sequencer-client';
|
|
397
396
|
import { PublicProcessorFactory } from '@aztec/simulator/server';
|
|
398
397
|
import { AttestationsBlockWatcher, EpochPruneWatcher, createSlasher } from '@aztec/slasher';
|
|
399
398
|
import { CollectionLimitsConfig, PublicSimulatorConfig } from '@aztec/stdlib/avm';
|
|
400
399
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
401
|
-
import {
|
|
400
|
+
import { BlockHash, L2Block } from '@aztec/stdlib/block';
|
|
402
401
|
import { GasFees } from '@aztec/stdlib/gas';
|
|
403
402
|
import { computePublicDataTreeLeafSlot } from '@aztec/stdlib/hash';
|
|
404
403
|
import { AztecNodeAdminConfigSchema } from '@aztec/stdlib/interfaces/client';
|
|
@@ -451,6 +450,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
451
450
|
], []));
|
|
452
451
|
}
|
|
453
452
|
metrics;
|
|
453
|
+
initialHeaderHashPromise;
|
|
454
454
|
// Prevent two snapshot operations to happen simultaneously
|
|
455
455
|
isUploadingSnapshot;
|
|
456
456
|
tracer;
|
|
@@ -475,7 +475,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
475
475
|
this.telemetry = telemetry;
|
|
476
476
|
this.log = log;
|
|
477
477
|
this.blobClient = blobClient;
|
|
478
|
-
this.
|
|
478
|
+
this.initialHeaderHashPromise = (_initProto(this), undefined);
|
|
479
|
+
this.isUploadingSnapshot = false;
|
|
479
480
|
this.metrics = new NodeMetrics(telemetry, 'AztecNodeService');
|
|
480
481
|
this.tracer = telemetry.getTracer('AztecNodeService');
|
|
481
482
|
this.log.info(`Aztec Node version: ${this.packageVersion}`);
|
|
@@ -576,22 +577,16 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
576
577
|
const p2pClient = await createP2PClient(P2PClientType.Full, config, archiver, proofVerifier, worldStateSynchronizer, epochCache, packageVersion, dateProvider, telemetry, deps.p2pClientDeps);
|
|
577
578
|
// We should really not be modifying the config object
|
|
578
579
|
config.txPublicSetupAllowList = config.txPublicSetupAllowList ?? await getDefaultAllowedSetupFunctions();
|
|
579
|
-
// Create BlockBuilder for EpochPruneWatcher (slasher functionality)
|
|
580
|
-
const blockBuilder = new BlockBuilder({
|
|
581
|
-
...config,
|
|
582
|
-
l1GenesisTime,
|
|
583
|
-
slotDuration: Number(slotDuration)
|
|
584
|
-
}, worldStateSynchronizer, archiver, dateProvider, telemetry);
|
|
585
580
|
// Create FullNodeCheckpointsBuilder for validator and non-validator block proposal handling
|
|
586
581
|
const validatorCheckpointsBuilder = new FullNodeCheckpointsBuilder({
|
|
587
582
|
...config,
|
|
588
583
|
l1GenesisTime,
|
|
589
584
|
slotDuration: Number(slotDuration)
|
|
590
|
-
}, archiver, dateProvider, telemetry);
|
|
585
|
+
}, worldStateSynchronizer, archiver, dateProvider, telemetry);
|
|
591
586
|
// We'll accumulate sentinel watchers here
|
|
592
587
|
const watchers = [];
|
|
593
588
|
// Create validator client if required
|
|
594
|
-
const validatorClient = createValidatorClient(config, {
|
|
589
|
+
const validatorClient = await createValidatorClient(config, {
|
|
595
590
|
checkpointsBuilder: validatorCheckpointsBuilder,
|
|
596
591
|
worldState: worldStateSynchronizer,
|
|
597
592
|
p2pClient,
|
|
@@ -637,7 +632,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
637
632
|
}
|
|
638
633
|
let epochPruneWatcher;
|
|
639
634
|
if (config.slashPrunePenalty > 0n || config.slashDataWithholdingPenalty > 0n) {
|
|
640
|
-
epochPruneWatcher = new EpochPruneWatcher(archiver, archiver, epochCache, p2pClient.getTxProvider(),
|
|
635
|
+
epochPruneWatcher = new EpochPruneWatcher(archiver, archiver, epochCache, p2pClient.getTxProvider(), validatorCheckpointsBuilder, config);
|
|
641
636
|
watchers.push(epochPruneWatcher);
|
|
642
637
|
}
|
|
643
638
|
// We assume we want to slash for invalid attestations unless all max penalties are set to 0
|
|
@@ -683,7 +678,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
683
678
|
...config,
|
|
684
679
|
l1GenesisTime,
|
|
685
680
|
slotDuration: Number(slotDuration)
|
|
686
|
-
}, archiver, dateProvider, telemetry);
|
|
681
|
+
}, worldStateSynchronizer, archiver, dateProvider, telemetry);
|
|
687
682
|
sequencer = await SequencerClient.new(config, {
|
|
688
683
|
...deps,
|
|
689
684
|
epochCache,
|
|
@@ -763,33 +758,46 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
763
758
|
rollupVersion,
|
|
764
759
|
enr,
|
|
765
760
|
l1ContractAddresses: contractAddresses,
|
|
766
|
-
protocolContractAddresses: protocolContractAddresses
|
|
761
|
+
protocolContractAddresses: protocolContractAddresses,
|
|
762
|
+
realProofs: !!this.config.realProofs
|
|
767
763
|
};
|
|
768
764
|
return nodeInfo;
|
|
769
765
|
}
|
|
770
766
|
/**
|
|
771
|
-
* Get a block specified by its number.
|
|
772
|
-
* @param
|
|
767
|
+
* Get a block specified by its block number, block hash, or 'latest'.
|
|
768
|
+
* @param block - The block parameter (block number, block hash, or 'latest').
|
|
773
769
|
* @returns The requested block.
|
|
774
|
-
*/ async getBlock(
|
|
775
|
-
|
|
776
|
-
|
|
770
|
+
*/ async getBlock(block) {
|
|
771
|
+
if (BlockHash.isBlockHash(block)) {
|
|
772
|
+
return this.getBlockByHash(block);
|
|
773
|
+
}
|
|
774
|
+
const blockNumber = block === 'latest' ? await this.getBlockNumber() : block;
|
|
775
|
+
if (blockNumber === BlockNumber.ZERO) {
|
|
776
|
+
return this.buildInitialBlock();
|
|
777
|
+
}
|
|
778
|
+
return await this.blockSource.getL2Block(blockNumber);
|
|
777
779
|
}
|
|
778
780
|
/**
|
|
779
781
|
* Get a block specified by its hash.
|
|
780
782
|
* @param blockHash - The block hash being requested.
|
|
781
783
|
* @returns The requested block.
|
|
782
784
|
*/ async getBlockByHash(blockHash) {
|
|
783
|
-
const
|
|
784
|
-
|
|
785
|
+
const initialBlockHash = await this.#getInitialHeaderHash();
|
|
786
|
+
if (blockHash.equals(initialBlockHash)) {
|
|
787
|
+
return this.buildInitialBlock();
|
|
788
|
+
}
|
|
789
|
+
return await this.blockSource.getL2BlockByHash(blockHash);
|
|
790
|
+
}
|
|
791
|
+
buildInitialBlock() {
|
|
792
|
+
const initialHeader = this.worldStateSynchronizer.getCommitted().getInitialHeader();
|
|
793
|
+
return L2Block.empty(initialHeader);
|
|
785
794
|
}
|
|
786
795
|
/**
|
|
787
796
|
* Get a block specified by its archive root.
|
|
788
797
|
* @param archive - The archive root being requested.
|
|
789
798
|
* @returns The requested block.
|
|
790
799
|
*/ async getBlockByArchive(archive) {
|
|
791
|
-
|
|
792
|
-
return publishedBlock?.block;
|
|
800
|
+
return await this.blockSource.getL2BlockByArchive(archive);
|
|
793
801
|
}
|
|
794
802
|
/**
|
|
795
803
|
* Method to request blocks. Will attempt to return all requested blocks but will return only those available.
|
|
@@ -797,19 +805,13 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
797
805
|
* @param limit - The maximum number of blocks to obtain.
|
|
798
806
|
* @returns The blocks requested.
|
|
799
807
|
*/ async getBlocks(from, limit) {
|
|
800
|
-
return await this.blockSource.getBlocks(from, limit) ?? [];
|
|
801
|
-
}
|
|
802
|
-
async getPublishedBlocks(from, limit) {
|
|
803
|
-
return await this.blockSource.getPublishedBlocks(from, limit) ?? [];
|
|
804
|
-
}
|
|
805
|
-
async getPublishedCheckpoints(from, limit) {
|
|
806
|
-
return await this.blockSource.getPublishedCheckpoints(from, limit) ?? [];
|
|
808
|
+
return await this.blockSource.getBlocks(from, BlockNumber(limit)) ?? [];
|
|
807
809
|
}
|
|
808
|
-
async
|
|
809
|
-
return await this.blockSource.
|
|
810
|
+
async getCheckpoints(from, limit) {
|
|
811
|
+
return await this.blockSource.getCheckpoints(from, limit) ?? [];
|
|
810
812
|
}
|
|
811
|
-
async getCheckpointedBlocks(from, limit
|
|
812
|
-
return await this.blockSource.getCheckpointedBlocks(from, limit
|
|
813
|
+
async getCheckpointedBlocks(from, limit) {
|
|
814
|
+
return await this.blockSource.getCheckpointedBlocks(from, limit) ?? [];
|
|
813
815
|
}
|
|
814
816
|
/**
|
|
815
817
|
* Method to fetch the current min L2 fees.
|
|
@@ -835,6 +837,9 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
835
837
|
async getProvenBlockNumber() {
|
|
836
838
|
return await this.blockSource.getProvenBlockNumber();
|
|
837
839
|
}
|
|
840
|
+
async getCheckpointedBlockNumber() {
|
|
841
|
+
return await this.blockSource.getCheckpointedL2BlockNumber();
|
|
842
|
+
}
|
|
838
843
|
/**
|
|
839
844
|
* Method to fetch the version of the package.
|
|
840
845
|
* @returns The node package version
|
|
@@ -859,11 +864,29 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
859
864
|
getContract(address) {
|
|
860
865
|
return this.contractDataSource.getContract(address);
|
|
861
866
|
}
|
|
862
|
-
getPrivateLogsByTags(tags) {
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
+
async getPrivateLogsByTags(tags, page, referenceBlock) {
|
|
868
|
+
if (referenceBlock) {
|
|
869
|
+
const initialBlockHash = await this.#getInitialHeaderHash();
|
|
870
|
+
if (!referenceBlock.equals(initialBlockHash)) {
|
|
871
|
+
const header = await this.blockSource.getBlockHeaderByHash(referenceBlock);
|
|
872
|
+
if (!header) {
|
|
873
|
+
throw new Error(`Block ${referenceBlock.toString()} not found in the node. This might indicate a reorg has occurred.`);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
return this.logsSource.getPrivateLogsByTags(tags, page);
|
|
878
|
+
}
|
|
879
|
+
async getPublicLogsByTagsFromContract(contractAddress, tags, page, referenceBlock) {
|
|
880
|
+
if (referenceBlock) {
|
|
881
|
+
const initialBlockHash = await this.#getInitialHeaderHash();
|
|
882
|
+
if (!referenceBlock.equals(initialBlockHash)) {
|
|
883
|
+
const header = await this.blockSource.getBlockHeaderByHash(referenceBlock);
|
|
884
|
+
if (!header) {
|
|
885
|
+
throw new Error(`Block ${referenceBlock.toString()} not found in the node. This might indicate a reorg has occurred.`);
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
return this.logsSource.getPublicLogsByTagsFromContract(contractAddress, tags, page);
|
|
867
890
|
}
|
|
868
891
|
/**
|
|
869
892
|
* Gets public logs based on the provided filter.
|
|
@@ -904,18 +927,24 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
904
927
|
});
|
|
905
928
|
}
|
|
906
929
|
async getTxReceipt(txHash) {
|
|
907
|
-
|
|
908
|
-
//
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
txReceipt = new TxReceipt(txHash, TxStatus.PENDING, '');
|
|
913
|
-
}
|
|
930
|
+
// Check the tx pool status first. If the tx is known to the pool (pending or mined), we'll use that
|
|
931
|
+
// as a fallback if we don't find a settled receipt in the archiver.
|
|
932
|
+
const txPoolStatus = await this.p2pClient.getTxStatus(txHash);
|
|
933
|
+
const isKnownToPool = txPoolStatus === 'pending' || txPoolStatus === 'mined';
|
|
934
|
+
// Then get the actual tx from the archiver, which tracks every tx in a mined block.
|
|
914
935
|
const settledTxReceipt = await this.blockSource.getSettledTxReceipt(txHash);
|
|
915
936
|
if (settledTxReceipt) {
|
|
916
|
-
|
|
937
|
+
// If the archiver has the receipt then return it.
|
|
938
|
+
return settledTxReceipt;
|
|
939
|
+
} else if (isKnownToPool) {
|
|
940
|
+
// If the tx is in the pool but not in the archiver, it's pending.
|
|
941
|
+
// This handles race conditions between archiver and p2p, where the archiver
|
|
942
|
+
// has pruned the block in which a tx was mined, but p2p has not caught up yet.
|
|
943
|
+
return new TxReceipt(txHash, TxStatus.PENDING, undefined, undefined);
|
|
944
|
+
} else {
|
|
945
|
+
// Otherwise, if we don't know the tx, we consider it dropped.
|
|
946
|
+
return new TxReceipt(txHash, TxStatus.DROPPED, undefined, 'Tx dropped by P2P node');
|
|
917
947
|
}
|
|
918
|
-
return txReceipt;
|
|
919
948
|
}
|
|
920
949
|
getTxEffect(txHash) {
|
|
921
950
|
return this.blockSource.getTxEffect(txHash);
|
|
@@ -967,15 +996,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
967
996
|
*/ async getTxsByHash(txHashes) {
|
|
968
997
|
return compactArray(await Promise.all(txHashes.map((txHash)=>this.getTxByHash(txHash))));
|
|
969
998
|
}
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
* the leaves were inserted.
|
|
973
|
-
* @param blockNumber - The block number at which to get the data or 'latest' for latest data.
|
|
974
|
-
* @param treeId - The tree to search in.
|
|
975
|
-
* @param leafValues - The values to search for.
|
|
976
|
-
* @returns The indices of leaves and the block metadata of a block in which the leaves were inserted.
|
|
977
|
-
*/ async findLeavesIndexes(blockNumber, treeId, leafValues) {
|
|
978
|
-
const committedDb = await this.#getWorldState(blockNumber);
|
|
999
|
+
async findLeavesIndexes(referenceBlock, treeId, leafValues) {
|
|
1000
|
+
const committedDb = await this.#getWorldState(referenceBlock);
|
|
979
1001
|
const maybeIndices = await committedDb.findLeafIndices(treeId, leafValues.map((x)=>x.toBuffer()));
|
|
980
1002
|
// We filter out undefined values
|
|
981
1003
|
const indices = maybeIndices.filter((x)=>x !== undefined);
|
|
@@ -1018,50 +1040,27 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1018
1040
|
}
|
|
1019
1041
|
return {
|
|
1020
1042
|
l2BlockNumber: BlockNumber(Number(blockNumber)),
|
|
1021
|
-
l2BlockHash:
|
|
1043
|
+
l2BlockHash: new BlockHash(blockHash),
|
|
1022
1044
|
data: index
|
|
1023
1045
|
};
|
|
1024
1046
|
});
|
|
1025
1047
|
}
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
* @param blockNumber - The block number at which to get the data.
|
|
1029
|
-
* @param leafIndex - The index of the leaf for which the sibling path is required.
|
|
1030
|
-
* @returns The sibling path for the leaf index.
|
|
1031
|
-
*/ async getNullifierSiblingPath(blockNumber, leafIndex) {
|
|
1032
|
-
const committedDb = await this.#getWorldState(blockNumber);
|
|
1033
|
-
return committedDb.getSiblingPath(MerkleTreeId.NULLIFIER_TREE, leafIndex);
|
|
1034
|
-
}
|
|
1035
|
-
/**
|
|
1036
|
-
* Returns a sibling path for the given index in the data tree.
|
|
1037
|
-
* @param blockNumber - The block number at which to get the data.
|
|
1038
|
-
* @param leafIndex - The index of the leaf for which the sibling path is required.
|
|
1039
|
-
* @returns The sibling path for the leaf index.
|
|
1040
|
-
*/ async getNoteHashSiblingPath(blockNumber, leafIndex) {
|
|
1041
|
-
const committedDb = await this.#getWorldState(blockNumber);
|
|
1042
|
-
return committedDb.getSiblingPath(MerkleTreeId.NOTE_HASH_TREE, leafIndex);
|
|
1043
|
-
}
|
|
1044
|
-
async getArchiveMembershipWitness(blockNumber, archive) {
|
|
1045
|
-
const committedDb = await this.#getWorldState(blockNumber);
|
|
1048
|
+
async getBlockHashMembershipWitness(referenceBlock, blockHash) {
|
|
1049
|
+
const committedDb = await this.#getWorldState(referenceBlock);
|
|
1046
1050
|
const [pathAndIndex] = await committedDb.findSiblingPaths(MerkleTreeId.ARCHIVE, [
|
|
1047
|
-
|
|
1051
|
+
blockHash
|
|
1048
1052
|
]);
|
|
1049
1053
|
return pathAndIndex === undefined ? undefined : MembershipWitness.fromSiblingPath(pathAndIndex.index, pathAndIndex.path);
|
|
1050
1054
|
}
|
|
1051
|
-
async getNoteHashMembershipWitness(
|
|
1052
|
-
const committedDb = await this.#getWorldState(
|
|
1055
|
+
async getNoteHashMembershipWitness(referenceBlock, noteHash) {
|
|
1056
|
+
const committedDb = await this.#getWorldState(referenceBlock);
|
|
1053
1057
|
const [pathAndIndex] = await committedDb.findSiblingPaths(MerkleTreeId.NOTE_HASH_TREE, [
|
|
1054
1058
|
noteHash
|
|
1055
1059
|
]);
|
|
1056
1060
|
return pathAndIndex === undefined ? undefined : MembershipWitness.fromSiblingPath(pathAndIndex.index, pathAndIndex.path);
|
|
1057
1061
|
}
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
* @param blockNumber - The block number at which to get the data.
|
|
1061
|
-
* @param l1ToL2Message - The l1ToL2Message to get the index / sibling path for.
|
|
1062
|
-
* @returns A tuple of the index and the sibling path of the L1ToL2Message (undefined if not found).
|
|
1063
|
-
*/ async getL1ToL2MessageMembershipWitness(blockNumber, l1ToL2Message) {
|
|
1064
|
-
const db = await this.#getWorldState(blockNumber);
|
|
1062
|
+
async getL1ToL2MessageMembershipWitness(referenceBlock, l1ToL2Message) {
|
|
1063
|
+
const db = await this.#getWorldState(referenceBlock);
|
|
1065
1064
|
const [witness] = await db.findSiblingPaths(MerkleTreeId.L1_TO_L2_MESSAGE_TREE, [
|
|
1066
1065
|
l1ToL2Message
|
|
1067
1066
|
]);
|
|
@@ -1091,12 +1090,13 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1091
1090
|
* @param epoch - The epoch at which to get the data.
|
|
1092
1091
|
* @returns The L2 to L1 messages (empty array if the epoch is not found).
|
|
1093
1092
|
*/ async getL2ToL1Messages(epoch) {
|
|
1094
|
-
// Assumes `
|
|
1095
|
-
const
|
|
1093
|
+
// Assumes `getCheckpointedBlocksForEpoch` returns blocks in ascending order of block number.
|
|
1094
|
+
const checkpointedBlocks = await this.blockSource.getCheckpointedBlocksForEpoch(epoch);
|
|
1096
1095
|
const blocksInCheckpoints = [];
|
|
1097
1096
|
let previousSlotNumber = SlotNumber.ZERO;
|
|
1098
1097
|
let checkpointIndex = -1;
|
|
1099
|
-
for (const
|
|
1098
|
+
for (const checkpointedBlock of checkpointedBlocks){
|
|
1099
|
+
const block = checkpointedBlock.block;
|
|
1100
1100
|
const slotNumber = block.header.globalVariables.slotNumber;
|
|
1101
1101
|
if (slotNumber !== previousSlotNumber) {
|
|
1102
1102
|
checkpointIndex++;
|
|
@@ -1107,31 +1107,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1107
1107
|
}
|
|
1108
1108
|
return blocksInCheckpoints.map((blocks)=>blocks.map((block)=>block.body.txEffects.map((txEffect)=>txEffect.l2ToL1Msgs)));
|
|
1109
1109
|
}
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
* @param blockNumber - The block number at which to get the data.
|
|
1113
|
-
* @param leafIndex - Index of the leaf in the tree.
|
|
1114
|
-
* @returns The sibling path.
|
|
1115
|
-
*/ async getArchiveSiblingPath(blockNumber, leafIndex) {
|
|
1116
|
-
const committedDb = await this.#getWorldState(blockNumber);
|
|
1117
|
-
return committedDb.getSiblingPath(MerkleTreeId.ARCHIVE, leafIndex);
|
|
1118
|
-
}
|
|
1119
|
-
/**
|
|
1120
|
-
* Returns a sibling path for a leaf in the committed public data tree.
|
|
1121
|
-
* @param blockNumber - The block number at which to get the data.
|
|
1122
|
-
* @param leafIndex - Index of the leaf in the tree.
|
|
1123
|
-
* @returns The sibling path.
|
|
1124
|
-
*/ async getPublicDataSiblingPath(blockNumber, leafIndex) {
|
|
1125
|
-
const committedDb = await this.#getWorldState(blockNumber);
|
|
1126
|
-
return committedDb.getSiblingPath(MerkleTreeId.PUBLIC_DATA_TREE, leafIndex);
|
|
1127
|
-
}
|
|
1128
|
-
/**
|
|
1129
|
-
* Returns a nullifier membership witness for a given nullifier at a given block.
|
|
1130
|
-
* @param blockNumber - The block number at which to get the index.
|
|
1131
|
-
* @param nullifier - Nullifier we try to find witness for.
|
|
1132
|
-
* @returns The nullifier membership witness (if found).
|
|
1133
|
-
*/ async getNullifierMembershipWitness(blockNumber, nullifier) {
|
|
1134
|
-
const db = await this.#getWorldState(blockNumber);
|
|
1110
|
+
async getNullifierMembershipWitness(referenceBlock, nullifier) {
|
|
1111
|
+
const db = await this.#getWorldState(referenceBlock);
|
|
1135
1112
|
const [witness] = await db.findSiblingPaths(MerkleTreeId.NULLIFIER_TREE, [
|
|
1136
1113
|
nullifier.toBuffer()
|
|
1137
1114
|
]);
|
|
@@ -1147,7 +1124,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1147
1124
|
}
|
|
1148
1125
|
/**
|
|
1149
1126
|
* Returns a low nullifier membership witness for a given nullifier at a given block.
|
|
1150
|
-
* @param
|
|
1127
|
+
* @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data
|
|
1128
|
+
* (which contains the root of the nullifier tree in which we are searching for the nullifier).
|
|
1151
1129
|
* @param nullifier - Nullifier we try to find the low nullifier witness for.
|
|
1152
1130
|
* @returns The low nullifier membership witness (if found).
|
|
1153
1131
|
* @remarks Low nullifier witness can be used to perform a nullifier non-inclusion proof by leveraging the "linked
|
|
@@ -1158,8 +1136,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1158
1136
|
* the nullifier already exists in the tree. This is because the `getPreviousValueIndex` function returns the
|
|
1159
1137
|
* index of the nullifier itself when it already exists in the tree.
|
|
1160
1138
|
* TODO: This is a confusing behavior and we should eventually address that.
|
|
1161
|
-
*/ async getLowNullifierMembershipWitness(
|
|
1162
|
-
const committedDb = await this.#getWorldState(
|
|
1139
|
+
*/ async getLowNullifierMembershipWitness(referenceBlock, nullifier) {
|
|
1140
|
+
const committedDb = await this.#getWorldState(referenceBlock);
|
|
1163
1141
|
const findResult = await committedDb.getPreviousValueIndex(MerkleTreeId.NULLIFIER_TREE, nullifier.toBigInt());
|
|
1164
1142
|
if (!findResult) {
|
|
1165
1143
|
return undefined;
|
|
@@ -1172,8 +1150,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1172
1150
|
const siblingPath = await committedDb.getSiblingPath(MerkleTreeId.NULLIFIER_TREE, BigInt(index));
|
|
1173
1151
|
return new NullifierMembershipWitness(BigInt(index), preimageData, siblingPath);
|
|
1174
1152
|
}
|
|
1175
|
-
async getPublicDataWitness(
|
|
1176
|
-
const committedDb = await this.#getWorldState(
|
|
1153
|
+
async getPublicDataWitness(referenceBlock, leafSlot) {
|
|
1154
|
+
const committedDb = await this.#getWorldState(referenceBlock);
|
|
1177
1155
|
const lowLeafResult = await committedDb.getPreviousValueIndex(MerkleTreeId.PUBLIC_DATA_TREE, leafSlot.toBigInt());
|
|
1178
1156
|
if (!lowLeafResult) {
|
|
1179
1157
|
return undefined;
|
|
@@ -1183,18 +1161,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1183
1161
|
return new PublicDataWitness(lowLeafResult.index, preimage, path);
|
|
1184
1162
|
}
|
|
1185
1163
|
}
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
*
|
|
1189
|
-
* @remarks The storage slot here refers to the slot as it is defined in Noir not the index in the merkle tree.
|
|
1190
|
-
* Aztec's version of `eth_getStorageAt`.
|
|
1191
|
-
*
|
|
1192
|
-
* @param contract - Address of the contract to query.
|
|
1193
|
-
* @param slot - Slot to query.
|
|
1194
|
-
* @param blockNumber - The block number at which to get the data or 'latest'.
|
|
1195
|
-
* @returns Storage value at the given contract slot.
|
|
1196
|
-
*/ async getPublicStorageAt(blockNumber, contract, slot) {
|
|
1197
|
-
const committedDb = await this.#getWorldState(blockNumber);
|
|
1164
|
+
async getPublicStorageAt(referenceBlock, contract, slot) {
|
|
1165
|
+
const committedDb = await this.#getWorldState(referenceBlock);
|
|
1198
1166
|
const leafSlot = await computePublicDataTreeLeafSlot(contract, slot);
|
|
1199
1167
|
const lowLeafResult = await committedDb.getPreviousValueIndex(MerkleTreeId.PUBLIC_DATA_TREE, leafSlot.toBigInt());
|
|
1200
1168
|
if (!lowLeafResult || !lowLeafResult.alreadyPresent) {
|
|
@@ -1203,18 +1171,22 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1203
1171
|
const preimage = await committedDb.getLeafPreimage(MerkleTreeId.PUBLIC_DATA_TREE, lowLeafResult.index);
|
|
1204
1172
|
return preimage.leaf.value;
|
|
1205
1173
|
}
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1174
|
+
async getBlockHeader(block = 'latest') {
|
|
1175
|
+
if (BlockHash.isBlockHash(block)) {
|
|
1176
|
+
const initialBlockHash = await this.#getInitialHeaderHash();
|
|
1177
|
+
if (block.equals(initialBlockHash)) {
|
|
1178
|
+
// Block source doesn't handle initial header so we need to handle the case separately.
|
|
1179
|
+
return this.worldStateSynchronizer.getCommitted().getInitialHeader();
|
|
1180
|
+
}
|
|
1181
|
+
return this.blockSource.getBlockHeaderByHash(block);
|
|
1182
|
+
} else {
|
|
1183
|
+
// Block source doesn't handle initial header so we need to handle the case separately.
|
|
1184
|
+
const blockNumber = block === 'latest' ? await this.getBlockNumber() : block;
|
|
1185
|
+
if (blockNumber === BlockNumber.ZERO) {
|
|
1186
|
+
return this.worldStateSynchronizer.getCommitted().getInitialHeader();
|
|
1187
|
+
}
|
|
1188
|
+
return this.blockSource.getBlockHeader(block);
|
|
1189
|
+
}
|
|
1218
1190
|
}
|
|
1219
1191
|
/**
|
|
1220
1192
|
* Get a block header specified by its archive root.
|
|
@@ -1240,7 +1212,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1240
1212
|
const coinbase = EthAddress.ZERO;
|
|
1241
1213
|
const feeRecipient = AztecAddress.ZERO;
|
|
1242
1214
|
const newGlobalVariables = await this.globalVariableBuilder.buildGlobalVariables(blockNumber, coinbase, feeRecipient);
|
|
1243
|
-
const publicProcessorFactory = new PublicProcessorFactory(this.contractDataSource, new DateProvider(), this.telemetry);
|
|
1215
|
+
const publicProcessorFactory = new PublicProcessorFactory(this.contractDataSource, new DateProvider(), this.telemetry, this.log.getBindings());
|
|
1244
1216
|
this.log.verbose(`Simulating public calls for tx ${txHash}`, {
|
|
1245
1217
|
globalVariables: newGlobalVariables.toInspect(),
|
|
1246
1218
|
txHash,
|
|
@@ -1291,7 +1263,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1291
1263
|
gasFees: await this.getCurrentMinFees(),
|
|
1292
1264
|
skipFeeEnforcement,
|
|
1293
1265
|
txsPermitted: !this.config.disableTransactions
|
|
1294
|
-
});
|
|
1266
|
+
}, this.log.getBindings());
|
|
1295
1267
|
return await validator.validateTx(tx);
|
|
1296
1268
|
}
|
|
1297
1269
|
getConfig() {
|
|
@@ -1433,14 +1405,17 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1433
1405
|
return this.slasherClient.gatherOffensesForRound(round === 'current' ? undefined : BigInt(round));
|
|
1434
1406
|
}
|
|
1435
1407
|
}
|
|
1408
|
+
#getInitialHeaderHash() {
|
|
1409
|
+
if (!this.initialHeaderHashPromise) {
|
|
1410
|
+
this.initialHeaderHashPromise = this.worldStateSynchronizer.getCommitted().getInitialHeader().hash();
|
|
1411
|
+
}
|
|
1412
|
+
return this.initialHeaderHashPromise;
|
|
1413
|
+
}
|
|
1436
1414
|
/**
|
|
1437
1415
|
* Returns an instance of MerkleTreeOperations having first ensured the world state is fully synched
|
|
1438
|
-
* @param
|
|
1416
|
+
* @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
|
|
1439
1417
|
* @returns An instance of a committed MerkleTreeOperations
|
|
1440
|
-
*/ async #getWorldState(
|
|
1441
|
-
if (typeof blockNumber === 'number' && blockNumber < INITIAL_L2_BLOCK_NUM - 1) {
|
|
1442
|
-
throw new Error('Invalid block number to get world state for: ' + blockNumber);
|
|
1443
|
-
}
|
|
1418
|
+
*/ async #getWorldState(block) {
|
|
1444
1419
|
let blockSyncedTo = BlockNumber.ZERO;
|
|
1445
1420
|
try {
|
|
1446
1421
|
// Attempt to sync the world state if necessary
|
|
@@ -1448,15 +1423,32 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1448
1423
|
} catch (err) {
|
|
1449
1424
|
this.log.error(`Error getting world state: ${err}`);
|
|
1450
1425
|
}
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
this.log.debug(`Using committed db for block ${blockNumber}, world state synced upto ${blockSyncedTo}`);
|
|
1426
|
+
if (block === 'latest') {
|
|
1427
|
+
this.log.debug(`Using committed db for block 'latest', world state synced upto ${blockSyncedTo}`);
|
|
1454
1428
|
return this.worldStateSynchronizer.getCommitted();
|
|
1455
|
-
}
|
|
1429
|
+
}
|
|
1430
|
+
if (BlockHash.isBlockHash(block)) {
|
|
1431
|
+
const initialBlockHash = await this.#getInitialHeaderHash();
|
|
1432
|
+
if (block.equals(initialBlockHash)) {
|
|
1433
|
+
// Block source doesn't handle initial header so we need to handle the case separately.
|
|
1434
|
+
return this.worldStateSynchronizer.getSnapshot(BlockNumber.ZERO);
|
|
1435
|
+
}
|
|
1436
|
+
const header = await this.blockSource.getBlockHeaderByHash(block);
|
|
1437
|
+
if (!header) {
|
|
1438
|
+
throw new Error(`Block hash ${block.toString()} not found when querying world state. If the node API has been queried with anchor block hash possibly a reorg has occurred.`);
|
|
1439
|
+
}
|
|
1440
|
+
const blockNumber = header.getBlockNumber();
|
|
1441
|
+
this.log.debug(`Using snapshot for block ${blockNumber}, world state synced upto ${blockSyncedTo}`);
|
|
1442
|
+
return this.worldStateSynchronizer.getSnapshot(blockNumber);
|
|
1443
|
+
}
|
|
1444
|
+
// Block number provided
|
|
1445
|
+
{
|
|
1446
|
+
const blockNumber = block;
|
|
1447
|
+
if (blockNumber > blockSyncedTo) {
|
|
1448
|
+
throw new Error(`Queried block ${block} not yet synced by the node (node is synced upto ${blockSyncedTo}).`);
|
|
1449
|
+
}
|
|
1456
1450
|
this.log.debug(`Using snapshot for block ${blockNumber}, world state synced upto ${blockSyncedTo}`);
|
|
1457
1451
|
return this.worldStateSynchronizer.getSnapshot(blockNumber);
|
|
1458
|
-
} else {
|
|
1459
|
-
throw new Error(`Block ${blockNumber} not yet synced`);
|
|
1460
1452
|
}
|
|
1461
1453
|
}
|
|
1462
1454
|
/**
|
|
@@ -6,4 +6,4 @@ import type { SlasherConfig } from '@aztec/stdlib/interfaces/server';
|
|
|
6
6
|
import type { SentinelConfig } from './config.js';
|
|
7
7
|
import { Sentinel } from './sentinel.js';
|
|
8
8
|
export declare function createSentinel(epochCache: EpochCache, archiver: L2BlockSource, p2p: P2PClient, config: SentinelConfig & DataStoreConfig & SlasherConfig, logger?: import("@aztec/foundation/log").Logger): Promise<Sentinel | undefined>;
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFjdG9yeS5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NlbnRpbmVsL2ZhY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsVUFBVSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFFckQsT0FBTyxLQUFLLEVBQUUsZUFBZSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFOUQsT0FBTyxLQUFLLEVBQUUsU0FBUyxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQzVDLE9BQU8sS0FBSyxFQUFFLGFBQWEsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3pELE9BQU8sS0FBSyxFQUFFLGFBQWEsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBRXJFLE9BQU8sS0FBSyxFQUFFLGNBQWMsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUNsRCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBR3pDLHdCQUFzQixjQUFjLENBQ2xDLFVBQVUsRUFBRSxVQUFVLEVBQ3RCLFFBQVEsRUFBRSxhQUFhLEVBQ3ZCLEdBQUcsRUFBRSxTQUFTLEVBQ2QsTUFBTSxFQUFFLGNBQWMsR0FBRyxlQUFlLEdBQUcsYUFBYSxFQUN4RCxNQUFNLHlDQUFnQyxHQUNyQyxPQUFPLENBQUMsUUFBUSxHQUFHLFNBQVMsQ0FBQyxDQVkvQiJ9
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/sentinel/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAErE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,wBAAsB,cAAc,CAClC,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,aAAa,EACvB,GAAG,EAAE,SAAS,EACd,MAAM,EAAE,cAAc,GAAG,eAAe,GAAG,aAAa,EACxD,MAAM,yCAAgC,GACrC,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/sentinel/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAErE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,wBAAsB,cAAc,CAClC,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,aAAa,EACvB,GAAG,EAAE,SAAS,EACd,MAAM,EAAE,cAAc,GAAG,eAAe,GAAG,aAAa,EACxD,MAAM,yCAAgC,GACrC,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAY/B"}
|
package/dest/sentinel/factory.js
CHANGED
|
@@ -6,7 +6,7 @@ export async function createSentinel(epochCache, archiver, p2p, config, logger =
|
|
|
6
6
|
if (!config.sentinelEnabled) {
|
|
7
7
|
return undefined;
|
|
8
8
|
}
|
|
9
|
-
const kvStore = await createStore('sentinel', SentinelStore.SCHEMA_VERSION, config,
|
|
9
|
+
const kvStore = await createStore('sentinel', SentinelStore.SCHEMA_VERSION, config, logger.getBindings());
|
|
10
10
|
const storeHistoryLength = config.sentinelHistoryLengthInEpochs * epochCache.getL1Constants().epochDuration;
|
|
11
11
|
const storeHistoricProvenPerformanceLength = config.sentinelHistoricProvenPerformanceLengthInEpochs;
|
|
12
12
|
const sentinelStore = new SentinelStore(kvStore, {
|
|
@@ -82,7 +82,7 @@ export class Sentinel extends EventEmitter {
|
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
84
|
const blockNumber = event.block.number;
|
|
85
|
-
const block = await this.archiver.
|
|
85
|
+
const block = await this.archiver.getL2Block(blockNumber);
|
|
86
86
|
if (!block) {
|
|
87
87
|
this.logger.error(`Failed to get block ${blockNumber}`, {
|
|
88
88
|
block
|
package/dest/sentinel/store.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { ValidatorStatusHistory, ValidatorStatusInSlot, ValidatorsEpochPerf
|
|
|
5
5
|
export declare class SentinelStore {
|
|
6
6
|
private store;
|
|
7
7
|
private config;
|
|
8
|
-
static readonly SCHEMA_VERSION
|
|
8
|
+
static readonly SCHEMA_VERSION = 2;
|
|
9
9
|
private readonly historyMap;
|
|
10
10
|
private readonly provenMap;
|
|
11
11
|
constructor(store: AztecAsyncKVStore, config: {
|
|
@@ -32,4 +32,4 @@ export declare class SentinelStore {
|
|
|
32
32
|
private statusToNumber;
|
|
33
33
|
private statusFromNumber;
|
|
34
34
|
}
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmUuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zZW50aW5lbC9zdG9yZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQzFFLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUUzRCxPQUFPLEtBQUssRUFBRSxpQkFBaUIsRUFBaUIsTUFBTSxpQkFBaUIsQ0FBQztBQUN4RSxPQUFPLEtBQUssRUFDVixzQkFBc0IsRUFDdEIscUJBQXFCLEVBQ3JCLDBCQUEwQixFQUMzQixNQUFNLDBCQUEwQixDQUFDO0FBRWxDLHFCQUFhLGFBQWE7SUFXdEIsT0FBTyxDQUFDLEtBQUs7SUFDYixPQUFPLENBQUMsTUFBTTtJQVhoQixnQkFBdUIsY0FBYyxLQUFLO0lBRzFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsVUFBVSxDQUF1QztJQUlsRSxPQUFPLENBQUMsUUFBUSxDQUFDLFNBQVMsQ0FBdUM7SUFFakUsWUFDVSxLQUFLLEVBQUUsaUJBQWlCLEVBQ3hCLE1BQU0sRUFBRTtRQUFFLGFBQWEsRUFBRSxNQUFNLENBQUM7UUFBQywrQkFBK0IsRUFBRSxNQUFNLENBQUE7S0FBRSxFQUluRjtJQUVNLGdCQUFnQixXQUV0QjtJQUVNLGtDQUFrQyxXQUV4QztJQUVZLHVCQUF1QixDQUFDLEtBQUssRUFBRSxXQUFXLEVBQUUsV0FBVyxFQUFFLDBCQUEwQixpQkFNL0Y7SUFFWSxvQkFBb0IsQ0FBQyxHQUFHLEVBQUUsVUFBVSxHQUFHLE9BQU8sQ0FBQztRQUFFLE1BQU0sRUFBRSxNQUFNLENBQUM7UUFBQyxLQUFLLEVBQUUsTUFBTSxDQUFDO1FBQUMsS0FBSyxFQUFFLFdBQVcsQ0FBQTtLQUFFLEVBQUUsQ0FBQyxDQUduSDtZQUVhLHNDQUFzQztJQTZCdkMsZ0JBQWdCLENBQUMsSUFBSSxFQUFFLFVBQVUsRUFBRSxRQUFRLEVBQUUsTUFBTSxDQUFDLEtBQUssTUFBTSxFQUFFLEVBQUUscUJBQXFCLEdBQUcsU0FBUyxDQUFDLGlCQVFqSDtZQUVhLDBCQUEwQjtJQVkzQixZQUFZLElBQUksT0FBTyxDQUFDLE1BQU0sQ0FBQyxLQUFLLE1BQU0sRUFBRSxFQUFFLHNCQUFzQixDQUFDLENBQUMsQ0FNbEY7SUFFWSxVQUFVLENBQUMsT0FBTyxFQUFFLFVBQVUsR0FBRyxPQUFPLENBQUMsc0JBQXNCLEdBQUcsU0FBUyxDQUFDLENBR3hGO0lBRUQsT0FBTyxDQUFDLG9CQUFvQjtJQU01QixPQUFPLENBQUMsc0JBQXNCO0lBYTlCLE9BQU8sQ0FBQyxnQkFBZ0I7SUFNeEIsT0FBTyxDQUFDLGtCQUFrQjtJQVcxQixPQUFPLENBQUMsY0FBYztJQW1CdEIsT0FBTyxDQUFDLGdCQUFnQjtDQWdCekIifQ==
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/sentinel/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,KAAK,EAAE,iBAAiB,EAAiB,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,0BAA0B,CAAC;AAElC,qBAAa,aAAa;IAWtB,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,MAAM;IAXhB,gBAAuB,cAAc,
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/sentinel/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,KAAK,EAAE,iBAAiB,EAAiB,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,0BAA0B,CAAC;AAElC,qBAAa,aAAa;IAWtB,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,MAAM;IAXhB,gBAAuB,cAAc,KAAK;IAG1C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuC;IAIlE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAuC;IAEjE,YACU,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,+BAA+B,EAAE,MAAM,CAAA;KAAE,EAInF;IAEM,gBAAgB,WAEtB;IAEM,kCAAkC,WAExC;IAEY,uBAAuB,CAAC,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,0BAA0B,iBAM/F;IAEY,oBAAoB,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,WAAW,CAAA;KAAE,EAAE,CAAC,CAGnH;YAEa,sCAAsC;IA6BvC,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,qBAAqB,GAAG,SAAS,CAAC,iBAQjH;YAEa,0BAA0B;IAY3B,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,sBAAsB,CAAC,CAAC,CAMlF;IAEY,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAGxF;IAED,OAAO,CAAC,oBAAoB;IAM5B,OAAO,CAAC,sBAAsB;IAa9B,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,cAAc;IAmBtB,OAAO,CAAC,gBAAgB;CAgBzB"}
|