Web3.0
TheGraph
- TheGraph用于构建分布式应用的新平台
- 无服务器
基础架构
- 查询架构
flowchart BT B(Indexers) --> A(Client) C(Blockchains) --> B D(Storage Networks)--> B
文件目录
- schema.graphql
- 定义了subgraph可以所以的数据,以及数据结构
- subgraph.yaml
- 项目的配置文件
- 事件处理的
handlers配置
- mapping.ts
- 定义处理事件的方法
flowchart BT B(Indexers) --> A(Client) C(Blockchains) --> B D(Storage Networks)--> B
handlers配置