feat: add raw PrioUpdateRegistry V2 - #3
Open
dvush wants to merge 6 commits into
Open
Conversation
Remove registry-level freshness and packed headers. Store full-width raw slots, preserve updater writes, and add permanent per-lane decoders using STATICCALL. Move freshness validation into ExamplePropAmm, add V2 tests, and split the V1 and V2 documentation.
Minimises the trust surface. The two immutable allowlisted addresses and the state-changing CALL that reached them are removed, so the decoder STATICCALL is now the only external interaction on any write path: a transaction addressed to the registry can write nothing but the registry's own storage. - Remove the constructor, both trusted-target immutables, and isTrustedCallTarget. - Drop the calls argument, allowlist check, call-hash and call loop from updateStateWithDecoder. - Drop trustedCallsHash and callResults from IPrioUpdateDecoder; both existed only to carry trusted-call output. - Keep the callback lock: it still stops a decoder reading lanes mid-update. - Replace the trusted-target callback test with a decoder-driven probe so the reentrancy coverage survives the removal. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0145oJMRwscWeEFEDSU8BAtF
The removed parameters left signatures that now fit on one line, which forge fmt --check flagged. Whitespace only. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0145oJMRwscWeEFEDSU8BAtF
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.
Remove registry-level freshness and packed headers. Store full-width raw slots, preserve updater writes, and add permanent per-lane decoders using STATICCALL.
Move freshness validation into ExamplePropAmm, add V2 tests, and split the V1 and V2 documentation.