paritytech / paritytech/host-rust-core
Add the mainnet network preset once the dotNS mainnet deploy lands
Open
@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-chainChainEndpointconstants; the SPEC §14.1 table andjs/packages/truapi/src/well-known-chains.tsare 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 /usernameswith "dotNS gateway is not enabled in this environment"; SPEC §14.1 documents the constraint). - A rework of the
every_preset_is_a_test_networkguard 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.rsdocuments this on theNetworkenum). - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.