perf(oracle): pack price feed rounds - #116
Open
ByteYue wants to merge 1 commit into
Open
Conversation
🛡️ Security Audit ResultsSecurity Audit SummaryGenerated on: Sun Aug 9 18:01:48 UTC 2026 Tools Executed
Next Steps
📁 Full reports available in GitHub Actions Artifacts |
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
Implements the contract half of Galxe/gravity-audit#1092 before the price-feed feature is activated:
Packed layout:
Golden inner payload:
Design notes
This is intentionally a packed-only predeployment change. No legacy decoder, storage migration, or old getter/event compatibility is added.
The config binding is deliberately stricter than the minimum semantic invariant in #1092: all raw config bytes are immutable for a price-feed ID, including
graceMs. Any config change must use a new feed ID. This avoids parsing provider URIs on chain and fails closed against historical feed reinterpretation.Polymarket contracts are unchanged.
Verification
forge fmt --checkforge test --match-path 'test/unit/oracle/PriceFeedResolver.t.sol': 20 passedforge test --match-path 'test/unit/oracle/OracleTaskConfig.t.sol': 36 passedforge inspect ... storage-layout --json:PriceRoundoccupies one slotRollout
Merge this contract format first, then the matching gravity-reth producer, then update gravity-sdk E2E/soak coverage. Do not enable a price-feed task until all participating validators run the packed producer.