Add SubQuery indexer benchmark to ERC20 transfer events case#6
Closed
DZakh wants to merge 2 commits intodz/open-indexer-benchmarkfrom
Closed
Add SubQuery indexer benchmark to ERC20 transfer events case#6DZakh wants to merge 2 commits intodz/open-indexer-benchmarkfrom
DZakh wants to merge 2 commits intodz/open-indexer-benchmarkfrom
Conversation
Adds a SubQuery Network indexer implementation alongside the existing Envio and Ponder cases. Includes the project manifest, GraphQL schema, mapping handlers for Transfer/Approval events, Docker Compose stack, and benchmark runner integration. https://claude.ai/code/session_01FN9sUj2bn1fq1msFgiQ8B2
Drop the manually maintained Implementations list from the case README. Bump @subql/cli to ^6.4.1 and @subql/node-ethereum to ^6.2.1. https://claude.ai/code/session_01FN9sUj2bn1fq1msFgiQ8B2
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
This PR adds SubQuery as a new indexer to the ERC20 transfer events benchmark suite, enabling performance comparison with existing indexers (Ponder, Rindexer, Squid, and Envio).
Key Changes
Benchmark Integration: Added
benchmarkSubQuery()function to the benchmark runner that:SubQuery Project Setup: Created a complete SubQuery Ethereum indexer configuration:
project.ts: Defines the indexer configuration targeting the RocketTokenRETH contract (0xae78736cd615f374d3085123a210448e74fc6393) starting at block 18,600,000schema.graphql: Defines entities for Account, TransferEvent, Allowance, and ApprovalEventmappingHandlers.ts: Implements event handlers for Transfer and Approval events with account balance tracking and allowance managementpackage.json: Specifies SubQuery dependencies and build scriptsDocker Infrastructure: Added Docker Compose configuration for running SubQuery with:
CI/CD: Added GitHub Actions workflow job to validate SubQuery build and codegen steps
Configuration Files: Added TypeScript config, .gitignore, and environment example file
Implementation Details
_metadata.lastProcessedHeightand event countshttps://claude.ai/code/session_01FN9sUj2bn1fq1msFgiQ8B2