chore: initial commit for v0.0.1
DChain single-node blockchain + React Native messenger client. Core: - PBFT consensus with multi-sig validator admission + equivocation slashing - BadgerDB + schema migration scaffold (CurrentSchemaVersion=0) - libp2p gossipsub (tx/v1, blocks/v1, relay/v1, version/v1) - Native Go contracts (username_registry) alongside WASM (wazero) - WebSocket gateway with topic-based fanout + Ed25519-nonce auth - Relay mailbox with NaCl envelope encryption (X25519 + Ed25519) - Prometheus /metrics, per-IP rate limit, body-size cap Deployment: - Single-node compose (deploy/single/) with Caddy TLS + optional Prometheus - 3-node dev compose (docker-compose.yml) with mocked internet topology - 3-validator prod compose (deploy/prod/) for federation - Auto-update from Gitea via /api/update-check + systemd timer - Build-time version injection (ldflags → node --version) - UI / Swagger toggle flags (DCHAIN_DISABLE_UI, DCHAIN_DISABLE_SWAGGER) Client (client-app/): - Expo / React Native / NativeWind - E2E NaCl encryption, typing indicator, contact requests - Auto-discovery of canonical contracts, chain_id aware, WS reconnect on node switch Documentation: - README.md, CHANGELOG.md, CONTEXT.md - deploy/single/README.md with 6 operator scenarios - deploy/UPDATE_STRATEGY.md with 4-layer forward-compat design - docs/contracts/*.md per contract
This commit is contained in:
78
node/explorer/relays.html
Normal file
78
node/explorer/relays.html
Normal file
@@ -0,0 +1,78 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Relay Nodes | DChain Explorer</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/assets/explorer/style.css">
|
||||
<script src="https://unpkg.com/lucide@latest"></script>
|
||||
<script defer src="/assets/explorer/common.js"></script>
|
||||
<script defer src="/assets/explorer/relays.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header class="topnav">
|
||||
<div class="topnav-inner">
|
||||
<a class="topnav-brand" href="/">
|
||||
<span class="brand-gem">◆</span>
|
||||
<span class="brand-name">DChain</span>
|
||||
</a>
|
||||
<nav class="topnav-links">
|
||||
<a href="/contract">Contracts</a>
|
||||
<a href="/tokens">Tokens</a>
|
||||
<a href="/validators">Validators</a>
|
||||
<a href="/relays" style="color:var(--text)">Relay Nodes</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="page-body">
|
||||
|
||||
<!-- page header -->
|
||||
<div class="list-page-header">
|
||||
<div class="list-page-header-left">
|
||||
<div class="list-page-icon list-page-icon-relay"><i data-lucide="radio"></i></div>
|
||||
<div>
|
||||
<h1 class="list-page-title">Relay Nodes</h1>
|
||||
<p class="list-page-sub">
|
||||
Nodes registered on-chain as NaCl E2E relay service providers.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-page-header-right">
|
||||
<div class="list-page-stat">
|
||||
<div class="list-page-stat-val" id="relayCount">—</div>
|
||||
<div class="list-page-stat-label">Relays</div>
|
||||
</div>
|
||||
<button id="refreshBtn" class="pill-btn"><i data-lucide="refresh-cw"></i> Refresh</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="status" class="hero-status" style="margin-bottom:12px"></div>
|
||||
|
||||
<div class="panel" style="padding:0">
|
||||
<div class="table-wrap">
|
||||
<table id="relayTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:36px">#</th>
|
||||
<th>Node Address</th>
|
||||
<th>X25519 Relay Key</th>
|
||||
<th>Fee / msg</th>
|
||||
<th>Multiaddr</th>
|
||||
<th style="width:100px">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="relayBody">
|
||||
<tr><td colspan="6" class="tbl-empty">Loading…</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user