-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
449 lines (424 loc) · 23.8 KB
/
index.html
File metadata and controls
449 lines (424 loc) · 23.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SuperKnet — KnexCoin Block Explorer</title>
<meta name="description" content="SuperKnet — Real-time block explorer for KnexCoin. Search accounts, view transactions, and monitor the network.">
<meta name="keywords" content="KnexCoin, block explorer, cryptocurrency, blockchain, transactions, SuperKnet">
<meta name="author" content="SuperKnet">
<meta name="robots" content="index, follow">
<meta name="theme-color" content="#f8f8f8">
<link rel="canonical" href="https://superknet.com">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://superknet.com">
<meta property="og:title" content="SuperKnet — KnexCoin Block Explorer">
<meta property="og:description" content="Real-time block explorer for KnexCoin. Search accounts, view transactions, and monitor the network.">
<meta property="og:image" content="https://superknet.com/images/og-image.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:site_name" content="SuperKnet">
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://superknet.com">
<meta name="twitter:title" content="SuperKnet — KnexCoin Block Explorer">
<meta name="twitter:description" content="Real-time block explorer for KnexCoin. Search accounts, view transactions, and monitor the network.">
<meta name="twitter:image" content="https://superknet.com/images/og-image.png">
<!-- Favicons -->
<link rel="icon" type="image/svg+xml" href="images/favicon.svg">
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
<link rel="icon" type="image/png" sizes="96x96" href="images/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
<link rel="manifest" href="images/site.webmanifest">
<!-- Apple Web App -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="apple-mobile-web-app-title" content="SuperKnet">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Oxygen:wght@700&family=JetBrains+Mono:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<!-- Three.js (for energy stream background) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<!-- QR codes -->
<script src="https://cdn.jsdelivr.net/npm/qrcode-generator@1.4.4/qrcode.min.js"></script>
<!-- CSS Modules -->
<link rel="stylesheet" href="css/variables.css">
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/features.css">
</head>
<body>
<!-- Three.js Energy Stream Background -->
<canvas id="energyCanvas"></canvas>
<!-- Header -->
<header class="header">
<div class="header-inner">
<a href="/" class="logo" title="SuperKnet Home">
<img class="logo-icon" src="images/favicon.svg" alt="SuperKnet">
<span class="logo-text">SUPERKNET</span>
<span class="network-badge testnet">TESTNET</span>
</a>
<div class="header-stats" id="headerStats">
<div class="stat-pill" id="statBlocks" title="Total blocks">
<span class="stat-label">Blocks</span>
<span class="stat-value" id="blockCount">--</span>
</div>
<div class="stat-pill" id="statAccounts" title="Known accounts">
<span class="stat-label">Accounts</span>
<span class="stat-value" id="accountCount">--</span>
</div>
<div class="stat-pill" id="statUptime" title="Node uptime">
<span class="stat-label">Uptime</span>
<span class="stat-value" id="nodeUptime">--</span>
</div>
<div class="stat-pill ws-status" id="wsStatus" title="WebSocket status">
<span class="ws-dot"></span>
<span class="stat-value">Connecting</span>
</div>
<button class="btn-icon header-tool-btn" id="themeToggle" title="Toggle theme">
<svg id="themeIcon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="5"/>
<line x1="12" y1="1" x2="12" y2="3"/>
<line x1="12" y1="21" x2="12" y2="23"/>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>
<line x1="1" y1="12" x2="3" y2="12"/>
<line x1="21" y1="12" x2="23" y2="12"/>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>
</svg>
</button>
<button class="btn-icon header-tool-btn" id="soundToggle" title="Toggle sound (off)">
<svg id="soundIcon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/>
<line x1="23" y1="9" x2="17" y2="15"/><line x1="17" y1="9" x2="23" y2="15"/>
</svg>
</button>
</div>
</div>
</header>
<!-- Search -->
<section class="search-section">
<div class="search-container">
<div class="search-box">
<svg class="search-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/>
</svg>
<input type="text" id="searchInput" placeholder="Search by address, block hash, or amount..."
autocomplete="off" spellcheck="false" autocapitalize="off">
<kbd class="search-shortcut" id="searchShortcut">/</kbd>
<button class="search-btn" id="searchBtn" title="Search">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<path d="M5 12h14M12 5l7 7-7 7"/>
</svg>
</button>
</div>
<div class="search-suggestions hidden" id="searchSuggestions"></div>
</div>
</section>
<!-- View Tabs -->
<nav class="view-tabs" id="viewTabs">
<div class="tabs-inner">
<button class="view-tab active" data-view="feed" id="tabFeed">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="14" height="14">
<path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/>
</svg>
Live Feed
</button>
<button class="view-tab" data-view="stats" id="tabStats">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="14" height="14">
<path d="M18 20V10M12 20V4M6 20v-6"/>
</svg>
Network
</button>
<button class="view-tab" data-view="richlist" id="tabRichList">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="14" height="14">
<path d="M12 1a3 3 0 00-3 3v8a3 3 0 006 0V4a3 3 0 00-3-3z"/>
<path d="M19 10v2a7 7 0 01-14 0v-2M12 19v4M8 23h8"/>
</svg>
Rich List
</button>
<button class="view-tab" data-view="blocks" id="tabBlocks">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="14" height="14">
<rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/>
<rect x="3" y="14" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/>
</svg>
Blocks
</button>
<button class="view-tab" data-view="core" id="tabCore">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="14" height="14">
<circle cx="12" cy="12" r="3"/><path d="M12 1v4M12 19v4M4.22 4.22l2.83 2.83M16.95 16.95l2.83 2.83M1 12h4M19 12h4M4.22 19.78l2.83-2.83M16.95 7.05l2.83-2.83"/>
</svg>
Core
</button>
</div>
</nav>
<!-- Main Content -->
<main class="main">
<!-- Live Feed (default view) -->
<div class="content-panel" id="liveFeedPanel">
<div class="panel-header">
<h2 class="panel-title">
<span class="pulse-dot"></span>
Live Transaction Feed
</h2>
<div class="panel-actions">
<div class="feed-filter-group" id="feedFilterGroup">
<button class="filter-chip active" data-filter="all" title="All types">All</button>
<button class="filter-chip" data-filter="send" title="Send only">Send</button>
<button class="filter-chip" data-filter="receive" title="Receive only">Recv</button>
<button class="filter-chip" data-filter="open" title="Open only">Open</button>
<button class="filter-chip" data-filter="change" title="Change only">Chg</button>
<button class="filter-chip" data-filter="stake" title="Stake/Unstake">Stake</button>
</div>
<button class="btn-icon" id="pauseBtn" title="Pause feed">
<svg viewBox="0 0 24 24" fill="currentColor"><rect x="6" y="4" width="4" height="16"/><rect x="14" y="4" width="4" height="16"/></svg>
</button>
<button class="btn-icon" id="clearBtn" title="Clear feed">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2"/></svg>
</button>
</div>
</div>
<div class="feed-container" id="feedContainer">
<div class="feed-empty" id="feedEmpty">
<div class="feed-empty-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" width="48" height="48">
<path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/>
</svg>
</div>
<p>Waiting for transactions...</p>
<p class="feed-empty-sub">Live blocks will appear here as they're confirmed on the network</p>
</div>
</div>
</div>
<!-- Network Stats Panel -->
<div class="content-panel hidden" id="statsPanel">
<div class="panel-header">
<h2 class="panel-title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="16" height="16">
<path d="M18 20V10M12 20V4M6 20v-6"/>
</svg>
Network Statistics
</h2>
</div>
<div class="stats-grid" id="statsGrid"></div>
</div>
<!-- Rich List Panel -->
<div class="content-panel hidden" id="richListPanel">
<div class="panel-header">
<h2 class="panel-title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="16" height="16">
<path d="M12 1a3 3 0 00-3 3v8a3 3 0 006 0V4a3 3 0 00-3-3z"/>
<path d="M19 10v2a7 7 0 01-14 0v-2M12 19v4M8 23h8"/>
</svg>
Rich List — Top Accounts
</h2>
<div class="panel-actions">
<button class="btn-small" id="refreshRichList" title="Refresh">Refresh</button>
</div>
</div>
<div class="richlist-container" id="richlistContainer">
<div class="feed-empty"><span class="spinner-inline"></span> Loading rich list...</div>
</div>
</div>
<!-- Blocks List Panel -->
<div class="content-panel hidden" id="blocksPanel">
<div class="panel-header">
<h2 class="panel-title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="16" height="16">
<rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/>
<rect x="3" y="14" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/>
</svg>
Recent Blocks
</h2>
</div>
<div class="blocks-container" id="blocksContainer">
<div class="feed-empty"><span class="spinner-inline"></span> Loading blocks...</div>
</div>
</div>
<!-- Core — Validator Topology Panel -->
<div class="content-panel hidden" id="corePanel">
<div class="panel-header">
<h2 class="panel-title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="16" height="16">
<circle cx="12" cy="12" r="3"/><path d="M12 1v4M12 19v4M4.22 4.22l2.83 2.83M16.95 16.95l2.83 2.83M1 12h4M19 12h4M4.22 19.78l2.83-2.83M16.95 7.05l2.83-2.83"/>
</svg>
Core — Validator Topology
</h2>
<div class="panel-actions">
<button class="btn-small" id="refreshCore" title="Refresh">Refresh</button>
</div>
</div>
<div class="core-topology-wrapper">
<canvas id="coreTopologyCanvas" width="800" height="400"></canvas>
<div class="core-consensus-badge" id="coreConsensusBadge">
<span class="core-consensus-label">Consensus</span>
<span class="core-consensus-value" id="coreConsensusStatus">--</span>
</div>
</div>
<div class="core-validators-grid" id="coreValidatorsGrid">
<div class="feed-empty"><span class="spinner-inline"></span> Loading validators...</div>
</div>
<div class="core-pob-bar" id="corePobBar"></div>
<!-- Burn & Tax Stats -->
<div class="core-burn-tax-row" style="display: flex; gap: 16px; margin-bottom: 16px;">
<div id="burnStatsPanel" class="core-stats-card" style="display: none; flex: 1; background: rgba(255,68,68,0.08); border: 1px solid rgba(255,68,68,0.2); border-radius: 12px; padding: 16px;">
<h4 style="margin: 0 0 8px; color: #ff4444; font-size: 14px;">🔥 KNEX Burned</h4>
</div>
<div id="taxInfoPanel" class="core-stats-card" style="display: none; flex: 1; background: rgba(0,230,118,0.08); border: 1px solid rgba(0,230,118,0.2); border-radius: 12px; padding: 16px;">
<h4 style="margin: 0 0 8px; color: #00e676; font-size: 14px;">💰 Transaction Tax</h4>
</div>
</div>
<div class="core-nerd-stats" id="coreNerdStats">
<div class="core-nerd-header">
<h3 class="core-nerd-title">Consensus Nerd Stats</h3>
</div>
<div class="core-nerd-body" id="coreNerdBody">
<div class="feed-empty"><span class="spinner-inline"></span> Loading consensus data...</div>
</div>
</div>
</div>
<!-- Account Detail View -->
<div class="content-panel hidden" id="accountPanel">
<div class="breadcrumb" id="accountBreadcrumb">
<button class="breadcrumb-item" data-action="home">Home</button>
<span class="breadcrumb-sep">/</span>
<span class="breadcrumb-item active">Account</span>
</div>
<div class="account-header" id="accountHeader">
<div class="account-address-row">
<h2 class="panel-title">Account</h2>
<span class="account-address" id="accountAddress">--</span>
<button class="btn-icon btn-copy" id="copyAccountAddr" title="Copy address">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>
</button>
</div>
<div class="account-stats">
<div class="account-stat">
<span class="account-stat-label">Balance</span>
<span class="account-stat-value" id="accountBalance">--</span>
</div>
<div class="account-stat">
<span class="account-stat-label">Pending</span>
<span class="account-stat-value" id="accountPending">--</span>
</div>
<div class="account-stat">
<span class="account-stat-label">Blocks</span>
<span class="account-stat-value" id="accountBlockCount">--</span>
</div>
<div class="account-stat">
<span class="account-stat-label">Locked</span>
<span class="account-stat-value" id="accountLocked">--</span>
</div>
<div class="account-stat">
<span class="account-stat-label">Available</span>
<span class="account-stat-value" id="accountAvailable">--</span>
</div>
<div class="account-stat">
<span class="account-stat-label">Representative</span>
<span class="account-stat-value account-stat-addr" id="accountRep">--</span>
</div>
</div>
<div class="account-enrichment" id="accountEnrichment"></div>
<div class="account-staking-section hidden" id="accountStaking">
<h3 class="panel-subtitle">Staking</h3>
<div class="staking-entries" id="stakingEntries"></div>
</div>
</div>
<div class="panel-header">
<h3 class="panel-subtitle">Transaction History</h3>
<div class="panel-actions">
<div class="feed-filter-group" id="historyFilterGroup">
<button class="filter-chip active" data-filter="all">All</button>
<button class="filter-chip" data-filter="send">Send</button>
<button class="filter-chip" data-filter="receive">Recv</button>
<button class="filter-chip" data-filter="stake">Stake</button>
</div>
</div>
</div>
<div class="history-container" id="historyContainer">
<div class="feed-empty"><p>Loading history...</p></div>
</div>
<div class="pagination hidden" id="historyPagination">
<button class="btn-page" id="historyPrev" disabled>Previous</button>
<span class="page-info" id="historyPageInfo">Page 1</span>
<button class="btn-page" id="historyNext">Next</button>
</div>
</div>
<!-- Block Detail View -->
<div class="content-panel hidden" id="blockPanel">
<div class="breadcrumb" id="blockBreadcrumb">
<button class="breadcrumb-item" data-action="home">Home</button>
<span class="breadcrumb-sep">/</span>
<span class="breadcrumb-item active">Block</span>
</div>
<div class="block-detail" id="blockDetail">
<h2 class="panel-title">Block Detail</h2>
<div class="block-fields" id="blockFields"></div>
<div class="block-nav" id="blockNav"></div>
</div>
</div>
</main>
<!-- Toast container -->
<div class="toast-container" id="toastContainer"></div>
<!-- Error banner -->
<div class="error-banner hidden" id="errorBanner">
<span class="error-banner-text" id="errorBannerText"></span>
<button class="btn-small" id="errorRetryBtn">Retry</button>
<button class="btn-icon error-close-btn" id="errorCloseBtn">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="14" height="14"><path d="M18 6L6 18M6 6l12 12"/></svg>
</button>
</div>
<!-- Footer -->
<footer class="footer">
<div class="footer-inner">
<span>SuperKnet — KnexCoin Block Explorer</span>
<span class="footer-links">
<a href="https://knexpay.com" target="_blank" rel="noopener">KnexPay</a>
<a href="https://faucet.knexcoins.com" target="_blank" rel="noopener">Faucet</a>
<a href="https://github.com/knexcoin" target="_blank" rel="noopener">GitHub</a>
</span>
<span class="footer-meta">
<kbd class="kbd-hint">/</kbd> Search ·
<kbd class="kbd-hint">T</kbd> Theme ·
<kbd class="kbd-hint">?</kbd> Shortcuts
</span>
</div>
</footer>
<!-- Keyboard shortcuts modal -->
<div class="modal-overlay hidden" id="shortcutsModal">
<div class="modal-card">
<div class="modal-header">
<h3>Keyboard Shortcuts</h3>
<button class="btn-icon" id="closeShortcuts">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="18" height="18"><path d="M18 6L6 18M6 6l12 12"/></svg>
</button>
</div>
<div class="modal-body">
<div class="shortcut-row"><kbd>/</kbd><span>Focus search</span></div>
<div class="shortcut-row"><kbd>Esc</kbd><span>Clear search / close modal</span></div>
<div class="shortcut-row"><kbd>T</kbd><span>Toggle theme</span></div>
<div class="shortcut-row"><kbd>S</kbd><span>Toggle sound</span></div>
<div class="shortcut-row"><kbd>P</kbd><span>Pause / resume feed</span></div>
<div class="shortcut-row"><kbd>1</kbd><span>Live Feed tab</span></div>
<div class="shortcut-row"><kbd>2</kbd><span>Network tab</span></div>
<div class="shortcut-row"><kbd>3</kbd><span>Rich List tab</span></div>
<div class="shortcut-row"><kbd>4</kbd><span>Blocks tab</span></div>
<div class="shortcut-row"><kbd>5</kbd><span>Core tab</span></div>
<div class="shortcut-row"><kbd>?</kbd><span>Show this help</span></div>
</div>
</div>
</div>
<!-- Application scripts -->
<script src="js/energy-stream.js"></script>
<script src="js/identicon.js"></script>
<script src="js/explorer.js"></script>
<script src="js/themes.js"></script>
<script src="js/audio.js"></script>
<script src="js/charts.js"></script>
<script src="js/flow.js"></script>
<script src="js/core.js"></script>
</body>
</html>
<!-- cache bust 1772883002 -->