Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

Add Oracle Proof gallery — wins verified by outcome

nirholasbda0d44ab0ac
diff --git a/api/oracle/wins.js b/api/oracle/wins.js
new file mode 100644
index 000000000..964be3386
--- /dev/null
+++ b/api/oracle/wins.js
@@ -0,0 +1,134 @@
+/**
+ * Oracle — proven wins gallery.
+ *
+ * GET /api/oracle/wins
+ * ?network=mainnet default: mainnet
+ * &period=7d|30d|90d|all default: 30d
+ * &tier=prime|strong|lean|all default: all
+ * &min_ath=1 minimum ATH multiple to include
+ * &limit=50 max 100
+ * &before=<iso> pagination cursor (scored_at <)
+ *
+ * Returns oracle_conviction rows that have a resolved outcome in
+ * pump_coin_outcomes, ordered by ATH multiple descending. This is the
+ * "proof of edge" view — coins the oracle called and that subsequently
+ * delivered measurable returns.
+ *
+ * Only includes entries with a positive outcome (graduated OR ath_multiple ≥ 2).
+ * Losses/duds are not shown here — that's the backtest endpoint.
+ *
+ * Public, IP rate-limited, 5-min CDN cache.
+ */
+
+import { cors, json, method, wrap, rateLimited } from '../_lib/http.js';
+import { limits, clientIp } from '../_lib/rate-limit.js';
+import { sql } from '../_lib/db.js';
+
+const NETWORKS = new Set(['mainnet', 'devnet']);
+const TIERS = new Set(['prime', 'strong', 'lean', 'watch', 'avoid', 'all']);
+const PERIODS = { '7d': 7, '30d': 30, '90d': 90, 'all': null };
+
+function shapeRow(r) {
+ return {
+ mint: r.mint,
+ symbol: r.symbol || r.mint.slice(0, 6),
+ name: r.name || null,
+ image_uri: r.image_uri || null,
+ tier: r.tier,
+ score: r.score != null ? Number(r.score) : null,
+ category: r.category || null,
+ // Conviction pillars at entry time
+ pillars: {
+ pedigree: r.pedigree != null ? Number(r.pedigree) : null,
+ structure: r.structure != null ? Number(r.structure) : null,
+ narrative: r.narrative != null ? Number(r.narrative) : null,
+ momentum: r.momentum != null ? Number(r.momentum) : null,
+ },
+ scored_at: r.scored_at,
+ // Outcome
+ ath_multiple: r.ath_multiple != null ? Number(r.ath_multiple) : null,
+ last_mc_usd: r.last_market_cap_usd != null ? Number(r.last_market_cap_usd) : null,
+ graduated: !!r.graduated,
+ // convenience
+ pump_url: `https://pump.fun/coin/${r.mint}`,
+ oracle_url: `/oracle?mint=${r.mint}`,
+ };
+}
+
+export default wrap(async (req, res) => {
+ if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;
+ if (!method(req, res, ['GET'])) return;
+
+ const rl = await limits.publicIp(clientIp(req));
+ if (!rl.success) return rateLimited(res, rl);
+
+ const params = new URL(req.url, `http://${req.headers.host || 'x'}`).searchParams;
+ const network = NETWORKS.has(params.get('network')) ? params.get('network') : 'mainnet';
+ const periodKey = PERIODS.hasOwnProperty(params.get('period')) ? params.get('period') : '30d';
+ const days = PERIODS[periodKey];
+ const tier = TIERS.has(params.get('tier')) ? params.get('tier') : 'all';
+ const minAth = Math.max(1, Number(params.get('min_ath')) || 2);
+ const limit = Math.max(1, Math.min(100, parseInt(params.get('limit'), 10) || 50));
+ const before = params.get('before') || null;
+
+ const tierFilter = tier !== 'all' ? sql`and c.tier = ${tier}` : sql``;
+ const periodFilter = days != null ? sql`and c.scored_at >= now() - (${days} || ' days')::interval` : sql``;
+ const beforeFilter = before ? sql`and c.scored_at < ${before}::timestamptz` : sql``;
+
+ const rows = await sql`
+ select
+ c.mint, c.symbol, c.name, c.image_uri, c.tier, c.score, c.category,
+ c.pedigree, c.structure, c.narrative, c.momentum, c.scored_at,
+ o.ath_multiple, o.last_market_cap_usd, o.graduated
+ from oracle_conviction c
+ join pump_coin_outcomes o on o.mint = c.mint and o.network = c.network
+ where c.network = ${network}
+ and o.ath_multiple >= ${minAth}
+ and (o.graduated or o.ath_multiple >= 2)
+ ${tierFilter}
+ ${periodFilter}
+ ${beforeFilter}
+ order by o.ath_multiple desc nulls last, c.scored_at desc
+ limit ${limit}
+ `.catch((e) => {
+ throw new Error(`wins query failed: ${e.message}`);
+ });
+
+ // Summary counts — total wins and best ATH in the period.
+ const summary = await sql`
+ select
+ count(*)::int as total_wins,
+ count(*) filter (where o.ath_multiple >= 5)::int as five_x_count,
+ count(*) filter (where o.ath_multiple >= 10)::int as ten_x_count,
+ round(max(o.ath_multiple)::numeric, 2) as best_ath,
+ count(*) filter (where o.graduated)::int as graduated_count
+ from oracle_conviction c
+ join pump_coin_outcomes o on o.mint = c.mint and o.network = c.network
+ where c.network = ${network}
+ and o.ath_multiple >= ${minAth}
+ and (o.graduated or o.ath_multiple >= 2)
+ ${tierFilter}
+ ${periodFilter}
+ `.catch(() => [{}]);
+
+ const s = summary[0] || {};
+ const items = rows.map(shapeRow);
+ const next_before = items.length >= limit ? items[items.length - 1].scored_at : null;
+
+ return json(res, 200, {
+ network,
+ period: periodKey,
+ tier,
+ summary: {
+ total_wins: s.total_wins ?? 0,
+ five_x_count: s.five_x_count ?? 0,
+ ten_x_count: s.ten_x_count ?? 0,
+ best_ath: s.best_ath ? Number(s.best_ath) : null,
+ graduated_count: s.graduated_count ?? 0,
+ },
+ items,
+ next_before,
+ }, {
+ 'cache-control': 'public, max-age=300, s-maxage=300, stale-while-revalidate=600',
+ });
+});
diff --git a/pages/oracle.html b/pages/oracle.html
index a9d4c2e2c..4def8250b 100644
--- a/pages/oracle.html
+++ b/pages/oracle.html
@@ -131,9 +131,12 @@
.lwrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.lhead, .lrow { display: grid; grid-template-columns: 38px 1fr 110px 86px 86px; gap: 10px; align-items: center; padding: 12px 16px; }
.lhead { font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); border-bottom: 1px solid var(--line); }
- .lrow { border: 0; border-bottom: 1px solid var(--line); width: 100%; background: none; text-align: left; transition: background .16s; }
- .lrow:last-child { border-bottom: none; }
- .lrow:hover { background: rgba(255,255,255,0.04); }
+ .lrow-wrap { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
+ .lrow-wrap:last-child { border-bottom: none; }
+ .lrow { flex: 1; border: 0; background: none; text-align: left; transition: background .16s; cursor: pointer; }
+ .lrow-wrap:hover .lrow { background: rgba(255,255,255,0.04); }
+ .lrow-copy { display: flex; align-items: center; justify-content: center; width: 34px; flex-shrink: 0; color: var(--faint); font-size: 14px; text-decoration: none; opacity: 0; transition: opacity .14s, color .14s, background .14s; border-left: 1px solid var(--line); }
+ .lrow-wrap:hover .lrow-copy { opacity: 1; color: var(--violet); background: rgba(139,92,246,.06); }
.lrank { font: 700 14px/1 var(--mono); color: var(--faint); } .lrank.top { color: var(--gold); }
.lw { min-width: 0; display: flex; align-items: center; gap: 9px; }
.lw-addr { font: 600 13px/1 var(--mono); overflow: hidden; text-overflow: ellipsis; }
@@ -299,6 +302,48 @@
.foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }
.foot b { color: var(--muted); }
+ /* proof / wins gallery */
+ .proof-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
+ .proof-kpi { background: var(--panel); padding: 13px 16px; }
+ .proof-kpi span { display: block; font: 600 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin-bottom: 6px; }
+ .proof-kpi b { font: 800 22px/1 var(--mono); color: var(--ink); }
+ .proof-kpi b.up { color: var(--up); }
+ .proof-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
+ .proof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
+ .win-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
+ box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .14s, border-color .18s; text-decoration: none; color: inherit; }
+ .win-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--up) 40%, var(--line)); }
+ .win-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 10px; }
+ .win-img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: radial-gradient(120% 100% at 50% 0%, #1b2233, #0d1018); border: 1px solid var(--line); display: grid; place-items: center; font: 700 15px/1 var(--mono); color: var(--faint); flex: none; }
+ .win-id { flex: 1; min-width: 0; }
+ .win-sym { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+ .win-name { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
+ .win-ath { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
+ .win-ath-val { font: 800 26px/1 var(--mono); color: var(--up); letter-spacing: -0.02em; }
+ .win-ath-label { font: 600 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin-top: 2px; }
+ .win-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
+ .win-score-row { display: flex; align-items: center; gap: 8px; }
+ .win-score-label { font: 600 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
+ .win-score-val { font: 800 18px/1 var(--mono); }
+ .win-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
+ .win-pil label { display: flex; justify-content: space-between; font: 600 9px/1 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
+ .win-pil label b { color: var(--ink); }
+ .win-pil-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.07); overflow: hidden; }
+ .win-pil-fill { height: 100%; border-radius: 2px; }
+ .win-pil.ped .win-pil-fill { background: var(--p-ped); }
+ .win-pil.str .win-pil-fill { background: var(--p-str); }
+ .win-pil.nar .win-pil-fill { background: var(--p-nar); }
+ .win-pil.mom .win-pil-fill { background: var(--p-mom); }
+ .win-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
+ .win-grad { font: 700 9.5px/1 var(--mono); padding: 3px 8px; border-radius: 5px; background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); letter-spacing: .04em; text-transform: uppercase; }
+ .win-when { font: 600 10.5px/1 var(--mono); color: var(--faint); margin-left: auto; }
+ .win-links { display: flex; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
+ .win-link { font: 600 11.5px/1 var(--mono); color: var(--cyan); text-decoration: none; transition: opacity .15s; }
+ .win-link:hover { opacity: .7; }
+ .win-in { animation: winIn .4s cubic-bezier(.22,1,.36,1) both; }
+ @keyframes winIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
+ .proof-load-more { display: flex; justify-content: center; margin-top: 22px; }
+
@media (max-width: 760px) {
.apanel { grid-template-columns: 1fr; }
.lhead, .lrow { grid-template-columns: 30px 1fr 84px 70px; }
@@ -333,6 +378,7 @@
<button class="tab" data-view="wallets" role="tab">Top wallets <span class="ct" id="ctWallets"></span></button>
<button class="tab" data-view="graph" role="tab">3D graph</button>
<button class="tab" data-view="edge" role="tab">The edge</button>
+ <button class="tab" data-view="proof" role="tab">Proof ✓ <span class="ct" id="ctProof"></span></button>
<button class="tab" data-view="agent" role="tab">Arm your agent</button>
</nav>
@@ -405,6 +451,30 @@
</div>
</section>
+ <!-- PROOF — win gallery -->
+ <section class="view" id="view-proof">
+ <p class="intro">Coins the Oracle called at conviction — and how they resolved. Every card shows the score at entry time versus the ground-truth outcome: graduated, ATH multiple, or both. Proof, not promises.</p>
+ <div class="proof-kpis" id="proofKpis" style="display:none"></div>
+ <div class="proof-filters">
+ <div class="seg" id="proofTierSeg">
+ <button data-ptier="" class="on">All tiers</button>
+ <button data-ptier="prime">Prime</button>
+ <button data-ptier="strong">Strong</button>
+ <button data-ptier="lean">Lean</button>
+ </div>
+ <div class="seg" id="proofPeriodSeg">
+ <button data-pperiod="7d">7d</button>
+ <button data-pperiod="30d" class="on">30d</button>
+ <button data-pperiod="90d">90d</button>
+ <button data-pperiod="all">All time</button>
+ </div>
+ </div>
+ <div class="proof-grid" id="proofGrid"></div>
+ <div class="proof-load-more" id="proofLoadMore" style="display:none">
+ <button class="btn" id="proofLoadMoreBtn">Load more wins</button>
+ </div>
+ </section>
+
<footer class="foot">
<b>How conviction is built.</b> Oracle reads the platform's full-coverage pump.fun data — every coin, every wallet, every outcome — and fuses pedigree (34%), structure (30%), narrative (18%) and momentum (18%) into one score, with a hard structural cap so a bundle or a dumping dev can never read "strong." Nothing here is financial advice; conviction is a probability, not a promise. Trade small, especially early.
</footer>
diff --git a/src/oracle.js b/src/oracle.js
index 493db9d58..acc6fafc5 100644
--- a/src/oracle.js
+++ b/src/oracle.js
@@ -121,6 +121,20 @@ function boot() {
$$('#labelSeg button').forEach((x) => x.classList.toggle('on', x === b));
state.label = b.dataset.label; loadWallets();
});
+ // proof filters
+ $('#proofTierSeg')?.addEventListener('click', (e) => {
+ const b = e.target.closest('[data-ptier]'); if (!b) return;
+ $$('#proofTierSeg button').forEach((x) => x.classList.toggle('on', x === b));
+ _proofState.tier = b.dataset.ptier; loadProof(true);
+ });
+ $('#proofPeriodSeg')?.addEventListener('click', (e) => {
+ const b = e.target.closest('[data-pperiod]'); if (!b) return;
+ $$('#proofPeriodSeg button').forEach((x) => x.classList.toggle('on', x === b));
+ _proofState.period = b.dataset.pperiod; loadProof(true);
+ });
+ $('#proofLoadMoreBtn')?.addEventListener('click', () => {
+ $('#proofLoadMoreBtn').disabled = true; loadProof(false);
+ });
// drawer close
$$('#drawer [data-close]').forEach((el) => el.addEventListener('click', closeDrawer));
document.addEventListener('keydown', (e) => { if (e.key === 'Escape') closeDrawer(); });
@@ -141,6 +155,7 @@ function switchView(view) {
$$('.view').forEach((v) => v.classList.toggle('on', v.id === `view-${view}`));
if (view === 'wallets' && !$('#walletWrap').dataset.loaded) loadWallets();
if (view === 'edge' && !$('#edgeWrap').dataset.loaded) loadEdge();
+ if (view === 'proof' && !$('#proofGrid').dataset.loaded) loadProof();
if (view === 'agent' && !$('#armBody').dataset.loaded) loadAgentPanel();
if (view === 'graph') loadGraph();
}
@@ -350,13 +365,16 @@ async function loadWallets() {
function walletRow(w, i) {
const a = w.archetype || { label: w.label, title: ARCH_TITLE[w.label] || 'Unproven' };
- return `<button class="lrow" data-wallet="${esc(w.wallet)}">
- <span class="lrank ${i < 3 ? 'top' : ''}">${i + 1}</span>
- <span class="lw"><span class="nlabel lb-${esc(w.label)}">${esc(a.title)}</span><span class="lw-addr">${esc(shortAddr(w.wallet))}</span></span>
- <span class="lstat colhide"><b>${fmtPct(w.win_rate)}</b></span>
- <span class="lstat"><b>${fmtPct(w.early_win_rate)}</b></span>
- <span class="lscore">${Math.round(w.score)}</span>
- </button>`;
+ return `<div class="lrow-wrap">
+ <button class="lrow" data-wallet="${esc(w.wallet)}">
+ <span class="lrank ${i < 3 ? 'top' : ''}">${i + 1}</span>
+ <span class="lw"><span class="nlabel lb-${esc(w.label)}">${esc(a.title)}</span><span class="lw-addr">${esc(shortAddr(w.wallet))}</span></span>
+ <span class="lstat colhide"><b>${fmtPct(w.win_rate)}</b></span>
+ <span class="lstat"><b>${fmtPct(w.early_win_rate)}</b></span>
+ <span class="lscore">${Math.round(w.score)}</span>
+ </button>
+ <a class="lrow-copy" href="/trader/${encodeURIComponent(w.wallet)}" title="Trader profile + copy trades">→</a>
+ </div>`;
}
// ── edge (backtest) ──────────────────────────────────────────────────────────
@@ -443,6 +461,110 @@ function edgeRow(r) {
</div>`;
}
+// ── proof / wins gallery ──────────────────────────────────────────────────────
+
+const _proofState = { tier: '', period: '30d', cursor: null, loading: false };
+
+function winCardHtml(w, idx) {
+ const tier = w.tier || 'watch';
+ const athStr = w.ath_multiple != null ? `${Number(w.ath_multiple).toFixed(1)}×` : w.graduated ? 'Grad ✓' : '—';
+ const imgSrc = w.image_uri || '';
+ const sym = esc((w.symbol || w.mint.slice(0, 6)).toUpperCase());
+ const scoreColor = tier === 'prime' ? 'var(--up)' : tier === 'strong' ? 'var(--up)' : tier === 'lean' ? 'var(--gold)' : 'var(--muted)';
+ const pillars = w.pillars || {};
+ const pil = (k, cls, lbl) => {
+ const v = pillars[k] != null ? Math.round(Number(pillars[k])) : null;
+ return `<div class="win-pil ${cls}">
+ <label>${lbl}<b>${v != null ? v : '?'}</b></label>
+ <div class="win-pil-bar"><div class="win-pil-fill" style="width:${v ?? 0}%"></div></div>
+ </div>`;
+ };
+ const when = w.scored_at ? ago(w.scored_at) : '';
+ return `<a class="win-card win-in" href="${esc(w.oracle_url)}" style="animation-delay:${Math.min(idx * 40, 400)}ms">
+ <div class="win-card-head">
+ <div class="win-img">${imgSrc ? `<img src="${esc(imgSrc)}" alt="" style="width:42px;height:42px;border-radius:10px;object-fit:cover" onerror="this.style.display='none'" loading="lazy" />` : sym.slice(0, 2)}</div>
+ <div class="win-id">
+ <div class="win-sym">$${sym}</div>
+ ${w.name ? `<div class="win-name">${esc(w.name)}</div>` : ''}
+ </div>
+ <div class="win-ath">
+ <span class="win-ath-val">${esc(athStr)}</span>
+ <span class="win-ath-label">ATH</span>
+ </div>
+ </div>
+ <div class="win-body">
+ <div class="win-score-row">
+ <span class="win-score-label">Oracle at entry</span>
+ <span class="win-score-val" style="color:${scoreColor}">${w.score != null ? w.score : '—'}</span>
+ <span class="tierpill tp-${tier}" style="margin-left:6px">${tier}</span>
+ </div>
+ <div class="win-pillars">
+ ${pil('pedigree', 'ped', 'Who')}${pil('structure', 'str', 'How')}${pil('narrative', 'nar', 'What')}${pil('momentum', 'mom', 'Move')}
+ </div>
+ <div class="win-badges">
+ ${w.graduated ? '<span class="win-grad">Graduated</span>' : ''}
+ <span class="win-when">${esc(when)}</span>
+ </div>
+ <div class="win-links">
+ <a class="win-link" href="${esc(w.pump_url)}" target="_blank" rel="noopener" onclick="event.stopPropagation()">pump.fun ↗</a>
+ <a class="win-link" href="${esc(w.oracle_url)}" onclick="event.stopPropagation()">Oracle ↗</a>
+ </div>
+ </div>
+ </a>`;
+}
+
+function proofSkeletons(n = 6) {
+ return Array.from({ length: n }, () => '<div class="skel" style="height:220px;border-radius:var(--r)"></div>').join('');
+}
+
+async function loadProof(reset = false) {
+ if (_proofState.loading) return;
+ _proofState.loading = true;
+ const grid = $('#proofGrid');
+ grid.dataset.loaded = '1';
+ if (reset) { _proofState.cursor = null; grid.innerHTML = proofSkeletons(); }
+
+ const url = `/api/oracle/wins?network=${NETWORK}&period=${_proofState.period}&limit=24&min_ath=2`;
+ const q = url + (_proofState.tier ? `&tier=${_proofState.tier}` : '') + (_proofState.cursor ? `&before=${_proofState.cursor}` : '');
+
+ const { ok, data } = await api(q);
+ _proofState.loading = false;
+
+ if (!ok || !data?.items) {
+ if (reset) grid.innerHTML = `<div class="state" style="grid-column:1/-1"><b>No proved wins yet.</b><br>Once Oracle-scored coins resolve to a positive outcome, they appear here. The engine is scoring live.</div>`;
+ return;
+ }
+
+ const items = data.items || [];
+ if (reset) {
+ grid.innerHTML = items.length ? items.map(winCardHtml).join('') : `<div class="state" style="grid-column:1/-1"><b>No wins resolved yet in this period.</b><br>Try a longer window or check back as more coins resolve.</div>`;
+ } else {
+ items.forEach((w, i) => grid.insertAdjacentHTML('beforeend', winCardHtml(w, i)));
+ }
+
+ _proofState.cursor = data.next_before || null;
+ const moreWrap = $('#proofLoadMore');
+ const moreBtn = $('#proofLoadMoreBtn');
+ moreWrap.style.display = _proofState.cursor ? '' : 'none';
+ if (moreBtn) { moreBtn.disabled = false; }
+
+ // Render KPIs on first load
+ if (reset && data.summary) {
+ const kpis = $('#proofKpis');
+ const s = data.summary;
+ kpis.style.display = '';
+ kpis.innerHTML = [
+ ['Wins', s.total_wins ?? 0, 'up'],
+ ['Best ATH', s.best_ath != null ? `${Number(s.best_ath).toFixed(1)}×` : '—', 'up'],
+ ['5× or more', s.five_x_count ?? 0, ''],
+ ['10× or more', s.ten_x_count ?? 0, ''],
+ ['Graduated', s.graduated_count ?? 0, ''],
+ ].map(([l, v, cls]) => `<div class="proof-kpi"><span>${l}</span><b class="${cls}">${v}</b></div>`).join('');
+ const ctProof = $('#ctProof');
+ if (ctProof && s.total_wins) ctProof.textContent = s.total_wins;
+ }
+}
+
// ── coin drawer ──────────────────────────────────────────────────────────────
async function openCoin(mint) {
const dr = $('#drawer');
@@ -636,7 +758,11 @@ async function openWallet(wallet) {
${r.creator_count ? `<span class="chip">created <b>${r.creator_count}</b></span>` : ''}
</div>` : '<div class="state">This wallet has no judged history yet.</div>'}
<div class="dr-sec">Recent footprint</div>${recent}
- <div style="margin-top:14px"><a class="solscan" href="${solscan(wallet)}" target="_blank" rel="noopener">View on solscan ↗</a></div>
+ <div class="dr-actions" style="margin-top:16px">
+ <a class="dr-act" href="/trader/${encodeURIComponent(wallet)}" rel="noopener">Trader profile ↗</a>
+ <a class="dr-act" href="/trader/${encodeURIComponent(wallet)}#copy" rel="noopener" style="background:rgba(139,92,246,.18);border-color:rgba(139,92,246,.45)">Copy trades →</a>
+ <a class="dr-act solscan" href="${solscan(wallet)}" target="_blank" rel="noopener">Solscan ↗</a>
+ </div>
`;
}
diff --git a/vercel.json b/vercel.json
index f368a0f1b..b6e381382 100644
--- a/vercel.json
+++ b/vercel.json
@@ -163,6 +163,10 @@
"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 300
},
+ "api/oracle/wins.js": {
+ "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
+ "maxDuration": 30
+ },
"api/oracle/wallet.js": {
"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 30
@@ -1845,6 +1849,10 @@
"src": "/api/oracle/action-stream",
"dest": "/api/oracle/action-stream.js"
},
+ {
+ "src": "/api/oracle/wins",
+ "dest": "/api/oracle/wins.js"
+ },
{
"src": "/api/oracle/wallet",
"dest": "/api/oracle/wallet.js"