@aztec/sequencer-client 0.74.0 → 0.75.0-commit.c03ba01a2a4122e43e90d5133ba017e54b90e9d2
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/index.js +0 -1
- package/dest/client/sequencer-client.js +52 -57
- package/dest/config.js +40 -42
- package/dest/global_variable_builder/global_builder.js +39 -26
- package/dest/global_variable_builder/index.js +0 -1
- package/dest/index.js +0 -1
- package/dest/publisher/config.js +49 -50
- package/dest/publisher/index.js +0 -1
- package/dest/publisher/sequencer-publisher-metrics.js +32 -23
- package/dest/publisher/sequencer-publisher.js +216 -191
- package/dest/sequencer/allowed.js +5 -12
- package/dest/sequencer/config.js +1 -2
- package/dest/sequencer/index.js +0 -1
- package/dest/sequencer/metrics.js +26 -18
- package/dest/sequencer/sequencer.js +648 -607
- package/dest/sequencer/timetable.js +33 -19
- package/dest/sequencer/utils.js +22 -32
- package/dest/slasher/factory.js +5 -4
- package/dest/slasher/index.js +0 -1
- package/dest/slasher/slasher_client.js +107 -110
- package/dest/test/index.js +4 -1
- package/dest/tx_validator/archive_cache.js +7 -7
- package/dest/tx_validator/gas_validator.js +76 -64
- package/dest/tx_validator/nullifier_cache.js +8 -8
- package/dest/tx_validator/phases_validator.js +27 -19
- package/dest/tx_validator/test_utils.js +1 -2
- package/dest/tx_validator/tx_validator_factory.js +5 -5
- package/package.json +23 -22
- package/src/config.ts +1 -1
- package/src/publisher/sequencer-publisher.ts +1 -1
- package/src/sequencer/sequencer.ts +29 -13
- package/dest/client/index.d.ts +0 -2
- package/dest/client/index.d.ts.map +0 -1
- package/dest/client/sequencer-client.d.ts +0 -68
- package/dest/client/sequencer-client.d.ts.map +0 -1
- package/dest/config.d.ts +0 -37
- package/dest/config.d.ts.map +0 -1
- package/dest/global_variable_builder/global_builder.d.ts +0 -29
- package/dest/global_variable_builder/global_builder.d.ts.map +0 -1
- package/dest/global_variable_builder/index.d.ts +0 -2
- package/dest/global_variable_builder/index.d.ts.map +0 -1
- package/dest/index.d.ts +0 -8
- package/dest/index.d.ts.map +0 -1
- package/dest/publisher/config.d.ts +0 -38
- package/dest/publisher/config.d.ts.map +0 -1
- package/dest/publisher/index.d.ts +0 -2
- package/dest/publisher/index.d.ts.map +0 -1
- package/dest/publisher/sequencer-publisher-metrics.d.ts +0 -24
- package/dest/publisher/sequencer-publisher-metrics.d.ts.map +0 -1
- package/dest/publisher/sequencer-publisher.d.ts +0 -163
- package/dest/publisher/sequencer-publisher.d.ts.map +0 -1
- package/dest/sequencer/allowed.d.ts +0 -3
- package/dest/sequencer/allowed.d.ts.map +0 -1
- package/dest/sequencer/config.d.ts +0 -2
- package/dest/sequencer/config.d.ts.map +0 -1
- package/dest/sequencer/index.d.ts +0 -4
- package/dest/sequencer/index.d.ts.map +0 -1
- package/dest/sequencer/metrics.d.ts +0 -24
- package/dest/sequencer/metrics.d.ts.map +0 -1
- package/dest/sequencer/sequencer.d.ts +0 -172
- package/dest/sequencer/sequencer.d.ts.map +0 -1
- package/dest/sequencer/timetable.d.ts +0 -38
- package/dest/sequencer/timetable.d.ts.map +0 -1
- package/dest/sequencer/utils.d.ts +0 -47
- package/dest/sequencer/utils.d.ts.map +0 -1
- package/dest/slasher/factory.d.ts +0 -11
- package/dest/slasher/factory.d.ts.map +0 -1
- package/dest/slasher/index.d.ts +0 -3
- package/dest/slasher/index.d.ts.map +0 -1
- package/dest/slasher/slasher_client.d.ts +0 -127
- package/dest/slasher/slasher_client.d.ts.map +0 -1
- package/dest/test/index.d.ts +0 -17
- package/dest/test/index.d.ts.map +0 -1
- 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/gas_validator.d.ts +0 -12
- package/dest/tx_validator/gas_validator.d.ts.map +0 -1
- package/dest/tx_validator/nullifier_cache.d.ts +0 -16
- package/dest/tx_validator/nullifier_cache.d.ts.map +0 -1
- package/dest/tx_validator/phases_validator.d.ts +0 -11
- package/dest/tx_validator/phases_validator.d.ts.map +0 -1
- package/dest/tx_validator/test_utils.d.ts +0 -21
- package/dest/tx_validator/test_utils.d.ts.map +0 -1
- package/dest/tx_validator/tx_validator_factory.d.ts +0 -16
- package/dest/tx_validator/tx_validator_factory.d.ts.map +0 -1
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { type BlobSinkClientInterface } from '@aztec/blob-sink/client';
|
|
2
|
-
import { type L1ToL2MessageSource, type L2BlockSource, type WorldStateSynchronizer } from '@aztec/circuit-types';
|
|
3
|
-
import { type AztecAddress, type ContractDataSource } from '@aztec/circuits.js';
|
|
4
|
-
import { EpochCache } from '@aztec/epoch-cache';
|
|
5
|
-
import { L1TxUtilsWithBlobs } from '@aztec/ethereum';
|
|
6
|
-
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
7
|
-
import { type DateProvider } from '@aztec/foundation/timer';
|
|
8
|
-
import { type P2P } from '@aztec/p2p';
|
|
9
|
-
import { type TelemetryClient } from '@aztec/telemetry-client';
|
|
10
|
-
import { type ValidatorClient } from '@aztec/validator-client';
|
|
11
|
-
import { type SequencerClientConfig } from '../config.js';
|
|
12
|
-
import { SequencerPublisher } from '../publisher/index.js';
|
|
13
|
-
import { Sequencer, type SequencerConfig } from '../sequencer/index.js';
|
|
14
|
-
import { type SlasherClient } from '../slasher/index.js';
|
|
15
|
-
/**
|
|
16
|
-
* Encapsulates the full sequencer and publisher.
|
|
17
|
-
*/
|
|
18
|
-
export declare class SequencerClient {
|
|
19
|
-
protected sequencer: Sequencer;
|
|
20
|
-
constructor(sequencer: Sequencer);
|
|
21
|
-
/**
|
|
22
|
-
* Initializes and starts a new instance.
|
|
23
|
-
* @param config - Configuration for the sequencer, publisher, and L1 tx sender.
|
|
24
|
-
* @param p2pClient - P2P client that provides the txs to be sequenced.
|
|
25
|
-
* @param validatorClient - Validator client performs attestation duties when rotating proposers.
|
|
26
|
-
* @param worldStateSynchronizer - Provides access to world state.
|
|
27
|
-
* @param contractDataSource - Provides access to contract bytecode for public executions.
|
|
28
|
-
* @param l2BlockSource - Provides information about the previously published blocks.
|
|
29
|
-
* @param l1ToL2MessageSource - Provides access to L1 to L2 messages.
|
|
30
|
-
* @param prover - An instance of a block prover
|
|
31
|
-
* @param simulationProvider - An instance of a simulation provider
|
|
32
|
-
* @returns A new running instance.
|
|
33
|
-
*/
|
|
34
|
-
static new(config: SequencerClientConfig, deps: {
|
|
35
|
-
validatorClient: ValidatorClient | undefined;
|
|
36
|
-
p2pClient: P2P;
|
|
37
|
-
worldStateSynchronizer: WorldStateSynchronizer;
|
|
38
|
-
slasherClient: SlasherClient;
|
|
39
|
-
contractDataSource: ContractDataSource;
|
|
40
|
-
l2BlockSource: L2BlockSource;
|
|
41
|
-
l1ToL2MessageSource: L1ToL2MessageSource;
|
|
42
|
-
telemetry: TelemetryClient;
|
|
43
|
-
publisher?: SequencerPublisher;
|
|
44
|
-
blobSinkClient?: BlobSinkClientInterface;
|
|
45
|
-
dateProvider: DateProvider;
|
|
46
|
-
epochCache?: EpochCache;
|
|
47
|
-
l1TxUtils?: L1TxUtilsWithBlobs;
|
|
48
|
-
}): Promise<SequencerClient>;
|
|
49
|
-
/**
|
|
50
|
-
* Updates sequencer config.
|
|
51
|
-
* @param config - New parameters.
|
|
52
|
-
*/
|
|
53
|
-
updateSequencerConfig(config: SequencerConfig): Promise<void>;
|
|
54
|
-
/**
|
|
55
|
-
* Stops the sequencer from processing new txs.
|
|
56
|
-
*/
|
|
57
|
-
stop(): Promise<void>;
|
|
58
|
-
/** Forces the sequencer to bypass all time and tx count checks for the next block and build anyway. */
|
|
59
|
-
flush(): void;
|
|
60
|
-
/**
|
|
61
|
-
* Restarts the sequencer after being stopped.
|
|
62
|
-
*/
|
|
63
|
-
restart(): void;
|
|
64
|
-
get coinbase(): EthAddress;
|
|
65
|
-
get feeRecipient(): AztecAddress;
|
|
66
|
-
get forwarderAddress(): EthAddress;
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingUR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AAC;QACf,sBAAsB,EAAE,sBAAsB,CAAC;QAC/C,aAAa,EAAE,aAAa,CAAC;QAC7B,kBAAkB,EAAE,kBAAkB,CAAC;QACvC,aAAa,EAAE,aAAa,CAAC;QAC7B,mBAAmB,EAAE,mBAAmB,CAAC;QACzC,SAAS,EAAE,eAAe,CAAC;QAC3B,SAAS,CAAC,EAAE,kBAAkB,CAAC;QAC/B,cAAc,CAAC,EAAE,uBAAuB,CAAC;QACzC,YAAY,EAAE,YAAY,CAAC;QAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,SAAS,CAAC,EAAE,kBAAkB,CAAC;KAChC;IAiHH;;;OAGG;IACI,qBAAqB,CAAC,MAAM,EAAE,eAAe;IAIpD;;OAEG;IACU,IAAI;IAIjB,uGAAuG;IAChG,KAAK;IAIZ;;OAEG;IACI,OAAO;IAId,IAAI,QAAQ,IAAI,UAAU,CAEzB;IAED,IAAI,YAAY,IAAI,YAAY,CAE/B;IAED,IAAI,gBAAgB,IAAI,UAAU,CAEjC;CACF"}
|
package/dest/config.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { type AllowedElement, type SequencerConfig } from '@aztec/circuit-types/config';
|
|
2
|
-
import { type L1ContractsConfig, type L1ReaderConfig } from '@aztec/ethereum';
|
|
3
|
-
import { type ConfigMappingsType } from '@aztec/foundation/config';
|
|
4
|
-
import { type PublisherConfig, type TxSenderConfig } from './publisher/config.js';
|
|
5
|
-
export * from './publisher/config.js';
|
|
6
|
-
export { SequencerConfig };
|
|
7
|
-
/** Chain configuration. */
|
|
8
|
-
type ChainConfig = {
|
|
9
|
-
/** The chain id of the ethereum host. */
|
|
10
|
-
l1ChainId: number;
|
|
11
|
-
/** The version of the rollup. */
|
|
12
|
-
version: number;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Configuration settings for the SequencerClient.
|
|
16
|
-
*/
|
|
17
|
-
export type SequencerClientConfig = PublisherConfig & TxSenderConfig & SequencerConfig & L1ReaderConfig & ChainConfig & Pick<L1ContractsConfig, 'ethereumSlotDuration' | 'aztecSlotDuration' | 'aztecEpochDuration'>;
|
|
18
|
-
export declare const sequencerConfigMappings: ConfigMappingsType<SequencerConfig>;
|
|
19
|
-
export declare const chainConfigMappings: ConfigMappingsType<ChainConfig>;
|
|
20
|
-
export declare const sequencerClientConfigMappings: ConfigMappingsType<SequencerClientConfig>;
|
|
21
|
-
/**
|
|
22
|
-
* Creates an instance of SequencerClientConfig out of environment variables using sensible defaults for integration testing if not set.
|
|
23
|
-
*/
|
|
24
|
-
export declare function getConfigEnvVars(): SequencerClientConfig;
|
|
25
|
-
/**
|
|
26
|
-
* Parses a string to a list of allowed elements.
|
|
27
|
-
* Each encoded is expected to be of one of the following formats
|
|
28
|
-
* `I:${address}`
|
|
29
|
-
* `I:${address}:${selector}`
|
|
30
|
-
* `C:${classId}`
|
|
31
|
-
* `C:${classId}:${selector}`
|
|
32
|
-
*
|
|
33
|
-
* @param value The string to parse
|
|
34
|
-
* @returns A list of allowed elements
|
|
35
|
-
*/
|
|
36
|
-
export declare function parseSequencerAllowList(value: string): AllowedElement[];
|
|
37
|
-
//# sourceMappingURL=config.d.ts.map
|
package/dest/config.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAExF,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAGpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,kBAAkB,EAKxB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,cAAc,EAGpB,MAAM,uBAAuB,CAAC;AAE/B,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,2BAA2B;AAC3B,KAAK,WAAW,GAAG;IACjB,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,eAAe,GACjD,cAAc,GACd,eAAe,GACf,cAAc,GACd,WAAW,GACX,IAAI,CAAC,iBAAiB,EAAE,sBAAsB,GAAG,mBAAmB,GAAG,oBAAoB,CAAC,CAAC;AAE/F,eAAO,MAAM,uBAAuB,EAAE,kBAAkB,CAAC,eAAe,CA8EvE,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,kBAAkB,CAAC,WAAW,CAO/D,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,kBAAkB,CAAC,qBAAqB,CAOnF,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,qBAAqB,CAExD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,EAAE,CAqCvE"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type GlobalVariableBuilder as GlobalVariableBuilderInterface } from '@aztec/circuit-types';
|
|
2
|
-
import { type AztecAddress, type EthAddress, GasFees, GlobalVariables } from '@aztec/circuits.js';
|
|
3
|
-
import { type L1ContractsConfig, type L1ReaderConfig } from '@aztec/ethereum';
|
|
4
|
-
import { Fr } from '@aztec/foundation/fields';
|
|
5
|
-
/**
|
|
6
|
-
* Simple global variables builder.
|
|
7
|
-
*/
|
|
8
|
-
export declare class GlobalVariableBuilder implements GlobalVariableBuilderInterface {
|
|
9
|
-
private log;
|
|
10
|
-
private rollupContract;
|
|
11
|
-
private publicClient;
|
|
12
|
-
private ethereumSlotDuration;
|
|
13
|
-
constructor(config: L1ReaderConfig & Pick<L1ContractsConfig, 'ethereumSlotDuration'>);
|
|
14
|
-
/**
|
|
15
|
-
* Computes the "current" base fees, e.g., the price that you currently should pay to get include in the next block
|
|
16
|
-
* @returns Base fees for the expected next block
|
|
17
|
-
*/
|
|
18
|
-
getCurrentBaseFees(): Promise<GasFees>;
|
|
19
|
-
/**
|
|
20
|
-
* Simple builder of global variables that use the minimum time possible.
|
|
21
|
-
* @param blockNumber - The block number to build global variables for.
|
|
22
|
-
* @param coinbase - The address to receive block reward.
|
|
23
|
-
* @param feeRecipient - The address to receive fees.
|
|
24
|
-
* @param slotNumber - The slot number to use for the global variables, if undefined it will be calculated.
|
|
25
|
-
* @returns The global variables for the given block number.
|
|
26
|
-
*/
|
|
27
|
-
buildGlobalVariables(blockNumber: Fr, coinbase: EthAddress, feeRecipient: AztecAddress, slotNumber?: bigint): Promise<GlobalVariables>;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=global_builder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"global_builder.d.ts","sourceRoot":"","sources":["../../src/global_variable_builder/global_builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,IAAI,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACpG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAClG,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAuB,MAAM,iBAAiB,CAAC;AACnG,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAe9C;;GAEG;AACH,qBAAa,qBAAsB,YAAW,8BAA8B;IAC1E,OAAO,CAAC,GAAG,CAAqD;IAEhE,OAAO,CAAC,cAAc,CAAqF;IAC3G,OAAO,CAAC,YAAY,CAA4C;IAChE,OAAO,CAAC,oBAAoB,CAAS;gBAEzB,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;IAoBpF;;;OAGG;IACU,kBAAkB,IAAI,OAAO,CAAC,OAAO,CAAC;IAanD;;;;;;;OAOG;IACU,oBAAoB,CAC/B,WAAW,EAAE,EAAE,EACf,QAAQ,EAAE,UAAU,EACpB,YAAY,EAAE,YAAY,EAC1B,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,eAAe,CAAC;CA8B5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/global_variable_builder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dest/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './client/index.js';
|
|
2
|
-
export * from './config.js';
|
|
3
|
-
export * from './publisher/index.js';
|
|
4
|
-
export * from './tx_validator/tx_validator_factory.js';
|
|
5
|
-
export * from './slasher/index.js';
|
|
6
|
-
export { Sequencer, SequencerState, getDefaultAllowedSetupFunctions } from './sequencer/index.js';
|
|
7
|
-
export * from './global_variable_builder/index.js';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dest/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,wCAAwC,CAAC;AACvD,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAIlG,cAAc,oCAAoC,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { type L1ReaderConfig, type L1TxUtilsConfig } from '@aztec/ethereum';
|
|
2
|
-
import { type ConfigMappingsType } from '@aztec/foundation/config';
|
|
3
|
-
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
4
|
-
/**
|
|
5
|
-
* The configuration of the rollup transaction publisher.
|
|
6
|
-
*/
|
|
7
|
-
export type TxSenderConfig = L1ReaderConfig & {
|
|
8
|
-
/**
|
|
9
|
-
* The private key to be used by the publisher.
|
|
10
|
-
*/
|
|
11
|
-
publisherPrivateKey: `0x${string}`;
|
|
12
|
-
/**
|
|
13
|
-
* The number of confirmations required.
|
|
14
|
-
*/
|
|
15
|
-
requiredConfirmations: number;
|
|
16
|
-
/**
|
|
17
|
-
* The address of the custom forwarder contract.
|
|
18
|
-
*/
|
|
19
|
-
customForwarderContractAddress: EthAddress;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Configuration of the L1Publisher.
|
|
23
|
-
*/
|
|
24
|
-
export type PublisherConfig = L1TxUtilsConfig & {
|
|
25
|
-
/**
|
|
26
|
-
* The interval to wait between publish retries.
|
|
27
|
-
*/
|
|
28
|
-
l1PublishRetryIntervalMS: number;
|
|
29
|
-
/**
|
|
30
|
-
* The URL of the blob sink.
|
|
31
|
-
*/
|
|
32
|
-
blobSinkUrl?: string;
|
|
33
|
-
};
|
|
34
|
-
export declare const getTxSenderConfigMappings: (scope: 'PROVER' | 'SEQ') => ConfigMappingsType<Omit<TxSenderConfig, 'l1Contracts'>>;
|
|
35
|
-
export declare function getTxSenderConfigFromEnv(scope: 'PROVER' | 'SEQ'): Omit<TxSenderConfig, 'l1Contracts'>;
|
|
36
|
-
export declare const getPublisherConfigMappings: (scope: 'PROVER' | 'SEQ') => ConfigMappingsType<PublisherConfig & L1TxUtilsConfig>;
|
|
37
|
-
export declare function getPublisherConfigFromEnv(scope: 'PROVER' | 'SEQ'): PublisherConfig;
|
|
38
|
-
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/publisher/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAqC,MAAM,iBAAiB,CAAC;AAC/G,OAAO,EAAE,KAAK,kBAAkB,EAA6C,MAAM,0BAA0B,CAAC;AAC9G,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG;IAC5C;;OAEG;IACH,mBAAmB,EAAE,KAAK,MAAM,EAAE,CAAC;IAEnC;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,8BAA8B,EAAE,UAAU,CAAC;CAC5C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG;IAC9C;;OAEG;IACH,wBAAwB,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,CACtC,KAAK,EAAE,QAAQ,GAAG,KAAK,KACpB,kBAAkB,CAAC,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,CAkCzD,CAAC;AAEH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,QAAQ,GAAG,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,CAErG;AAED,eAAO,MAAM,0BAA0B,EAAE,CACvC,KAAK,EAAE,QAAQ,GAAG,KAAK,KACpB,kBAAkB,CAAC,eAAe,GAAG,eAAe,CAavD,CAAC;AAEH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,QAAQ,GAAG,KAAK,GAAG,eAAe,CAElF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/publisher/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { L1PublishBlockStats, L1PublishProofStats, L1PublishStats } from '@aztec/circuit-types/stats';
|
|
2
|
-
import { type TelemetryClient } from '@aztec/telemetry-client';
|
|
3
|
-
export type L1TxType = 'submitProof' | 'process' | 'claimEpochProofRight';
|
|
4
|
-
export declare class SequencerPublisherMetrics {
|
|
5
|
-
private gasPrice;
|
|
6
|
-
private txCount;
|
|
7
|
-
private txDuration;
|
|
8
|
-
private txGas;
|
|
9
|
-
private txCalldataSize;
|
|
10
|
-
private txCalldataGas;
|
|
11
|
-
private txBlobDataGasUsed;
|
|
12
|
-
private txBlobDataGasCost;
|
|
13
|
-
private readonly blobCountHistogram;
|
|
14
|
-
private readonly blobInclusionBlocksHistogram;
|
|
15
|
-
private readonly blobTxSuccessCounter;
|
|
16
|
-
private readonly blobTxFailureCounter;
|
|
17
|
-
constructor(client: TelemetryClient, name?: string);
|
|
18
|
-
recordFailedTx(txType: L1TxType): void;
|
|
19
|
-
recordSubmitProof(durationMs: number, stats: L1PublishProofStats): void;
|
|
20
|
-
recordProcessBlockTx(durationMs: number, stats: L1PublishBlockStats): void;
|
|
21
|
-
recordClaimEpochProofRightTx(durationMs: number, stats: L1PublishStats): void;
|
|
22
|
-
private recordTx;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=sequencer-publisher-metrics.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sequencer-publisher-metrics.d.ts","sourceRoot":"","sources":["../../src/publisher/sequencer-publisher-metrics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC3G,OAAO,EAIL,KAAK,eAAe,EAGrB,MAAM,yBAAyB,CAAC;AAIjC,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,SAAS,GAAG,sBAAsB,CAAC;AAE1E,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAY;IAE5B,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,UAAU,CAAY;IAC9B,OAAO,CAAC,KAAK,CAAY;IACzB,OAAO,CAAC,cAAc,CAAY;IAClC,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,iBAAiB,CAAY;IACrC,OAAO,CAAC,iBAAiB,CAAY;IAErC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAY;IAC/C,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAY;IACzD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgB;IACrD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgB;gBAEzC,MAAM,EAAE,eAAe,EAAE,IAAI,SAAuB;IAsEhE,cAAc,CAAC,MAAM,EAAE,QAAQ;IAW/B,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB;IAIhE,oBAAoB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB;IAcnE,4BAA4B,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc;IAItE,OAAO,CAAC,QAAQ;CA6BjB"}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
-
import { type BlobSinkClientInterface } from '@aztec/blob-sink/client';
|
|
4
|
-
import { type EpochProofQuote, type L2Block, type TxHash } from '@aztec/circuit-types';
|
|
5
|
-
import { type BlockHeader, EthAddress } from '@aztec/circuits.js';
|
|
6
|
-
import { type EpochCache } from '@aztec/epoch-cache';
|
|
7
|
-
import { type ForwarderContract, type GasPrice, type GovernanceProposerContract, type L1BlobInputs, type L1ContractsConfig, type L1GasConfig, type L1TxRequest, type L1TxUtilsWithBlobs, RollupContract, type SlashingProposerContract, type TransactionStats } from '@aztec/ethereum';
|
|
8
|
-
import { Blob } from '@aztec/foundation/blob';
|
|
9
|
-
import { type Signature } from '@aztec/foundation/eth-signature';
|
|
10
|
-
import { type TelemetryClient } from '@aztec/telemetry-client';
|
|
11
|
-
import { type TransactionReceipt } from 'viem';
|
|
12
|
-
import { type PublisherConfig, type TxSenderConfig } from './config.js';
|
|
13
|
-
export declare enum VoteType {
|
|
14
|
-
GOVERNANCE = 0,
|
|
15
|
-
SLASHING = 1
|
|
16
|
-
}
|
|
17
|
-
type GetSlashPayloadCallBack = (slotNumber: bigint) => Promise<EthAddress | undefined>;
|
|
18
|
-
type Action = 'propose' | 'claim' | 'governance-vote' | 'slashing-vote';
|
|
19
|
-
interface RequestWithExpiry {
|
|
20
|
-
action: Action;
|
|
21
|
-
request: L1TxRequest;
|
|
22
|
-
lastValidL2Slot: bigint;
|
|
23
|
-
gasConfig?: L1GasConfig;
|
|
24
|
-
blobConfig?: L1BlobInputs;
|
|
25
|
-
onResult?: (request: L1TxRequest, result?: {
|
|
26
|
-
receipt: TransactionReceipt;
|
|
27
|
-
gasPrice: GasPrice;
|
|
28
|
-
stats?: TransactionStats;
|
|
29
|
-
errorMsg?: string;
|
|
30
|
-
}) => void;
|
|
31
|
-
}
|
|
32
|
-
export declare class SequencerPublisher {
|
|
33
|
-
private interrupted;
|
|
34
|
-
private metrics;
|
|
35
|
-
private epochCache;
|
|
36
|
-
private forwarderContract;
|
|
37
|
-
protected governanceLog: import("@aztec/foundation/log").Logger;
|
|
38
|
-
protected governanceProposerAddress?: EthAddress;
|
|
39
|
-
private governancePayload;
|
|
40
|
-
protected slashingLog: import("@aztec/foundation/log").Logger;
|
|
41
|
-
protected slashingProposerAddress?: EthAddress;
|
|
42
|
-
private getSlashPayload?;
|
|
43
|
-
private myLastVotes;
|
|
44
|
-
protected log: import("@aztec/foundation/log").Logger;
|
|
45
|
-
protected ethereumSlotDuration: bigint;
|
|
46
|
-
private blobSinkClient;
|
|
47
|
-
static PROPOSE_GAS_GUESS: bigint;
|
|
48
|
-
static PROPOSE_AND_CLAIM_GAS_GUESS: bigint;
|
|
49
|
-
l1TxUtils: L1TxUtilsWithBlobs;
|
|
50
|
-
rollupContract: RollupContract;
|
|
51
|
-
govProposerContract: GovernanceProposerContract;
|
|
52
|
-
slashingProposerContract: SlashingProposerContract;
|
|
53
|
-
protected requests: RequestWithExpiry[];
|
|
54
|
-
constructor(config: TxSenderConfig & PublisherConfig & Pick<L1ContractsConfig, 'ethereumSlotDuration'>, deps: {
|
|
55
|
-
telemetry?: TelemetryClient;
|
|
56
|
-
blobSinkClient?: BlobSinkClientInterface;
|
|
57
|
-
forwarderContract: ForwarderContract;
|
|
58
|
-
l1TxUtils: L1TxUtilsWithBlobs;
|
|
59
|
-
rollupContract: RollupContract;
|
|
60
|
-
slashingProposerContract: SlashingProposerContract;
|
|
61
|
-
governanceProposerContract: GovernanceProposerContract;
|
|
62
|
-
epochCache: EpochCache;
|
|
63
|
-
});
|
|
64
|
-
registerSlashPayloadGetter(callback: GetSlashPayloadCallBack): void;
|
|
65
|
-
getForwarderAddress(): EthAddress;
|
|
66
|
-
getSenderAddress(): EthAddress;
|
|
67
|
-
getGovernancePayload(): EthAddress;
|
|
68
|
-
setGovernancePayload(payload: EthAddress): void;
|
|
69
|
-
addRequest(request: RequestWithExpiry): void;
|
|
70
|
-
getCurrentL2Slot(): bigint;
|
|
71
|
-
/**
|
|
72
|
-
* Sends all requests that are still valid.
|
|
73
|
-
* @returns one of:
|
|
74
|
-
* - A receipt and stats if the tx succeeded
|
|
75
|
-
* - a receipt and errorMsg if it failed on L1
|
|
76
|
-
* - undefined if no valid requests are found OR the tx failed to send.
|
|
77
|
-
*/
|
|
78
|
-
sendRequests(): Promise<{
|
|
79
|
-
receipt: TransactionReceipt<bigint, number, "success" | "reverted", import("viem").TransactionType>;
|
|
80
|
-
gasPrice: GasPrice;
|
|
81
|
-
stats: TransactionStats | undefined;
|
|
82
|
-
errorMsg?: undefined;
|
|
83
|
-
} | {
|
|
84
|
-
receipt: TransactionReceipt<bigint, number, "success" | "reverted", import("viem").TransactionType>;
|
|
85
|
-
gasPrice: GasPrice;
|
|
86
|
-
errorMsg: string | undefined;
|
|
87
|
-
stats?: undefined;
|
|
88
|
-
} | undefined>;
|
|
89
|
-
private callbackBundledTransactions;
|
|
90
|
-
/**
|
|
91
|
-
* @notice Will call `canProposeAtNextEthBlock` to make sure that it is possible to propose
|
|
92
|
-
* @param tipArchive - The archive to check
|
|
93
|
-
* @returns The slot and block number if it is possible to propose, undefined otherwise
|
|
94
|
-
*/
|
|
95
|
-
canProposeAtNextEthBlock(tipArchive: Buffer): Promise<[bigint, bigint] | undefined>;
|
|
96
|
-
/**
|
|
97
|
-
* @returns The epoch that is currently claimable, undefined otherwise
|
|
98
|
-
*/
|
|
99
|
-
getClaimableEpoch(): Promise<bigint | undefined>;
|
|
100
|
-
/**
|
|
101
|
-
* @notice Will filter out invalid quotes according to L1
|
|
102
|
-
* @param quotes - The quotes to filter
|
|
103
|
-
* @returns The filtered quotes
|
|
104
|
-
*/
|
|
105
|
-
filterValidQuotes(quotes: EpochProofQuote[]): Promise<EpochProofQuote[]>;
|
|
106
|
-
/**
|
|
107
|
-
* @notice Will call `validateHeader` to make sure that it is possible to propose
|
|
108
|
-
*
|
|
109
|
-
* @dev Throws if unable to propose
|
|
110
|
-
*
|
|
111
|
-
* @param header - The header to propose
|
|
112
|
-
* @param digest - The digest that attestations are signing over
|
|
113
|
-
*
|
|
114
|
-
*/
|
|
115
|
-
validateBlockForSubmission(header: BlockHeader, attestationData?: {
|
|
116
|
-
digest: Buffer;
|
|
117
|
-
signatures: Signature[];
|
|
118
|
-
}): Promise<bigint>;
|
|
119
|
-
getCurrentEpochCommittee(): Promise<EthAddress[]>;
|
|
120
|
-
private enqueueCastVoteHelper;
|
|
121
|
-
private getVoteConfig;
|
|
122
|
-
/**
|
|
123
|
-
* Enqueues a castVote transaction to cast a vote for a given slot number.
|
|
124
|
-
* @param slotNumber - The slot number to cast a vote for.
|
|
125
|
-
* @param timestamp - The timestamp of the slot to cast a vote for.
|
|
126
|
-
* @param voteType - The type of vote to cast.
|
|
127
|
-
* @returns True if the vote was successfully enqueued, false otherwise.
|
|
128
|
-
*/
|
|
129
|
-
enqueueCastVote(slotNumber: bigint, timestamp: bigint, voteType: VoteType): Promise<boolean>;
|
|
130
|
-
/**
|
|
131
|
-
* Proposes a L2 block on L1.
|
|
132
|
-
*
|
|
133
|
-
* @param block - L2 block to propose.
|
|
134
|
-
* @returns True if the tx has been enqueued, throws otherwise. See #9315
|
|
135
|
-
*/
|
|
136
|
-
enqueueProposeL2Block(block: L2Block, attestations?: Signature[], txHashes?: TxHash[], opts?: {
|
|
137
|
-
txTimeoutAt?: Date;
|
|
138
|
-
}): Promise<boolean>;
|
|
139
|
-
/** Enqueues a claimEpochProofRight transaction to submit a chosen prover quote for the previous epoch. */
|
|
140
|
-
enqueueClaimEpochProofRight(proofQuote: EpochProofQuote): boolean;
|
|
141
|
-
/**
|
|
142
|
-
* Calling `interrupt` will cause any in progress call to `publishRollup` to return `false` asap.
|
|
143
|
-
* Be warned, the call may return false even if the tx subsequently gets successfully mined.
|
|
144
|
-
* In practice this shouldn't matter, as we'll only ever be calling `interrupt` when we know it's going to fail.
|
|
145
|
-
* A call to `restart` is required before you can continue publishing.
|
|
146
|
-
*/
|
|
147
|
-
interrupt(): void;
|
|
148
|
-
/** Restarts the publisher after calling `interrupt`. */
|
|
149
|
-
restart(): void;
|
|
150
|
-
private prepareProposeTx;
|
|
151
|
-
private addProposeTx;
|
|
152
|
-
/**
|
|
153
|
-
* Send blobs to the blob sink
|
|
154
|
-
*
|
|
155
|
-
* If a blob sink url is configured, then we send blobs to the blob sink
|
|
156
|
-
* - for now we use the blockHash as the identifier for the blobs;
|
|
157
|
-
* In the future this will move to be the beacon block id - which takes a bit more work
|
|
158
|
-
* to calculate and will need to be mocked in e2e tests
|
|
159
|
-
*/
|
|
160
|
-
protected sendBlobsToBlobSink(blockHash: string, blobs: Blob[]): Promise<boolean>;
|
|
161
|
-
}
|
|
162
|
-
export {};
|
|
163
|
-
//# sourceMappingURL=sequencer-publisher.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sequencer-publisher.d.ts","sourceRoot":"","sources":["../../src/publisher/sequencer-publisher.ts"],"names":[],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AE,IAAI,CAAA;KAAO,GAChC,OAAO,CAAC,OAAO,CAAC;IA8BnB,0GAA0G;IACnG,2BAA2B,CAAC,UAAU,EAAE,eAAe,GAAG,OAAO;IA6CxE;;;;;OAKG;IACI,SAAS;IAKhB,wDAAwD;IACjD,OAAO;YAKA,gBAAgB;YAoGhB,YAAY;IAsE1B;;;;;;;OAOG;IACH,SAAS,CAAC,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CAGlF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allowed.d.ts","sourceRoot":"","sources":["../../src/sequencer/allowed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAQ3D,wBAAsB,+BAA+B,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CA2BjF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/sequencer/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sequencer/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type TelemetryClient, type Tracer } from '@aztec/telemetry-client';
|
|
2
|
-
import { type SequencerState, type SequencerStateCallback } from './utils.js';
|
|
3
|
-
export declare class SequencerMetrics {
|
|
4
|
-
readonly tracer: Tracer;
|
|
5
|
-
private blockCounter;
|
|
6
|
-
private blockBuildDuration;
|
|
7
|
-
private blockBuildManaPerSecond;
|
|
8
|
-
private stateTransitionBufferDuration;
|
|
9
|
-
private currentBlockNumber;
|
|
10
|
-
private currentBlockSize;
|
|
11
|
-
private blockBuilderInsertions;
|
|
12
|
-
private timeToCollectAttestations;
|
|
13
|
-
constructor(client: TelemetryClient, getState: SequencerStateCallback, name?: string);
|
|
14
|
-
startCollectingAttestationsTimer(): () => void;
|
|
15
|
-
recordTimeToCollectAttestations(time: number): void;
|
|
16
|
-
recordBlockBuilderTreeInsertions(timeUs: number): void;
|
|
17
|
-
recordCancelledBlock(): void;
|
|
18
|
-
recordBuiltBlock(buildDurationMs: number, totalMana: number): void;
|
|
19
|
-
recordFailedBlock(): void;
|
|
20
|
-
recordNewBlock(blockNumber: number, txCount: number): void;
|
|
21
|
-
recordStateTransitionBufferMs(durationMs: number, state: SequencerState): void;
|
|
22
|
-
private setCurrentBlock;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=metrics.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../src/sequencer/metrics.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,eAAe,EACpB,KAAK,MAAM,EAGZ,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,sBAAsB,EAA0B,MAAM,YAAY,CAAC;AAEtG,qBAAa,gBAAgB;IAC3B,SAAgB,MAAM,EAAE,MAAM,CAAC;IAE/B,OAAO,CAAC,YAAY,CAAgB;IACpC,OAAO,CAAC,kBAAkB,CAAY;IACtC,OAAO,CAAC,uBAAuB,CAAQ;IACvC,OAAO,CAAC,6BAA6B,CAAY;IACjD,OAAO,CAAC,kBAAkB,CAAQ;IAClC,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,sBAAsB,CAAY;IAE1C,OAAO,CAAC,yBAAyB,CAAQ;gBAE7B,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,sBAAsB,EAAE,IAAI,SAAc;IAyDzF,gCAAgC,IAAI,MAAM,IAAI;IAS9C,+BAA+B,CAAC,IAAI,EAAE,MAAM;IAI5C,gCAAgC,CAAC,MAAM,EAAE,MAAM;IAI/C,oBAAoB;IAOpB,gBAAgB,CAAC,eAAe,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAQ3D,iBAAiB;IAOjB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAInD,6BAA6B,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc;IAMvE,OAAO,CAAC,eAAe;CAIxB"}
|