oculon 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -3
- package/dist/cli/main.js +102 -0
- package/dist/core/evm.d.ts +20 -0
- package/dist/core/evm.js +165 -0
- package/dist/core/http.js +3 -0
- package/dist/core/quota.js +3 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +25 -0
- package/dist/mcp.js +31 -1
- package/dist/modules/address.d.ts +32 -0
- package/dist/modules/address.js +91 -0
- package/dist/modules/headers.d.ts +50 -0
- package/dist/modules/headers.js +108 -0
- package/dist/modules/honeypot.d.ts +36 -0
- package/dist/modules/honeypot.js +53 -0
- package/dist/modules/iban.d.ts +30 -0
- package/dist/modules/iban.js +82 -0
- package/dist/modules/lookalike.d.ts +34 -0
- package/dist/modules/lookalike.js +122 -0
- package/dist/modules/personal.d.ts +1 -1
- package/dist/modules/personal.js +14 -4
- package/dist/modules/utility.d.ts +121 -0
- package/dist/modules/utility.js +306 -0
- package/dist/telegram.d.ts +2 -0
- package/dist/telegram.js +43 -6
- package/dist/web/assets/logo-200.png +0 -0
- package/dist/web/burns.d.ts +21 -0
- package/dist/web/burns.js +53 -0
- package/dist/web/landing.html +1 -1
- package/dist/web/legal.html +1 -1
- package/dist/web/mcp.html +1 -1
- package/dist/web/openapi.js +4 -0
- package/dist/web/public.js +5 -1
- package/dist/web/server.d.ts +17 -0
- package/dist/web/server.js +129 -3
- package/dist/web/token.html +97 -0
- package/dist/web/token.json +9 -0
- package/dist/web/utility.html +225 -0
- package/package.json +1 -1
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<meta name="theme-color" content="#000000">
|
|
7
|
+
<link rel="icon" type="image/png" href="/favicon.ico">
|
|
8
|
+
<title>Oculon Utility</title>
|
|
9
|
+
<meta name="description" content="Use OCULON: burn for a deep investigation, keep a live safety badge on a Robinhood Chain token, or sign in as a holder.">
|
|
10
|
+
<meta property="og:type" content="website"><meta property="og:site_name" content="Oculon"><meta property="og:title" content="Oculon Utility"><meta property="og:description" content="Burn for a deep investigation, keep a live safety badge on a token, or sign in as a holder."><meta property="og:image" content="https://oculon.live/assets/og.png?v=2"><meta name="twitter:card" content="summary_large_image">
|
|
11
|
+
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
12
|
+
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
|
|
13
|
+
<style>
|
|
14
|
+
html,body{overflow-x:clip;max-width:100%}
|
|
15
|
+
:root{--line:#222;--soft:#cfcfcf;--mut:#9a9a9a;--y:#00f0ff;--red:#ff5d6c;--green:#3ddc97;--amber:#f5a524;--sans:'Space Grotesk',system-ui,sans-serif;--mono:'Space Mono',ui-monospace,Consolas,monospace}
|
|
16
|
+
*{box-sizing:border-box}
|
|
17
|
+
body{margin:0;background:#000;color:#fff;font-family:var(--sans);-webkit-font-smoothing:antialiased}
|
|
18
|
+
a{color:var(--y)}
|
|
19
|
+
.lm{display:inline-block;width:22px;height:22px;vertical-align:-4px;margin-right:12px}
|
|
20
|
+
header{position:sticky;top:0;z-index:5;background:#000;border-bottom:1px solid var(--line)}
|
|
21
|
+
header .in{display:flex;align-items:center;justify-content:space-between;padding:18px clamp(16px,3vw,40px);gap:16px}
|
|
22
|
+
.logo{font-size:17px;font-weight:600;letter-spacing:.4em;text-decoration:none;color:#fff}
|
|
23
|
+
header nav{display:flex;gap:20px;font-size:14px}header nav a{text-decoration:none;color:var(--soft)}
|
|
24
|
+
main{max-width:980px;margin:0 auto;padding:64px clamp(16px,5vw,40px) 120px;position:relative;z-index:1}
|
|
25
|
+
#liquidbg{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.32}
|
|
26
|
+
header,footer{position:relative;z-index:1}header{position:sticky;z-index:5}
|
|
27
|
+
.lbl{font:12px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--mut)}
|
|
28
|
+
h1{margin:14px 0 10px;font-size:clamp(40px,6vw,68px);font-weight:300;letter-spacing:-.04em;line-height:1.02;overflow-wrap:anywhere}
|
|
29
|
+
h1 span{color:var(--y)}
|
|
30
|
+
h2{margin:0 0 6px;font-size:24px;font-weight:500}
|
|
31
|
+
p,li{font-size:16px;line-height:1.7;color:var(--soft);font-weight:300}
|
|
32
|
+
.lead{font-size:19px;max-width:760px}
|
|
33
|
+
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:34px}
|
|
34
|
+
.card{border:1px solid rgba(0,240,255,.25);background:rgba(0,10,14,.82);backdrop-filter:blur(8px);padding:22px}
|
|
35
|
+
.card .amt{font:700 22px var(--mono);color:var(--y);margin-top:8px}
|
|
36
|
+
.card .k{font:700 13px var(--mono);letter-spacing:.14em;color:var(--mut)}
|
|
37
|
+
.panel{margin-top:22px;border:1px solid rgba(0,240,255,.25);background:rgba(0,10,14,.85);backdrop-filter:blur(8px);padding:24px}
|
|
38
|
+
label{display:block;font:12px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--mut);margin:16px 0 6px}
|
|
39
|
+
input{width:100%;background:#05090b;border:1px solid #23333a;color:#fff;font:15px var(--mono);padding:12px 14px;outline:none}
|
|
40
|
+
input:focus{border-color:var(--y)}
|
|
41
|
+
button{font:700 13px var(--mono);letter-spacing:.08em;background:var(--y);color:#000;border:0;padding:12px 18px;cursor:pointer;margin-top:16px}
|
|
42
|
+
button.ghost{background:transparent;color:var(--y);border:1px solid rgba(0,240,255,.5)}
|
|
43
|
+
button:disabled{opacity:.5;cursor:wait}
|
|
44
|
+
.msg{margin-top:14px;font:14px var(--mono);overflow-wrap:anywhere}.msg.err{color:var(--red)}.msg.ok{color:var(--green)}
|
|
45
|
+
code{font:.86em var(--mono);background:rgba(0,20,24,.8);border:1px solid rgba(0,240,255,.2);padding:1px 6px;color:#fff;overflow-wrap:anywhere}
|
|
46
|
+
.steps{margin:10px 0 0;padding-left:20px}
|
|
47
|
+
.wallet{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
|
|
48
|
+
.pill{font:700 12px var(--mono);letter-spacing:.1em;padding:5px 10px;border:1.5px solid currentColor}
|
|
49
|
+
.v-OK{color:var(--green)}.v-CAUTION{color:var(--amber)}.v-DANGER{color:var(--red)}.v-UNKNOWN,.v-null{color:var(--mut)}
|
|
50
|
+
.part{border-top:1px solid #1b2a2f;padding:18px 0}.part:first-child{border-top:0}
|
|
51
|
+
.part h3{margin:0;font-size:18px;font-weight:500;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
|
|
52
|
+
.part ul{margin:10px 0 0;padding-left:18px}.part li{font-size:15px}
|
|
53
|
+
.src{font:12px var(--mono);color:var(--mut);margin-top:8px}
|
|
54
|
+
.list a{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #1b2a2f;text-decoration:none;color:var(--soft);font:14px var(--mono)}
|
|
55
|
+
.hide{display:none}
|
|
56
|
+
footer{border-top:1px solid var(--line);background:rgba(0,0,0,.6)}footer .in{max-width:980px;margin:0 auto;padding:24px clamp(16px,5vw,40px);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font:12px var(--mono);color:#5e5e5e}footer a{color:var(--mut)}
|
|
57
|
+
@media (max-width:760px){.cards{grid-template-columns:minmax(0,1fr)}}
|
|
58
|
+
</style>
|
|
59
|
+
</head>
|
|
60
|
+
<body>
|
|
61
|
+
<header><div class="in"><a class="logo" href="/"><img class="lm" src="/assets/logo.svg" alt="" width="22" height="22">OCULON</a><nav><a href="/thetoken">Token</a><a href="/app">App</a><a href="/docs">Docs</a></nav></div></header>
|
|
62
|
+
<canvas id="liquidbg" aria-hidden="true"></canvas>
|
|
63
|
+
<main>
|
|
64
|
+
<section id="home">
|
|
65
|
+
<div class="lbl">$OCULON utility</div>
|
|
66
|
+
<h1>Burn to check.<br><span>Hold to watch closer.</span></h1>
|
|
67
|
+
<p class="lead">Three ways to use OCULON, read straight from Robinhood Chain. No account, no custody, nothing paid to anyone: burns go to the dead address and are checked on chain. Oculon itself stays free for everyone.</p>
|
|
68
|
+
<div class="cards">
|
|
69
|
+
<div class="card"><div class="k">A · BURN</div><h2>Deep investigation</h2><div class="amt" id="amtA">1,500,000</div><p>One domain, wallet, token or company, checked against every relevant source and published as a public page that links your burn.</p></div>
|
|
70
|
+
<div class="card"><div class="k">B · BURN</div><h2>Live safety badge</h2><div class="amt" id="amtB">2,000,000</div><p>Oculon watches one Robinhood Chain token for 30 days. The badge shows the live verdict. Burning buys monitoring, never a better verdict.</p></div>
|
|
71
|
+
<div class="card"><div class="k">C · HOLD</div><h2>Holder tier</h2><div class="amt" id="amtC">3,500,000</div><p>Sign once with your wallet: up to 30 personal monitors, checked every 15 minutes instead of every hour.</p></div>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<div class="panel">
|
|
75
|
+
<h2>How to burn</h2>
|
|
76
|
+
<ol class="steps">
|
|
77
|
+
<li>From your wallet, send the amount of OCULON to the burn address <code>0x000000000000000000000000000000000000dEaD</code> on Robinhood Chain.</li>
|
|
78
|
+
<li>Copy the transaction hash once it is confirmed.</li>
|
|
79
|
+
<li>Connect the same wallet below and sign the request. Only the wallet that burned can use its burn, and each burn counts once.</li>
|
|
80
|
+
</ol>
|
|
81
|
+
<p>Token: <code id="ca">loading…</code></p>
|
|
82
|
+
<div class="wallet"><button id="connect">Connect wallet</button><span id="who" class="src"></span></div>
|
|
83
|
+
<div id="walletMsg" class="msg"></div>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
<div class="panel" id="formA">
|
|
87
|
+
<h2>A · Start an investigation</h2>
|
|
88
|
+
<label for="aTarget">What to investigate</label><input id="aTarget" placeholder="example.com, 0x… wallet or token, or a company name">
|
|
89
|
+
<label for="aTx">Burn transaction hash</label><input id="aTx" placeholder="0x…">
|
|
90
|
+
<button id="aGo">Sign and start</button><div id="aMsg" class="msg"></div>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<div class="panel" id="formB">
|
|
94
|
+
<h2>B · Keep a live safety badge</h2>
|
|
95
|
+
<label for="bToken">Robinhood Chain token address</label><input id="bToken" placeholder="0x…">
|
|
96
|
+
<label for="bTx">Burn transaction hash</label><input id="bTx" placeholder="0x…">
|
|
97
|
+
<button id="bGo">Sign and start monitoring</button><div id="bMsg" class="msg"></div>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
<div class="panel" id="formC">
|
|
101
|
+
<h2>C · Holder tier</h2>
|
|
102
|
+
<p id="cText">Sign a message with a wallet that holds at least 3,500,000 OCULON. Signing sends no transaction and costs nothing.</p>
|
|
103
|
+
<button id="cGo">Sign in as holder</button><button id="cOut" class="ghost hide">Sign out</button><div id="cMsg" class="msg"></div>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<div class="panel"><h2>Recent investigations</h2><div id="recent" class="list"><p class="src">None yet.</p></div></div>
|
|
107
|
+
<p class="src" style="margin-top:22px">Verdicts are automated readings of public data, not audits or financial advice. A burn cannot be refunded.</p>
|
|
108
|
+
</section>
|
|
109
|
+
|
|
110
|
+
<section id="inv" class="hide">
|
|
111
|
+
<div class="lbl">Investigation <span id="invId"></span></div>
|
|
112
|
+
<h1 id="invTarget">…</h1>
|
|
113
|
+
<p id="invBurn" class="src"></p>
|
|
114
|
+
<div class="panel" id="invBody"><p class="src">Running every relevant check. This page updates by itself.</p></div>
|
|
115
|
+
<p><a href="/utility">← Utility</a></p>
|
|
116
|
+
</section>
|
|
117
|
+
|
|
118
|
+
<section id="safe" class="hide">
|
|
119
|
+
<div class="lbl">Live safety badge</div>
|
|
120
|
+
<h1 id="safeName">…</h1>
|
|
121
|
+
<p><img id="safeBadge" alt="Oculon safety badge" height="22"></p>
|
|
122
|
+
<div class="panel" id="safeBody"></div>
|
|
123
|
+
<div class="panel"><h2>Embed the badge</h2><p>Markdown:</p><code id="embed"></code></div>
|
|
124
|
+
<p><a href="/utility">← Utility</a></p>
|
|
125
|
+
</section>
|
|
126
|
+
</main>
|
|
127
|
+
<footer><div class="in"><span>© <span id="year"></span> Oculon contributors · MIT</span><span><a href="/">Home</a> · <a href="/docs">Docs</a> · <a href="/app">App</a> · <a href="/thetoken">Token</a></span></div></footer>
|
|
128
|
+
<script src="/assets/fx.js"></script>
|
|
129
|
+
<script>
|
|
130
|
+
if (window.OculonFX) { OculonFX.liquid(document.getElementById('liquidbg'), { base: '#000000', mid: '#001a26', hi: '#00c8e0', intensity: 0.8, scale: 0.3 }); }
|
|
131
|
+
const $ = (id) => document.getElementById(id);
|
|
132
|
+
$('year').textContent = new Date().getFullYear();
|
|
133
|
+
const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
134
|
+
const fmt = (n) => Number(n).toLocaleString('en-US');
|
|
135
|
+
const get = async (p) => { const r = await fetch(p, { credentials: 'same-origin' }); const j = await r.json(); if (!r.ok) throw new Error(j.error || r.status); return j; };
|
|
136
|
+
const post = async (p, body) => { const r = await fetch(p, { method: 'POST', credentials: 'same-origin', headers: { 'content-type': 'application/json', 'x-oculon': '1' }, body: JSON.stringify(body) }); const j = await r.json(); if (!r.ok) throw new Error(j.error || r.status); return j; };
|
|
137
|
+
const say = (el, text, kind) => { el.className = 'msg' + (kind ? ' ' + kind : ''); el.textContent = text; };
|
|
138
|
+
const hex = (s) => '0x' + [...new TextEncoder().encode(s)].map((b) => b.toString(16).padStart(2, '0')).join('');
|
|
139
|
+
let account = null;
|
|
140
|
+
|
|
141
|
+
async function connect() {
|
|
142
|
+
if (!window.ethereum) throw new Error('No wallet found in this browser. Open this page in a wallet browser or install a wallet extension.');
|
|
143
|
+
const accs = await window.ethereum.request({ method: 'eth_requestAccounts' });
|
|
144
|
+
account = String(accs[0]).toLowerCase();
|
|
145
|
+
$('who').textContent = account;
|
|
146
|
+
$('connect').textContent = 'Connected';
|
|
147
|
+
return account;
|
|
148
|
+
}
|
|
149
|
+
const sign = async (message) => { const a = account || await connect(); return window.ethereum.request({ method: 'personal_sign', params: [hex(message), a] }); };
|
|
150
|
+
const utilityMessage = (kind, target, tx) => `Oculon ${kind === 'investigate' ? 'investigation' : 'safety badge'}\nTarget: ${target.trim()}\nBurn: ${tx.trim().toLowerCase()}`;
|
|
151
|
+
const busy = async (btn, msg, fn) => { btn.disabled = true; try { await fn(); } catch (e) { say(msg, e.message || String(e), 'err'); } finally { btn.disabled = false; } };
|
|
152
|
+
|
|
153
|
+
$('connect').onclick = () => busy($('connect'), $('walletMsg'), connect);
|
|
154
|
+
$('aGo').onclick = () => busy($('aGo'), $('aMsg'), async () => {
|
|
155
|
+
const target = $('aTarget').value.trim(), tx = $('aTx').value.trim();
|
|
156
|
+
if (!target || !tx) throw new Error('Fill in what to investigate and the burn transaction hash.');
|
|
157
|
+
say($('aMsg'), 'Sign the request in your wallet…');
|
|
158
|
+
const signature = await sign(utilityMessage('investigate', target, tx));
|
|
159
|
+
say($('aMsg'), 'Checking the burn on Robinhood Chain…');
|
|
160
|
+
const r = await post('/api/utility/investigate', { target, tx, signature });
|
|
161
|
+
location.href = '/investigation/' + r.id;
|
|
162
|
+
});
|
|
163
|
+
$('bGo').onclick = () => busy($('bGo'), $('bMsg'), async () => {
|
|
164
|
+
const token = $('bToken').value.trim().toLowerCase(), tx = $('bTx').value.trim();
|
|
165
|
+
if (!token || !tx) throw new Error('Fill in the token address and the burn transaction hash.');
|
|
166
|
+
say($('bMsg'), 'Sign the request in your wallet…');
|
|
167
|
+
const signature = await sign(utilityMessage('safety', token, tx));
|
|
168
|
+
say($('bMsg'), 'Checking the burn on Robinhood Chain…');
|
|
169
|
+
await post('/api/utility/safety', { token, tx, signature });
|
|
170
|
+
location.href = '/safety/' + token;
|
|
171
|
+
});
|
|
172
|
+
const onApp = location.hostname.startsWith('app.') || !/\./.test(location.hostname) || location.hostname === '127.0.0.1';
|
|
173
|
+
$('cGo').onclick = () => busy($('cGo'), $('cMsg'), async () => {
|
|
174
|
+
if (!onApp) { location.href = 'https://app.' + location.hostname.replace(/^www\./, '') + '/utility#formC'; return; }
|
|
175
|
+
const a = account || await connect();
|
|
176
|
+
const { message } = await post('/api/utility/nonce', { address: a });
|
|
177
|
+
const signature = await sign(message);
|
|
178
|
+
const r = await post('/api/utility/holder', { message, signature });
|
|
179
|
+
if (r.holder) { say($('cMsg'), `Holder tier on for ${r.address} until ${r.expiresAt.slice(0, 10)}. Balance ${r.balance} OCULON.`, 'ok'); $('cOut').classList.remove('hide'); }
|
|
180
|
+
else say($('cMsg'), `This wallet holds ${r.balance} OCULON; the holder tier needs ${r.needs}.`, 'err');
|
|
181
|
+
});
|
|
182
|
+
$('cOut').onclick = () => busy($('cOut'), $('cMsg'), async () => { await post('/api/utility/signout', {}); say($('cMsg'), 'Signed out.', 'ok'); $('cOut').classList.add('hide'); });
|
|
183
|
+
|
|
184
|
+
async function home() {
|
|
185
|
+
if (!onApp) $('cGo').textContent = 'Sign in on the app';
|
|
186
|
+
const i = await get('/api/utility/info');
|
|
187
|
+
$('ca').textContent = i.token ? i.token.ca : 'not configured';
|
|
188
|
+
$('amtA').textContent = fmt(i.amounts.investigate) + ' OCULON'; $('amtB').textContent = fmt(i.amounts.safety) + ' OCULON'; $('amtC').textContent = fmt(i.amounts.holder) + ' OCULON';
|
|
189
|
+
if (i.holder) { say($('cMsg'), `Holder tier on for ${i.holder.address} until ${i.holder.expiresAt.slice(0, 10)}.`, 'ok'); $('cOut').classList.remove('hide'); }
|
|
190
|
+
if (i.investigations.length) $('recent').innerHTML = i.investigations.map((x) => `<a href="/investigation/${esc(x.id)}"><span>${esc(x.target)}</span><span>${esc(x.createdAt.slice(0, 10))} · ${esc(x.status)}</span></a>`).join('');
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
async function investigation(id) {
|
|
194
|
+
$('home').classList.add('hide'); $('inv').classList.remove('hide'); $('invId').textContent = id;
|
|
195
|
+
const draw = (v) => {
|
|
196
|
+
$('invTarget').textContent = v.target;
|
|
197
|
+
document.title = 'Oculon investigation: ' + v.target;
|
|
198
|
+
if (v.burn) $('invBurn').innerHTML = `Paid for by burning ${esc(v.burn.amount)} OCULON from <code>${esc(v.burn.from)}</code> · tx <a href="https://robin.etherscan.io/tx/${esc(v.burn.tx)}" target="_blank" rel="noopener">${esc(v.burn.tx.slice(0, 12))}…</a> · ${esc(v.createdAt.slice(0, 16).replace('T', ' '))} UTC`;
|
|
199
|
+
if (v.status !== 'done') return;
|
|
200
|
+
$('invBody').innerHTML = v.parts.map((p) => `<div class="part"><h3>${esc(p.title)}${p.verdict ? ` <span class="pill v-${esc(String(p.verdict).toUpperCase())}">${esc(String(p.verdict).toUpperCase())}</span>` : ''}</h3>${p.error ? `<p class="msg err">${esc(p.error)}</p>` : ''}${p.lines.length ? `<ul>${p.lines.map((l) => `<li>${esc(l)}</li>`).join('')}</ul>` : p.error ? '' : '<p class="src">No issues found by this check.</p>'}${p.sources.length ? `<div class="src">sources: ${esc(p.sources.join(' · '))}</div>` : ''}</div>`).join('') + '<p class="src">Automated readings of public data, not an audit.</p>';
|
|
201
|
+
};
|
|
202
|
+
for (let i = 0; i < 90; i++) { const v = await get('/api/utility/investigation?id=' + id); draw(v); if (v.status === 'done') return; await new Promise((r) => setTimeout(r, 3000)); }
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
async function safety(token) {
|
|
206
|
+
$('home').classList.add('hide'); $('safe').classList.remove('hide');
|
|
207
|
+
const s = await get('/api/utility/safety?token=' + token);
|
|
208
|
+
$('safeName').textContent = s.symbol ? `${s.symbol}${s.name ? ' · ' + s.name : ''}` : token;
|
|
209
|
+
$('safeBadge').src = '/badge/' + token + '.svg?t=' + Date.now();
|
|
210
|
+
const abs = location.origin + '/badge/' + token + '.svg';
|
|
211
|
+
$('embed').textContent = `[](${location.origin}/safety/${token})`;
|
|
212
|
+
$('safeBody').innerHTML = !s.expiresAt ? '<p>This token is not monitored. Burn 2,000,000 OCULON on the <a href="/utility">utility page</a> to start a 30-day live badge.</p>'
|
|
213
|
+
: `<h2>${s.active ? `<span class="pill v-${esc(s.verdict)}">${esc(s.verdict ?? 'CHECKING')}</span>` : 'Monitoring ended'}</h2>
|
|
214
|
+
<p class="src">Token <code>${esc(token)}</code> · ${s.active ? 'monitored until' : 'ended'} ${esc(s.expiresAt.slice(0, 10))} · last check ${esc((s.lastCheck || '').slice(0, 16).replace('T', ' '))} UTC</p>
|
|
215
|
+
${s.reasons.length ? `<ul>${s.reasons.map((r) => `<li>${esc(r)}</li>`).join('')}</ul>` : '<p>No risk flags in the last check.</p>'}
|
|
216
|
+
${s.history.length ? `<h2 style="margin-top:18px">Verdict changes</h2><ul>${s.history.map((h) => `<li>${esc(h.at.slice(0, 16).replace('T', ' '))} UTC · ${esc(h.verdict)}</li>`).join('')}</ul>` : ''}
|
|
217
|
+
<p class="src">Heuristics over pool and explorer data, not an audit. Burning for a badge never changes the verdict.</p>`;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
const inv = /^\/investigation\/([0-9a-f]{12})$/.exec(location.pathname);
|
|
221
|
+
const saf = /^\/safety\/(0x[0-9a-fA-F]{40})$/.exec(location.pathname);
|
|
222
|
+
(inv ? investigation(inv[1]) : saf ? safety(saf[1].toLowerCase()) : home()).catch((e) => { document.querySelector('main').insertAdjacentHTML('afterbegin', `<p class="msg err">${esc(e.message)}</p>`); });
|
|
223
|
+
</script>
|
|
224
|
+
</body>
|
|
225
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oculon",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "OSINT engine you can run, script and plug into agents: 80+ live tools for scams, links, IPs, malware, outages, CVEs and research, each result with its sources. CLI, SDK, MCP server and web app. Zero dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"osint",
|