Skip to content

Commit 6e9497e

Browse files
authored
Merge pull request #223 from threefoldtech/ledger-docs-rebrand
docs: align documentation branding with Ledger
2 parents 62ed815 + bb83538 commit 6e9497e

10 files changed

Lines changed: 23 additions & 23 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ version-bump:
2525
typegen:
2626
npx squid-substrate-typegen typegen/typegen.json
2727

28-
# Discover all specVersions from all TFChain networks (mainnet, testnet, qanet, devnet)
28+
# Discover all specVersions from all Ledger Chain networks (mainnet, testnet, qanet, devnet)
2929
typegen-seed:
3030
./scripts/seed-versions.sh
3131

docs/advanced-development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This document covers the internal architecture of the tfchain_graphql indexer/pr
44

55
## 1. Pre-V14 Metadata and the typesBundle
66

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:
88

99
- **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.
1010
- **V14+**: metadata is self-describing. All type information is embedded in the metadata itself. The typesBundle is not used.

docs/development.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Developing on TFChain GraphQL
1+
# Developing on Ledger GraphQL
22

33
## Install
44

@@ -9,7 +9,7 @@ npm run build
99

1010
## Local Network
1111

12-
### Run TFChain
12+
### Run Ledger Chain
1313

1414
See https://github.com/threefoldtech/tfchain
1515

@@ -23,7 +23,7 @@ docker network create tfgrid_bknd
2323

2424
### Run Indexer
2525

26-
Check `indexer/.env` and adjust the websocket endpoint to your local TFChain address.
26+
Check `indexer/.env` and adjust the websocket endpoint to your local Ledger Chain address.
2727

2828
```bash
2929
cd indexer
@@ -36,7 +36,7 @@ Indexer services should now be started. Check if it's syncing properly by stream
3636
docker logs indexer-ingest-1 -f
3737
```
3838

39-
You should see TFChain blocks being processed:
39+
You should see Ledger Chain blocks being processed:
4040

