// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { ChainId } from "./ChainId"; import type { NodeRow } from "./NodeRow"; /** * A chain's nodes. */ export type NodeIndex = { /** * Which chain. */ chain: ChainId, /** * How many the telemetry feed says the chain has. * * Its own count, from `AddedChain`, and it will not match `nodes.len()` in * either direction. It is a snapshot the feed refreshes on its own * cadence, so nodes that joined since leave it *low* — 284 against 288 * listed, measured. Conversely a feed we joined late has told us about * fewer nodes than it knows, which leaves it high. Shown beside the count * rather than instead of it, because the difference is a real fact about * how each number was arrived at. */ reported: number, /** * The nodes, live ones first and then by name. */ nodes: Array, };