-
Notifications
You must be signed in to change notification settings - Fork 4
refactor: replace queue mappings with sorted-array invariant (#116) #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: RonTuretzky/107-twvp-scaling
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -40,6 +40,10 @@ interface IRecipientRegistry { | |||||||||||||
| /// @notice Thrown when attempting to queue a recipient that is already queued | ||||||||||||||
| error RecipientAlreadyQueued(); | ||||||||||||||
|
|
||||||||||||||
| /// @notice Thrown when a recipient address is not greater than the last queued address | ||||||||||||||
|
Comment on lines
40
to
+43
|
||||||||||||||
| /// @notice Thrown when attempting to queue a recipient that is already queued | |
| error RecipientAlreadyQueued(); | |
| /// @notice Thrown when a recipient address is not greater than the last queued address | |
| /// @notice Thrown when a queued recipient address is not strictly greater than the last queued address | |
| /// @dev Covers both duplicate recipients and out-of-order queue submissions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The enqueue path now enforces a strict ascending-address invariant (reverting
QueueNotSortedwhenrecipient <= lastQueued). Consider documenting this requirement in the function’s NatSpec (either here or on the external queueing functions) since it’s a behavioral/API constraint callers must follow.