@aztec/sequencer-client 0.0.0-test.1 → 0.0.1-commit.b655e406
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/client/sequencer-client.d.ts +25 -25
- package/dest/client/sequencer-client.d.ts.map +1 -1
- package/dest/client/sequencer-client.js +65 -51
- package/dest/config.d.ts +6 -14
- package/dest/config.d.ts.map +1 -1
- package/dest/config.js +50 -54
- package/dest/global_variable_builder/global_builder.d.ts +11 -6
- package/dest/global_variable_builder/global_builder.d.ts.map +1 -1
- package/dest/global_variable_builder/global_builder.js +39 -34
- package/dest/index.d.ts +1 -2
- package/dest/index.d.ts.map +1 -1
- package/dest/index.js +1 -2
- package/dest/publisher/config.d.ts +6 -8
- package/dest/publisher/config.d.ts.map +1 -1
- package/dest/publisher/config.js +19 -17
- package/dest/publisher/index.d.ts +2 -0
- package/dest/publisher/index.d.ts.map +1 -1
- package/dest/publisher/index.js +3 -0
- package/dest/publisher/sequencer-publisher-factory.d.ts +43 -0
- package/dest/publisher/sequencer-publisher-factory.d.ts.map +1 -0
- package/dest/publisher/sequencer-publisher-factory.js +51 -0
- package/dest/publisher/sequencer-publisher-metrics.d.ts +2 -1
- package/dest/publisher/sequencer-publisher-metrics.d.ts.map +1 -1
- package/dest/publisher/sequencer-publisher-metrics.js +37 -2
- package/dest/publisher/sequencer-publisher.d.ts +102 -69
- package/dest/publisher/sequencer-publisher.d.ts.map +1 -1
- package/dest/publisher/sequencer-publisher.js +606 -212
- package/dest/sequencer/block_builder.d.ts +27 -0
- package/dest/sequencer/block_builder.d.ts.map +1 -0
- package/dest/sequencer/block_builder.js +130 -0
- package/dest/sequencer/config.d.ts +5 -0
- package/dest/sequencer/config.d.ts.map +1 -1
- package/dest/sequencer/errors.d.ts +11 -0
- package/dest/sequencer/errors.d.ts.map +1 -0
- package/dest/sequencer/errors.js +15 -0
- package/dest/sequencer/index.d.ts +1 -1
- package/dest/sequencer/index.d.ts.map +1 -1
- package/dest/sequencer/index.js +1 -1
- package/dest/sequencer/metrics.d.ts +18 -11
- package/dest/sequencer/metrics.d.ts.map +1 -1
- package/dest/sequencer/metrics.js +84 -50
- package/dest/sequencer/sequencer.d.ts +120 -81
- package/dest/sequencer/sequencer.d.ts.map +1 -1
- package/dest/sequencer/sequencer.js +589 -359
- package/dest/sequencer/timetable.d.ts +32 -20
- package/dest/sequencer/timetable.d.ts.map +1 -1
- package/dest/sequencer/timetable.js +57 -30
- package/dest/sequencer/utils.d.ts +11 -35
- package/dest/sequencer/utils.d.ts.map +1 -1
- package/dest/sequencer/utils.js +9 -47
- package/dest/test/index.d.ts +7 -0
- package/dest/test/index.d.ts.map +1 -1
- package/dest/test/index.js +0 -4
- package/dest/tx_validator/nullifier_cache.d.ts +0 -2
- package/dest/tx_validator/nullifier_cache.d.ts.map +1 -1
- package/dest/tx_validator/tx_validator_factory.d.ts +9 -10
- package/dest/tx_validator/tx_validator_factory.d.ts.map +1 -1
- package/dest/tx_validator/tx_validator_factory.js +27 -24
- package/package.json +42 -43
- package/src/client/sequencer-client.ts +94 -84
- package/src/config.ts +57 -61
- package/src/global_variable_builder/global_builder.ts +44 -23
- package/src/index.ts +6 -2
- package/src/publisher/config.ts +26 -24
- package/src/publisher/index.ts +4 -0
- package/src/publisher/sequencer-publisher-factory.ts +90 -0
- package/src/publisher/sequencer-publisher-metrics.ts +24 -2
- package/src/publisher/sequencer-publisher.ts +729 -235
- package/src/sequencer/block_builder.ts +218 -0
- package/src/sequencer/config.ts +7 -0
- package/src/sequencer/errors.ts +21 -0
- package/src/sequencer/index.ts +1 -1
- package/src/sequencer/metrics.ts +109 -55
- package/src/sequencer/sequencer.ts +766 -415
- package/src/sequencer/timetable.ts +98 -33
- package/src/sequencer/utils.ts +17 -58
- package/src/test/index.ts +11 -4
- package/src/tx_validator/tx_validator_factory.ts +44 -32
- package/dest/sequencer/allowed.d.ts +0 -3
- package/dest/sequencer/allowed.d.ts.map +0 -1
- package/dest/sequencer/allowed.js +0 -27
- package/dest/slasher/factory.d.ts +0 -7
- package/dest/slasher/factory.d.ts.map +0 -1
- package/dest/slasher/factory.js +0 -8
- package/dest/slasher/index.d.ts +0 -3
- package/dest/slasher/index.d.ts.map +0 -1
- package/dest/slasher/index.js +0 -2
- package/dest/slasher/slasher_client.d.ts +0 -75
- package/dest/slasher/slasher_client.d.ts.map +0 -1
- package/dest/slasher/slasher_client.js +0 -132
- package/dest/tx_validator/archive_cache.d.ts +0 -14
- package/dest/tx_validator/archive_cache.d.ts.map +0 -1
- package/dest/tx_validator/archive_cache.js +0 -22
- package/dest/tx_validator/gas_validator.d.ts +0 -14
- package/dest/tx_validator/gas_validator.d.ts.map +0 -1
- package/dest/tx_validator/gas_validator.js +0 -78
- package/dest/tx_validator/phases_validator.d.ts +0 -12
- package/dest/tx_validator/phases_validator.d.ts.map +0 -1
- package/dest/tx_validator/phases_validator.js +0 -80
- package/dest/tx_validator/test_utils.d.ts +0 -23
- package/dest/tx_validator/test_utils.d.ts.map +0 -1
- package/dest/tx_validator/test_utils.js +0 -26
- package/src/sequencer/allowed.ts +0 -36
- package/src/slasher/factory.ts +0 -15
- package/src/slasher/index.ts +0 -2
- package/src/slasher/slasher_client.ts +0 -193
- package/src/tx_validator/archive_cache.ts +0 -28
- package/src/tx_validator/gas_validator.ts +0 -101
- package/src/tx_validator/phases_validator.ts +0 -98
- package/src/tx_validator/test_utils.ts +0 -48
|
@@ -1,28 +1,32 @@
|
|
|
1
1
|
import type { BlobSinkClientInterface } from '@aztec/blob-sink/client';
|
|
2
2
|
import { EpochCache } from '@aztec/epoch-cache';
|
|
3
|
+
import { PublisherManager } from '@aztec/ethereum';
|
|
3
4
|
import { L1TxUtilsWithBlobs } from '@aztec/ethereum/l1-tx-utils-with-blobs';
|
|
4
5
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
5
6
|
import type { DateProvider } from '@aztec/foundation/timer';
|
|
7
|
+
import type { KeystoreManager } from '@aztec/node-keystore';
|
|
6
8
|
import type { P2P } from '@aztec/p2p';
|
|
7
|
-
import type {
|
|
9
|
+
import type { SlasherClientInterface } from '@aztec/slasher';
|
|
8
10
|
import type { L2BlockSource } from '@aztec/stdlib/block';
|
|
9
|
-
import type {
|
|
10
|
-
import type { WorldStateSynchronizer } from '@aztec/stdlib/interfaces/server';
|
|
11
|
+
import type { IFullNodeBlockBuilder, ValidatorClientFullConfig, WorldStateSynchronizer } from '@aztec/stdlib/interfaces/server';
|
|
11
12
|
import type { L1ToL2MessageSource } from '@aztec/stdlib/messaging';
|
|
12
|
-
import type
|
|
13
|
-
import type
|
|
13
|
+
import { L1Metrics, type TelemetryClient } from '@aztec/telemetry-client';
|
|
14
|
+
import { type ValidatorClient } from '@aztec/validator-client';
|
|
14
15
|
import type { SequencerClientConfig } from '../config.js';
|
|
15
|
-
import {
|
|
16
|
+
import { SequencerPublisherFactory } from '../publisher/sequencer-publisher-factory.js';
|
|
16
17
|
import { Sequencer, type SequencerConfig } from '../sequencer/index.js';
|
|
17
|
-
import type { SlasherClient } from '../slasher/index.js';
|
|
18
18
|
/**
|
|
19
19
|
* Encapsulates the full sequencer and publisher.
|
|
20
20
|
*/
|
|
21
21
|
export declare class SequencerClient {
|
|
22
|
+
protected publisherManager: PublisherManager<L1TxUtilsWithBlobs>;
|
|
22
23
|
protected sequencer: Sequencer;
|
|
23
|
-
|
|
24
|
+
protected blockBuilder: IFullNodeBlockBuilder;
|
|
25
|
+
protected validatorClient?: ValidatorClient | undefined;
|
|
26
|
+
private l1Metrics?;
|
|
27
|
+
constructor(publisherManager: PublisherManager<L1TxUtilsWithBlobs>, sequencer: Sequencer, blockBuilder: IFullNodeBlockBuilder, validatorClient?: ValidatorClient | undefined, l1Metrics?: L1Metrics | undefined);
|
|
24
28
|
/**
|
|
25
|
-
* Initializes
|
|
29
|
+
* Initializes a new instance.
|
|
26
30
|
* @param config - Configuration for the sequencer, publisher, and L1 tx sender.
|
|
27
31
|
* @param p2pClient - P2P client that provides the txs to be sequenced.
|
|
28
32
|
* @param validatorClient - Validator client performs attestation duties when rotating proposers.
|
|
@@ -31,41 +35,37 @@ export declare class SequencerClient {
|
|
|
31
35
|
* @param l2BlockSource - Provides information about the previously published blocks.
|
|
32
36
|
* @param l1ToL2MessageSource - Provides access to L1 to L2 messages.
|
|
33
37
|
* @param prover - An instance of a block prover
|
|
34
|
-
* @param simulationProvider - An instance of a simulation provider
|
|
35
38
|
* @returns A new running instance.
|
|
36
39
|
*/
|
|
37
40
|
static new(config: SequencerClientConfig, deps: {
|
|
38
41
|
validatorClient: ValidatorClient | undefined;
|
|
39
42
|
p2pClient: P2P;
|
|
40
43
|
worldStateSynchronizer: WorldStateSynchronizer;
|
|
41
|
-
slasherClient:
|
|
42
|
-
|
|
44
|
+
slasherClient: SlasherClientInterface | undefined;
|
|
45
|
+
blockBuilder: IFullNodeBlockBuilder;
|
|
43
46
|
l2BlockSource: L2BlockSource;
|
|
44
47
|
l1ToL2MessageSource: L1ToL2MessageSource;
|
|
45
48
|
telemetry: TelemetryClient;
|
|
46
|
-
|
|
49
|
+
publisherFactory?: SequencerPublisherFactory;
|
|
47
50
|
blobSinkClient?: BlobSinkClientInterface;
|
|
48
51
|
dateProvider: DateProvider;
|
|
49
52
|
epochCache?: EpochCache;
|
|
50
|
-
l1TxUtils
|
|
53
|
+
l1TxUtils: L1TxUtilsWithBlobs[];
|
|
54
|
+
nodeKeyStore: KeystoreManager;
|
|
51
55
|
}): Promise<SequencerClient>;
|
|
52
56
|
/**
|
|
53
|
-
* Updates sequencer config.
|
|
57
|
+
* Updates sequencer and validator client config.
|
|
54
58
|
* @param config - New parameters.
|
|
55
59
|
*/
|
|
56
|
-
|
|
60
|
+
updateConfig(config: SequencerConfig & Partial<ValidatorClientFullConfig>): void;
|
|
61
|
+
/** Starts the sequencer. */
|
|
62
|
+
start(): Promise<void>;
|
|
57
63
|
/**
|
|
58
64
|
* Stops the sequencer from processing new txs.
|
|
59
65
|
*/
|
|
60
66
|
stop(): Promise<void>;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
* Restarts the sequencer after being stopped.
|
|
65
|
-
*/
|
|
66
|
-
restart(): void;
|
|
67
|
-
get coinbase(): EthAddress;
|
|
68
|
-
get feeRecipient(): AztecAddress;
|
|
69
|
-
get forwarderAddress(): EthAddress;
|
|
67
|
+
getSequencer(): Sequencer;
|
|
68
|
+
get validatorAddresses(): EthAddress[] | undefined;
|
|
69
|
+
get maxL2BlockGas(): number | undefined;
|
|
70
70
|
}
|
|
71
71
|
//# sourceMappingURL=sequencer-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sequencer-client.d.ts","sourceRoot":"","sources":["../../src/client/sequencer-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"sequencer-client.d.ts","sourceRoot":"","sources":["../../src/client/sequencer-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAEL,gBAAgB,EAIjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEpF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExE;;GAEG;AACH,qBAAa,eAAe;IAExB,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,kBAAkB,CAAC;IAChE,SAAS,CAAC,SAAS,EAAE,SAAS;IAC9B,SAAS,CAAC,YAAY,EAAE,qBAAqB;IAC7C,SAAS,CAAC,eAAe,CAAC,EAAE,eAAe;IAC3C,OAAO,CAAC,SAAS,CAAC;gBAJR,gBAAgB,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,EACtD,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,qBAAqB,EACnC,eAAe,CAAC,EAAE,eAAe,YAAA,EACnC,SAAS,CAAC,EAAE,SAAS,YAAA;IAG/B;;;;;;;;;;;OAWG;WACiB,GAAG,CACrB,MAAM,EAAE,qBAAqB,EAC7B,IAAI,EAAE;QACJ,eAAe,EAAE,eAAe,GAAG,SAAS,CAAC;QAC7C,SAAS,EAAE,GAAG,CAAC;QACf,sBAAsB,EAAE,sBAAsB,CAAC;QAC/C,aAAa,EAAE,sBAAsB,GAAG,SAAS,CAAC;QAClD,YAAY,EAAE,qBAAqB,CAAC;QACpC,aAAa,EAAE,aAAa,CAAC;QAC7B,mBAAmB,EAAE,mBAAmB,CAAC;QACzC,SAAS,EAAE,eAAe,CAAC;QAC3B,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;QAC7C,cAAc,CAAC,EAAE,uBAAuB,CAAC;QACzC,YAAY,EAAE,YAAY,CAAC;QAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,SAAS,EAAE,kBAAkB,EAAE,CAAC;QAChC,YAAY,EAAE,eAAe,CAAC;KAC/B;IAoHH;;;OAGG;IACI,YAAY,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAMhF,4BAA4B;IACf,KAAK;IAOlB;;OAEG;IACU,IAAI;IAOV,YAAY,IAAI,SAAS;IAIhC,IAAI,kBAAkB,IAAI,UAAU,EAAE,GAAG,SAAS,CAEjD;IAED,IAAI,aAAa,IAAI,MAAM,GAAG,SAAS,CAEtC;CACF"}
|
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
import { EpochCache } from '@aztec/epoch-cache';
|
|
2
|
-
import {
|
|
3
|
-
import { L1TxUtilsWithBlobs } from '@aztec/ethereum/l1-tx-utils-with-blobs';
|
|
2
|
+
import { GovernanceProposerContract, PublisherManager, RollupContract, getPublicClient, isAnvilTestChain } from '@aztec/ethereum';
|
|
4
3
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
5
4
|
import { createLogger } from '@aztec/foundation/log';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { SlashFactoryContract } from '@aztec/stdlib/l1-contracts';
|
|
6
|
+
import { L1Metrics } from '@aztec/telemetry-client';
|
|
7
|
+
import { NodeKeystoreAdapter } from '@aztec/validator-client';
|
|
8
8
|
import { GlobalVariableBuilder } from '../global_variable_builder/index.js';
|
|
9
|
-
import {
|
|
9
|
+
import { SequencerPublisherFactory } from '../publisher/sequencer-publisher-factory.js';
|
|
10
10
|
import { Sequencer } from '../sequencer/index.js';
|
|
11
11
|
/**
|
|
12
12
|
* Encapsulates the full sequencer and publisher.
|
|
13
13
|
*/ export class SequencerClient {
|
|
14
|
+
publisherManager;
|
|
14
15
|
sequencer;
|
|
15
|
-
|
|
16
|
+
blockBuilder;
|
|
17
|
+
validatorClient;
|
|
18
|
+
l1Metrics;
|
|
19
|
+
constructor(publisherManager, sequencer, blockBuilder, validatorClient, l1Metrics){
|
|
20
|
+
this.publisherManager = publisherManager;
|
|
16
21
|
this.sequencer = sequencer;
|
|
22
|
+
this.blockBuilder = blockBuilder;
|
|
23
|
+
this.validatorClient = validatorClient;
|
|
24
|
+
this.l1Metrics = l1Metrics;
|
|
17
25
|
}
|
|
18
26
|
/**
|
|
19
|
-
* Initializes
|
|
27
|
+
* Initializes a new instance.
|
|
20
28
|
* @param config - Configuration for the sequencer, publisher, and L1 tx sender.
|
|
21
29
|
* @param p2pClient - P2P client that provides the txs to be sequenced.
|
|
22
30
|
* @param validatorClient - Validator client performs attestation duties when rotating proposers.
|
|
@@ -25,93 +33,99 @@ import { Sequencer } from '../sequencer/index.js';
|
|
|
25
33
|
* @param l2BlockSource - Provides information about the previously published blocks.
|
|
26
34
|
* @param l1ToL2MessageSource - Provides access to L1 to L2 messages.
|
|
27
35
|
* @param prover - An instance of a block prover
|
|
28
|
-
* @param simulationProvider - An instance of a simulation provider
|
|
29
36
|
* @returns A new running instance.
|
|
30
37
|
*/ static async new(config, deps) {
|
|
31
|
-
const { validatorClient, p2pClient, worldStateSynchronizer, slasherClient,
|
|
32
|
-
const { l1RpcUrls: rpcUrls, l1ChainId: chainId
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
38
|
+
const { validatorClient, p2pClient, worldStateSynchronizer, slasherClient, blockBuilder, l2BlockSource, l1ToL2MessageSource, telemetry: telemetryClient } = deps;
|
|
39
|
+
const { l1RpcUrls: rpcUrls, l1ChainId: chainId } = config;
|
|
40
|
+
const log = createLogger('sequencer');
|
|
41
|
+
const publicClient = getPublicClient(config);
|
|
42
|
+
const l1TxUtils = deps.l1TxUtils;
|
|
43
|
+
const l1Metrics = new L1Metrics(telemetryClient.getMeter('L1PublisherMetrics'), publicClient, l1TxUtils.map((x)=>x.getSenderAddress()));
|
|
44
|
+
const publisherManager = new PublisherManager(l1TxUtils, config);
|
|
37
45
|
const rollupContract = new RollupContract(publicClient, config.l1Contracts.rollupAddress.toString());
|
|
38
46
|
const [l1GenesisTime, slotDuration] = await Promise.all([
|
|
39
47
|
rollupContract.getL1GenesisTime(),
|
|
40
48
|
rollupContract.getSlotDuration()
|
|
41
49
|
]);
|
|
42
|
-
const forwarderContract = config.customForwarderContractAddress && config.customForwarderContractAddress !== EthAddress.ZERO ? new ForwarderContract(publicClient, config.customForwarderContractAddress.toString(), config.l1Contracts.rollupAddress.toString()) : await ForwarderContract.create(walletClient.account.address, walletClient, publicClient, log, config.l1Contracts.rollupAddress.toString());
|
|
43
50
|
const governanceProposerContract = new GovernanceProposerContract(publicClient, config.l1Contracts.governanceProposerAddress.toString());
|
|
44
|
-
const slashingProposerAddress = await rollupContract.getSlashingProposerAddress();
|
|
45
|
-
const slashingProposerContract = new SlashingProposerContract(publicClient, slashingProposerAddress.toString());
|
|
46
51
|
const epochCache = deps.epochCache ?? await EpochCache.create(config.l1Contracts.rollupAddress, {
|
|
47
52
|
l1RpcUrls: rpcUrls,
|
|
48
53
|
l1ChainId: chainId,
|
|
49
54
|
viemPollingIntervalMS: config.viemPollingIntervalMS,
|
|
50
|
-
|
|
51
|
-
ethereumSlotDuration: config.ethereumSlotDuration,
|
|
52
|
-
aztecEpochDuration: config.aztecEpochDuration
|
|
55
|
+
ethereumSlotDuration: config.ethereumSlotDuration
|
|
53
56
|
}, {
|
|
54
57
|
dateProvider: deps.dateProvider
|
|
55
58
|
});
|
|
56
|
-
const
|
|
57
|
-
|
|
59
|
+
const slashFactoryContract = new SlashFactoryContract(publicClient, config.l1Contracts.slashFactoryAddress?.toString() ?? EthAddress.ZERO.toString());
|
|
60
|
+
const publisherFactory = deps.publisherFactory ?? new SequencerPublisherFactory(config, {
|
|
58
61
|
telemetry: telemetryClient,
|
|
59
62
|
blobSinkClient: deps.blobSinkClient,
|
|
60
|
-
rollupContract,
|
|
61
63
|
epochCache,
|
|
62
|
-
forwarderContract,
|
|
63
64
|
governanceProposerContract,
|
|
64
|
-
|
|
65
|
+
slashFactoryContract,
|
|
66
|
+
rollupContract,
|
|
67
|
+
dateProvider: deps.dateProvider,
|
|
68
|
+
publisherManager,
|
|
69
|
+
nodeKeyStore: NodeKeystoreAdapter.fromKeyStoreManager(deps.nodeKeyStore),
|
|
70
|
+
logger: log
|
|
65
71
|
});
|
|
66
72
|
const globalsBuilder = new GlobalVariableBuilder(config);
|
|
67
|
-
const publicProcessorFactory = new PublicProcessorFactory(contractDataSource, deps.dateProvider, telemetryClient);
|
|
68
73
|
const ethereumSlotDuration = config.ethereumSlotDuration;
|
|
69
|
-
|
|
74
|
+
const rollupManaLimit = Number(await rollupContract.getManaLimit());
|
|
75
|
+
let sequencerManaLimit = config.maxL2BlockGas ?? rollupManaLimit;
|
|
76
|
+
if (sequencerManaLimit > rollupManaLimit) {
|
|
77
|
+
log.warn(`Provided maxL2BlockGas of ${sequencerManaLimit} is greater than the maximum allowed by the L1 (${rollupManaLimit}), setting limit to ${rollupManaLimit}`);
|
|
78
|
+
sequencerManaLimit = rollupManaLimit;
|
|
79
|
+
}
|
|
80
|
+
// When running in anvil, assume we can post a tx up until one second before the end of an L1 slot.
|
|
70
81
|
// Otherwise, assume we must have broadcasted the tx before the slot started (we use a default
|
|
71
82
|
// maxL1TxInclusionTimeIntoSlot of zero) to get the tx into that L1 slot.
|
|
72
83
|
// In theory, the L1 slot has an initial 4s phase where the block is propagated, so we could
|
|
73
84
|
// make it with a propagation time into slot equal to 4s. However, we prefer being conservative.
|
|
74
85
|
// See https://www.blocknative.com/blog/anatomy-of-a-slot#7 for more info.
|
|
75
|
-
const maxL1TxInclusionTimeIntoSlot = config.maxL1TxInclusionTimeIntoSlot ?? isAnvilTestChain(config.l1ChainId) ? ethereumSlotDuration : 0;
|
|
86
|
+
const maxL1TxInclusionTimeIntoSlot = config.maxL1TxInclusionTimeIntoSlot ?? isAnvilTestChain(config.l1ChainId) ? ethereumSlotDuration - 1 : 0;
|
|
76
87
|
const l1Constants = {
|
|
77
88
|
l1GenesisTime,
|
|
78
89
|
slotDuration: Number(slotDuration),
|
|
79
90
|
ethereumSlotDuration
|
|
80
91
|
};
|
|
81
|
-
const sequencer = new Sequencer(
|
|
92
|
+
const sequencer = new Sequencer(publisherFactory, validatorClient, globalsBuilder, p2pClient, worldStateSynchronizer, slasherClient, l2BlockSource, l1ToL2MessageSource, blockBuilder, l1Constants, deps.dateProvider, epochCache, rollupContract, {
|
|
82
93
|
...config,
|
|
83
|
-
maxL1TxInclusionTimeIntoSlot
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
await sequencer.
|
|
87
|
-
return new SequencerClient(sequencer);
|
|
94
|
+
maxL1TxInclusionTimeIntoSlot,
|
|
95
|
+
maxL2BlockGas: sequencerManaLimit
|
|
96
|
+
}, telemetryClient, log);
|
|
97
|
+
await sequencer.init();
|
|
98
|
+
return new SequencerClient(publisherManager, sequencer, blockBuilder, validatorClient, l1Metrics);
|
|
88
99
|
}
|
|
89
100
|
/**
|
|
90
|
-
* Updates sequencer config.
|
|
101
|
+
* Updates sequencer and validator client config.
|
|
91
102
|
* @param config - New parameters.
|
|
92
|
-
*/
|
|
93
|
-
|
|
103
|
+
*/ updateConfig(config) {
|
|
104
|
+
this.sequencer.updateConfig(config);
|
|
105
|
+
this.blockBuilder.updateConfig(config);
|
|
106
|
+
this.validatorClient?.updateConfig(config);
|
|
107
|
+
}
|
|
108
|
+
/** Starts the sequencer. */ async start() {
|
|
109
|
+
await this.validatorClient?.start();
|
|
110
|
+
this.sequencer.start();
|
|
111
|
+
this.l1Metrics?.start();
|
|
112
|
+
await this.publisherManager.loadState();
|
|
94
113
|
}
|
|
95
114
|
/**
|
|
96
115
|
* Stops the sequencer from processing new txs.
|
|
97
116
|
*/ async stop() {
|
|
98
117
|
await this.sequencer.stop();
|
|
118
|
+
await this.validatorClient?.stop();
|
|
119
|
+
this.publisherManager.interrupt();
|
|
120
|
+
this.l1Metrics?.stop();
|
|
99
121
|
}
|
|
100
|
-
|
|
101
|
-
this.sequencer
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Restarts the sequencer after being stopped.
|
|
105
|
-
*/ restart() {
|
|
106
|
-
this.sequencer.restart();
|
|
107
|
-
}
|
|
108
|
-
get coinbase() {
|
|
109
|
-
return this.sequencer.coinbase;
|
|
122
|
+
getSequencer() {
|
|
123
|
+
return this.sequencer;
|
|
110
124
|
}
|
|
111
|
-
get
|
|
112
|
-
return this.sequencer.
|
|
125
|
+
get validatorAddresses() {
|
|
126
|
+
return this.sequencer.getValidatorAddresses();
|
|
113
127
|
}
|
|
114
|
-
get
|
|
115
|
-
return this.sequencer.
|
|
128
|
+
get maxL2BlockGas() {
|
|
129
|
+
return this.sequencer.maxL2BlockGas;
|
|
116
130
|
}
|
|
117
131
|
}
|
package/dest/config.d.ts
CHANGED
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
import { type L1ContractsConfig, type L1ReaderConfig } from '@aztec/ethereum';
|
|
2
2
|
import { type ConfigMappingsType } from '@aztec/foundation/config';
|
|
3
|
-
import { type
|
|
3
|
+
import { type KeyStoreConfig } from '@aztec/node-keystore';
|
|
4
|
+
import { type P2PConfig } from '@aztec/p2p';
|
|
5
|
+
import { type ChainConfig, type SequencerConfig } from '@aztec/stdlib/config';
|
|
6
|
+
import { type ValidatorClientConfig } from '@aztec/validator-client';
|
|
4
7
|
import { type PublisherConfig, type TxSenderConfig } from './publisher/config.js';
|
|
5
8
|
export * from './publisher/config.js';
|
|
6
9
|
export type { SequencerConfig };
|
|
10
|
+
export declare const DEFAULT_ATTESTATION_PROPAGATION_TIME = 2;
|
|
7
11
|
/**
|
|
8
12
|
* Configuration settings for the SequencerClient.
|
|
9
13
|
*/
|
|
10
|
-
export type SequencerClientConfig = PublisherConfig & TxSenderConfig & SequencerConfig & L1ReaderConfig & ChainConfig & Pick<L1ContractsConfig, 'ethereumSlotDuration' | 'aztecSlotDuration' | 'aztecEpochDuration'>;
|
|
14
|
+
export type SequencerClientConfig = PublisherConfig & KeyStoreConfig & ValidatorClientConfig & TxSenderConfig & SequencerConfig & L1ReaderConfig & ChainConfig & Pick<P2PConfig, 'txPublicSetupAllowList'> & Pick<L1ContractsConfig, 'ethereumSlotDuration' | 'aztecSlotDuration' | 'aztecEpochDuration'>;
|
|
11
15
|
export declare const sequencerConfigMappings: ConfigMappingsType<SequencerConfig>;
|
|
12
16
|
export declare const sequencerClientConfigMappings: ConfigMappingsType<SequencerClientConfig>;
|
|
13
17
|
/**
|
|
14
18
|
* Creates an instance of SequencerClientConfig out of environment variables using sensible defaults for integration testing if not set.
|
|
15
19
|
*/
|
|
16
20
|
export declare function getConfigEnvVars(): SequencerClientConfig;
|
|
17
|
-
/**
|
|
18
|
-
* Parses a string to a list of allowed elements.
|
|
19
|
-
* Each encoded is expected to be of one of the following formats
|
|
20
|
-
* `I:${address}`
|
|
21
|
-
* `I:${address}:${selector}`
|
|
22
|
-
* `C:${classId}`
|
|
23
|
-
* `C:${classId}:${selector}`
|
|
24
|
-
*
|
|
25
|
-
* @param value The string to parse
|
|
26
|
-
* @returns A list of allowed elements
|
|
27
|
-
*/
|
|
28
|
-
export declare function parseSequencerAllowList(value: string): AllowedElement[];
|
|
29
21
|
//# sourceMappingURL=config.d.ts.map
|
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,EACL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAGpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,kBAAkB,EAKxB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAGpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,kBAAkB,EAKxB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,YAAY,CAAC;AAE/D,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAuB,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAAE,KAAK,qBAAqB,EAAiC,MAAM,yBAAyB,CAAC;AAEpG,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,cAAc,EAGpB,MAAM,uBAAuB,CAAC;AAE/B,cAAc,uBAAuB,CAAC;AACtC,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC,eAAO,MAAM,oCAAoC,IAAI,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,eAAe,GACjD,cAAc,GACd,qBAAqB,GACrB,cAAc,GACd,eAAe,GACf,cAAc,GACd,WAAW,GACX,IAAI,CAAC,SAAS,EAAE,wBAAwB,CAAC,GACzC,IAAI,CAAC,iBAAiB,EAAE,sBAAsB,GAAG,mBAAmB,GAAG,oBAAoB,CAAC,CAAC;AAE/F,eAAO,MAAM,uBAAuB,EAAE,kBAAkB,CAAC,eAAe,CA+GvE,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,kBAAkB,CAAC,qBAAqB,CASnF,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,qBAAqB,CAExD"}
|
package/dest/config.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { l1ContractsConfigMappings, l1ReaderConfigMappings } from '@aztec/ethereum';
|
|
2
2
|
import { booleanConfigHelper, getConfigFromMappings, numberConfigHelper, pickConfigMappings } from '@aztec/foundation/config';
|
|
3
3
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { keyStoreConfigMappings } from '@aztec/node-keystore';
|
|
5
|
+
import { p2pConfigMappings } from '@aztec/p2p';
|
|
6
6
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
7
7
|
import { chainConfigMappings } from '@aztec/stdlib/config';
|
|
8
|
+
import { validatorClientConfigMappings } from '@aztec/validator-client';
|
|
8
9
|
import { getPublisherConfigMappings, getTxSenderConfigMappings } from './publisher/config.js';
|
|
9
10
|
export * from './publisher/config.js';
|
|
11
|
+
export const DEFAULT_ATTESTATION_PROPAGATION_TIME = 2;
|
|
10
12
|
export const sequencerConfigMappings = {
|
|
11
13
|
transactionPollingIntervalMS: {
|
|
12
14
|
env: 'SEQ_TX_POLLING_INTERVAL_MS',
|
|
@@ -23,6 +25,11 @@ export const sequencerConfigMappings = {
|
|
|
23
25
|
description: 'The minimum number of txs to include in a block.',
|
|
24
26
|
...numberConfigHelper(1)
|
|
25
27
|
},
|
|
28
|
+
publishTxsWithProposals: {
|
|
29
|
+
env: 'SEQ_PUBLISH_TXS_WITH_PROPOSALS',
|
|
30
|
+
description: 'Whether to publish txs with proposals.',
|
|
31
|
+
...booleanConfigHelper(false)
|
|
32
|
+
},
|
|
26
33
|
maxL2BlockGas: {
|
|
27
34
|
env: 'SEQ_MAX_L2_BLOCK_GAS',
|
|
28
35
|
description: 'The maximum L2 block gas.',
|
|
@@ -51,12 +58,6 @@ export const sequencerConfigMappings = {
|
|
|
51
58
|
env: 'ACVM_BINARY_PATH',
|
|
52
59
|
description: 'The path to the ACVM binary'
|
|
53
60
|
},
|
|
54
|
-
allowedInSetup: {
|
|
55
|
-
env: 'SEQ_ALLOWED_SETUP_FN',
|
|
56
|
-
parseEnv: (val)=>parseSequencerAllowList(val),
|
|
57
|
-
description: 'The list of functions calls allowed to run in setup',
|
|
58
|
-
printDefault: ()=>'AuthRegistry, FeeJuice.increase_public_balance, Token.increase_public_balance, FPC.prepare_fee'
|
|
59
|
-
},
|
|
60
61
|
maxBlockSizeInBytes: {
|
|
61
62
|
env: 'SEQ_MAX_BLOCK_SIZE_IN_BYTES',
|
|
62
63
|
description: 'Max block size',
|
|
@@ -66,7 +67,7 @@ export const sequencerConfigMappings = {
|
|
|
66
67
|
env: 'SEQ_ENFORCE_TIME_TABLE',
|
|
67
68
|
description: 'Whether to enforce the time table when building blocks',
|
|
68
69
|
...booleanConfigHelper(),
|
|
69
|
-
defaultValue:
|
|
70
|
+
defaultValue: true
|
|
70
71
|
},
|
|
71
72
|
governanceProposerPayload: {
|
|
72
73
|
env: 'GOVERNANCE_PROPOSER_PAYLOAD_ADDRESS',
|
|
@@ -78,10 +79,49 @@ export const sequencerConfigMappings = {
|
|
|
78
79
|
env: 'SEQ_MAX_L1_TX_INCLUSION_TIME_INTO_SLOT',
|
|
79
80
|
description: 'How many seconds into an L1 slot we can still send a tx and get it mined.',
|
|
80
81
|
parseEnv: (val)=>val ? parseInt(val, 10) : undefined
|
|
81
|
-
}
|
|
82
|
+
},
|
|
83
|
+
attestationPropagationTime: {
|
|
84
|
+
env: 'SEQ_ATTESTATION_PROPAGATION_TIME',
|
|
85
|
+
description: 'How many seconds it takes for proposals and attestations to travel across the p2p layer (one-way)',
|
|
86
|
+
...numberConfigHelper(DEFAULT_ATTESTATION_PROPAGATION_TIME)
|
|
87
|
+
},
|
|
88
|
+
fakeProcessingDelayPerTxMs: {
|
|
89
|
+
description: 'Used for testing to introduce a fake delay after processing each tx'
|
|
90
|
+
},
|
|
91
|
+
secondsBeforeInvalidatingBlockAsCommitteeMember: {
|
|
92
|
+
env: 'SEQ_SECONDS_BEFORE_INVALIDATING_BLOCK_AS_COMMITTEE_MEMBER',
|
|
93
|
+
description: 'How many seconds to wait before trying to invalidate a block from the pending chain as a committee member (zero to never invalidate).' + ' The next proposer is expected to invalidate, so the committee acts as a fallback.',
|
|
94
|
+
...numberConfigHelper(144)
|
|
95
|
+
},
|
|
96
|
+
secondsBeforeInvalidatingBlockAsNonCommitteeMember: {
|
|
97
|
+
env: 'SEQ_SECONDS_BEFORE_INVALIDATING_BLOCK_AS_NON_COMMITTEE_MEMBER',
|
|
98
|
+
description: 'How many seconds to wait before trying to invalidate a block from the pending chain as a non-committee member (zero to never invalidate).' + ' The next proposer is expected to invalidate, then the committee, so other sequencers act as a fallback.',
|
|
99
|
+
...numberConfigHelper(432)
|
|
100
|
+
},
|
|
101
|
+
skipCollectingAttestations: {
|
|
102
|
+
description: 'Whether to skip collecting attestations from validators and only use self-attestations (for testing only)',
|
|
103
|
+
...booleanConfigHelper(false)
|
|
104
|
+
},
|
|
105
|
+
skipInvalidateBlockAsProposer: {
|
|
106
|
+
description: 'Do not invalidate the previous block if invalid when we are the proposer (for testing only)',
|
|
107
|
+
...booleanConfigHelper(false)
|
|
108
|
+
},
|
|
109
|
+
broadcastInvalidBlockProposal: {
|
|
110
|
+
description: 'Broadcast invalid block proposals with corrupted state (for testing only)',
|
|
111
|
+
...booleanConfigHelper(false)
|
|
112
|
+
},
|
|
113
|
+
injectFakeAttestation: {
|
|
114
|
+
description: 'Inject a fake attestation (for testing only)',
|
|
115
|
+
...booleanConfigHelper(false)
|
|
116
|
+
},
|
|
117
|
+
...pickConfigMappings(p2pConfigMappings, [
|
|
118
|
+
'txPublicSetupAllowList'
|
|
119
|
+
])
|
|
82
120
|
};
|
|
83
121
|
export const sequencerClientConfigMappings = {
|
|
122
|
+
...validatorClientConfigMappings,
|
|
84
123
|
...sequencerConfigMappings,
|
|
124
|
+
...keyStoreConfigMappings,
|
|
85
125
|
...l1ReaderConfigMappings,
|
|
86
126
|
...getTxSenderConfigMappings('SEQ'),
|
|
87
127
|
...getPublisherConfigMappings('SEQ'),
|
|
@@ -97,47 +137,3 @@ export const sequencerClientConfigMappings = {
|
|
|
97
137
|
*/ export function getConfigEnvVars() {
|
|
98
138
|
return getConfigFromMappings(sequencerClientConfigMappings);
|
|
99
139
|
}
|
|
100
|
-
/**
|
|
101
|
-
* Parses a string to a list of allowed elements.
|
|
102
|
-
* Each encoded is expected to be of one of the following formats
|
|
103
|
-
* `I:${address}`
|
|
104
|
-
* `I:${address}:${selector}`
|
|
105
|
-
* `C:${classId}`
|
|
106
|
-
* `C:${classId}:${selector}`
|
|
107
|
-
*
|
|
108
|
-
* @param value The string to parse
|
|
109
|
-
* @returns A list of allowed elements
|
|
110
|
-
*/ export function parseSequencerAllowList(value) {
|
|
111
|
-
const entries = [];
|
|
112
|
-
if (!value) {
|
|
113
|
-
return entries;
|
|
114
|
-
}
|
|
115
|
-
for (const val of value.split(',')){
|
|
116
|
-
const [typeString, identifierString, selectorString] = val.split(':');
|
|
117
|
-
const selector = selectorString !== undefined ? FunctionSelector.fromString(selectorString) : undefined;
|
|
118
|
-
if (typeString === 'I') {
|
|
119
|
-
if (selector) {
|
|
120
|
-
entries.push({
|
|
121
|
-
address: AztecAddress.fromString(identifierString),
|
|
122
|
-
selector
|
|
123
|
-
});
|
|
124
|
-
} else {
|
|
125
|
-
entries.push({
|
|
126
|
-
address: AztecAddress.fromString(identifierString)
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
} else if (typeString === 'C') {
|
|
130
|
-
if (selector) {
|
|
131
|
-
entries.push({
|
|
132
|
-
classId: Fr.fromHexString(identifierString),
|
|
133
|
-
selector
|
|
134
|
-
});
|
|
135
|
-
} else {
|
|
136
|
-
entries.push({
|
|
137
|
-
classId: Fr.fromHexString(identifierString)
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
return entries;
|
|
143
|
-
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type L1ContractsConfig, type L1ReaderConfig } from '@aztec/ethereum';
|
|
2
2
|
import type { EthAddress } from '@aztec/foundation/eth-address';
|
|
3
|
-
import { Fr } from '@aztec/foundation/fields';
|
|
4
3
|
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
5
4
|
import { GasFees } from '@aztec/stdlib/gas';
|
|
6
5
|
import type { GlobalVariableBuilder as GlobalVariableBuilderInterface } from '@aztec/stdlib/tx';
|
|
@@ -10,15 +9,21 @@ import { GlobalVariables } from '@aztec/stdlib/tx';
|
|
|
10
9
|
*/
|
|
11
10
|
export declare class GlobalVariableBuilder implements GlobalVariableBuilderInterface {
|
|
12
11
|
private log;
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
12
|
+
private currentBaseFees;
|
|
13
|
+
private currentL1BlockNumber;
|
|
14
|
+
private readonly rollupContract;
|
|
15
|
+
private readonly publicClient;
|
|
16
|
+
private readonly ethereumSlotDuration;
|
|
17
|
+
private chainId?;
|
|
18
|
+
private version?;
|
|
16
19
|
constructor(config: L1ReaderConfig & Pick<L1ContractsConfig, 'ethereumSlotDuration'>);
|
|
17
20
|
/**
|
|
18
21
|
* Computes the "current" base fees, e.g., the price that you currently should pay to get include in the next block
|
|
19
|
-
* @returns Base fees for the
|
|
22
|
+
* @returns Base fees for the next block
|
|
20
23
|
*/
|
|
24
|
+
private computeCurrentBaseFees;
|
|
21
25
|
getCurrentBaseFees(): Promise<GasFees>;
|
|
26
|
+
getGlobalConstantVariables(): Promise<Pick<GlobalVariables, 'chainId' | 'version'>>;
|
|
22
27
|
/**
|
|
23
28
|
* Simple builder of global variables that use the minimum time possible.
|
|
24
29
|
* @param blockNumber - The block number to build global variables for.
|
|
@@ -27,6 +32,6 @@ export declare class GlobalVariableBuilder implements GlobalVariableBuilderInter
|
|
|
27
32
|
* @param slotNumber - The slot number to use for the global variables, if undefined it will be calculated.
|
|
28
33
|
* @returns The global variables for the given block number.
|
|
29
34
|
*/
|
|
30
|
-
buildGlobalVariables(blockNumber:
|
|
35
|
+
buildGlobalVariables(blockNumber: number, coinbase: EthAddress, feeRecipient: AztecAddress, slotNumber?: bigint): Promise<GlobalVariables>;
|
|
31
36
|
}
|
|
32
37
|
//# sourceMappingURL=global_builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global_builder.d.ts","sourceRoot":"","sources":["../../src/global_variable_builder/global_builder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"global_builder.d.ts","sourceRoot":"","sources":["../../src/global_variable_builder/global_builder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAIpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAGhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,EAAE,qBAAqB,IAAI,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAInD;;GAEG;AACH,qBAAa,qBAAsB,YAAW,8BAA8B;IAC1E,OAAO,CAAC,GAAG,CAAqD;IAChE,OAAO,CAAC,eAAe,CAAwD;IAC/E,OAAO,CAAC,oBAAoB,CAAiC;IAE7D,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAChD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAmB;IAChD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAS;IAE9C,OAAO,CAAC,OAAO,CAAC,CAAK;IACrB,OAAO,CAAC,OAAO,CAAC,CAAK;gBAET,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;IAgBpF;;;OAGG;YACW,sBAAsB;IAavB,kBAAkB,IAAI,OAAO,CAAC,OAAO,CAAC;IAYtC,0BAA0B,IAAI,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC;IAUhG;;;;;;;OAOG;IACU,oBAAoB,CAC/B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,UAAU,EACpB,YAAY,EAAE,YAAY,EAC1B,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,eAAe,CAAC;CA4B5B"}
|