How danielquang07/veris works
Veris is a Solana Devnet DEX paired with Veris Shield and a Vietnamese-language scam-message analyzer. The main user flow is to connect a wallet, inspect a token or wallet—or submit a promotional message—then receive a risk report; risky tokens can be blocked before swap/liquidity signing, and reports can be saved on-chain. DEX transactions use Raydium CPMM, while Shield reads token and wallet data and the blacklist from Solana. The README documents the AI service integration and Anchor registry/detector as roadmap programs; source excerpts are partial, so uncertain internal links are omitted.
Main entry points: useTokenGuard.ts Pre-sign guard · page.tsx DEX home · SwapToken.tsx Token swap · ProvideLiquidity.tsx Liquidity tools
Components 24
DEX experience
- DEX home
app/page.tsx - Token swap
components/dex/SwapToken.tsx - Liquidity tools
components/dex/ProvideLiquidity.tsx
Veris Shield
- Shield page
app/shield/page.tsx - Token check API
app/api/token-check/route.ts - Token risk checks
lib/tokenRisk.ts - Wallet scanner
components/shield/WalletScan.tsx - Wallet scan API
app/api/wallet-scan/route.ts - Wallet scan logic
lib/walletScan.ts - Pre-sign guard
hooks/useTokenGuard.ts - Risk decision modal
components/shield/TokenGuardModal.tsx - Token report
components/shield/TokenReportCard.tsx
Message analysis
- Scam check page
app/check-scam/page.tsx - Analyze API
app/api/analyze/route.ts - AI service
ai-service/main.py - Risk analyzer
ai-service/analyzer.py - Analysis report
components/scam-check/ResultCard.tsx
Solana services
- Raydium CPMM
lib/raydium.ts - SCAMREG blacklist
lib/blacklist.ts - Evidence memo builder
lib/writeChain.ts
Anchor roadmap
- Scam detector
anchor/programs/scam_detector/src/instructions.rs - Veris registry
anchor/programs/veris_registry/src/instructions.rs
Other components
- Trader
- Solana Devnet
Connections 31
- Trader → DEX home: opens DEX
- Trader → Shield page: opens Shield
- DEX home → Token swap: offers swap
app/page.tsx - DEX home → Liquidity tools: offers liquidity
app/page.tsx - Token swap → Pre-sign guard: checks token
components/dex/SwapToken.tsx - Liquidity tools → Pre-sign guard: checks token
components/dex/ProvideLiquidity.tsx - Pre-sign guard → Token check API: requests check
hooks/useTokenGuard.ts - Pre-sign guard → Risk decision modal: presents decision
components/dex/SwapToken.tsx - Token swap → Raydium CPMM: builds swap
components/dex/SwapToken.tsx - Liquidity tools → Raydium CPMM: builds transactions
components/dex/ProvideLiquidity.tsx - Raydium CPMM → Solana Devnet: reads and submits
- Shield page → Token report: shows report
app/shield/page.tsx - Shield page → Wallet scanner: offers wallet scan
app/shield/page.tsx - Token report → Evidence memo builder: builds evidence memo
components/shield/TokenReportCard.tsx - Analysis report → Evidence memo builder: builds evidence memo
components/scam-check/ResultCard.tsx - Token report → Solana Devnet: writes report memo
- Analysis report → Solana Devnet: writes message memo
components/scam-check/ResultCard.tsx - Token check API → Token risk checks: checks token
app/api/token-check/route.ts - Token risk checks → SCAMREG blacklist: reads blacklist
lib/tokenRisk.ts - SCAMREG blacklist → Solana Devnet: reads SCAMREG memos
lib/blacklist.ts - Wallet scanner → Wallet scan API: requests scan
components/shield/WalletScan.tsx - Wallet scan API → Wallet scan logic: scans holdings
app/api/wallet-scan/route.ts - Wallet scan API → SCAMREG blacklist: checks blacklist
app/api/wallet-scan/route.ts - Wallet scanner → Solana Devnet: submits revoke
- Scam check page → Analyze API: submits message
- Analyze API → AI service: proxies analysis
- AI service → Risk analyzer: analyzes message
ai-service/main.py - Scam check page → Analysis report: shows result
app/check-scam/page.tsx - AI service → Solana Devnet: reads chain context
- Scam detector → Solana Devnet: roadmap deployment
- Veris registry → Solana Devnet: roadmap deployment