fix: envio indexer config + separate per-reader checkpoint tracking#650
Merged
preethamr merged 4 commits intomainnet-prodfrom Apr 2, 2026
Merged
fix: envio indexer config + separate per-reader checkpoint tracking#650preethamr merged 4 commits intomainnet-prodfrom
preethamr merged 4 commits intomainnet-prodfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Envio indexer configuration to capture gasLimit and refactors Cartographer/Subgraph reading to track and persist checkpoints per reader implementation (e.g., Goldsky vs Envio), with corresponding test updates.
Changes:
- Add
gasLimitcapture in the Envio indexer (field_selection, event handler metadata extraction, and GraphQL schema fields). - Introduce per-reader checkpoint load/save utilities and update Cartographer operations to use reader-specific cursors.
- Extend the subgraph adapter composite reader to return merged results along with per-reader checkpoint updates; update unit tests/mocks accordingly.
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/indexer/src/EventHandlers.ts | Populate gasLimit from transaction metadata. |
| packages/indexer/schema.graphql | Expose gasLimit on multiple entities for parity. |
| packages/indexer/config.yaml | Include gasLimit in Envio transaction_fields selection. |
| packages/agents/cartographer/poller/test/mock.ts | Update subgraph adapter mocks for new *WithCheckpoints APIs and reader types. |
| packages/agents/cartographer/poller/test/lib/operations/monitor.spec.ts | Adjust monitor tests for per-reader checkpoint calls. |
| packages/agents/cartographer/poller/test/lib/operations/invoices.spec.ts | Adjust invoice/deposit tests for per-reader checkpoint saving semantics. |
| packages/agents/cartographer/poller/test/lib/operations/intents.spec.ts | Update intents tests to use new checkpoint-returning reader APIs. |
| packages/agents/cartographer/poller/test/lib/operations/depositors.spec.ts | Update depositor tests for per-reader checkpoints. |
| packages/agents/cartographer/core/src/operations/monitor.ts | Use per-reader checkpoints for message polling and persistence. |
| packages/agents/cartographer/core/src/operations/invoices.ts | Use per-reader checkpoints for hub invoices/deposits operations. |
| packages/agents/cartographer/core/src/operations/intents.ts | Use per-reader checkpoints for origin/destination/settlement intents and orders. |
| packages/agents/cartographer/core/src/operations/helper.ts | Treat domains as supported if Envio is available (in addition to Goldsky URLs). |
| packages/agents/cartographer/core/src/operations/depositors.ts | Use per-reader checkpoints for depositor event ingestion. |
| packages/agents/cartographer/core/src/operations/checkpoints.ts | New helper module to load/save checkpoints keyed by reader type. |
| packages/adapters/subgraph/src/reader.ts | Add readerType, add *WithCheckpoints APIs, and implement per-reader checkpoint merging helpers. |
| packages/adapters/subgraph/src/lib/types/subgraph.ts | Introduce ReaderCheckpoints type. |
| packages/adapters/subgraph/src/graph/reader.ts | Set Graph reader readerType to goldsky. |
| packages/adapters/subgraph/src/envio/reader.ts | Set Envio reader readerType to envio. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
preethamr
approved these changes
Apr 2, 2026
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.
🤖 Linear
Closes CONG-XXX