SubQuery Indexer
The SubQuery Indexer is a crucial component of the ICP-EVM Proxy project, designed to index and make queryable the EVM-compatible data translated by the EVM Adapter Proxy. This Node.js-based service provides a GraphQL API for efficient data retrieval and analysis.
Key Features
- Data Indexing: Processes and indexes EVM-compatible event logs translated from ICRC-3 logs.
- GraphQL API: Exposes a flexible GraphQL API for querying indexed data.
- PostgreSQL Integration: Utilizes PostgreSQL for persistent storage and efficient querying of indexed data.
Implementation Overview
The SubQuery Indexer is built using the SubQuery framework, which provides a robust infrastructure for blockchain data indexing. The main components include:
- Schema Definition: Defines the structure of the data to be indexed.
- Mapping Functions: Processes incoming events and transforms them into the defined schema.
- Project Configuration: Specifies the data source, network, and other indexing parameters.
Data Model
The project defines a Log
entity to represent the events from the EVM-compatible logs: