Skip to content

feat(chains): resync catalogs — Decred (MAG-5052) - #318

Merged
nimrod-teich merged 2 commits into
mainfrom
mag-5052
Nov 9, 2026
Merged

nimrod-teich merged 2 commits into
mainfrom
mag-5052

Conversation

@nimrod-teich

@nimrod-teich nimrod-teich commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

lava-specs added dcr.json (Decred, lava-specs #186, merged 2026-11-08). The Chain catalogs ↔ lava-specs drift gate has not run on main since then, so main still reads green. Its next run fails. Reproduced locally at dd4dc0ba against lava-specs 8715592: new chains (2): DCR, DCRT, new specs (2): DCR, DCRT, NO explorer (2): DCR, DCRT. dcr.json is the only spec that changed since the Siacoin resync (#316). This PR regenerates all five catalogs.

  • Decred arrived. DCR is the mainnet and DCRT testnet3, which imports it. Both serve dcrd's JSON-RPC only.

  • New decred family. dcrd descends from btcd and shares bitcoind's method names, but the spec deliberately does not import BTC and serves no eth_*. So deriveFamily labelled it evm through its last-resort fallback, as it did Kaspa and Siacoin. Decred's ticket-pool methods (getstakedifficulty, getticketpoolvalue) now identify it. promql.test.ts asserts that DCR and DCRT resolve to it.

  • Try-it needs no new hints. DCR inherits seven runnable bitcoind-style defaults by method name: getblockchaininfo, getblockcount, getbestblockhash, getblockhash [800000], getnetworkinfo, getmempoolinfo, getdifficulty.

    • Live check: all seven answered on a live mainnet node in the maintainer run on lava-specs #186 (2026-10-06, dcrd 2.1.6).
    • Height 800000 exists on both networks. Mainnet is at 1,130,998 (dcrdata, today). dcrd's testnet3 assume-valid block is 1,780,540 (chaincfg/testnetparams.go).
    • No Decred-only hints. No keyless dcrd RPC exists, so I could not fire any, and none were added. The ticket-pool and treasury methods are listed without a default.
    • no-runnable-defaults.generated.json is unchanged.
  • Icon. decred.svg uses web3icons' tokens/mono/DCR glyph (web3icons has no network entry for Decred) on the source background's #2970FF. White reaches 4.32:1, so the glyph stays white. DCRT resolves to the same file. The README records the provenance.

  • Explorers.

    Chain Host Shape How verified
    DCR dcrdata.decred.org block (/block/<height>) browser 2026-11-09: "Block #1000", hash 000000…db7012, mined 2016-02-11
    DCRT none, recorded in the overlay testnet.dcrdata.org (the testnet link on dcrdata) answers 503 to curl and timed out in the browser. It was also 503 on 2026-10-06, per lava-specs chore(deps-dev): bump eslint from 10.6.0 to 10.10.0 #186.

    Source: decred.org links dcrdata.decred.org as its explorer. no-explorer.generated.json gains DCRT.

  • No --refresh. Decred is neither EVM nor Cosmos, so chainlist and chain-registry cannot supply its explorer, and the registry snapshot is left as it is.

  • Comment fix. chain-methods.ts said the map has "32 chain-type families". It has 34 with this PR, so the comment now points at ChainFamily instead of a number.

Release

0.55.0. Open PR #310 still claims 0.53.0, so it needs a re-bump whenever it merges.

298 chains, 254 with an explorer, 207 primaries linking a height.

Test plan

  • node apps/web/scripts/check-spec-sync.mjs with LAVA_SPECS_DIR set to lava-specs 8715592: ✓ for all five catalogs
  • pnpm typecheck
  • pnpm test: shared 1348, web 519, db 80, api 1118, all passing
  • pnpm lint: 0 errors (23 warnings, the baseline)
  • Icon rasterised at 96 px beside its neighbours and checked by eye (below)
  • dcrdata block page watched in a browser (below)

Screenshots

Icon: decred at 96 px beside siacoin, kaspa, monero and bitcoin on the dashboard's dark surface.

Decred icon contact sheet

DCR: dcrdata.decred.org/block/1000.

dcrdata mainnet block 1000

#Closes MAG-5052

Jira ticket: MAG-5052

lava-specs added dcr.json (DCR mainnet, DCRT testnet3, dcrd JSON-RPC
only), which turns the drift gate red. Regenerate the chain map, explorer
catalog and Try-it catalog against lava-specs main (8715592).

Decred gets its own family. Its spec does not import BTC and serves no
eth_*, so deriveFamily labelled it EVM through its last-resort fallback,
as it did Kaspa and Siacoin. The ticket-pool methods only Decred's
proof-of-stake serves now identify it.

Try-it needs no new hints: DCR inherits the seven bitcoind-style defaults
by method name, and all seven answered on a live mainnet node in the
maintainer run on lava-specs #186. Height 800000 exists on both networks.

The icon is web3icons' tokens/mono/DCR glyph on the source's #2970FF,
white glyph (4.32:1). The mainnet explorer is dcrdata.decred.org, the one
decred.org links to; its block page was watched rendering block 1000. The
testnet has none: testnet.dcrdata.org answers 503.
@nimrod-teich
nimrod-teich requested a review from a team as a code owner November 9, 2026 12:24
@nimrod-teich
nimrod-teich merged commit f404956 into main Nov 9, 2026
11 checks passed
@nimrod-teich
nimrod-teich deleted the mag-5052 branch November 9, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant