Skip to content

Commit 398b18e

Browse files
Jpatchingclaude
andcommitted
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ target/
99
deployment.json
1010
*:Zone.Identifier
1111
data.db
12+
backend/data/
1213
*.log
1314
backend/node_modules/
1415
backend/dist/

backend/.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ HELIUS_API_KEY=your_helius_key_here
22
SOLANA_RPC_URL=https://mainnet.helius-rpc.com/?api-key=YOUR_KEY
33
PORT=3001
44
JWT_SECRET=your_random_64_char_hex_secret
5+
TREASURY_WALLET=5rSwWRfqGvnQaiJpW3sb3YKLbxtjVxgc4yrvrHNeNwE2
6+
X402_PRICE_USD=0.01
7+
X402_NETWORK=solana

0 commit comments

Comments
 (0)