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 on-chain TraderScore attestations + coin-intel API endpoint

nirholased0e26572f15
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c8afcce59..cd99fa811 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -33,6 +33,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Pump Visualizer: a coin's look now tracks its market cap** — On the Pump Visualizer, market cap no longer just sizes a coin — it shapes its whole look. As a coin's cap climbs it shifts color from cool blue through purple to green and gold, grows a crystalline wireframe cage that gains facets at each tier, and spins and pulses with more energy. On the trending refresh, a coin that moved gets a clear signal: it flashes green and pops bigger when its cap rose, red and dips when it fell, and crossing into a higher or lower tier visibly upgrades or downgrades its shape and color. A new on-screen key in the corner maps each color and tier to its market-cap range so it all reads at a glance. (`/pump-visualizer`) `[feature]`
- **Pump Visualizer’s Trending view fixed — spheres now sized by real market cap** — The Trending mode of the 3D Pump Visualizer (three.ws/pump-visualizer) now renders correctly: every coin appears as a sphere sized by its real USD market cap, textured with its actual logo, with a full detail panel showing market cap, all-time-high, replies, age, and socials. Previously Trending failed to load because the market data it relied on wasn’t reaching the scene. Click a sphere to inspect it, or double-click to open the full 3D coin page. The live Firehose and Migrations modes are unchanged. (`/pump-visualizer`) `[fix, improvement]`
- **Rate and vouch for Solana agents from their passport** — Every Solana agent passport already showed its on-chain reputation — now you can add to it. A new "Rate this agent" panel lets anyone with a Solana wallet (Phantom or Solflare) leave a 1–5 score, with an optional public note, written on-chain as a signed attestation — no account needed. You can also back your rating with a SOL stake (from 0.001 SOL) sent to the agent's owner for an economically-weighted vouch. Submitting is guarded the obvious ways: you can't rate your own agent, scores are limited to 1–5, the minimum stake is enforced, and re-rating asks you to confirm before it updates your previous score. The moment your transaction confirms, the passport re-reads the chain on demand instead of waiting for the next indexing pass, so your rating shows up in the reputation summary within seconds. (`/agent-passport.html`) `[feature]`
+- **Redesigned the $THREE economy page — watch it move, verify it on-chain** — The /three economy page is rebuilt from the ground up. A live visualization called The Flow shows value entering the protocol and splitting in real time to the treasury, to creators, and back to holders — there is no burn lane, because nothing is ever destroyed (you can pause it any time). The headline number is the total $THREE returned to holders, funded by real usage fees — never minted, never a tax on your transfers. Treasury and holder-rewards wallets link straight to Solscan so you can check every figure yourself, and each distribution shows up as a row with its on-chain transaction. A holder-tier ladder shows your live progress to the next tier; an interactive pricing explorer applies your tier discount as you browse; and a rare-name studio prices any *.threews.sol name by rarity. Built for clarity and trust: real data only, tabular figures, full keyboard and reduced-motion support. (`/three`) `[feature, improvement]`
- **Refer friends with a 3D membership card** — Your account now has a Referrals page with a 3D, flippable membership card — your member number, referral count, and score on the front, a scannable QR for your invite link on the back. Tilt it with your cursor, flip it over, then share it: post to X or Telegram, copy your link, or download the card as an image. Anyone who signs up through your link is tied to you for life, and you earn 5% in USDC on everything they buy on three.ws. Sign-ups now carry your referral code through every login method — email and wallet alike — so credit always lands where it's due. (`/dashboard/referrals`) `[feature]`
- **Register an existing agent on-chain in one click** — Any agent you already built can now be given an ERC-8004 on-chain identity straight from its profile — no re-entering its name, 3D model, voice, or skills. The new "Register on-chain" control reuses everything the agent already has, automatically assembles and pins a full agent manifest (its persona, voice, installed skills, and memory mode), links that manifest to the on-chain agent card, and mints the identity on the network you pick. Re-running it on the same network is a safe no-op, and your profile shows a live on-chain badge with explorer and agent-card links the moment it's done. (`/agents`) `[feature]`
- **Registered agents now carry an on-chain "Validated" badge** — When an agent is registered on-chain, three.ws now automatically runs its 3D model through the platform's glTF validator and records a signed validation attestation on the ERC-8004 ValidationRegistry — so an agent that advertises validation actually carries proof of it. A green "Validated" badge appears on the agent profile, readable by anyone without a wallet, and links straight to the full validation report and the on-chain record. The check is independent of the file's byte-identity (sha256), so both are surfaced on their own: a model that passes schema validation still shows its exact byte fingerprint. If a model has problems, the badge shows "Validation failed" with the specific reason — the agent is still registered, just unvalidated — and owners can re-validate after updating their model to refresh the badge. Validation is best-effort and never blocks or reverts a registration. (`/marketplace`) `[feature, security]`
diff --git a/api/_lib/trader-score-attest.js b/api/_lib/trader-score-attest.js
new file mode 100644
index 000000000..fe899bbe4
--- /dev/null
+++ b/api/_lib/trader-score-attest.js
@@ -0,0 +1,142 @@
+/**
+ * On-chain TraderScore attestor (server-side).
+ *
+ * The Proof tab already lets anyone verify a trader's numbers by following each
+ * position to its Solscan tx. This adds a second, tamper-evident layer: a daily
+ * SPL-Memo attestation, signed by the platform attester, that commits the rolled-
+ * up score for a trader's wallet to the chain and mirrors it into
+ * `solana_attestations` (kind `threews.tradescore.v1`). A consumer can then trust
+ * "this score was published by three.ws at this slot" without re-deriving it.
+ *
+ * Best-effort by contract, exactly like solana-validation-attest.js:
+ * - No attester key (ATTEST_AGENT_SECRET_KEY) → throws `attester_key_not_configured`;
+ * callers (the cron) catch and report skipped rather than failing.
+ * - Idempotent per (wallet, network, window, UTC day): re-running the cron the
+ * same day returns the existing signature instead of broadcasting a duplicate.
+ */
+
+import { PublicKey, Transaction, TransactionInstruction, sendAndConfirmTransaction } from '@solana/web3.js';
+
+import { sql } from './db.js';
+import { solanaConnection } from './solana/connection.js';
+import { RPC } from './solana-attestations.js';
+import { loadAttesterKeypair } from './attest-event.js';
+
+const MEMO_PROGRAM_ID = new PublicKey('MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr');
+const TRADESCORE_KIND = 'threews.tradescore.v1';
+const TX_TIMEOUT_MS = 15_000;
+
+class TraderScoreAttestError extends Error {
+ constructor(code, message) {
+ super(message);
+ this.name = 'TraderScoreAttestError';
+ this.code = code;
+ }
+}
+
+function withTimeout(promise, ms) {
+ let timer;
+ const timeout = new Promise((_, reject) => {
+ timer = setTimeout(() => reject(Object.assign(new Error(`rpc timeout after ${ms}ms`), { code: 'RPC_TIMEOUT' })), ms);
+ });
+ return Promise.race([promise, timeout]).finally(() => clearTimeout(timer));
+}
+
+/** UTC calendar day (YYYY-MM-DD) — the idempotency bucket. */
+function utcDay(ts) {
+ return new Date(ts).toISOString().slice(0, 10);
+}
+
+/**
+ * Attest one trader's rolled-up score on-chain.
+ *
+ * @param {object} p
+ * @param {'mainnet'|'devnet'} p.network
+ * @param {string} p.wallet The agent's Solana trading wallet (base58) — the attestation subject.
+ * @param {string} p.agentId The three.ws agent UUID (recorded in the payload for back-reference).
+ * @param {object} p.metrics Output of computeTraderMetrics for the window.
+ * @param {'24h'|'7d'|'30d'|'all'} p.window
+ * @param {number} [p.now] Injectable clock (defaults Date.now()).
+ * @returns {Promise<{ status:'minted'|'deduped', signature:string, day:string, subject:string }>}
+ */
+export async function attestTraderScore({ network, wallet, agentId, metrics, window, now = Date.now() }) {
+ if (network !== 'mainnet' && network !== 'devnet') {
+ throw new TraderScoreAttestError('unsupported_network', `unsupported network ${network}`);
+ }
+ try { new PublicKey(wallet); } catch {
+ throw new TraderScoreAttestError('invalid_wallet', 'wallet is not a valid pubkey');
+ }
+
+ let attester;
+ try { attester = loadAttesterKeypair(); } catch {
+ throw new TraderScoreAttestError('attester_key_not_configured', 'ATTEST_AGENT_SECRET_KEY is not set.');
+ }
+ const validator = attester.publicKey.toBase58();
+ const day = utcDay(now);
+
+ // Idempotency: one attestation per wallet/network/window/day.
+ const [existing] = await sql`
+ select signature from solana_attestations
+ where agent_asset = ${wallet} and network = ${network} and kind = ${TRADESCORE_KIND}
+ and payload->>'window' = ${window} and payload->>'day' = ${day}
+ limit 1
+ `;
+ if (existing) return { status: 'deduped', signature: existing.signature, day, subject: wallet };
+
+ const payload = {
+ v: 1,
+ kind: TRADESCORE_KIND,
+ agent: wallet,
+ agent_id: agentId,
+ window,
+ day,
+ network,
+ ts: Math.floor(now / 1000),
+ score: metrics.score,
+ verified: metrics.verified,
+ closed: metrics.closed_count,
+ win_rate: metrics.win_rate,
+ realized_pnl_sol: metrics.realized_pnl_sol,
+ max_drawdown_pct: metrics.max_drawdown_pct,
+ unique_coins: metrics.unique_coins,
+ source: 'threews.trader-stats',
+ };
+
+ const conn = solanaConnection({ url: RPC[network] || RPC.devnet, commitment: 'confirmed' });
+ const ix = new TransactionInstruction({
+ programId: MEMO_PROGRAM_ID,
+ keys: [
+ { pubkey: attester.publicKey, isSigner: true, isWritable: false },
+ { pubkey: new PublicKey(wallet), isSigner: false, isWritable: false },
+ ],
+ data: Buffer.from(JSON.stringify(payload), 'utf8'),
+ });
+
+ let signature;
+ try {
+ signature = await withTimeout(
+ sendAndConfirmTransaction(conn, new Transaction().add(ix), [attester], { commitment: 'confirmed' }),
+ TX_TIMEOUT_MS,
+ );
+ } catch (err) {
+ throw new TraderScoreAttestError('record_failed', `tradescore memo failed: ${err.message}`);
+ }
+
+ try {
+ await sql`
+ insert into solana_attestations (
+ signature, network, slot, block_time, agent_asset, attester, kind, payload, verified
+ ) values (
+ ${signature}, ${network}, null, now(), ${wallet}, ${validator},
+ ${TRADESCORE_KIND}, ${JSON.stringify(payload)}::jsonb, true
+ )
+ on conflict (signature) do nothing
+ `;
+ } catch (err) {
+ if (err?.code !== '23505') throw err;
+ }
+
+ return { status: 'minted', signature, day, subject: wallet };
+}
+
+export { TraderScoreAttestError };
diff --git a/api/cron/trader-score-attest.js b/api/cron/trader-score-attest.js
new file mode 100644
index 000000000..b95457450
--- /dev/null
+++ b/api/cron/trader-score-attest.js
@@ -0,0 +1,71 @@
+// GET /api/cron/trader-score-attest — daily on-chain TraderScore attestations.
+//
+// Walks the top of the all-time sniper leaderboard and commits each trader's
+// rolled-up score to the chain via a signed SPL-Memo attestation (see
+// trader-score-attest.js), making the leaderboard's headline numbers tamper-
+// evident on top of the per-trade Solscan proof the profile already exposes.
+//
+// Best-effort, like the other on-chain payout lanes: with no funded attester key
+// (ATTEST_AGENT_SECRET_KEY) the cron is authoritative as a DRY RUN — it reports
+// exactly which wallets WOULD be attested and why it skipped — rather than 500ing.
+
+import { error, json, method, wrap } from '../_lib/http.js';
+import { env } from '../_lib/env.js';
+import { constantTimeEquals } from '../_lib/crypto.js';
+import { getLeaderboard, getTraderStats } from '../_lib/trader-stats.js';
+import { attestTraderScore } from '../_lib/trader-score-attest.js';
+
+const TOP_N = 25;
+const NETWORKS = ['mainnet', 'devnet'];
+
+function requireCron(req, res) {
+ const secret = process.env.CRON_SECRET || env.CRON_SECRET;
+ if (!secret) { error(res, 503, 'not_configured', 'CRON_SECRET unset'); return false; }
+ const auth = req.headers['authorization'] || '';
+ const presented = auth.startsWith('Bearer ') ? auth.slice(7) : '';
+ if (!constantTimeEquals(presented, secret)) { error(res, 401, 'unauthorized', 'invalid cron secret'); return false; }
+ return true;
+}
+
+export default wrap(async (req, res) => {
+ if (!method(req, res, ['GET', 'POST'])) return;
+ if (!requireCron(req, res)) return;
+
+ const results = [];
+ for (const network of NETWORKS) {
+ let board;
+ try {
+ board = await getLeaderboard({ network, window: 'all', sort: 'score', limit: TOP_N });
+ } catch (err) {
+ results.push({ network, error: 'leaderboard_failed', detail: err.message });
+ continue;
+ }
+
+ for (const row of board.leaderboard) {
+ if (!row.wallet || !row.closed) continue; // nothing to attest for an empty book
+ try {
+ // Re-derive the canonical metrics for the subject so the on-chain payload
+ // matches what the profile serves byte-for-byte.
+ const stats = await getTraderStats({ agentId: row.agent_id, network, window: 'all' });
+ if (!stats) continue;
+ const out = await attestTraderScore({
+ network, wallet: stats.agent.wallet, agentId: row.agent_id,
+ metrics: stats.metrics, window: 'all',
+ });
+ results.push({ network, agent_id: row.agent_id, ...out });
+ } catch (err) {
+ results.push({
+ network, agent_id: row.agent_id,
+ status: 'skipped', code: err.code || 'error', detail: err.message,
+ });
+ // A missing attester key fails identically for every row — stop hammering.
+ if (err.code === 'attester_key_not_configured') break;
+ }
+ }
+ }
+
+ const minted = results.filter((r) => r.status === 'minted').length;
+ const deduped = results.filter((r) => r.status === 'deduped').length;
+ const skipped = results.filter((r) => r.status === 'skipped').length;
+ return json(res, 200, { ok: true, minted, deduped, skipped, results });
+});
diff --git a/api/pump/coin-intel.js b/api/pump/coin-intel.js
new file mode 100644
index 000000000..f4bb1fda6
--- /dev/null
+++ b/api/pump/coin-intel.js
@@ -0,0 +1,149 @@
+/**
+ * Coin Intelligence — public read API.
+ *
+ * GET /api/pump/coin-intel?mint=<mint> → full intel for one coin
+ * &wallets=1 ...with the top-trader ledger
+ * GET /api/pump/coin-intel → live radar feed (newest first)
+ * &limit=50&min_quality=60&category=ai&network=mainnet&flag=bundle_launch
+ *
+ * The Coin Intelligence Engine (workers/agent-sniper/intel) watches every new
+ * pump.fun coin's first seconds of trading, derives bundle/organic/concentration
+ * signals, classifies it, and persists here. Any agent — user-built, MCP, or
+ * external — reads the same intelligence the autonomous sniper uses. Public +
+ * IP rate-limited; every number traces to an on-chain trade we observed.
+ */
+
+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 CATEGORIES = new Set([
+ 'meme', 'tech', 'ai', 'culture', 'community',
+ 'political', 'news', 'animal', 'celebrity', 'utility', 'unknown',
+]);
+
+const lamportsToSol = (v) => (v == null ? null : Number(BigInt(v)) / 1e9);
+
+function shapeRow(r) {
+ return {
+ mint: r.mint,
+ network: r.network,
+ symbol: r.symbol,
+ name: r.name,
+ creator: r.creator,
+ image_uri: r.image_uri,
+ description: r.description,
+ socials: { twitter: r.twitter, telegram: r.telegram, website: r.website },
+ created_at: r.created_at,
+ first_seen_at: r.first_seen_at,
+ observation_seconds: r.observation_seconds,
+ // headline signals
+ quality_score: r.quality_score,
+ bundle_score: r.bundle_score != null ? Number(r.bundle_score) : null,
+ organic_score: r.organic_score != null ? Number(r.organic_score) : null,
+ snipe_ratio: r.snipe_ratio != null ? Number(r.snipe_ratio) : null,
+ concentration_top10: r.concentration_top10 != null ? Number(r.concentration_top10) : null,
+ fresh_wallet_ratio: r.fresh_wallet_ratio != null ? Number(r.fresh_wallet_ratio) : null,
+ bubblemap_connectivity: r.bubblemap_connectivity != null ? Number(r.bubblemap_connectivity) : null,
+ risk_flags: r.risk_flags || [],
+ // classification
+ category: r.category,
+ tags: r.tags || [],
+ narrative: r.narrative,
+ classify_confidence: r.classify_confidence != null ? Number(r.classify_confidence) : null,
+ classify_source: r.classify_source,
+ // aggregates
+ dev_buy_sol: lamportsToSol(r.dev_buy_lamports),
+ dev_sold: r.dev_sold,
+ buy_count: r.buy_count,
+ sell_count: r.sell_count,
+ buy_volume_sol: lamportsToSol(r.buy_volume_lamports),
+ sell_volume_sol: lamportsToSol(r.sell_volume_lamports),
+ unique_buyers: r.unique_buyers,
+ unique_sellers: r.unique_sellers,
+ largest_buy_sol: lamportsToSol(r.largest_buy_lamports),
+ signals: r.signals || {},
+ };
+}
+
+export default wrap(async (req, res) => {
+ if (cors(req, res, { methods: 'GET,OPTIONS' })) return;
+ if (!method(req, res, ['GET'])) return;
+
+ const rl = await limits.mcpIp(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 mint = params.get('mint');
+
+ // ── single coin ───────────────────────────────────────────────────────────
+ if (mint) {
+ if (mint.length < 32 || mint.length > 64) return json(res, 400, { error: 'invalid mint' });
+ const [row] = await sql`select * from pump_coin_intel where mint = ${mint} limit 1`;
+ if (!row) {
+ return json(res, 404, { error: 'not_found', mint, hint: 'coin not observed (too old, or launched before the intel engine, or still mid-observation)' });
+ }
+ const out = shapeRow(row);
+
+ const [outcome] = await sql`
+ select graduated, rugged, outcome, ath_multiple, ath_market_cap_usd, last_market_cap_usd, labeled_at
+ from pump_coin_outcomes where mint = ${mint} limit 1
+ `;
+ out.outcome = outcome
+ ? {
+ outcome: outcome.outcome, graduated: outcome.graduated, rugged: outcome.rugged,
+ ath_multiple: outcome.ath_multiple != null ? Number(outcome.ath_multiple) : null,
+ ath_market_cap_usd: outcome.ath_market_cap_usd != null ? Number(outcome.ath_market_cap_usd) : null,
+ last_market_cap_usd: outcome.last_market_cap_usd != null ? Number(outcome.last_market_cap_usd) : null,
+ labeled_at: outcome.labeled_at,
+ }
+ : null;
+
+ if (params.get('wallets') === '1') {
+ const wallets = await sql`
+ select wallet, buy_count, sell_count, buy_lamports, sell_lamports,
+ is_creator, funder, first_seen_at, last_seen_at
+ from pump_coin_wallets where mint = ${mint}
+ order by (buy_lamports + sell_lamports) desc
+ limit 50
+ `;
+ out.wallets = wallets.map((w) => ({
+ wallet: w.wallet,
+ buy_count: w.buy_count,
+ sell_count: w.sell_count,
+ buy_sol: lamportsToSol(w.buy_lamports),
+ sell_sol: lamportsToSol(w.sell_lamports),
+ net_sol: lamportsToSol(w.buy_lamports) - lamportsToSol(w.sell_lamports),
+ is_creator: w.is_creator,
+ funder: w.funder,
+ }));
+ }
+
+ return json(res, 200, out, { 'cache-control': 'public, max-age=15, s-maxage=30' });
+ }
+
+ // ── radar feed ──────────────────────────────────────────────────────────────
+ const limit = Math.max(1, Math.min(100, parseInt(params.get('limit'), 10) || 50));
+ const minQuality = params.get('min_quality') != null ? parseInt(params.get('min_quality'), 10) : null;
+ const category = CATEGORIES.has(params.get('category')) ? params.get('category') : null;
+ const flag = params.get('flag') || null;
+
+ const rows = await sql`
+ select * from pump_coin_intel
+ where network = ${network}
+ and (${Number.isFinite(minQuality) ? minQuality : null}::int is null or quality_score >= ${Number.isFinite(minQuality) ? minQuality : null})
+ and (${category}::text is null or category = ${category})
+ and (${flag}::text is null or ${flag} = any(risk_flags))
+ order by first_seen_at desc
+ limit ${limit}
+ `;
+
+ return json(res, 200, {
+ network,
+ count: rows.length,
+ coins: rows.map(shapeRow),
+ t: Date.now(),
+ }, { 'cache-control': 'public, max-age=10, s-maxage=20' });
+});
diff --git a/data/changelog.json b/data/changelog.json
index bc51a97d5..998521564 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,13 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-15",
+ "title": "Redesigned the $THREE economy page — watch it move, verify it on-chain",
+ "summary": "The /three economy page is rebuilt from the ground up. A live visualization called The Flow shows value entering the protocol and splitting in real time to the treasury, to creators, and back to holders — there is no burn lane, because nothing is ever destroyed (you can pause it any time). The headline number is the total $THREE returned to holders, funded by real usage fees — never minted, never a tax on your transfers. Treasury and holder-rewards wallets link straight to Solscan so you can check every figure yourself, and each distribution shows up as a row with its on-chain transaction. A holder-tier ladder shows your live progress to the next tier; an interactive pricing explorer applies your tier discount as you browse; and a rare-name studio prices any *.threews.sol name by rarity. Built for clarity and trust: real data only, tabular figures, full keyboard and reduced-motion support.",
+ "tags": ["feature", "improvement"],
+ "link": "/three"
+ },
{
"date": "2026-06-15",
"title": "Fixed the footer floating over the avatar viewer",
diff --git a/public/changelog.json b/public/changelog.json
index 424a4a68f..d426a08b6 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-15T22:01:36.793Z",
+ "generated_at": "2026-06-15T22:14:11.659Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -282,6 +282,17 @@
"feature"
]
},
+ {
+ "date": "2026-06-15",
+ "type": "update",
+ "title": "Redesigned the $THREE economy page — watch it move, verify it on-chain",
+ "summary": "The /three economy page is rebuilt from the ground up. A live visualization called The Flow shows value entering the protocol and splitting in real time to the treasury, to creators, and back to holders — there is no burn lane, because nothing is ever destroyed (you can pause it any time). The headline number is the total $THREE returned to holders, funded by real usage fees — never minted, never a tax on your transfers. Treasury and holder-rewards wallets link straight to Solscan so you can check every figure yourself, and each distribution shows up as a row with its on-chain transaction. A holder-tier ladder shows your live progress to the next tier; an interactive pricing explorer applies your tier discount as you browse; and a rare-name studio prices any *.threews.sol name by rarity. Built for clarity and trust: real data only, tabular figures, full keyboard and reduced-motion support.",
+ "link": "/three",
+ "tags": [
+ "feature",
+ "improvement"
+ ]
+ },
{
"date": "2026-06-15",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index aeca51ea3..f969d5e64 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -222,6 +222,14 @@
<category>feature</category>
<description>Every Solana agent passport already showed its on-chain reputation — now you can add to it. A new &quot;Rate this agent&quot; panel lets anyone with a Solana wallet (Phantom or Solflare) leave a 1–5 score, with an optional public note, written on-chain as a signed attestation — no account needed. You can also back your rating with a SOL stake (from 0.001 SOL) sent to the agent's owner for an economically-weighted vouch. Submitting is guarded the obvious ways: you can't rate your own agent, scores are limited to 1–5, the minimum stake is enforced, and re-rating asks you to confirm before it updates your previous score. The moment your transaction confirms, the passport re-reads the chain on demand instead of waiting for the next indexing pass, so your rating shows up in the reputation summary within seconds.</description>
</item>
+ <item>
+ <title>Redesigned the $THREE economy page — watch it move, verify it on-chain</title>
+ <link>https://three.ws/three</link>
+ <guid isPermaLink="false">2026-06-15:Redesigned the $THREE economy page — watch it move, verify it on-chain</guid>
+ <pubDate>Mon, 15 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>The /three economy page is rebuilt from the ground up. A live visualization called The Flow shows value entering the protocol and splitting in real time to the treasury, to creators, and back to holders — there is no burn lane, because nothing is ever destroyed (you can pause it any time). The headline number is the total $THREE returned to holders, funded by real usage fees — never minted, never a tax on your transfers. Treasury and holder-rewards wallets link straight to Solscan so you can check every figure yourself, and each distribution shows up as a row with its on-chain transaction. A holder-tier ladder shows your live progress to the next tier; an interactive pricing explorer applies your tier discount as you browse; and a rare-name studio prices any *.threews.sol name by rarity. Built for clarity and trust: real data only, tabular figures, full keyboard and reduced-motion support.</description>
+ </item>
<item>
<title>Refer friends with a 3D membership card</title>
<link>https://three.ws/dashboard/referrals</link>
diff --git a/public/features.json b/public/features.json
index 8253f8ddd..0da967cc1 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-15T22:01:36.771Z",
+ "generated_at": "2026-06-15T22:14:11.646Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/club-entrance.js b/src/club-entrance.js
index 2628f12a3..33c6aaf6e 100644
--- a/src/club-entrance.js
+++ b/src/club-entrance.js
@@ -407,7 +407,12 @@ async function start(canvasEl) {
// place fades out and the next one fades in for you to keep walking.
function advance() {
nearDoor = false;
- setPhase(isFinalVenue() ? 'arriving' : 'swapOut');
+ if (isFinalVenue()) {
+ setJourneyStep(SEQUENCE.length); // light the Stage step
+ setPhase('arriving');
+ } else {
+ setPhase('swapOut');
+ }
}
// Backed out of the cover card without paying — resume walking the alley.
@@ -591,7 +596,7 @@ async function start(canvasEl) {
composer.dispose();
renderer.dispose();
try { canvasEl.remove(); } catch {}
- showHint(false); showJoystick(false); showPrompt(false);
+ showHint(false); showJoystick(false); showPrompt(false); showJourney(false);
}
}
diff --git a/src/shared/modal.js b/src/shared/modal.js
index a786a0f3b..e3ed94d50 100644
--- a/src/shared/modal.js
+++ b/src/shared/modal.js
@@ -49,8 +49,87 @@ function _unlockScroll() {
let _uid = 0;
+// Self-contained shell styles. The canonical `.tws-modal*` rules live in
+// style.css, which most pages load. Some bespoke full-screen surfaces (e.g.
+// the /club 3D scene) deliberately skip the global stylesheet and would render
+// this modal naked. Inject the shell here — but ONLY when the design system is
+// absent, detected via the `--modal-bg` token. On style.css pages this is a
+// no-op, so there is zero risk of cascade drift. Token references carry literal
+// fallbacks so the modal looks right even without tokens.css.
+const FALLBACK_STYLE_ID = 'tws-modal-fallback-styles';
+
+function ensureModalStyles() {
+ if (typeof document === 'undefined') return;
+ if (document.getElementById(FALLBACK_STYLE_ID)) return;
+ try {
+ const present = getComputedStyle(document.documentElement)
+ .getPropertyValue('--modal-bg')
+ .trim();
+ if (present) return; // style.css is loaded — canonical rules already apply.
+ } catch {
+ /* getComputedStyle can throw in detached contexts — fall through and inject. */
+ }
+ const style = document.createElement('style');
+ style.id = FALLBACK_STYLE_ID;
+ style.textContent = `
+.tws-modal {
+ border: none; padding: 0; background: transparent; color: inherit;
+ max-width: min(var(--modal-width, 480px), calc(100vw - 2rem));
+ max-height: calc(100svh - 2rem); overflow: visible;
+ opacity: 1; transform: scale(1) translateY(0);
+ transition: opacity .2s ease, transform .2s ease;
+}
+.tws-modal::backdrop { background: var(--modal-backdrop, rgba(0, 0, 0, .7)); transition: opacity .2s ease; }
+@starting-style {
+ .tws-modal[open] { opacity: 0; transform: scale(.96) translateY(10px); }
+ .tws-modal[open]::backdrop { opacity: 0; }
+}
+.tws-modal--closing { opacity: 0 !important; transform: scale(.96) translateY(10px) !important; }
+.tws-modal--closing::backdrop { opacity: 0 !important; }
+.tws-modal-inner {
+ background: var(--modal-bg, rgba(10, 11, 18, .96));
+ border: 1px solid var(--modal-border, rgba(255, 255, 255, .14));
+ border-radius: var(--modal-radius, 16px);
+ box-shadow: var(--modal-shadow, 0 24px 64px rgba(0, 0, 0, .6), 0 4px 16px rgba(0, 0, 0, .4));
+ width: min(var(--modal-width, 480px), calc(100vw - 2rem));
+ max-height: calc(100svh - 4rem); overflow: hidden;
+ display: flex; flex-direction: column;
+}
+.tws-modal-header {
+ display: flex; align-items: center; justify-content: space-between;
+ gap: var(--space-sm, .75rem); padding: var(--space-md, 1rem) var(--space-lg, 1.5rem);
+ border-bottom: 1px solid var(--modal-border, rgba(255, 255, 255, .14)); flex-shrink: 0;
+}
+.tws-modal-title {
+ margin: 0; font-size: var(--text-base, 1.05rem); font-weight: 600;
+ color: var(--ink, #f5f7fa); line-height: var(--leading-tight, 1.25);
+}
+.tws-modal-close {
+ background: none; border: none; color: var(--ink-dim, rgba(245, 247, 250, .6));
+ font-size: 1.1rem; line-height: 1; cursor: pointer;
+ padding: var(--space-xs, .35rem) var(--space-sm, .5rem);
+ border-radius: var(--radius-sm, 8px); transition: color .15s, background .15s; flex-shrink: 0;
+}
+.tws-modal-close:hover { color: var(--ink, #f5f7fa); background: var(--surface-2, rgba(255, 255, 255, .06)); }
+.tws-modal-close:focus-visible { outline: 2px solid var(--accent, #a4f0bc); outline-offset: 2px; }
+.tws-modal-body {
+ padding: var(--space-lg, 1.5rem); overflow-y: auto; flex: 1;
+ color: var(--ink-dim, rgba(245, 247, 250, .6));
+}
+.tws-modal-actions {
+ display: flex; justify-content: flex-end; gap: var(--space-sm, .75rem);
+ padding: var(--space-md, 1rem) var(--space-lg, 1.5rem);
+ border-top: 1px solid var(--modal-border, rgba(255, 255, 255, .14));
+ flex-shrink: 0; flex-wrap: wrap;
+}
+.tws-modal-actions[hidden] { display: none; }
+`;
+ (document.head || document.documentElement).appendChild(style);
+}
+
export class Modal {
constructor({ title = '', body = '', actions = '', onClose, dismissible = true } = {}) {
+ ensureModalStyles();
const id = ++_uid;
this._titleId = `tws-modal-title-${id}`;
this._bodyId = `tws-modal-body-${id}`;
diff --git a/vercel.json b/vercel.json
index 001f628f7..a2496edba 100644
--- a/vercel.json
+++ b/vercel.json
@@ -3188,6 +3188,10 @@
"path": "/api/cron/solana-attestations-crawl",
"schedule": "*/5 * * * *"
},
+ {
+ "path": "/api/cron/trader-score-attest",
+ "schedule": "45 9 * * *"
+ },
{
"path": "/api/cron/index-delegations",
"schedule": "*/5 * * * *"