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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
Match settled Solana club tips to dancer Solana wallets
nirholas07464fbe6461
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 08bbfd194..bdd55011a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -27,6 +27,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Nearby agents on IRL now update live — no reload** — Open three.ws/irl and the agents other people have placed around you now update in real time. When anyone nearby drops a new agent, moves one, changes its outfit, or takes one down, you see it appear, shift, or vanish on your screen within about a second — no refresh, no waiting for the next scan. It works both ways: pin an agent and everyone standing near you sees it pop in too, and walk into a new area and the live view follows you to the agents there. A small status pill next to the nearby count shows whether you're getting live updates; if the realtime connection can't be reached — some networks block it — IRL automatically falls back to refreshing every few seconds and the pill reads 'Polling', still fully working, just a touch slower. (`/irl`) `[feature, improvement]`- **Pay an IRL agent for its services — and open its full profile — right from the card** — When you tap an agent on three.ws/irl, its card now does real things. View profile opens that agent's full page so you can see who you just met. If the agent offers paid services, each one shows its price and a Use button: tap it, approve the payment in your wallet, and you pay in USDC on the spot — the standard x402 flow, capped at the price shown so a misconfigured service can never overcharge you. The response you paid for appears right inside the card instead of vanishing into a toast. Every state is handled: no wallet, a cancelled signature, or a service error each show a clear message and leave the button ready to try again, and each service button works on its own so paying for one never freezes the others. Completed encounters quietly notify the agent's owner, receipt and all. (`/irl`) `[feature]`- **Place your IRL agent on the real floor with AR anchoring** — On AR-capable phones (Android Chrome), three.ws/irl now lets you point at your actual floor through a placement ring and tap to set your agent on that exact spot. It binds to a real-world anchor, so it stays put as you walk around it instead of sliding with the camera or jittering with GPS — the world-locked placement you'd expect from a top AR app. Each placement is saved as a pin, capturing the floor height, facing, and how good your GPS fix was, so it reloads near the same place and nearby people can see it. If you tap to anchor before your location is ready, it holds the spot and saves it the instant your first GPS fix lands instead of losing the placement. iPhone, which doesn't support this AR mode, keeps the existing compass-based Pin here flow and simply doesn't show the floor button. (`/irl`) `[feature]`+- **Pole Club dancer tips now reliably reach their Solana wallets** — When you tip a dancer in the Pole Club, the platform batches your tips and sweeps them on-chain to the dancer's registered wallet. A mismatch in how a settled tip recorded its network meant Solana tips were being set aside as 'no wallet' even when the dancer had a Solana address on file, so they never went out. That's fixed: tips paid on Solana are now matched to the dancer's Solana wallet and swept correctly, alongside the existing Base payouts. No tip was ever lost — stuck tips remained queued and now sweep on the next cycle. (`/club`) `[fix]`- **Report a bad IRL pin — and guardrails that keep public spots usable** — Now that anyone standing at a location sees the agents others placed there, three.ws/irl has the moderation it needs to stay clean. Tap any agent that isn't yours and a new Report option lets you flag it for spam, hate or harassment, impersonation, a scam, sexual content, or anything else — with a clear sending, thanks, and try-again state, never a dead button. Reports are counted per person, so one account can't bury a pin it dislikes; once enough different people flag the same agent it's hidden from everyone — and if you're nearby when that happens it vanishes from your view within about a second rather than lingering until the next scan. Placing agents is now protected too: captions and names with slurs are refused, a pin can only ever reference $THREE, the only coin on three.ws, and its pay button can only point at three.ws — never an outside link. A single busy block holds a sensible maximum of agents and each person has an active-pin limit, so no one can carpet-bomb a plaza or spam placements, and every refusal tells you exactly what to do. Abandoned anonymous pins are cleaned up automatically while the agents you're signed in for stay put. (`/irl`) `[feature, security]`- **See a placed agent's on-chain reputation from your dashboard** — Your IRL Placements dashboard now shows each placed agent's on-chain reputation — the exact score and trust tier a passer-by sees when they tap it in the real world, so you know what the public sees. Tap an agent's Reputation chip to open a panel with its 0–100 score and tier (New, Emerging, Trusted, Elite), a star rating, and a breakdown of how many attestations are verified, credentialed, or disputed. A small 30-day trend line shows whether its reputation is climbing. Agents that haven't earned any attestations yet get a clear prompt to share them rather than an empty number, and a 'Manage on passport' link takes you to where you add or dispute attestations. If the reputation service is unreachable the panel offers a retry instead of failing silently. (`/dashboard/irl-placements`) `[feature, improvement]`- **See how many people are viewing a spot with you on IRL** — three.ws/irl now shows when you're not alone. A small live count next to the nearby badge reads '3 viewing nearby' whenever other people have the same location open at the same time, so a place feels inhabited even before anyone has pinned an agent there — and it updates the instant someone arrives or leaves. Your location stays private: the count is built from a coarse ~1km area, never your precise GPS, and nobody can see where you are by default. If you want to be visible you can turn on 'Appear nearby' (off unless you choose it), which shows you to others as a faint, anonymous marker on their radar and in their view — no name, not tappable, clearly distinct from a placed agent. You can flip it on or off at any time and others see the change immediately. The count only appears while you have a live connection, so it never shows a stale or made-up number. (`/irl`) `[feature]`diff --git a/api/_lib/club/chain.js b/api/_lib/club/chain.jsnew file mode 100644index 000000000..31b26f567--- /dev/null+++ b/api/_lib/club/chain.js@@ -0,0 +1,19 @@+// Normalize a stored tip/payout network identifier to the chain key the club+// payout senders and dancer-wallet columns are keyed on.+//+// club_tips.network is written from the x402 requirement, so a SETTLED tip+// carries a CAIP-2 chain id ('solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp',+// 'eip155:8453'), while a BYPASS (free-pass) ticket carries the bare chain key+// ('solana', 'base'). Both forms denote the same chain. The sweep compares+// `network === 'solana'` to choose the recipient column and per-network sender,+// so without this collapse every settled Solana tip falls through to the EVM+// branch and is skipped as "no wallet" even when a Solana address is registered.+//+// Unknown values pass through unchanged so they surface as an explicit+// "unsupported network" downstream rather than being silently mis-routed.+export function chainOf(network) {+ const n = String(network || '').trim().toLowerCase();+ if (n === 'solana' || n.startsWith('solana:')) return 'solana';+ if (n === 'base' || n === 'eip155:8453') return 'base';+ return n;+}diff --git a/api/_lib/club/payouts.js b/api/_lib/club/payouts.jsindex add8255fc..fc37f4e20 100644--- a/api/_lib/club/payouts.js+++ b/api/_lib/club/payouts.js@@ -37,6 +37,7 @@ import { base } from 'viem/chains';import { evmTransport } from '../evm/rpc.js';import { env } from '../env.js';+import { chainOf } from './chain.js';import { SOLANA_USDC_MINT, EVM_USDC } from '../../payments/_config.js';const SOLANA_PRIORITY_MICRO_LAMPORTS = 50_000;@@ -166,7 +167,10 @@ export async function sendClubUsdcBase({ recipient, amount }) {* Dispatch helper: pick the right per-network sender for a sweep group.*/export async function sendClubPayout({ network, recipient, amount }) {- if (network === 'solana') return sendClubUsdcSolana({ recipient, amount });- if (network === 'base') return sendClubUsdcBase({ recipient, amount });+ // Accept either a bare chain key or a CAIP-2 id — the sweep already+ // normalizes, but normalize here too so any caller is routed correctly.+ const chain = chainOf(network);+ if (chain === 'solana') return sendClubUsdcSolana({ recipient, amount });+ if (chain === 'base') return sendClubUsdcBase({ recipient, amount });throw new Error(`unsupported network for club sweep: ${network}`);}diff --git a/api/_lib/club/sweep.js b/api/_lib/club/sweep.jsindex 65fe5264d..916112ad8 100644--- a/api/_lib/club/sweep.js+++ b/api/_lib/club/sweep.js@@ -10,6 +10,7 @@ import { randomUUID } from 'node:crypto';import { sql } from '../db.js';import { sendClubPayout } from './payouts.js';+import { chainOf } from './chain.js';import { SOLANA_USDC_MINT, EVM_USDC } from '../../payments/_config.js';// Below this total (per dancer × network), don't sweep — the fee dwarfs the@@ -97,7 +98,12 @@ export async function runClubPayoutSweep({ send = sendClubPayout } = {}) {let totalSent = 0n;for (const group of groups) {- const network = String(group.network);+ // Collapse the stored CAIP-2 network ('solana:5eykt4…' / 'eip155:8453'+ // from a settled x402 tip) or bare chain key ('solana' / 'base' from a+ // bypass ticket) to the chain the senders + wallet columns are keyed on.+ // Without this every settled Solana tip falls through to the EVM branch+ // below and is skipped as "no wallet" even with a Solana address set.+ const network = chainOf(group.network);const recipient = network === 'solana' ? group.solana_address : group.evm_address;const tipIds = group.tip_ids;const totalAtomics = BigInt(group.total_atomics);diff --git a/data/changelog.json b/data/changelog.jsonindex f83902ea7..e9f1e3ecc 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-17",+ "title": "Pole Club dancer tips now reliably reach their Solana wallets",+ "summary": "When you tip a dancer in the Pole Club, the platform batches your tips and sweeps them on-chain to the dancer's registered wallet. A mismatch in how a settled tip recorded its network meant Solana tips were being set aside as 'no wallet' even when the dancer had a Solana address on file, so they never went out. That's fixed: tips paid on Solana are now matched to the dancer's Solana wallet and swept correctly, alongside the existing Base payouts. No tip was ever lost — stuck tips remained queued and now sweep on the next cycle.",+ "tags": ["fix"],+ "link": "/club"+ },{"date": "2026-06-17","title": "Connect your Solana wallet right from the marketplace",diff --git a/public/changelog.json b/public/changelog.jsonindex 76104ee1b..93dc74b99 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-17T06:03:34.818Z",+ "generated_at": "2026-06-17T06:41:43.516Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -224,6 +224,16 @@"feature"]},+ {+ "date": "2026-06-17",+ "type": "update",+ "title": "Pole Club dancer tips now reliably reach their Solana wallets",+ "summary": "When you tip a dancer in the Pole Club, the platform batches your tips and sweeps them on-chain to the dancer's registered wallet. A mismatch in how a settled tip recorded its network meant Solana tips were being set aside as 'no wallet' even when the dancer had a Solana address on file, so they never went out. That's fixed: tips paid on Solana are now matched to the dancer's Solana wallet and swept correctly, alongside the existing Base payouts. No tip was ever lost — stuck tips remained queued and now sweep on the next cycle.",+ "link": "/club",+ "tags": [+ "fix"+ ]+ },{"date": "2026-06-17","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 45f3ca0f2..82ca4032f 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -174,6 +174,14 @@<category>feature</category><description>On AR-capable phones (Android Chrome), three.ws/irl now lets you point at your actual floor through a placement ring and tap to set your agent on that exact spot. It binds to a real-world anchor, so it stays put as you walk around it instead of sliding with the camera or jittering with GPS — the world-locked placement you'd expect from a top AR app. Each placement is saved as a pin, capturing the floor height, facing, and how good your GPS fix was, so it reloads near the same place and nearby people can see it. If you tap to anchor before your location is ready, it holds the spot and saves it the instant your first GPS fix lands instead of losing the placement. iPhone, which doesn't support this AR mode, keeps the existing compass-based Pin here flow and simply doesn't show the floor button.</description></item>+ <item>+ <title>Pole Club dancer tips now reliably reach their Solana wallets</title>+ <link>https://three.ws/club</link>+ <guid isPermaLink="false">2026-06-17:Pole Club dancer tips now reliably reach their Solana wallets</guid>+ <pubDate>Wed, 17 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>When you tip a dancer in the Pole Club, the platform batches your tips and sweeps them on-chain to the dancer's registered wallet. A mismatch in how a settled tip recorded its network meant Solana tips were being set aside as 'no wallet' even when the dancer had a Solana address on file, so they never went out. That's fixed: tips paid on Solana are now matched to the dancer's Solana wallet and swept correctly, alongside the existing Base payouts. No tip was ever lost — stuck tips remained queued and now sweep on the next cycle.</description>+ </item><item><title>Report a bad IRL pin — and guardrails that keep public spots usable</title><link>https://three.ws/irl</link>diff --git a/public/features.json b/public/features.jsonindex 80f4dd448..8e3727cfb 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-17T06:03:34.702Z",+ "generated_at": "2026-06-17T06:41:43.482Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/tests/api/club-chain.test.js b/tests/api/club-chain.test.jsnew file mode 100644index 000000000..31d4ecf33--- /dev/null+++ b/tests/api/club-chain.test.js@@ -0,0 +1,37 @@+// api/_lib/club/chain.js — chainOf network normalization.+//+// Regression guard for the bug where a settled x402 tip stores its network as a+// CAIP-2 id ('solana:5eykt4…' / 'eip155:8453') but the sweep compared against+// the bare chain key ('solana' / 'base'), so every Solana tip fell through to+// the EVM branch and was skipped as "no wallet".++import { describe, it, expect } from 'vitest';+import { chainOf } from '../../api/_lib/club/chain.js';++describe('chainOf', () => {+ it('passes through bare chain keys (bypass-ticket form)', () => {+ expect(chainOf('solana')).toBe('solana');+ expect(chainOf('base')).toBe('base');+ });++ it('collapses CAIP-2 ids to the chain key (settled-x402 form)', () => {+ expect(chainOf('solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp')).toBe('solana');+ expect(chainOf('eip155:8453')).toBe('base');+ });++ it('is case- and whitespace-insensitive', () => {+ expect(chainOf(' SOLANA:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp ')).toBe('solana');+ expect(chainOf('EIP155:8453')).toBe('base');+ });++ it('passes unknown networks through unchanged so they surface downstream', () => {+ expect(chainOf('eip155:1')).toBe('eip155:1');+ expect(chainOf('aptos')).toBe('aptos');+ });++ it('treats null/undefined/empty as an empty string', () => {+ expect(chainOf(null)).toBe('');+ expect(chainOf(undefined)).toBe('');+ expect(chainOf('')).toBe('');+ });+});