Skip to content
Β 
Β 

Latest commit

Β 

History

154 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Golden Raccoon

Golden Raccoon 🦝

Web3 risk intelligence β€” understand any token before you trade.

πŸŽ₯ Screenshot placeholder: add a GIF or image of the AI Risk Report UI here.

Golden Raccoon is an open-source, approval-only risk-intelligence platform that analyses blockchain tokens across EVM and Stellar networks. Enter a contract address, asset identifier, or DexScreener link and receive a structured AI Risk Report with scores, evidence, and suggested actions β€” no financial advice, just data-driven signals.

πŸ‘‰ Live demo (testnet) β€” try it without setting up a local environment.

Feature Status
Token contract / DexScreener analysis βœ… V1
AI Risk Report (buy risk %, confidence, verdict) βœ… V1
Onchain / Social / News / Portfolio agents βœ… V1
Deterministic Decision Agent βœ… V1
Approval-only execution preview βœ… V1
Real quote providers (Horizon, DexScreener) βœ… V2
Stellar trustline + swap parity βœ… V2
Risk Registry contract (Soroban) βœ… V2
Supabase persistent storage πŸ”œ V2
Semi-auto execution with user rules πŸ”œ V2
Discovery agent + alerts πŸ”œ V3

Quick start

# Prerequisites: Node.js 22+, npm 10+, Rust 1.84+
git clone https://github.com/Drago-Labs/golden-raccoon.git
cd golden-raccoon

npm install
npm install --prefix frontend
cp .env.example frontend/.env.local
npm run quality:gate         # βœ” local gate must pass

Open http://localhost:3000 to see the application.

Note: The quality gate may report warnings about missing environment variables on first run. This is expected β€” fill in your .env.local values and re-run. See .env.example for all required variables.

Full setup instructions β€” including Rust toolchain, Stellar CLI, and Soroban contract build β€” are in CONTRIBUTING.md.


Architecture

frontend/  (Next.js App Router)
β”œβ”€β”€ server/       β€” Server-only agent pipeline & provider adapters
β”‚   β”œβ”€β”€ agents/   β€” Portfolio, News, Social, Onchain, Decision, Execution
β”‚   β”œβ”€β”€ providers/β€” Quote, portfolio, onchain data adapters
β”‚   β”œβ”€β”€ stellar/  β€” Stellar swap, trustline, risk registry
β”‚   β”œβ”€β”€ storage/  β€” Memory (default) or Supabase adapter
β”‚   └── x402/     β€” Premium deep scan payment guards
β”œβ”€β”€ app/          β€” Pages + API routes
└── components/   β€” React UI components

soroban/  (Rust Soroban contracts)
└── contracts/risk-registry/ β€” Non-custodial publication registry

backend/contracts/  (EVM Solidity contracts)
└── GoldRaccoonVault.sol β€” Audit-log vault (prototype)

Local Development

For information on how to bootstrap and run Golden Raccoon locally, please see Local Development.

Agent pipeline

Input β†’ [Onchain] β†’ [Social] β†’ [News] β†’ [Portfolio*] β†’ [Decision] β†’ [Execution]
           ↓           ↓          ↓           ↓              ↓             ↓
        Contract    Twitter/  News RSS   Wallet         Deterministic   Approval-only
        security    website   feeds      exposure        verdict         trade plan
        + liquidity signals               (optional)

* Portfolio agent requires a connected wallet; otherwise it is skipped.

Supported chains

EVM

Ethereum, Base, BSC, Arbitrum, Polygon, Optimism, Avalanche, Linea, Scroll, zkSync Era, opBNB, Mantle, Blast, Fantom, Gnosis, Celo, Moonbeam, Moonriver, Berachain, Sonic, Unichain, World Chain, Monad, Plasma, GOAT Network

  • Quote provider: DexScreener (V2, public API)
  • Transaction model: User-wallet-signed EIP-1559 txs

Stellar

Stellar Testnet, Stellar Pubnet

  • Quote provider: Horizon path-finding (V2, official Stellar API)
  • Transaction model: User-wallet-signed classic ops / Soroban
  • Contract: Risk Registry (Soroban, testnet + pubnet)

Key design constraints

🚫 No auto-execute

Golden Raccoon never signs or sends transactions on behalf of a user. Every blockchain action requires explicit user approval through their connected wallet. Auto-execute is disabled at every level β€” code, policy, and deployment.

πŸ”’ Server never holds keys

The server has no access to user private keys. It prepares, previews, and verifies transactions β€” the user always owns the signature.

πŸ“Š Deterministic decision engine

Agent scores are computed deterministically from available data sources. There is no LLM / AI-generated output in the agent pipeline. Every score is traceable to a specific factor and source.

⚠️ Not financial advice

Risk scores, verdicts, and suggested actions are informational indicators based on available onchain, social, and news data. They do not constitute financial, investment, or legal advice. Always do your own research.


Product status

V1 β€” Complete βœ…

  • Token contract / DexScreener input analysis
  • AI Risk Report with buy risk %, confidence, verdict
  • 5 agent pipeline (Onchain, Social, News, Portfolio, Decision)
  • Deterministic scoring with factor breakdown
  • Approval-only execution preview
  • No mock data in production mode
  • Multi-EVM chain support

V2 β€” In progress πŸ”„

  • Real quote adapters (Stellar Horizon + EVM DexScreener)
  • Stellar trustline creation and swap parity
  • Soroban Risk Registry contract hardening
  • Supabase persistent storage adapter
  • User rules / strategy configuration
  • History and watchlist pages

V3 β€” Planned πŸ“‹

  • Policy vault contract (EVM + Soroban)
  • Semi-auto execution (within user limits)
  • Discovery agent (new pair monitoring)
  • Alert system (risk changes, liquidity events)

Commands

Command Description
npm run quality:gate Run all local checks (lint, TS, fixtures, config)
npm run dev --prefix frontend Start Next.js dev server
npm run lint --prefix frontend Lint frontend code
cargo test --manifest-path soroban/Cargo.toml Run Soroban contract tests
npm run deploy:check --prefix frontend Run deploy readiness checks

Environment variables

See .env.example for all required and optional variables. Never commit a .env file or expose provider credentials.

Key variables:

Variable Required for
GOAT_RPC_URL GOAT chain portfolio
GOPLUS_API_KEY Token security checks
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID WalletConnect
STELLAR_RPC_URL Soroban interactions
X402_PAY_TO Premium deep scan

Security


License

MIT Β© 2026 Drago Labs

About

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages