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
- Node v16x
- Docker
- Docker-compose
see docs
indexer
- docker-compose setup for the indexerdb
- Processor db migration filesscripts
- Scripts for generating initial state and development scriptssrc
- Sourcemappings
- Mapper functions for the indexer datamodel
- Generated models from theschema.graphql
filetypes
- Type files that require manual edit if the schema changes / or chain types changeprocessor.ts
- Processor entrypoint
typegen
- 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 config
schema.graphql
- The graphql schema file, changes to this file will results in changes to the models (src/models
)