Subsquid is used to index and provide a graphql interface on top of tfchain.
The substrate events are processed in a multi-step pipeline:
Tfchain => Squid Indexer => Indexer GraphQL gateway => Squid Processor => Database => Query Node GraphQL endpoint
see docs
indexer
- docker-compose setup for the indexerdb
- Processor db migration filesscripts
- Scripts for generating initial state and development scriptssrc
- Source
mappings
- Mapper functions for the indexer datamodel
- Generated models from the schema.graphql
filetypes
- Type files that require manual edit if the schema changes / or chain types changeprocessor.ts
- Processor entrypointtypegen
- Where the declaration files are generated from (used for development)
tfchainVersions.jsonl
- Generated tfchain runtime versions and their datatypegen.json
- Typegen configtypesBundle.json
- Typegen bundle configschema.graphql
- The graphql schema file, changes to this file will results in changes to the models (src/models
)