@aztec/sequencer-client 0.0.0-test.1 → 0.0.1-commit.017a351

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 (185) hide show
  1. package/README.md +281 -21
  2. package/dest/client/index.d.ts +1 -1
  3. package/dest/client/sequencer-client.d.ts +43 -33
  4. package/dest/client/sequencer-client.d.ts.map +1 -1
  5. package/dest/client/sequencer-client.js +117 -62
  6. package/dest/config.d.ts +38 -17
  7. package/dest/config.d.ts.map +1 -1
  8. package/dest/config.js +172 -85
  9. package/dest/global_variable_builder/fee_predictor.d.ts +37 -0
  10. package/dest/global_variable_builder/fee_predictor.d.ts.map +1 -0
  11. package/dest/global_variable_builder/fee_predictor.js +128 -0
  12. package/dest/global_variable_builder/fee_provider.d.ts +21 -0
  13. package/dest/global_variable_builder/fee_provider.d.ts.map +1 -0
  14. package/dest/global_variable_builder/fee_provider.js +58 -0
  15. package/dest/global_variable_builder/global_builder.d.ts +26 -17
  16. package/dest/global_variable_builder/global_builder.d.ts.map +1 -1
  17. package/dest/global_variable_builder/global_builder.js +45 -61
  18. package/dest/global_variable_builder/index.d.ts +4 -2
  19. package/dest/global_variable_builder/index.d.ts.map +1 -1
  20. package/dest/global_variable_builder/index.js +2 -0
  21. package/dest/index.d.ts +2 -4
  22. package/dest/index.d.ts.map +1 -1
  23. package/dest/index.js +1 -3
  24. package/dest/publisher/config.d.ts +60 -27
  25. package/dest/publisher/config.d.ts.map +1 -1
  26. package/dest/publisher/config.js +124 -32
  27. package/dest/publisher/index.d.ts +4 -1
  28. package/dest/publisher/index.d.ts.map +1 -1
  29. package/dest/publisher/index.js +3 -0
  30. package/dest/publisher/l1_tx_failed_store/factory.d.ts +11 -0
  31. package/dest/publisher/l1_tx_failed_store/factory.d.ts.map +1 -0
  32. package/dest/publisher/l1_tx_failed_store/factory.js +22 -0
  33. package/dest/publisher/l1_tx_failed_store/failed_tx_store.d.ts +58 -0
  34. package/dest/publisher/l1_tx_failed_store/failed_tx_store.d.ts.map +1 -0
  35. package/dest/publisher/l1_tx_failed_store/failed_tx_store.js +1 -0
  36. package/dest/publisher/l1_tx_failed_store/file_store_failed_tx_store.d.ts +15 -0
  37. package/dest/publisher/l1_tx_failed_store/file_store_failed_tx_store.d.ts.map +1 -0
  38. package/dest/publisher/l1_tx_failed_store/file_store_failed_tx_store.js +34 -0
  39. package/dest/publisher/l1_tx_failed_store/index.d.ts +4 -0
  40. package/dest/publisher/l1_tx_failed_store/index.d.ts.map +1 -0
  41. package/dest/publisher/l1_tx_failed_store/index.js +2 -0
  42. package/dest/publisher/sequencer-bundle-simulator.d.ts +96 -0
  43. package/dest/publisher/sequencer-bundle-simulator.d.ts.map +1 -0
  44. package/dest/publisher/sequencer-bundle-simulator.js +198 -0
  45. package/dest/publisher/sequencer-publisher-factory.d.ts +50 -0
  46. package/dest/publisher/sequencer-publisher-factory.d.ts.map +1 -0
  47. package/dest/publisher/sequencer-publisher-factory.js +75 -0
  48. package/dest/publisher/sequencer-publisher-metrics.d.ts +5 -4
  49. package/dest/publisher/sequencer-publisher-metrics.d.ts.map +1 -1
  50. package/dest/publisher/sequencer-publisher-metrics.js +34 -62
  51. package/dest/publisher/sequencer-publisher.d.ts +170 -97
  52. package/dest/publisher/sequencer-publisher.d.ts.map +1 -1
  53. package/dest/publisher/sequencer-publisher.js +1255 -276
  54. package/dest/sequencer/automine/automine_factory.d.ts +54 -0
  55. package/dest/sequencer/automine/automine_factory.d.ts.map +1 -0
  56. package/dest/sequencer/automine/automine_factory.js +84 -0
  57. package/dest/sequencer/automine/automine_sequencer.d.ts +151 -0
  58. package/dest/sequencer/automine/automine_sequencer.d.ts.map +1 -0
  59. package/dest/sequencer/automine/automine_sequencer.js +509 -0
  60. package/dest/sequencer/chain_state_overrides.d.ts +61 -0
  61. package/dest/sequencer/chain_state_overrides.d.ts.map +1 -0
  62. package/dest/sequencer/chain_state_overrides.js +98 -0
  63. package/dest/sequencer/checkpoint_proposal_job.d.ts +150 -0
  64. package/dest/sequencer/checkpoint_proposal_job.d.ts.map +1 -0
  65. package/dest/sequencer/checkpoint_proposal_job.js +1792 -0
  66. package/dest/sequencer/checkpoint_proposal_job_metrics.d.ts +34 -0
  67. package/dest/sequencer/checkpoint_proposal_job_metrics.d.ts.map +1 -0
  68. package/dest/sequencer/checkpoint_proposal_job_metrics.js +72 -0
  69. package/dest/sequencer/checkpoint_voter.d.ts +34 -0
  70. package/dest/sequencer/checkpoint_voter.d.ts.map +1 -0
  71. package/dest/sequencer/checkpoint_voter.js +106 -0
  72. package/dest/sequencer/config.d.ts +7 -1
  73. package/dest/sequencer/config.d.ts.map +1 -1
  74. package/dest/sequencer/errors.d.ts +11 -0
  75. package/dest/sequencer/errors.d.ts.map +1 -0
  76. package/dest/sequencer/errors.js +15 -0
  77. package/dest/sequencer/events.d.ts +92 -0
  78. package/dest/sequencer/events.d.ts.map +1 -0
  79. package/dest/sequencer/events.js +1 -0
  80. package/dest/sequencer/index.d.ts +6 -2
  81. package/dest/sequencer/index.d.ts.map +1 -1
  82. package/dest/sequencer/index.js +5 -1
  83. package/dest/sequencer/metrics.d.ts +64 -13
  84. package/dest/sequencer/metrics.d.ts.map +1 -1
  85. package/dest/sequencer/metrics.js +309 -68
  86. package/dest/sequencer/sequencer.d.ts +205 -135
  87. package/dest/sequencer/sequencer.d.ts.map +1 -1
  88. package/dest/sequencer/sequencer.js +1208 -523
  89. package/dest/sequencer/timetable.d.ts +85 -25
  90. package/dest/sequencer/timetable.d.ts.map +1 -1
  91. package/dest/sequencer/timetable.js +177 -60
  92. package/dest/sequencer/types.d.ts +3 -0
  93. package/dest/sequencer/types.d.ts.map +1 -0
  94. package/dest/sequencer/types.js +1 -0
  95. package/dest/sequencer/utils.d.ts +20 -38
  96. package/dest/sequencer/utils.d.ts.map +1 -1
  97. package/dest/sequencer/utils.js +12 -47
  98. package/dest/test/index.d.ts +9 -3
  99. package/dest/test/index.d.ts.map +1 -1
  100. package/dest/test/index.js +0 -4
  101. package/dest/test/mock_checkpoint_builder.d.ts +95 -0
  102. package/dest/test/mock_checkpoint_builder.d.ts.map +1 -0
  103. package/dest/test/mock_checkpoint_builder.js +231 -0
  104. package/dest/test/utils.d.ts +53 -0
  105. package/dest/test/utils.d.ts.map +1 -0
  106. package/dest/test/utils.js +105 -0
  107. package/package.json +46 -45
  108. package/src/client/sequencer-client.ts +158 -103
  109. package/src/config.ts +201 -99
  110. package/src/global_variable_builder/README.md +44 -0
  111. package/src/global_variable_builder/fee_predictor.ts +172 -0
  112. package/src/global_variable_builder/fee_provider.ts +75 -0
  113. package/src/global_variable_builder/global_builder.ts +68 -76
  114. package/src/global_variable_builder/index.ts +3 -1
  115. package/src/index.ts +10 -3
  116. package/src/publisher/config.ts +184 -59
  117. package/src/publisher/index.ts +7 -0
  118. package/src/publisher/l1_tx_failed_store/factory.ts +32 -0
  119. package/src/publisher/l1_tx_failed_store/failed_tx_store.ts +57 -0
  120. package/src/publisher/l1_tx_failed_store/file_store_failed_tx_store.ts +46 -0
  121. package/src/publisher/l1_tx_failed_store/index.ts +3 -0
  122. package/src/publisher/sequencer-bundle-simulator.ts +254 -0
  123. package/src/publisher/sequencer-publisher-factory.ts +121 -0
  124. package/src/publisher/sequencer-publisher-metrics.ts +33 -63
  125. package/src/publisher/sequencer-publisher.ts +1101 -350
  126. package/src/sequencer/README.md +243 -0
  127. package/src/sequencer/automine/README.md +46 -0
  128. package/src/sequencer/automine/automine_factory.ts +145 -0
  129. package/src/sequencer/automine/automine_sequencer.ts +595 -0
  130. package/src/sequencer/chain_state_overrides.ts +162 -0
  131. package/src/sequencer/checkpoint_proposal_job.ts +1632 -0
  132. package/src/sequencer/checkpoint_proposal_job_metrics.ts +128 -0
  133. package/src/sequencer/checkpoint_voter.ts +119 -0
  134. package/src/sequencer/config.ts +8 -0
  135. package/src/sequencer/errors.ts +21 -0
  136. package/src/sequencer/events.ts +76 -0
  137. package/src/sequencer/index.ts +5 -1
  138. package/src/sequencer/metrics.ts +397 -75
  139. package/src/sequencer/sequencer.ts +1013 -579
  140. package/src/sequencer/timetable.ts +225 -60
  141. package/src/sequencer/types.ts +6 -0
  142. package/src/sequencer/utils.ts +28 -60
  143. package/src/test/index.ts +11 -5
  144. package/src/test/mock_checkpoint_builder.ts +323 -0
  145. package/src/test/utils.ts +185 -0
  146. package/dest/sequencer/allowed.d.ts +0 -3
  147. package/dest/sequencer/allowed.d.ts.map +0 -1
  148. package/dest/sequencer/allowed.js +0 -27
  149. package/dest/slasher/factory.d.ts +0 -7
  150. package/dest/slasher/factory.d.ts.map +0 -1
  151. package/dest/slasher/factory.js +0 -8
  152. package/dest/slasher/index.d.ts +0 -3
  153. package/dest/slasher/index.d.ts.map +0 -1
  154. package/dest/slasher/index.js +0 -2
  155. package/dest/slasher/slasher_client.d.ts +0 -75
  156. package/dest/slasher/slasher_client.d.ts.map +0 -1
  157. package/dest/slasher/slasher_client.js +0 -132
  158. package/dest/tx_validator/archive_cache.d.ts +0 -14
  159. package/dest/tx_validator/archive_cache.d.ts.map +0 -1
  160. package/dest/tx_validator/archive_cache.js +0 -22
  161. package/dest/tx_validator/gas_validator.d.ts +0 -14
  162. package/dest/tx_validator/gas_validator.d.ts.map +0 -1
  163. package/dest/tx_validator/gas_validator.js +0 -78
  164. package/dest/tx_validator/nullifier_cache.d.ts +0 -16
  165. package/dest/tx_validator/nullifier_cache.d.ts.map +0 -1
  166. package/dest/tx_validator/nullifier_cache.js +0 -24
  167. package/dest/tx_validator/phases_validator.d.ts +0 -12
  168. package/dest/tx_validator/phases_validator.d.ts.map +0 -1
  169. package/dest/tx_validator/phases_validator.js +0 -80
  170. package/dest/tx_validator/test_utils.d.ts +0 -23
  171. package/dest/tx_validator/test_utils.d.ts.map +0 -1
  172. package/dest/tx_validator/test_utils.js +0 -26
  173. package/dest/tx_validator/tx_validator_factory.d.ts +0 -18
  174. package/dest/tx_validator/tx_validator_factory.d.ts.map +0 -1
  175. package/dest/tx_validator/tx_validator_factory.js +0 -50
  176. package/src/sequencer/allowed.ts +0 -36
  177. package/src/slasher/factory.ts +0 -15
  178. package/src/slasher/index.ts +0 -2
  179. package/src/slasher/slasher_client.ts +0 -193
  180. package/src/tx_validator/archive_cache.ts +0 -28
  181. package/src/tx_validator/gas_validator.ts +0 -101
  182. package/src/tx_validator/nullifier_cache.ts +0 -30
  183. package/src/tx_validator/phases_validator.ts +0 -98
  184. package/src/tx_validator/test_utils.ts +0 -48
  185. package/src/tx_validator/tx_validator_factory.ts +0 -120
