Theseus Navigator: - Firefox-style toolbar: SVG back/fwd/reload/home buttons - security padlock badge in the address bar opens a floating site-info overlay VIEW (on top of the page, never pushes content down) - Edge-style favorites bar (shown only on the new-tab/home page) - search-engine picker (DuckDuckGo/Google/Bing/Brave/Startpage) - Theseus logo moved right, opens Settings; native menu removed - address bar doubles as search; bottom resolver status line Argus: - BNS-only indexer: an electrum endpoint over a bare BCHN node (watches just the beacon, caches txs so no txindex needed) + test - registry lifecycle / portfolio / name-index modules Site restructure (nav/apps/store/hermes/choose) + runbook notes.
21 lines
886 B
JavaScript
21 lines
886 B
JavaScript
// Usage: node src/resolve.js [name] — resolves one name, or lists all.
|
|
import { loadWallet } from "./lib/wallet.js";
|
|
import { buildIndex, resolveName } from "./lib/bns.js";
|
|
|
|
const [name] = process.argv.slice(2);
|
|
const wallet = await loadWallet();
|
|
|
|
if (name) {
|
|
const entry = await resolveName(wallet.provider, name);
|
|
console.log(entry ?? `NXDOMAIN: ${name}`);
|
|
} else {
|
|
const index = await buildIndex(wallet.provider);
|
|
if (index.size === 0) console.log("(no names registered yet)");
|
|
for (const e of index.values()) {
|
|
// `e.name` is the on-chain form: a bare label for .bch, "<label>.<tld>" for
|
|
// anything else. Appending ".bch" unconditionally printed "demo.p2p.bch".
|
|
const display = e.name.includes(".") ? e.name : `${e.name}.bch`;
|
|
console.log(`${display} -> ${JSON.stringify(e.records)} [category ${e.category.slice(0, 12)}…]`);
|
|
}
|
|
}
|
|
process.exit(0);
|