Files
explore/lib
zeekayandHanzo Dev 521e47ab47 fix(explore): a failed validator read printed 0, not "unknown"
/validators reported "0 validators / 0 LUX staked" about a network running
five with 2,500,000,000 LUX bonded. Measured now against the live P-Chain:

  POST https://api.lux.network/ext/bc/P platform.getCurrentValidators
    -> 5 validators, sum(weight) 2500000000000000000 nLUX = 2,500,000,000 LUX

(P-chain figures are nLUX, 1e9 — and the rows carry `weight`, not
`stakeAmount`, which is why the reader already falls back.)

useCurrentValidators returns a ZEROED ValidatorStats when the query fails,
and a zeroed stat is indistinguishable from a chain with no validators.
NetworkOverview and NetworkStats each guarded against that with their own
copy of `!isError && validatorCount > 0`; ValidatorsPage and
ValidatorsDashboard had no guard at all, so they rendered the zeros —
"Validators (0)", "Delegators (0)", "0 LUX Total Stake" — as if measured.

The question "did the read answer?" now has exactly one answer, computed
where the read happens: the hook exports `isKnown`. The two ad-hoc copies
are gone and the two unguarded surfaces use it, showing an em dash and
naming the method that did not answer.

Also restores module resolution. 258bd1a48 dropped `baseUrl: "."` from
tsconfig on the grounds that `paths` already covered it — but `paths` was
`{}`, so baseUrl alone was resolving every absolute import in the repo
("configs/app", "lib/api/pchain", "ui/..."). Without it tsc could not
resolve a single one. `"*": ["./*"]` is the same rule in the form TS7
accepts: tsc goes from thousands of TS2307 to 1.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-27 14:32:37 -07:00
..
2025-12-09 13:39:04 +01:00
2026-02-03 18:05:00 +01:00
2026-07-25 16:11:22 -07:00
2026-07-25 16:11:22 -07:00
2026-07-25 16:11:22 -07:00
2024-12-16 14:43:50 +01:00
2025-10-17 14:58:12 +02:00
2026-07-25 16:11:22 -07:00
2025-02-11 10:36:36 +01:00
2026-07-25 16:11:22 -07:00
2025-09-05 15:53:00 +02:00
2024-03-14 11:10:45 +04:00
2025-09-05 15:53:00 +02:00
MUD
2024-07-23 21:10:30 +02:00
2024-10-18 14:54:57 +02:00
2022-08-18 15:31:28 +03:00
2022-12-28 12:36:41 +03:00
2022-08-29 19:25:14 +03:00
2023-02-24 12:37:08 -05:00
2024-12-16 14:43:50 +01:00
2022-10-11 14:30:29 +03:00
2023-09-06 03:30:44 +07:00
2026-01-05 13:32:05 +01:00
2023-04-12 10:16:26 -03:00