Commit graph

2 commits

Author SHA1 Message Date
Local Dev
56e25d7938 sirius.x: fix electrum listunspent + profile dropdown across all pages
registrar.js: BNS.connect() now filters silentmode.st/electrum and
coinspectrum.duckdns.org:50011 out of the default electrum list. Those
endpoints are our own bns-indexer.js — beacon-only, serves get_history +
transaction.get but NOT listunspent for arbitrary scripthashes. Every
wallet op (getBalance, getUtxos, edit signing) needs listunspent, so
picking a beacon indexer first (which we did for best reachability) broke
every wallet unlock with "-32601 unsupported method: blockchain.
scripthash.listunspent". New `beaconOk: true` opts back in for pure-
resolution paths.

Rebuilt the browser bundle (site/js/bns-register.js) so the fix reaches
portal + admin + register.html + anything else that imports BNS.connect.

site-sirius-x/js/profile-menu.js: a small shared script that transforms
the "🔑 Sign in" nav pill into a dropdown menu on every sirius.x page.
Signed-out shows New wallet / Add wallet / WizardConnect + a link to the
sign-in page. Signed-in (reads localStorage 'siriusProfile') shows the
short address, My names, Admin, Sign out. Included via one <script defer>
tag on each of the 6 pages (landing / portal / admin / docs / theseus /
brand); dropdown CSS is inlined by the script itself so consumers don't
need a matching stylesheet.

Portal.html writing to localStorage.'siriusProfile' after sign-in is a
follow-up so the dropdown reflects state across pages — until then the
menu always shows the onboarding options.
2026-09-06 18:53:17 +02:00
Local Dev
e7d9921b26 sirius.x/admin: operator-only panel for TLD minting + registry view
/sirius-x/admin/ — sign in with the wallet ecosystem-known as operator to
mint a new TLD directly from the UI. Non-operator wallets see read-only
mode. The panel:
  * Sign-in with seed phrase, wiped from memory on sign-out.
  * Operator gate: address whitelist (chipnet, client-side; the covenant
    countersignature enforces it on-chain once mainnet lands).
  * TLD-registry table: fetched from GET /api/tlds, always visible.
  * Mint form: label + records JSON → BNS.registerTldWithBuiltInWallet →
    broadcast → auto-refresh registry.
  * Progress log streams every step from onProgress callback.
  * meta noindex,nofollow — operator surface, not for search discovery.

The "Register a TLD" card on the landing now links to /admin/ alongside
the "propose a TLD" affordance for public users.

Prereq: rebuilt bundle exports registerTldWithBuiltInWallet and
buildTldRegistrationTx (added by concurrent session). Bundle redeployed.
2026-09-06 18:46:45 +02:00