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,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Token burns for /thetoken, read straight from the chain: every Transfer of the token to the dead address or
|
|
3
|
+
* the zero address since the deploy block, with the block time. The total is the dead address balance plus
|
|
4
|
+
* everything sent to the zero address. Callers cache the result so page views do not hit the RPC.
|
|
5
|
+
*/
|
|
6
|
+
const TRANSFER = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef';
|
|
7
|
+
const DEAD = '0x000000000000000000000000000000000000dead';
|
|
8
|
+
const ZERO = '0x0000000000000000000000000000000000000000';
|
|
9
|
+
const pad = (a) => `0x${a.slice(2).toLowerCase().padStart(64, '0')}`;
|
|
10
|
+
/** Whole tokens with thousands separators, plus two decimals when there are any. */
|
|
11
|
+
export function formatUnits(raw, decimals) {
|
|
12
|
+
const base = 10n ** BigInt(decimals);
|
|
13
|
+
const whole = raw / base;
|
|
14
|
+
const cents = decimals >= 2 ? (raw % base) / 10n ** BigInt(decimals - 2) : 0n;
|
|
15
|
+
return `${whole.toLocaleString('en-US')}${cents ? `.${cents.toString().padStart(2, '0')}` : ''}`;
|
|
16
|
+
}
|
|
17
|
+
export function rpcClient(url, fetchImpl = fetch) {
|
|
18
|
+
let id = 0;
|
|
19
|
+
return async (method, params) => {
|
|
20
|
+
const r = await fetchImpl(url, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ jsonrpc: '2.0', id: ++id, method, params }), signal: AbortSignal.timeout(15_000) });
|
|
21
|
+
const j = (await r.json());
|
|
22
|
+
if (j.error || j.result === undefined)
|
|
23
|
+
throw new Error(`rpc ${method}: ${j.error?.message ?? `HTTP ${r.status}`}`);
|
|
24
|
+
return j.result;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export async function readBurns(rpc, token, fromBlock, now = new Date()) {
|
|
28
|
+
const call = (data) => rpc('eth_call', [{ to: token, data }, 'latest']);
|
|
29
|
+
const [decHex, supplyHex, deadHex] = await Promise.all([call('0x313ce567'), call('0x18160ddd'), call(`0x70a08231${pad(DEAD).slice(2)}`)]);
|
|
30
|
+
const decimals = Number(BigInt(decHex));
|
|
31
|
+
const query = (to) => rpc('eth_getLogs', [{ address: token, fromBlock: `0x${fromBlock.toString(16)}`, toBlock: 'latest', topics: [TRANSFER, null, pad(to)] }]);
|
|
32
|
+
const [toDead, toZero] = await Promise.all([query(DEAD), query(ZERO)]);
|
|
33
|
+
const logs = [...toDead, ...toZero];
|
|
34
|
+
const times = new Map();
|
|
35
|
+
await Promise.all([...new Set(logs.map((l) => l.blockNumber))].map(async (b) => {
|
|
36
|
+
const blk = await rpc('eth_getBlockByNumber', [b, false]);
|
|
37
|
+
times.set(b, new Date(Number(BigInt(blk.timestamp)) * 1000).toISOString());
|
|
38
|
+
}));
|
|
39
|
+
const burns = logs
|
|
40
|
+
.map((l) => ({ l, order: Number(BigInt(l.blockNumber)) * 1e4 + Number(BigInt(l.logIndex)) }))
|
|
41
|
+
.sort((a, b) => b.order - a.order)
|
|
42
|
+
.map(({ l }) => ({ tx: l.transactionHash, time: times.get(l.blockNumber), amount: formatUnits(BigInt(l.data), decimals) }));
|
|
43
|
+
const zeroRaw = toZero.reduce((s, l) => s + BigInt(l.data), 0n);
|
|
44
|
+
const totalRaw = BigInt(deadHex) + zeroRaw;
|
|
45
|
+
// A burn to the zero address lowers totalSupply, so add it back to compare against the supply at launch.
|
|
46
|
+
const supply = BigInt(supplyHex) + zeroRaw;
|
|
47
|
+
return {
|
|
48
|
+
total: formatUnits(totalRaw, decimals),
|
|
49
|
+
percent: supply > 0n ? `${(Number((totalRaw * 1000000n) / supply) / 10_000).toFixed(2)}%` : null,
|
|
50
|
+
burns,
|
|
51
|
+
checkedAt: now.toISOString(),
|
|
52
|
+
};
|
|
53
|
+
}
|
package/dist/web/landing.html
CHANGED
|
@@ -641,7 +641,7 @@ r.provenance <span class="d">// every source used</span></pre></div></div>
|
|
|
641
641
|
<div class="fbrand"><a class="logo" href="/"><img class="lm" src="/assets/logo.svg" alt="" width="22" height="22">OCULON</a><p>Open-source intelligence engine for the physical and digital world. Self-hosted, MIT licensed, zero runtime dependencies.</p><div class="fstatus"><i></i><span id="f-status">Engine online</span></div><div class="social"><a href="https://x.com/oculonlive" target="_blank" rel="noopener" aria-label="Oculon on X" title="Oculon on X"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a><a href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on GitHub" title="Oculon on GitHub"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a href="https://www.npmjs.com/package/oculon" target="_blank" rel="noopener" aria-label="Oculon on npm" title="Oculon on npm"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg></a><a href="https://t.me/oculon_radar_bot" target="_blank" rel="noopener" aria-label="Oculon Radar on Telegram" title="Oculon Radar on Telegram"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg></a><a href="https://glama.ai/mcp/servers/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on Glama" title="Oculon on Glama"><svg viewBox="15 15 300 300" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M95 15H75V155H95V15ZM255 15H235V155H255V15ZM75 25H65V125H75V25ZM265 25H255V125H265V25ZM65 35H55V95H65V35ZM275 35H265V95H275V35ZM105 75H95V155H105V75ZM235 75H225V155H235V75ZM205 85H125V185H205V85ZM125 95H105V155H125V95ZM225 95H205V155H225V95ZM75 145H65V155H75V145ZM265 145H255V155H265V145ZM125 155H115V225H125V155ZM215 155H205V225H215V155ZM85 165H75V315H85V165ZM115 165H105V315H115V165ZM225 165H215V315H225V165ZM255 165H245V315H255V165ZM105 175H85V315H105V175ZM245 175H225V315H245V175ZM135 185H125V235H135V185ZM185 185H145V195H185V185ZM205 185H195V235H205V185ZM75 195H65V275H75V195ZM145 195H135V235H145V195ZM195 195H185V235H195V195ZM155 205H145V235H155V205ZM185 205H175V235H185V205ZM125 235H115V315H125V235ZM215 235H205V315H215V235ZM145 245H125V315H145V245ZM205 245H185V315H205V245ZM185 265H145V315H185V265Z"/></svg></a></div></div>
|
|
642
642
|
<div><h5>Product</h5><a href="#console">Console</a><!--onchain--><a href="#robinhood">Robinhood Chain</a><!--/onchain--><a href="#world">Live world</a><a href="#modules">Modules</a><a href="/app">Open the app</a></div>
|
|
643
643
|
<div><h5>Developers</h5><a href="/docs#cli">CLI</a><a href="/docs#sdk">SDK</a><a href="/docs#mcp-server">MCP server</a><a href="/docs#telegram-bot">Telegram bot</a><a href="/docs#cli-reference">Command reference</a></div>
|
|
644
|
-
<div><h5>Resources</h5><a href="/docs">Documentation</a><a href="/docs#install">Install</a><a href="/docs#configuration">Configuration</a><a href="/docs#limits">Limits</a><a href="/report">Weekly report</a></div>
|
|
644
|
+
<div><h5>Resources</h5><a href="/docs">Documentation</a><a href="/docs#install">Install</a><a href="/docs#configuration">Configuration</a><a href="/docs#limits">Limits</a><a href="/report">Weekly report</a><a href="/thetoken">Token</a></div>
|
|
645
645
|
<div><h5>Legal</h5><a href="/privacy">Privacy</a><a href="/terms">Terms</a><a href="/docs#license">Licence (MIT)</a><a href="/terms#sources">Data sources</a></div>
|
|
646
646
|
</div>
|
|
647
647
|
<div class="fword" aria-hidden="true">OCULON</div>
|
package/dist/web/legal.html
CHANGED
|
@@ -156,7 +156,7 @@ footer{background:rgba(0,0,0,.6);backdrop-filter:blur(6px)}
|
|
|
156
156
|
<p>These terms ship with the software and may change between versions.</p>
|
|
157
157
|
</article>
|
|
158
158
|
</main>
|
|
159
|
-
<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></span></div><div class="in" style="padding-top:0"><div class="social" style="margin-top:0"><a href="https://x.com/oculonlive" target="_blank" rel="noopener" aria-label="Oculon on X" title="Oculon on X"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a><a href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on GitHub" title="Oculon on GitHub"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a href="https://www.npmjs.com/package/oculon" target="_blank" rel="noopener" aria-label="Oculon on npm" title="Oculon on npm"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg></a><a href="https://t.me/oculon_radar_bot" target="_blank" rel="noopener" aria-label="Oculon Radar on Telegram" title="Oculon Radar on Telegram"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg></a><a href="https://glama.ai/mcp/servers/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on Glama" title="Oculon on Glama"><svg viewBox="15 15 300 300" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M95 15H75V155H95V15ZM255 15H235V155H255V15ZM75 25H65V125H75V25ZM265 25H255V125H265V25ZM65 35H55V95H65V35ZM275 35H265V95H275V35ZM105 75H95V155H105V75ZM235 75H225V155H235V75ZM205 85H125V185H205V85ZM125 95H105V155H125V95ZM225 95H205V155H225V95ZM75 145H65V155H75V145ZM265 145H255V155H265V145ZM125 155H115V225H125V155ZM215 155H205V225H215V155ZM85 165H75V315H85V165ZM115 165H105V315H115V165ZM225 165H215V315H225V165ZM255 165H245V315H255V165ZM105 175H85V315H105V175ZM245 175H225V315H245V175ZM135 185H125V235H135V185ZM185 185H145V195H185V185ZM205 185H195V235H205V185ZM75 195H65V275H75V195ZM145 195H135V235H145V195ZM195 195H185V235H195V195ZM155 205H145V235H155V205ZM185 205H175V235H185V205ZM125 235H115V315H125V235ZM215 235H205V315H215V235ZM145 245H125V315H145V245ZM205 245H185V315H205V245ZM185 265H145V315H185V265Z"/></svg></a></div></div></footer>
|
|
159
|
+
<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><div class="in" style="padding-top:0"><div class="social" style="margin-top:0"><a href="https://x.com/oculonlive" target="_blank" rel="noopener" aria-label="Oculon on X" title="Oculon on X"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a><a href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on GitHub" title="Oculon on GitHub"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a href="https://www.npmjs.com/package/oculon" target="_blank" rel="noopener" aria-label="Oculon on npm" title="Oculon on npm"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg></a><a href="https://t.me/oculon_radar_bot" target="_blank" rel="noopener" aria-label="Oculon Radar on Telegram" title="Oculon Radar on Telegram"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg></a><a href="https://glama.ai/mcp/servers/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on Glama" title="Oculon on Glama"><svg viewBox="15 15 300 300" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M95 15H75V155H95V15ZM255 15H235V155H255V15ZM75 25H65V125H75V25ZM265 25H255V125H265V25ZM65 35H55V95H65V35ZM275 35H265V95H275V35ZM105 75H95V155H105V75ZM235 75H225V155H235V75ZM205 85H125V185H205V85ZM125 95H105V155H125V95ZM225 95H205V155H225V95ZM75 145H65V155H75V145ZM265 145H255V155H265V145ZM125 155H115V225H125V155ZM215 155H205V225H215V155ZM85 165H75V315H85V165ZM115 165H105V315H115V165ZM225 165H215V315H225V165ZM255 165H245V315H255V165ZM105 175H85V315H105V175ZM245 175H225V315H245V175ZM135 185H125V235H135V185ZM185 185H145V195H185V185ZM205 185H195V235H205V185ZM75 195H65V275H75V195ZM145 195H135V235H145V195ZM195 195H185V235H195V195ZM155 205H145V235H155V205ZM185 205H175V235H185V205ZM125 235H115V315H125V235ZM215 235H205V315H215V235ZM145 245H125V315H145V245ZM205 245H185V315H205V245ZM185 265H145V315H185V265Z"/></svg></a></div></div></footer>
|
|
160
160
|
<script src="/assets/fx.js"></script>
|
|
161
161
|
<script>
|
|
162
162
|
if (window.OculonFX) { OculonFX.liquid(document.getElementById('liquidbg'), { base: '#000000', mid: '#001a26', hi: '#00c8e0', intensity: 0.8, scale: 0.3 }); }
|
package/dist/web/mcp.html
CHANGED
|
@@ -92,7 +92,7 @@ footer a{color:var(--soft)}
|
|
|
92
92
|
<div class="f"><strong>Open source</strong>Run your own copy with <code>oculon serve</code>; it serves this endpoint at <code>/mcp</code>.</div>
|
|
93
93
|
</div>
|
|
94
94
|
</main>
|
|
95
|
-
<footer><div class="social" style="justify-content:center;margin:0 0 14px"><a href="https://x.com/oculonlive" target="_blank" rel="noopener" aria-label="Oculon on X" title="Oculon on X"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a><a href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on GitHub" title="Oculon on GitHub"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a href="https://www.npmjs.com/package/oculon" target="_blank" rel="noopener" aria-label="Oculon on npm" title="Oculon on npm"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg></a><a href="https://t.me/oculon_radar_bot" target="_blank" rel="noopener" aria-label="Oculon Radar on Telegram" title="Oculon Radar on Telegram"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg></a><a href="https://glama.ai/mcp/servers/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on Glama" title="Oculon on Glama"><svg viewBox="15 15 300 300" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M95 15H75V155H95V15ZM255 15H235V155H255V15ZM75 25H65V125H75V25ZM265 25H255V125H265V25ZM65 35H55V95H65V35ZM275 35H265V95H275V35ZM105 75H95V155H105V75ZM235 75H225V155H235V75ZM205 85H125V185H205V85ZM125 95H105V155H125V95ZM225 95H205V155H225V95ZM75 145H65V155H75V145ZM265 145H255V155H265V145ZM125 155H115V225H125V155ZM215 155H205V225H215V155ZM85 165H75V315H85V165ZM115 165H105V315H115V165ZM225 165H215V315H225V165ZM255 165H245V315H255V165ZM105 175H85V315H105V175ZM245 175H225V315H245V175ZM135 185H125V235H135V185ZM185 185H145V195H185V185ZM205 185H195V235H205V185ZM75 195H65V275H75V195ZM145 195H135V235H145V195ZM195 195H185V235H195V195ZM155 205H145V235H155V205ZM185 205H175V235H185V205ZM125 235H115V315H125V235ZM215 235H205V315H215V235ZM145 245H125V315H145V245ZM205 245H185V315H205V245ZM185 265H145V315H185V265Z"/></svg></a></div><a href="/">oculon.live</a> · <a href="/docs#remote-mcp">Docs</a> · <a href="/privacy">Privacy</a> · <a href="/terms">Terms</a></footer>
|
|
95
|
+
<footer><div class="social" style="justify-content:center;margin:0 0 14px"><a href="https://x.com/oculonlive" target="_blank" rel="noopener" aria-label="Oculon on X" title="Oculon on X"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg></a><a href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on GitHub" title="Oculon on GitHub"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><a href="https://www.npmjs.com/package/oculon" target="_blank" rel="noopener" aria-label="Oculon on npm" title="Oculon on npm"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"/></svg></a><a href="https://t.me/oculon_radar_bot" target="_blank" rel="noopener" aria-label="Oculon Radar on Telegram" title="Oculon Radar on Telegram"><svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg></a><a href="https://glama.ai/mcp/servers/oculonlive/oculon" target="_blank" rel="noopener" aria-label="Oculon on Glama" title="Oculon on Glama"><svg viewBox="15 15 300 300" width="20" height="20" fill="currentColor" aria-hidden="true"><path d="M95 15H75V155H95V15ZM255 15H235V155H255V15ZM75 25H65V125H75V25ZM265 25H255V125H265V25ZM65 35H55V95H65V35ZM275 35H265V95H275V35ZM105 75H95V155H105V75ZM235 75H225V155H235V75ZM205 85H125V185H205V85ZM125 95H105V155H125V95ZM225 95H205V155H225V95ZM75 145H65V155H75V145ZM265 145H255V155H265V145ZM125 155H115V225H125V155ZM215 155H205V225H215V155ZM85 165H75V315H85V165ZM115 165H105V315H115V165ZM225 165H215V315H225V165ZM255 165H245V315H255V165ZM105 175H85V315H105V175ZM245 175H225V315H245V175ZM135 185H125V235H135V185ZM185 185H145V195H185V185ZM205 185H195V235H205V185ZM75 195H65V275H75V195ZM145 195H135V235H145V195ZM195 195H185V235H195V195ZM155 205H145V235H155V205ZM185 205H175V235H185V205ZM125 235H115V315H125V235ZM215 235H205V315H215V235ZM145 245H125V315H145V245ZM205 245H185V315H205V245ZM185 265H145V315H185V265Z"/></svg></a></div><a href="/">oculon.live</a> · <a href="/docs#remote-mcp">Docs</a> · <a href="/privacy">Privacy</a> · <a href="/terms">Terms</a> · <a href="/thetoken">Token</a></footer>
|
|
96
96
|
<script src="/assets/fx.js"></script>
|
|
97
97
|
<script>
|
|
98
98
|
if (window.OculonFX) { try { OculonFX.liquid(document.getElementById('liquidbg'), { base: '#000000', mid: '#001a26', hi: '#00c8e0', intensity: 0.8, scale: 0.3 }); } catch {} }
|
package/dist/web/openapi.js
CHANGED
|
@@ -12,6 +12,10 @@ const E = [
|
|
|
12
12
|
['/api/ip', 'ipCheck', 'Who runs this IP, and is it known for abuse? AbuseIPDB, GreyNoise, OTX, VirusTotal, ThreatFox, Spamhaus DROP, Tor, open ports.', [{ name: 'ip', desc: 'IP address or domain', example: '185.220.101.1', required: true }]],
|
|
13
13
|
['/api/hash', 'hashCheck', 'Is this file known malware or a known good file? MD5, SHA-1 or SHA-256.', [{ name: 'hash', desc: 'File hash in hex', example: '094fd325049b8a9cf6d3e5ef2a6d4cc6a567d7d49c35f8bb8dd9e3c6acf3d78d', required: true }]],
|
|
14
14
|
['/api/ransomware', 'ransomwareClaims', 'Ransomware leak-site claims: newest, or by country code, sector, company or domain.', [{ name: 'q', desc: 'Country code, sector, company or domain (optional)', example: 'Healthcare' }]],
|
|
15
|
+
['/api/iban', 'ibanCheck', 'Check an IBAN offline: country, length, check digits, bank code, and whether the account is in the supplier\'s country.', [{ name: 'iban', desc: 'IBAN', example: 'DE89 3704 0044 0532 0130 00', required: true }, { name: 'country', desc: 'Supplier ISO country code', example: 'NL' }]],
|
|
16
|
+
['/api/lookalike', 'lookalikes', 'Lookalike domains of a brand that exist in DNS, and new certificates naming the brand.', [{ name: 'domain', desc: 'The real domain', example: 'example.com', required: true }]],
|
|
17
|
+
['/api/honeypot', 'honeypotCheck', 'Can this token be sold? Buy and sell simulation with taxes (Ethereum, BNB Chain, Base).', [{ name: 'address', desc: 'Token contract address', example: '0x6982508145454Ce325dDbE47a25d4ec3d2311933', required: true }, { name: 'chain', desc: 'eth, bsc or base', example: 'eth' }]],
|
|
18
|
+
['/api/address', 'addressCheck', 'Crypto address check without keys: chain, OFAC sanctions, balance and activity.', [{ name: 'address', desc: 'Crypto address', example: 'bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh', required: true }, { name: 'network', desc: '"robinhood" for Robinhood Chain 0x addresses', example: 'robinhood' }]],
|
|
15
19
|
['/api/satellites', 'satellites', 'Satellites launched in the last 30 days, or one object\'s orbit, owner and status.', [{ name: 'q', desc: 'Satellite name or NORAD number (optional)', example: '25544' }]],
|
|
16
20
|
['/api/travel', 'travelRisk', 'Travel risk for the coming week: official advice, weather, air, outbreaks, disasters, quakes, outages.', [{ name: 'place', desc: 'City or country', example: 'Lisbon', required: true }]],
|
|
17
21
|
['/api/airport', 'airportStatus', 'Airport weather (METAR, TAF), FAA delays and ground stops, nearby emergency squawks.', [{ name: 'code', desc: 'IATA or ICAO code, or name', example: 'JFK', required: true }]],
|
package/dist/web/public.js
CHANGED
|
@@ -51,9 +51,13 @@ export const PUBLIC_API = new Set([
|
|
|
51
51
|
'/api/breaches',
|
|
52
52
|
'/api/phone',
|
|
53
53
|
'/api/satellites',
|
|
54
|
+
'/api/iban',
|
|
55
|
+
'/api/lookalike',
|
|
56
|
+
'/api/honeypot',
|
|
57
|
+
'/api/address',
|
|
54
58
|
]);
|
|
55
59
|
/** Endpoints that start outside work (a CLI process or several upstream calls) get a tighter budget. */
|
|
56
|
-
const HEAVY = new Set(['/api/console', '/api/rhtoken', '/api/verify', '/api/url', '/api/travel', '/api/audit', '/api/recall', '/api/emailsec', '/api/country', '/api/airport', '/api/scam', '/api/ip', '/api/hash', '/api/company', '/api/phone']);
|
|
60
|
+
const HEAVY = new Set(['/api/console', '/api/rhtoken', '/api/verify', '/api/url', '/api/travel', '/api/audit', '/api/recall', '/api/emailsec', '/api/country', '/api/airport', '/api/scam', '/api/ip', '/api/hash', '/api/company', '/api/phone', '/api/lookalike', '/api/honeypot', '/api/address']);
|
|
57
61
|
/** Signals from these modules describe the owner's own watchlist, cases, fences, votes or raw social streams. */
|
|
58
62
|
const PRIVATE_MODULES = new Set(['meerkat', 'case', 'fence', 'feedback', 'live']);
|
|
59
63
|
export function publicSignals(list) {
|
package/dist/web/server.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { type Server } from 'node:http';
|
|
2
2
|
import { Oculon } from '../index.js';
|
|
3
3
|
import { type Delivery } from '../modules/personal.js';
|
|
4
|
+
import { type BurnInfo } from './burns.js';
|
|
4
5
|
export interface WebOptions {
|
|
6
|
+
/** RPC for the burn list on /thetoken (default ROBINHOOD_PUBLIC_RPC_URL) and a fetch for tests. */
|
|
7
|
+
burnRpcUrl?: string;
|
|
8
|
+
burnFetch?: typeof fetch;
|
|
5
9
|
port?: number;
|
|
6
10
|
host?: string;
|
|
7
11
|
/** Open to the internet: read-only overview and docs for visitors, full app only with the admin cookie. */
|
|
@@ -61,6 +65,19 @@ export declare const POST_ROUTES: Record<string, PostHandler>;
|
|
|
61
65
|
* and on the public domain points /app and /docs links at their subdomains.
|
|
62
66
|
*/
|
|
63
67
|
export declare function renderPage(html: string, domain: string | null): string;
|
|
68
|
+
export interface TokenInfo {
|
|
69
|
+
ca: string;
|
|
70
|
+
chain: string;
|
|
71
|
+
ticker: string;
|
|
72
|
+
explorer: string;
|
|
73
|
+
launchpad: string;
|
|
74
|
+
txBase: string;
|
|
75
|
+
deployBlock: number;
|
|
76
|
+
}
|
|
77
|
+
/** The burn section on /thetoken: total, share of supply and every burn with its time and transaction. */
|
|
78
|
+
export declare function burnBlock(b: BurnInfo | null, t: Partial<TokenInfo>): string;
|
|
79
|
+
/** The address block on /thetoken, from src/web/token.json. An empty address says no token is official yet. */
|
|
80
|
+
export declare function tokenBlock(t: Partial<TokenInfo>): string;
|
|
64
81
|
export declare function createWebServer(opts?: WebOptions): {
|
|
65
82
|
server: Server;
|
|
66
83
|
oculon: Oculon;
|
package/dist/web/server.js
CHANGED
|
@@ -23,6 +23,8 @@ import { addPersonal, confirmEmail, emailStatus, listPersonal, personalAlerts, r
|
|
|
23
23
|
import { mailEnabled } from '../sources/resend.js';
|
|
24
24
|
import { analyst, crossExamine, isAnalystModel } from '../analyst.js';
|
|
25
25
|
import { scrubSecrets } from '../core/keys.js';
|
|
26
|
+
import { readBurns, rpcClient } from './burns.js';
|
|
27
|
+
import { UTILITY, badgeSvg, createNonce, getInvestigation, holderFor, listInvestigations, runSafety, safetyState, signOutHolder, startInvestigation, startSafety, tokenConfig, verifyHolder } from '../modules/utility.js';
|
|
26
28
|
/** Analyst questions and cross-examinations per visitor address per hour on a public install. */
|
|
27
29
|
const ANALYST_PER_HOUR = Number(process.env.OCULON_ANALYST_PER_HOUR ?? 40);
|
|
28
30
|
const analystHits = new Map();
|
|
@@ -276,6 +278,10 @@ export const ROUTES = {
|
|
|
276
278
|
},
|
|
277
279
|
'/api/breaches': async (q, o) => slim(await o.breaches((q.get('domain') ?? '').slice(0, 120))),
|
|
278
280
|
'/api/phone': async (q, o) => slim(await o.phoneCheck(need(q, 'number', 32), q.get('country') ? { country: q.get('country').slice(0, 2) } : {})),
|
|
281
|
+
'/api/iban': async (q, o) => slim(await o.ibanCheck(need(q, 'iban', 64), q.get('country') ? { country: q.get('country').slice(0, 2) } : {})),
|
|
282
|
+
'/api/lookalike': async (q, o) => slim(await o.lookalikes(need(q, 'domain', 120))),
|
|
283
|
+
'/api/honeypot': async (q, o) => slim(await o.honeypotCheck(need(q, 'address', 60), q.get('chain') ? { chain: q.get('chain').slice(0, 12) } : {})),
|
|
284
|
+
'/api/address': async (q, o) => slim(await o.addressCheck(need(q, 'address', 120), q.get('network') ? { network: q.get('network').slice(0, 20) } : {})),
|
|
279
285
|
'/api/satellites': async (q, o) => slim(await o.satellites((q.get('q') ?? '').slice(0, 60))),
|
|
280
286
|
'/api/papers': async (q, o) => slim(await o.papers(need(q, 'topic', 200), q.get('years') ? { years: Number(q.get('years')) || 3 } : {})),
|
|
281
287
|
'/api/country': async (q, o) => {
|
|
@@ -382,6 +388,13 @@ async function readJson(req, limit = 10_000) {
|
|
|
382
388
|
/** Writes that change what the whole install watches. */
|
|
383
389
|
const OWNER_ONLY = new Set(['/api/monitor', '/api/watch/delete', '/api/fences', '/api/fences/delete', '/api/cases']);
|
|
384
390
|
export const POST_ROUTES = {
|
|
391
|
+
// Raw email headers can be several kilobytes, too long for a query string.
|
|
392
|
+
'/api/headers': async (b, o) => {
|
|
393
|
+
const raw = String(b.headers ?? '');
|
|
394
|
+
if (!raw.trim())
|
|
395
|
+
throw new HttpError(400, 'missing headers');
|
|
396
|
+
return o.headerCheck(raw.slice(0, 100_000));
|
|
397
|
+
},
|
|
385
398
|
'/api/fences': (b, o) => {
|
|
386
399
|
const box = Array.isArray(b.box) ? b.box.map(Number) : null;
|
|
387
400
|
if (!box || box.length !== 4)
|
|
@@ -516,12 +529,41 @@ export function renderPage(html, domain) {
|
|
|
516
529
|
.replace(/href="\/app(#[^"]*)?"/g, (_m, h) => `href="https://app.${domain}/${h ?? ''}"`)
|
|
517
530
|
.replace(/href="\/report"/g, `href="https://app.${domain}/report"`)
|
|
518
531
|
.replace(/href="\/ask"/g, `href="https://${domain}/ask"`)
|
|
532
|
+
.replace(/href="\/thetoken"/g, `href="https://${domain}/thetoken"`)
|
|
533
|
+
.replace(/href="\/utility"/g, `href="https://${domain}/utility"`)
|
|
519
534
|
.replace(/href="\/docs(?:#([^"]*))?"/g, (_m, h) => `href="https://docs.${domain}/${h ?? ''}"`)
|
|
520
535
|
.replace(/href="\/(privacy|terms)(#[^"]*)?"/g, (_m, p, h) => `href="${main}/${p}${h ?? ''}"`)
|
|
521
536
|
.replace(/href="\/"/g, `href="${main}/"`);
|
|
522
537
|
}
|
|
523
538
|
return out;
|
|
524
539
|
}
|
|
540
|
+
/** The burn section on /thetoken: total, share of supply and every burn with its time and transaction. */
|
|
541
|
+
export function burnBlock(b, t) {
|
|
542
|
+
if (!b)
|
|
543
|
+
return '';
|
|
544
|
+
const esc = (s) => s.replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
545
|
+
const base = /^https:\/\/[^\s"'<>]+$/.test(t.txBase ?? '') ? t.txBase.replace(/\/$/, '') : '';
|
|
546
|
+
const when = (iso) => `${iso.slice(0, 10)} ${iso.slice(11, 16)} UTC`;
|
|
547
|
+
const short = (tx) => `${tx.slice(0, 10)}…${tx.slice(-6)}`;
|
|
548
|
+
const rows = b.burns.map((x) => `<tr><td>${esc(when(x.time))}<br>${base ? `<a href="${esc(base)}/tx/${esc(x.tx)}" target="_blank" rel="noopener">${esc(short(x.tx))}</a>` : `<span>${esc(short(x.tx))}</span>`}</td><td class="n">${esc(x.amount)}</td></tr>`).join('');
|
|
549
|
+
return `<div class="burn"><div class="lbl">Burned</div><div class="btot"><span>${esc(b.total)}</span>${b.percent ? `<em>${esc(b.percent)} of supply</em>` : ''}</div>`
|
|
550
|
+
+ (rows ? `<div class="btable"><table><thead><tr><th>Time · transaction</th><th class="n">Amount</th></tr></thead><tbody>${rows}</tbody></table></div>` : '<p>No burns yet.</p>')
|
|
551
|
+
+ `<p class="bnote">Read live from the chain: transfers to the dead and zero addresses. Updated ${esc(when(b.checkedAt))}.</p></div>`;
|
|
552
|
+
}
|
|
553
|
+
/** The address block on /thetoken, from src/web/token.json. An empty address says no token is official yet. */
|
|
554
|
+
export function tokenBlock(t) {
|
|
555
|
+
const esc = (s) => s.replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
556
|
+
const ca = (t.ca ?? '').trim();
|
|
557
|
+
if (!ca)
|
|
558
|
+
return '<div class="ca none"><p>No official token address has been posted yet. Until it appears here, on X and on GitHub at the same time, any address claimed to be Oculon is not ours.</p></div>';
|
|
559
|
+
const safe = (u) => (/^https:\/\/[^\s"'<>]+$/.test(u ?? '') ? u : '');
|
|
560
|
+
const launchpad = safe(t.launchpad), explorer = safe(t.explorer);
|
|
561
|
+
// The third cell links to the launchpad page when there is one, otherwise to a block explorer.
|
|
562
|
+
const link = launchpad ? { k: 'Launchpad', u: launchpad, label: new URL(launchpad).hostname.replace(/^www\./, '') } : explorer ? { k: 'Explorer', u: explorer, label: 'view' } : null;
|
|
563
|
+
const cell = (k, v) => `<div><b>${k}</b><span>${v ? esc(v) : '-'}</span></div>`;
|
|
564
|
+
return `<div class="ca"><div class="lbl">Contract address</div><div class="addr"><code id="ca-value">${esc(ca)}</code><button id="copy-ca" type="button">COPY</button></div>`
|
|
565
|
+
+ `<div class="meta">${cell('Chain', (t.chain ?? '').trim())}${cell('Ticker', (t.ticker ?? '').trim() ? `$${(t.ticker ?? '').trim().replace(/^\$/, '')}` : '')}<div><b>${link ? link.k : 'Explorer'}</b><span>${link ? `<a href="${esc(link.u)}" target="_blank" rel="noopener">${esc(link.label)}</a>` : '-'}</span></div></div></div>`;
|
|
566
|
+
}
|
|
525
567
|
function send(res, status, body, type, cache = 'no-store') {
|
|
526
568
|
res.writeHead(status, {
|
|
527
569
|
'content-type': type,
|
|
@@ -554,6 +596,31 @@ export function createWebServer(opts = {}) {
|
|
|
554
596
|
// A Cloudflare Worker serves app.<domain> and docs.<domain> by forwarding to this server with the site name
|
|
555
597
|
// and the client address in headers. Those headers count only when they carry the shared edge secret.
|
|
556
598
|
const edgeSecret = (opts.edgeSecret ?? process.env.OCULON_EDGE_SECRET ?? '').trim() || null;
|
|
599
|
+
// Live safety badges: active monitors are re-checked about every 15 minutes.
|
|
600
|
+
const safetyTimer = setInterval(() => {
|
|
601
|
+
void runSafety(oculon).then((changes) => { for (const c of changes)
|
|
602
|
+
log(`safety badge ${c.token}: ${c.from ?? 'new'} -> ${c.to}`); }).catch(() => { });
|
|
603
|
+
}, 5 * 60_000);
|
|
604
|
+
safetyTimer.unref();
|
|
605
|
+
// Burns on /thetoken come from the chain RPC, cached for five minutes; a failed read keeps the last good one.
|
|
606
|
+
let burnCache = null;
|
|
607
|
+
const tokenBurns = async (t) => {
|
|
608
|
+
const url = opts.burnRpcUrl ?? process.env.ROBINHOOD_PUBLIC_RPC_URL?.trim();
|
|
609
|
+
if (!url || !/^0x[0-9a-fA-F]{40}$/.test(t.ca ?? '') || !t.deployBlock)
|
|
610
|
+
return null;
|
|
611
|
+
const key = `${t.ca}:${t.deployBlock}`;
|
|
612
|
+
if (burnCache && burnCache.key === key && Date.now() - burnCache.at < 300_000)
|
|
613
|
+
return burnCache.info;
|
|
614
|
+
try {
|
|
615
|
+
const info = await readBurns(rpcClient(url, opts.burnFetch), t.ca, t.deployBlock);
|
|
616
|
+
burnCache = { at: Date.now(), key, info };
|
|
617
|
+
return info;
|
|
618
|
+
}
|
|
619
|
+
catch (e) {
|
|
620
|
+
log(`token burns: ${e.message}`);
|
|
621
|
+
return burnCache?.key === key ? burnCache.info : null;
|
|
622
|
+
}
|
|
623
|
+
};
|
|
557
624
|
/** The page a browser sees on the MCP endpoint: the URL to add, client snippets and the tools this endpoint lists. */
|
|
558
625
|
const mcpPage = async (onPath) => {
|
|
559
626
|
const r = (await mcpServer.handle({ jsonrpc: '2.0', id: 0, method: 'tools/list' }));
|
|
@@ -658,6 +725,56 @@ export function createWebServer(opts = {}) {
|
|
|
658
725
|
const msg = url.pathname === '/mail/confirm' ? (ok ? 'Alerts confirmed. You will get an email when one of your monitors finds a change.' : 'This confirmation link is no longer valid.') : ok ? 'You are unsubscribed. No more monitor emails will be sent.' : 'This address was already unsubscribed.';
|
|
659
726
|
return send(res, 200, `<!doctype html><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Oculon alerts</title><body style="margin:0;background:#000;color:#f2f2f2;font-family:system-ui,sans-serif;display:grid;place-items:center;min-height:100vh;padding:16px"><div style="max-width:460px"><p style="font:600 12px monospace;letter-spacing:.2em;color:#00f0ff"><img src="/assets/logo.svg" alt="" width="18" height="18" style="vertical-align:-4px;margin-right:10px">OCULON</p><h1 style="font-weight:500">${msg}</h1><p><a style="color:#00f0ff" href="${siteDomain ? `https://app.${siteDomain}/#watch` : '/app#watch'}">Open your monitors →</a></p></div></body>`, 'text/html; charset=utf-8');
|
|
660
727
|
}
|
|
728
|
+
// $OCULON utility: burn-to-investigate, live safety badges and the holder tier (see modules/utility.ts).
|
|
729
|
+
const badge = /^\/badge\/(0x[0-9a-fA-F]{40})\.svg$/.exec(url.pathname)?.[1];
|
|
730
|
+
if (badge && req.method === 'GET')
|
|
731
|
+
return send(res, 200, badgeSvg(safetyState(oculon.ctx, badge)), 'image/svg+xml; charset=utf-8', 'public, max-age=300');
|
|
732
|
+
if ((/^\/utility\/?$/.test(url.pathname) || /^\/investigation\/[0-9a-f]{12}$/.test(url.pathname) || /^\/safety\/0x[0-9a-fA-F]{40}$/.test(url.pathname)) && req.method === 'GET' && hostName.split('.')[0] !== 'docs') {
|
|
733
|
+
return send(res, 200, renderPage(readFileSync(join(HERE, 'utility.html'), 'utf8'), siteDomain && hostName.endsWith(siteDomain) ? siteDomain : null), 'text/html; charset=utf-8');
|
|
734
|
+
}
|
|
735
|
+
if (url.pathname.startsWith('/api/utility/')) {
|
|
736
|
+
if (!admin)
|
|
737
|
+
return send(res, 403, '{"error":"not available on this install"}', 'application/json');
|
|
738
|
+
if (req.method === 'POST' && !sameSite())
|
|
739
|
+
return send(res, 403, '{"error":"forbidden"}', 'application/json');
|
|
740
|
+
const owner = `web:${visitor()}`;
|
|
741
|
+
const json = (v, status = 200) => send(res, status, JSON.stringify(v), 'application/json; charset=utf-8');
|
|
742
|
+
try {
|
|
743
|
+
if (req.method === 'GET') {
|
|
744
|
+
if (url.pathname === '/api/utility/info')
|
|
745
|
+
return json({ token: tokenConfig(), amounts: { investigate: UTILITY.investigate.toString(), safety: UTILITY.safety.toString(), holder: UTILITY.holder.toString() }, safetyDays: UTILITY.safetyDays, holderMonitors: UTILITY.holderMonitors, holder: holderFor(oculon.ctx, owner), investigations: listInvestigations(oculon.ctx, 12) });
|
|
746
|
+
if (url.pathname === '/api/utility/investigation') {
|
|
747
|
+
const v = getInvestigation(oculon.ctx, url.searchParams.get('id') ?? '');
|
|
748
|
+
return v ? json(v) : json({ error: 'no such investigation' }, 404);
|
|
749
|
+
}
|
|
750
|
+
if (url.pathname === '/api/utility/safety') {
|
|
751
|
+
const t = url.searchParams.get('token') ?? '';
|
|
752
|
+
if (!/^0x[0-9a-fA-F]{40}$/.test(t))
|
|
753
|
+
throw new HttpError(400, 'give a token address');
|
|
754
|
+
return json(safetyState(oculon.ctx, t));
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
if (req.method === 'POST') {
|
|
758
|
+
const b = await readJson(req);
|
|
759
|
+
if (url.pathname === '/api/utility/nonce')
|
|
760
|
+
return json(createNonce(siteDomain ?? hostName, String(b.address ?? '')));
|
|
761
|
+
if (url.pathname === '/api/utility/holder')
|
|
762
|
+
return json(await verifyHolder(oculon.ctx, owner, String(b.message ?? ''), String(b.signature ?? '')));
|
|
763
|
+
if (url.pathname === '/api/utility/signout') {
|
|
764
|
+
signOutHolder(oculon.ctx, owner);
|
|
765
|
+
return json({ ok: true });
|
|
766
|
+
}
|
|
767
|
+
if (url.pathname === '/api/utility/investigate')
|
|
768
|
+
return json(await startInvestigation(oculon, String(b.tx ?? ''), String(b.target ?? ''), String(b.signature ?? '')));
|
|
769
|
+
if (url.pathname === '/api/utility/safety')
|
|
770
|
+
return json(await startSafety(oculon, String(b.tx ?? ''), String(b.token ?? ''), String(b.signature ?? '')));
|
|
771
|
+
}
|
|
772
|
+
return json({ error: 'not found' }, 404);
|
|
773
|
+
}
|
|
774
|
+
catch (e) {
|
|
775
|
+
return json({ error: e.message }, e instanceof HttpError ? e.status : 400);
|
|
776
|
+
}
|
|
777
|
+
}
|
|
661
778
|
if (url.pathname === '/api/my' || url.pathname.startsWith('/api/my/')) {
|
|
662
779
|
if (!admin)
|
|
663
780
|
return send(res, 403, '{"error":"not available on this install"}', 'application/json');
|
|
@@ -666,14 +783,14 @@ export function createWebServer(opts = {}) {
|
|
|
666
783
|
const owner = `web:${visitor()}`;
|
|
667
784
|
try {
|
|
668
785
|
if (req.method === 'GET' && url.pathname === '/api/my')
|
|
669
|
-
return send(res, 200, JSON.stringify({ monitors: listPersonal(oculon.ctx, owner), alerts: personalAlerts(oculon.ctx, owner, 40), email: emailStatus(oculon.ctx, owner), mail: mailEnabled(), owner: !publicMode || isAdmin(req, adminToken) }), 'application/json; charset=utf-8');
|
|
786
|
+
return send(res, 200, JSON.stringify({ monitors: listPersonal(oculon.ctx, owner), alerts: personalAlerts(oculon.ctx, owner, 40), email: emailStatus(oculon.ctx, owner), mail: mailEnabled(), owner: !publicMode || isAdmin(req, adminToken), holder: holderFor(oculon.ctx, owner) }), 'application/json; charset=utf-8');
|
|
670
787
|
if (req.method === 'POST') {
|
|
671
788
|
const b = await readJson(req);
|
|
672
789
|
if (url.pathname === '/api/my/monitors') {
|
|
673
790
|
const text = String(b.text ?? '').trim();
|
|
674
791
|
if (text.length < 4 || text.length > 300)
|
|
675
792
|
throw new HttpError(400, 'describe what to watch in 4-300 characters');
|
|
676
|
-
return send(res, 200, JSON.stringify(await addPersonal(oculon.ctx, owner, text)), 'application/json; charset=utf-8');
|
|
793
|
+
return send(res, 200, JSON.stringify(await addPersonal(oculon.ctx, owner, text, holderFor(oculon.ctx, owner) ? UTILITY.holderMonitors : undefined)), 'application/json; charset=utf-8');
|
|
677
794
|
}
|
|
678
795
|
if (url.pathname === '/api/my/monitors/delete')
|
|
679
796
|
return send(res, 200, JSON.stringify({ removed: removePersonal(oculon.ctx, owner, Number(b.id)) }), 'application/json');
|
|
@@ -803,7 +920,7 @@ export function createWebServer(opts = {}) {
|
|
|
803
920
|
const sub = hostName.split('.')[0];
|
|
804
921
|
// Docs sections have their own addresses: docs.<domain>/install, or /docs/install on a single host.
|
|
805
922
|
const docsSection = (sub === 'docs' ? /^\/([a-z0-9][a-z0-9-]{0,60})\/?$/ : /^\/docs\/([a-z0-9][a-z0-9-]{0,60})\/?$/).exec(url.pathname)?.[1];
|
|
806
|
-
if (docsSection && !['api', 'assets', 'app', 'report', 'r', 'proof', 'ask'].includes(docsSection)) {
|
|
923
|
+
if (docsSection && !['api', 'assets', 'app', 'report', 'r', 'proof', 'ask', 'thetoken'].includes(docsSection)) {
|
|
807
924
|
if (siteDomain && sub !== 'docs') {
|
|
808
925
|
res.writeHead(301, { location: `https://docs.${siteDomain}/${docsSection}${url.search}`, 'cache-control': 'no-store' });
|
|
809
926
|
return res.end();
|
|
@@ -819,6 +936,15 @@ export function createWebServer(opts = {}) {
|
|
|
819
936
|
}
|
|
820
937
|
return send(res, 200, renderPage(readFileSync(join(HERE, PAGE_FILES[page]), 'utf8'), siteDomain && hostName.endsWith(siteDomain) ? siteDomain : null), 'text/html; charset=utf-8');
|
|
821
938
|
}
|
|
939
|
+
if (/^\/thetoken\/?$/.test(url.pathname) && sub !== 'docs') {
|
|
940
|
+
let info = {};
|
|
941
|
+
try {
|
|
942
|
+
info = JSON.parse(readFileSync(join(HERE, 'token.json'), 'utf8'));
|
|
943
|
+
}
|
|
944
|
+
catch { /* no file: nothing official */ }
|
|
945
|
+
const html = readFileSync(join(HERE, 'token.html'), 'utf8').replace('{{TOKEN_BLOCK}}', tokenBlock(info) + burnBlock(await tokenBurns(info), info));
|
|
946
|
+
return send(res, 200, renderPage(html, siteDomain && hostName.endsWith(siteDomain) ? siteDomain : null), 'text/html; charset=utf-8');
|
|
947
|
+
}
|
|
822
948
|
if (url.pathname === '/manifest.webmanifest')
|
|
823
949
|
return send(res, 200, readFileSync(join(HERE, 'manifest.webmanifest'), 'utf8'), 'application/manifest+json; charset=utf-8', 'no-cache');
|
|
824
950
|
if (url.pathname === '/sw.js')
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
.burn{margin-top:16px;border:1px solid rgba(255,93,108,.35);background:rgba(18,4,6,.75);backdrop-filter:blur(8px);padding:24px}
|
|
44
|
+
.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}
|
|
45
|
+
.btable{margin-top:16px;overflow-x:auto}.btable table{width:100%;border-collapse:collapse;font:13px var(--mono)}
|
|
46
|
+
.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}
|
|
47
|
+
.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)}
|
|
48
|
+
.bnote{margin:12px 0 0;font-size:13px !important;color:var(--mut) !important}
|
|
49
|
+
.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
|
|
50
|
+
.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)}
|
|
51
|
+
.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}
|
|
52
|
+
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)}
|
|
53
|
+
@media (max-width:760px){.ca .meta,.three{grid-template-columns:minmax(0,1fr)}}
|
|
54
|
+
</style>
|
|
55
|
+
</head>
|
|
56
|
+
<body>
|
|
57
|
+
<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>
|
|
58
|
+
<canvas id="liquidbg" aria-hidden="true"></canvas>
|
|
59
|
+
<main>
|
|
60
|
+
<div class="lbl">Official token</div>
|
|
61
|
+
<h1>One address.<br><span>Three places.</span></h1>
|
|
62
|
+
{{TOKEN_BLOCK}}
|
|
63
|
+
|
|
64
|
+
<h2>How to check an address</h2>
|
|
65
|
+
<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>
|
|
66
|
+
<div class="three">
|
|
67
|
+
<a href="https://x.com/oculonlive" target="_blank" rel="noopener"><b>X</b><span>@oculonlive</span></a>
|
|
68
|
+
<a href="https://github.com/oculonlive/oculon#official-token" target="_blank" rel="noopener"><b>GITHUB</b><span>oculonlive/oculon</span></a>
|
|
69
|
+
<a href="/thetoken"><b>WEB</b><span>oculon.live/thetoken</span></a>
|
|
70
|
+
</div>
|
|
71
|
+
<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>
|
|
72
|
+
|
|
73
|
+
<h2>Use OCULON</h2>
|
|
74
|
+
<p>Burn 1,500,000 OCULON for a deep investigation of one domain, wallet, token or company. Burn 2,000,000 to keep a live safety badge on a Robinhood Chain token for 30 days. Hold 3,500,000 and sign in once for up to 30 personal monitors, checked every 15 minutes. Everything is read from the chain; Oculon stays free for everyone.</p>
|
|
75
|
+
<p><a href="/utility" style="color:var(--y)">Open the utility page →</a></p>
|
|
76
|
+
|
|
77
|
+
<h2>What Oculon is</h2>
|
|
78
|
+
<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>
|
|
79
|
+
<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>
|
|
80
|
+
|
|
81
|
+
<h2>Not advice</h2>
|
|
82
|
+
<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>
|
|
83
|
+
</main>
|
|
84
|
+
<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>
|
|
85
|
+
<script src="/assets/fx.js"></script>
|
|
86
|
+
<script>
|
|
87
|
+
if (window.OculonFX) { OculonFX.liquid(document.getElementById('liquidbg'), { base: '#000000', mid: '#001a26', hi: '#00c8e0', intensity: 0.8, scale: 0.3 }); }
|
|
88
|
+
document.getElementById('year').textContent = new Date().getFullYear();
|
|
89
|
+
const cp = document.getElementById('copy-ca');
|
|
90
|
+
if (cp) cp.addEventListener('click', () => {
|
|
91
|
+
const v = document.getElementById('ca-value').textContent.trim();
|
|
92
|
+
const done = () => { cp.textContent = 'COPIED'; setTimeout(() => { cp.textContent = 'COPY'; }, 1600); };
|
|
93
|
+
if (navigator.clipboard) navigator.clipboard.writeText(v).then(done).catch(() => {});
|
|
94
|
+
});
|
|
95
|
+
</script>
|
|
96
|
+
</body>
|
|
97
|
+
</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
|
+
}
|