@@ -1,38 +1,98 @@
1
+ import type { Logger } from '@aztec/foundation/log';
1
2
  import type { SequencerMetrics } from './metrics.js';
2
3
  import { SequencerState } from './utils.js';
3
4
  export declare class SequencerTimetable {
4
- private readonly ethereumSlotDuration;
5
- private readonly aztecSlotDuration;
6
- private readonly maxL1TxInclusionTimeIntoSlot;
7
- private readonly enforce;
8
5
  private readonly metrics?;
9
- private readonly log;
10
- /** How late into the slot can we be to start working */
11
- readonly initialTime = 3;
12
- /** How long it takes to get ready to start building */
13
- readonly blockPrepareTime = 1;
14
- /** How long it takes to for proposals and attestations to travel across the p2p layer (one-way) */
15
- readonly attestationPropagationTime = 2;
16
- /** How much time we spend validating and processing a block after building it, and assembling the proposal to send to attestors */
17
- readonly blockValidationTime = 1;
6
+ private readonly log?;
7
+ private readonly checkpointTiming;
8
+ /**
9
+ * How late into the slot can we be to start working. Computed as the total time needed for assembling and publishing a block,
10
+ * assuming an execution time equal to `minExecutionTime`, subtracted from the slot duration. This means that, if the proposer
11
+ * starts building at this time, and all times hold, it will have at least `minExecutionTime` to execute txs for the block.
12
+ */
13
+ readonly initializeDeadline: number;
14
+ /**
15
+ * Fixed time offset (in seconds) when the first sub-slot starts, used as baseline for all block deadlines.
16
+ * This is an estimate of how long initialization (sync + proposer check) typically takes.
17
+ * If actual initialization takes longer/shorter, blocks just get less/more time accordingly.
18
+ */
19
+ readonly initializationOffset: number;
20
+ /**
21
+ * Total time needed to finalize and publish a checkpoint, including:
22
+ * - Assembling the checkpoint
23
+ * - Round-trip p2p propagation for the checkpoint proposal and its corresponding attestations
24
+ * - Publishing to L1
25
+ */
26
+ readonly checkpointFinalizationTime: number;
18
27
  /**
19
28
  * How long it takes to get a published block into L1. L1 builders typically accept txs up to 4 seconds into their slot,
20
29
  * but we'll timeout sooner to give it more time to propagate (remember we also have blobs!). Still, when working in anvil,
21
30
  * we can just post in the very last second of the L1 slot and still expect the tx to be accepted.
22
31
  */
23
32
  readonly l1PublishingTime: number;
24
- constructor(ethereumSlotDuration: number, aztecSlotDuration: number, maxL1TxInclusionTimeIntoSlot: number, enforce?: boolean, metrics?: SequencerMetrics | undefined, log?: import("@aztec/aztec.js").Logger);
25
- private get afterBlockBuildingTimeNeededWithoutReexec();
26
- getBlockProposalExecTimeEnd(secondsIntoSlot: number): number;
27
- private get afterBlockReexecTimeNeeded();
28
- getValidatorReexecTimeEnd(secondsIntoSlot: number): number;
33
+ /**
34
+ * What's the minimum time we want to leave available for execution and reexecution (used to derive init deadline)
35
+ * Defaults to half of the block duration if set, otherwise a constant.
36
+ */
37
+ readonly minExecutionTime: number;
38
+ /** How long it takes to get ready to start building */
39
+ readonly checkpointInitializationTime: number;
40
+ /** How long it takes to for proposals and attestations to travel across the p2p layer (one-way) */
41
+ readonly p2pPropagationTime: number;
42
+ /** How much time we spend assembling a checkpoint after building the last block */
43
+ readonly checkpointAssembleTime: number;
44
+ /** Ethereum slot duration in seconds */
45
+ readonly ethereumSlotDuration: number;
46
+ /** Aztec slot duration in seconds (must be multiple of ethereum slot duration) */
47
+ readonly aztecSlotDuration: number;
48
+ /** Whether assertTimeLeft will throw if not enough time. */
49
+ readonly enforce: boolean;
50
+ /** Duration per block when building multiple blocks per slot (undefined = single block per slot) */
51
+ readonly blockDuration: number | undefined;
52
+ /** Maximum number of blocks that can be built in this slot configuration */
53
+ readonly maxNumberOfBlocks: number;
54
+ /**
55
+ * How far into the target slot assembly and attestation collection can start when pipelining.
56
+ * Production-like timing keeps this at zero; fast local publishing profiles can use the attestation window.
57
+ */
58
+ readonly pipeliningAttestationGracePeriod: number;
59
+ constructor(opts: {
60
+ ethereumSlotDuration: number;
61
+ aztecSlotDuration: number;
62
+ l1PublishingTime: number;
63
+ p2pPropagationTime?: number;
64
+ blockDurationMs?: number;
65
+ enforce: boolean;
66
+ }, metrics?: SequencerMetrics | undefined, log?: Logger | undefined);
67
+ getCheckpointAssemblyDeadline(): number;
68
+ getCheckpointAttestationDeadline(): number;
69
+ getCheckpointAttestationStartDeadline(): number;
70
+ getCheckpointPublishingDeadline(): number;
71
+ getMaxAllowedTime(state: Extract<SequencerState, SequencerState.STOPPED | SequencerState.IDLE | SequencerState.SYNCHRONIZING>): undefined;
72
+ getMaxAllowedTime(state: Exclude<SequencerState, SequencerState.STOPPED | SequencerState.IDLE | SequencerState.SYNCHRONIZING>): number;
29
73
  getMaxAllowedTime(state: SequencerState): number | undefined;
30
74
  assertTimeLeft(newState: SequencerState, secondsIntoSlot: number): void;
75
+ /**
76
+ * Determines if we can start building the next block and returns its deadline.
77
+ *
78
+ * The timetable divides the slot into fixed sub-slots. This method finds the next
79
+ * available sub-slot that has enough time remaining to build a block.
80
+ *
81
+ * @param secondsIntoSlot - Current time (seconds into the slot)
82
+ * @returns Object with canStart flag, deadline, and whether this is the last block
83
+ */
84
+ canStartNextBlock(secondsIntoSlot: number): {
85
+ canStart: true;
86
+ deadline: undefined;
87
+ isLastBlock: true;
88
+ } | {
89
+ canStart: false;
90
+ deadline: undefined;
91
+ isLastBlock: false;
92
+ } | {
93
+ canStart: boolean;
94
+ deadline: number;
95
+ isLastBlock: boolean;
96
+ };
31
97
  }
