@aztec/sequencer-client 0.0.1-commit.3469e52 → 0.0.1-commit.350e0a4d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/README.md +281 -21
  2. package/dest/client/sequencer-client.d.ts +34 -11
  3. package/dest/client/sequencer-client.d.ts.map +1 -1
  4. package/dest/client/sequencer-client.js +77 -39
  5. package/dest/config.d.ts +32 -6
  6. package/dest/config.d.ts.map +1 -1
  7. package/dest/config.js +94 -48
  8. package/dest/global_variable_builder/fee_predictor.d.ts +37 -0
  9. package/dest/global_variable_builder/fee_predictor.d.ts.map +1 -0
  10. package/dest/global_variable_builder/fee_predictor.js +138 -0
  11. package/dest/global_variable_builder/fee_provider.d.ts +21 -0
  12. package/dest/global_variable_builder/fee_provider.d.ts.map +1 -0
  13. package/dest/global_variable_builder/fee_provider.js +80 -0
  14. package/dest/global_variable_builder/global_builder.d.ts +13 -28
  15. package/dest/global_variable_builder/global_builder.d.ts.map +1 -1
  16. package/dest/global_variable_builder/global_builder.js +9 -66
  17. package/dest/global_variable_builder/index.d.ts +4 -2
  18. package/dest/global_variable_builder/index.d.ts.map +1 -1
  19. package/dest/global_variable_builder/index.js +2 -0
  20. package/dest/publisher/config.d.ts +51 -17
  21. package/dest/publisher/config.d.ts.map +1 -1
  22. package/dest/publisher/config.js +131 -42
  23. package/dest/publisher/index.d.ts +2 -1
  24. package/dest/publisher/index.d.ts.map +1 -1
  25. package/dest/publisher/l1_to_l2_messaging.d.ts +21 -0
  26. package/dest/publisher/l1_to_l2_messaging.d.ts.map +1 -0
  27. package/dest/publisher/l1_to_l2_messaging.js +70 -0
  28. package/dest/publisher/l1_tx_failed_store/factory.d.ts +11 -0
  29. package/dest/publisher/l1_tx_failed_store/factory.d.ts.map +1 -0
  30. package/dest/publisher/l1_tx_failed_store/factory.js +22 -0
  31. package/dest/publisher/l1_tx_failed_store/failed_tx_store.d.ts +98 -0
  32. package/dest/publisher/l1_tx_failed_store/failed_tx_store.d.ts.map +1 -0
  33. package/dest/publisher/l1_tx_failed_store/failed_tx_store.js +68 -0
  34. package/dest/publisher/l1_tx_failed_store/file_store_failed_tx_store.d.ts +15 -0
  35. package/dest/publisher/l1_tx_failed_store/file_store_failed_tx_store.d.ts.map +1 -0
  36. package/dest/publisher/l1_tx_failed_store/file_store_failed_tx_store.js +36 -0
  37. package/dest/publisher/l1_tx_failed_store/index.d.ts +4 -0
  38. package/dest/publisher/l1_tx_failed_store/index.d.ts.map +1 -0
  39. package/dest/publisher/l1_tx_failed_store/index.js +3 -0
  40. package/dest/publisher/sequencer-bundle-simulator.d.ts +96 -0
  41. package/dest/publisher/sequencer-bundle-simulator.d.ts.map +1 -0
  42. package/dest/publisher/sequencer-bundle-simulator.js +198 -0
  43. package/dest/publisher/sequencer-publisher-factory.d.ts +11 -5
  44. package/dest/publisher/sequencer-publisher-factory.d.ts.map +1 -1
  45. package/dest/publisher/sequencer-publisher-factory.js +27 -3
  46. package/dest/publisher/sequencer-publisher-metrics.d.ts +1 -1
  47. package/dest/publisher/sequencer-publisher-metrics.d.ts.map +1 -1
  48. package/dest/publisher/sequencer-publisher-metrics.js +12 -4
  49. package/dest/publisher/sequencer-publisher.d.ts +122 -68
  50. package/dest/publisher/sequencer-publisher.d.ts.map +1 -1
  51. package/dest/publisher/sequencer-publisher.js +750 -364
  52. package/dest/publisher/write_json.d.ts +11 -0
  53. package/dest/publisher/write_json.d.ts.map +1 -0
  54. package/dest/publisher/write_json.js +57 -0
  55. package/dest/sequencer/automine/automine_factory.d.ts +56 -0
  56. package/dest/sequencer/automine/automine_factory.d.ts.map +1 -0
  57. package/dest/sequencer/automine/automine_factory.js +85 -0
  58. package/dest/sequencer/automine/automine_sequencer.d.ts +189 -0
  59. package/dest/sequencer/automine/automine_sequencer.d.ts.map +1 -0
  60. package/dest/sequencer/automine/automine_sequencer.js +690 -0
  61. package/dest/sequencer/automine/index.d.ts +3 -0
  62. package/dest/sequencer/automine/index.d.ts.map +1 -0
  63. package/dest/sequencer/automine/index.js +2 -0
  64. package/dest/sequencer/checkpoint_proposal_job.d.ts +101 -22
  65. package/dest/sequencer/checkpoint_proposal_job.d.ts.map +1 -1
  66. package/dest/sequencer/checkpoint_proposal_job.js +922 -280
  67. package/dest/sequencer/checkpoint_proposal_job_metrics.d.ts +34 -0
  68. package/dest/sequencer/checkpoint_proposal_job_metrics.d.ts.map +1 -0
  69. package/dest/sequencer/checkpoint_proposal_job_metrics.js +72 -0
  70. package/dest/sequencer/checkpoint_voter.d.ts +1 -2
  71. package/dest/sequencer/checkpoint_voter.d.ts.map +1 -1
  72. package/dest/sequencer/checkpoint_voter.js +2 -5
  73. package/dest/sequencer/events.d.ts +62 -5
  74. package/dest/sequencer/events.d.ts.map +1 -1
  75. package/dest/sequencer/metrics.d.ts +23 -8
  76. package/dest/sequencer/metrics.d.ts.map +1 -1
  77. package/dest/sequencer/metrics.js +142 -36
  78. package/dest/sequencer/requests_tracker.d.ts +22 -0
  79. package/dest/sequencer/requests_tracker.d.ts.map +1 -0
  80. package/dest/sequencer/requests_tracker.js +33 -0
  81. package/dest/sequencer/sequencer.d.ts +181 -44
  82. package/dest/sequencer/sequencer.d.ts.map +1 -1
  83. package/dest/sequencer/sequencer.js +614 -216
  84. package/dest/sequencer/types.d.ts +2 -2
  85. package/dest/sequencer/types.d.ts.map +1 -1
  86. package/dest/test/index.d.ts +5 -7
  87. package/dest/test/index.d.ts.map +1 -1
  88. package/dest/test/mock_checkpoint_builder.d.ts +18 -15
  89. package/dest/test/mock_checkpoint_builder.d.ts.map +1 -1
  90. package/dest/test/mock_checkpoint_builder.js +63 -40
  91. package/dest/test/utils.d.ts +22 -8
  92. package/dest/test/utils.d.ts.map +1 -1
  93. package/dest/test/utils.js +33 -14
  94. package/package.json +30 -29
  95. package/src/client/sequencer-client.ts +110 -47
  96. package/src/config.ts +121 -58
  97. package/src/global_variable_builder/README.md +44 -0
  98. package/src/global_variable_builder/fee_predictor.ts +182 -0
  99. package/src/global_variable_builder/fee_provider.ts +97 -0
  100. package/src/global_variable_builder/global_builder.ts +20 -89
  101. package/src/global_variable_builder/index.ts +3 -1
  102. package/src/publisher/config.ts +173 -40
  103. package/src/publisher/index.ts +3 -0
  104. package/src/publisher/l1_to_l2_messaging.ts +85 -0
  105. package/src/publisher/l1_tx_failed_store/factory.ts +32 -0
  106. package/src/publisher/l1_tx_failed_store/failed_tx_store.ts +164 -0
  107. package/src/publisher/l1_tx_failed_store/file_store_failed_tx_store.ts +47 -0
  108. package/src/publisher/l1_tx_failed_store/index.ts +3 -0
  109. package/src/publisher/sequencer-bundle-simulator.ts +254 -0
  110. package/src/publisher/sequencer-publisher-factory.ts +38 -9
  111. package/src/publisher/sequencer-publisher-metrics.ts +7 -3
  112. package/src/publisher/sequencer-publisher.ts +854 -461
  113. package/src/publisher/write_json.ts +78 -0
  114. package/src/sequencer/README.md +162 -450
  115. package/src/sequencer/automine/README.md +60 -0
  116. package/src/sequencer/automine/automine_factory.ts +152 -0
  117. package/src/sequencer/automine/automine_sequencer.ts +796 -0
  118. package/src/sequencer/automine/index.ts +6 -0
  119. package/src/sequencer/checkpoint_proposal_job.ts +1139 -328
  120. package/src/sequencer/checkpoint_proposal_job_metrics.ts +128 -0
  121. package/src/sequencer/checkpoint_voter.ts +1 -12
  122. package/src/sequencer/events.ts +66 -5
  123. package/src/sequencer/metrics.ts +164 -39
  124. package/src/sequencer/requests_tracker.ts +43 -0
  125. package/src/sequencer/sequencer.ts +729 -242
  126. package/src/sequencer/types.ts +1 -1
  127. package/src/test/index.ts +4 -6
  128. package/src/test/mock_checkpoint_builder.ts +93 -65
  129. package/src/test/utils.ts +81 -21
  130. package/dest/sequencer/timetable.d.ts +0 -90
  131. package/dest/sequencer/timetable.d.ts.map +0 -1
  132. package/dest/sequencer/timetable.js +0 -226
  133. package/src/sequencer/timetable.ts +0 -282
