@@ -11,23 +11,18 @@ import "./IDelayedMessageProvider.sol";
1111import "./IBridge.sol " ;
1212
1313interface ISequencerInbox is IDelayedMessageProvider {
14+ /// @notice The maximum amount of time variatin between a message being posted on the L1 and being executed on the L2
15+ /// @param delayBlocks The max amount of blocks in the past that a message can be received on L2
16+ /// @param futureBlocks The max amount of blocks in the future that a message can be received on L2
17+ /// @param delaySeconds The max amount of seconds in the past that a message can be received on L2
18+ /// @param futureSeconds The max amount of seconds in the future that a message can be received on L2
1419 struct MaxTimeVariation {
1520 uint64 delayBlocks;
1621 uint64 futureBlocks;
1722 uint64 delaySeconds;
1823 uint64 futureSeconds;
1924 }
2025
21- event SequencerBatchDelivered (
22- uint256 indexed batchSequenceNumber ,
23- bytes32 indexed beforeAcc ,
24- bytes32 indexed afterAcc ,
25- bytes32 delayedAcc ,
26- uint256 afterDelayedMessagesRead ,
27- IBridge.TimeBounds timeBounds ,
28- IBridge.BatchDataLocation dataLocation
29- );
30-
3126 event OwnerFunctionCalled (uint256 indexed id );
3227
3328 /// @dev a separate event that emits batch data when this isn't easily accessible in the tx.input
@@ -39,6 +34,8 @@ interface ISequencerInbox is IDelayedMessageProvider {
3934 /// @dev a keyset was invalidated
4035 event InvalidateKeyset (bytes32 indexed keysetHash );
4136
37+ /// @notice The total number of delated messages read in the bridge
38+ /// @dev We surface this here for backwards compatibility
4239 function totalDelayedMessagesRead () external view returns (uint256 );
4340
4441 function bridge () external view returns (IBridge);
@@ -103,9 +100,6 @@ interface ISequencerInbox is IDelayedMessageProvider {
103100
104101 function dasKeySetInfo (bytes32 ) external view returns (bool , uint64 );
105102
106- /// @notice Remove force inclusion delay after a L1 chainId fork
107- function removeDelayAfterFork () external ;
108-
109103 /// @notice Force messages from the delayed inbox to be included in the chain
110104 /// Callable by any address, but message can only be force-included after maxTimeVariation.delayBlocks and
111105 /// maxTimeVariation.delaySeconds has elapsed. As part of normal behaviour the sequencer will include these
@@ -140,7 +134,9 @@ interface ISequencerInbox is IDelayedMessageProvider {
140134 uint256 sequenceNumber ,
141135 bytes calldata data ,
142136 uint256 afterDelayedMessagesRead ,
143- IGasRefunder gasRefunder
137+ IGasRefunder gasRefunder ,
138+ uint256 prevMessageCount ,
139+ uint256 newMessageCount
144140 ) external ;
145141
146142 function addSequencerL2Batch (
@@ -154,12 +150,6 @@ interface ISequencerInbox is IDelayedMessageProvider {
154150
155151 // ---------- onlyRollupOrOwner functions ----------
156152
157- /**
158- * @notice Set max delay for sequencer inbox
159- * @param maxTimeVariation_ the maximum time variation parameters
160- */
161- function setMaxTimeVariation (MaxTimeVariation memory maxTimeVariation_ ) external ;
162-
163153 /**
164154 * @notice Updates whether an address is authorized to be a batch poster at the sequencer inbox
165155 * @param addr the address
@@ -187,10 +177,7 @@ interface ISequencerInbox is IDelayedMessageProvider {
187177 */
188178 function setIsSequencer (address addr , bool isSequencer_ ) external ;
189179
190- // ---------- initializer ----------
191-
192- function initialize (IBridge bridge_ , MaxTimeVariation calldata maxTimeVariation_ ) external ;
193-
180+ /// @notice Allows the rollup owner to sync the rollup address
194181 function updateRollupAddress () external ;
195182}
196183
0 commit comments