perf: pack withdrawal queue bounds into one slot#693
Draft
0xalpharush wants to merge 1 commit into
Draft
Conversation
0xalpharush
force-pushed
the
agent/multicall-queue-bounds
branch
from
July 16, 2026 22:22
ae790f9 to
b1d41a9
Compare
0xalpharush
force-pushed
the
agent/multicall-queue-bounds
branch
from
July 16, 2026 22:33
b1d41a9 to
afae97f
Compare
0xalpharush
force-pushed
the
agent/multicall-queue-bounds
branch
from
July 16, 2026 22:37
afae97f to
3f39e47
Compare
legion2002
approved these changes
Jul 20, 2026
| function withdrawalQueueTail() external view returns (uint256); | ||
| function withdrawalQueueHead() external view returns (uint64); | ||
| function withdrawalQueueTail() external view returns (uint64); | ||
| function withdrawalQueueBounds() external view returns (uint64 head, uint64 tail); |
Contributor
There was a problem hiding this comment.
do we need this new fn? withdrawalQueueBounds
maybe we can just remove the individual head and tail fns?
Contributor
Author
There was a problem hiding this comment.
it is used by process_queue to retrieve both without multiple RPC calls
Contributor
Author
There was a problem hiding this comment.
but fine to drop if you think we should
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
headandtailasuint64values in one storage slotwithdrawalQueueBounds()so the sequencer reads both values with oneeth_callDeployment
This intentionally does not preserve the previous ZonePortal storage layout. Deploy a fresh ZoneFactory/ZonePortal before updating sequencers.
Validation
forge test— 555 passedcargo test -p zone-sequencer --lib— 45 passed