@@ -2,5 +2,5 @@ import type { L1RollupConstants } from '@aztec/stdlib/epoch-helpers';
2
2
 
3
3
  export type SequencerRollupConstants = Pick<
4
4
  L1RollupConstants,
5
- 'ethereumSlotDuration' | 'l1GenesisTime' | 'slotDuration'
5
+ 'ethereumSlotDuration' | 'l1GenesisTime' | 'slotDuration' | 'rollupManaLimit' | 'epochDuration'
6
6
  >;
package/src/test/index.ts CHANGED
@@ -1,18 +1,16 @@
1
- import type { L1TxUtilsWithBlobs } from '@aztec/ethereum/l1-tx-utils-with-blobs';
1
+ import type { L1TxUtils } from '@aztec/ethereum/l1-tx-utils';
2
2
  import type { PublisherManager } from '@aztec/ethereum/publisher-manager';
3
3
  import type { PublicProcessorFactory } from '@aztec/simulator/server';
4
+ import type { ProposerTimetable } from '@aztec/stdlib/timetable';
4
5
  import type { FullNodeCheckpointsBuilder, ValidatorClient } from '@aztec/validator-client';
5
6
 
6
7
  import { SequencerClient } from '../client/sequencer-client.js';
7
8
  import type { SequencerPublisherFactory } from '../publisher/sequencer-publisher-factory.js';
