oculon 0.1.5 → 0.1.7
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 +72 -4
- package/dist/cli/main.js +184 -0
- package/dist/core/calls.d.ts +63 -0
- package/dist/core/calls.js +120 -0
- package/dist/core/evm.d.ts +20 -0
- package/dist/core/evm.js +165 -0
- package/dist/core/http.d.ts +11 -0
- package/dist/core/http.js +113 -30
- package/dist/core/pdf.d.ts +51 -0
- package/dist/core/pdf.js +211 -0
- package/dist/core/quota.js +3 -0
- package/dist/core/verdict.d.ts +30 -0
- package/dist/core/verdict.js +164 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +54 -0
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +159 -5
- package/dist/modules/address.d.ts +32 -0
- package/dist/modules/address.js +91 -0
- package/dist/modules/checks.d.ts +59 -0
- package/dist/modules/checks.js +134 -0
- package/dist/modules/doc.d.ts +61 -0
- package/dist/modules/doc.js +715 -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 +147 -0
- package/dist/modules/utility.js +403 -0
- package/dist/report-pdf.d.ts +7 -0
- package/dist/report-pdf.js +81 -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/card.d.ts +28 -0
- package/dist/web/card.js +75 -0
- package/dist/web/index.html +76 -4
- 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 +6 -0
- package/dist/web/pages.d.ts +24 -0
- package/dist/web/pages.js +139 -0
- package/dist/web/public.js +7 -1
- package/dist/web/server.d.ts +17 -0
- package/dist/web/server.js +207 -7
- package/dist/web/token.html +98 -0
- package/dist/web/token.json +9 -0
- package/dist/web/utility.html +251 -0
- package/package.json +1 -1
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
<link rel="manifest" href="/manifest.webmanifest">
|
|
7
|
+
<meta name="theme-color" content="#000000">
|
|
8
|
+
<link rel="icon" type="image/png" href="/favicon.ico">
|
|
9
|
+
<link rel="apple-touch-icon" href="/assets/icon-192.png">
|
|
10
|
+
<title>Oculon Token</title>
|
|
11
|
+
<meta name="description" content="The one official Oculon token address, and how to check it.">
|
|
12
|
+
<meta property="og:type" content="website"><meta property="og:site_name" content="Oculon"><meta property="og:title" content="Oculon Token"><meta property="og:description" content="The one official Oculon token address, and how to check it."><meta property="og:url" content="https://oculon.live/thetoken"><meta property="og:image" content="https://oculon.live/assets/og.png?v=2"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="https://oculon.live/assets/og.png?v=2">
|
|
13
|
+
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
14
|
+
<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">
|
|
15
|
+
<style>
|
|
16
|
+
html,body{overflow-x:clip;max-width:100%}
|
|
17
|
+
:root{--line:#222;--soft:#cfcfcf;--mut:#9a9a9a;--y:#00f0ff;--sans:'Space Grotesk',system-ui,sans-serif;--mono:'Space Mono',ui-monospace,Consolas,monospace}
|
|
18
|
+
*{box-sizing:border-box}
|
|
19
|
+
body{margin:0;background:#000;color:#fff;font-family:var(--sans);-webkit-font-smoothing:antialiased}
|
|
20
|
+
a{color:inherit}
|
|
21
|
+
.lm{display:inline-block;width:22px;height:22px;vertical-align:-4px;margin-right:12px}
|
|
22
|
+
header{position:sticky;top:0;z-index:5;background:#000;border-bottom:1px solid var(--line)}
|
|
23
|
+
header .in{display:flex;align-items:center;justify-content:space-between;padding:18px clamp(20px,3vw,40px);gap:20px}
|
|
24
|
+
.logo{font-size:17px;font-weight:600;letter-spacing:.4em;text-decoration:none}
|
|
25
|
+
header nav{display:flex;gap:24px;font-size:14px}header nav a{text-decoration:none;color:var(--soft)}header nav a:hover{color:#fff}
|
|
26
|
+
main{max-width:860px;margin:0 auto;padding:80px clamp(20px,5vw,40px) 120px;position:relative;z-index:1}
|
|
27
|
+
#liquidbg{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.36}
|
|
28
|
+
header,footer{position:relative;z-index:1}header{position:sticky;z-index:5}
|
|
29
|
+
.lbl{font:12px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--mut)}
|
|
30
|
+
h1{margin:14px 0 10px;font-size:clamp(44px,6vw,72px);font-weight:300;letter-spacing:-.04em;line-height:1.02}
|
|
31
|
+
h1 span{color:var(--y)}
|
|
32
|
+
h2{margin:56px 0 12px;font-size:26px;font-weight:400;padding-top:24px;border-top:1px solid var(--line)}
|
|
33
|
+
p,li{font-size:17px;line-height:1.75;color:var(--soft);font-weight:300}
|
|
34
|
+
ul{padding-left:20px}
|
|
35
|
+
code{font:.86em var(--mono);background:rgba(0,20,24,.8);border:1px solid rgba(0,240,255,.2);padding:1px 6px;color:#fff}
|
|
36
|
+
.ca{margin-top:30px;border:1px solid rgba(0,240,255,.45);background:rgba(0,14,18,.8);backdrop-filter:blur(8px);padding:24px;box-shadow:0 0 40px rgba(0,240,255,.08)}
|
|
37
|
+
.ca .addr{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:12px}
|
|
38
|
+
.ca .addr code{font-size:clamp(13px,2.4vw,18px);padding:10px 12px;overflow-wrap:anywhere;word-break:break-all;flex:1 1 280px;color:var(--y)}
|
|
39
|
+
.ca button{font:700 13px var(--mono);letter-spacing:.08em;background:var(--y);color:#000;border:0;padding:12px 16px;cursor:pointer}
|
|
40
|
+
.ca .meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
|
|
41
|
+
.ca .meta div{border:1px solid #1f2a2d;padding:12px 14px}.ca .meta b{display:block;font:400 11px var(--mono);letter-spacing:.14em;color:var(--mut);text-transform:uppercase}.ca .meta span{display:block;margin-top:6px;font:700 16px var(--mono);overflow-wrap:anywhere}
|
|
42
|
+
.ca.none p{margin:0}
|
|
43
|
+
.sbadge{display:inline-block;margin-top:14px}.sbadge img{display:block}
|
|
44
|
+
.burn{margin-top:16px;border:1px solid rgba(255,93,108,.35);background:rgba(18,4,6,.75);backdrop-filter:blur(8px);padding:24px}
|
|
45
|
+
.btot{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin-top:10px}.btot span{font:700 clamp(28px,5vw,40px) var(--mono);color:#ff7a86}.btot em{font:400 14px var(--mono);color:var(--mut);font-style:normal}
|
|
46
|
+
.btable{margin-top:16px;overflow-x:auto}.btable table{width:100%;border-collapse:collapse;font:13px var(--mono)}
|
|
47
|
+
.btable th{text-align:left;font-weight:400;color:var(--mut);letter-spacing:.1em;text-transform:uppercase;font-size:11px;padding:8px 6px;border-bottom:1px solid #2a1a1c}
|
|
48
|
+
.btable td{padding:10px 6px;border-bottom:1px solid #1d1415;color:#e8eef0;white-space:nowrap;line-height:1.7;vertical-align:top}.btable .n{text-align:right}.btable a{color:var(--y)}
|
|
49
|
+
.bnote{margin:12px 0 0;font-size:13px !important;color:var(--mut) !important}
|
|
50
|
+
.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
|
|
51
|
+
.three a{display:block;border:1px solid #1f2a2d;background:rgba(4,8,9,.85);padding:16px;text-decoration:none;transition:border-color .3s}.three a:hover{border-color:rgba(0,240,255,.5)}
|
|
52
|
+
.three b{display:block;font:400 11px var(--mono);letter-spacing:.14em;color:var(--mut)}.three span{display:block;margin-top:6px;font:700 15px var(--mono);color:var(--y);overflow-wrap:anywhere}
|
|
53
|
+
footer{border-top:1px solid var(--line);background:rgba(0,0,0,.6)}footer .in{max-width:860px;margin:0 auto;padding:26px clamp(20px,5vw,40px);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font:12px var(--mono);color:#5e5e5e}footer a{color:var(--mut)}
|
|
54
|
+
@media (max-width:760px){.ca .meta,.three{grid-template-columns:minmax(0,1fr)}}
|
|
55
|
+
</style>
|
|
56
|
+
</head>
|
|
57
|
+
<body>
|
|
58
|
+
<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="/app">App</a><a href="/docs">Docs</a></nav></div></header>
|
|
59
|
+
<canvas id="liquidbg" aria-hidden="true"></canvas>
|
|
60
|
+
<main>
|
|
61
|
+
<div class="lbl">Official token</div>
|
|
62
|
+
<h1>One address.<br><span>Three places.</span></h1>
|
|
63
|
+
{{TOKEN_BLOCK}}
|
|
64
|
+
|
|
65
|
+
<h2>How to check an address</h2>
|
|
66
|
+
<p>The official address is posted in three places at the same time. Before you use any address, make sure it matches all three exactly, character by character.</p>
|
|
67
|
+
<div class="three">
|
|
68
|
+
<a href="https://x.com/oculonlive" target="_blank" rel="noopener"><b>X</b><span>@oculonlive</span></a>
|
|
69
|
+
<a href="https://github.com/oculonlive/oculon#official-token" target="_blank" rel="noopener"><b>GITHUB</b><span>oculonlive/oculon</span></a>
|
|
70
|
+
<a href="/thetoken"><b>WEB</b><span>oculon.live/thetoken</span></a>
|
|
71
|
+
</div>
|
|
72
|
+
<p>If an address is missing from any of the three, it is not Oculon. Oculon will never message you first, ask for your recovery phrase, or ask you to send funds to an address.</p>
|
|
73
|
+
|
|
74
|
+
<h2>Use OCULON</h2>
|
|
75
|
+
<p>Hold 1,500,000 OCULON for one deep investigation every 30 days of a domain, wallet, token or company. Hold 2,000,000 to keep a live safety badge on a Robinhood Chain token while you hold. Hold 3,500,000 for up to 30 personal monitors, checked every 15 minutes. Prefer not to hold? Burn 1,500,000 for an investigation or 1,000,000 for 30 days of a badge. Everything is read from the chain; Oculon stays free for everyone.</p>
|
|
76
|
+
<p><a href="/utility" style="color:var(--y)">Open the utility page →</a></p>
|
|
77
|
+
|
|
78
|
+
<h2>What Oculon is</h2>
|
|
79
|
+
<p>Oculon is a free, open-source OSINT engine under the MIT licence. It checks things before you trust them: a suspicious message, a link, a phone number, a leaked password, a supplier, an IP address, a vulnerability or a news claim. Every answer lists the sources it used and whether each was live, cached or unavailable.</p>
|
|
80
|
+
<p>It runs as a CLI (<code>npx oculon</code>), a TypeScript SDK, an MCP server for AI agents, the web app at <a href="/app">oculon.live</a> and a Telegram bot.</p>
|
|
81
|
+
|
|
82
|
+
<h2>Not advice</h2>
|
|
83
|
+
<p>Nothing on this page is financial or investment advice. Crypto tokens are volatile and you can lose everything you put in. Only use what you can afford to lose.</p>
|
|
84
|
+
</main>
|
|
85
|
+
<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="/terms">Terms</a> · <a href="/thetoken">Token</a></span></div></footer>
|
|
86
|
+
<script src="/assets/fx.js"></script>
|
|
87
|
+
<script>
|
|
88
|
+
if (window.OculonFX) { OculonFX.liquid(document.getElementById('liquidbg'), { base: '#000000', mid: '#001a26', hi: '#00c8e0', intensity: 0.8, scale: 0.3 }); }
|
|
89
|
+
document.getElementById('year').textContent = new Date().getFullYear();
|
|
90
|
+
const cp = document.getElementById('copy-ca');
|
|
91
|
+
if (cp) cp.addEventListener('click', () => {
|
|
92
|
+
const v = document.getElementById('ca-value').textContent.trim();
|
|
93
|
+
const done = () => { cp.textContent = 'COPIED'; setTimeout(() => { cp.textContent = 'COPY'; }, 1600); };
|
|
94
|
+
if (navigator.clipboard) navigator.clipboard.writeText(v).then(done).catch(() => {});
|
|
95
|
+
});
|
|
96
|
+
</script>
|
|
97
|
+
</body>
|
|
98
|
+
</html>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ca": "0x12a3f1a05d827007f17a43a250cce44868c4a263",
|
|
3
|
+
"chain": "Robinhood Chain",
|
|
4
|
+
"ticker": "OCULON",
|
|
5
|
+
"explorer": "",
|
|
6
|
+
"launchpad": "https://ponsfamily.com/launchpad/0x12a3f1a05d827007f17a43a250cce44868c4a263",
|
|
7
|
+
"txBase": "https://robin.etherscan.io",
|
|
8
|
+
"deployBlock": 123115234
|
|
9
|
+
}
|
|
@@ -0,0 +1,251 @@
|
|
|
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
|
+
.pay{display:flex;gap:18px;flex-wrap:wrap}.opt{display:flex;align-items:center;gap:8px;font:14px var(--mono);color:var(--soft);text-transform:none;letter-spacing:0;margin:0}.opt input{width:auto}
|
|
57
|
+
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)}
|
|
58
|
+
@media (max-width:760px){.cards{grid-template-columns:minmax(0,1fr)}}
|
|
59
|
+
</style>
|
|
60
|
+
</head>
|
|
61
|
+
<body>
|
|
62
|
+
<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>
|
|
63
|
+
<canvas id="liquidbg" aria-hidden="true"></canvas>
|
|
64
|
+
<main>
|
|
65
|
+
<section id="home">
|
|
66
|
+
<div class="lbl">$OCULON utility</div>
|
|
67
|
+
<h1>Hold to check.<br><span>Burn if you would rather not.</span></h1>
|
|
68
|
+
<p class="lead">Three ways to use OCULON, read straight from Robinhood Chain. Holding is the main way in: sign with your wallet, nothing leaves it. Burning is optional for people who would rather not hold. No account, no custody, and Oculon itself stays free for everyone.</p>
|
|
69
|
+
<div class="cards">
|
|
70
|
+
<div class="card"><div class="k">A · HOLD OR BURN</div><h2>Deep investigation</h2><div class="amt" id="amtA">Hold 1,500,000</div><p>One domain, wallet, token or company, checked against every relevant source and published as a public page. Holding gives one every 30 days; or burn <b id="burnA">1,500,000</b> for one.</p></div>
|
|
71
|
+
<div class="card"><div class="k">B · HOLD OR BURN</div><h2>Live safety badge</h2><div class="amt" id="amtB">Hold 2,000,000</div><p>Oculon watches one Robinhood Chain token. Holding keeps the badge live while your balance stays (one badge per wallet); or burn <b id="burnB">1,000,000</b> for 30 days. Paying never buys a better verdict.</p></div>
|
|
72
|
+
<div class="card"><div class="k">C · HOLD</div><h2>Holder tier</h2><div class="amt" id="amtC">Hold 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>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<div class="panel">
|
|
76
|
+
<h2>Connect your wallet</h2>
|
|
77
|
+
<p>To use your holding, connect the wallet that holds OCULON and sign the request. Signing sends no transaction and costs nothing. To burn instead:</p>
|
|
78
|
+
<ol class="steps">
|
|
79
|
+
<li>From your wallet, send the amount of OCULON to the burn address <code>0x000000000000000000000000000000000000dEaD</code> on Robinhood Chain.</li>
|
|
80
|
+
<li>Copy the transaction hash once it is confirmed.</li>
|
|
81
|
+
<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>
|
|
82
|
+
</ol>
|
|
83
|
+
<p>Token: <code id="ca">loading…</code></p>
|
|
84
|
+
<div class="wallet"><button id="connect">Connect wallet</button><span id="who" class="src"></span></div>
|
|
85
|
+
<div id="walletMsg" class="msg"></div>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
<div class="panel" id="formA">
|
|
89
|
+
<h2>A · Start an investigation</h2>
|
|
90
|
+
<label for="aTarget">What to investigate</label><input id="aTarget" placeholder="example.com, 0x… wallet or token, or a company name">
|
|
91
|
+
<label>Pay with</label><div class="pay"><label class="opt"><input type="radio" name="aPay" value="hold" checked> my holding (1 every 30 days)</label><label class="opt"><input type="radio" name="aPay" value="burn"> a burn</label></div>
|
|
92
|
+
<div id="aBurn" class="hide"><label for="aTx">Burn transaction hash</label><input id="aTx" placeholder="0x…"></div>
|
|
93
|
+
<button id="aGo">Sign and start</button><div id="aMsg" class="msg"></div>
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
<div class="panel" id="formB">
|
|
97
|
+
<h2>B · Keep a live safety badge</h2>
|
|
98
|
+
<label for="bToken">Robinhood Chain token address</label><input id="bToken" placeholder="0x…">
|
|
99
|
+
<label>Pay with</label><div class="pay"><label class="opt"><input type="radio" name="bPay" value="hold" checked> my holding (live while I hold)</label><label class="opt"><input type="radio" name="bPay" value="burn"> a burn (30 days)</label></div>
|
|
100
|
+
<div id="bBurn" class="hide"><label for="bTx">Burn transaction hash</label><input id="bTx" placeholder="0x…"></div>
|
|
101
|
+
<button id="bGo">Sign and start monitoring</button><div id="bMsg" class="msg"></div>
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<div class="panel" id="formC">
|
|
105
|
+
<h2>C · Holder tier</h2>
|
|
106
|
+
<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>
|
|
107
|
+
<button id="cGo">Sign in as holder</button><button id="cOut" class="ghost hide">Sign out</button><div id="cMsg" class="msg"></div>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<div class="panel"><h2>Recent investigations</h2><div id="recent" class="list"><p class="src">None yet.</p></div></div>
|
|
111
|
+
<p class="src" style="margin-top:22px">Verdicts are automated readings of public data, not audits or financial advice. Holding is checked live; a burn cannot be refunded.</p>
|
|
112
|
+
</section>
|
|
113
|
+
|
|
114
|
+
<section id="inv" class="hide">
|
|
115
|
+
<div class="lbl">Investigation <span id="invId"></span></div>
|
|
116
|
+
<h1 id="invTarget">…</h1>
|
|
117
|
+
<p id="invBurn" class="src"></p>
|
|
118
|
+
<div class="panel" id="invBody"><p class="src">Running every relevant check. This page updates by itself.</p></div>
|
|
119
|
+
<p><a href="/utility">← Utility</a></p>
|
|
120
|
+
</section>
|
|
121
|
+
|
|
122
|
+
<section id="safe" class="hide">
|
|
123
|
+
<div class="lbl">Live safety badge</div>
|
|
124
|
+
<h1 id="safeName">…</h1>
|
|
125
|
+
<p><img id="safeBadge" alt="Oculon safety badge" height="22"></p>
|
|
126
|
+
<div class="panel" id="safeBody"></div>
|
|
127
|
+
<div class="panel"><h2>Embed the badge</h2><p>Markdown:</p><code id="embed"></code></div>
|
|
128
|
+
<p><a href="/utility">← Utility</a></p>
|
|
129
|
+
</section>
|
|
130
|
+
</main>
|
|
131
|
+
<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>
|
|
132
|
+
<script src="/assets/fx.js"></script>
|
|
133
|
+
<script>
|
|
134
|
+
if (window.OculonFX) { OculonFX.liquid(document.getElementById('liquidbg'), { base: '#000000', mid: '#001a26', hi: '#00c8e0', intensity: 0.8, scale: 0.3 }); }
|
|
135
|
+
const $ = (id) => document.getElementById(id);
|
|
136
|
+
$('year').textContent = new Date().getFullYear();
|
|
137
|
+
const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
138
|
+
const fmt = (n) => Number(n).toLocaleString('en-US');
|
|
139
|
+
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; };
|
|
140
|
+
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; };
|
|
141
|
+
const say = (el, text, kind) => { el.className = 'msg' + (kind ? ' ' + kind : ''); el.textContent = text; };
|
|
142
|
+
const hex = (s) => '0x' + [...new TextEncoder().encode(s)].map((b) => b.toString(16).padStart(2, '0')).join('');
|
|
143
|
+
let account = null;
|
|
144
|
+
|
|
145
|
+
async function connect() {
|
|
146
|
+
if (!window.ethereum) throw new Error('No wallet found in this browser. Open this page in a wallet browser or install a wallet extension.');
|
|
147
|
+
const accs = await window.ethereum.request({ method: 'eth_requestAccounts' });
|
|
148
|
+
account = String(accs[0]).toLowerCase();
|
|
149
|
+
$('who').textContent = account;
|
|
150
|
+
$('connect').textContent = 'Connected';
|
|
151
|
+
return account;
|
|
152
|
+
}
|
|
153
|
+
const sign = async (message) => { const a = account || await connect(); return window.ethereum.request({ method: 'personal_sign', params: [hex(message), a] }); };
|
|
154
|
+
const utilityMessage = (kind, target, tx) => `Oculon ${kind === 'investigate' ? 'investigation' : 'safety badge'}\nTarget: ${target.trim()}\nBurn: ${tx.trim().toLowerCase()}`;
|
|
155
|
+
const holdMessage = (kind, target, address, nonce) => `Oculon ${kind === 'investigate' ? 'investigation' : 'safety badge'}\nTarget: ${target.trim()}\nWallet: ${address.trim().toLowerCase()}\nPaid by: holding OCULON\nNonce: ${nonce}`;
|
|
156
|
+
const pay = (name) => document.querySelector(`input[name=${name}]:checked`).value;
|
|
157
|
+
for (const [name, box] of [['aPay', 'aBurn'], ['bPay', 'bBurn']]) document.querySelectorAll(`input[name=${name}]`).forEach((r) => r.onchange = () => $(box).classList.toggle('hide', pay(name) !== 'burn'));
|
|
158
|
+
const holdSign = async (kind, target) => { const a = account || await connect(); const { nonce } = await post('/api/utility/nonce', { address: a }); return { address: a, nonce, signature: await sign(holdMessage(kind, target, a, nonce)) }; };
|
|
159
|
+
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; } };
|
|
160
|
+
|
|
161
|
+
$('connect').onclick = () => busy($('connect'), $('walletMsg'), connect);
|
|
162
|
+
$('aGo').onclick = () => busy($('aGo'), $('aMsg'), async () => {
|
|
163
|
+
const target = $('aTarget').value.trim(), tx = $('aTx').value.trim();
|
|
164
|
+
if (!target) throw new Error('Fill in what to investigate.');
|
|
165
|
+
if (pay('aPay') === 'hold') {
|
|
166
|
+
say($('aMsg'), 'Sign the request in your wallet…');
|
|
167
|
+
const h = await holdSign('investigate', target);
|
|
168
|
+
say($('aMsg'), 'Checking your OCULON balance on Robinhood Chain…');
|
|
169
|
+
const r = await post('/api/utility/investigate', { mode: 'hold', target, ...h });
|
|
170
|
+
location.href = '/investigation/' + r.id; return;
|
|
171
|
+
}
|
|
172
|
+
if (!tx) throw new Error('Fill in the burn transaction hash.');
|
|
173
|
+
say($('aMsg'), 'Sign the request in your wallet…');
|
|
174
|
+
const signature = await sign(utilityMessage('investigate', target, tx));
|
|
175
|
+
say($('aMsg'), 'Checking the burn on Robinhood Chain…');
|
|
176
|
+
const r = await post('/api/utility/investigate', { target, tx, signature });
|
|
177
|
+
location.href = '/investigation/' + r.id;
|
|
178
|
+
});
|
|
179
|
+
$('bGo').onclick = () => busy($('bGo'), $('bMsg'), async () => {
|
|
180
|
+
const token = $('bToken').value.trim().toLowerCase(), tx = $('bTx').value.trim();
|
|
181
|
+
if (!token) throw new Error('Fill in the token address.');
|
|
182
|
+
if (pay('bPay') === 'hold') {
|
|
183
|
+
say($('bMsg'), 'Sign the request in your wallet…');
|
|
184
|
+
const h = await holdSign('safety', token);
|
|
185
|
+
say($('bMsg'), 'Checking your OCULON balance on Robinhood Chain…');
|
|
186
|
+
await post('/api/utility/safety', { mode: 'hold', token, ...h });
|
|
187
|
+
location.href = '/safety/' + token; return;
|
|
188
|
+
}
|
|
189
|
+
if (!tx) throw new Error('Fill in the burn transaction hash.');
|
|
190
|
+
say($('bMsg'), 'Sign the request in your wallet…');
|
|
191
|
+
const signature = await sign(utilityMessage('safety', token, tx));
|
|
192
|
+
say($('bMsg'), 'Checking the burn on Robinhood Chain…');
|
|
193
|
+
await post('/api/utility/safety', { token, tx, signature });
|
|
194
|
+
location.href = '/safety/' + token;
|
|
195
|
+
});
|
|
196
|
+
const onApp = location.hostname.startsWith('app.') || !/\./.test(location.hostname) || location.hostname === '127.0.0.1';
|
|
197
|
+
$('cGo').onclick = () => busy($('cGo'), $('cMsg'), async () => {
|
|
198
|
+
if (!onApp) { location.href = 'https://app.' + location.hostname.replace(/^www\./, '') + '/utility#formC'; return; }
|
|
199
|
+
const a = account || await connect();
|
|
200
|
+
const { message } = await post('/api/utility/nonce', { address: a });
|
|
201
|
+
const signature = await sign(message);
|
|
202
|
+
const r = await post('/api/utility/holder', { message, signature });
|
|
203
|
+
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'); }
|
|
204
|
+
else say($('cMsg'), `This wallet holds ${r.balance} OCULON; the holder tier needs ${r.needs}.`, 'err');
|
|
205
|
+
});
|
|
206
|
+
$('cOut').onclick = () => busy($('cOut'), $('cMsg'), async () => { await post('/api/utility/signout', {}); say($('cMsg'), 'Signed out.', 'ok'); $('cOut').classList.add('hide'); });
|
|
207
|
+
|
|
208
|
+
async function home() {
|
|
209
|
+
if (!onApp) $('cGo').textContent = 'Sign in on the app';
|
|
210
|
+
const i = await get('/api/utility/info');
|
|
211
|
+
$('ca').textContent = i.token ? i.token.ca : 'not configured';
|
|
212
|
+
$('amtA').textContent = 'Hold ' + fmt(i.amounts.holdInvestigate); $('amtB').textContent = 'Hold ' + fmt(i.amounts.holdSafety); $('amtC').textContent = 'Hold ' + fmt(i.amounts.holder);
|
|
213
|
+
$('burnA').textContent = fmt(i.amounts.investigate); $('burnB').textContent = fmt(i.amounts.safety);
|
|
214
|
+
if (i.holder) { say($('cMsg'), `Holder tier on for ${i.holder.address} until ${i.holder.expiresAt.slice(0, 10)}.`, 'ok'); $('cOut').classList.remove('hide'); }
|
|
215
|
+
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('');
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
async function investigation(id) {
|
|
219
|
+
$('home').classList.add('hide'); $('inv').classList.remove('hide'); $('invId').textContent = id;
|
|
220
|
+
const draw = (v) => {
|
|
221
|
+
$('invTarget').textContent = v.target;
|
|
222
|
+
document.title = 'Oculon investigation: ' + v.target;
|
|
223
|
+
if (v.heldBy) $('invBurn').innerHTML = `Requested by a holder of ${esc(v.heldBy.balance)} OCULON: <code>${esc(v.heldBy.address)}</code> · ${esc(v.createdAt.slice(0, 16).replace('T', ' '))} UTC`;
|
|
224
|
+
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`;
|
|
225
|
+
if (v.status !== 'done') return;
|
|
226
|
+
$('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>';
|
|
227
|
+
};
|
|
228
|
+
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)); }
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
async function safety(token) {
|
|
232
|
+
$('home').classList.add('hide'); $('safe').classList.remove('hide');
|
|
233
|
+
const s = await get('/api/utility/safety?token=' + token);
|
|
234
|
+
$('safeName').textContent = s.symbol ? `${s.symbol}${s.name ? ' · ' + s.name : ''}` : token;
|
|
235
|
+
$('safeBadge').src = '/badge/' + token + '.svg?t=' + Date.now();
|
|
236
|
+
const abs = location.origin + '/badge/' + token + '.svg';
|
|
237
|
+
$('embed').textContent = `[](${location.origin}/safety/${token})`;
|
|
238
|
+
$('safeBody').innerHTML = !s.expiresAt ? '<p>This token is not monitored. Hold 2,000,000 OCULON, or burn 1,000,000, on the <a href="/utility">utility page</a> to start a live badge.</p>'
|
|
239
|
+
: `<h2>${s.active ? `<span class="pill v-${esc(s.verdict)}">${esc(s.verdict ?? 'CHECKING')}</span>` : 'Monitoring ended'}</h2>
|
|
240
|
+
<p class="src">Token <code>${esc(token)}</code> · ${s.heldBy ? `backed by a holder: <code>${esc(s.heldBy)}</code> · ` : ''}${s.active ? (s.heldBy ? 'live while the holder keeps 2,000,000' : 'monitored until') : 'ended'} ${s.heldBy ? '' : esc(s.expiresAt.slice(0, 10))} · last check ${esc((s.lastCheck || '').slice(0, 16).replace('T', ' '))} UTC</p>
|
|
241
|
+
${s.reasons.length ? `<ul>${s.reasons.map((r) => `<li>${esc(r)}</li>`).join('')}</ul>` : '<p>No risk flags in the last check.</p>'}
|
|
242
|
+
${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>` : ''}
|
|
243
|
+
<p class="src">Heuristics over pool and explorer data, not an audit. Burning for a badge never changes the verdict.</p>`;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
const inv = /^\/investigation\/([0-9a-f]{12})$/.exec(location.pathname);
|
|
247
|
+
const saf = /^\/safety\/(0x[0-9a-fA-F]{40})$/.exec(location.pathname);
|
|
248
|
+
(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>`); });
|
|
249
|
+
</script>
|
|
250
|
+
</body>
|
|
251
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oculon",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
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",
|