You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced-development.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This document covers the internal architecture of the tfchain_graphql indexer/pr
4
4
5
5
## 1. Pre-V14 Metadata and the typesBundle
6
6
7
-
Substrate runtime metadata comes in different versions. TFChain has two eras:
7
+
Substrate runtime metadata comes in different versions. Ledger Chain has two eras:
8
8
9
9
-**V12 (pre-V14)**: metadata is NOT self-describing for custom types. The `typesBundle.json` file provides type definitions that tell the decoder how to interpret SCALE-encoded data.
10
10
-**V14+**: metadata is self-describing. All type information is embedded in the metadata itself. The typesBundle is not used.
1.**Indexer (archive)** — ingests raw blocks from a TFChain node into CockroachDB. Provides a GraphQL gateway for the processor to query block data.
13
+
1.**Indexer (archive)** — ingests raw blocks from a Ledger Chain node into CockroachDB. Provides a GraphQL gateway for the processor to query block data.
14
14
2.**Processor + Query Node** — reads events from the indexer, maps them to domain entities (nodes, farms, contracts, etc.), stores in PostgreSQL, and serves the public GraphQL API.
| `START_HEIGHT` | Block height to start ingesting from. `0` = genesis (full history). Set higher only for testing or partial deployments — the processor will miss events before this height. | `0` |
58
58
59
59
```bash
@@ -74,7 +74,7 @@ Configure `.env` in the project root:
74
74
| `DB_PASS` | PostgreSQL password | `postgres` |
75
75
| `DB_PORT` | PostgreSQL port | `5432` |
76
76
| `INDEXER_ENDPOINT_URL` | Indexer GraphQL gateway URL. Use `http://gateway:8000/graphql` for Docker (shared network), `http://localhost:8888/graphql` for local dev | `http://gateway:8000/graphql` |
Copy file name to clipboardExpand all lines: indexer/development.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## typesBundle.json
4
4
5
-
The `typesBundle.json` file maps Substrate custom types for pre-V14 metadata (specVersions before ~v100). This file is **frozen** — TFChain now uses Polkadot SDK v1.1.0 with V14+ self-describing metadata, so new runtime versions do not require changes to this file.
5
+
The `typesBundle.json` file maps Substrate custom types for pre-V14 metadata (specVersions before ~v100). This file is **frozen** — Ledger Chain now uses Polkadot SDK v1.1.0 with V14+ self-describing metadata, so new runtime versions do not require changes to this file.
6
6
7
7
See [docs/typeChanges.md](../docs/typeChanges.md#notes-on-typesbundlejson) for details.
Copy file name to clipboardExpand all lines: indexer/readme.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ START_HEIGHT=0
19
19
20
20
| Variable | Description |
21
21
|----------|-------------|
22
-
|`WS_ENDPOINT`|TFChain node WebSocket URL. e.g., `wss://tfchain.dev.grid.tf` or `ws://localhost:9944`|
22
+
|`WS_ENDPOINT`|Ledger Chain node WebSocket URL. e.g., `wss://tfchain.dev.grid.tf` or `ws://localhost:9944`|
23
23
|`START_HEIGHT`| Block height to start ingesting from. `0` = genesis (full history). Setting this higher skips earlier blocks — the processor will miss any events before this height. Only use non-zero values for testing or partial deployments. |
24
24
25
25
## Docker Compose
@@ -41,7 +41,7 @@ docker compose down
41
41
| Container | Image | Role |
42
42
|-----------|-------|------|
43
43
| cockroachdb |`cockroachdb/cockroach`| Database for storing raw indexed block data |
44
-
| ingest |`subsquid/substrate-ingest`| Connects to the TFChain node and ingests blocks into the database |
44
+
| ingest |`subsquid/substrate-ingest`| Connects to the Ledger Chain node and ingests blocks into the database |
45
45
| gateway |`subsquid/substrate-gateway`| GraphQL gateway over ingested data — the processor queries this |
46
46
| explorer |`subsquid/substrate-explorer`| Web UI to browse raw ingested data and check sync status |
Copy file name to clipboardExpand all lines: scripts/readme.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
14
14
| Script | Description |
15
15
|--------|-------------|
16
-
|`seed-versions.sh`| Discover all specVersions from all TFChain networks (devnet, qanet, testnet, mainnet) and populate `typegen/tfchainVersions.jsonl`. Used for initial seeding or recovery. |
16
+
|`seed-versions.sh`| Discover all specVersions from all Ledger Chain networks (devnet, qanet, testnet, mainnet) and populate `typegen/tfchainVersions.jsonl`. Used for initial seeding or recovery. |
17
17
|`merge-versions.js`| Append-only merger for JSONL files. Merges new specVersions into the existing version log, sorted by specVersion. Used by `make typegen-add`. |
0 commit comments