8
- import type { SequencerPublisher } from '../publisher/sequencer-publisher.js';
9
9
  import { Sequencer } from '../sequencer/sequencer.js';
10
- import type { SequencerTimetable } from '../sequencer/timetable.js';
11
10
 
12
11
  class TestSequencer_ extends Sequencer {
13
12
  declare public publicProcessorFactory: PublicProcessorFactory;
14
- declare public timetable: SequencerTimetable;
15
- declare public publisher: SequencerPublisher;
13
+ declare public timetable: ProposerTimetable;
16
14
  declare public publisherFactory: SequencerPublisherFactory;
17
15
  declare public validatorClient: ValidatorClient;
18
16
  declare public checkpointsBuilder: FullNodeCheckpointsBuilder;
@@ -22,7 +20,7 @@ export type TestSequencer = TestSequencer_;
22
20
 
23
21
  class TestSequencerClient_ extends SequencerClient {
24
22
  declare public sequencer: TestSequencer;
25
- declare public publisherManager: PublisherManager<L1TxUtilsWithBlobs>;
23
+ declare public publisherManager: PublisherManager<L1TxUtils>;
26
24
  }
27
25
 
28
26
  export type TestSequencerClient = TestSequencerClient_;
@@ -1,40 +1,41 @@
1
- import { type BlockNumber, CheckpointNumber } from '@aztec/foundation/branded-types';
1
+ import { type BlockNumber, CheckpointNumber, IndexWithinCheckpoint } from '@aztec/foundation/branded-types';
2
2
  import { Fr } from '@aztec/foundation/curves/bn254';
3
- import { Timer } from '@aztec/foundation/timer';
4
- import { L2BlockNew } from '@aztec/stdlib/block';
3
+ import { unfreeze } from '@aztec/foundation/types';
4
+ import { L2Block } from '@aztec/stdlib/block';
5
5
  import { Checkpoint } from '@aztec/stdlib/checkpoint';
6
- import { Gas } from '@aztec/stdlib/gas';
7
6
  import type {
8
- BuildBlockInCheckpointResult,
7
+ BlockBuilderOptions,
9
8
  FullNodeBlockBuilderConfig,
10
9
  ICheckpointBlockBuilder,
11
10
  ICheckpointsBuilder,
12
11
  MerkleTreeWriteOperations,
13
- PublicProcessorLimits,
14
12
  } from '@aztec/stdlib/interfaces/server';
15
13
  import { CheckpointHeader } from '@aztec/stdlib/rollup';
16
14
  import { makeAppendOnlyTreeSnapshot } from '@aztec/stdlib/testing';
17
15
  import type { CheckpointGlobalVariables, Tx } from '@aztec/stdlib/tx';
16
+ import type { BuildBlockInCheckpointResult } from '@aztec/validator-client';
18
17
 
19
18
  /**
20
19
  * A fake CheckpointBuilder for testing that implements the same interface as the real one.
21
20
  * Can be seeded with blocks to return sequentially on each `buildBlock` call.
22
21
  */
23
22
  export class MockCheckpointBuilder implements ICheckpointBlockBuilder {
24
- private blocks: L2BlockNew[] = [];
25
- private builtBlocks: L2BlockNew[] = [];
23
+ private blocks: L2Block[] = [];
24
+ private builtBlocks: L2Block[] = [];
26
25
  private usedTxsPerBlock: Tx[][] = [];
27
26
  private blockIndex = 0;
28
27
 
29
28
  /** Optional function to dynamically provide the block (alternative to seedBlocks) */
30
- private blockProvider: (() => L2BlockNew) | undefined = undefined;
29
+ private blockProvider: (() => L2Block) | undefined = undefined;
31
30
 
32
31
  /** Track calls for assertions */
33
32
  public buildBlockCalls: Array<{
34
33
  blockNumber: BlockNumber;
35
34
  timestamp: bigint;
36
- opts: PublicProcessorLimits;
35
+ opts: BlockBuilderOptions;
37
36
  }> = [];
37
+ /** Track all consumed transaction hashes across buildBlock calls */
38
+ public consumedTxHashes: Set<string> = new Set();
38
39
  public completeCheckpointCalled = false;
39
40
  public getCheckpointCalled = false;
40
41
 
@@ -47,7 +48,7 @@ export class MockCheckpointBuilder implements ICheckpointBlockBuilder {
47
48
  ) {}
48
49
 
49
50
  /** Seed the builder with blocks to return on successive buildBlock calls */
50
- seedBlocks(blocks: L2BlockNew[], usedTxsPerBlock?: Tx[][]): this {
51
+ seedBlocks(blocks: L2Block[], usedTxsPerBlock?: Tx[][]): this {
51
52
  this.blocks = blocks;
52
53
  this.usedTxsPerBlock = usedTxsPerBlock ?? blocks.map(() => []);
53
54
  this.blockIndex = 0;
@@ -59,7 +60,7 @@ export class MockCheckpointBuilder implements ICheckpointBlockBuilder {
59
60
  * Set a function that provides blocks dynamically.
60
61
  * Useful for tests where the block is determined at call time (e.g., sequencer tests).
61
62
  */
62
- setBlockProvider(provider: () => L2BlockNew): this {
63
+ setBlockProvider(provider: () => L2Block): this {
63
64
  this.blockProvider = provider;
64
65
  this.blocks = [];
65
66
  return this;
@@ -69,24 +70,26 @@ export class MockCheckpointBuilder implements ICheckpointBlockBuilder {
69
70
  return this.constants;
70
71
  }
71
72
 
72
- buildBlock(
73
- _pendingTxs: Iterable<Tx> | AsyncIterable<Tx>,
73
+ async buildBlock(
74
+ pendingTxs: Iterable<Tx> | AsyncIterable<Tx>,
74
75
  blockNumber: BlockNumber,
75
76
  timestamp: bigint,
76
- opts: PublicProcessorLimits,
77
+ opts: BlockBuilderOptions,
77
78
  ): Promise<BuildBlockInCheckpointResult> {
78
79
  this.buildBlockCalls.push({ blockNumber, timestamp, opts });
79
80
 
80
81
  if (this.errorOnBuild) {
81
- return Promise.reject(this.errorOnBuild);
82
+ throw this.errorOnBuild;
82
83
  }
83
84
 
84
- let block: L2BlockNew;
85
+ let block: L2Block;
85
86
  let usedTxs: Tx[];
86
87
 
87
88
  if (this.blockProvider) {
88
- // Dynamic mode: get block from provider
89
- block = this.blockProvider();
89
+ // Dynamic mode: get block from provider, cloning to avoid shared references across multiple buildBlock calls
90
+ block = L2Block.fromBuffer(this.blockProvider().toBuffer());
91
+ block.header.globalVariables.blockNumber = blockNumber;
92
+ await block.header.recomputeHash();
90
93
  usedTxs = [];
91
94
  this.builtBlocks.push(block);
92
95
  } else {
@@ -97,83 +100,94 @@ export class MockCheckpointBuilder implements ICheckpointBlockBuilder {
97
100
  this.builtBlocks.push(block);
98
101
  }
99
102
 
100
- return Promise.resolve({
103
+ // Check that no pending tx has already been consumed
104
+ for await (const tx of pendingTxs) {
105
+ const hash = tx.getTxHash().toString();
106
+ if (this.consumedTxHashes.has(hash)) {
107
+ throw new Error(`Transaction ${hash} was already consumed in a previous block`);
108
+ }
109
+ }
110
+
111
+ // Add used txs to consumed set
112
+ for (const tx of usedTxs) {
113
+ this.consumedTxHashes.add(tx.getTxHash().toString());
114
+ }
115
+
116
+ return {
101
117
  block,
102
- publicGas: Gas.empty(),
103
118
  publicProcessorDuration: 0,
104
119
  numTxs: block?.body?.txEffects?.length ?? usedTxs.length,
105
- blockBuildingTimer: new Timer(),
106
120
  usedTxs,
107
121
  failedTxs: [],
108
- usedTxBlobFields: block?.body?.txEffects?.reduce((sum, tx) => sum + tx.getNumBlobFields(), 0) ?? 0,
109
- });
122
+ };
110
123
  }
111
124
 
112
125
  completeCheckpoint(): Promise<Checkpoint> {
113
126
  this.completeCheckpointCalled = true;
114
127
  const allBlocks = this.blockProvider ? this.builtBlocks : this.blocks;
115
- const lastBlock = allBlocks[allBlocks.length - 1];
116
- // Create a CheckpointHeader from the last block's header for testing
117
- const checkpointHeader = this.createCheckpointHeader(lastBlock);
118
- return Promise.resolve(
119
- new Checkpoint(
120
- makeAppendOnlyTreeSnapshot(lastBlock.header.globalVariables.blockNumber + 1),
121
- checkpointHeader,
122
- allBlocks,
123
- this.checkpointNumber,
124
- ),
125
- );
128
+ return this.buildCheckpoint(allBlocks);
126
129
  }
127
130
 
128
131
  getCheckpoint(): Promise<Checkpoint> {
129
132
  this.getCheckpointCalled = true;
130
133
  const builtBlocks = this.blockProvider ? this.builtBlocks : this.blocks.slice(0, this.blockIndex);
131
- const lastBlock = builtBlocks[builtBlocks.length - 1];
132
- if (!lastBlock) {
134
+ if (builtBlocks.length === 0) {
133
135
  throw new Error('No blocks built yet');
134
136
  }
135
- // Create a CheckpointHeader from the last block's header for testing
136
- const checkpointHeader = this.createCheckpointHeader(lastBlock);
137
- return Promise.resolve(
138
- new Checkpoint(
139
- makeAppendOnlyTreeSnapshot(lastBlock.header.globalVariables.blockNumber + 1),
140
- checkpointHeader,
141
- builtBlocks,
142
- this.checkpointNumber,
143
- ),
144
- );
137
+ return this.buildCheckpoint(builtBlocks);
145
138
  }
146
139
 
147
- /**
148
- * Creates a CheckpointHeader from a block's header for testing.
149
- * This is a simplified version that creates a minimal CheckpointHeader.
150
- */
151
- private createCheckpointHeader(block: L2BlockNew): CheckpointHeader {
152
- const header = block.header;
153
- const gv = header.globalVariables;
154
- return CheckpointHeader.empty({
155
- lastArchiveRoot: header.lastArchive.root,
156
- blockHeadersHash: Fr.random(), // Use random for testing
140
+ /** Builds a structurally valid Checkpoint from a list of blocks, fixing up indexes and archive chaining. */
141
+ private async buildCheckpoint(blocks: L2Block[]): Promise<Checkpoint> {
142
+ // Fix up indexWithinCheckpoint and archive chaining so the checkpoint passes structural validation.
143
+ for (let i = 0; i < blocks.length; i++) {
144
+ blocks[i].indexWithinCheckpoint = IndexWithinCheckpoint(i);
145
+ if (i > 0) {
146
+ unfreeze(blocks[i].header).lastArchive = blocks[i - 1].archive;
147
+ await blocks[i].header.recomputeHash();
148
+ }
149
+ }
150
+
151
+ const firstBlock = blocks[0];
152
+ const lastBlock = blocks[blocks.length - 1];
153
+ const gv = firstBlock.header.globalVariables;
154
+
155
+ const checkpointHeader = CheckpointHeader.empty({
156
+ lastArchiveRoot: firstBlock.header.lastArchive.root,
157
+ blockHeadersHash: Fr.random(),
157
158
  slotNumber: gv.slotNumber,
158
159
  timestamp: gv.timestamp,
159
160
  coinbase: gv.coinbase,
160
161
  feeRecipient: gv.feeRecipient,
161
162
  gasFees: gv.gasFees,
162
- totalManaUsed: header.totalManaUsed,
163
+ totalManaUsed: lastBlock.header.totalManaUsed,
163
164
  });
165
+
166
+ return new Checkpoint(
167
+ makeAppendOnlyTreeSnapshot(lastBlock.header.globalVariables.blockNumber + 1),
168
+ checkpointHeader,
169
+ blocks,
170
+ this.checkpointNumber,
171
+ );
172
+ }
173
+
174
+ /** Resets per-checkpoint state (built blocks, consumed txs) while preserving config (blockProvider, seeded blocks). */
175
+ resetCheckpointState(): void {
176
+ this.builtBlocks = [];
177
+ this.blockIndex = 0;
178
+ this.consumedTxHashes.clear();
179
+ this.completeCheckpointCalled = false;
180
+ this.getCheckpointCalled = false;
164
181
  }
165
182
 
166
183
  /** Reset for reuse in another test */
167
184
  reset(): void {
168
185
  this.blocks = [];
169
- this.builtBlocks = [];
170
186
  this.usedTxsPerBlock = [];
171
- this.blockIndex = 0;
172
187
  this.buildBlockCalls = [];
173
- this.completeCheckpointCalled = false;
174
- this.getCheckpointCalled = false;
175
188
  this.errorOnBuild = undefined;
176
189
  this.blockProvider = undefined;
190
+ this.resetCheckpointState();
177
191
  }
178
192
  }
179
193
 
@@ -191,13 +205,15 @@ export class MockCheckpointsBuilder implements ICheckpointsBuilder {
191
205
  constants: CheckpointGlobalVariables;
192
206
  l1ToL2Messages: Fr[];
193
207
  previousCheckpointOutHashes: Fr[];
208
+ feeAssetPriceModifier: bigint;
194
209
  }> = [];
195
210
  public openCheckpointCalls: Array<{
196
211
  checkpointNumber: CheckpointNumber;
197
212
  constants: CheckpointGlobalVariables;
198
213
  l1ToL2Messages: Fr[];
199
214
  previousCheckpointOutHashes: Fr[];
200
- existingBlocks: L2BlockNew[];
215
+ existingBlocks: L2Block[];
216
+ feeAssetPriceModifier: bigint;
201
217
  }> = [];
202
218
  public updateConfigCalls: Array<Partial<FullNodeBlockBuilderConfig>> = [];
203
219
 
@@ -233,6 +249,7 @@ export class MockCheckpointsBuilder implements ICheckpointsBuilder {
233
249
  slotDuration: 24,
234
250
  l1ChainId: 1,
235
251
  rollupVersion: 1,
252
+ rollupManaLimit: 200_000_000,
236
253
  };
237
254
  }
238
255
 
@@ -243,15 +260,24 @@ export class MockCheckpointsBuilder implements ICheckpointsBuilder {
243
260
  startCheckpoint(
244
261
  checkpointNumber: CheckpointNumber,
245
262
  constants: CheckpointGlobalVariables,
263
+ feeAssetPriceModifier: bigint,
246
264
  l1ToL2Messages: Fr[],
247
265
  previousCheckpointOutHashes: Fr[],
248
266
  _fork: MerkleTreeWriteOperations,
249
267
  ): Promise<ICheckpointBlockBuilder> {
250
- this.startCheckpointCalls.push({ checkpointNumber, constants, l1ToL2Messages, previousCheckpointOutHashes });
268
+ this.startCheckpointCalls.push({
269
+ checkpointNumber,
270
+ constants,
271
+ l1ToL2Messages,
272
+ previousCheckpointOutHashes,
273
+ feeAssetPriceModifier,
274
+ });
251
275
 
252
276
  if (!this.checkpointBuilder) {
253
277
  // Auto-create a builder if none was set
254
278
  this.checkpointBuilder = new MockCheckpointBuilder(constants, checkpointNumber);
279
+ } else {
280
+ this.checkpointBuilder.resetCheckpointState();
255
281
  }
256
282
 
257
283
  return Promise.resolve(this.checkpointBuilder);
@@ -260,10 +286,11 @@ export class MockCheckpointsBuilder implements ICheckpointsBuilder {
260
286
  openCheckpoint(
261
287
  checkpointNumber: CheckpointNumber,
262
288
  constants: CheckpointGlobalVariables,
289
+ feeAssetPriceModifier: bigint,
263
290
  l1ToL2Messages: Fr[],
264
291
  previousCheckpointOutHashes: Fr[],
265
292
  _fork: MerkleTreeWriteOperations,
266
- existingBlocks: L2BlockNew[] = [],
293
+ existingBlocks: L2Block[] = [],
267
294
  ): Promise<ICheckpointBlockBuilder> {
268
295
  this.openCheckpointCalls.push({
269
296
  checkpointNumber,
@@ -271,6 +298,7 @@ export class MockCheckpointsBuilder implements ICheckpointsBuilder {
271
298
  l1ToL2Messages,
272
299
  previousCheckpointOutHashes,
273
300
  existingBlocks,
301
+ feeAssetPriceModifier,
274
302
  });
275
303
 
276
304
  if (!this.checkpointBuilder) {
package/src/test/utils.ts CHANGED
@@ -7,10 +7,23 @@ import type { EthAddress } from '@aztec/foundation/eth-address';
7
7
  import { Signature } from '@aztec/foundation/eth-signature';
8
8
  import type { P2P } from '@aztec/p2p';
9
9
  import { PublicDataWrite } from '@aztec/stdlib/avm';
10
- import { CommitteeAttestation, L2BlockNew } from '@aztec/stdlib/block';
10
+ import { CommitteeAttestation, L2Block } from '@aztec/stdlib/block';
11
+ import { DEFAULT_BLOCK_DURATION_MS } from '@aztec/stdlib/config';
12
+ import type { L1RollupConstants } from '@aztec/stdlib/epoch-helpers';
11
13
  import { BlockProposal, CheckpointAttestation, CheckpointProposal, ConsensusPayload } from '@aztec/stdlib/p2p';
12
14
  import { CheckpointHeader } from '@aztec/stdlib/rollup';
13
- import { makeAppendOnlyTreeSnapshot, mockTxForRollup } from '@aztec/stdlib/testing';
15
+ import {
16
+ TEST_COORDINATION_SIGNATURE_CONTEXT,
17
+ makeAppendOnlyTreeSnapshot,
18
+ mockTxForRollup,
19
+ } from '@aztec/stdlib/testing';
20
+ import {
21
+ DEFAULT_CHECKPOINT_PROPOSAL_INIT_TIME,
22
+ DEFAULT_CHECKPOINT_PROPOSAL_PREPARE_TIME,
23
+ DEFAULT_MIN_BLOCK_DURATION,
24
+ DEFAULT_P2P_PROPAGATION_TIME,
25
+ ProposerTimetable,
26
+ } from '@aztec/stdlib/timetable';
14
27
  import { BlockHeader, GlobalVariables, type Tx, makeProcessedTxFromPrivateOnlyTx } from '@aztec/stdlib/tx';
15
28
 
16
29
  import type { MockProxy } from 'jest-mock-extended';
@@ -18,6 +31,28 @@ import type { MockProxy } from 'jest-mock-extended';
18
31
  // Re-export mock classes from their dedicated file
19
32
  export { MockCheckpointBuilder, MockCheckpointsBuilder } from './mock_checkpoint_builder.js';
20
33
 
34
+ /**
35
+ * Builds a {@link ProposerTimetable} for tests from a millisecond block duration and optional budgets,
36
+ * filling unset budgets with the shared `DEFAULT_*` values the sequencer config layer applies. Mirrors how
37
+ * the sequencer constructs its timetable so tests exercise the same budget resolution.
38
+ */
39
+ export function makeProposerTimetable(opts: {
40
+ l1Constants: Pick<L1RollupConstants, 'l1GenesisTime' | 'slotDuration' | 'ethereumSlotDuration'>;
41
+ blockDurationMs?: number;
42
+ minBlockDuration?: number;
43
+ p2pPropagationTime?: number;
44
+ checkpointProposalPrepareTime?: number;
45
+ }): ProposerTimetable {
46
+ return new ProposerTimetable({
47
+ l1Constants: opts.l1Constants,
48
+ blockDuration: (opts.blockDurationMs ?? DEFAULT_BLOCK_DURATION_MS) / 1000,
49
+ minBlockDuration: opts.minBlockDuration ?? DEFAULT_MIN_BLOCK_DURATION,
50
+ p2pPropagationTime: opts.p2pPropagationTime ?? DEFAULT_P2P_PROPAGATION_TIME,
51
+ checkpointProposalPrepareTime: opts.checkpointProposalPrepareTime ?? DEFAULT_CHECKPOINT_PROPOSAL_PREPARE_TIME,
52
+ checkpointProposalInitTime: DEFAULT_CHECKPOINT_PROPOSAL_INIT_TIME,
53
+ });
54
+ }
55
+
21
56
  /**
22
57
  * Creates a mock transaction with a specific seed for deterministic testing
23
58
  */
@@ -30,9 +65,9 @@ export async function makeTx(seed?: number, chainId?: Fr): Promise<Tx> {
30
65
  }
31
66
 
32
67
  /**
33
- * Creates an L2BlockNew from transactions and global variables
68
+ * Creates an L2Block from transactions and global variables
34
69
  */
35
- export async function makeBlock(txs: Tx[], globalVariables: GlobalVariables): Promise<L2BlockNew> {
70
+ export async function makeBlock(txs: Tx[], globalVariables: GlobalVariables): Promise<L2Block> {
36
71
  const processedTxs = await Promise.all(
37
72
  txs.map(tx =>
38
73
  makeProcessedTxFromPrivateOnlyTx(tx, Fr.ZERO, new PublicDataWrite(Fr.random(), Fr.random()), globalVariables),
@@ -41,7 +76,13 @@ export async function makeBlock(txs: Tx[], globalVariables: GlobalVariables): Pr
41
76
  const body = new Body(processedTxs.map(tx => tx.txEffect));
42
77
  const header = BlockHeader.empty({ globalVariables });
43
78
  const archive = makeAppendOnlyTreeSnapshot(globalVariables.blockNumber + 1);
44
- return new L2BlockNew(archive, header, body, CheckpointNumber(globalVariables.blockNumber), IndexWithinCheckpoint(0));
79
+ return new L2Block(
80
+ archive,
81
+ header,
82
+ body,
83
+ CheckpointNumber.fromBlockNumber(globalVariables.blockNumber),
84
+ IndexWithinCheckpoint(0),
85
+ );
45
86
  }
46
87
 
47
88
  /**
@@ -49,7 +90,9 @@ export async function makeBlock(txs: Tx[], globalVariables: GlobalVariables): Pr
49
90
  */
50
91
  export function mockPendingTxs(p2p: MockProxy<P2P>, txs: Tx[]): void {
51
92
  p2p.getPendingTxCount.mockResolvedValue(txs.length);
93
+ p2p.hasEligiblePendingTxs.mockImplementation(minCount => Promise.resolve(txs.length >= minCount));
52
94
  p2p.iteratePendingTxs.mockImplementation(() => mockTxIterator(Promise.resolve(txs)));
95
+ p2p.iterateEligiblePendingTxs.mockImplementation(() => mockTxIterator(Promise.resolve(txs)));
53
96
  }
54
97
 
55
98
  /**
@@ -70,10 +113,10 @@ export function createMockSignatures(signer: Secp256k1Signer): CommitteeAttestat
70
113
  }
71
114
 
72
115
  /**
73
- * Creates a CheckpointHeader from an L2BlockNew for testing purposes.
74
- * Uses mock values for blockHeadersHash, blobsHash and inHash since L2BlockNew doesn't have these fields.
116
+ * Creates a CheckpointHeader from an L2Block for testing purposes.
117
+ * Uses mock values for blockHeadersHash, blobsHash and inHash since L2Block doesn't have these fields.
75
118
  */
76
- function createCheckpointHeaderFromBlock(block: L2BlockNew): CheckpointHeader {
119
+ function createCheckpointHeaderFromBlock(block: L2Block): CheckpointHeader {
77
120
  const gv = block.header.globalVariables;
78
121
  return new CheckpointHeader(
79
122
  block.header.lastArchive.root,
@@ -87,13 +130,14 @@ function createCheckpointHeaderFromBlock(block: L2BlockNew): CheckpointHeader {
87
130
  gv.feeRecipient,
88
131
  gv.gasFees,
89
132
  block.header.totalManaUsed,
133
+ block.header.totalFees,
90
134
  );
91
135
  }
92
136
 
93
137
  /**
94
138
  * Creates a block proposal from a block and signature
95
139
  */
96
- export function createBlockProposal(block: L2BlockNew, signature: Signature): BlockProposal {
140
+ export function createBlockProposal(block: L2Block, signature: Signature): BlockProposal {
97
141
  const txHashes = block.body.txEffects.map(tx => tx.txHash);
98
142
  return new BlockProposal(
99
143
  block.header,
@@ -102,6 +146,7 @@ export function createBlockProposal(block: L2BlockNew, signature: Signature): Bl
102
146
  block.archive.root,
103
147
  txHashes,
104
148
  signature,
149
+ TEST_COORDINATION_SIGNATURE_CONTEXT,
105
150
  );
106
151
  }
107
152
 
@@ -109,18 +154,26 @@ export function createBlockProposal(block: L2BlockNew, signature: Signature): Bl
109
154
  * Creates a checkpoint proposal from a block and signature
110
155
  */
111
156
  export function createCheckpointProposal(
112
- block: L2BlockNew,
157
+ block: L2Block,
113
158
  checkpointSignature: Signature,
114
159
  blockSignature?: Signature,
160
+ feeAssetPriceModifier: bigint = 0n,
115
161
  ): CheckpointProposal {
116
162
  const txHashes = block.body.txEffects.map(tx => tx.txHash);
117
163
  const checkpointHeader = createCheckpointHeaderFromBlock(block);
118
- return new CheckpointProposal(checkpointHeader, block.archive.root, checkpointSignature, {
119
- blockHeader: block.header,
120
- indexWithinCheckpoint: block.indexWithinCheckpoint,
121
- txHashes,
122
- signature: blockSignature ?? checkpointSignature, // Use checkpoint signature as block signature if not provided
123
- });
164
+ return new CheckpointProposal(
165
+ checkpointHeader,
166
+ block.archive.root,
167
+ feeAssetPriceModifier,
168
+ checkpointSignature,
169
+ TEST_COORDINATION_SIGNATURE_CONTEXT,
170
+ {
171
+ blockHeader: block.header,
172
+ indexWithinCheckpoint: block.indexWithinCheckpoint,
173
+ txHashes,
174
+ signature: blockSignature ?? checkpointSignature, // Use checkpoint signature as block signature if not provided
175
+ },
176
+ );
124
177
  }
125
178
 
126
179
  /**
@@ -129,15 +182,22 @@ export function createCheckpointProposal(
129
182
  * In production, the sender is recovered from the signature.
130
183
  */
131
184
  export function createCheckpointAttestation(
132
- block: L2BlockNew,
185
+ block: L2Block,
133
186
  signature: Signature,
134
187
  sender: EthAddress,
188
+ feeAssetPriceModifier: bigint = 0n,
135
189
  ): CheckpointAttestation {
136
190
  const checkpointHeader = createCheckpointHeaderFromBlock(block);
137
- const payload = new ConsensusPayload(checkpointHeader, block.archive.root);
191
+ const payload = new ConsensusPayload(
192
+ checkpointHeader,
193
+ block.archive.root,
194
+ feeAssetPriceModifier,
195
+ TEST_COORDINATION_SIGNATURE_CONTEXT,
196
+ );
138
197
  const attestation = new CheckpointAttestation(payload, signature, signature);
139
- // Set sender directly for testing (bypasses signature recovery)
140
- (attestation as any).sender = sender;
198
+ // Bypass signature recovery for testing since we use random signatures
199
+ (attestation as any).getSender = () => sender;
200
+ (attestation as any).getProposer = () => sender;
141
201
  return attestation;
142
202
  }
143
203
 
@@ -150,7 +210,7 @@ export async function setupTxsAndBlock(
150
210
  globalVariables: GlobalVariables,
151
211
  txCount: number,
152
212
  chainId: Fr,
153
- ): Promise<{ txs: Tx[]; block: L2BlockNew }> {
213
+ ): Promise<{ txs: Tx[]; block: L2Block }> {
154
214
  const txs = await Promise.all(times(txCount, i => makeTx(i + 1, chainId)));
155
215
  const block = await makeBlock(txs, globalVariables);
156
216
  mockPendingTxs(p2p, txs);
@@ -1,90 +0,0 @@
1
- import type { SequencerMetrics } from './metrics.js';
2
- import { SequencerState } from './utils.js';
3
- export declare const MIN_EXECUTION_TIME = 2;
4
- export declare const CHECKPOINT_INITIALIZATION_TIME = 1;
5
- export declare const CHECKPOINT_ASSEMBLE_TIME = 1;
6
- export declare class SequencerTimetable {
7
- private readonly metrics?;
8
- private readonly log;
9
- /**
10
- * How late into the slot can we be to start working. Computed as the total time needed for assembling and publishing a block,
11
- * assuming an execution time equal to `minExecutionTime`, subtracted from the slot duration. This means that, if the proposer
12
- * starts building at this time, and all times hold, it will have at least `minExecutionTime` to execute txs for the block.
13
- */
14
- readonly initializeDeadline: number;
15
- /**
16
- * Fixed time offset (in seconds) when the first sub-slot starts, used as baseline for all block deadlines.
17
- * This is an estimate of how long initialization (sync + proposer check) typically takes.
18
- * If actual initialization takes longer/shorter, blocks just get less/more time accordingly.
19
- */
20
- readonly initializationOffset: number;
21
- /**
22
- * Total time needed to finalize and publish a checkpoint, including:
23
- * - Assembling the checkpoint
24
- * - Round-trip p2p propagation for the checkpoint proposal and its corresponding attestations
25
- * - Publishing to L1
26
- */
27
- readonly checkpointFinalizationTime: number;
28
- /**
29
- * How long it takes to get a published block into L1. L1 builders typically accept txs up to 4 seconds into their slot,
30
- * but we'll timeout sooner to give it more time to propagate (remember we also have blobs!). Still, when working in anvil,
31
- * we can just post in the very last second of the L1 slot and still expect the tx to be accepted.
32
- */
33
- readonly l1PublishingTime: number;
34
- /**
35
- * What's the minimum time we want to leave available for execution and reexecution (used to derive init deadline)
36
- * Defaults to half of the block duration if set, otherwise a constant.
37
- */
38
- readonly minExecutionTime: number;
39
- /** How long it takes to get ready to start building */
40
- readonly checkpointInitializationTime: number;
41
- /** How long it takes to for proposals and attestations to travel across the p2p layer (one-way) */
42
- readonly p2pPropagationTime: number;
43
- /** How much time we spend assembling a checkpoint after building the last block */
44
- readonly checkpointAssembleTime: number;
45
- /** Ethereum slot duration in seconds */
46
- readonly ethereumSlotDuration: number;
47
- /** Aztec slot duration in seconds (must be multiple of ethereum slot duration) */
48
- readonly aztecSlotDuration: number;
49
- /** Whether assertTimeLeft will throw if not enough time. */
50
- readonly enforce: boolean;
51
- /** Duration per block when building multiple blocks per slot (undefined = single block per slot) */
52
- readonly blockDuration: number | undefined;
53
- /** Maximum number of blocks that can be built in this slot configuration */
54
- readonly maxNumberOfBlocks: number;
55
- constructor(opts: {
56
- ethereumSlotDuration: number;
57
- aztecSlotDuration: number;
58
- l1PublishingTime: number;
59
- p2pPropagationTime?: number;
60
- blockDurationMs?: number;
61
- enforce: boolean;
62
- }, metrics?: SequencerMetrics | undefined, log?: import("@aztec/aztec.js/log").Logger);
63
- getMaxAllowedTime(state: Extract<SequencerState, SequencerState.STOPPED | SequencerState.IDLE | SequencerState.SYNCHRONIZING>): undefined;
64
- getMaxAllowedTime(state: Exclude<SequencerState, SequencerState.STOPPED | SequencerState.IDLE | SequencerState.SYNCHRONIZING>): number;
65
- getMaxAllowedTime(state: SequencerState): number | undefined;
66
- assertTimeLeft(newState: SequencerState, secondsIntoSlot: number): void;
67
- /**
68
- * Determines if we can start building the next block and returns its deadline.
69
- *
70
- * The timetable divides the slot into fixed sub-slots. This method finds the next
71
- * available sub-slot that has enough time remaining to build a block.
72
- *
73
- * @param secondsIntoSlot - Current time (seconds into the slot)
74
- * @returns Object with canStart flag, deadline, and whether this is the last block
75
- */
76
- canStartNextBlock(secondsIntoSlot: number): {
77
- canStart: true;
78
- deadline: undefined;
79
- isLastBlock: true;
80
- } | {
81
- canStart: false;
82
- deadline: undefined;
83
- isLastBlock: false;
84
- } | {
85
- canStart: boolean;
86
- deadline: number;
87
- isLastBlock: boolean;
88
- };
89
- }
90
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXRhYmxlLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2VxdWVuY2VyL3RpbWV0YWJsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJQSxPQUFPLEtBQUssRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUNyRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBRTVDLGVBQU8sTUFBTSxrQkFBa0IsSUFBSSxDQUFDO0FBQ3BDLGVBQU8sTUFBTSw4QkFBOEIsSUFBSSxDQUFDO0FBQ2hELGVBQU8sTUFBTSx3QkFBd0IsSUFBSSxDQUFDO0FBRTFDLHFCQUFhLGtCQUFrQjtJQ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