4141
![Indexer logs](https://user-images.githubusercontent.com/73958772/209998096-3d5381d9-97ee-438d-824d-d92d997b42aa.png)
4242

@@ -60,7 +60,7 @@ npm run db:up
6060
npm run process
6161
```
6262

63-
You should see TFChain blocks being processed by the processor:
63+
You should see Ledger Chain blocks being processed by the processor:
6464

6565
![Processor logs](https://user-images.githubusercontent.com/73958772/210000023-c575d91a-382e-4fdc-85b3-199a135b493f.png)
6666

@@ -86,7 +86,7 @@ Now you can use the GraphQL playground at http://localhost:4000/graphql
8686

8787
## Adding New Runtime Versions
8888

89-
When TFChain has a new spec version with type changes, see [typeChanges.md](./typeChanges.md) for the full workflow. The short version:
89+
When Ledger Chain has a new spec version with type changes, see [typeChanges.md](./typeChanges.md) for the full workflow. The short version:
9090

9191
```bash
9292
# Point at your local chain (or a remote network via WS_URL=wss://...)

docs/production.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
## Requirements
44

5-
- TFChain network WebSocket URL (e.g., `wss://tfchain.dev.grid.tf/ws`)
5+
- Ledger Chain network WebSocket URL (e.g., `wss://tfchain.dev.grid.tf/ws`)
66
- Docker
77
- Docker Compose
88

99
## Architecture
1010

1111
The production stack has two independent layers:
1212

13-
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.
1414
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.
1515

1616
## Run the Setup
@@ -53,7 +53,7 @@ Configure `indexer/.env`:
5353

5454
| Variable | Description | Default |
5555
|----------|-------------|---------|
56-
| `WS_ENDPOINT` | TFChain node WebSocket URL | `ws://localhost:9944` |
56+
| `WS_ENDPOINT` | Ledger Chain node WebSocket URL | `ws://localhost:9944` |
5757
| `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` |
5858

5959
```bash
@@ -74,7 +74,7 @@ Configure `.env` in the project root:
7474
| `DB_PASS` | PostgreSQL password | `postgres` |
7575
| `DB_PORT` | PostgreSQL port | `5432` |
7676
| `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` |
77-
| `WS_URL` | TFChain node WebSocket URL (used for RPC calls) | `wss://tfchain.dev.grid.tf/ws` |
77+
| `WS_URL` | Ledger Chain node WebSocket URL (used for RPC calls) | `wss://tfchain.dev.grid.tf/ws` |
7878
| `TYPEORM_LOGGING` | TypeORM log level | `error` |
7979

8080
```bash

docs/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# TFChain GraphQL Documentation
1+
# Ledger GraphQL Documentation
22

33
## Development
44

docs/typeChanges.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ via the `tfchainVersions.jsonl` append-only log and Subsquid's typegen tool.
99
### Key concepts
1010

1111
- **`typegen/tfchainVersions.jsonl`** is an append-only log of runtime metadata
12-
from all TFChain networks. It is committed to git and is the single source of
12+
from all Ledger Chain networks. It is committed to git and is the single source of
1313
truth for type generation. Never delete or recreate this file — only append.
1414

1515
- **`typegen/typesBundle.json`** is a frozen historical artifact that helps the
1616
metadata explorer decode pre-V14 runtime metadata (specVersions before ~v100).
17-
TFChain now uses Polkadot SDK v1.1.0 with V14+ self-describing metadata, so
17+
Ledger Chain now uses Polkadot SDK v1.1.0 with V14+ self-describing metadata, so
1818
**this file does not need editing for new runtime versions**. See
1919
[Notes on typesBundle.json](#notes-on-typesbundlejson) below.
2020

@@ -38,7 +38,7 @@ known hash. The hash is derived from the event's SCALE-encoded type structure.
3838

3939
### Network deployment order matters
4040

41-
TFChain follows the deployment pipeline: **devnet → qanet → testnet → mainnet**.
41+
Ledger Chain follows the deployment pipeline: **devnet → qanet → testnet → mainnet**.
4242
The JSONL file should be seeded in this order so that typegen assigns version
4343
labels matching the earliest deployment. The `seed-versions.sh` script handles
4444
this automatically.
@@ -270,7 +270,7 @@ fully self-describing. The types bundle tells the metadata explorer and typegen
270270
how to decode those custom pallet types. Without it, the explorer can't read
271271
metadata from blocks at those old specVersions.
272272

273-
**Why it's frozen:** TFChain upgraded to Polkadot SDK v1.1.0, which uses V14+
273+
**Why it's frozen:** Ledger Chain upgraded to Polkadot SDK v1.1.0, which uses V14+
274274
self-describing metadata. Any new specVersion includes a complete type registry
275275
in its metadata — no external bundle needed. The types bundle only matters for
276276
the old pre-V14 blocks, which will never change.

indexer/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## typesBundle.json
44

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.
66

77
See [docs/typeChanges.md](../docs/typeChanges.md#notes-on-typesbundlejson) for details.
88

indexer/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ START_HEIGHT=0
1919

2020
| Variable | Description |
2121
|----------|-------------|
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` |
2323
| `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. |
2424

2525
## Docker Compose
@@ -41,7 +41,7 @@ docker compose down
4141
| Container | Image | Role |
4242
|-----------|-------|------|
4343
| 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 |
4545
| gateway | `subsquid/substrate-gateway` | GraphQL gateway over ingested data — the processor queries this |
4646
| explorer | `subsquid/substrate-explorer` | Web UI to browse raw ingested data and check sync status |
4747

scripts/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
| Script | Description |
1515
|--------|-------------|
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. |
1717
| `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`. |
1818

1919
## Data Files

scripts/seed-versions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
# seed-versions.sh — Discover all specVersions from TFChain networks
4+
# seed-versions.sh — Discover all specVersions from Ledger Chain networks
55
#
66
# Runs squid-substrate-metadata-explorer against each network and merges
77
# discovered specVersions into the master tfchainVersions.jsonl file.
@@ -54,7 +54,7 @@ if [ ! -f "$MASTER" ]; then
5454
echo "Created empty master file: $MASTER"
5555
fi
5656

57-
echo "=== TFChain specVersion Discovery ==="
57+
echo "=== Ledger Chain specVersion Discovery ==="
5858
echo "Master file: $MASTER"
5959
echo ""
6060

0 commit comments

Comments
 (0)