fix(indexer): make the reindex correct against the live chain - #125
Merged
Merged
Conversation
Fixing issues encountered while reindexing with PoRep market contracts: * eth_getLogs range limit hit but not detected * PoRepMarket ABI doesn't match commit, use verified deployed implementation * Drop PONDER_EXPERIMENTAL_DB=platform to reenable build-id check
There was a problem hiding this comment.
🟢 Approval recommended
The ABI, ingestion code, schema definitions, and tests are updated consistently to match deployed PoRepMarket event behavior and the Lotus log-range constraint.
Pull request overview
This PR updates the indexer to match live PoRepMarket mainnet behavior during reindexing, addressing log-range limits and correcting ABI/schema mismatches that caused decoding and persistence issues.
Changes:
- Align PoRepMarket ABI + decoding test with the verified deployed implementation (not the repo ABI), removing the non-emitted
manifestHashfromDealProposalCreated. - Update PoRep deal ingestion + schema definitions to drop
manifestHashpersistence and keep the stored event fields consistent. - Configure Ponder to respect Lotus
eth_getLogsblock-range limits and remove the experimental DB setting from docker-compose to restore build-id checking.
File summaries
| File | Description |
|---|---|
| indexer/test/porep-events.test.ts | Updates ABI decoding expectations for DealProposalCreated to match the deployed event layout. |
| indexer/src/schema-defs.ts | Removes manifestHash from the PoRep deal proposal table definition and updates its description. |
| indexer/src/porep.ts | Stops reading/inserting manifestHash for DealProposalCreated events. |
| indexer/ponder.config.ts | Sets ethGetLogsBlockRange to accommodate Lotus eth_getLogs request limits. |
| indexer/package.json | Bumps the custom Ponder fork version. |
| indexer/package-lock.json | Locks the updated custom Ponder fork version and integrity metadata. |
| indexer/abis/PoRepMarket.ts | Replaces ABI with the verified deployed implementation version (removing manifestHash from emitted event ABI). |
| docker-compose.yml | Removes PONDER_EXPERIMENTAL_DB=platform to re-enable build-id checks. |
Review details
Files not reviewed (1)
- indexer/package-lock.json: Generated file
- Files reviewed: 7/8 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.
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.
Fixing issues encountered while reindexing with PoRep market contracts: