diff --git a/src/bridge/ISequencerInbox.sol b/src/bridge/ISequencerInbox.sol index 55454a88..359a66a0 100644 --- a/src/bridge/ISequencerInbox.sol +++ b/src/bridge/ISequencerInbox.sol @@ -12,10 +12,10 @@ import "./IBridge.sol"; interface ISequencerInbox is IDelayedMessageProvider { struct MaxTimeVariation { - uint256 delayBlocks; - uint256 futureBlocks; - uint256 delaySeconds; - uint256 futureSeconds; + uint64 delayBlocks; + uint64 futureBlocks; + uint64 delaySeconds; + uint64 futureSeconds; } struct TimeBounds { @@ -80,10 +80,10 @@ interface ISequencerInbox is IDelayedMessageProvider { external view returns ( - uint256, - uint256, - uint256, - uint256 + uint64, + uint64, + uint64, + uint64 ); function dasKeySetInfo(bytes32) external view returns (bool, uint64); diff --git a/test/storage/SequencerInbox.dot b/test/storage/SequencerInbox.dot index f9ea05ab..7f7a7525 100644 --- a/test/storage/SequencerInbox.dot +++ b/test/storage/SequencerInbox.dot @@ -4,9 +4,9 @@ rankdir=LR color=black arrowhead=open node [shape=record, style=filled, fillcolor=gray95 fontname="Courier New"] -3 [label="SequencerInbox \<\\>\n | {{ slot| 0 | 1 | 2 | 3 | 4-7 | 8 | 9 } | { type: \.variable (bytes) | { uint256: totalDelayedMessagesRead (32) } | { unallocated (12) | IBridge: bridge (20) } | { unallocated (12) | IOwnable: rollup (20) } | { mapping\(address=\>bool\): isBatchPoster (32) } | { <9> ISequencerInbox.MaxTimeVariation: maxTimeVariation (128) } | { <12> mapping\(bytes32=\>DasKeySetInfo\): dasKeySetInfo (32) } | { mapping\(address=\>bool\): isSequencer (32) }}}"] +3 [label="SequencerInbox \<\\>\n | {{ slot| 0 | 1 | 2 | 3 | 4 | 5 | 6 } | { type: \.variable (bytes) | { uint256: totalDelayedMessagesRead (32) } | { unallocated (12) | IBridge: bridge (20) } | { unallocated (12) | IOwnable: rollup (20) } | { mapping\(address=\>bool\): isBatchPoster (32) } | { <9> ISequencerInbox.MaxTimeVariation: maxTimeVariation (32) } | { <12> mapping\(bytes32=\>DasKeySetInfo\): dasKeySetInfo (32) } | { mapping\(address=\>bool\): isSequencer (32) }}}"] -1 [label="ISequencerInbox.MaxTimeVariation \<\\>\n | {{ slot| 4 | 5 | 6 | 7 } | { type: variable (bytes) | { uint256: MaxTimeVariation.delayBlocks (32) } | { uint256: MaxTimeVariation.futureBlocks (32) } | { uint256: MaxTimeVariation.delaySeconds (32) } | { uint256: MaxTimeVariation.futureSeconds (32) }}}"] +1 [label="ISequencerInbox.MaxTimeVariation \<\\>\n | {{ slot| 4 } | { type: variable (bytes) | { uint64: MaxTimeVariation.futureSeconds (8) | uint64: MaxTimeVariation.delaySeconds (8) | uint64: MaxTimeVariation.futureBlocks (8) | uint64: MaxTimeVariation.delayBlocks (8) }}}"] 2 [label="DasKeySetInfo \<\\>\n | {{ slot| 0 } | { type: variable (bytes) | { unallocated (23) | uint64: creationBlock (8) | bool: isValidKeyset (1) }}}"]