32
- export declare class SequencerTooSlowError extends Error {
33
- readonly proposedState: SequencerState;
34
- readonly maxAllowedTime: number;
35
- readonly currentTime: number;
36
- constructor(proposedState: SequencerState, maxAllowedTime: number, currentTime: number);
37
- }
38
- //# sourceMappingURL=timetable.d.ts.map
98
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid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AM,CAEhD;IAEM,qCAAqC,IAAI,MAAM,CAErD;IAEM,+BAA+B,IAAI,MAAM,CAE/C;IAEM,iBAAiB,CACtB,KAAK,EAAE,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,OAAO,GAAG,cAAc,CAAC,IAAI,GAAG,cAAc,CAAC,aAAa,CAAC,GAC1G,SAAS,CAAC;IACN,iBAAiB,CACtB,KAAK,EAAE,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,OAAO,GAAG,cAAc,CAAC,IAAI,GAAG,cAAc,CAAC,aAAa,CAAC,GAC1G,MAAM,CAAC;IACH,iBAAiB,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,GAAG,SAAS,CAAC;IA4B7D,cAAc,CAAC,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,QAiBtE;IAED;;;;;;;;OAQG;IACI,iBAAiB,CACtB,eAAe,EAAE,MAAM,GAErB;QAAE,QAAQ,EAAE,IAAI,CAAC;QAAC,QAAQ,EAAE,SAAS,CAAC;QAAC,WAAW,EAAE,IAAI,CAAA;KAAE,GAC1D;QAAE,QAAQ,EAAE,KAAK,CAAC;QAAC,QAAQ,EAAE,SAAS,CAAC;QAAC,WAAW,EAAE,KAAK,CAAA;KAAE,GAC5D;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,OAAO,CAAA;KAAE,CAwDhE;CACF"}
@@ -1,78 +1,127 @@
1
- import { createLogger } from '@aztec/aztec.js';
1
+ import { CHECKPOINT_ASSEMBLE_TIME, CHECKPOINT_INITIALIZATION_TIME, DEFAULT_P2P_PROPAGATION_TIME, MIN_EXECUTION_TIME, createCheckpointTimingModel } from '@aztec/stdlib/timetable';
2
+ import { SequencerTooSlowError } from './errors.js';
2
3
  import { SequencerState } from './utils.js';
