Skip to content

feat(indexer): fetch v3.5.0 and v1.4.0 events from their upgrade blocks - #123

Merged
rvagg merged 1 commit into
masterfrom
rvagg/upgrade-start-blocks
Sep 10, 2026
Merged

rvagg merged 1 commit into
masterfrom
rvagg/upgrade-start-blocks

Conversation

@rvagg

@rvagg rvagg commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Duplicate contract addresses but for the new versions so we can start from their upgrade blocks rather than from the complete START.

@rvagg
rvagg requested a lite review from Copilot September 10, 2026 12:48
@FilOzzy FilOzzy added this to FOC Sep 10, 2026
@github-project-automation github-project-automation Bot moved this to 📌 Triage in FOC Sep 10, 2026
Duplicate contract addresses but for the new versions so we can start from
their upgrade blocks rather than from the complete START.

Copilot AI 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.

🟢 Approval recommended

The configuration, handler retargeting, and added tests are consistent and verify the intended start-block behavior for the upgraded event ranges.

Pull request overview

This PR updates the indexer configuration and event handlers to start indexing newly introduced events (PDPVerifier v3.5.0 and FWSS v1.4.0) from their respective upgrade blocks, while keeping the proxy addresses unchanged.

Changes:

  • Added per-network “upgrade block” constants for PDPVerifier v3.5.0 and FWSS v1.4.0.
  • Split Ponder contract entries (same address, later startBlock) and retargeted the relevant event handlers to those new entries.
  • Added a test to assert the upgrade entries share the parent address and start after the parent (and in the expected order).
File summaries
File Description
indexer/ponder.config.ts Adds PDPVerifierV35 and FWSSV14 contract entries that start at upgrade blocks while sharing the parent addresses.
indexer/src/networks.ts Introduces PDP_VERIFIER_V3_5_BLOCK and FWSS_V1_4_BLOCK in the network type and per-network constants.
indexer/src/pdp-verifier.ts Retargets v3.5.0-only events (PiecesAddedV2, PiecesScheduledForRemoval) to PDPVerifierV35.
indexer/src/fwss.ts Retargets the v1.4.0-only event (DataSetAuthorizerSet) to FWSSV14.
indexer/test/networks.test.ts Updates expected network registry objects to include the new upgrade block constants.
indexer/test/upgrade-entries.test.ts Adds coverage ensuring upgrade entries share addresses but start later than their parent entries.
Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@rvagg
rvagg merged commit 3c55ba9 into master Sep 10, 2026
4 checks passed
@rvagg
rvagg deleted the rvagg/upgrade-start-blocks branch September 10, 2026 12:50
@github-project-automation github-project-automation Bot moved this from 📌 Triage to 🎉 Done in FOC Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

3 participants