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.

feat: add MetaMask agent wallet server and demo scripts

nirholasf7e5d60ff940
diff --git a/docs/roadmap/creation-consolidation.md b/docs/roadmap/creation-consolidation.md
new file mode 100644
index 000000000..a3ea4cb30
--- /dev/null
+++ b/docs/roadmap/creation-consolidation.md
@@ -0,0 +1,214 @@
+# Creation Surface Consolidation — Audit & Plan
+
+**Status:** Audit complete, consolidation not started
+**Audited:** 2026-06-12
+**Problem:** 28 creation-related surfaces (18 nav-linked, 10 orphaned) presented as a flat menu of peer options. Users can't tell which tools are products, which are steps, and which are duplicates. The platform has no creation funnel — it has a pile of doors.
+
+**Goal:** One front door (`/create` hub organized by user intent), one canonical surface per capability, every tool's "done" state handing off to the next stage of the pipeline: **avatar → agent → deploy (embed / world / token)**.
+
+---
+
+## 1. Full inventory
+
+Every user-facing surface where something gets created. "Nav" reflects `public/nav-data.js` as of audit date.
+
+### 1.1 AI agent creation
+
+| Surface | Path | File | What it does | Backend | Nav |
+|---|---|---|---|---|---|
+| Create an Agent | `/create-agent` | `pages/create-agent.html` | 5-step wizard: name, 3D body, skills, personality, voice, on-chain identity | `POST /api/agents` | Build ▸ |
+| New Agent | `/agent/new` | (routes to same flow) | Appears to duplicate `/create-agent` | `POST /api/agents` | — |
+| Get Started | `/start` | — | 5-step onboarding: avatar → name → skills → embed → monetization | multiple | — (hidden onboarding) |
+
+### 1.2 3D avatar building
+
+| Surface | Path | File | What it does | Backend | Nav |
+|---|---|---|---|---|---|
+| Create avatar | `/create` | `pages/create.html` | Pick template avatar or upload GLB; feeds agent workflow | `/api/avatars/*` | Build ▸ |
+| Avatar Studio | `/avatar-studio` | `pages/avatar-studio.html` | Full character creator (M3-org CharacterStudio fork): sculpt, outfits, export GLB | internal Three.js | Build ▸ |
+| Customize avatar | `/avatar-edit` | `pages/avatar-edit.html` | Edit existing avatar attributes/accessories | `/api/avatars/{id}` | — (orphaned) |
+| Import avatar | `/import/rpm` | — | Import GLB/glTF from URL or file upload | `/api/avatars` | Build ▸ |
+| Avatar Studio demo | `/avatar-studio-demo` | `pages/avatar-studio-demo.html` | Demo variant of Avatar Studio | internal | — (orphaned) |
+
+### 1.3 Photo/selfie → 3D avatar
+
+| Surface | Path | File | What it does | Backend | Nav |
+|---|---|---|---|---|---|
+| Selfie to avatar | `/create/selfie` | `pages/create-selfie.html` | One photo → rigged 3D avatar (~60s) | `/api/avatars/{id}` | Build ▸ |
+| Scan | `/scan` | `pages/scan.html` | Real-time camera reconstruction → rigged avatar (~60s) | `/api/config`, `/api/avatars/{id}` | — (only via `/features/scan`) |
+| Scan feature page | `/features/scan` | — | Marketing/feature overview of Scan | read-only | Discover ▸ |
+
+### 1.4 Prompt → 3D model generation
+
+| Surface | Path | File | What it does | Backend | Nav |
+|---|---|---|---|---|---|
+| Forge | `/forge` | `pages/forge.html` | Text prompt → textured GLB (Flux + TRELLIS); viewer, AR preview, download | `/api/forge*` (13 endpoints) | Build ▸ "Text to 3D" |
+| Forge feature page | `/features/forge` | — | Marketing/feature overview of Forge | read-only | Discover ▸ |
+
+### 1.5 Character creation (worlds)
+
+| Surface | Path | File | What it does | Backend | Nav |
+|---|---|---|---|---|---|
+| Play (coin worlds) | `/play` | — | 3D worlds per token; character creation is an integrated subflow | multiplayer backend | Build ▸ "Worlds" |
+| Character creator | `/create/character` | `pages/create/` | Standalone character builder referencing `/play` worlds | internal | — (orphaned; linked from `/play`) |
+| Create character | `/create-character` | `pages/create-character.html` | Lightweight character creation variant | unknown | — (orphaned) |
+
+### 1.6 Motion & pose
+
+| Surface | Path | File | What it does | Backend | Nav |
+|---|---|---|---|---|---|
+| Mocap Studio | `/mocap-studio` | `pages/mocap-studio.html` | Webcam face/body capture → save clip → replay on any avatar | internal media capture | Labs ▸ |
+| Pose Studio | `/pose` | — | Click-to-pose mannequin, presets, props, export PNG/animation | internal Three.js | Build ▸ + Labs ▸ |
+
+### 1.7 Voice
+
+| Surface | Path | File | What it does | Backend | Nav |
+|---|---|---|---|---|---|
+| Voice Lab | `/voice` | — | Record → voice clone; compare models; use in agents/TTS | TTS/cloning APIs | Build ▸ |
+
+### 1.8 Embed / widget creation
+
+| Surface | Path | File | What it does | Backend | Nav |
+|---|---|---|---|---|---|
+| Widget Studio | `/studio` | — | Pick avatar, configure voice/knowledge, copy embed snippet | config generation | Embed ▸ |
+| Embed editor | `/embed.html` | — | Tune embed mode, size, position | config UI | Embed ▸ |
+| Avatar SDK | `/avatar-sdk` | `pages/avatar-sdk.html` | Reference/demo for `@three-ws/avatar` + `<agent-3d>` component | docs | Embed ▸ |
+| Playground | `/playground` | — | Viewer + environment + embed code | — | Build ▸ |
+
+### 1.9 Token / launchpad
+
+| Surface | Path | File | What it does | Backend | Nav |
+|---|---|---|---|---|---|
+| Launchpad Studio | `/launchpad` | `pages/launchpad.html` | Build hosted white-label 3D token launchpad (Pump.fun-powered) | `/api/launchpad/*` | Labs ▸ |
+| Bulk Launch | `/bulk-launch` | `pages/bulk-launch.html` | Admin batch launcher for agent tokens | internal/admin | — (orphaned, admin-only) |
+
+### 1.10 Stranded internal steps & demo variants (orphaned pages)
+
+| Path | File | Likely purpose | Disposition needed |
+|---|---|---|---|
+| `/create-prompt` | `pages/create-prompt.html` | Internal prompt-input step | Fold into parent flow or delete |
+| `/create-review` | `pages/create-review.html` | Review step of a creation flow | Fold into parent flow or delete |
+| `/avatar-studio-demo` | `pages/avatar-studio-demo.html` | Demo variant | Delete or gate behind docs |
+| `/avatar-embed` | `pages/avatar-embed.html` | Embed demo variant | Fold into `/studio` or docs |
+| `/avatar-page` | `pages/avatar-page.html` | Avatar detail (read-only, not creation) | Keep; add "Edit" link → canonical editor |
+| `/avatar-wallet-chat` | `pages/avatar-wallet-chat.html` | Feature demo | Keep as demo, out of creation scope |
+| `/avatar-artifact` | `pages/avatar-artifact.html` | Standalone artifact viewer | Keep (Labs), out of creation scope |
+
+**Totals: 18 nav-discoverable + 10 orphaned = 28 surfaces.**
+
+---
+
+## 2. Duplication clusters & canonical decisions
+
+For each cluster: the surfaces involved, the chosen canonical, and what happens to the rest.
+
+| # | Cluster | Surfaces | Canonical | Action for the rest |
+|---|---|---|---|---|
+| C1 | Photo→avatar | `/scan`, `/create/selfie` | **Merge into one** (decision needed: which UX wins — `/scan`'s real-time tracking appears more sophisticated; `/create/selfie`'s URL fits the hub) | 301 the loser → winner; `/features/scan` links to winner |
+| C2 | Agent creation | `/create-agent`, `/agent/new`, `/start` | **`/create-agent`** | 301 `/agent/new`; keep `/start` as guided onboarding that *wraps* the canonical wizard (no parallel implementation) |
+| C3 | Character creation | in-`/play` flow, `/create/character`, `/create-character` | **`/play` integrated flow** | Fold `/create/character` into `/play` (modal or subroute); delete `/create-character`; 301 both |
+| C4 | Avatar building | `/create`, `/avatar-studio`, `/avatar-edit`, `/import/rpm` | **`/create` as router → `/avatar-studio` as editor** | `/avatar-edit` becomes the edit mode of Avatar Studio (reachable from avatar detail pages, not standalone); `/import/rpm` becomes an upload option inside `/create` |
+| C5 | Stranded steps | `/create-prompt`, `/create-review`, `/avatar-studio-demo`, `/avatar-embed` | n/a | Fold into parent flows or delete; 301 or 410 |
+| C6 | Embed | `/studio`, `/embed.html`, `/avatar-sdk`, `/playground` | **`/studio`** for building; `/avatar-sdk` stays as docs | Merge `/embed.html` tuning options into `/studio`; clarify `/playground` as preview, link it from `/studio` |
+
+Not duplicates — keep as-is (complementary, single-purpose):
+- `/forge` (prompt→3D) — most mature tool on the platform (13 API endpoints)
+- `/mocap-studio` vs `/pose` — different input methods (capture vs manual)
+- `/voice` — single surface
+- `/launchpad` (public) vs `/bulk-launch` (admin; remove from public routing)
+
+---
+
+## 3. Target information architecture
+
+### 3.1 The `/create` hub (new front door)
+
+`/create` stops being "avatar template picker" and becomes the intent router. Four intents, each one question deep:
+
+```
+/create
+├── Build an AI agent → /create-agent (wizard; avatar step links to avatar intents below)
+├── Make a 3D avatar
+│ ├── From a photo → canonical photo→avatar surface (C1 winner)
+│ ├── From scratch → /avatar-studio
+│ ├── From a text prompt → /forge (avatar preset)
+│ └── From a file/URL → upload option (absorbs /import/rpm)
+├── Generate a 3D model → /forge
+└── Launch a token world → /launchpad (and /play for worlds)
+```
+
+The current template-picker content of `/create` survives as the "From scratch / templates" path.
+
+### 3.2 Nav after consolidation
+
+**Build dropdown** shrinks from 8+ tool links to ~4 intent links (mirroring the hub) plus Worlds. **Embed dropdown** keeps `/studio` + `/avatar-sdk` docs. **Labs** keeps genuinely experimental: Mocap, Pose, Launchpad live feeds. All menus live in `public/nav-data.js` (single source of truth — never hand-edit nav markup).
+
+### 3.3 The pipeline (cross-links that turn tools into a product)
+
+Every tool's completion state hands off to the next stage:
+
+| When user finishes… | Offer… |
+|---|---|
+| Photo→avatar, Avatar Studio, Forge (avatar output), import | "Turn this into an agent" → `/create-agent` with avatar pre-selected |
+| `/create-agent` wizard | "Give it a voice" → `/voice` · "Embed it" → `/studio` · "Put it in a world" → `/play` · "Launch its token" → `/launchpad` |
+| `/voice` clone | "Attach to an agent" → agent picker |
+| `/studio` snippet | Link to `/playground` preview + agent detail |
+| Avatar detail page | "Edit" → Avatar Studio edit mode (replaces orphaned `/avatar-edit`) |
+
+---
+
+## 4. Migration plan
+
+### Phase 1 — Front door & nav (fixes the overwhelm; no tool internals touched)
+1. Rebuild `/create` as the intent hub (3.1). Existing template picker becomes a sub-path of the avatar intent.
+2. Restructure `public/nav-data.js` per 3.2.
+3. Update `data/pages.json`; add changelog entry (user-visible).
+
+### Phase 2 — Kill duplicates (one cluster per task; each independently shippable)
+4. **C2:** 301 `/agent/new` → `/create-agent`; rewire `/start` to wrap the canonical wizard.
+5. **C1:** pick the photo→avatar winner, merge the better pieces of both implementations, 301 the loser, add winner to nav.
+6. **C3:** fold character creation into `/play`; delete/301 the two orphans.
+7. **C4:** retire standalone `/avatar-edit` (edit mode lives in Avatar Studio, linked from avatar detail); absorb `/import/rpm` into the hub.
+8. **C5:** fold or delete stranded steps and demo variants.
+9. **C6:** merge `/embed.html` into `/studio`; cross-link `/playground`.
+10. Remove `/bulk-launch` from public routing (admin-only access).
+
+### Phase 3 — Pipeline handoffs (turns breadth into a journey)
+11. Implement every completion-state handoff in 3.3.
+12. End-to-end walkthrough: photo → avatar → agent → voice → embed → world → token, with no dead ends.
+
+### Redirect table (cumulative)
+
+| Old URL | New URL | Type |
+|---|---|---|
+| `/agent/new` | `/create-agent` | 301 |
+| `/scan` *or* `/create/selfie` (loser of C1) | C1 winner | 301 |
+| `/create/character` | `/play` (character subflow) | 301 |
+| `/create-character` | `/play` (character subflow) | 301 |
+| `/avatar-edit` | `/avatar-studio?mode=edit&id=…` | 301 |
+| `/import/rpm` | `/create` (upload intent) | 301 |
+| `/embed.html` | `/studio` | 301 |
+| `/create-prompt`, `/create-review` | parent flow or 410 | per-case |
+| `/avatar-studio-demo` | `/avatar-studio` | 301 |
+| `/bulk-launch` | admin-gated, removed from public routes | — |
+
+Redirects live in `vercel.json` routes. Also update `data/pages.json` (feeds sitemap + changelog) and any internal links found via grep before removing a page.
+
+### Per-phase definition of done
+- All redirects return 301 to a live page (verify with `curl -I`).
+- `public/nav-data.js` has no link to a retired URL; `grep -r` across `pages/`, `public/`, `docs/` finds no internal links to retired URLs.
+- `data/pages.json` updated; `npm run build:pages` green.
+- Changelog entries for user-visible changes (Phase 1 hub + nav; each cluster merge that users would notice).
+- Page audit (`scripts/page-audit.mjs`) green on touched pages.
+
+---
+
+## 5. Open decisions
+
+1. **C1 winner:** `/scan` (real-time tracking UX) vs `/create/selfie` (URL fits the hub). Recommendation: keep `/scan`'s implementation at `/create/selfie`'s URL — best UX, best IA.
+2. **`/start` scope:** keep as marketing onboarding wrapping the wizard, or retire entirely once the hub exists?
+3. **`/pose` placement:** currently in both Build and Labs; after consolidation it should live in Labs only (it's a tool, not an intent).
+
+---
+
+*Related: [generation-suite.md](generation-suite.md) (prompt/image→3D roadmap — Forge is the canonical surface for that work; nothing in this consolidation conflicts with it).*
diff --git a/examples/metamask-agent-wallet/index.html b/examples/metamask-agent-wallet/index.html
new file mode 100644
index 000000000..931f74059
--- /dev/null
+++ b/examples/metamask-agent-wallet/index.html
@@ -0,0 +1,283 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8" />
+<meta name="viewport" content="width=device-width, initial-scale=1" />
+<title>Agent Wallet · MetaMask × three.ws</title>
+<style>
+ :root {
+ --bg: #0a0b0f;
+ --surface: #12141b;
+ --surface-2: #1a1d27;
+ --border: #262a38;
+ --text: #e8eaf0;
+ --text-dim: #8b91a5;
+ --accent: #f6851b; /* MetaMask orange */
+ --accent-soft: rgba(246, 133, 27, 0.12);
+ --green: #34d399;
+ --green-soft: rgba(52, 211, 153, 0.12);
+ --red: #f87171;
+ --red-soft: rgba(248, 113, 113, 0.1);
+ --mono: 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, monospace;
+ --radius: 14px;
+ }
+ * { box-sizing: border-box; margin: 0; }
+ body {
+ background: radial-gradient(1200px 600px at 70% -10%, rgba(246,133,27,0.07), transparent), var(--bg);
+ color: var(--text);
+ font: 15px/1.55 system-ui, -apple-system, 'Segoe UI', sans-serif;
+ min-height: 100vh;
+ padding: 48px 20px 80px;
+ }
+ main { max-width: 720px; margin: 0 auto; display: grid; gap: 20px; }
+
+ header { margin-bottom: 8px; }
+ .eyebrow {
+ display: inline-flex; align-items: center; gap: 8px;
+ font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
+ color: var(--accent); background: var(--accent-soft);
+ padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
+ }
+ .eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
+ h1 { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
+ header p { color: var(--text-dim); margin-top: 6px; max-width: 56ch; }
+
+ .card {
+ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
+ padding: 24px; transition: border-color 0.2s ease;
+ }
+ .card:hover { border-color: #323748; }
+ .card h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
+
+ .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
+ .badge {
+ display: inline-flex; align-items: center; gap: 6px;
+ font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
+ }
+ .badge.ok { color: var(--green); background: var(--green-soft); }
+ .badge.ok::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
+ .badge.err { color: var(--red); background: var(--red-soft); }
+
+ .address {
+ font-family: var(--mono); font-size: 14px; color: var(--text);
+ background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
+ padding: 10px 12px; display: flex; align-items: center; gap: 10px;
+ overflow-wrap: anywhere; margin-top: 4px;
+ }
+ .copy-btn {
+ flex-shrink: 0; background: none; border: 1px solid var(--border); border-radius: 6px;
+ color: var(--text-dim); font-size: 12px; padding: 4px 10px; cursor: pointer;
+ transition: all 0.15s ease;
+ }
+ .copy-btn:hover { color: var(--text); border-color: var(--text-dim); }
+ .copy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
+ .copy-btn:active { transform: scale(0.96); }
+
+ .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 18px; }
+ .stat { background: var(--surface-2); border-radius: 10px; padding: 14px 16px; }
+ .stat .label { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
+ .stat .value { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
+ .stat .hint { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; }
+
+ label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
+ textarea {
+ width: 100%; min-height: 76px; resize: vertical;
+ background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
+ color: var(--text); font: 14px/1.5 var(--mono); padding: 12px;
+ transition: border-color 0.15s ease;
+ }
+ textarea:hover { border-color: #323748; }
+ textarea:focus { outline: none; border-color: var(--accent); }
+
+ .sign-btn {
+ margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
+ background: var(--accent); color: #14100a; border: none; border-radius: 10px;
+ font-size: 14px; font-weight: 650; padding: 11px 22px; cursor: pointer;
+ transition: all 0.15s ease;
+ }
+ .sign-btn:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
+ .sign-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
+ .sign-btn:active:not(:disabled) { transform: translateY(0); }
+ .sign-btn:disabled { opacity: 0.55; cursor: wait; }
+ .spinner {
+ width: 14px; height: 14px; border-radius: 50%;
+ border: 2px solid rgba(20,16,10,0.3); border-top-color: #14100a;
+ animation: spin 0.7s linear infinite;
+ }
+ @keyframes spin { to { transform: rotate(360deg); } }
+
+ .result {
+ margin-top: 18px; border-radius: 10px; padding: 16px;
+ background: var(--surface-2); border: 1px solid var(--border);
+ opacity: 0; transform: translateY(4px); transition: opacity 0.25s ease, transform 0.25s ease;
+ }
+ .result.show { opacity: 1; transform: none; }
+ .result .sig {
+ font-family: var(--mono); font-size: 12px; color: var(--text-dim);
+ overflow-wrap: anywhere; margin-top: 10px; line-height: 1.7;
+ }
+ .verify-line { display: flex; align-items: center; gap: 8px; font-weight: 600; }
+ .verify-line.ok { color: var(--green); }
+ .verify-line.bad { color: var(--red); }
+ .meta-line { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }
+
+ .skeleton { border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 25%, #20242f 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
+ @keyframes shimmer { to { background-position: -200% 0; } }
+
+ .error-box {
+ background: var(--red-soft); border: 1px solid rgba(248,113,113,0.3); border-radius: 10px;
+ padding: 14px 16px; color: var(--red); font-size: 14px;
+ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
+ }
+ .retry-btn {
+ background: none; border: 1px solid var(--red); border-radius: 8px; color: var(--red);
+ font-size: 13px; font-weight: 600; padding: 6px 14px; cursor: pointer; transition: all 0.15s ease;
+ }
+ .retry-btn:hover { background: var(--red); color: var(--bg); }
+ .retry-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
+
+ footer { text-align: center; color: var(--text-dim); font-size: 12.5px; margin-top: 10px; }
+ footer code { font-family: var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
+
+ @media (max-width: 480px) {
+ body { padding: 28px 14px 60px; }
+ h1 { font-size: 22px; }
+ .card { padding: 18px; }
+ }
+</style>
+</head>
+<body>
+<main>
+ <header>
+ <span class="eyebrow">Live demo · server wallet</span>
+ <h1>Agent Wallet — powered by MetaMask</h1>
+ <p>A three.ws agent holding a real MetaMask server wallet via the Agentic CLI.
+ Everything below is live: real session, real chain data, real signatures verified with viem.</p>
+ </header>
+
+ <section class="card" id="wallet-card" aria-busy="true">
+ <h2>Agent wallet</h2>
+ <div id="wallet-body">
+ <div class="skeleton" style="height:28px;width:40%;margin-bottom:12px"></div>
+ <div class="skeleton" style="height:44px;margin-bottom:12px"></div>
+ <div class="skeleton" style="height:72px"></div>
+ </div>
+ </section>
+
+ <section class="card">
+ <h2>Prove control — sign &amp; verify</h2>
+ <label for="message">Message the agent will sign (EIP-191 personal_sign)</label>
+ <textarea id="message" maxlength="500" spellcheck="false"></textarea>
+ <button class="sign-btn" id="sign-btn" type="button">
+ <span id="sign-label">Sign with MetaMask</span>
+ </button>
+ <div class="result" id="result" role="status" aria-live="polite"></div>
+ </section>
+
+ <footer>
+ Bridge: <code>examples/metamask-agent-wallet/server.mjs</code> →
+ MetaMask Agentic CLI (<code>mm</code>) · signature recovery via <code>viem.verifyMessage</code>
+ </footer>
+</main>
+
+<script>
+ const $ = (id) => document.getElementById(id);
+ const short = (a) => a.slice(0, 6) + '…' + a.slice(-4);
+
+ $('message').value = `I am the three.ws agent in control of this wallet.\nIssued: ${new Date().toISOString()}`;
+
+ async function api(path, opts) {
+ const res = await fetch(path, opts);
+ const data = await res.json();
+ if (!res.ok) throw new Error(data.error || `HTTP ${res.status}`);
+ return data;
+ }
+
+ async function loadWallet() {
+ const card = $('wallet-card');
+ card.setAttribute('aria-busy', 'true');
+ try {
+ const [w, price] = await Promise.all([api('/api/agent-wallet'), api('/api/price')]);
+ const funded = Number(w.totalValueUsd) > 0;
+ $('wallet-body').innerHTML = `
+ <div class="row" style="margin-bottom:12px">
+ <span class="badge ok">${w.authenticated ? 'Authenticated' : 'Session unknown'} · ${w.mode} wallet</span>
+ <span class="badge ok" style="color:var(--text-dim);background:var(--surface-2)">${w.network} · chain ${w.chainId}</span>
+ </div>
+ <div class="address">
+ <span style="flex:1">${w.address}</span>
+ <button class="copy-btn" type="button" aria-label="Copy wallet address" data-addr="${w.address}">Copy</button>
+ </div>
+ <div class="stats">
+ <div class="stat">
+ <div class="label">Portfolio value</div>
+ <div class="value">$${Number(w.totalValueUsd).toLocaleString(undefined, { minimumFractionDigits: 2 })}</div>
+ ${funded ? '' : `<div class="hint">Send funds to ${short(w.address)} to activate trading</div>`}
+ </div>
+ <div class="stat">
+ <div class="label">ETH spot (${price.network})</div>
+ <div class="value">$${price.usd.toLocaleString()}</div>
+ <div class="hint">Live via MetaMask price API</div>
+ </div>
+ </div>`;
+ $('wallet-body').querySelector('.copy-btn').addEventListener('click', async (e) => {
+ await navigator.clipboard.writeText(e.target.dataset.addr);
+ e.target.textContent = 'Copied ✓';
+ setTimeout(() => { e.target.textContent = 'Copy'; }, 1600);
+ });
+ } catch (err) {
+ $('wallet-body').innerHTML = `
+ <div class="error-box">
+ <span>Couldn't reach the agent wallet: ${err.message}. Is the bridge running and the CLI signed in (<b>mm auth status</b>)?</span>
+ <button class="retry-btn" type="button" onclick="loadWallet()">Retry</button>
+ </div>`;
+ } finally {
+ card.setAttribute('aria-busy', 'false');
+ }
+ }
+
+ async function sign() {
+ const btn = $('sign-btn');
+ const result = $('result');
+ const message = $('message').value.trim();
+ if (!message) {
+ result.className = 'result show';
+ result.innerHTML = `<div class="verify-line bad">Enter a message to sign.</div>`;
+ return;
+ }
+ btn.disabled = true;
+ $('sign-label').innerHTML = '<span class="spinner" role="presentation"></span> Signing in MetaMask…';
+ result.className = 'result';
+ try {
+ const r = await api('/api/agent-wallet/sign', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ message }),
+ });
+ result.innerHTML = `
+ <div class="verify-line ${r.verified ? 'ok' : 'bad'}">
+ ${r.verified ? '✓ Signature verified' : '✗ Verification failed'}
+ </div>
+ <div class="meta-line">Recovered signer ${short(r.address)} · ${r.standard} · status ${r.status}</div>
+ <div class="sig">${r.signature}</div>`;
+ } catch (err) {
+ result.innerHTML = `
+ <div class="verify-line bad">✗ Signing failed</div>
+ <div class="meta-line">${err.message}</div>`;
+ } finally {
+ result.className = 'result show';
+ btn.disabled = false;
+ $('sign-label').textContent = 'Sign with MetaMask';
+ }
+ }
+
+ $('sign-btn').addEventListener('click', sign);
+ $('message').addEventListener('keydown', (e) => {
+ if ((e.metaKey || e.ctrlKey) && e.key === 'Enter') sign();
+ });
+
+ loadWallet();
+ setInterval(loadWallet, 60_000);
+</script>
+</body>
+</html>
diff --git a/examples/metamask-agent-wallet/server.mjs b/examples/metamask-agent-wallet/server.mjs
new file mode 100644
index 000000000..56fdf3843
--- /dev/null
+++ b/examples/metamask-agent-wallet/server.mjs
@@ -0,0 +1,131 @@
+// Local demo bridge: exposes the authenticated MetaMask Agentic CLI (`mm`)
+// server wallet to the demo page over HTTP. Runs on localhost only — the CLI
+// session lives on this machine, so this server must never be exposed publicly.
+//
+// Usage: node examples/metamask-agent-wallet/server.mjs
+// Then open http://localhost:4280
+
+import { createServer } from 'node:http';
+import { execFile } from 'node:child_process';
+import { readFile } from 'node:fs/promises';
+import { fileURLToPath } from 'node:url';
+import { dirname, join } from 'node:path';
+import { verifyMessage } from 'viem';
+
+const PORT = Number(process.env.PORT || 4280);
+const HOST = '127.0.0.1';
+const ROOT = dirname(fileURLToPath(import.meta.url));
+const CHAIN_ID = 8453; // Base
+const MAX_MESSAGE_LENGTH = 500;
+
+function mm(args) {
+ return new Promise((resolve, reject) => {
+ execFile('mm', [...args, '--json'], { timeout: 60_000 }, (err, stdout, stderr) => {
+ if (err) return reject(new Error(stderr.trim() || err.message));
+ try {
+ const parsed = JSON.parse(stdout);
+ if (!parsed.ok) return reject(new Error(JSON.stringify(parsed)));
+ resolve(parsed.data);
+ } catch {
+ reject(new Error(`Unparseable mm output: ${stdout.slice(0, 200)}`));
+ }
+ });
+ });
+}
+
+async function getWallet() {
+ const [auth, address, balance] = await Promise.all([
+ mm(['auth', 'status']),
+ mm(['wallet', 'address']),
+ mm(['wallet', 'balance']),
+ ]);
+ return {
+ authenticated: auth.authenticated,
+ mode: address.mode,
+ chainNamespace: address.chainNamespace,
+ address: address.address,
+ chainId: CHAIN_ID,
+ network: 'Base',
+ totalValueUsd: balance.totalValue,
+ chains: balance.chains,
+ };
+}
+
+async function signAndVerify(message) {
+ const signed = await mm([
+ 'wallet', 'sign-message',
+ '--message', message,
+ '--chain-id', String(CHAIN_ID),
+ '--wait',
+ ]);
+ const valid = await verifyMessage({
+ address: signed.address,
+ message,
+ signature: signed.signature,
+ });
+ return {
+ address: signed.address,
+ status: signed.status,
+ signature: signed.signature,
+ standard: 'EIP-191 (personal_sign)',
+ verified: valid,
+ };
+}
+
+async function getEthPrice() {
+ const data = await mm(['price', 'spot', '--asset-ids', `eip155:${CHAIN_ID}/slip44:60`, '--vs', 'usd']);
+ return { symbol: 'ETH', network: 'Base', usd: data.prices[0]?.price ?? null };
+}
+
+function readBody(req) {
+ return new Promise((resolve, reject) => {
+ let body = '';
+ req.on('data', (chunk) => {
+ body += chunk;
+ if (body.length > 10_000) {
+ reject(new Error('Body too large'));
+ req.destroy();
+ }
+ });
+ req.on('end', () => resolve(body));
+ req.on('error', reject);
+ });
+}
+
+function sendJson(res, status, payload) {
+ res.writeHead(status, { 'Content-Type': 'application/json' });
+ res.end(JSON.stringify(payload));
+}
+
+const server = createServer(async (req, res) => {
+ const url = new URL(req.url, `http://${req.headers.host}`);
+ try {
+ if (req.method === 'GET' && (url.pathname === '/' || url.pathname === '/index.html')) {
+ const html = await readFile(join(ROOT, 'index.html'));
+ res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' });
+ return res.end(html);
+ }
+ if (req.method === 'GET' && url.pathname === '/api/agent-wallet') {
+ return sendJson(res, 200, await getWallet());
+ }
+ if (req.method === 'GET' && url.pathname === '/api/price') {
+ return sendJson(res, 200, await getEthPrice());
+ }
+ if (req.method === 'POST' && url.pathname === '/api/agent-wallet/sign') {
+ const body = JSON.parse((await readBody(req)) || '{}');
+ const message = typeof body.message === 'string' ? body.message.trim() : '';
+ if (!message) return sendJson(res, 400, { error: 'message is required' });
+ if (message.length > MAX_MESSAGE_LENGTH) {
+ return sendJson(res, 400, { error: `message must be ≤ ${MAX_MESSAGE_LENGTH} characters` });
+ }
+ return sendJson(res, 200, await signAndVerify(message));
+ }
+ sendJson(res, 404, { error: 'Not found' });
+ } catch (err) {
+ sendJson(res, 502, { error: err.message });
+ }
+});
+
+server.listen(PORT, HOST, () => {
+ console.log(`MetaMask agent wallet demo → http://localhost:${PORT}`);
+});
diff --git a/package-lock.json b/package-lock.json
index 899568af6..127f25797 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -92,6 +92,7 @@
"@upstash/redis": "^1.38.0",
"@vercel/og": "^0.11.1",
"@walletconnect/ethereum-provider": "^2.23.9",
+ "@web3auth/node-sdk": "^5.0.0",
"@x402/axios": "^2.14.0",
"@x402/core": "^2.14.0",
"@x402/evm": "^2.14.0",
@@ -122,6 +123,7 @@
"graphql": "^16.14.1",
"helius-sdk": "^3.0.0",
"jose": "^5.9.6",
+ "jsonwebtoken": "^9.0.3",
"lightweight-charts": "^5.2.0",
"livekit-client": "^2.19.2",
"livepeer": "^3.5.0",
@@ -4627,6 +4629,12 @@
"case": "^1.6.3"
}
},
+ "node_modules/@chaitanyapotti/register-service-worker": {
+ "version": "1.7.4",
+ "resolved": "https://registry.npmjs.org/@chaitanyapotti/register-service-worker/-/register-service-worker-1.7.4.tgz",
+ "integrity": "sha512-+u78X4ljCleLy1okQMtYLTXGLHdFQcwai822xu3oHRTviKEIVkQTMNhCmbYTCiP24thY6AbH9g+c6p2LNU0pnA==",
+ "license": "MIT"
+ },
"node_modules/@chenglou/pretext": {
"version": "0.0.7",
"resolved": "https://registry.npmjs.org/@chenglou/pretext/-/pretext-0.0.7.tgz",
@@ -6294,6 +6302,20 @@
"node": ">=6"
}
},
+ "node_modules/@ecies/ciphers": {
+ "version": "0.2.6",
+ "resolved": "https://registry.npmjs.org/@ecies/ciphers/-/ciphers-0.2.6.tgz",
+ "integrity": "sha512-patgsRPKGkhhoBjETV4XxD0En4ui5fbX0hzayqI3M8tvNMGUoUvmyYAIWwlxBc1KX5cturfqByYdj5bYGRpN9g==",
+ "license": "MIT",
+ "engines": {
+ "bun": ">=1",
+ "deno": ">=2.7.10",
+ "node": ">=16"
+ },
+ "peerDependencies": {
+ "@noble/ciphers": "^1.0.0"
+ }
+ },
"node_modules/@elevenlabs/elevenlabs-js": {
"version": "2.52.0",
"resolved": "https://registry.npmjs.org/@elevenlabs/elevenlabs-js/-/elevenlabs-js-2.52.0.tgz",
@@ -11624,6 +11646,27 @@
"@bufbuild/protobuf": "^1.10.0"
}
},
+ "node_modules/@lukeed/csprng": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@lukeed/csprng/-/csprng-1.1.0.tgz",
+ "integrity": "sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@lukeed/uuid": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/@lukeed/uuid/-/uuid-2.0.1.tgz",
+ "integrity": "sha512-qC72D4+CDdjGqJvkFMMEAtancHUQ7/d/tAiHf64z8MopFDmcrtbcJuerDtFceuAfQJ2pDSfCKCtbqoGBNnwg0w==",
+ "license": "MIT",
+ "dependencies": {
+ "@lukeed/csprng": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/@m3-org/characterstudio": {
"resolved": "character-studio",
"link": true
@@ -11634,6 +11677,15 @@
"integrity": "sha512-HOvadwVRE6JC+45nyYhmnywnr5h/J8KZvOeUNVOG9q/0875pZgItznFB9bRTvLc264YSJqiZ1NsIpCStJw/egg==",
"license": "Apache-2.0"
},
+ "node_modules/@metamask/7715-permission-types": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/@metamask/7715-permission-types/-/7715-permission-types-0.4.0.tgz",
+ "integrity": "sha512-zRGASXeJ1LEbThi7fMXcP1xsoq/iXg/h9NL+lg1IhJUxOgO7An8TQs+Qvg8f+nGaYZnGlcWmhyEi8+razmRTgA==",
+ "license": "(MIT-0 OR Apache-2.0)",
+ "engines": {
+ "node": "^18.18 || >=20"
+ }
+ },
"node_modules/@metamask/abi-utils": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/@metamask/abi-utils/-/abi-utils-2.0.4.tgz",
@@ -11647,6 +11699,111 @@
"node": ">=16.0.0"
}
},
+ "node_modules/@metamask/delegation-abis": {
+ "version": "0.11.0",
+ "resolved": "https://registry.npmjs.org/@metamask/delegation-abis/-/delegation-abis-0.11.0.tgz",
+ "integrity": "sha512-tnNGFDLQ5jfgPhHJaT5JwvF759nja1iGAG00REbk1Ufir+TxjxTmF8L9MbJifZmUh4fnyqV4Ik6NAOYVNBPVBg==",
+ "license": "(MIT-0 OR Apache-2.0)",
+ "engines": {
+ "node": "^18.18 || >=20"
+ }
+ },
+ "node_modules/@metamask/delegation-core": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/@metamask/delegation-core/-/delegation-core-0.3.0.tgz",
+ "integrity": "sha512-a0vMu0pIOKD8AydSdSI991SY6BN0XzGhyXoaKbNg55NchyTyNMBuoAXZ92GS8+/jGtyIouQBglh6CUxhZZHmVw==",
+ "license": "(MIT-0 OR Apache-2.0)",
+ "dependencies": {
+ "@metamask/abi-utils": "^3.0.0",
+ "@metamask/utils": "^11.4.0",
+ "@noble/hashes": "^1.8.0"
+ },
+ "engines": {
+ "node": "^18.18 || >=20"
+ }
+ },
+ "node_modules/@metamask/delegation-core/node_modules/@metamask/abi-utils": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@metamask/abi-utils/-/abi-utils-3.0.0.tgz",
+ "integrity": "sha512-a/l0DiSIr7+CBYVpHygUa3ztSlYLFCQMsklLna+t6qmNY9+eIO5TedNxhyIyvaJ+4cN7TLy0NQFbp9FV3X2ktg==",
+ "license": "(Apache-2.0 AND MIT)",
+ "dependencies": {
+ "@metamask/superstruct": "^3.1.0",
+ "@metamask/utils": "^11.0.1"
+ },
+ "engines": {
+ "node": "^18.18 || ^20.14 || >=22"
+ }
+ },
+ "node_modules/@metamask/delegation-core/node_modules/@metamask/utils": {
+ "version": "11.11.0",
+ "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-11.11.0.tgz",
+ "integrity": "sha512-0nF2CWjWQr/m0Y2t2lJnBTU1/CZPPTvKvcESLplyWe/tyeb8zFOi/FeneDmaFnML6LYRIGZU6f+xR0jKAIUZfw==",
+ "license": "ISC",
+ "dependencies": {
+ "@ethereumjs/tx": "^4.2.0",
+ "@metamask/superstruct": "^3.1.0",
+ "@noble/hashes": "^1.3.1",
+ "@scure/base": "^1.1.3",
+ "@types/debug": "^4.1.7",
+ "@types/lodash": "^4.17.20",
+ "debug": "^4.3.4",
+ "lodash": "^4.17.21",
+ "pony-cause": "^2.1.10",
+ "semver": "^7.5.4",
+ "uuid": "^9.0.1"
+ },
+ "engines": {
+ "node": "^18.18 || ^20.14 || >=22"
+ }
+ },
+ "node_modules/@metamask/delegation-core/node_modules/@noble/hashes": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@metamask/delegation-core/node_modules/semver": {
+ "version": "7.8.4",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.4.tgz",
+ "integrity": "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@metamask/delegation-core/node_modules/uuid": {
+ "version": "9.0.1",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
+ "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
+ "funding": [
+ "https://github.com/sponsors/broofa",
+ "https://github.com/sponsors/ctavan"
+ ],
+ "license": "MIT",
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/@metamask/delegation-deployments": {
+ "version": "0.15.0",
+ "resolved": "https://registry.npmjs.org/@metamask/delegation-deployments/-/delegation-deployments-0.15.0.tgz",
+ "integrity": "sha512-5nlEPy7OGfNTcwSQ2kP7S2IOg2kFj9B8zcEOP3UeJxsFGX4U4IjNKxGVLtNTFHEa8RWmiFkl0Ifz9kDq/63fRw==",
+ "license": "(MIT-0 OR Apache-2.0)",
+ "engines": {
+ "node": "^18.18 || >=20"
+ }
+ },
"node_modules/@metamask/detect-provider": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@metamask/detect-provider/-/detect-provider-1.2.0.tgz",
@@ -11672,6 +11829,458 @@
"node": ">=12.0.0"
}
},
+ "node_modules/@metamask/json-rpc-engine": {
+ "version": "8.0.2",
+ "resolved": "https://registry.npmjs.org/@metamask/json-rpc-engine/-/json-rpc-engine-8.0.2.tgz",
+ "integrity": "sha512-IoQPmql8q7ABLruW7i4EYVHWUbF74yrp63bRuXV5Zf9BQwcn5H9Ww1eLtROYvI1bUXwOiHZ6qT5CWTrDc/t/AA==",
+ "license": "ISC",
+ "dependencies": {
+ "@metamask/rpc-errors": "^6.2.1",
+ "@metamask/safe-event-emitter": "^3.0.0",
+ "@metamask/utils": "^8.3.0"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@metamask/json-rpc-engine/node_modules/@metamask/utils": {
+ "version": "8.5.0",
+ "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-8.5.0.tgz",
+ "integrity": "sha512-I6bkduevXb72TIM9q2LRO63JSsF9EXduh3sBr9oybNX2hNNpr/j1tEjXrsG0Uabm4MJ1xkGAQEMwifvKZIkyxQ==",
+ "license": "ISC",
+ "dependencies": {
+ "@ethereumjs/tx": "^4.2.0",
+ "@metamask/superstruct": "^3.0.0",
+ "@noble/hashes": "^1.3.1",
+ "@scure/base": "^1.1.3",
+ "@types/debug": "^4.1.7",
+ "debug": "^4.3.4",
+ "pony-cause": "^2.1.10",
+ "semver": "^7.5.4",
+ "uuid": "^9.0.1"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@metamask/json-rpc-engine/node_modules/semver": {
+ "version": "7.8.4",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.4.tgz",
+ "integrity": "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@metamask/json-rpc-engine/node_modules/uuid": {
+ "version": "9.0.1",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
+ "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
+ "funding": [
+ "https://github.com/sponsors/broofa",
+ "https://github.com/sponsors/ctavan"
+ ],
+ "license": "MIT",
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/@metamask/json-rpc-middleware-stream": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@metamask/json-rpc-middleware-stream/-/json-rpc-middleware-stream-7.0.2.tgz",
+ "integrity": "sha512-yUdzsJK04Ev98Ck4D7lmRNQ8FPioXYhEUZOMS01LXW8qTvPGiRVXmVltj2p4wrLkh0vW7u6nv0mNl5xzC5Qmfg==",
+ "license": "ISC",
+ "dependencies": {
+ "@metamask/json-rpc-engine": "^8.0.2",
+ "@metamask/safe-event-emitter": "^3.0.0",
+ "@metamask/utils": "^8.3.0",
+ "readable-stream": "^3.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@metamask/json-rpc-middleware-stream/node_modules/@metamask/utils": {
+ "version": "8.5.0",
+ "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-8.5.0.tgz",
+ "integrity": "sha512-I6bkduevXb72TIM9q2LRO63JSsF9EXduh3sBr9oybNX2hNNpr/j1tEjXrsG0Uabm4MJ1xkGAQEMwifvKZIkyxQ==",
+ "license": "ISC",
+ "dependencies": {
+ "@ethereumjs/tx": "^4.2.0",
+ "@metamask/superstruct": "^3.0.0",
+ "@noble/hashes": "^1.3.1",
+ "@scure/base": "^1.1.3",
+ "@types/debug": "^4.1.7",
+ "debug": "^4.3.4",
+ "pony-cause": "^2.1.10",
+ "semver": "^7.5.4",
+ "uuid": "^9.0.1"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@metamask/json-rpc-middleware-stream/node_modules/semver": {
+ "version": "7.8.4",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.4.tgz",
+ "integrity": "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@metamask/json-rpc-middleware-stream/node_modules/uuid": {
+ "version": "9.0.1",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
+ "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
+ "funding": [
+ "https://github.com/sponsors/broofa",
+ "https://github.com/sponsors/ctavan"
+ ],
+ "license": "MIT",
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/@metamask/object-multiplex": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@metamask/object-multiplex/-/object-multiplex-2.1.0.tgz",
+ "integrity": "sha512-4vKIiv0DQxljcXwfpnbsXcfa5glMj5Zg9mqn4xpIWqkv6uJ2ma5/GtUfLFSxhlxnR8asRMv8dDmWya1Tc1sDFA==",
+ "license": "ISC",
+ "dependencies": {
+ "once": "^1.4.0",
+ "readable-stream": "^3.6.2"
+ },
+ "engines": {
+ "node": "^16.20 || ^18.16 || >=20"
+ }
+ },
+ "node_modules/@metamask/onboarding": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@metamask/onboarding/-/onboarding-1.0.1.tgz",
+ "integrity": "sha512-FqHhAsCI+Vacx2qa5mAFcWNSrTcVGMNjzxVgaX8ECSny/BJ9/vgXP9V7WF/8vb9DltPeQkxr+Fnfmm6GHfmdTQ==",
+ "license": "MIT",
+ "dependencies": {
+ "bowser": "^2.9.0"
+ }
+ },
+ "node_modules/@metamask/providers": {
+ "version": "16.1.0",
+ "resolved": "https://registry.npmjs.org/@metamask/providers/-/providers-16.1.0.tgz",
+ "integrity": "sha512-znVCvux30+3SaUwcUGaSf+pUckzT5ukPRpcBmy+muBLC0yaWnBcvDqGfcsw6CBIenUdFrVoAFa8B6jsuCY/a+g==",
+ "license": "MIT",
+ "dependencies": {
+ "@metamask/json-rpc-engine": "^8.0.1",
+ "@metamask/json-rpc-middleware-stream": "^7.0.1",
+ "@metamask/object-multiplex": "^2.0.0",
+ "@metamask/rpc-errors": "^6.2.1",
+ "@metamask/safe-event-emitter": "^3.1.1",
+ "@metamask/utils": "^8.3.0",
+ "detect-browser": "^5.2.0",
+ "extension-port-stream": "^3.0.0",
+ "fast-deep-equal": "^3.1.3",
+ "is-stream": "^2.0.0",
+ "readable-stream": "^3.6.2",
+ "webextension-polyfill": "^0.10.0"
+ },
+ "engines": {
+ "node": "^18.18 || >=20"
+ }
+ },
+ "node_modules/@metamask/providers/node_modules/@metamask/utils": {
+ "version": "8.5.0",
+ "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-8.5.0.tgz",
+ "integrity": "sha512-I6bkduevXb72TIM9q2LRO63JSsF9EXduh3sBr9oybNX2hNNpr/j1tEjXrsG0Uabm4MJ1xkGAQEMwifvKZIkyxQ==",
+ "license": "ISC",
+ "dependencies": {
+ "@ethereumjs/tx": "^4.2.0",
+ "@metamask/superstruct": "^3.0.0",
+ "@noble/hashes": "^1.3.1",
+ "@scure/base": "^1.1.3",
+ "@types/debug": "^4.1.7",
+ "debug": "^4.3.4",
+ "pony-cause": "^2.1.10",
+ "semver": "^7.5.4",
+ "uuid": "^9.0.1"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@metamask/providers/node_modules/semver": {
+ "version": "7.8.4",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.4.tgz",
+ "integrity": "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@metamask/providers/node_modules/uuid": {
+ "version": "9.0.1",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
+ "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
+ "funding": [
+ "https://github.com/sponsors/broofa",
+ "https://github.com/sponsors/ctavan"
+ ],
+ "license": "MIT",
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/@metamask/rpc-errors": {
+ "version": "6.4.0",
+ "resolved": "https://registry.npmjs.org/@metamask/rpc-errors/-/rpc-errors-6.4.0.tgz",
+ "integrity": "sha512-1ugFO1UoirU2esS3juZanS/Fo8C8XYocCuBpfZI5N7ECtoG+zu0wF+uWZASik6CkO6w9n/Iebt4iI4pT0vptpg==",
+ "license": "MIT",
+ "dependencies": {
+ "@metamask/utils": "^9.0.0",
+ "fast-safe-stringify": "^2.0.6"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@metamask/safe-event-emitter": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@metamask/safe-event-emitter/-/safe-event-emitter-3.1.2.tgz",
+ "integrity": "sha512-5yb2gMI1BDm0JybZezeoX/3XhPDOtTbcFvpTXM9kxsoZjPZFh4XciqRbpD6N86HYZqWDhEaKUDuOyR0sQHEjMA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/@metamask/sdk": {
+ "version": "0.34.0",
+ "resolved": "https://registry.npmjs.org/@metamask/sdk/-/sdk-0.34.0.tgz",
+ "integrity": "sha512-8dkJUShZ5zFqYjNmhJaqKgDzZVne+F2rNjMQJ3pxs89n3oOUNuJ8dsTo08Grf9vlQ6Ldpdt2RTwqbrxKWyyqlw==",
+ "deprecated": "No longer maintained, superseded by https://docs.metamask.io/metamask-connect",
+ "dependencies": {
+ "@babel/runtime": "^7.26.0",
+ "@metamask/onboarding": "^1.0.1",
+ "@metamask/providers": "16.1.0",
+ "@metamask/sdk-analytics": "0.0.5",
+ "@metamask/sdk-communication-layer": "0.33.1",
+ "@metamask/sdk-install-modal-web": "0.32.1",
+ "@paulmillr/qr": "^0.2.1",
+ "bowser": "^2.9.0",
+ "cross-fetch": "^4.0.0",
+ "debug": "4.3.4",
+ "eciesjs": "^0.4.11",
+ "eth-rpc-errors": "^4.0.3",
+ "eventemitter2": "^6.4.9",
+ "obj-multiplex": "^1.0.0",
+ "pump": "^3.0.0",
+ "readable-stream": "^3.6.2",
+ "socket.io-client": "^4.5.1",
+ "tslib": "^2.6.0",
+ "util": "^0.12.4",
+ "uuid": "^8.3.2"
+ }
+ },
+ "node_modules/@metamask/sdk-analytics": {
+ "version": "0.0.5",
+ "resolved": "https://registry.npmjs.org/@metamask/sdk-analytics/-/sdk-analytics-0.0.5.tgz",
+ "integrity": "sha512-fDah+keS1RjSUlC8GmYXvx6Y26s3Ax1U9hGpWb6GSY5SAdmTSIqp2CvYy6yW0WgLhnYhW+6xERuD0eVqV63QIQ==",
+ "deprecated": "No longer maintained, superseded by @metamask/connect-analytics",
+ "license": "MIT",
+ "dependencies": {
+ "openapi-fetch": "^0.13.5"
+ }
+ },
+ "node_modules/@metamask/sdk-communication-layer": {
+ "version": "0.33.1",
+ "resolved": "https://registry.npmjs.org/@metamask/sdk-communication-layer/-/sdk-communication-layer-0.33.1.tgz",
+ "integrity": "sha512-0bI9hkysxcfbZ/lk0T2+aKVo1j0ynQVTuB3sJ5ssPWlz+Z3VwveCkP1O7EVu1tsVVCb0YV5WxK9zmURu2FIiaA==",
+ "deprecated": "No longer maintained, superseded by https://docs.metamask.io/metamask-connect",
+ "dependencies": {
+ "@metamask/sdk-analytics": "0.0.5",
+ "bufferutil": "^4.0.8",
+ "date-fns": "^2.29.3",
+ "debug": "4.3.4",
+ "utf-8-validate": "^5.0.2",
+ "uuid": "^8.3.2"
+ },
+ "peerDependencies": {
+ "cross-fetch": "^4.0.0",
+ "eciesjs": "*",
+ "eventemitter2": "^6.4.9",
+ "readable-stream": "^3.6.2",
+ "socket.io-client": "^4.5.1"
+ }
+ },
+ "node_modules/@metamask/sdk-communication-layer/node_modules/debug": {
+ "version": "4.3.4",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@metamask/sdk-communication-layer/node_modules/ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "license": "MIT"
+ },
+ "node_modules/@metamask/sdk-communication-layer/node_modules/utf-8-validate": {
+ "version": "5.0.10",
+ "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz",
+ "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "dependencies": {
+ "node-gyp-build": "^4.3.0"
+ },
+ "engines": {
+ "node": ">=6.14.2"
+ }
+ },
+ "node_modules/@metamask/sdk-communication-layer/node_modules/uuid": {
+ "version": "8.3.2",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
+ "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
+ "license": "MIT",
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/@metamask/sdk-install-modal-web": {
+ "version": "0.32.1",
+ "resolved": "https://registry.npmjs.org/@metamask/sdk-install-modal-web/-/sdk-install-modal-web-0.32.1.tgz",
+ "integrity": "sha512-MGmAo6qSjf1tuYXhCu2EZLftq+DSt5Z7fsIKr2P+lDgdTPWgLfZB1tJKzNcwKKOdf6q9Qmmxn7lJuI/gq5LrKw==",
+ "deprecated": "No longer maintained, superseded by https://docs.metamask.io/metamask-connect",
+ "dependencies": {
+ "@paulmillr/qr": "^0.2.1"
+ }
+ },
+ "node_modules/@metamask/sdk/node_modules/cross-fetch": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.1.0.tgz",
+ "integrity": "sha512-uKm5PU+MHTootlWEY+mZ4vvXoCn4fLQxT9dSc1sXVMSFkINTJVN8cAQROpwcKm8bJ/c7rgZVIBWzH5T78sNZZw==",
+ "license": "MIT",
+ "dependencies": {
+ "node-fetch": "^2.7.0"
+ }
+ },
+ "node_modules/@metamask/sdk/node_modules/debug": {
+ "version": "4.3.4",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@metamask/sdk/node_modules/ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "license": "MIT"
+ },
+ "node_modules/@metamask/sdk/node_modules/node-fetch": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
+ "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
+ "license": "MIT",
+ "dependencies": {
+ "whatwg-url": "^5.0.0"
+ },
+ "engines": {
+ "node": "4.x || >=6.0.0"
+ },
+ "peerDependencies": {
+ "encoding": "^0.1.0"
+ },
+ "peerDependenciesMeta": {
+ "encoding": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@metamask/sdk/node_modules/tr46": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
+ "license": "MIT"
+ },
+ "node_modules/@metamask/sdk/node_modules/uuid": {
+ "version": "8.3.2",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
+ "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
+ "license": "MIT",
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/@metamask/sdk/node_modules/webidl-conversions": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/@metamask/sdk/node_modules/whatwg-url": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
+ "license": "MIT",
+ "dependencies": {
+ "tr46": "~0.0.3",
+ "webidl-conversions": "^3.0.0"
+ }
+ },
+ "node_modules/@metamask/smart-accounts-kit": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/@metamask/smart-accounts-kit/-/smart-accounts-kit-0.3.0.tgz",
+ "integrity": "sha512-WwaLwSB3WO5p0WpuxVEvTJbOZ1dr2wCBeq1IoEpv9EjFwiPNXlorji77PRskjQjFgFAc9XrERt4jWX7oua6N+Q==",
+ "license": "(MIT-0 OR Apache-2.0)",
+ "dependencies": {
+ "@metamask/7715-permission-types": "^0.4.0",
+ "@metamask/delegation-abis": "^0.11.0",
+ "@metamask/delegation-core": "^0.3.0",
+ "@metamask/delegation-deployments": "^0.15.0",
+ "buffer": "^6.0.3",
+ "webauthn-p256": "^0.0.10"
+ },
+ "engines": {
+ "node": "^18.18 || >=20"
+ },
+ "peerDependencies": {
+ "viem": "^2.31.4"
+ }
+ },
"node_modules/@metamask/superstruct": {
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/@metamask/superstruct/-/superstruct-3.2.1.tgz",
@@ -14062,6 +14671,19 @@
"node": ">= 12"
}
},
+ "node_modules/@nx/nx-linux-x64-gnu": {
+ "version": "22.7.5",
+ "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-22.7.5.tgz",
+ "integrity": "sha512-tbaX1tZCSpGifDNBfDdEZAMxVF3Yg4bhFP/bm1needc0diqb+Zflc0u5tM5/6BWDMITQDwenJVsNiQ8ZdtJURA==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
"node_modules/@octokit/auth-token": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-6.0.0.tgz",
@@ -15359,6 +15981,16 @@
"license": "MIT",
"optional": true
},
+ "node_modules/@paulmillr/qr": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/@paulmillr/qr/-/qr-0.2.1.tgz",
+ "integrity": "sha512-IHnV6A+zxU7XwmKFinmYjUcwlyK9+xkG3/s9KcQhI9BjQKycrJ1JRO+FbNYPwZiPKW3je/DR0k7w8/gLa5eaxQ==",
+ "deprecated": "Switch to \"qr\" (new package name) for security updates: npm install qr",
+ "license": "(MIT OR Apache-2.0)",
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
"node_modules/@peculiar/asn1-cms": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-cms/-/asn1-cms-2.7.0.tgz",
@@ -18058,6 +18690,220 @@
"url": "https://paulmillr.com/funding/"
}
},
+ "node_modules/@segment/analytics-core": {
+ "version": "1.8.2",
+ "resolved": "https://registry.npmjs.org/@segment/analytics-core/-/analytics-core-1.8.2.tgz",
+ "integrity": "sha512-5FDy6l8chpzUfJcNlIcyqYQq4+JTUynlVoCeCUuVz+l+6W0PXg+ljKp34R4yLVCcY5VVZohuW+HH0VLWdwYVAg==",
+ "license": "MIT",
+ "dependencies": {
+ "@lukeed/uuid": "^2.0.0",
+ "@segment/analytics-generic-utils": "1.2.0",
+ "dset": "^3.1.4",
+ "tslib": "^2.4.1"
+ }
+ },
+ "node_modules/@segment/analytics-generic-utils": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@segment/analytics-generic-utils/-/analytics-generic-utils-1.2.0.tgz",
+ "integrity": "sha512-DfnW6mW3YQOLlDQQdR89k4EqfHb0g/3XvBXkovH1FstUN93eL1kfW9CsDcVQyH3bAC5ZsFyjA/o/1Q2j0QeoWw==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.4.1"
+ }
+ },
+ "node_modules/@segment/analytics-next": {
+ "version": "1.84.0",
+ "resolved": "https://registry.npmjs.org/@segment/analytics-next/-/analytics-next-1.84.0.tgz",
+ "integrity": "sha512-V5scoCrhiTpRPOuBwNVpvE4KvHwrjgQ5fs282R72KiAZ0HoxmjLgReZYjZogBf7qq/c6VmQG3nidwh8PQGcY1A==",
+ "license": "MIT",
+ "dependencies": {
+ "@lukeed/uuid": "^2.0.0",
+ "@segment/analytics-core": "1.8.3",
+ "@segment/analytics-generic-utils": "1.2.0",
+ "@segment/analytics-page-tools": "1.0.0",
+ "@segment/analytics.js-video-plugins": "^0.2.1",
+ "@segment/facade": "^3.4.9",
+ "dset": "^3.1.4",
+ "js-cookie": "3.0.1",
+ "node-fetch": "^2.6.7",
+ "tslib": "^2.4.1",
+ "unfetch": "^4.1.0"
+ }
+ },
+ "node_modules/@segment/analytics-next/node_modules/@segment/analytics-core": {
+ "version": "1.8.3",
+ "resolved": "https://registry.npmjs.org/@segment/analytics-core/-/analytics-core-1.8.3.tgz",
+ "integrity": "sha512-63X8e2DWb2ZnJ9S3H8iSOFnbeDXMkTGhA8kZG4eFAO07QBwBVyWo5BCpv6vmuOMEkv2le6t2FMg1p6ZeJQA/4A==",
+ "license": "MIT",
+ "dependencies": {
+ "@lukeed/uuid": "^2.0.0",
+ "@segment/analytics-generic-utils": "1.2.0",
+ "dset": "^3.1.4",
+ "tslib": "^2.4.1"
+ }
+ },
+ "node_modules/@segment/analytics-next/node_modules/js-cookie": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.1.tgz",
+ "integrity": "sha512-+0rgsUXZu4ncpPxRL+lNEptWMOWl9etvPHc/koSRp6MPwpRYAhmk0dUG00J4bxVV3r9uUzfo24wW0knS07SKSw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@segment/analytics-next/node_modules/node-fetch": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
+ "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
+ "license": "MIT",
+ "dependencies": {
+ "whatwg-url": "^5.0.0"
+ },
+ "engines": {
+ "node": "4.x || >=6.0.0"
+ },
+ "peerDependencies": {
+ "encoding": "^0.1.0"
+ },
+ "peerDependenciesMeta": {
+ "encoding": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@segment/analytics-next/node_modules/tr46": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
+ "license": "MIT"
+ },
+ "node_modules/@segment/analytics-next/node_modules/webidl-conversions": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/@segment/analytics-next/node_modules/whatwg-url": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
+ "license": "MIT",
+ "dependencies": {
+ "tr46": "~0.0.3",
+ "webidl-conversions": "^3.0.0"
+ }
+ },
+ "node_modules/@segment/analytics-node": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@segment/analytics-node/-/analytics-node-2.3.0.tgz",
+ "integrity": "sha512-fOXLL8uY0uAWw/sTLmezze80hj8YGgXXlAfvSS6TUmivk4D/SP0C0sxnbpFdkUzWg2zT64qWIZj26afEtSnxUA==",
+ "license": "MIT",
+ "dependencies": {
+ "@lukeed/uuid": "^2.0.0",
+ "@segment/analytics-core": "1.8.2",
+ "@segment/analytics-generic-utils": "1.2.0",
+ "buffer": "^6.0.3",
+ "jose": "^5.1.0",
+ "node-fetch": "^2.6.7",
+ "tslib": "^2.4.1"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@segment/analytics-node/node_modules/node-fetch": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
+ "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
+ "license": "MIT",
+ "dependencies": {
+ "whatwg-url": "^5.0.0"
+ },
+ "engines": {
+ "node": "4.x || >=6.0.0"
+ },
+ "peerDependencies": {
+ "encoding": "^0.1.0"
+ },
+ "peerDependenciesMeta": {
+ "encoding": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@segment/analytics-node/node_modules/tr46": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
+ "license": "MIT"
+ },
+ "node_modules/@segment/analytics-node/node_modules/webidl-conversions": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/@segment/analytics-node/node_modules/whatwg-url": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
+ "license": "MIT",
+ "dependencies": {
+ "tr46": "~0.0.3",
+ "webidl-conversions": "^3.0.0"
+ }
+ },
+ "node_modules/@segment/analytics-page-tools": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/@segment/analytics-page-tools/-/analytics-page-tools-1.0.0.tgz",
+ "integrity": "sha512-o9OVB91qLB9qb0Bw1HfjmWm5AnrMNULRjx++4lBqLt8InKRX1urrRBparVlpj+yJA0sckN5ZcsfazRLuPgBYDQ==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.4.1"
+ }
+ },
+ "node_modules/@segment/analytics.js-video-plugins": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/@segment/analytics.js-video-plugins/-/analytics.js-video-plugins-0.2.1.tgz",
+ "integrity": "sha512-lZwCyEXT4aaHBLNK433okEKdxGAuyrVmop4BpQqQSJuRz0DglPZgd9B/XjiiWs1UyOankg2aNYMN3VcS8t4eSQ==",
+ "license": "ISC",
+ "dependencies": {
+ "unfetch": "^3.1.1"
+ }
+ },
+ "node_modules/@segment/analytics.js-video-plugins/node_modules/unfetch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/unfetch/-/unfetch-3.1.2.tgz",
+ "integrity": "sha512-L0qrK7ZeAudGiKYw6nzFjnJ2D5WHblUBwmHIqtPS6oKUd+Hcpk7/hKsSmcHsTlpd1TbTNsiRBUKRq3bHLNIqIw==",
+ "license": "MIT"
+ },
+ "node_modules/@segment/facade": {
+ "version": "3.4.10",
+ "resolved": "https://registry.npmjs.org/@segment/facade/-/facade-3.4.10.tgz",
+ "integrity": "sha512-xVQBbB/lNvk/u8+ey0kC/+g8pT3l0gCT8O2y9Z+StMMn3KAFAQ9w8xfgef67tJybktOKKU7pQGRPolRM1i1pdA==",
+ "license": "SEE LICENSE IN LICENSE",
+ "dependencies": {
+ "@segment/isodate-traverse": "^1.1.1",
+ "inherits": "^2.0.4",
+ "new-date": "^1.0.3",
+ "obj-case": "0.2.1"
+ }
+ },
+ "node_modules/@segment/isodate": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/@segment/isodate/-/isodate-1.0.3.tgz",
+ "integrity": "sha512-BtanDuvJqnACFkeeYje7pWULVv8RgZaqKHWwGFnL/g/TH/CcZjkIVTfGDp/MAxmilYHUkrX70SqwnYSTNEaN7A==",
+ "license": "SEE LICENSE IN LICENSE"
+ },
+ "node_modules/@segment/isodate-traverse": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@segment/isodate-traverse/-/isodate-traverse-1.1.1.tgz",
+ "integrity": "sha512-+G6e1SgAUkcq0EDMi+SRLfT48TNlLPF3QnSgFGVs0V9F3o3fq/woQ2rHFlW20W0yy5NnCUH0QGU3Am2rZy/E3w==",
+ "license": "SEE LICENSE IN LICENSE",
+ "dependencies": {
+ "@segment/isodate": "^1.0.3"
+ }
+ },
"node_modules/@sentry-internal/server-utils": {
"version": "10.57.0",
"resolved": "https://registry.npmjs.org/@sentry-internal/server-utils/-/server-utils-10.57.0.tgz",
@@ -18440,6 +19286,12 @@
"node": ">=18.0.0"
}
},
+ "node_modules/@socket.io/component-emitter": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.2.tgz",
+ "integrity": "sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==",
+ "license": "MIT"
+ },
"node_modules/@solana-mobile/mobile-wallet-adapter-protocol": {
"version": "2.2.9",
"resolved": "https://registry.npmjs.org/@solana-mobile/mobile-wallet-adapter-protocol/-/mobile-wallet-adapter-protocol-2.2.9.tgz",
@@ -22250,6 +23102,749 @@
"integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==",
"license": "MIT"
},
+ "node_modules/@toruslabs/base-controllers": {
+ "version": "8.17.0",
+ "resolved": "https://registry.npmjs.org/@toruslabs/base-controllers/-/base-controllers-8.17.0.tgz",
+ "integrity": "sha512-AQwl7VANyIwXSCXNnSg5Is8L4W4rMd6LprYthzp5C9DimzGTIqj+rvjvh1dhaM+fbBCHrln75vveiVuW6pRRNA==",
+ "license": "ISC",
+ "dependencies": {
+ "@ethereumjs/util": "^10.1.0",
+ "@toruslabs/broadcast-channel": "^12.0.0",
+ "@toruslabs/http-helpers": "^8.1.1",
+ "@web3auth/auth": "^10.8.0",
+ "async-mutex": "^0.5.0",
+ "bignumber.js": "^9.3.1",
+ "bowser": "^2.13.1",
+ "ethereum-cryptography": "^3.2.0",
+ "events": "^3.3.0",
+ "jwt-decode": "^4.0.0",
+ "loglevel": "^1.9.2"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "7.x"
+ }
+ },
+ "node_modules/@toruslabs/base-controllers/node_modules/@ethereumjs/rlp": {
+ "version": "10.1.2",
+ "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-10.1.2.tgz",
+ "integrity": "sha512-T5Zt6C2pd02Wd88Q9A5/UX+He1Q2Y1LntHxz/038tfbUMiqby4fYSSTLEDx+TEfJqw1BsJSBY/TSu6goUzlk+w==",
+ "license": "MPL-2.0",
+ "bin": {
+ "rlp": "bin/rlp.cjs"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@toruslabs/base-controllers/node_modules/@ethereumjs/util": {
+ "version": "10.1.2",
+ "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-10.1.2.tgz",
+ "integrity": "sha512-UPBgXtHHfQugoXOSAoeG3jdmPbl37cwV9y3XqTPAnw8tJj8np14TPV2uc5lOs7C2LMF9Ubn66zyaiYxgwGppng==",
+ "license": "MPL-2.0",
+ "dependencies": {
+ "@ethereumjs/rlp": "^10.1.2",
+ "@noble/curves": "^2.0.1",
+ "@noble/hashes": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@toruslabs/base-controllers/node_modules/@noble/hashes": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.2.0.tgz",
+ "integrity": "sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 20.19.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@toruslabs/base-controllers/node_modules/ethereum-cryptography": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-3.2.0.tgz",
+ "integrity": "sha512-Urr5YVsalH+Jo0sYkTkv1MyI9bLYZwW8BENZCeE1QYaTHETEYx0Nv/SVsWkSqpYrzweg6d8KMY1wTjH/1m/BIg==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/ciphers": "1.3.0",
+ "@noble/curves": "1.9.0",
+ "@noble/hashes": "1.8.0",
+ "@scure/bip32": "1.7.0",
+ "@scure/bip39": "1.6.0"
+ },
+ "engines": {
+ "node": "^14.21.3 || >=16",
+ "npm": ">=9"
+ }
+ },
+ "node_modules/@toruslabs/base-controllers/node_modules/ethereum-cryptography/node_modules/@noble/curves": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.0.tgz",
+ "integrity": "sha512-7YDlXiNMdO1YZeH6t/kvopHHbIZzlxrCV9WLqCY6QhcXOoXiNCMDqJIglZ9Yjx5+w7Dz30TITFrlTjnRg7sKEg==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/hashes": "1.8.0"
+ },
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@toruslabs/base-controllers/node_modules/ethereum-cryptography/node_modules/@noble/hashes": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@toruslabs/broadcast-channel": {
+ "version": "12.0.0",
+ "resolved": "https://registry.npmjs.org/@toruslabs/broadcast-channel/-/broadcast-channel-12.0.0.tgz",
+ "integrity": "sha512-ZdkZWEbxLaoRFPXYrlAnuaXDejsYS7Nl0mL+trBkRcN/agsNoOeS/t7LExGP74Opdcj06bYJeB5KmhN6938kKw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.26.9",
+ "@toruslabs/constants": "^14.2.0",
+ "@toruslabs/eccrypto": "^6.0.2",
+ "@toruslabs/metadata-helpers": "^7.0.1",
+ "base64url": "^3.0.1",
+ "loglevel": "^1.9.2",
+ "oblivious-set": "1.4.0",
+ "socket.io-client": "^4.8.1",
+ "unload": "^2.4.1"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ }
+ },
+ "node_modules/@toruslabs/broadcast-channel/node_modules/@toruslabs/constants": {
+ "version": "14.2.0",
+ "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-14.2.0.tgz",
+ "integrity": "sha512-Mb5EfYNSPyvvw5s1JXnpZwritCgp4NmLni1imTqrSKGV3yikYhUn1ufyLMAHGnBBgv4AuMIXBIe3EpJJ+SpA0g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "7.x"
+ }
+ },
+ "node_modules/@toruslabs/bs58": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/@toruslabs/bs58/-/bs58-1.0.0.tgz",
+ "integrity": "sha512-osqIgm1MzEB6+fkaQeEUg4tuZXmhhXTn+K7+nZU7xDBcy+8Yr3eGNqJcQ4jds82g+dhkk2cBkge9sffv38iDQQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "7.x"
+ }
+ },
+ "node_modules/@toruslabs/constants": {
+ "version": "15.0.0",
+ "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-15.0.0.tgz",
+ "integrity": "sha512-0nr6vU3FQT2eRsnPYRwfVIkjwawLTkDTkCusiny9DgAw1M2zbmNqPOAqWuljUcDaK/u4VB0/PrN5SzhVBLnNGg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "7.x"
+ }
+ },
+ "node_modules/@toruslabs/customauth": {
+ "version": "21.3.2",
+ "resolved": "https://registry.npmjs.org/@toruslabs/customauth/-/customauth-21.3.2.tgz",
+ "integrity": "sha512-OEwb7hFZK4+TVsCuIh0lQZdSKmpO5cazeM2JbBwK3t1RmAqB9naM+SsactRoESP+MMz1IvFh3AMt6/+v8mj6aw==",
+ "license": "MIT",
+ "dependencies": {
+ "@chaitanyapotti/register-service-worker": "^1.7.4",
+ "@toruslabs/broadcast-channel": "^12.0.0",
+ "@toruslabs/constants": "^15.0.0",
+ "@toruslabs/eccrypto": "^6.2.0",
+ "@toruslabs/fetch-node-details": "^15.0.0",
+ "@toruslabs/http-helpers": "^8.1.1",
+ "@toruslabs/metadata-helpers": "^7.0.2",
+ "@toruslabs/session-manager": "^4.0.2",
+ "@toruslabs/torus.js": "^16.0.0",
+ "base64url": "^3.0.1",
+ "bowser": "^2.12.1",
+ "deepmerge": "^4.3.1",
+ "events": "^3.3.0",
+ "loglevel": "^1.9.2"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "^7.x",
+ "@sentry/core": "^9.x"
+ },
+ "peerDependenciesMeta": {
+ "@sentry/core": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@toruslabs/eccrypto": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/@toruslabs/eccrypto/-/eccrypto-6.2.0.tgz",
+ "integrity": "sha512-GbVAXDC5AIecb01gEafiiZzVfRNGiNk85R7ZUDMpUjoYGOy6/FdHdM4x2ySqBj7B6xiXWf+rMfr99J7+TLjyxg==",
+ "license": "CC0-1.0",
+ "dependencies": {
+ "elliptic": "^6.6.1"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ }
+ },
+ "node_modules/@toruslabs/ethereum-controllers": {
+ "version": "8.17.1",
+ "resolved": "https://registry.npmjs.org/@toruslabs/ethereum-controllers/-/ethereum-controllers-8.17.1.tgz",
+ "integrity": "sha512-3cqGQd2dlmaiwQdetnKhDzshARTtvDgkrtU8TUOX1FHJpdsHvABC6qLPII2Jl8o7fNUnVIkfFwrrI/qBwgiMCg==",
+ "license": "ISC",
+ "dependencies": {
+ "@ethereumjs/common": "^10.1.0",
+ "@ethereumjs/rlp": "^10.1.0",
+ "@ethereumjs/tx": "^10.1.0",
+ "@ethereumjs/util": "^10.1.0",
+ "@metamask/smart-accounts-kit": "~0.3.0",
+ "@toruslabs/base-controllers": "^8.17.0",
+ "@toruslabs/http-helpers": "^8.1.1",
+ "@web3auth/auth": "^10.8.0",
+ "async-mutex": "^0.5.0",
+ "bignumber.js": "^9.3.1",
+ "bn.js": "^5.2.2",
+ "deepmerge": "^4.3.1",
+ "ethereum-cryptography": "^3.2.0",
+ "ethers": "^6.16.0",
+ "fast-json-patch": "^3.1.1",
+ "fast-safe-stringify": "^2.1.1",
+ "jsonschema": "^1.5.0",
+ "loglevel": "^1.9.2",
+ "permissionless": "^0.3.4",
+ "uuid": "^8.3.2"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "7.x",
+ "viem": ">=2.45.0"
+ }
+ },
+ "node_modules/@toruslabs/ethereum-controllers/node_modules/@ethereumjs/common": {
+ "version": "10.1.2",
+ "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-10.1.2.tgz",
+ "integrity": "sha512-whWnhqAxwpDy4zWkM6rqMzb8nioZJpiys01N57+HDyanvK5IRzodV5tdMRDt66PD5vDjl2c9K5UcB039gU2Oyw==",
+ "license": "MIT",
+ "dependencies": {
+ "@ethereumjs/util": "^10.1.2",
+ "eventemitter3": "^5.0.1"
+ }
+ },
+ "node_modules/@toruslabs/ethereum-controllers/node_modules/@ethereumjs/rlp": {
+ "version": "10.1.2",
+ "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-10.1.2.tgz",
+ "integrity": "sha512-T5Zt6C2pd02Wd88Q9A5/UX+He1Q2Y1LntHxz/038tfbUMiqby4fYSSTLEDx+TEfJqw1BsJSBY/TSu6goUzlk+w==",
+ "license": "MPL-2.0",
+ "bin": {
+ "rlp": "bin/rlp.cjs"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@toruslabs/ethereum-controllers/node_modules/@ethereumjs/tx": {
+ "version": "10.1.2",
+ "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-10.1.2.tgz",
+ "integrity": "sha512-bAYK3YaYkk+auzxGfZSRVDbLHvboJNTx8/tV6jaqgPVlrA1QKEEADDEp/EGz+KI4NQmTGxEtXZ8tV/WjniRNww==",
+ "license": "MPL-2.0",
+ "dependencies": {
+ "@ethereumjs/common": "^10.1.2",
+ "@ethereumjs/rlp": "^10.1.2",
+ "@ethereumjs/util": "^10.1.2",
+ "@noble/curves": "^2.0.1",
+ "@noble/hashes": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@toruslabs/ethereum-controllers/node_modules/@ethereumjs/util": {
+ "version": "10.1.2",
+ "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-10.1.2.tgz",
+ "integrity": "sha512-UPBgXtHHfQugoXOSAoeG3jdmPbl37cwV9y3XqTPAnw8tJj8np14TPV2uc5lOs7C2LMF9Ubn66zyaiYxgwGppng==",
+ "license": "MPL-2.0",
+ "dependencies": {
+ "@ethereumjs/rlp": "^10.1.2",
+ "@noble/curves": "^2.0.1",
+ "@noble/hashes": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@toruslabs/ethereum-controllers/node_modules/@noble/hashes": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.2.0.tgz",
+ "integrity": "sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 20.19.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@toruslabs/ethereum-controllers/node_modules/ethereum-cryptography": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-3.2.0.tgz",
+ "integrity": "sha512-Urr5YVsalH+Jo0sYkTkv1MyI9bLYZwW8BENZCeE1QYaTHETEYx0Nv/SVsWkSqpYrzweg6d8KMY1wTjH/1m/BIg==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/ciphers": "1.3.0",
+ "@noble/curves": "1.9.0",
+ "@noble/hashes": "1.8.0",
+ "@scure/bip32": "1.7.0",
+ "@scure/bip39": "1.6.0"
+ },
+ "engines": {
+ "node": "^14.21.3 || >=16",
+ "npm": ">=9"
+ }
+ },
+ "node_modules/@toruslabs/ethereum-controllers/node_modules/ethereum-cryptography/node_modules/@noble/curves": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.0.tgz",
+ "integrity": "sha512-7YDlXiNMdO1YZeH6t/kvopHHbIZzlxrCV9WLqCY6QhcXOoXiNCMDqJIglZ9Yjx5+w7Dz30TITFrlTjnRg7sKEg==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/hashes": "1.8.0"
+ },
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@toruslabs/ethereum-controllers/node_modules/ethereum-cryptography/node_modules/@noble/hashes": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@toruslabs/ethereum-controllers/node_modules/uuid": {
+ "version": "8.3.2",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
+ "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
+ "license": "MIT",
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/@toruslabs/fetch-node-details": {
+ "version": "15.0.0",
+ "resolved": "https://registry.npmjs.org/@toruslabs/fetch-node-details/-/fetch-node-details-15.0.0.tgz",
+ "integrity": "sha512-uYTV+mv5U6egTQj94zSyy9NqlfUYdwen6GeyDdCA7g0TN+YnRV4WgkcjloN0llscrND7mzuJNSIVDHCE+kSpcQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@toruslabs/constants": "^15.0.0",
+ "@toruslabs/fnd-base": "^15.0.0",
+ "@toruslabs/http-helpers": "^8.1.1",
+ "loglevel": "^1.9.2"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "7.x"
+ }
+ },
+ "node_modules/@toruslabs/ffjavascript": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/@toruslabs/ffjavascript/-/ffjavascript-5.0.0.tgz",
+ "integrity": "sha512-smC85L5SREn31pA+XayZ86Cxd+2VeRzKKZ5ytLrMDYb5ZrXpUAd9Hr2HlaJbQiGPQgyR6KxOU9W5qyHSLFJmHg==",
+ "license": "GPL-3.0",
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ }
+ },
+ "node_modules/@toruslabs/fnd-base": {
+ "version": "15.0.0",
+ "resolved": "https://registry.npmjs.org/@toruslabs/fnd-base/-/fnd-base-15.0.0.tgz",
+ "integrity": "sha512-KygYyPBHADmXKmzClbGcKc0oOI/Ay5FP/fUsFvXXRv4ey+VfIKiHHSAo6IojozvVUSrs0kDwocSpeE3sp/hBPA==",
+ "license": "MIT",
+ "dependencies": {
+ "@toruslabs/constants": "^15.0.0"
+ },
+ "engines": {
+ "node": ">=18.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "7.x"
+ }
+ },
+ "node_modules/@toruslabs/http-helpers": {
+ "version": "8.1.1",
+ "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-8.1.1.tgz",
+ "integrity": "sha512-bcymgOEAHjWJtqWvbCw+jCLk8vch5V53E/17moM0kAQO+tY0omhsMpZYDtFcbF3xl8/fLyW7G0HGUfThPykQ7A==",
+ "license": "MIT",
+ "dependencies": {
+ "deepmerge": "^4.3.1",
+ "loglevel": "^1.9.2"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "^7.x",
+ "@sentry/core": "^9.x"
+ },
+ "peerDependenciesMeta": {
+ "@sentry/core": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@toruslabs/loglevel-sentry": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/@toruslabs/loglevel-sentry/-/loglevel-sentry-8.1.0.tgz",
+ "integrity": "sha512-cE8Q7R9HybrqrTU7bz5rh1j9QiBGjd/mVxekIKjK8AJYzGMFuVtDumsX9fBXg5nKoNcejS1jbOACjEx8BM+uLQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@sentry/core": "^9.11.0",
+ "loglevel": "^1.9.2"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "^7.x"
+ }
+ },
+ "node_modules/@toruslabs/loglevel-sentry/node_modules/@sentry/core": {
+ "version": "9.47.1",
+ "resolved": "https://registry.npmjs.org/@sentry/core/-/core-9.47.1.tgz",
+ "integrity": "sha512-KX62+qIt4xgy8eHKHiikfhz2p5fOciXd0Cl+dNzhgPFq8klq4MGMNaf148GB3M/vBqP4nw/eFvRMAayFCgdRQw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@toruslabs/metadata-helpers": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@toruslabs/metadata-helpers/-/metadata-helpers-7.0.2.tgz",
+ "integrity": "sha512-N8UeKwtTlRlGAuQJQfYwCshsu5g9Fte8Xe6ZEt/WH6blNAoKjz579BPN4FrS478JIj/kMtIkD1guT84Umpdv1w==",
+ "license": "MIT",
+ "dependencies": {
+ "@toruslabs/eccrypto": "^6.0.2",
+ "@toruslabs/http-helpers": "^8.1.0",
+ "elliptic": "^6.6.1",
+ "ethereum-cryptography": "^3.1.0",
+ "json-stable-stringify": "^1.2.1"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "7.x"
+ }
+ },
+ "node_modules/@toruslabs/metadata-helpers/node_modules/@noble/curves": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.0.tgz",
+ "integrity": "sha512-7YDlXiNMdO1YZeH6t/kvopHHbIZzlxrCV9WLqCY6QhcXOoXiNCMDqJIglZ9Yjx5+w7Dz30TITFrlTjnRg7sKEg==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/hashes": "1.8.0"
+ },
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@toruslabs/metadata-helpers/node_modules/@noble/hashes": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@toruslabs/metadata-helpers/node_modules/ethereum-cryptography": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-3.2.0.tgz",
+ "integrity": "sha512-Urr5YVsalH+Jo0sYkTkv1MyI9bLYZwW8BENZCeE1QYaTHETEYx0Nv/SVsWkSqpYrzweg6d8KMY1wTjH/1m/BIg==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/ciphers": "1.3.0",
+ "@noble/curves": "1.9.0",
+ "@noble/hashes": "1.8.0",
+ "@scure/bip32": "1.7.0",
+ "@scure/bip39": "1.6.0"
+ },
+ "engines": {
+ "node": "^14.21.3 || >=16",
+ "npm": ">=9"
+ }
+ },
+ "node_modules/@toruslabs/secure-pub-sub": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@toruslabs/secure-pub-sub/-/secure-pub-sub-3.0.2.tgz",
+ "integrity": "sha512-JxqXSMlKnT2Q8ER0dpjtciT/yYO6KV/bZFxVWF9T6t2u20PaVU+bo9MSYWPxSdz76szEt7DwRHxwjDMhzZKFeA==",
+ "license": "MIT",
+ "dependencies": {
+ "@toruslabs/constants": "^14.2.0",
+ "@toruslabs/eccrypto": "^6.0.2",
+ "@toruslabs/http-helpers": "^8.1.0",
+ "@toruslabs/metadata-helpers": "^7.0.2",
+ "loglevel": "^1.9.2",
+ "socket.io-client": "^4.8.1"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "7.x"
+ }
+ },
+ "node_modules/@toruslabs/secure-pub-sub/node_modules/@toruslabs/constants": {
+ "version": "14.2.0",
+ "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-14.2.0.tgz",
+ "integrity": "sha512-Mb5EfYNSPyvvw5s1JXnpZwritCgp4NmLni1imTqrSKGV3yikYhUn1ufyLMAHGnBBgv4AuMIXBIe3EpJJ+SpA0g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "7.x"
+ }
+ },
+ "node_modules/@toruslabs/session-manager": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/@toruslabs/session-manager/-/session-manager-4.0.2.tgz",
+ "integrity": "sha512-26GflDkna9kDF4kd7+XmFAsI69CIz/ZSmsbQH6ehylaNDYcro/xuPQB2SnzyRMi4VMkLXYDwHapm2OBURmuMbQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@toruslabs/constants": "^14.2.0",
+ "@toruslabs/eccrypto": "^6.0.2",
+ "@toruslabs/http-helpers": "^8.1.0",
+ "@toruslabs/metadata-helpers": "^7.0.2"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ },
+ "optionalDependencies": {
+ "@rollup/rollup-linux-x64-gnu": "^4.35.0"
+ }
+ },
+ "node_modules/@toruslabs/session-manager/node_modules/@toruslabs/constants": {
+ "version": "14.2.0",
+ "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-14.2.0.tgz",
+ "integrity": "sha512-Mb5EfYNSPyvvw5s1JXnpZwritCgp4NmLni1imTqrSKGV3yikYhUn1ufyLMAHGnBBgv4AuMIXBIe3EpJJ+SpA0g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "7.x"
+ }
+ },
+ "node_modules/@toruslabs/starkware-crypto": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/@toruslabs/starkware-crypto/-/starkware-crypto-5.0.0.tgz",
+ "integrity": "sha512-CZjpkeuT0hBsX5dNGEekLcjR2n6UHzh682Pt/AheJYL4+zrupqPWZTfvOlo4K3Iihyv6FzRZmrbHLdQutkz5oQ==",
+ "license": "MIT",
+ "dependencies": {
+ "assert": "^2.1.0",
+ "bip39": "^3.1.0",
+ "bn.js": "^5.2.1",
+ "elliptic": "^6.6.1",
+ "enc-utils": "^3.0.0",
+ "ethereum-cryptography": "^3.1.0",
+ "hash.js": "^1.1.7"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "7.x"
+ }
+ },
+ "node_modules/@toruslabs/starkware-crypto/node_modules/@noble/curves": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.0.tgz",
+ "integrity": "sha512-7YDlXiNMdO1YZeH6t/kvopHHbIZzlxrCV9WLqCY6QhcXOoXiNCMDqJIglZ9Yjx5+w7Dz30TITFrlTjnRg7sKEg==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/hashes": "1.8.0"
+ },
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@toruslabs/starkware-crypto/node_modules/@noble/hashes": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@toruslabs/starkware-crypto/node_modules/bip39": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/bip39/-/bip39-3.1.0.tgz",
+ "integrity": "sha512-c9kiwdk45Do5GL0vJMe7tS95VjCii65mYAH7DfWl3uW8AVzXKQVUm64i3hzVybBDMp9r7j9iNxR85+ul8MdN/A==",
+ "license": "ISC",
+ "dependencies": {
+ "@noble/hashes": "^1.2.0"
+ }
+ },
+ "node_modules/@toruslabs/starkware-crypto/node_modules/ethereum-cryptography": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-3.2.0.tgz",
+ "integrity": "sha512-Urr5YVsalH+Jo0sYkTkv1MyI9bLYZwW8BENZCeE1QYaTHETEYx0Nv/SVsWkSqpYrzweg6d8KMY1wTjH/1m/BIg==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/ciphers": "1.3.0",
+ "@noble/curves": "1.9.0",
+ "@noble/hashes": "1.8.0",
+ "@scure/bip32": "1.7.0",
+ "@scure/bip39": "1.6.0"
+ },
+ "engines": {
+ "node": "^14.21.3 || >=16",
+ "npm": ">=9"
+ }
+ },
+ "node_modules/@toruslabs/torus.js": {
+ "version": "16.0.0",
+ "resolved": "https://registry.npmjs.org/@toruslabs/torus.js/-/torus.js-16.0.0.tgz",
+ "integrity": "sha512-kTGn0jytD9YyPhunxN1LacVAHCCkZEOMe7hWShM65zvgqaXHccMsytgiZr3Ah1sIqsLVUMKhrHimnQ2eqfihtg==",
+ "license": "MIT",
+ "dependencies": {
+ "@toruslabs/bs58": "^1.0.0",
+ "@toruslabs/constants": "^15.0.0",
+ "@toruslabs/eccrypto": "^6.0.2",
+ "@toruslabs/http-helpers": "^8.1.1",
+ "bn.js": "^5.2.1",
+ "elliptic": "^6.6.1",
+ "ethereum-cryptography": "^3.1.0",
+ "json-stable-stringify": "^1.2.1",
+ "loglevel": "^1.9.2"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "7.x"
+ }
+ },
+ "node_modules/@toruslabs/torus.js/node_modules/@noble/curves": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.0.tgz",
+ "integrity": "sha512-7YDlXiNMdO1YZeH6t/kvopHHbIZzlxrCV9WLqCY6QhcXOoXiNCMDqJIglZ9Yjx5+w7Dz30TITFrlTjnRg7sKEg==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/hashes": "1.8.0"
+ },
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@toruslabs/torus.js/node_modules/@noble/hashes": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@toruslabs/torus.js/node_modules/ethereum-cryptography": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-3.2.0.tgz",
+ "integrity": "sha512-Urr5YVsalH+Jo0sYkTkv1MyI9bLYZwW8BENZCeE1QYaTHETEYx0Nv/SVsWkSqpYrzweg6d8KMY1wTjH/1m/BIg==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/ciphers": "1.3.0",
+ "@noble/curves": "1.9.0",
+ "@noble/hashes": "1.8.0",
+ "@scure/bip32": "1.7.0",
+ "@scure/bip39": "1.6.0"
+ },
+ "engines": {
+ "node": "^14.21.3 || >=16",
+ "npm": ">=9"
+ }
+ },
+ "node_modules/@toruslabs/tweetnacl-js": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/@toruslabs/tweetnacl-js/-/tweetnacl-js-1.0.4.tgz",
+ "integrity": "sha512-h8fVemW5pstsKbm/fTx+y61dZkh5Pepy/92lsyKp83KErf96jT+w4LGx4nEgeAVrdYQDTLg2tO7vu/boEb23Iw==",
+ "license": "Unlicense"
+ },
"node_modules/@trickfilm400/rollup-plugin-off-main-thread": {
"version": "3.0.0-pre1",
"resolved": "https://registry.npmjs.org/@trickfilm400/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-3.0.0-pre1.tgz",
@@ -22389,6 +23984,15 @@
"@types/node": "*"
}
},
+ "node_modules/@types/brorand": {
+ "version": "1.0.33",
+ "resolved": "https://registry.npmjs.org/@types/brorand/-/brorand-1.0.33.tgz",
+ "integrity": "sha512-KmNsWYtzKXpmxjecvYWUEGK5biJB/1kpHRObHZD8eme1tz/TvbESbZeNAHPRNd5qyCJiHk2ztbNzKbPC6TuPFg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
"node_modules/@types/chai": {
"version": "5.2.3",
"resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",
@@ -22576,6 +24180,12 @@
"@types/node": "*"
}
},
+ "node_modules/@types/lodash": {
+ "version": "4.17.24",
+ "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.24.tgz",
+ "integrity": "sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ==",
+ "license": "MIT"
+ },
"node_modules/@types/lru-cache": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/@types/lru-cache/-/lru-cache-5.1.1.tgz",
@@ -24376,6 +25986,501 @@
}
}
},
+ "node_modules/@web3auth/auth": {
+ "version": "10.8.0",
+ "resolved": "https://registry.npmjs.org/@web3auth/auth/-/auth-10.8.0.tgz",
+ "integrity": "sha512-c0a7HVzzbO8IygPetCzw6CkUIcFkWlXSjIAQkJwwMSYtWofsHYhYLLMV7cixSgvIOxQKCuRcvO6Qo7fxz9BiBg==",
+ "license": "MIT",
+ "dependencies": {
+ "@ethereumjs/util": "^10.1.0",
+ "@toruslabs/constants": "^15.0.0",
+ "@toruslabs/customauth": "^21.3.2",
+ "@toruslabs/ffjavascript": "^5.0.0",
+ "@toruslabs/metadata-helpers": "^7.0.2",
+ "@toruslabs/secure-pub-sub": "^3.0.2",
+ "@toruslabs/session-manager": "^4.0.2",
+ "@toruslabs/starkware-crypto": "^5.0.0",
+ "@toruslabs/tweetnacl-js": "^1.0.4",
+ "base64url": "^3.0.1",
+ "bip39": "^3.1.0",
+ "bn.js": "^5.2.2",
+ "deepmerge": "^4.3.1",
+ "enc-utils": "^3.0.0",
+ "end-of-stream": "^1.4.5",
+ "events": "^3.3.0",
+ "json-stable-stringify": "^1.3.0",
+ "loglevel": "^1.9.2",
+ "once": "^1.4.0",
+ "pump": "^3.0.3",
+ "readable-stream": "^4.7.0",
+ "ts-custom-error": "^3.3.1",
+ "typed-emitter": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ },
+ "optionalDependencies": {
+ "@nx/nx-linux-x64-gnu": "^22.0.2",
+ "@rollup/rollup-linux-x64-gnu": "^4.52.5"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "7.x",
+ "color": "^5.x"
+ }
+ },
+ "node_modules/@web3auth/auth/node_modules/@ethereumjs/rlp": {
+ "version": "10.1.2",
+ "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-10.1.2.tgz",
+ "integrity": "sha512-T5Zt6C2pd02Wd88Q9A5/UX+He1Q2Y1LntHxz/038tfbUMiqby4fYSSTLEDx+TEfJqw1BsJSBY/TSu6goUzlk+w==",
+ "license": "MPL-2.0",
+ "bin": {
+ "rlp": "bin/rlp.cjs"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@web3auth/auth/node_modules/@ethereumjs/util": {
+ "version": "10.1.2",
+ "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-10.1.2.tgz",
+ "integrity": "sha512-UPBgXtHHfQugoXOSAoeG3jdmPbl37cwV9y3XqTPAnw8tJj8np14TPV2uc5lOs7C2LMF9Ubn66zyaiYxgwGppng==",
+ "license": "MPL-2.0",
+ "dependencies": {
+ "@ethereumjs/rlp": "^10.1.2",
+ "@noble/curves": "^2.0.1",
+ "@noble/hashes": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@web3auth/auth/node_modules/@ethereumjs/util/node_modules/@noble/hashes": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.2.0.tgz",
+ "integrity": "sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 20.19.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@web3auth/auth/node_modules/bip39": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/bip39/-/bip39-3.1.0.tgz",
+ "integrity": "sha512-c9kiwdk45Do5GL0vJMe7tS95VjCii65mYAH7DfWl3uW8AVzXKQVUm64i3hzVybBDMp9r7j9iNxR85+ul8MdN/A==",
+ "license": "ISC",
+ "dependencies": {
+ "@noble/hashes": "^1.2.0"
+ }
+ },
+ "node_modules/@web3auth/auth/node_modules/readable-stream": {
+ "version": "4.7.0",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz",
+ "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==",
+ "license": "MIT",
+ "dependencies": {
+ "abort-controller": "^3.0.0",
+ "buffer": "^6.0.3",
+ "events": "^3.3.0",
+ "process": "^0.11.10",
+ "string_decoder": "^1.3.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@web3auth/no-modal": {
+ "version": "10.16.0",
+ "resolved": "https://registry.npmjs.org/@web3auth/no-modal/-/no-modal-10.16.0.tgz",
+ "integrity": "sha512-BcPiRELM+jkzo8uLXSuTUt4XmmeajNFqAtLrEkMk41z9s64zPLNDmydOtKUVEuQeWEMY6F3yxYytLxCD60Yo4w==",
+ "license": "ISC",
+ "dependencies": {
+ "@ethereumjs/util": "^10.1.0",
+ "@metamask/sdk": "^0.34.0",
+ "@segment/analytics-next": "^1.81.1",
+ "@solana/wallet-standard-features": "^1.3.0",
+ "@solana/web3.js": "^1.98.4",
+ "@toruslabs/base-controllers": "^8.17.0",
+ "@toruslabs/bs58": "^1.0.0",
+ "@toruslabs/constants": "^15.0.0",
+ "@toruslabs/eccrypto": "^6.2.0",
+ "@toruslabs/ethereum-controllers": "^8.17.0",
+ "@toruslabs/http-helpers": "^8.1.1",
+ "@toruslabs/loglevel-sentry": "^8.1.0",
+ "@toruslabs/secure-pub-sub": "3.0.2",
+ "@toruslabs/tweetnacl-js": "^1.0.4",
+ "@wallet-standard/app": "^1.1.0",
+ "@wallet-standard/base": "^1.1.0",
+ "@wallet-standard/features": "^1.1.0",
+ "@walletconnect/sign-client": "^2.23.3",
+ "@walletconnect/types": "^2.23.3",
+ "@walletconnect/utils": "^2.23.3",
+ "@web3auth/auth": "^10.8.0",
+ "@web3auth/ws-embed": "^5.5.0",
+ "assert": "^2.1.0",
+ "bignumber.js": "~9.3.1",
+ "bn.js": "^5.2.2",
+ "bowser": "^2.13.1",
+ "deepmerge": "^4.3.1",
+ "ethers": "^6.16.0",
+ "json-rpc-random-id": "^1.0.1",
+ "jsonschema": "^1.5.0",
+ "jwt-decode": "^4.0.0",
+ "loglevel": "^1.9.2",
+ "mipd": "^0.0.7",
+ "permissionless": "^0.3.2",
+ "ripple-keypairs": "^1.3.1",
+ "ts-custom-error": "^3.3.1",
+ "xrpl": "^2.14.0"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "^7.x",
+ "@coinbase/wallet-sdk": "^4.3.x",
+ "react": ">=18",
+ "viem": ">=2.29",
+ "vue": "^3.x"
+ },
+ "peerDependenciesMeta": {
+ "@coinbase/wallet-sdk": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ },
+ "viem": {
+ "optional": true
+ },
+ "vue": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@web3auth/no-modal/node_modules/@ethereumjs/rlp": {
+ "version": "10.1.2",
+ "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-10.1.2.tgz",
+ "integrity": "sha512-T5Zt6C2pd02Wd88Q9A5/UX+He1Q2Y1LntHxz/038tfbUMiqby4fYSSTLEDx+TEfJqw1BsJSBY/TSu6goUzlk+w==",
+ "license": "MPL-2.0",
+ "bin": {
+ "rlp": "bin/rlp.cjs"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@web3auth/no-modal/node_modules/@ethereumjs/util": {
+ "version": "10.1.2",
+ "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-10.1.2.tgz",
+ "integrity": "sha512-UPBgXtHHfQugoXOSAoeG3jdmPbl37cwV9y3XqTPAnw8tJj8np14TPV2uc5lOs7C2LMF9Ubn66zyaiYxgwGppng==",
+ "license": "MPL-2.0",
+ "dependencies": {
+ "@ethereumjs/rlp": "^10.1.2",
+ "@noble/curves": "^2.0.1",
+ "@noble/hashes": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@web3auth/no-modal/node_modules/@noble/hashes": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.2.0.tgz",
+ "integrity": "sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 20.19.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@web3auth/node-sdk": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/@web3auth/node-sdk/-/node-sdk-5.0.0.tgz",
+ "integrity": "sha512-lwhGS/BPwIYn3FQuOLOFNjMtkpu/es3hzyRJ0ZCbRK0NbZDcAGzTEp86a7oQ/3Tl1TlXFE5o1coLX0U+INis+Q==",
+ "license": "ISC",
+ "dependencies": {
+ "@segment/analytics-node": "^2.3.0",
+ "@solana/keys": "^2.3.0",
+ "@solana/signers": "^2.3.0",
+ "@toruslabs/constants": "^15.0.0",
+ "@toruslabs/fetch-node-details": "^15.0.0",
+ "@toruslabs/http-helpers": "^8.1.1",
+ "@toruslabs/torus.js": "^16.0.0",
+ "@web3auth/auth": "^10.5.0",
+ "@web3auth/no-modal": "^10.2.0",
+ "ethers": "^6.15.0"
+ },
+ "engines": {
+ "node": ">=18.x",
+ "npm": ">=9.x"
+ }
+ },
+ "node_modules/@web3auth/node-sdk/node_modules/@solana/addresses": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@solana/addresses/-/addresses-2.3.0.tgz",
+ "integrity": "sha512-ypTNkY2ZaRFpHLnHAgaW8a83N0/WoqdFvCqf4CQmnMdFsZSdC7qOwcbd7YzdaQn9dy+P2hybewzB+KP7LutxGA==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/assertions": "2.3.0",
+ "@solana/codecs-core": "2.3.0",
+ "@solana/codecs-strings": "2.3.0",
+ "@solana/errors": "2.3.0",
+ "@solana/nominal-types": "2.3.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.3.3"
+ }
+ },
+ "node_modules/@web3auth/node-sdk/node_modules/@solana/assertions": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@solana/assertions/-/assertions-2.3.0.tgz",
+ "integrity": "sha512-Ekoet3khNg3XFLN7MIz8W31wPQISpKUGDGTylLptI+JjCDWx3PIa88xjEMqFo02WJ8sBj2NLV64Xg1sBcsHjZQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/errors": "2.3.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.3.3"
+ }
+ },
+ "node_modules/@web3auth/node-sdk/node_modules/@solana/codecs-data-structures": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@solana/codecs-data-structures/-/codecs-data-structures-2.3.0.tgz",
+ "integrity": "sha512-qvU5LE5DqEdYMYgELRHv+HMOx73sSoV1ZZkwIrclwUmwTbTaH8QAJURBj0RhQ/zCne7VuLLOZFFGv6jGigWhSw==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "2.3.0",
+ "@solana/codecs-numbers": "2.3.0",
+ "@solana/errors": "2.3.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.3.3"
+ }
+ },
+ "node_modules/@web3auth/node-sdk/node_modules/@solana/codecs-strings": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@solana/codecs-strings/-/codecs-strings-2.3.0.tgz",
+ "integrity": "sha512-y5pSBYwzVziXu521hh+VxqUtp0hYGTl1eWGoc1W+8mdvBdC1kTqm/X7aYQw33J42hw03JjryvYOvmGgk3Qz/Ug==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "2.3.0",
+ "@solana/codecs-numbers": "2.3.0",
+ "@solana/errors": "2.3.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "fastestsmallesttextencoderdecoder": "^1.0.22",
+ "typescript": ">=5.3.3"
+ }
+ },
+ "node_modules/@web3auth/node-sdk/node_modules/@solana/functional": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@solana/functional/-/functional-2.3.0.tgz",
+ "integrity": "sha512-AgsPh3W3tE+nK3eEw/W9qiSfTGwLYEvl0rWaxHht/lRcuDVwfKRzeSa5G79eioWFFqr+pTtoCr3D3OLkwKz02Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.3.3"
+ }
+ },
+ "node_modules/@web3auth/node-sdk/node_modules/@solana/instructions": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@solana/instructions/-/instructions-2.3.0.tgz",
+ "integrity": "sha512-PLMsmaIKu7hEAzyElrk2T7JJx4D+9eRwebhFZpy2PXziNSmFF929eRHKUsKqBFM3cYR1Yy3m6roBZfA+bGE/oQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/codecs-core": "2.3.0",
+ "@solana/errors": "2.3.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.3.3"
+ }
+ },
+ "node_modules/@web3auth/node-sdk/node_modules/@solana/keys": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@solana/keys/-/keys-2.3.0.tgz",
+ "integrity": "sha512-ZVVdga79pNH+2pVcm6fr2sWz9HTwfopDVhYb0Lh3dh+WBmJjwkabXEIHey2rUES7NjFa/G7sV8lrUn/v8LDCCQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/assertions": "2.3.0",
+ "@solana/codecs-core": "2.3.0",
+ "@solana/codecs-strings": "2.3.0",
+ "@solana/errors": "2.3.0",
+ "@solana/nominal-types": "2.3.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.3.3"
+ }
+ },
+ "node_modules/@web3auth/node-sdk/node_modules/@solana/nominal-types": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@solana/nominal-types/-/nominal-types-2.3.0.tgz",
+ "integrity": "sha512-uKlMnlP4PWW5UTXlhKM8lcgIaNj8dvd8xO4Y9l+FVvh9RvW2TO0GwUO6JCo7JBzCB0PSqRJdWWaQ8pu1Ti/OkA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.3.3"
+ }
+ },
+ "node_modules/@web3auth/node-sdk/node_modules/@solana/rpc-types": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@solana/rpc-types/-/rpc-types-2.3.0.tgz",
+ "integrity": "sha512-O09YX2hED2QUyGxrMOxQ9GzH1LlEwwZWu69QbL4oYmIf6P5dzEEHcqRY6L1LsDVqc/dzAdEs/E1FaPrcIaIIPw==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "2.3.0",
+ "@solana/codecs-core": "2.3.0",
+ "@solana/codecs-numbers": "2.3.0",
+ "@solana/codecs-strings": "2.3.0",
+ "@solana/errors": "2.3.0",
+ "@solana/nominal-types": "2.3.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.3.3"
+ }
+ },
+ "node_modules/@web3auth/node-sdk/node_modules/@solana/signers": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@solana/signers/-/signers-2.3.0.tgz",
+ "integrity": "sha512-OSv6fGr/MFRx6J+ZChQMRqKNPGGmdjkqarKkRzkwmv7v8quWsIRnJT5EV8tBy3LI4DLO/A8vKiNSPzvm1TdaiQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "2.3.0",
+ "@solana/codecs-core": "2.3.0",
+ "@solana/errors": "2.3.0",
+ "@solana/instructions": "2.3.0",
+ "@solana/keys": "2.3.0",
+ "@solana/nominal-types": "2.3.0",
+ "@solana/transaction-messages": "2.3.0",
+ "@solana/transactions": "2.3.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.3.3"
+ }
+ },
+ "node_modules/@web3auth/node-sdk/node_modules/@solana/transaction-messages": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@solana/transaction-messages/-/transaction-messages-2.3.0.tgz",
+ "integrity": "sha512-bgqvWuy3MqKS5JdNLH649q+ngiyOu5rGS3DizSnWwYUd76RxZl1kN6CoqHSrrMzFMvis6sck/yPGG3wqrMlAww==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "2.3.0",
+ "@solana/codecs-core": "2.3.0",
+ "@solana/codecs-data-structures": "2.3.0",
+ "@solana/codecs-numbers": "2.3.0",
+ "@solana/errors": "2.3.0",
+ "@solana/functional": "2.3.0",
+ "@solana/instructions": "2.3.0",
+ "@solana/nominal-types": "2.3.0",
+ "@solana/rpc-types": "2.3.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.3.3"
+ }
+ },
+ "node_modules/@web3auth/node-sdk/node_modules/@solana/transactions": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@solana/transactions/-/transactions-2.3.0.tgz",
+ "integrity": "sha512-LnTvdi8QnrQtuEZor5Msje61sDpPstTVwKg4y81tNxDhiyomjuvnSNLAq6QsB9gIxUqbNzPZgOG9IU4I4/Uaug==",
+ "license": "MIT",
+ "dependencies": {
+ "@solana/addresses": "2.3.0",
+ "@solana/codecs-core": "2.3.0",
+ "@solana/codecs-data-structures": "2.3.0",
+ "@solana/codecs-numbers": "2.3.0",
+ "@solana/codecs-strings": "2.3.0",
+ "@solana/errors": "2.3.0",
+ "@solana/functional": "2.3.0",
+ "@solana/instructions": "2.3.0",
+ "@solana/keys": "2.3.0",
+ "@solana/nominal-types": "2.3.0",
+ "@solana/rpc-types": "2.3.0",
+ "@solana/transaction-messages": "2.3.0"
+ },
+ "engines": {
+ "node": ">=20.18.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=5.3.3"
+ }
+ },
+ "node_modules/@web3auth/ws-embed": {
+ "version": "5.6.0",
+ "resolved": "https://registry.npmjs.org/@web3auth/ws-embed/-/ws-embed-5.6.0.tgz",
+ "integrity": "sha512-Z1m1Uuvf87dNJ2WjuEEgF3ypcLziT8zs5570ZYlUt44lzpooYqCOJ9gNTw6+XcsMQvjXE2sFYgZEolr1h2uwFg==",
+ "license": "ISC",
+ "dependencies": {
+ "@toruslabs/base-controllers": "^8.16.0",
+ "@toruslabs/constants": "^15.0.0",
+ "@toruslabs/http-helpers": "^8.1.1",
+ "@web3auth/auth": "^10.8.0",
+ "deepmerge": "^4.3.1",
+ "fast-deep-equal": "^3.1.3",
+ "loglevel": "^1.9.2",
+ "pump": "^3.0.3",
+ "readable-stream": "^4.7.0"
+ },
+ "engines": {
+ "node": ">=20.x",
+ "npm": ">=9.x"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "7.x"
+ }
+ },
+ "node_modules/@web3auth/ws-embed/node_modules/readable-stream": {
+ "version": "4.7.0",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz",
+ "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==",
+ "license": "MIT",
+ "dependencies": {
+ "abort-controller": "^3.0.0",
+ "buffer": "^6.0.3",
+ "events": "^3.3.0",
+ "process": "^0.11.10",
+ "string_decoder": "^1.3.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ }
+ },
"node_modules/@x402/axios": {
"version": "2.14.0",
"resolved": "https://registry.npmjs.org/@x402/axios/-/axios-2.14.0.tgz",
@@ -24553,6 +26658,38 @@
"node": ">=10.0.0"
}
},
+ "node_modules/@xrplf/isomorphic": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@xrplf/isomorphic/-/isomorphic-1.0.2.tgz",
+ "integrity": "sha512-ncZUdMXr6VlSXtdoiDi0jTH+gBrgGxwVeEidhoegII3PmyErbQsyj6e+j7acmR4LW/lvBkPkzb9QzRfJH0n3rA==",
+ "license": "ISC",
+ "dependencies": {
+ "@noble/hashes": "^2.0.1",
+ "eventemitter3": "5.0.1",
+ "ws": "^8.20.0"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ }
+ },
+ "node_modules/@xrplf/isomorphic/node_modules/@noble/hashes": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.2.0.tgz",
+ "integrity": "sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 20.19.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@xrplf/isomorphic/node_modules/eventemitter3": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz",
+ "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==",
+ "license": "MIT"
+ },
"node_modules/@zauthx402/sdk": {
"version": "0.1.14",
"resolved": "https://registry.npmjs.org/@zauthx402/sdk/-/sdk-0.1.14.tgz",
@@ -26371,7 +28508,6 @@
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/assert/-/assert-2.1.0.tgz",
"integrity": "sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"call-bind": "^1.0.2",
@@ -26420,6 +28556,15 @@
"node": ">= 0.4"
}
},
+ "node_modules/async-mutex": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.5.0.tgz",
+ "integrity": "sha512-1A94B18jkJ3DYq284ohPxoXbfTA5HsQ7/Mf4DEhcyLx3Bz27Rh59iScbB6EPiP+B+joue6YCxcMXSbFC1tZKwA==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
"node_modules/async-retry": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz",
@@ -26936,6 +29081,15 @@
"require-from-string": "^2.0.2"
}
},
+ "node_modules/big-integer": {
+ "version": "1.6.52",
+ "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz",
+ "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==",
+ "license": "Unlicense",
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
"node_modules/big.js": {
"version": "6.2.2",
"resolved": "https://registry.npmjs.org/big.js/-/big.js-6.2.2.tgz",
@@ -27001,6 +29155,30 @@
"file-uri-to-path": "1.0.0"
}
},
+ "node_modules/bip32": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/bip32/-/bip32-2.0.6.tgz",
+ "integrity": "sha512-HpV5OMLLGTjSVblmrtYRfFFKuQB+GArM0+XP8HGWfJ5vxYBqo+DesvJwOdC2WJ3bCkZShGf0QIfoIpeomVzVdA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "10.12.18",
+ "bs58check": "^2.1.1",
+ "create-hash": "^1.2.0",
+ "create-hmac": "^1.1.7",
+ "tiny-secp256k1": "^1.1.3",
+ "typeforce": "^1.11.5",
+ "wif": "^2.0.6"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/bip32/node_modules/@types/node": {
+ "version": "10.12.18",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.18.tgz",
+ "integrity": "sha512-fh+pAqt4xRzPfqA6eh3Z2y6fyZavRIumvjhaCL753+TVkGKGhpPeyrJG2JftD0T9q4GF00KjefsQ+PQNDdWQaQ==",
+ "license": "MIT"
+ },
"node_modules/bip39": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/bip39/-/bip39-3.0.2.tgz",
@@ -27654,7 +29832,6 @@
"integrity": "sha512-ZMANVnAixE6AWWnPzlW2KpUrxhm9woycYvPOo67jWHyFowASTEd9s+QN1EIMsSDtwhIxN4sWE1jotpuDUIgyIw==",
"hasInstallScript": true,
"license": "MIT",
- "optional": true,
"dependencies": {
"node-gyp-build": "^4.3.0"
},
@@ -30020,6 +32197,22 @@
"it-take": "^3.0.8"
}
},
+ "node_modules/date-fns": {
+ "version": "2.30.0",
+ "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz",
+ "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.21.0"
+ },
+ "engines": {
+ "node": ">=0.11"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/date-fns"
+ }
+ },
"node_modules/dayjs": {
"version": "1.11.13",
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz",
@@ -30056,7 +32249,6 @@
"version": "10.6.0",
"resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz",
"integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==",
- "dev": true,
"license": "MIT"
},
"node_modules/decode-uri-component": {
@@ -30165,7 +32357,6 @@
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",
"integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",
- "dev": true,
"license": "MIT",
"dependencies": {
"define-data-property": "^1.0.1",
@@ -30469,6 +32660,15 @@
"node": ">=10"
}
},
+ "node_modules/dset": {
+ "version": "3.1.4",
+ "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.4.tgz",
+ "integrity": "sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
"node_modules/dunder-proto": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
@@ -30499,6 +32699,50 @@
"safe-buffer": "^5.0.1"
}
},
+ "node_modules/eciesjs": {
+ "version": "0.4.18",
+ "resolved": "https://registry.npmjs.org/eciesjs/-/eciesjs-0.4.18.tgz",
+ "integrity": "sha512-wG99Zcfcys9fZux7Cft8BAX/YrOJLJSZ3jyYPfhZHqN2E+Ffx+QXBDsv3gubEgPtV6dTzJMSQUwk1H98/t/0wQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@ecies/ciphers": "^0.2.5",
+ "@noble/ciphers": "^1.3.0",
+ "@noble/curves": "^1.9.7",
+ "@noble/hashes": "^1.8.0"
+ },
+ "engines": {
+ "bun": ">=1",
+ "deno": ">=2",
+ "node": ">=16"
+ }
+ },
+ "node_modules/eciesjs/node_modules/@noble/curves": {
+ "version": "1.9.7",
+ "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.7.tgz",
+ "integrity": "sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/hashes": "1.8.0"
+ },
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/eciesjs/node_modules/@noble/hashes": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
"node_modules/ee-first": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
@@ -30594,6 +32838,16 @@
"node": ">=10.0.0"
}
},
+ "node_modules/enc-utils": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/enc-utils/-/enc-utils-3.0.0.tgz",
+ "integrity": "sha512-e57t/Z2HzWOLwOp7DZcV0VMEY8t7ptWwsxyp6kM2b2zrk6JqIpXxzkruHAMiBsy5wg9jp/183GdiRXCvBtzsYg==",
+ "license": "MIT",
+ "dependencies": {
+ "is-typedarray": "1.0.0",
+ "typedarray-to-buffer": "3.1.5"
+ }
+ },
"node_modules/encode-utf8": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/encode-utf8/-/encode-utf8-1.0.3.tgz",
@@ -30639,6 +32893,49 @@
"once": "^1.4.0"
}
},
+ "node_modules/engine.io-client": {
+ "version": "6.6.5",
+ "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.6.5.tgz",
+ "integrity": "sha512-QCwxUDULPlXv8F6tqMMKx5dNkTe6OaBYRMPYeXKBlyOoKvAmE0ac6pW7fFhSscJ/5SI7666/U/B+MElbsrJlIg==",
+ "license": "MIT",
+ "dependencies": {
+ "@socket.io/component-emitter": "~3.1.0",
+ "debug": "~4.4.1",
+ "engine.io-parser": "~5.2.1",
+ "ws": "~8.20.1",
+ "xmlhttprequest-ssl": "~2.1.1"
+ }
+ },
+ "node_modules/engine.io-client/node_modules/ws": {
+ "version": "8.20.1",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.20.1.tgz",
+ "integrity": "sha512-It4dO0K5v//JtTXuPkfEOaI3uUN87iYPnqo/ZzqCoG3g8uhA66QUMs/SrM0YK7/NAu+r4LMh/9dq2A7k+rHs+w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.0.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": ">=5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/engine.io-parser": {
+ "version": "5.2.3",
+ "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.3.tgz",
+ "integrity": "sha512-HqD3yTBfnBxIrbnM1DoD6Pcq8NECnh8d4As1Qgh0z5Gg3jRRIqijury0CL3ghu/edArpUYiYqQiDUQBIs4np3Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.0.0"
+ }
+ },
"node_modules/enquirer": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz",
@@ -31451,6 +33748,15 @@
"node": ">= 0.6"
}
},
+ "node_modules/eth-rpc-errors": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-4.0.3.tgz",
+ "integrity": "sha512-Z3ymjopaoft7JDoxZcEb3pwdGh7yiYMhOwm2doUt6ASXlMavpNlK6Cre0+IMl2VSGyEU9rkiperQhp5iRxn5Pg==",
+ "license": "MIT",
+ "dependencies": {
+ "fast-safe-stringify": "^2.0.6"
+ }
+ },
"node_modules/ethereum-bloom-filters": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/ethereum-bloom-filters/-/ethereum-bloom-filters-1.2.0.tgz",
@@ -32097,6 +34403,19 @@
"node": ">= 0.8"
}
},
+ "node_modules/extension-port-stream": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/extension-port-stream/-/extension-port-stream-3.0.0.tgz",
+ "integrity": "sha512-an2S5quJMiy5bnZKEf6AkfH/7r8CzHvhchU40gxN+OM6HPhe7Z9T1FUychcf2M9PpPOO0Hf7BAEfJkw2TDIBDw==",
+ "license": "ISC",
+ "dependencies": {
+ "readable-stream": "^3.6.2 || ^4.4.2",
+ "webextension-polyfill": ">=0.10.0 <1.0"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
"node_modules/extract-zip": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
@@ -32225,6 +34544,12 @@
"node": ">= 6"
}
},
+ "node_modules/fast-json-patch": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/fast-json-patch/-/fast-json-patch-3.1.1.tgz",
+ "integrity": "sha512-vf6IHUX2SBcA+5/+4883dsIjpBTqmfBjmYiWK1savxQmFk4JfBMLa7ynTYOs1Rolp/T1betJxHiGD3g1Mn8lUQ==",
+ "license": "MIT"
+ },
"node_modules/fast-json-stable-stringify": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
@@ -32238,6 +34563,12 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/fast-safe-stringify": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz",
+ "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==",
+ "license": "MIT"
+ },
"node_modules/fast-sha256": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/fast-sha256/-/fast-sha256-1.3.0.tgz",
@@ -32886,7 +35217,6 @@
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz",
"integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">= 0.4"
@@ -34942,7 +37272,6 @@
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz",
"integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"call-bound": "^1.0.2",
@@ -35174,7 +37503,6 @@
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz",
"integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"call-bound": "^1.0.4",
@@ -35267,7 +37595,6 @@
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz",
"integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==",
- "dev": true,
"license": "MIT",
"dependencies": {
"call-bind": "^1.0.0",
@@ -35379,7 +37706,6 @@
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz",
"integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==",
- "dev": true,
"license": "MIT",
"dependencies": {
"call-bound": "^1.0.2",
@@ -35507,6 +37833,12 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/is-typedarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
+ "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==",
+ "license": "MIT"
+ },
"node_modules/is-unicode-supported": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
@@ -38051,6 +40383,12 @@
"integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
"license": "MIT"
},
+ "node_modules/json-rpc-random-id": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-rpc-random-id/-/json-rpc-random-id-1.0.1.tgz",
+ "integrity": "sha512-RJ9YYNCkhVDBuP4zN5BBtYAzEl03yq/jIIsyif0JY9qyJuQQZNeDK7anAPKKlyEtLSj2s8h6hNh2F8zO5q7ScA==",
+ "license": "ISC"
+ },
"node_modules/json-schema": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz",
@@ -38069,6 +40407,25 @@
"integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==",
"license": "BSD-2-Clause"
},
+ "node_modules/json-stable-stringify": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.3.0.tgz",
+ "integrity": "sha512-qtYiSSFlwot9XHtF9bD9c7rwKjr+RecWT//ZnPvSmEjpV5mmPOCN4j8UjY5hbjNkOwZ/jQv3J6R1/pL7RwgMsg==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.4",
+ "isarray": "^2.0.5",
+ "jsonify": "^0.0.1",
+ "object-keys": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/json-stable-stringify-without-jsonify": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
@@ -38112,6 +40469,15 @@
"graceful-fs": "^4.1.6"
}
},
+ "node_modules/jsonify": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz",
+ "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==",
+ "license": "Public Domain",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/jsonpointer": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz",
@@ -38122,6 +40488,15 @@
"node": ">=0.10.0"
}
},
+ "node_modules/jsonschema": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.5.0.tgz",
+ "integrity": "sha512-K+A9hhqbn0f3pJX17Q/7H6yQfD/5OXgdrR5UE12gMXCiN9D5Xq2o5mddV2QEcX/bjla99ASsAAQUyMCCRWAEhw==",
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ }
+ },
"node_modules/jsonwebtoken": {
"version": "9.0.3",
"resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.3.tgz",
@@ -38259,6 +40634,15 @@
"safe-buffer": "^5.0.1"
}
},
+ "node_modules/jwt-decode": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-4.0.0.tgz",
+ "integrity": "sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/keccak": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.4.tgz",
@@ -40659,6 +43043,26 @@
"node": ">=16 || 14 >=14.17"
}
},
+ "node_modules/mipd": {
+ "version": "0.0.7",
+ "resolved": "https://registry.npmjs.org/mipd/-/mipd-0.0.7.tgz",
+ "integrity": "sha512-aAPZPNDQ3uMTdKbuO2YmAw2TxLHO0moa4YKAyETM/DTj5FloZo+a+8tU+iv4GmW+sOxKLSRwcSFuczk+Cpt6fg==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/wagmi-dev"
+ }
+ ],
+ "license": "MIT",
+ "peerDependencies": {
+ "typescript": ">=5.0.4"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
"node_modules/mitt": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz",
@@ -41126,6 +43530,12 @@
"thenify-all": "^1.0.0"
}
},
+ "node_modules/nan": {
+ "version": "2.27.0",
+ "resolved": "https://registry.npmjs.org/nan/-/nan-2.27.0.tgz",
+ "integrity": "sha512-hC+0LidcL3XE4rp1C4H54KujgXKzbfyTngZTwBByQxsOxCEKZT0MPQ4hOKUH2jU1OYstqdDH4onyHPDzcV0XdQ==",
+ "license": "MIT"
+ },
"node_modules/nanoid": {
"version": "3.3.11",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
@@ -41293,6 +43703,15 @@
"node": ">=18"
}
},
+ "node_modules/new-date": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/new-date/-/new-date-1.0.3.tgz",
+ "integrity": "sha512-0fsVvQPbo2I18DT2zVHpezmeeNYV2JaJSrseiHLc17GNOxJzUdx5mvSigPu8LtIfZSij5i1wXnXFspEs2CD6hA==",
+ "license": "SEE LICENSE IN LICENSE",
+ "dependencies": {
+ "@segment/isodate": "1.0.3"
+ }
+ },
"node_modules/nipplejs": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/nipplejs/-/nipplejs-1.0.4.tgz",
@@ -41684,6 +44103,59 @@
"node": "*"
}
},
+ "node_modules/obj-case": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/obj-case/-/obj-case-0.2.1.tgz",
+ "integrity": "sha512-PquYBBTy+Y6Ob/O2574XHhDtHJlV1cJHMCgW+rDRc9J5hhmRelJB3k5dTK/3cVmFVtzvAKuENeuLpoyTzMzkOg==",
+ "license": "MIT"
+ },
+ "node_modules/obj-multiplex": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/obj-multiplex/-/obj-multiplex-1.0.0.tgz",
+ "integrity": "sha512-0GNJAOsHoBHeNTvl5Vt6IWnpUEcc3uSRxzBri7EDyIcMgYvnY2JL2qdeV5zTMjWQX5OHcD5amcW2HFfDh0gjIA==",
+ "license": "ISC",
+ "dependencies": {
+ "end-of-stream": "^1.4.0",
+ "once": "^1.4.0",
+ "readable-stream": "^2.3.3"
+ }
+ },
+ "node_modules/obj-multiplex/node_modules/isarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
+ "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",
+ "license": "MIT"
+ },
+ "node_modules/obj-multiplex/node_modules/readable-stream": {
+ "version": "2.3.8",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",
+ "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/obj-multiplex/node_modules/safe-buffer": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
+ "license": "MIT"
+ },
+ "node_modules/obj-multiplex/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
"node_modules/object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
@@ -41709,7 +44181,6 @@
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.6.tgz",
"integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==",
- "dev": true,
"license": "MIT",
"dependencies": {
"call-bind": "^1.0.7",
@@ -41726,7 +44197,6 @@
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
"integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">= 0.4"
@@ -41736,7 +44206,6 @@
"version": "4.1.7",
"resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz",
"integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"call-bind": "^1.0.8",
@@ -41813,6 +44282,15 @@
"integrity": "sha512-42CPE9AhahZRsMNslczq0ctAEtqk8Eka26QofnqC346BZdHDySk3LWka23LI7ULIw11NmltpiLagIq8gBozxTw==",
"license": "MIT"
},
+ "node_modules/oblivious-set": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/oblivious-set/-/oblivious-set-1.4.0.tgz",
+ "integrity": "sha512-szyd0ou0T8nsAqHtprRcP3WidfsN1TnAR5yWXf2mFCEr5ek3LEOkT6EZ/92Xfs74HIdyhG5WkGxIssMU0jBaeg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=16"
+ }
+ },
"node_modules/obuf": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz",
@@ -41895,6 +44373,21 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/openapi-fetch": {
+ "version": "0.13.8",
+ "resolved": "https://registry.npmjs.org/openapi-fetch/-/openapi-fetch-0.13.8.tgz",
+ "integrity": "sha512-yJ4QKRyNxE44baQ9mY5+r/kAzZ8yXMemtNAOFwOzRXJscdjSxxzWSNlyBAr+o5JjkUw9Lc3W7OIoca0cY3PYnQ==",
+ "license": "MIT",
+ "dependencies": {
+ "openapi-typescript-helpers": "^0.0.15"
+ }
+ },
+ "node_modules/openapi-typescript-helpers": {
+ "version": "0.0.15",
+ "resolved": "https://registry.npmjs.org/openapi-typescript-helpers/-/openapi-typescript-helpers-0.0.15.tgz",
+ "integrity": "sha512-opyTPaunsklCBpTK8JGef6mfPhLSnyy5a0IN9vKtx3+4aExf+KxEqYwIy3hqkedXIB97u357uLMJsOnm3GVjsw==",
+ "license": "MIT"
+ },
"node_modules/optionator": {
"version": "0.9.4",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
@@ -42578,6 +45071,21 @@
"integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",
"license": "MIT"
},
+ "node_modules/permissionless": {
+ "version": "0.3.6",
+ "resolved": "https://registry.npmjs.org/permissionless/-/permissionless-0.3.6.tgz",
+ "integrity": "sha512-7RstRCNwJc/kO9Q/ZJpgSPclXez8CaGU77PeYNaWpHCU1kRetu+7kqEUFcIFLdz47F7jpOwtsbAU56hn27c4mg==",
+ "license": "MIT",
+ "peerDependencies": {
+ "ox": "^0.11.3",
+ "viem": "^2.44.4"
+ },
+ "peerDependenciesMeta": {
+ "ox": {
+ "optional": true
+ }
+ }
+ },
"node_modules/pg-int8": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz",
@@ -43047,7 +45555,6 @@
"version": "0.11.10",
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
"integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">= 0.6.0"
@@ -44614,6 +47121,61 @@
"node": ">= 0.8"
}
},
+ "node_modules/ripple-address-codec": {
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/ripple-address-codec/-/ripple-address-codec-4.3.1.tgz",
+ "integrity": "sha512-Qa3+9wKVvpL/xYtT6+wANsn0A1QcC5CT6IMZbRJZ/1lGt7gmwIfsrCuz1X0+LCEO7zgb+3UT1I1dc0k/5dwKQQ==",
+ "license": "ISC",
+ "dependencies": {
+ "base-x": "^3.0.9",
+ "create-hash": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/ripple-address-codec/node_modules/base-x": {
+ "version": "3.0.11",
+ "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.11.tgz",
+ "integrity": "sha512-xz7wQ8xDhdyP7tQxwdteLYeFfS68tSMNCZ/Y37WJ4bhGfKPpqEIlmIyueQHqOyoPhE6xNUqjzRr8ra0eF9VRvA==",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "node_modules/ripple-binary-codec": {
+ "version": "1.11.0",
+ "resolved": "https://registry.npmjs.org/ripple-binary-codec/-/ripple-binary-codec-1.11.0.tgz",
+ "integrity": "sha512-g7+gs3T+NfoeW6vIq5dcN0CkIT4t/zwRzFxz8X2RzfbrWRnewPUKqQbmBgs05tXLX5NuWPaneiaAVpFpYBcdfw==",
+ "license": "ISC",
+ "dependencies": {
+ "assert": "^2.0.0",
+ "big-integer": "^1.6.48",
+ "buffer": "6.0.3",
+ "create-hash": "^1.2.0",
+ "decimal.js": "^10.2.0",
+ "ripple-address-codec": "^4.3.1"
+ },
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/ripple-keypairs": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/ripple-keypairs/-/ripple-keypairs-1.3.1.tgz",
+ "integrity": "sha512-dmPlraWKJciFJxHcoubDahGnoIalG5e/BtV6HNDUs7wLXmtnLMHt6w4ed9R8MTL2zNrVPiIdI/HCtMMo0Tm7JQ==",
+ "license": "ISC",
+ "dependencies": {
+ "bn.js": "^5.1.1",
+ "brorand": "^1.0.5",
+ "elliptic": "^6.5.4",
+ "hash.js": "^1.0.3",
+ "ripple-address-codec": "^4.3.1"
+ },
+ "engines": {
+ "node": ">= 10"
+ }
+ },
"node_modules/rlp": {
"version": "2.2.7",
"resolved": "https://registry.npmjs.org/rlp/-/rlp-2.2.7.tgz",
@@ -44913,7 +47475,6 @@
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz",
"integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"call-bound": "^1.0.2",
@@ -46567,6 +49128,34 @@
"url": "https://github.com/sponsors/cyyynthia"
}
},
+ "node_modules/socket.io-client": {
+ "version": "4.8.3",
+ "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.8.3.tgz",
+ "integrity": "sha512-uP0bpjWrjQmUt5DTHq9RuoCBdFJF10cdX9X+a368j/Ft0wmaVgxlrjvK3kjvgCODOMMOz9lcaRzxmso0bTWZ/g==",
+ "license": "MIT",
+ "dependencies": {
+ "@socket.io/component-emitter": "~3.1.0",
+ "debug": "~4.4.1",
+ "engine.io-client": "~6.6.1",
+ "socket.io-parser": "~4.2.4"
+ },
+ "engines": {
+ "node": ">=10.0.0"
+ }
+ },
+ "node_modules/socket.io-parser": {
+ "version": "4.2.6",
+ "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.6.tgz",
+ "integrity": "sha512-asJqbVBDsBCJx0pTqw3WfesSY0iRX+2xzWEWzrpcH7L6fLzrhyF8WPI8UaeM4YCuDfpwA/cgsdugMsmtz8EJeg==",
+ "license": "MIT",
+ "dependencies": {
+ "@socket.io/component-emitter": "~3.1.0",
+ "debug": "~4.4.1"
+ },
+ "engines": {
+ "node": ">=10.0.0"
+ }
+ },
"node_modules/socks": {
"version": "2.8.8",
"resolved": "https://registry.npmjs.org/socks/-/socks-2.8.8.tgz",
@@ -47809,6 +50398,29 @@
"integrity": "sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==",
"license": "MIT"
},
+ "node_modules/tiny-secp256k1": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/tiny-secp256k1/-/tiny-secp256k1-1.1.7.tgz",
+ "integrity": "sha512-eb+F6NabSnjbLwNoC+2o5ItbmP1kg7HliWue71JgLegQt6A5mTN8YbvTLCazdlg6e5SV6A+r8OGvZYskdlmhqQ==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "dependencies": {
+ "bindings": "^1.3.0",
+ "bn.js": "^4.11.8",
+ "create-hmac": "^1.1.7",
+ "elliptic": "^6.4.0",
+ "nan": "^2.13.2"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/tiny-secp256k1/node_modules/bn.js": {
+ "version": "4.12.3",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.3.tgz",
+ "integrity": "sha512-fGTi3gxV/23FTYdAoUtLYp6qySe2KE3teyZitipKNRuVYcBkoP/bB3guXN/XVKUe9mxCHXnc9C4ocyz8OmgN0g==",
+ "license": "MIT"
+ },
"node_modules/tinybench": {
"version": "2.9.0",
"resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",
@@ -48096,6 +50708,15 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
+ "node_modules/ts-custom-error": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/ts-custom-error/-/ts-custom-error-3.3.1.tgz",
+ "integrity": "sha512-5OX1tzOjxWEgsr/YEUWSuPrQ00deKLh6D7OTWcvNHm12/7QPyRh8SYpyWvA4IZv8H/+GQWQEh/kwo95Q9OVW1A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
"node_modules/ts-essentials": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz",
@@ -48711,6 +51332,21 @@
"integrity": "sha512-EOPFbyIub4ngnEdqi2yOcNeDLaX/0jcE1JoAXQDDMIthap7FoN795lc/SHfIq2d416VufXpM8z/lD+WRm2gfOQ==",
"license": "MIT"
},
+ "node_modules/typedarray-to-buffer": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz",
+ "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==",
+ "license": "MIT",
+ "dependencies": {
+ "is-typedarray": "^1.0.0"
+ }
+ },
+ "node_modules/typeforce": {
+ "version": "1.18.0",
+ "resolved": "https://registry.npmjs.org/typeforce/-/typeforce-1.18.0.tgz",
+ "integrity": "sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g==",
+ "license": "MIT"
+ },
"node_modules/typescript": {
"version": "5.9.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
@@ -48888,6 +51524,12 @@
"pathe": "^2.0.3"
}
},
+ "node_modules/unfetch": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/unfetch/-/unfetch-4.2.0.tgz",
+ "integrity": "sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA==",
+ "license": "MIT"
+ },
"node_modules/unicode-canonical-property-names-ecmascript": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz",
@@ -48982,6 +51624,15 @@
"node": ">= 10.0.0"
}
},
+ "node_modules/unload": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/unload/-/unload-2.4.1.tgz",
+ "integrity": "sha512-IViSAm8Z3sRBYA+9wc0fLQmU9Nrxb16rcDmIiR6Y9LJSZzI7QY5QsDhqPpKOjAn0O9/kfK1TfNEMMAGPTIraPw==",
+ "license": "Apache-2.0",
+ "funding": {
+ "url": "https://github.com/sponsors/pubkey"
+ }
+ },
"node_modules/unpipe": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
@@ -49274,7 +51925,6 @@
"version": "0.12.5",
"resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz",
"integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"inherits": "^2.0.3",
@@ -49878,6 +52528,49 @@
"node": ">=8.0.0"
}
},
+ "node_modules/webauthn-p256": {
+ "version": "0.0.10",
+ "resolved": "https://registry.npmjs.org/webauthn-p256/-/webauthn-p256-0.0.10.tgz",
+ "integrity": "sha512-EeYD+gmIT80YkSIDb2iWq0lq2zbHo1CxHlQTeJ+KkCILWpVy3zASH3ByD4bopzfk0uCwXxLqKGLqp2W4O28VFA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/wevm"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "@noble/curves": "^1.4.0",
+ "@noble/hashes": "^1.4.0"
+ }
+ },
+ "node_modules/webauthn-p256/node_modules/@noble/curves": {
+ "version": "1.9.7",
+ "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.7.tgz",
+ "integrity": "sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/hashes": "1.8.0"
+ },
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/webauthn-p256/node_modules/@noble/hashes": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
"node_modules/webcrypto-core": {
"version": "1.9.2",
"resolved": "https://registry.npmjs.org/webcrypto-core/-/webcrypto-core-1.9.2.tgz",
@@ -49897,6 +52590,12 @@
"integrity": "sha512-ARrjNjtWRRs2w4Tk7nqrf2gBI0QXWuOmMCx2hU+1jUt6d00MjMxURrhxhGbrsoiZKJrhTSTzbIrc554iKI10qw==",
"license": "Apache-2.0"
},
+ "node_modules/webextension-polyfill": {
+ "version": "0.10.0",
+ "resolved": "https://registry.npmjs.org/webextension-polyfill/-/webextension-polyfill-0.10.0.tgz",
+ "integrity": "sha512-c5s35LgVa5tFaHhrZDnr3FpQpjj1BB+RXhLTYUxGqBVN460HkbM8TBtEqdXWbpTKfzwCcjAZVF7zXCYSKtcp9g==",
+ "license": "MPL-2.0"
+ },
"node_modules/webidl-conversions": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz",
@@ -50117,6 +52816,15 @@
"node": ">=8"
}
},
+ "node_modules/wif": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/wif/-/wif-2.0.6.tgz",
+ "integrity": "sha512-HIanZn1zmduSF+BQhkE+YXIbEiH0xPr1012QbFEGB0xsKqJii0/SqJjyn8dFv6y36kOznMgMB+LGcbZTJ1xACQ==",
+ "license": "MIT",
+ "dependencies": {
+ "bs58check": "<3.0.0"
+ }
+ },
"node_modules/wonka": {
"version": "6.3.6",
"resolved": "https://registry.npmjs.org/wonka/-/wonka-6.3.6.tgz",
@@ -51078,6 +53786,14 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/xmlhttprequest-ssl": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.1.2.tgz",
+ "integrity": "sha512-TEU+nJVUUnA4CYJFLvK5X9AOeH4KvDvhIfm0vV1GaQRtchnG0hgK5p8hw/xjv8cunWYCsiPCSDzObPyhEwq3KQ==",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
"node_modules/xpath": {
"version": "0.0.34",
"resolved": "https://registry.npmjs.org/xpath/-/xpath-0.0.34.tgz",
@@ -51087,6 +53803,135 @@
"node": ">=0.6.0"
}
},
+ "node_modules/xrpl": {
+ "version": "2.14.3",
+ "resolved": "https://registry.npmjs.org/xrpl/-/xrpl-2.14.3.tgz",
+ "integrity": "sha512-XNiIVfHIXrhFeLKwVzDSw1Al9Ac2WZwFus42idzfjI/joooSqRfFyv59p7NOU6hrkjKjOisRIhHDkheQovZWaw==",
+ "license": "ISC",
+ "dependencies": {
+ "bignumber.js": "^9.0.0",
+ "bip32": "^2.0.6",
+ "bip39": "^3.0.4",
+ "https-proxy-agent": "^5.0.0",
+ "lodash": "^4.17.4",
+ "ripple-address-codec": "^4.3.1",
+ "ripple-binary-codec": "^1.11.0",
+ "ripple-keypairs": "^1.3.1",
+ "ws": "^8.2.2",
+ "xrpl-secret-numbers": "^0.3.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/xrpl-secret-numbers": {
+ "version": "0.3.5",
+ "resolved": "https://registry.npmjs.org/xrpl-secret-numbers/-/xrpl-secret-numbers-0.3.5.tgz",
+ "integrity": "sha512-5W2Ijp4nFpplEJ4IEK8JNAnRN9+3/+8BdBQ0hOZ3bZfa/+K9c9GNdN5fHDkKoECJN3nzXNcj6/Ejg7wUQDtRnQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/brorand": "^1.0.30",
+ "brorand": "^1.1.0",
+ "ripple-keypairs": "^2.0.0"
+ }
+ },
+ "node_modules/xrpl-secret-numbers/node_modules/@noble/curves": {
+ "version": "1.9.7",
+ "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.7.tgz",
+ "integrity": "sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/hashes": "1.8.0"
+ },
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/xrpl-secret-numbers/node_modules/@noble/hashes": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/xrpl-secret-numbers/node_modules/@scure/base": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@scure/base/-/base-2.2.0.tgz",
+ "integrity": "sha512-b8XEupJibegiXV+tDUseI8oLQc8ei3d/4Jkb2RpbHh3MfE054ov3uIz2dhFkB3FI8iwYkEh0gGCApkrYggkPNg==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/xrpl-secret-numbers/node_modules/ripple-address-codec": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ripple-address-codec/-/ripple-address-codec-5.0.1.tgz",
+ "integrity": "sha512-JQHLKuVJV8lv9Qobmn4aUM2Dpv9WRRLKnNWfM8tN02fAbUtG8mUPsu9q9UYX8P76G4qzytEc5ZKMp/3JggNYmw==",
+ "license": "ISC",
+ "dependencies": {
+ "@scure/base": "^2.0.0",
+ "@xrplf/isomorphic": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/xrpl-secret-numbers/node_modules/ripple-keypairs": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ripple-keypairs/-/ripple-keypairs-2.0.0.tgz",
+ "integrity": "sha512-b5rfL2EZiffmklqZk1W+dvSy97v3V/C7936WxCCgDynaGPp7GE6R2XO7EU9O2LlM/z95rj870IylYnOQs+1Rag==",
+ "license": "ISC",
+ "dependencies": {
+ "@noble/curves": "^1.0.0",
+ "@xrplf/isomorphic": "^1.0.0",
+ "ripple-address-codec": "^5.0.0"
+ },
+ "engines": {
+ "node": ">= 16"
+ }
+ },
+ "node_modules/xrpl/node_modules/agent-base": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6.0.0"
+ }
+ },
+ "node_modules/xrpl/node_modules/bip39": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/bip39/-/bip39-3.1.0.tgz",
+ "integrity": "sha512-c9kiwdk45Do5GL0vJMe7tS95VjCii65mYAH7DfWl3uW8AVzXKQVUm64i3hzVybBDMp9r7j9iNxR85+ul8MdN/A==",
+ "license": "ISC",
+ "dependencies": {
+ "@noble/hashes": "^1.2.0"
+ }
+ },
+ "node_modules/xrpl/node_modules/https-proxy-agent": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
+ "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "6",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
"node_modules/xtend": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
diff --git a/package.json b/package.json
index ffd4c1a7a..124d156c3 100644
--- a/package.json
+++ b/package.json
@@ -189,6 +189,7 @@
"@upstash/redis": "^1.38.0",
"@vercel/og": "^0.11.1",
"@walletconnect/ethereum-provider": "^2.23.9",
+ "@web3auth/node-sdk": "^5.0.0",
"@x402/axios": "^2.14.0",
"@x402/core": "^2.14.0",
"@x402/evm": "^2.14.0",
@@ -219,6 +220,7 @@
"graphql": "^16.14.1",
"helius-sdk": "^3.0.0",
"jose": "^5.9.6",
+ "jsonwebtoken": "^9.0.3",
"lightweight-charts": "^5.2.0",
"livekit-client": "^2.19.2",
"livepeer": "^3.5.0",
diff --git a/pages/forge.html b/pages/forge.html
index 023770280..e7a3c332f 100644
--- a/pages/forge.html
+++ b/pages/forge.html
@@ -627,6 +627,53 @@
width: 100%;
height: 100%;
object-fit: cover;
+ animation: paint-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
+ }
+ @keyframes paint-in {
+ from {
+ opacity: 0;
+ filter: blur(16px) saturate(0.7);
+ transform: scale(1.05);
+ }
+ to {
+ opacity: 1;
+ filter: blur(0) saturate(1);
+ transform: none;
+ }
+ }
+ /* Reconstruction scanline — sweeps the reference image while the mesh
+ step is live, so the wait reads as work, not silence. */
+ .gen-preview.is-reconstructing::after {
+ content: '';
+ position: absolute;
+ inset: 0;
+ background: linear-gradient(
+ 180deg,
+ transparent 0%,
+ color-mix(in srgb, var(--accent) 30%, transparent) 50%,
+ transparent 100%
+ );
+ background-size: 100% 34%;
+ background-repeat: no-repeat;
+ animation: forge-scan 2.6s ease-in-out infinite;
+ mix-blend-mode: screen;
+ pointer-events: none;
+ }
+ @keyframes forge-scan {
+ from {
+ background-position: 0 -40%;
+ }
+ to {
+ background-position: 0 140%;
+ }
+ }
+ @media (prefers-reduced-motion: reduce) {
+ .gen-preview img {
+ animation: none;
+ }
+ .gen-preview.is-reconstructing::after {
+ display: none;
+ }
}
.gen-preview .shimmer {
position: absolute;
@@ -693,11 +740,96 @@
}
/* Result state */
+ .viewer-shell {
+ position: relative;
+ }
.result model-viewer {
width: 100%;
height: min(60vh, 560px);
background: radial-gradient(120% 120% at 50% 0%, #161616 0%, #0b0b0b 70%);
--poster-color: transparent;
+ transition: opacity 0.45s ease;
+ }
+ /* Materialize reveal — the WebGL overlay src/forge-reveal.js plays the
+ dissolve in, then crossfades away to the standing viewer beneath. */
+ .forge-reveal-overlay {
+ position: absolute;
+ inset: 0;
+ z-index: 2;
+ pointer-events: none;
+ transition: opacity 0.42s ease;
+ }
+ .forge-reveal-overlay canvas {
+ display: block;
+ width: 100%;
+ height: 100%;
+ }
+ .forge-reveal-overlay.is-fading {
+ opacity: 0;
+ }
+
+ /* Cinema mode — distraction-free fullscreen turntable (F / Esc).
+ Built for screen recording: chrome hides until the pointer rests
+ on the bottom bar. */
+ body.forge-cinema {
+ overflow: hidden;
+ }
+ .result.is-cinema {
+ position: fixed;
+ inset: 0;
+ z-index: 90;
+ border: none;
+ border-radius: 0;
+ display: flex;
+ flex-direction: column;
+ background: radial-gradient(120% 90% at 50% 10%, #181a1f 0%, #0a0b0d 60%, #060708 100%);
+ }
+ .result.is-cinema > :not(.viewer-shell):not(.result-bar) {
+ display: none;
+ }
+ .result.is-cinema .viewer-shell {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ }
+ .result.is-cinema model-viewer {
+ flex: 1;
+ height: 100%;
+ background: transparent;
+ }
+ .result.is-cinema .result-bar {
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ border-top: none;
+ background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
+ opacity: 0;
+ transition: opacity 0.3s ease;
+ }
+ .result.is-cinema .result-bar:hover,
+ .result.is-cinema .result-bar:focus-within {
+ opacity: 1;
+ }
+ .result.is-cinema::after {
+ content: 'F or Esc to exit · drag to orbit';
+ position: absolute;
+ top: 14px;
+ right: 16px;
+ font-family: var(--font-mono);
+ font-size: 12px;
+ color: rgba(255, 255, 255, 0.55);
+ pointer-events: none;
+ animation: cinema-hint 4.5s ease forwards;
+ }
+ @keyframes cinema-hint {
+ 0%,
+ 70% {
+ opacity: 1;
+ }
+ 100% {
+ opacity: 0;
+ }
}
.result-bar {
display: flex;
@@ -1407,19 +1539,23 @@
<!-- Result -->
<div class="panel result is-hidden" id="state-result">
- <model-viewer
- id="viewer"
- camera-controls
- auto-rotate
- auto-rotate-delay="0"
- rotation-per-second="18deg"
- shadow-intensity="1"
- exposure="1"
- ar
- ar-modes="webxr scene-viewer quick-look"
- interaction-prompt="none"
- alt="Generated 3D model"
- ></model-viewer>
+ <div class="viewer-shell" id="viewer-shell">
+ <model-viewer
+ id="viewer"
+ camera-controls
+ auto-rotate
+ auto-rotate-delay="0"
+ rotation-per-second="18deg"
+ shadow-intensity="1.2"
+ shadow-softness="0.9"
+ exposure="1.1"
+ tone-mapping="aces"
+ ar
+ ar-modes="webxr scene-viewer quick-look"
+ interaction-prompt="none"
+ alt="Generated 3D model"
+ ></model-viewer>
+ </div>
<div class="result-bar">
<span class="label" id="result-label"></span>
<span
@@ -1428,6 +1564,31 @@
title="Reference views fused"
></span>
<div class="actions">
+ <button
+ class="btn btn-ghost"
+ type="button"
+ id="cinema"
+ aria-pressed="false"
+ title="Cinema mode — fullscreen turntable for recording (F)"
+ >
+ <svg
+ width="15"
+ height="15"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ stroke-width="2"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ aria-hidden="true"
+ >
+ <path d="M8 3H5a2 2 0 0 0-2 2v3" />
+ <path d="M16 3h3a2 2 0 0 1 2 2v3" />
+ <path d="M8 21H5a2 2 0 0 1-2-2v-3" />
+ <path d="M16 21h3a2 2 0 0 0 2-2v-3" />
+ </svg>
+ Cinema
+ </button>
<div
class="verdict"
id="verdict"
diff --git a/scripts/.check-balances.mjs b/scripts/.check-balances.mjs
new file mode 100644
index 000000000..b0b010a5b
--- /dev/null
+++ b/scripts/.check-balances.mjs
@@ -0,0 +1,20 @@
+import fs from 'node:fs';
+import w3 from '@solana/web3.js';
+import bs58m from 'bs58';
+const bs58 = bs58m.default || bs58m;
+const raw = fs.readFileSync('/workspaces/three.ws/.env.local', 'utf8');
+for (const l of raw.split('\n')) { const m = l.match(/^([A-Z0-9_]+)=(.*)$/); if (m && !(m[1] in process.env)) process.env[m[1]] = m[2].trim().replace(/^["']|["']$/g, ''); }
+const keys = [];
+if (process.env.X402_AGENT_SOLANA_SECRET_BASE58) {
+ try { keys.push(['X402_AGENT_SOLANA_SECRET', w3.Keypair.fromSecretKey(bs58.decode(process.env.X402_AGENT_SOLANA_SECRET_BASE58.trim()))]); } catch (e) { console.log('agent key fail', e.message); }
+}
+try { const arr = JSON.parse(fs.readFileSync(process.env.HOME + '/.config/x402-test-wallets/solana.json', 'utf8')); keys.push(['test-wallet', w3.Keypair.fromSecretKey(Uint8Array.from(arr))]); } catch (e) { console.log('test wallet fail', e.message); }
+try { const b = fs.readFileSync(process.env.HOME + '/.config/x402-test-wallets/prod-demo-solana.b58', 'utf8').trim(); keys.push(['prod-demo', w3.Keypair.fromSecretKey(bs58.decode(b))]); } catch (e) { console.log('prod-demo fail', e.message); }
+const conn = new w3.Connection(process.env.SOLANA_RPC_URL || 'https://api.mainnet-beta.solana.com');
+const USDC = new w3.PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v');
+for (const [name, kp] of keys) {
+ const sol = await conn.getBalance(kp.publicKey).catch(() => 'rpc-err');
+ let usdc = null;
+ try { const r = await conn.getParsedTokenAccountsByOwner(kp.publicKey, { mint: USDC }); usdc = r.value[0]?.account.data.parsed.info.tokenAmount.uiAmount ?? 0; } catch {}
+ console.log(name, kp.publicKey.toBase58(), 'SOL:', typeof sol === 'number' ? sol / 1e9 : sol, 'USDC:', usdc);
+}
diff --git a/scripts/.demo-buy.mjs b/scripts/.demo-buy.mjs
new file mode 100644
index 000000000..c2c1ad0b1
--- /dev/null
+++ b/scripts/.demo-buy.mjs
@@ -0,0 +1,27 @@
+// One-shot demo: real x402 USDC purchase of a premium cosmetic against PROD.
+import fs from 'node:fs';
+import w3 from '@solana/web3.js';
+import bs58m from 'bs58';
+const bs58 = bs58m.default || bs58m;
+const arr = JSON.parse(fs.readFileSync(process.env.HOME + '/.config/x402-test-wallets/solana.json', 'utf8'));
+const kp = w3.Keypair.fromSecretKey(Uint8Array.from(arr));
+process.env.A2A_PAYER_SOLANA_SECRET = bs58.encode(kp.secretKey);
+process.env.X402_BRIDGE_MAX_USDC_MICROS = '600000'; // rare cosmetic is $0.50
+process.env.X402_BRIDGE_PORT = '4402';
+console.log('payer:', kp.publicKey.toBase58());
+
+// Boot the bridge in-process, then drive its /pay SSE endpoint.
+await import('./agent-wallet-x402-bridge.mjs');
+await new Promise((r) => setTimeout(r, 1200));
+
+const ACCOUNT = 'g_threews_live_demo';
+const ITEM = 'skin-crimson';
+const endpoint = `https://three.ws/api/x402/cosmetic-purchase?id=${ITEM}&account=${ACCOUNT}`;
+const res = await fetch('http://localhost:4402/pay', {
+ method: 'POST',
+ headers: { 'content-type': 'application/json' },
+ body: JSON.stringify({ endpoint, method: 'GET' }),
+});
+const text = await res.text();
+console.log(text);
+process.exit(0);
diff --git a/scripts/.demo-owned-shot.mjs b/scripts/.demo-owned-shot.mjs
new file mode 100644
index 000000000..dc37bfaed
--- /dev/null
+++ b/scripts/.demo-owned-shot.mjs
@@ -0,0 +1,32 @@
+// Visual proof on PROD: the demo account opens the shop and sees Crimson
+// Threads as Owned, then previews it live on the avatar.
+import { chromium } from 'playwright';
+const browser = await chromium.launch();
+const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });
+await page.goto('https://three.ws/play', { waitUntil: 'domcontentloaded', timeout: 60_000 });
+await page.evaluate(() => {
+ localStorage.setItem('cc-pid', 'g_threews_live_demo');
+ localStorage.setItem('tws:onchain-primer:done', '1');
+});
+await page.reload({ waitUntil: 'domcontentloaded' });
+await page.waitForSelector('.cc-shop-btn', { state: 'attached', timeout: 90_000 });
+await page.evaluate(() => {
+ document.querySelector('.cc-onboard, .cc-onboard-overlay')?.remove();
+ document.querySelector('.cc-shop-btn').click();
+});
+await page.waitForFunction(() => !!document.querySelector('.cc-shop-card'), { timeout: 30_000 });
+const state = await page.evaluate(() => {
+ const card = document.querySelector('.cc-shop-card[data-id="skin-crimson"]');
+ // Preview the owned skin live on the avatar while we're here.
+ card?.querySelector('.cc-shop-thumb-btn')?.click();
+ return {
+ ownedBadge: card?.querySelector('.cc-shop-action')?.textContent,
+ cardClass: card?.className,
+ status: document.querySelector('.cc-shop-status')?.textContent,
+ };
+});
+console.log(JSON.stringify(state, null, 1));
+await page.waitForTimeout(2500);
+await page.screenshot({ path: '/tmp/prod-owned.png' });
+console.log('screenshot: /tmp/prod-owned.png');
+await browser.close();
diff --git a/scripts/.probe-prod.mjs b/scripts/.probe-prod.mjs
new file mode 100644
index 000000000..06fe1a94d
--- /dev/null
+++ b/scripts/.probe-prod.mjs
@@ -0,0 +1,25 @@
+import { chromium } from 'playwright';
+const browser = await chromium.launch();
+const page = await browser.newPage();
+await page.goto('https://three.ws/play', { waitUntil: 'domcontentloaded', timeout: 60_000 });
+await page.evaluate(() => localStorage.setItem('tws:onchain-primer:done', '1'));
+await page.waitForSelector('.cc-shop-btn', { state: 'attached', timeout: 90_000 });
+await page.evaluate(() => document.querySelector('.cc-shop-btn').click());
+await page.waitForSelector('#cc-shop:not([hidden])', { timeout: 30_000 });
+await page.waitForTimeout(3000);
+const state = await page.evaluate(() => {
+ const buy = document.querySelector('.cc-shop-buy');
+ const card = buy?.closest('.cc-shop-card');
+ const r = buy?.getBoundingClientRect();
+ const cs = buy ? getComputedStyle(buy) : null;
+ return {
+ buys: document.querySelectorAll('.cc-shop-buy').length,
+ rect: r ? { w: r.width, h: r.height, x: r.x, y: r.y } : null,
+ display: cs?.display, visibility: cs?.visibility,
+ panelClass: document.querySelector('.cc-shop')?.className,
+ bodyScroll: document.querySelector('.cc-shop-body')?.scrollHeight,
+ };
+});
+console.log(JSON.stringify(state, null, 1));
+await page.screenshot({ path: '/tmp/prod-shop.png' });
+await browser.close();
diff --git a/scripts/demo-metamask-embedded-x402.mjs b/scripts/demo-metamask-embedded-x402.mjs
new file mode 100644
index 000000000..eb2cbe6e7
--- /dev/null
+++ b/scripts/demo-metamask-embedded-x402.mjs
@@ -0,0 +1,247 @@
+#!/usr/bin/env node
+// demo-metamask-embedded-x402 — a user-generated MetaMask embedded wallet pays
+// a three.ws x402 endpoint, settled in USDC on Solana mainnet.
+//
+// This is the hosted "generate your own MetaMask agent wallet" flow, end to
+// end, using the path MetaMask points integrators at (the Embedded Wallets
+// Node SDK — https://docs.metamask.io/embedded-wallets/sdk/node):
+//
+// 1. The platform mints a JWT for the signed-in user (here: a demo RS256
+// token for DEMO_USER_SUB — in production, three.ws's own JWKS-backed
+// token for the session user).
+// 2. @web3auth/node-sdk connect() → MetaMask's network verifies the JWT and
+// derives the user's deterministic ed25519 key. Same sub → same wallet,
+// every time, on any host. Nothing is stored on three.ws.
+// 3. The returned @solana/kit signer drives the standard x402 exact-scheme
+// payment (the same @x402/svm flow the agent-wallet bridge uses): 402
+// challenge → partially-signed SPL TransferChecked → X-PAYMENT → the
+// endpoint's facilitator co-signs and settles on Solana mainnet.
+//
+// If the wallet holds less USDC than the endpoint's price and
+// A2A_PAYER_SOLANA_SECRET (or the dev keypair at
+// ~/.config/x402-test-wallets/solana.json) is available, the script tops it
+// up first so the demo is one command.
+//
+// Demo credentials: the clientId, authConnectionId (w3a-node-demo-sol), and
+// RS256 signing key are Web3Auth's PUBLIC demo credentials from their
+// official examples (Web3Auth/web3auth-node-examples, MIT). Anyone can mint
+// any sub against them — fine for a demo wallet holding cents, never for
+// production. Production needs a (free, self-serve) MetaMask Developer
+// Dashboard project: our own clientId + an auth connection pointing at a
+// three.ws JWKS endpoint.
+//
+// Run: node scripts/demo-metamask-embedded-x402.mjs [topic]
+// DEMO_USER_SUB override the demo user id (default threews-demo-agent-001)
+// DEMO_ENDPOINT override the paid endpoint (default prod crypto-intel)
+
+import { readFileSync } from 'node:fs';
+import { homedir } from 'node:os';
+import jwt from 'jsonwebtoken';
+import bs58 from 'bs58';
+
+const TOPIC = process.argv[2] || 'solana';
+const ENDPOINT = process.env.DEMO_ENDPOINT || 'https://three.ws/api/x402/crypto-intel';
+const USER_SUB = process.env.DEMO_USER_SUB || 'threews-demo-agent-001';
+const SOLANA_RPC_URL = process.env.SOLANA_RPC_URL || 'https://api.mainnet-beta.solana.com';
+const USDC_MINT = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
+
+// Web3Auth public demo credentials (official node examples, sapphire_devnet).
+const DEMO_CLIENT_ID =
+ 'BFcLTVqWlTSpBBaELDPSz4_LFgG8Nf8hEltPlf3QeUG_88GDrQSw82fSjjYj5x4F3ys3ghMq8-InU7Azx7NbFSs';
+const DEMO_AUTH_CONNECTION = 'w3a-node-demo-sol';
+const DEMO_JWT_KID = '2ma4enu1kdvw5bo9xsfpi3gcjzrt6q78yl0h';
+const DEMO_JWT_KEY_URL =
+ 'https://raw.githubusercontent.com/Web3Auth/web3auth-node-examples/main/solana-quick-start/privateKey.pem';
+
+function log(step, msg) {
+ console.log(`\x1b[35m[${step}]\x1b[0m ${msg}`);
+}
+
+// ── 1. "Platform login" — mint the user's JWT ───────────────────────────────
+
+async function mintDemoIdToken() {
+ const res = await fetch(DEMO_JWT_KEY_URL, { signal: AbortSignal.timeout(10_000) });
+ if (!res.ok) throw new Error(`could not fetch the public demo JWT key (HTTP ${res.status})`);
+ const pem = await res.text();
+ return jwt.sign(
+ {
+ sub: USER_SUB,
+ name: 'three.ws demo agent',
+ email: '[email protected]',
+ aud: 'urn:api-web3auth-io',
+ iss: 'https://web3auth.io',
+ iat: Math.floor(Date.now() / 1000),
+ exp: Math.floor(Date.now() / 1000) + 3600,
+ },
+ pem,
+ { algorithm: 'RS256', keyid: DEMO_JWT_KID },
+ );
+}
+
+// ── 2. Derive the MetaMask embedded wallet from the JWT ─────────────────────
+
+async function deriveEmbeddedWallet(idToken) {
+ const { Web3Auth } = await import('@web3auth/node-sdk');
+ const web3auth = new Web3Auth({ clientId: DEMO_CLIENT_ID, web3AuthNetwork: 'sapphire_devnet' });
+ await web3auth.init();
+ const result = await web3auth.connect({ authConnectionId: DEMO_AUTH_CONNECTION, idToken });
+ if (result.chainNamespace !== 'solana' || !result.signer?.address) {
+ throw new Error('embedded wallet connect did not return a Solana signer');
+ }
+ return result.signer; // @solana/kit TransactionSigner — address, signTransactions
+}
+
+// ── 3. Balances + auto top-up from the local dev payer ──────────────────────
+
+async function usdcBalance(conn, ownerBase58) {
+ const { PublicKey } = await import('@solana/web3.js');
+ const { getAssociatedTokenAddressSync } = await import('@solana/spl-token');
+ try {
+ const ata = getAssociatedTokenAddressSync(new PublicKey(USDC_MINT), new PublicKey(ownerBase58));
+ const bal = await conn.getTokenAccountBalance(ata);
+ return BigInt(bal?.value?.amount || '0');
+ } catch {
+ return 0n; // no ATA yet
+ }
+}
+
+function loadDevPayerKeypairBytes() {
+ const envSecret = process.env.A2A_PAYER_SOLANA_SECRET || '';
+ if (envSecret) {
+ const trimmed = envSecret.trim();
+ if (trimmed.startsWith('[')) return Uint8Array.from(JSON.parse(trimmed));
+ try { return bs58.decode(trimmed); } catch { /* try base64 */ }
+ return new Uint8Array(Buffer.from(trimmed, 'base64'));
+ }
+ const path = `${homedir()}/.config/x402-test-wallets/solana.json`;
+ return Uint8Array.from(JSON.parse(readFileSync(path, 'utf8')));
+}
+
+async function topUpUsdc(conn, toBase58, atomics) {
+ const { Keypair, PublicKey, Transaction, sendAndConfirmTransaction } = await import('@solana/web3.js');
+ const {
+ getAssociatedTokenAddressSync, createTransferCheckedInstruction,
+ createAssociatedTokenAccountIdempotentInstruction,
+ } = await import('@solana/spl-token');
+ const payer = Keypair.fromSecretKey(loadDevPayerKeypairBytes());
+ const mint = new PublicKey(USDC_MINT);
+ const to = new PublicKey(toBase58);
+ const fromAta = getAssociatedTokenAddressSync(mint, payer.publicKey);
+ const toAta = getAssociatedTokenAddressSync(mint, to);
+ const tx = new Transaction().add(
+ createAssociatedTokenAccountIdempotentInstruction(payer.publicKey, toAta, to, mint),
+ createTransferCheckedInstruction(fromAta, mint, toAta, payer.publicKey, atomics, 6),
+ );
+ const sig = await sendAndConfirmTransaction(conn, tx, [payer], { commitment: 'confirmed' });
+ log('fund', `topped up ${Number(atomics) / 1e6} USDC from ${payer.publicKey.toBase58()} — tx ${sig}`);
+}
+
+// ── 4. The x402 payment (same exact-scheme flow as the agent-wallet bridge) ──
+
+function isSolanaExactAccept(a) {
+ return a && a.scheme === 'exact' && String(a.network || '').startsWith('solana:') && a.extra?.feePayer;
+}
+
+async function fetch402(endpoint, body) {
+ const res = await fetch(endpoint, {
+ method: 'POST',
+ headers: { accept: 'application/json', 'content-type': 'application/json' },
+ body: JSON.stringify(body),
+ });
+ if (res.status !== 402) {
+ throw new Error(`expected a 402 challenge from ${endpoint}, got ${res.status}`);
+ }
+ const challenge = await res.json();
+ const accept = (challenge.accepts || []).find(isSolanaExactAccept);
+ if (!accept) throw new Error('endpoint does not accept exact-scheme USDC on Solana');
+ return { challenge, accept };
+}
+
+async function payWithEmbeddedWallet(signer, endpoint, body) {
+ const { challenge, accept } = await fetch402(endpoint, body);
+ log('x402', `402 challenge: $${(Number(accept.amount) / 1e6).toFixed(2)} USDC to ${accept.payTo}`);
+
+ const { ExactSvmScheme } = await import('@x402/svm');
+ const scheme = new ExactSvmScheme(signer, { rpcUrl: SOLANA_RPC_URL });
+ const built = await scheme.createPaymentPayload(2, accept);
+ log('x402', `embedded wallet ${signer.address} signed the SPL transfer`);
+
+ const paymentPayload = {
+ x402Version: built.x402Version || 2,
+ scheme: 'exact',
+ network: accept.network,
+ resource: { url: endpoint, mimeType: 'application/json' },
+ accepted: accept,
+ payload: built.payload,
+ };
+ const declaredA = challenge?.extensions?.['builder-code']?.info?.a;
+ if (declaredA && /^[a-z0-9_]{1,32}$/.test(declaredA)) {
+ paymentPayload.extensions = {
+ 'builder-code': { a: declaredA, w: 'metamask_embedded', s: ['embedded_wallet_demo'] },
+ };
+ }
+
+ const paidRes = await fetch(endpoint, {
+ method: 'POST',
+ headers: {
+ accept: 'application/json',
+ 'content-type': 'application/json',
+ 'x-payment': Buffer.from(JSON.stringify(paymentPayload), 'utf8').toString('base64'),
+ },
+ body: JSON.stringify(body),
+ });
+ const text = await paidRes.text();
+ let result;
+ try { result = JSON.parse(text); } catch { result = { raw: text.slice(0, 500) }; }
+ if (!paidRes.ok) {
+ throw new Error(`payment rejected (HTTP ${paidRes.status}): ${result?.error?.message || result?.error || text.slice(0, 200)}`);
+ }
+ let settlement = null;
+ const header = paidRes.headers.get('x-payment-response');
+ if (header) {
+ try { settlement = JSON.parse(Buffer.from(header, 'base64').toString('utf8')); } catch { /* keep null */ }
+ }
+ return { result, settlement, amount: accept.amount };
+}
+
+// ── main ─────────────────────────────────────────────────────────────────────
+
+async function main() {
+ const { Connection } = await import('@solana/web3.js');
+ const conn = new Connection(SOLANA_RPC_URL, 'confirmed');
+
+ log('login', `minting platform JWT for user "${USER_SUB}"…`);
+ const idToken = await mintDemoIdToken();
+
+ log('wallet', 'deriving MetaMask embedded wallet from the JWT…');
+ const signer = await deriveEmbeddedWallet(idToken);
+ log('wallet', `address: ${signer.address} (deterministic for this user — re-run to get the same one)`);
+
+ const { accept } = await fetch402(ENDPOINT, { topic: TOPIC });
+ const price = BigInt(accept.amount);
+ let balance = await usdcBalance(conn, signer.address);
+ log('wallet', `USDC balance: $${(Number(balance) / 1e6).toFixed(2)} (price: $${(Number(price) / 1e6).toFixed(2)})`);
+
+ if (balance < price) {
+ const topUp = price * 5n > 50_000n ? price * 5n : 50_000n; // a few calls' worth, min $0.05
+ log('fund', 'balance below price — topping up from the local dev payer…');
+ await topUpUsdc(conn, signer.address, topUp);
+ balance = await usdcBalance(conn, signer.address);
+ }
+
+ log('x402', `paying ${ENDPOINT} (topic: ${TOPIC})…`);
+ const { result, settlement, amount } = await payWithEmbeddedWallet(signer, ENDPOINT, { topic: TOPIC });
+
+ console.log('');
+ log('done', `✓ $${(Number(amount) / 1e6).toFixed(2)} USDC settled on Solana mainnet`);
+ if (settlement?.transaction) {
+ log('done', `tx: https://solscan.io/tx/${settlement.transaction}`);
+ }
+ log('done', `paid intel: [${result.signal}] ${result.headline}`);
+ console.log('\nFull paid response:\n' + JSON.stringify(result, null, 2));
+}
+
+main().catch((err) => {
+ console.error(`\x1b[31mERROR:\x1b[0m ${err.message}`);
+ process.exit(1);
+});
diff --git a/scripts/verify-cosmetics-buy.mjs b/scripts/verify-cosmetics-buy.mjs
index 4a8f40be3..f0dc8148a 100644
--- a/scripts/verify-cosmetics-buy.mjs
+++ b/scripts/verify-cosmetics-buy.mjs
@@ -34,13 +34,22 @@ await page.evaluate(() => {
// world; the handler itself is wired at construction — invoke it directly.
document.querySelector('.cc-shop-btn').click();
});
-await page.waitForSelector('#cc-shop:not([hidden])', { timeout: 30_000 });
+// Function-based waits — selector state checks proved flaky against the live
+// site (resolved-but-"not visible" stalls on a plainly visible node).
+await page.waitForFunction(() => {
+ const n = document.getElementById('cc-shop');
+ return n && !n.hidden;
+}, { timeout: 30_000 });
// Wait for the real catalog to render, then click a premium Buy.
-await page.waitForSelector('.cc-shop-card .cc-shop-buy', { timeout: 30_000 });
-const buyLabel = await page.locator('.cc-shop-buy').first().getAttribute('aria-label');
+await page.waitForFunction(() => !!document.querySelector('.cc-shop-card .cc-shop-buy'), { timeout: 30_000 });
+const buyLabel = await page.evaluate(() => {
+ const b = document.querySelector('.cc-shop-buy');
+ const label = b.getAttribute('aria-label');
+ b.click();
+ return label;
+});
console.log('clicking:', buyLabel);
-await page.locator('.cc-shop-buy').first().click();
// Success = the x402 SDK was fetched and window.X402.pay mounted its modal.
await page.waitForFunction(() => window.X402 && typeof window.X402.pay === 'function', { timeout: 30_000 });
diff --git a/src/forge-reveal.js b/src/forge-reveal.js
new file mode 100644
index 000000000..5757db764
--- /dev/null
+++ b/src/forge-reveal.js
@@ -0,0 +1,342 @@
+// Forge reveal — the cinematic materialize entrance for a forged model.
+//
+// Plays in its own WebGL overlay above the result <model-viewer>: the mesh
+// resolves through a rising noise dissolve whose frontier glows in the page
+// accent while a wireframe ghost fades out, the camera dollies in, and a
+// contact shadow blooms underneath. Once the dissolve lands (and the standing
+// viewer below reports loaded) the overlay crossfades away — same GLB, already
+// in the HTTP cache, so the swap is seamless.
+//
+// Presentation only, never a dependency: any failure (no WebGL, loader error,
+// timeout) resolves immediately and the standing viewer is untouched. Honors
+// prefers-reduced-motion by not playing at all.
+
+const REVEAL_DELAY_MS = 200; // beat before the dissolve starts
+const DISSOLVE_MS = 2100; // wireframe ghost → textured surface
+const MIN_HOLD_MS = 450; // settle time after the dissolve completes
+const MAX_WAIT_MS = 6000; // cap on waiting for the viewer underneath
+const LOAD_TIMEOUT_MS = 12000; // give up on the GLB fetch beyond this
+const FADE_OUT_MS = 420; // overlay crossfade duration (mirrored in CSS)
+const TURNTABLE_DEG_PER_S = 14; // continuous yaw across the whole sequence
+
+// One reveal at a time — opening another creation mid-sequence cancels the
+// running one before its overlay can fight the new one for the same shell.
+let activeCancel = null;
+
+function accentColor() {
+ const v = getComputedStyle(document.documentElement).getPropertyValue('--accent').trim();
+ return v || '#4fc3ff';
+}
+
+const easeInOut = (t) => (t < 0.5 ? 2 * t * t : 1 - (-2 * t + 2) ** 2 / 2);
+const easeOut = (t) => 1 - (1 - t) ** 3;
+
+// GLSL injected into every material of the loaded model via onBeforeCompile:
+// a world-space value noise drives a discard threshold (the dissolve) and an
+// additive emissive band right at the frontier (the glow).
+const NOISE_GLSL = /* glsl */ `
+ uniform float uDissolve;
+ uniform vec3 uEdgeColor;
+ uniform float uEdgeWidth;
+ varying vec3 vForgeWorld;
+ float forgeHash( vec3 p ) {
+ p = fract( p * 0.3183099 + vec3( 0.71, 0.113, 0.419 ) );
+ p *= 17.0;
+ return fract( p.x * p.y * p.z * ( p.x + p.y + p.z ) );
+ }
+ float forgeNoise( vec3 x ) {
+ vec3 i = floor( x );
+ vec3 f = fract( x );
+ f = f * f * ( 3.0 - 2.0 * f );
+ return mix(
+ mix( mix( forgeHash( i ), forgeHash( i + vec3( 1, 0, 0 ) ), f.x ),
+ mix( forgeHash( i + vec3( 0, 1, 0 ) ), forgeHash( i + vec3( 1, 1, 0 ) ), f.x ), f.y ),
+ mix( mix( forgeHash( i + vec3( 0, 0, 1 ) ), forgeHash( i + vec3( 1, 0, 1 ) ), f.x ),
+ mix( forgeHash( i + vec3( 0, 1, 1 ) ), forgeHash( i + vec3( 1, 1, 1 ) ), f.x ), f.y ),
+ f.z );
+ }
+`;
+
+function patchMaterial(material, uniforms) {
+ material.onBeforeCompile = (shader) => {
+ shader.uniforms.uDissolve = uniforms.uDissolve;
+ shader.uniforms.uEdgeColor = uniforms.uEdgeColor;
+ shader.uniforms.uEdgeWidth = uniforms.uEdgeWidth;
+ shader.vertexShader = shader.vertexShader
+ .replace('void main() {', 'varying vec3 vForgeWorld;\nvoid main() {')
+ .replace(
+ '#include <project_vertex>',
+ '#include <project_vertex>\n\tvForgeWorld = ( modelMatrix * vec4( transformed, 1.0 ) ).xyz;',
+ );
+ shader.fragmentShader = shader.fragmentShader
+ .replace('void main() {', `${NOISE_GLSL}\nvoid main() {`)
+ .replace(
+ '#include <clipping_planes_fragment>',
+ [
+ '#include <clipping_planes_fragment>',
+ '\tfloat forgeN = forgeNoise( vForgeWorld * 3.2 );',
+ '\tfloat forgeReveal = uDissolve * ( 1.0 + uEdgeWidth * 2.0 ) - uEdgeWidth;',
+ '\tif ( forgeN > forgeReveal + uEdgeWidth ) discard;',
+ ].join('\n'),
+ )
+ .replace(
+ '#include <dithering_fragment>',
+ [
+ '\tfloat forgeBand = smoothstep( forgeReveal - uEdgeWidth, forgeReveal + uEdgeWidth, forgeN );',
+ '\tgl_FragColor.rgb += uEdgeColor * forgeBand * 2.2;',
+ '#include <dithering_fragment>',
+ ].join('\n'),
+ );
+ };
+ // Distinct cache key so three doesn't reuse the unpatched program.
+ material.customProgramCacheKey = () => 'forge-dissolve';
+ material.needsUpdate = true;
+}
+
+// Soft radial contact shadow — a canvas gradient on a ground plane, no
+// shadow-map pass needed for a single hero object.
+function makeContactShadow(THREE) {
+ const c = document.createElement('canvas');
+ c.width = c.height = 256;
+ const ctx = c.getContext('2d');
+ const g = ctx.createRadialGradient(128, 128, 8, 128, 128, 124);
+ g.addColorStop(0, 'rgba(0,0,0,0.62)');
+ g.addColorStop(0.6, 'rgba(0,0,0,0.22)');
+ g.addColorStop(1, 'rgba(0,0,0,0)');
+ ctx.fillStyle = g;
+ ctx.fillRect(0, 0, 256, 256);
+ const tex = new THREE.CanvasTexture(c);
+ const mat = new THREE.MeshBasicMaterial({
+ map: tex,
+ transparent: true,
+ opacity: 0,
+ depthWrite: false,
+ });
+ const mesh = new THREE.Mesh(new THREE.PlaneGeometry(4.2, 4.2), mat);
+ mesh.rotation.x = -Math.PI / 2;
+ mesh.position.y = 0.001;
+ mesh.renderOrder = -1;
+ return mesh;
+}
+
+/**
+ * Play the materialize sequence over `container` (made position:relative if
+ * static). `waitFor` is an optional promise the overlay holds its turntable
+ * for before fading — pass the underlying model-viewer's load so the swap
+ * never reveals an empty viewer. Resolves with the final camera orbit
+ * ({ azimuthDeg, polarDeg }) for handoff, or null when skipped/cancelled.
+ */
+export async function playForgeReveal({ container, glbUrl, waitFor }) {
+ if (!container || !glbUrl) return null;
+ if (typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion: reduce)').matches) {
+ return null;
+ }
+ if (activeCancel) activeCancel();
+
+ let cancelled = false;
+ let cleanupFns = [];
+ const cancel = () => {
+ cancelled = true;
+ for (const fn of cleanupFns.splice(0)) {
+ try {
+ fn();
+ } catch {
+ /* disposal best-effort */
+ }
+ }
+ };
+ activeCancel = cancel;
+
+ try {
+ const [THREE, { GLTFLoader }, { RoomEnvironment }] = await Promise.all([
+ import('three'),
+ import('three/addons/loaders/GLTFLoader.js'),
+ import('three/addons/environments/RoomEnvironment.js'),
+ ]);
+ if (cancelled) return null;
+
+ // Fetch + parse the GLB first — the overlay only ever appears with a
+ // model in hand, so a slow or failed load degrades to the plain viewer.
+ const gltf = await Promise.race([
+ new GLTFLoader().loadAsync(glbUrl),
+ new Promise((resolve) => setTimeout(() => resolve(null), LOAD_TIMEOUT_MS)),
+ ]);
+ if (!gltf || cancelled) return null;
+
+ // Overlay scaffold ----------------------------------------------------
+ if (getComputedStyle(container).position === 'static') {
+ container.style.position = 'relative';
+ }
+ const overlay = document.createElement('div');
+ overlay.className = 'forge-reveal-overlay';
+ overlay.setAttribute('aria-hidden', 'true');
+ container.appendChild(overlay);
+ cleanupFns.push(() => overlay.remove());
+
+ const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
+ renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 2));
+ renderer.toneMapping = THREE.ACESFilmicToneMapping;
+ renderer.toneMappingExposure = 1.12;
+ overlay.appendChild(renderer.domElement);
+ cleanupFns.push(() => renderer.dispose());
+
+ const scene = new THREE.Scene();
+ const pmrem = new THREE.PMREMGenerator(renderer);
+ const envTex = pmrem.fromScene(new RoomEnvironment(), 0.04).texture;
+ pmrem.dispose();
+ scene.environment = envTex;
+ cleanupFns.push(() => envTex.dispose());
+
+ const camera = new THREE.PerspectiveCamera(32, 1, 0.05, 60);
+ const target = new THREE.Vector3(0, 0.62, 0);
+
+ const sizeToContainer = () => {
+ const w = Math.max(1, container.clientWidth);
+ const h = Math.max(1, container.clientHeight);
+ renderer.setSize(w, h, false);
+ camera.aspect = w / h;
+ camera.updateProjectionMatrix();
+ };
+ sizeToContainer();
+ const ro = new ResizeObserver(sizeToContainer);
+ ro.observe(container);
+ cleanupFns.push(() => ro.disconnect());
+
+ // Model: center on origin, ground at y=0, fit to a ~2-unit frame.
+ const model = gltf.scene;
+ const box = new THREE.Box3().setFromObject(model);
+ const size = box.getSize(new THREE.Vector3());
+ const center = box.getCenter(new THREE.Vector3());
+ const scale = 2 / Math.max(size.x, size.y, size.z, 0.0001);
+ model.scale.setScalar(scale);
+ model.position.set(-center.x * scale, -box.min.y * scale, -center.z * scale);
+
+ const uniforms = {
+ uDissolve: { value: 0 },
+ uEdgeColor: { value: new THREE.Color(accentColor()) },
+ uEdgeWidth: { value: 0.045 },
+ };
+ model.traverse((node) => {
+ if (!node.isMesh) return;
+ const mats = Array.isArray(node.material) ? node.material : [node.material];
+ for (const m of mats) if (m) patchMaterial(m, uniforms);
+ });
+
+ // Wireframe ghost — the model's silhouette before it has a surface.
+ const ghostMat = new THREE.MeshBasicMaterial({
+ color: new THREE.Color(accentColor()),
+ wireframe: true,
+ transparent: true,
+ opacity: 0,
+ depthWrite: false,
+ });
+ const ghost = model.clone(true);
+ ghost.traverse((node) => {
+ if (node.isMesh) node.material = ghostMat;
+ });
+ ghost.scale.multiplyScalar(1.002);
+
+ const shadow = makeContactShadow(THREE);
+ scene.add(model, ghost, shadow);
+ cleanupFns.push(() => {
+ scene.traverse((node) => {
+ if (node.isMesh) {
+ node.geometry?.dispose?.();
+ const mats = Array.isArray(node.material) ? node.material : [node.material];
+ for (const m of mats) m?.dispose?.();
+ }
+ });
+ });
+
+ // Timeline --------------------------------------------------------------
+ const startAzimuth = -0.7; // radians; drifts continuously from here
+ let azimuth = startAzimuth;
+ let polar = Math.PI / 2.6;
+
+ const animateUntil = (predicate, onFrame) =>
+ new Promise((resolve) => {
+ const t0 = performance.now();
+ const frame = (now) => {
+ if (cancelled) return resolve();
+ const t = now - t0;
+ onFrame(t, now);
+ if (predicate(t)) return resolve();
+ requestAnimationFrame(frame);
+ };
+ requestAnimationFrame(frame);
+ });
+
+ const renderFrame = (t) => {
+ const total = (t + REVEAL_DELAY_MS) / 1000;
+ azimuth = startAzimuth + THREE.MathUtils.degToRad(TURNTABLE_DEG_PER_S) * total;
+ const dolly = easeOut(Math.min(1, t / (DISSOLVE_MS + MIN_HOLD_MS)));
+ const radius = 4.4 - 1.15 * dolly;
+ polar = Math.PI / 2.6 + 0.12 * dolly;
+ camera.position.set(
+ target.x + radius * Math.sin(polar) * Math.sin(azimuth),
+ target.y + radius * Math.cos(polar),
+ target.z + radius * Math.sin(polar) * Math.cos(azimuth),
+ );
+ camera.lookAt(target);
+ renderer.render(scene, camera);
+ };
+
+ // Beat 1: the ghost rises out of nothing.
+ await animateUntil(
+ (t) => t >= REVEAL_DELAY_MS,
+ (t) => {
+ ghostMat.opacity = 0.3 * easeOut(Math.min(1, t / REVEAL_DELAY_MS));
+ renderFrame(t - REVEAL_DELAY_MS);
+ },
+ );
+ if (cancelled) return null;
+
+ // Beat 2: the dissolve sweeps the surface in; the ghost yields to it.
+ await animateUntil(
+ (t) => t >= DISSOLVE_MS,
+ (t) => {
+ const d = easeInOut(Math.min(1, t / DISSOLVE_MS));
+ uniforms.uDissolve.value = d;
+ ghostMat.opacity = 0.3 * (1 - d);
+ shadow.material.opacity = 0.62 * d;
+ renderFrame(t);
+ },
+ );
+ if (cancelled) return null;
+ uniforms.uDissolve.value = 1;
+ ghostMat.opacity = 0;
+
+ // Beat 3: hold the turntable until the viewer underneath is ready.
+ const ready = Promise.race([
+ Promise.resolve(waitFor).catch(() => {}),
+ new Promise((resolve) => setTimeout(resolve, MAX_WAIT_MS)),
+ ]);
+ let viewerReady = false;
+ ready.then(() => {
+ viewerReady = true;
+ });
+ await animateUntil(
+ (t) => t >= MIN_HOLD_MS && viewerReady,
+ (t) => renderFrame(DISSOLVE_MS + t),
+ );
+ if (cancelled) return null;
+
+ // Beat 4: crossfade out — keep rendering through the fade so the
+ // turntable never freezes mid-swap.
+ overlay.classList.add('is-fading');
+ await animateUntil(
+ (t) => t >= FADE_OUT_MS,
+ (t) => renderFrame(DISSOLVE_MS + MIN_HOLD_MS + t),
+ );
+
+ const azimuthDeg = THREE.MathUtils.radToDeg(azimuth) % 360;
+ const polarDeg = THREE.MathUtils.radToDeg(polar);
+ cancel();
+ return { azimuthDeg, polarDeg };
+ } catch {
+ cancel();
+ return null;
+ } finally {
+ if (activeCancel === cancel) activeCancel = null;
+ }
+}
diff --git a/src/forge.js b/src/forge.js
index 571fa37b3..c98f44bfc 100644
--- a/src/forge.js
+++ b/src/forge.js
@@ -59,6 +59,8 @@ const els = {
},
cancel: document.getElementById('cancel'),
viewer: document.getElementById('viewer'),
+ viewerShell: document.getElementById('viewer-shell'),
+ cinema: document.getElementById('cinema'),
resultLabel: document.getElementById('result-label'),
resultViews: document.getElementById('result-views'),
verdict: document.getElementById('verdict'),
@@ -106,6 +108,19 @@ let userPickedEngine = false;
// by the page. Signed-in users can instead save it server-side in Account.
let providerKey = '';
+// Cinema mode — distraction-free fullscreen turntable for recording/sharing.
+// Toggled by the result-bar button or F; Esc always exits. Rotation slows so
+// the loop reads as deliberate, not busy.
+let cinemaOn = false;
+function setCinema(on) {
+ if (!els.cinema || on === cinemaOn) return;
+ cinemaOn = on;
+ els.states.result.classList.toggle('is-cinema', on);
+ document.body.classList.toggle('forge-cinema', on);
+ els.cinema.setAttribute('aria-pressed', String(on));
+ els.viewer.setAttribute('rotation-per-second', on ? '10deg' : '18deg');
+}
+
// Friendly engine labels + where to mint a key, keyed by backend id.
const ENGINE_LABELS = { nvidia: 'Free', trellis: 'Fast', meshy: 'Meshy', tripo: 'Tripo', hunyuan3d: 'Hunyuan3D', triposg: 'TripoSG' };
const KEY_HINTS = {
@@ -152,14 +167,21 @@ const CLIENT_ID = (() => {
const CLIENT_HEADERS = { 'x-forge-client': CLIENT_ID };
+const REDUCED_MOTION =
+ typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion: reduce)').matches;
+
function showState(name) {
for (const [key, node] of Object.entries(els.states)) {
node.classList.toggle('is-hidden', key !== name);
}
+ // Leaving the result state always leaves cinema mode with it.
+ if (name !== 'result' && cinemaOn) setCinema(false);
}
function setStep(step, state) {
if (els.steps[step]) els.steps[step].dataset.state = state;
+ // The scanline sweep runs exactly while the mesh step is live.
+ if (step === 'mesh') els.genPreview.classList.toggle('is-reconstructing', state === 'active');
}
function setStepLabel(step, text) {
@@ -929,6 +951,36 @@ function setViewsBadge(meta) {
els.resultViews.classList.remove('is-hidden');
}
+// Materialize entrance — conceal the standing viewer, play the WebGL dissolve
+// reveal over it (src/forge-reveal.js), then crossfade back and hand the
+// final camera angle to model-viewer so the turntable continues seamlessly.
+// Presentation only: any failure restores the viewer immediately.
+let revealSeq = 0;
+async function playMaterialize(glbUrl) {
+ if (REDUCED_MOTION || !els.viewerShell) return;
+ const seq = ++revealSeq;
+ els.viewer.style.opacity = '0';
+ try {
+ const { playForgeReveal } = await import('./forge-reveal.js');
+ const viewerLoaded = new Promise((resolve) => {
+ if (els.viewer.loaded) return resolve();
+ els.viewer.addEventListener('load', resolve, { once: true });
+ });
+ const end = await playForgeReveal({
+ container: els.viewerShell,
+ glbUrl,
+ waitFor: viewerLoaded,
+ });
+ if (seq === revealSeq && end && Number.isFinite(end.azimuthDeg)) {
+ els.viewer.cameraOrbit = `${end.azimuthDeg.toFixed(1)}deg ${end.polarDeg.toFixed(1)}deg auto`;
+ }
+ } catch {
+ // The standing viewer is the fallback — nothing to surface.
+ } finally {
+ if (seq === revealSeq) els.viewer.style.opacity = '1';
+ }
+}
+
function showResult(glbUrl, label, meta) {
stopElapsed();
resetVerdict();
@@ -944,6 +996,7 @@ function showResult(glbUrl, label, meta) {
// Cross-link into Parts Studio with this exact model pre-loaded.
if (els.segmentBtn) els.segmentBtn.href = `/segment?mesh=${encodeURIComponent(glbUrl)}`;
showState('result');
+ playMaterialize(glbUrl);
// Hand the live model to the Stylize panel (src/forge-stylize.js) so its
// one-click geometric filters operate on the current source mesh.
document.dispatchEvent(
@@ -1426,6 +1479,23 @@ els.download.addEventListener('click', () => {
sendFeedback({ downloaded: true });
});
+els.cinema?.addEventListener('click', () => setCinema(!cinemaOn));
+
+document.addEventListener('keydown', (e) => {
+ if (e.key === 'Escape' && cinemaOn) {
+ setCinema(false);
+ return;
+ }
+ if (e.key !== 'f' && e.key !== 'F') return;
+ if (e.metaKey || e.ctrlKey || e.altKey) return;
+ const active = document.activeElement;
+ if (active?.tagName === 'INPUT' || active?.tagName === 'TEXTAREA' || active?.isContentEditable)
+ return;
+ if (els.states.result.classList.contains('is-hidden')) return;
+ e.preventDefault();
+ setCinema(!cinemaOn);
+});
+
if (els.forgeShareBtn) {
els.forgeShareBtn.addEventListener('click', () => {
const origin = location.origin;