3
4
  export class SequencerTimetable {
4
- ethereumSlotDuration;
5
- aztecSlotDuration;
6
- maxL1TxInclusionTimeIntoSlot;
7
- enforce;
8
5
  metrics;
9
6
  log;
10
- /** How late into the slot can we be to start working */ initialTime;
11
- /** How long it takes to get ready to start building */ blockPrepareTime;
12
- /** How long it takes to for proposals and attestations to travel across the p2p layer (one-way) */ attestationPropagationTime;
13
- /** How much time we spend validating and processing a block after building it, and assembling the proposal to send to attestors */ blockValidationTime;
7
+ checkpointTiming;
8
+ /**
9
+ * How late into the slot can we be to start working. Computed as the total time needed for assembling and publishing a block,
10
+ * assuming an execution time equal to `minExecutionTime`, subtracted from the slot duration. This means that, if the proposer
11
+ * starts building at this time, and all times hold, it will have at least `minExecutionTime` to execute txs for the block.
12
+ */ initializeDeadline;
13
+ /**
14
+ * Fixed time offset (in seconds) when the first sub-slot starts, used as baseline for all block deadlines.
15
+ * This is an estimate of how long initialization (sync + proposer check) typically takes.
16
+ * If actual initialization takes longer/shorter, blocks just get less/more time accordingly.
17
+ */ initializationOffset;
18
+ /**
19
+ * Total time needed to finalize and publish a checkpoint, including:
20
+ * - Assembling the checkpoint
21
+ * - Round-trip p2p propagation for the checkpoint proposal and its corresponding attestations
22
+ * - Publishing to L1
23
+ */ checkpointFinalizationTime;
14
24
  /**
15
25
  * How long it takes to get a published block into L1. L1 builders typically accept txs up to 4 seconds into their slot,
16
26
  * but we'll timeout sooner to give it more time to propagate (remember we also have blobs!). Still, when working in anvil,
17
27
  * we can just post in the very last second of the L1 slot and still expect the tx to be accepted.
18
28
  */ l1PublishingTime;
19
- constructor(ethereumSlotDuration, aztecSlotDuration, maxL1TxInclusionTimeIntoSlot, enforce = true, metrics, log = createLogger('sequencer:timetable')){
20
- this.ethereumSlotDuration = ethereumSlotDuration;
21
- this.aztecSlotDuration = aztecSlotDuration;
22
- this.maxL1TxInclusionTimeIntoSlot = maxL1TxInclusionTimeIntoSlot;
23
- this.enforce = enforce;
29
+ /**
30
+ * What's the minimum time we want to leave available for execution and reexecution (used to derive init deadline)
31
+ * Defaults to half of the block duration if set, otherwise a constant.
32
+ */ minExecutionTime;
33
+ /** How long it takes to get ready to start building */ checkpointInitializationTime;
34
+ /** How long it takes to for proposals and attestations to travel across the p2p layer (one-way) */ p2pPropagationTime;
35
+ /** How much time we spend assembling a checkpoint after building the last block */ checkpointAssembleTime;
36
+ /** Ethereum slot duration in seconds */ ethereumSlotDuration;
37
+ /** Aztec slot duration in seconds (must be multiple of ethereum slot duration) */ aztecSlotDuration;
38
+ /** Whether assertTimeLeft will throw if not enough time. */ enforce;
39
+ /** Duration per block when building multiple blocks per slot (undefined = single block per slot) */ blockDuration;
40
+ /** Maximum number of blocks that can be built in this slot configuration */ maxNumberOfBlocks;
41
+ /**
42
+ * How far into the target slot assembly and attestation collection can start when pipelining.
43
+ * Production-like timing keeps this at zero; fast local publishing profiles can use the attestation window.
44
+ */ pipeliningAttestationGracePeriod;
45
+ constructor(opts, metrics, log){
24
46
  this.metrics = metrics;
25
47
  this.log = log;
26
- this.initialTime = 3;
27
- this.blockPrepareTime = 1;
28
- this.attestationPropagationTime = 2;
29
- this.blockValidationTime = 1;
30
- this.l1PublishingTime = this.ethereumSlotDuration - this.maxL1TxInclusionTimeIntoSlot;
48
+ this.minExecutionTime = MIN_EXECUTION_TIME;
49
+ this.checkpointInitializationTime = CHECKPOINT_INITIALIZATION_TIME;
50
+ this.checkpointAssembleTime = CHECKPOINT_ASSEMBLE_TIME;
51
+ this.ethereumSlotDuration = opts.ethereumSlotDuration;
52
+ this.aztecSlotDuration = opts.aztecSlotDuration;
53
+ this.l1PublishingTime = opts.l1PublishingTime;
54
+ this.blockDuration = opts.blockDurationMs ? opts.blockDurationMs / 1000 : undefined;
55
+ this.enforce = opts.enforce;
56
+ this.checkpointTiming = createCheckpointTimingModel({
57
+ aztecSlotDuration: this.aztecSlotDuration,
58
+ ethereumSlotDuration: this.ethereumSlotDuration,
59
+ blockDuration: this.blockDuration,
60
+ l1PublishingTime: this.l1PublishingTime,
61
+ p2pPropagationTime: opts.p2pPropagationTime ?? DEFAULT_P2P_PROPAGATION_TIME
62
+ });
63
+ this.p2pPropagationTime = this.checkpointTiming.p2pPropagationTime;
64
+ this.checkpointAssembleTime = this.checkpointTiming.checkpointAssembleTime;
65
+ this.checkpointInitializationTime = this.checkpointTiming.checkpointInitializationTime;
66
+ this.minExecutionTime = this.checkpointTiming.minExecutionTime;
67
+ // Calculate initialization offset - estimate of time needed for sync + proposer check
68
+ // This is the baseline for all sub-slot deadlines
69
+ this.initializationOffset = this.checkpointTiming.checkpointInitializationTime;
70
+ this.checkpointFinalizationTime = this.checkpointTiming.checkpointFinalizationTime;
71
+ this.pipeliningAttestationGracePeriod = this.checkpointTiming.pipeliningAttestationGracePeriod;
72
+ this.maxNumberOfBlocks = this.checkpointTiming.calculateMaxBlocksPerSlot();
73
+ this.initializeDeadline = this.checkpointTiming.initializeDeadline;
74
+ this.log?.info(`Sequencer timetable initialized with ${this.maxNumberOfBlocks} blocks per slot (${this.enforce ? 'enforced' : 'not enforced'})`, {
75
+ ethereumSlotDuration: this.ethereumSlotDuration,
76
+ aztecSlotDuration: this.aztecSlotDuration,
77
+ l1PublishingTime: this.l1PublishingTime,
78
+ minExecutionTime: this.minExecutionTime,
79
+ blockPrepareTime: this.checkpointInitializationTime,
80
+ p2pPropagationTime: this.p2pPropagationTime,
81
+ blockAssembleTime: this.checkpointAssembleTime,
82
+ initializeDeadline: this.initializeDeadline,
83
+ enforce: this.enforce,
84
+ pipeliningAttestationGracePeriod: this.pipeliningAttestationGracePeriod,
85
+ minWorkToDo: this.checkpointTiming.minimumBuildSlotWork,
86
+ blockDuration: this.blockDuration,
87
+ maxNumberOfBlocks: this.maxNumberOfBlocks
88
+ });
89
+ if (this.initializeDeadline <= 0) {
90
+ throw new Error(`Block proposal initialize deadline cannot be negative (got ${this.initializeDeadline} from total time needed ${this.checkpointTiming.minimumBuildSlotWork} and a slot duration of ${this.aztecSlotDuration}).`);
91
+ }
31
92
  }
32
- get afterBlockBuildingTimeNeededWithoutReexec() {
33
- return this.blockValidationTime + this.attestationPropagationTime * 2 + this.l1PublishingTime;
93
+ getCheckpointAssemblyDeadline() {
94
+ return this.checkpointTiming.checkpointAssemblyDeadline;
34
95
  }
35
- getBlockProposalExecTimeEnd(secondsIntoSlot) {
36
- // We are N seconds into the slot. We need to account for `afterBlockBuildingTimeNeededWithoutReexec` seconds,
37
- // send then split the remaining time between the re-execution and the block building.
38
- const maxAllowed = this.aztecSlotDuration - this.afterBlockBuildingTimeNeededWithoutReexec;
39
- const available = maxAllowed - secondsIntoSlot;
40
- const executionTimeEnd = secondsIntoSlot + available / 2;
41
- this.log.debug(`Block proposal execution time deadline is ${executionTimeEnd}`, {
42
- secondsIntoSlot,
43
- maxAllowed,
44
- available,
45
- executionTimeEnd
46
- });
47
- return executionTimeEnd;
96
+ getCheckpointAttestationDeadline() {
97
+ return this.checkpointTiming.checkpointAttestationDeadline;
48
98
  }
49
- get afterBlockReexecTimeNeeded() {
50
- return this.attestationPropagationTime + this.l1PublishingTime;
99
+ getCheckpointAttestationStartDeadline() {
100
+ return this.checkpointTiming.checkpointAttestationStartDeadline;
51
101
  }
52
- getValidatorReexecTimeEnd(secondsIntoSlot) {
53
- // We need to leave for `afterBlockReexecTimeNeeded` seconds available.
54
- const validationTimeEnd = this.aztecSlotDuration - this.afterBlockReexecTimeNeeded;
55
- this.log.debug(`Validator re-execution time deadline is ${validationTimeEnd}`, {
56
- secondsIntoSlot,
57
- validationTimeEnd
58
- });
59
- return validationTimeEnd;
102
+ getCheckpointPublishingDeadline() {
103
+ return this.checkpointTiming.checkpointPublishingDeadline;
60
104
  }
61
105
  getMaxAllowedTime(state) {
62
106
  switch(state){
63
107
  case SequencerState.STOPPED:
108
+ case SequencerState.STOPPING:
64
109
  case SequencerState.IDLE:
65
110
  case SequencerState.SYNCHRONIZING:
66
- case SequencerState.PROPOSER_CHECK:
67
111
  return; // We don't really care about times for this states
68
- case SequencerState.INITIALIZING_PROPOSAL:
69
- return this.initialTime;
112
+ case SequencerState.PROPOSER_CHECK:
113
+ case SequencerState.INITIALIZING_CHECKPOINT:
114
+ return this.initializeDeadline;
115
+ case SequencerState.WAITING_FOR_TXS:
70
116
  case SequencerState.CREATING_BLOCK:
71
- return this.initialTime + this.blockPrepareTime;
117
+ case SequencerState.WAITING_UNTIL_NEXT_BLOCK:
118
+ return this.initializeDeadline + this.checkpointInitializationTime;
119
+ case SequencerState.ASSEMBLING_CHECKPOINT:
120
+ return this.getCheckpointAssemblyDeadline();
72
121
  case SequencerState.COLLECTING_ATTESTATIONS:
73
- return this.aztecSlotDuration - this.l1PublishingTime - 2 * this.attestationPropagationTime;
74
- case SequencerState.PUBLISHING_BLOCK:
75
- return this.aztecSlotDuration - this.l1PublishingTime;
122
+ return this.getCheckpointAttestationStartDeadline();
123
+ case SequencerState.PUBLISHING_CHECKPOINT:
124
+ return this.getCheckpointPublishingDeadline();
76
125
  default:
77
126
  {
78
127
  const _exhaustiveCheck = state;
@@ -93,18 +142,86 @@ export class SequencerTimetable {
93
142
  throw new SequencerTooSlowError(newState, maxAllowedTime, secondsIntoSlot);
94
143
  }
95
144
  this.metrics?.recordStateTransitionBufferMs(Math.floor(bufferSeconds * 1000), newState);
96
- this.log.trace(`Enough time to transition to ${newState}`, {
145
+ this.log?.trace(`Enough time to transition to ${newState}`, {
97
146
  maxAllowedTime,
98
147
  secondsIntoSlot
99
148
  });
100
149
  }
101
- }
102
- export class SequencerTooSlowError extends Error {
103
- proposedState;
104
- maxAllowedTime;
105
- currentTime;
106
- constructor(proposedState, maxAllowedTime, currentTime){
107
- super(`Too far into slot for ${proposedState} (time into slot ${currentTime}s greater than ${maxAllowedTime}s allowance)`), this.proposedState = proposedState, this.maxAllowedTime = maxAllowedTime, this.currentTime = currentTime;
108
- this.name = 'SequencerTooSlowError';
150
+ /**
151
+ * Determines if we can start building the next block and returns its deadline.
152
+ *
153
+ * The timetable divides the slot into fixed sub-slots. This method finds the next
154
+ * available sub-slot that has enough time remaining to build a block.
155
+ *
156
+ * @param secondsIntoSlot - Current time (seconds into the slot)
157
+ * @returns Object with canStart flag, deadline, and whether this is the last block
158
+ */ canStartNextBlock(secondsIntoSlot) {
159
+ // When timetable enforcement is disabled, always allow starting,
160
+ // and build a single block with no deadline. This is here just to
161
+ // satisfy a subset of e2e tests and the sandbox that assume that the
162
+ // sequencer is permanently mining every tx sent.
163
+ if (!this.enforce) {
164
+ return {
165
+ canStart: true,
166
+ deadline: undefined,
167
+ isLastBlock: true
168
+ };
169
+ }
170
+ // If no block duration is set, then we're in single-block mode, which
171
+ // is handled for backwards compatibility towards another subset of e2e tests.
172
+ if (this.blockDuration === undefined) {
173
+ // In single block mode, execution and re-execution happen sequentially, so we need to
174
+ // split the available time between them. After building, we need time for attestations and L1.
175
+ const maxAllowed = this.aztecSlotDuration - this.checkpointFinalizationTime;
176
+ const available = (maxAllowed - secondsIntoSlot) / 2; // Split remaining time: half for execution, half for re-execution
177
+ const canStart = available >= this.minExecutionTime;
178
+ const deadline = secondsIntoSlot + available;
179
+ this.log?.verbose(`${canStart ? 'Can' : 'Cannot'} start single-block checkpoint at ${secondsIntoSlot}s into slot`, {
180
+ secondsIntoSlot,
181
+ maxAllowed,
182
+ available,
183
+ deadline
184
+ });
185
+ return {
186
+ canStart,
187
+ deadline,
188
+ isLastBlock: true
189
+ };
190
+ }
191
+ // Otherwise, we're in multi-block-per-slot mode, the default when running in production
192
+ // Find the next available sub-slot that has enough time remaining
193
+ for(let subSlot = 1; subSlot <= this.maxNumberOfBlocks; subSlot++){
194
+ // Calculate end for this sub-slot
195
+ const deadline = this.initializationOffset + subSlot * this.blockDuration;
196
+ // Check if we have enough time to build a block with this deadline
197
+ const timeUntilDeadline = deadline - secondsIntoSlot;
198
+ if (timeUntilDeadline >= this.minExecutionTime) {
199
+ // Found an available sub-slot! Is this the last one?
200
+ const isLastBlock = subSlot === this.maxNumberOfBlocks;
201
+ this.log?.verbose(`Can start ${isLastBlock ? 'last block' : 'block'} in sub-slot ${subSlot} with deadline ${deadline}s`, {
202
+ secondsIntoSlot,
203
+ deadline,
204
+ timeUntilDeadline,
205
+ subSlot,
206
+ maxBlocks: this.maxNumberOfBlocks
207
+ });
208
+ return {
209
+ canStart: true,
210
+ deadline,
211
+ isLastBlock
212
+ };
213
+ }
214
+ }
215
+ // No sub-slots available with enough time
216
+ this.log?.verbose(`No time left to start any more blocks`, {
217
+ secondsIntoSlot,
218
+ maxBlocks: this.maxNumberOfBlocks,
219
+ initializationOffset: this.initializationOffset
220
+ });
221
+ return {
222
+ canStart: false,
223
+ deadline: undefined,
224
+ isLastBlock: false
225
+ };
109
226
  }
110
227
  }
@@ -0,0 +1,3 @@
1
+ import type { L1RollupConstants } from '@aztec/stdlib/epoch-helpers';
2
+ export type SequencerRollupConstants = Pick<L1RollupConstants, 'ethereumSlotDuration' | 'l1GenesisTime' | 'slotDuration' | 'rollupManaLimit' | 'epochDuration'>;
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zZXF1ZW5jZXIvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUVyRSxNQUFNLE1BQU0sd0JBQXdCLEdBQUcsSUFBSSxDQUN6QyxpQkFBaUIsRUFDakIsc0JBQXNCLEdBQUcsZUFBZSxHQUFHLGNBQWMsR0FBRyxpQkFBaUIsR0FBRyxlQUFlLENBQ2hHLENBQUMifQ==
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/sequencer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,iBAAiB,EACjB,sBAAsB,GAAG,eAAe,GAAG,cAAc,GAAG,iBAAiB,GAAG,eAAe,CAChG,CAAC"}
@@ -0,0 +1 @@
1
+ export { };
@@ -1,48 +1,30 @@
1
- import type { EthAddress } from '@aztec/foundation/eth-address';
2
- import { Signature } from '@aztec/foundation/eth-signature';
3
- import type { BlockAttestation } from '@aztec/stdlib/p2p';
4
1
  export declare enum SequencerState {
5
- /**
6
- * Sequencer is stopped and not processing any txs from the pool.
7
- */
2
+ /** Sequencer is stopped and not processing any txs from the pool. */
8
3
  STOPPED = "STOPPED",
9
- /**
10
- * Sequencer is awaiting the next call to work().
11
- */
4
+ /** Sequencer is being stopped. Will move to STOPPED shortly. */
5
+ STOPPING = "STOPPING",
6
+ /** Sequencer is awaiting the next call to work(). */
12
7
  IDLE = "IDLE",
13
- /**
14
- * Synchronizing with the L2 chain.
15
- */
8
+ /** Synchronizing with the L2 chain. */
16
9
  SYNCHRONIZING = "SYNCHRONIZING",
17
- /**
18
- * Checking if we are the proposer for the current slot.
19
- */
10
+ /** Checking if we are the proposer for the current slot. */
20
11
  PROPOSER_CHECK = "PROPOSER_CHECK",
21
- /**
22
- * Initializing the block proposal. Will move to CREATING_BLOCK if there are valid txs to include, or back to SYNCHRONIZING otherwise.
23
- */
24
- INITIALIZING_PROPOSAL = "INITIALIZING_PROPOSAL",
25
- /**
26
- * Creating a new L2 block. Includes processing public function calls and running rollup circuits. Will move to PUBLISHING_CONTRACT_DATA.
27
- */
12
+ /** Initializing the checkpoint proposal. */
13
+ INITIALIZING_CHECKPOINT = "INITIALIZING_CHECKPOINT",
14
+ /** Waiting for transactions to arrive in the pool. */
15
+ WAITING_FOR_TXS = "WAITING_FOR_TXS",
16
+ /** Creating a new L2 block. Includes processing public function calls. */
28
17
  CREATING_BLOCK = "CREATING_BLOCK",
29
- /**
30
- * Collecting attestations from its peers. Will move to PUBLISHING_BLOCK.
31
- */
18
+ /** Waiting until the next block can be created. */
19
+ WAITING_UNTIL_NEXT_BLOCK = "WAITING_UNTIL_NEXT_BLOCK",
20
+ /** Assembling and broadcasting the checkpoint. */
21
+ ASSEMBLING_CHECKPOINT = "ASSEMBLING_CHECKPOINT",
22
+ /** Collecting attestations from its peers. */
32
23
  COLLECTING_ATTESTATIONS = "COLLECTING_ATTESTATIONS",
33
- /**
34
- * Sending the tx to L1 with the L2 block data and awaiting it to be mined. Will move to SYNCHRONIZING.
35
- */
36
- PUBLISHING_BLOCK = "PUBLISHING_BLOCK"
24
+ /** Sending the tx to L1 with the L2 checkpoint data and awaiting it to be mined.. */
25
+ PUBLISHING_CHECKPOINT = "PUBLISHING_CHECKPOINT"
37
26
  }
27
+ export type SequencerStateWithSlot = SequencerState.INITIALIZING_CHECKPOINT | SequencerState.WAITING_FOR_TXS | SequencerState.CREATING_BLOCK | SequencerState.WAITING_UNTIL_NEXT_BLOCK | SequencerState.COLLECTING_ATTESTATIONS | SequencerState.PUBLISHING_CHECKPOINT | SequencerState.PROPOSER_CHECK | SequencerState.ASSEMBLING_CHECKPOINT;
38
28
  export type SequencerStateCallback = () => SequencerState;
39
29
  export declare function sequencerStateToNumber(state: SequencerState): number;
40
- /** Order Attestations
41
- *
42
- * Returns attestation signatures in the order of a series of provided ethereum addresses
43
- * The rollup smart contract expects attestations to appear in the order of the committee
44
- *
45
- * @todo: perform this logic within the memory attestation store instead?
46
- */
47
- export declare function orderAttestations(attestations: BlockAttestation[], orderAddresses: EthAddress[]): Promise<Signature[]>;
48
- //# sourceMappingURL=utils.d.ts.map
30
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zZXF1ZW5jZXIvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0JBQVksY0FBYztJQUN4QixxRUFBcUU7SUFDckUsT0FBTyxZQUFZO0lBQ25CLGdFQUFnRTtJQUNoRSxRQUFRLGFBQWE7SUFDckIscURBQXFEO0lBQ3JELElBQUksU0FBUztJQ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B,GACpC,cAAc,CAAC,cAAc,GAC7B,cAAc,CAAC,qBAAqB,CAAC;AAEzC,MAAM,MAAM,sBAAsB,GAAG,MAAM,cAAc,CAAC;AAE1D,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAEpE"}
@@ -1,53 +1,18 @@
1
- import { Signature } from '@aztec/foundation/eth-signature';
2
1
  export var SequencerState = /*#__PURE__*/ function(SequencerState) {
3
- /**
4
- * Sequencer is stopped and not processing any txs from the pool.
5
- */ SequencerState["STOPPED"] = "STOPPED";
6
- /**
7
- * Sequencer is awaiting the next call to work().
8
- */ SequencerState["IDLE"] = "IDLE";
9
- /**
10
- * Synchronizing with the L2 chain.
11
- */ SequencerState["SYNCHRONIZING"] = "SYNCHRONIZING";
12
- /**
13
- * Checking if we are the proposer for the current slot.
14
- */ SequencerState["PROPOSER_CHECK"] = "PROPOSER_CHECK";
15
- /**
16
- * Initializing the block proposal. Will move to CREATING_BLOCK if there are valid txs to include, or back to SYNCHRONIZING otherwise.
17
- */ SequencerState["INITIALIZING_PROPOSAL"] = "INITIALIZING_PROPOSAL";
18
- /**
19
- * Creating a new L2 block. Includes processing public function calls and running rollup circuits. Will move to PUBLISHING_CONTRACT_DATA.
20
- */ SequencerState["CREATING_BLOCK"] = "CREATING_BLOCK";
21
- /**
22
- * Collecting attestations from its peers. Will move to PUBLISHING_BLOCK.
23
- */ SequencerState["COLLECTING_ATTESTATIONS"] = "COLLECTING_ATTESTATIONS";
24
- /**
25
- * Sending the tx to L1 with the L2 block data and awaiting it to be mined. Will move to SYNCHRONIZING.
26
- */ SequencerState["PUBLISHING_BLOCK"] = "PUBLISHING_BLOCK";
2
+ /** Sequencer is stopped and not processing any txs from the pool. */ SequencerState["STOPPED"] = "STOPPED";
3
+ /** Sequencer is being stopped. Will move to STOPPED shortly. */ SequencerState["STOPPING"] = "STOPPING";
4
+ /** Sequencer is awaiting the next call to work(). */ SequencerState["IDLE"] = "IDLE";
5
+ /** Synchronizing with the L2 chain. */ SequencerState["SYNCHRONIZING"] = "SYNCHRONIZING";
6
+ /** Checking if we are the proposer for the current slot. */ SequencerState["PROPOSER_CHECK"] = "PROPOSER_CHECK";
7
+ /** Initializing the checkpoint proposal. */ SequencerState["INITIALIZING_CHECKPOINT"] = "INITIALIZING_CHECKPOINT";
8
+ /** Waiting for transactions to arrive in the pool. */ SequencerState["WAITING_FOR_TXS"] = "WAITING_FOR_TXS";
9
+ /** Creating a new L2 block. Includes processing public function calls. */ SequencerState["CREATING_BLOCK"] = "CREATING_BLOCK";
10
+ /** Waiting until the next block can be created. */ SequencerState["WAITING_UNTIL_NEXT_BLOCK"] = "WAITING_UNTIL_NEXT_BLOCK";
11
+ /** Assembling and broadcasting the checkpoint. */ SequencerState["ASSEMBLING_CHECKPOINT"] = "ASSEMBLING_CHECKPOINT";
12
+ /** Collecting attestations from its peers. */ SequencerState["COLLECTING_ATTESTATIONS"] = "COLLECTING_ATTESTATIONS";
13
+ /** Sending the tx to L1 with the L2 checkpoint data and awaiting it to be mined.. */ SequencerState["PUBLISHING_CHECKPOINT"] = "PUBLISHING_CHECKPOINT";
27
14
  return SequencerState;
28
15
  }({});
29
16
  export function sequencerStateToNumber(state) {
30
17
  return Object.values(SequencerState).indexOf(state);
31
18
  }
32
- /** Order Attestations
33
- *
34
- * Returns attestation signatures in the order of a series of provided ethereum addresses
35
- * The rollup smart contract expects attestations to appear in the order of the committee
36
- *
37
- * @todo: perform this logic within the memory attestation store instead?
38
- */ export async function orderAttestations(attestations, orderAddresses) {
39
- // Create a map of sender addresses to BlockAttestations
40
- const attestationMap = new Map();
41
- for (const attestation of attestations){
42
- const sender = await attestation.getSender();
43
- if (sender) {
44
- attestationMap.set(sender.toString(), attestation);
45
- }
46
- }
47
- // Create the ordered array based on the orderAddresses, else return an empty signature
48
- const orderedAttestations = orderAddresses.map((address)=>{
49
- const addressString = address.toString();
50
- return attestationMap.get(addressString)?.signature || Signature.empty();
51
- });
52
- return orderedAttestations;
53
- }
@@ -1,17 +1,23 @@
1
+ import type { L1TxUtils } from '@aztec/ethereum/l1-tx-utils';
2
+ import type { PublisherManager } from '@aztec/ethereum/publisher-manager';
1
3
  import type { PublicProcessorFactory } from '@aztec/simulator/server';
4
+ import type { FullNodeCheckpointsBuilder, ValidatorClient } from '@aztec/validator-client';
2
5
  import { SequencerClient } from '../client/sequencer-client.js';
3
- import type { SequencerPublisher } from '../publisher/sequencer-publisher.js';
6
+ import type { SequencerPublisherFactory } from '../publisher/sequencer-publisher-factory.js';
4
7
  import { Sequencer } from '../sequencer/sequencer.js';
5
8
  import type { SequencerTimetable } from '../sequencer/timetable.js';
6
9
  declare class TestSequencer_ extends Sequencer {
7
10
  publicProcessorFactory: PublicProcessorFactory;
8
11
  timetable: SequencerTimetable;
9
- publisher: SequencerPublisher;
12
+ publisherFactory: SequencerPublisherFactory;
13
+ validatorClient: ValidatorClient;
14
+ checkpointsBuilder: FullNodeCheckpointsBuilder;
10
15
  }
11
16
  export type TestSequencer = TestSequencer_;
12
17
  declare class TestSequencerClient_ extends SequencerClient {
13
18
  sequencer: TestSequencer;
19
+ publisherManager: PublisherManager<L1TxUtils>;
14
20
  }
15
21
  export type TestSequencerClient = TestSequencerClient_;
16
22
  export {};
17
- //# sourceMappingURL=index.d.ts.map
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90ZXN0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxFQUFFLFNBQVMsRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBQzdELE9BQU8sS0FBSyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDMUUsT0FBTyxLQUFLLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQU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,CAAC;IACzB,gBAAgB,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;CAC9D;AAED,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,CAAC"}
@@ -1,10 +1,6 @@
1
1
  import { SequencerClient } from '../client/sequencer-client.js';
2
2
  import { Sequencer } from '../sequencer/sequencer.js';
3
3
  class TestSequencer_ extends Sequencer {
4
- publicProcessorFactory;
5
- timetable;
6
- publisher;
7
4
  }
8
5
  class TestSequencerClient_ extends SequencerClient {
9
- sequencer;
10
6
  }