Skip to content

refactor: move reporters into root source tree - #76

Open
md0x wants to merge 33 commits into
masterfrom
pablo/reporters-under-root-src
Open

refactor: move reporters into root source tree#76
md0x wants to merge 33 commits into
masterfrom
pablo/reporters-under-root-src

Conversation

@md0x

@md0x md0x commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • move shared reporter contracts into src/reporters and Polymarket-specific code into src/reporters/integrations
  • move reporter tests and deployment scripts into the root Foundry project
  • use the existing root Solidity 0.8.30 and OpenZeppelin dependencies, removing the nested package and submodule
  • preserve historical deployment manifest source paths as deployment provenance

This is an alternative to #75 for keeping all contracts under the main source tree.

Compatibility

  • both reporter ABIs and storage layouts are unchanged
  • the existing reporter upgrade tests pass, including state preservation from the legacy implementation
  • reporter bytecode changes because it now uses the root compiler, optimizer, and OpenZeppelin versions
  • ManagedOptimisticOracleV2 creation and runtime bytecode remain byte-for-byte unchanged, and production upgrade validation passes

Test plan

  • forge build --sizes
  • forge test --match-path "test/reporters/*"
  • forge test --no-match-contract ".*Fork.*|ManagedOptimisticOracleV2UpgradeValidationTest"
  • forge clean && forge test --match-contract ManagedOptimisticOracleV2UpgradeValidationTest -vvv

Reinis-FRP and others added 30 commits June 22, 2026 19:24

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Proxy.sol:ERC1967Proxy \

P2 Badge Use the surviving OpenZeppelin proxy source path

When manually verifying a freshly deployed proxy with this documented command, Forge cannot resolve the contract because this commit removes the nested pm-v2-oo-reporter OpenZeppelin dependency, while the referenced lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/... path does not exist in the root project. The retained proxy source is under lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Proxy.sol, so the verification example should use that path.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -422,8 +422,7 @@ contract UpgradeOOReporter is Script {

if (
!request.registered || requester != expectedRequester || request.requester != requester
|| request.priceIdentifier != priceIdentifier

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this a linting diff?

@md0x
md0x changed the base branch from unaudited-pm-v2-oo-reporter to master August 28, 2026 14:22
@md0x
md0x changed the base branch from master to chrismaree/pm-v2-duplicate-request-aliases August 28, 2026 15:21
@md0x
md0x force-pushed the pablo/reporters-under-root-src branch 2 times, most recently from 0f476a3 to 4e90ad9 Compare August 28, 2026 16:07
@md0x
md0x changed the base branch from chrismaree/pm-v2-duplicate-request-aliases to master August 28, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants