# boppanadefi/evidencedrivencryptoresearch architecture

> Architecture diagram of the GitHub repository boppanadefi/evidencedrivencryptoresearch, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/boppanadefi/evidencedrivencryptoresearch
- Repository: https://github.com/boppanadefi/evidencedrivencryptoresearch
- Video tour (about a minute): https://gitdiagram.com/boppanadefi/evidencedrivencryptoresearch/video

## Overview

This repository is a token-analysis and monitoring tool for discovering candidates, evaluating market and on-chain risk, and publishing results. The main workflow discovers pools or token addresses, enriches them with market data, applies strategy scoring and security gates, then writes candidate results to CSV or Google Sheets. A separate scanner supports recurring Solana monitoring and alerts. The excerpts show the adapters and analysis layers, but not all orchestration details; edges from module references are limited to relationships supported by the source index or excerpts.

Main entry points: [`token_analyzer/main.py`](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/main.py) (Analysis CLI), [`token_analyzer/scanner.py`](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/scanner.py) (Solana Scanner), [`token_analyzer/dexscreener.py`](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/dexscreener.py) (DexScreener), [`token_analyzer/sheets_writer.py`](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/sheets_writer.py) (Sheets Writer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Candidate Discovery"]
  node_dex["DexScreener<br/>[dexscreener.py]"]
  node_gecko["GeckoTerminal<br/>[geckoterminal.py]"]
  node_pumpfun["Pump.fun Collector"]
end

subgraph group_evaluation["Analysis"]
  node_main["Analysis CLI<br/>[main.py]"]
  node_strategy["Strategy Scoring<br/>[strategy.py]"]
end

subgraph group_security["On-chain Risk"]
  node_helius["Helius Adapter<br/>[helius.py]"]
  node_gates["Security Gates<br/>[gates.py]"]
  node_lp_lock["LP Lock Checks<br/>[lp_lock.py]"]
  node_unlocks["Unlock Detection<br/>[unlocks.py]"]
end

subgraph group_delivery["Monitoring &amp; Output"]
  node_scanner["Solana Scanner<br/>[scanner.py]"]
  node_cache[("Scan Cache<br/>[scanner.py]")]
  node_csv["CSV Results<br/>[main.py]"]
  node_sheets["Sheets Writer<br/>[sheets_writer.py]"]
end

node_analyst(("Analyst"))
node_market_api{{"Market APIs"}}
node_helius_api{{"Helius API"}}
node_discord{{"Discord Webhook"}}
node_google_sheets[("Google Sheets")]

node_analyst -->|"runs analysis"| node_main
node_main -->|"requests discovery"| node_dex
node_main -->|"builds candidate cards"| node_strategy
node_main -->|"applies gates"| node_gates
node_main -->|"requests chain data"| node_helius
node_main -->|"checks liquidity locks"| node_lp_lock
node_main -->|"checks unlocks"| node_unlocks
node_main -->|"discovers tokens"| node_pumpfun
node_dex -->|"discovers pools"| node_gecko
node_dex -->|"requests market data"| node_market_api
node_gecko -->|"requests pool data"| node_market_api
node_pumpfun -->|"fetches transactions"| node_helius_api
node_helius -->|"reads chain data"| node_helius_api
node_lp_lock -->|"reads pool accounts"| node_helius_api
node_unlocks -->|"checks account owners"| node_helius_api
node_main -->|"writes results"| node_csv
node_main -->|"publishes rows"| node_sheets
node_sheets -->|"formats headers"| node_strategy
node_sheets -->|"writes worksheets"| node_google_sheets
node_scanner -->|"discovers candidates"| node_dex
node_scanner -->|"discovers pools"| node_gecko
node_scanner -->|"evaluates candidates"| node_strategy
node_scanner -->|"checks risk gates"| node_gates
node_scanner -->|"reads chain data"| node_helius
node_scanner -->|"checks LP status"| node_lp_lock
node_scanner -->|"checks unlocks"| node_unlocks
node_scanner -->|"updates cache"| node_cache
node_scanner -->|"sends alerts"| node_discord

click node_main "https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/main.py"
click node_dex "https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/dexscreener.py"
click node_gecko "https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/geckoterminal.py"
click node_pumpfun "https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/pumpfun_collector.py"
click node_helius "https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/helius.py"
click node_strategy "https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/strategy.py"
click node_gates "https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/gates.py"
click node_lp_lock "https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/lp_lock.py"
click node_unlocks "https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/unlocks.py"
click node_scanner "https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/scanner.py"
click node_cache "https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/scanner.py"
click node_csv "https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/main.py"
click node_sheets "https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/sheets_writer.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dex,node_gecko,node_pumpfun toneBlue
class node_main,node_strategy,node_google_sheets toneAmber
class node_helius,node_gates,node_lp_lock,node_unlocks,node_market_api,node_helius_api,node_discord toneMint
class node_scanner,node_cache,node_csv,node_sheets toneRose
class node_analyst toneIndigo
```

## Components

### Candidate Discovery

- [DexScreener](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/dexscreener.py): `token_analyzer/dexscreener.py`
- [GeckoTerminal](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/geckoterminal.py): `token_analyzer/geckoterminal.py`
- [Pump.fun Collector](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/pumpfun_collector.py): `token_analyzer/pumpfun_collector.py`

### Analysis

- [Analysis CLI](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/main.py): `token_analyzer/main.py`
- [Strategy Scoring](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/strategy.py): `token_analyzer/strategy.py`

### On-chain Risk

- [Helius Adapter](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/helius.py): `token_analyzer/helius.py`
- [Security Gates](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/gates.py): `token_analyzer/gates.py`
- [LP Lock Checks](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/lp_lock.py): `token_analyzer/lp_lock.py`
- [Unlock Detection](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/unlocks.py): `token_analyzer/unlocks.py`

### Monitoring & Output

- [Solana Scanner](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/scanner.py): `token_analyzer/scanner.py`
- [Scan Cache](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/scanner.py): `token_analyzer/scanner.py`
- [CSV Results](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/main.py): `token_analyzer/main.py`
- [Sheets Writer](https://github.com/boppanadefi/evidencedrivencryptoresearch/blob/main/token_analyzer/sheets_writer.py): `token_analyzer/sheets_writer.py`

### Other components

- **Analyst**
- **Market APIs**
- **Helius API**
- **Discord Webhook**
- **Google Sheets**

## Connections

- Analyst → Analysis CLI: runs analysis (evidence: `token_analyzer/main.py`)
- Analysis CLI → DexScreener: requests discovery (evidence: `token_analyzer/main.py`)
- Analysis CLI → Strategy Scoring: builds candidate cards (evidence: `token_analyzer/main.py`)
- Analysis CLI → Security Gates: applies gates (evidence: `token_analyzer/main.py`)
- Analysis CLI → Helius Adapter: requests chain data (evidence: `token_analyzer/main.py`)
- Analysis CLI → LP Lock Checks: checks liquidity locks (evidence: `token_analyzer/main.py`)
- Analysis CLI → Unlock Detection: checks unlocks (evidence: `token_analyzer/main.py`)
- Analysis CLI → Pump.fun Collector: discovers tokens (evidence: `token_analyzer/main.py`)
- DexScreener → GeckoTerminal: discovers pools (evidence: `token_analyzer/dexscreener.py`)
- DexScreener → Market APIs: requests market data (evidence: `token_analyzer/dexscreener.py`)
- GeckoTerminal → Market APIs: requests pool data (evidence: `token_analyzer/geckoterminal.py`)
- Pump.fun Collector → Helius API: fetches transactions (evidence: `token_analyzer/pumpfun_collector.py`)
- Helius Adapter → Helius API: reads chain data (evidence: `token_analyzer/helius.py`)
- LP Lock Checks → Helius API: reads pool accounts (evidence: `token_analyzer/lp_lock.py`)
- Unlock Detection → Helius API: checks account owners (evidence: `token_analyzer/unlocks.py`)
- Analysis CLI → CSV Results: writes results (evidence: `token_analyzer/main.py`)
- Analysis CLI → Sheets Writer: publishes rows (evidence: `token_analyzer/main.py`)
- Sheets Writer → Strategy Scoring: formats headers (evidence: `token_analyzer/sheets_writer.py`)
- Sheets Writer → Google Sheets: writes worksheets (evidence: `token_analyzer/sheets_writer.py`)
- Solana Scanner → DexScreener: discovers candidates (evidence: `token_analyzer/scanner.py`)
- Solana Scanner → GeckoTerminal: discovers pools (evidence: `token_analyzer/scanner.py`)
- Solana Scanner → Strategy Scoring: evaluates candidates (evidence: `token_analyzer/scanner.py`)
- Solana Scanner → Security Gates: checks risk gates (evidence: `token_analyzer/scanner.py`)
- Solana Scanner → Helius Adapter: reads chain data (evidence: `token_analyzer/scanner.py`)
- Solana Scanner → LP Lock Checks: checks LP status (evidence: `token_analyzer/scanner.py`)
- Solana Scanner → Unlock Detection: checks unlocks (evidence: `token_analyzer/scanner.py`)
- Solana Scanner → Scan Cache: updates cache (evidence: `token_analyzer/scanner.py`)
- Solana Scanner → Discord Webhook: sends alerts (evidence: `token_analyzer/scanner.py`)
