Commit 398b18e
Add persistent SQLite usage, x402 payment paywall, and MCP server
- SQLite persistence (better-sqlite3): wallet_usage table survives pm2
restarts, atomic increment via transaction, admin wallet auto-seeded
- x402 paid endpoints (/api/v1/paid/*): agents/bots pay $0.01 USDC per
scan via Coinbase facilitator, no JWT required
- MCP server (mcp-server.ts): stdio JSON-RPC 2.0 with daybreak_scan_deployer
and daybreak_scan_wallet tools, auto-pays x402 when private key configured
- Frontend 402 handling: PaymentPrompt component shows when free scans
exhausted, wallet signs x402 payment, retries via paid endpoint
- Rate limit returns 402 (not 429) with x402 payment details + paid
endpoint redirect
- Enhanced rug detection (Phase 3.5): mint/freeze authority, deployer
holdings, top holder %, bundled launch detection with score penalties
- Bug fixes: cache mutation between requests, scans_limit default 10→3,
MCP dual stdin consumer conflict, payment error visibility in frontend
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d134ec4 commit 398b18e
18 files changed
Lines changed: 1581 additions & 50 deletions
File tree
- backend
- src
- middleware
- routes
- services
- web/src
- pages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments