paritytech / paritytech/host-rust-core

Add the mainnet network preset once the dotNS mainnet deploy lands

Open
#474 1 comment 0 reactions 1 assignee View on GitHub

@valentinfernandez1 is already working on this.

Since Sep 11, 2026.

R2 infra
Dominant language
Swift
Stars
10
Forks
3
Avg merge
1d 10h
Merged PRs (30d)
148

Description

The last open box of #397. Everything else about the dotNS-on-Asset-Hub username migration is merged (#426); the mainnet preset cannot be prepared in advance because the contract addresses only exist once the deploy runs (paritytech/dotns#223), and hand-transcribing them would repeat the drift paritytech/dotns#221 documents.

What the preset needs when the deploy lands:

  • Mainnet People / Bulletin / Asset Hub endpoints and genesis hashes in truapi-host-cli/src/network.rs (per-chain ChainEndpoint constants; the SPEC §14.1 table and js/packages/truapi/src/well-known-chains.ts are pinned to the presets by tests, so all three move together).
  • The identity backend base for production, with the dotNS gateway enabled there (the testnet-next environment currently answers POST /usernames with "dotNS gateway is not enabled in this environment"; SPEC §14.1 documents the constraint).
  • A rework of the every_preset_is_a_test_network guard and the CLI account store: it keeps disposable BIP-39 entropy on the assumption that every preset is a test network, so a production preset must not share that storage as-is (network.rs documents this on the Network enum).
  • Ideally the addresses read from the published deployments.json rather than transcribed (paritytech/dotns#118 / #222 ordering, per paritytech/dotns#223).

Blocked on: the dotNS mainnet deploy (paritytech/dotns#223).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.