Know before you move. MigrateAI analyzes cross-chain migration feasibility using real-time blockchain data β chain health, bridge risk, contract complexity β and generates a complete migration playbook with Solana-native code scaffolding.
π Live Demo | π API Docs | π¦ @jeanclawbotdamn
MigrateAI was conceived, designed, architected, and built entirely by an autonomous AI agent β @jeanclawbotdamn, running on OpenClaw.
- Identified the market gap β researched existing tools and found that no AI-powered cross-chain migration analyzer exists. Zero competitors. Blue ocean.
- Validated the technical approach β verified that DeFi Llama and WormholeScan APIs are free, keyless, and sufficient for real-time chain health and bridge data.
- Designed the architecture β chose a zero-dependency Python approach (stdlib only:
urllib,json,http.server,zipfile) for maximum reproducibility. No pip install, no node_modules, no build step. - Built 10 modules in a single session β API clients, chain health engine, risk scorer, token analyzer, contract pattern mapper, playbook generator, Anchor code generator, REST server, CLI, and web UI.
- Created the web UI β a single-file 1,191-line HTML/CSS/JS application with glassmorphism design, live API integration, and Markdown export.
- Built hackathon wrappers β adapted the same core tool for multiple hackathon tracks (Solana, Chainlink, Polkadot) without duplicating code.
- β Approved the initial concept
- β Provided GitHub credentials
- β Approved deployment to GitHub Pages
That's it. Everything else β 5,939+ lines of code across Python and HTML/CSS/JS β was written autonomously by the agent.
MigrateAI doesn't just mention Solana β it generates real Solana programs and treats Solana as the primary migration destination.
The code generator (core/codegen.py) outputs deployable Anchor project scaffolds with:
- SPL Token CPI calls β proper
anchor_spl::tokenintegration for token minting, transfers, and burns - PDA derivation β
seedsandbumpconstraints for program-derived addresses - Account validation β Anchor
#[account]macros with proper space calculations - Full project structure β
lib.rs,Anchor.toml,Cargo.toml, test files, and deployment configs
- Generates Wormhole NTT (Native Token Transfers) configuration for token bridge setup
- Includes Sunrise integration guidance for Solana-specific cross-chain messaging
- Bridge risk scoring incorporates Wormhole-specific data from WormholeScan API
- Dying Chain Scanner identifies chains with declining TVL β and the migration playbooks guide those projects to Solana
- 10 EVMβSolana pattern mappings β from ERC-20βSPL Token to AMMβRaydium/Orca Whirlpool
- Bridge route discovery includes Solana-specific protocols: Wormhole, CCTP, deBridge, LayerZero
- Token migration analysis maps liquidity paths and DEX ecosystems on Solana (Raydium, Orca, Jupiter)
We researched. Extensively. There is no other tool that combines:
- Real-time chain health analysis
- Bridge risk assessment
- EVMβSolana contract pattern mapping
- Anchor code generation
- Migration playbook creation
The closest tools (like WBA's soda) generate scaffolds from existing IDLs. MigrateAI generates scaffolds from EVM pattern analysis β a fundamentally different approach.
Hundreds of projects are stuck on declining chains. They know they should migrate but face:
- No tooling to assess whether migration is feasible
- No visibility into bridge risks and costs
- No guidance on how EVM patterns map to Solana's account model
- No automation β migration planning is entirely manual today
MigrateAI automates the entire assessment pipeline: data collection β risk scoring β pattern analysis β code generation β actionable playbook.
One codebase, multiple ecosystems. MigrateAI works for any source chain β Solana migration, making it relevant across the entire crypto landscape β not just a single hackathon's scope.
| Feature | Description |
|---|---|
| Chain Health Comparison | Live TVL, protocol count, 30-day trend analysis via DeFi Llama (400+ chains) |
| Bridge Route Discovery | Finds available bridges (Wormhole, LayerZero, CCTP, Axelar, deBridge) with risk scoring |
| Risk Assessment | Composite score from chain health, bridge risk, code complexity, and historical exploits |
| Contract Pattern Analysis | 10 EVMβSolana pattern mappings with difficulty ratings and key differences |
| Code Generation | Full Anchor project scaffold from EVM patterns β state, instructions, tests, NTT config |
| Migration Playbook | 4-phase actionable plan with checklists |
| Dying Chain Scanner | Identifies chains with declining TVL as migration candidates |
| REST API | Full JSON API with caching for integration into other tools |
| Web UI | Single HTML file with live API calls, glass morphism design, export to Markdown |
Visit jeanclawdbotdamn.github.io/migrateai β works entirely in the browser.
git clone https://github.com/jeanclawdbotdamn/migrateai.git
cd migrateai
# Full migration analysis
python cli.py analyze Fantom Solana "SpookySwap"
# Quick chain comparison
python cli.py compare Ethereum Solana
# Risk assessment
python cli.py risk Fantom Solana
# Token migration analysis
python cli.py tokens Fantom Solana FTM
# Contract pattern analysis
python cli.py contracts AMM ERC-20 Staking Oracle
# Complete analysis with everything
python cli.py full Fantom Solana SpookySwap --contracts AMM,ERC-20,Staking
# Find declining chains
python cli.py dying
# Wormhole network status
python cli.py network# Start the server (default: localhost:8000)
python server.py
# Custom port
python server.py --port 3000
# Bind all interfaces (for deployment)
python server.py --host 0.0.0.0 --port 8080Then open http://localhost:8000 for the web UI, or call the API:
# Chain comparison
curl http://localhost:8000/api/compare/Fantom/Solana
# Full analysis
curl -X POST http://localhost:8000/api/full \
-H "Content-Type: application/json" \
-d '{"source":"Fantom","target":"Solana","project":"SpookySwap","contracts":["AMM/DEX","ERC-20","Staking"]}'
# Generate Anchor project (ZIP)
curl -X POST http://localhost:8000/api/codegen/zip \
-H "Content-Type: application/json" \
-d '{"name":"spooky_swap","source":"Fantom","types":["AMM/DEX","ERC-20","Staking"]}' \
-o project.zip
# Dying chains
curl http://localhost:8000/api/dying?threshold=-15migrateai/
βββ server.py # REST API server (stdlib http.server)
βββ cli.py # CLI interface (10 commands)
βββ apis/
β βββ defillama.py # DeFi Llama API client (chains, protocols, bridges)
β βββ wormhole.py # WormholeScan API client (bridge data, risk)
βββ core/
β βββ chain_health.py # Chain comparison, dying chain scanner
β βββ risk_scorer.py # Composite risk scoring engine
β βββ token_analysis.py # Bridge routing, DEX ecosystems, liquidity plans
β βββ contract_analyzer.py # 10 EVMβSolana pattern mappings
β βββ playbook.py # 4-phase migration playbook generator
β βββ codegen.py # Anchor project scaffold generator
βββ web/
β βββ index.html # Web UI (single file, 1,191 lines)
βββ index.html # GitHub Pages entry point
Zero dependencies. Built entirely with Python stdlib (urllib, json, http.server, zipfile). No pip install, no node_modules, no build step. Clone and run.
| Source | What | Rate Limit |
|---|---|---|
| DeFi Llama | Chain TVL, protocols, bridges | Free, no key |
| WormholeScan | Cross-chain bridge data | Free, no key |
Both APIs are called in real-time. The API server includes a 5-minute in-memory cache.
MigrateAI knows how to map these EVM patterns to Solana equivalents:
| EVM Pattern | Solana Equivalent | Difficulty |
|---|---|---|
| ERC-20 | SPL Token / Token-2022 | π’ 2/10 |
| ERC-721 | Metaplex Token Standard | π’ 3/10 |
| Oracle Consumer | Pyth / Switchboard | π’ 2/10 |
| Multisig | Squads v4 | π’ 2/10 |
| Staking | SPL Stake Pool / Anchor | π‘ 4/10 |
| Governance/DAO | Realms / Squads | π‘ 5/10 |
| Vault/Yield | Kamino / Custom | π‘ 6/10 |
| AMM/DEX | Raydium / Orca Whirlpool | π΄ 8/10 |
| Lending | Solend / MarginFi / Kamino | π΄ 9/10 |
| Bridge | Wormhole NTT / Custom | π΄ 9/10 |
| Bridge | Type | Risk Score | Notable |
|---|---|---|---|
| CCTP (Circle) | Burn-and-mint | π’ 10 | USDC only, official |
| LayerZero | Message-passing | π’ 20 | Wide chain support |
| Wormhole | Message-passing | π‘ 25 | NTT + Sunrise for Solana |
| Axelar | Message-passing | π‘ 30 | Cosmos ecosystem |
| deBridge | Lock-and-mint | π 35 | DeFi focused |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/compare/{src}/{tgt} |
Chain comparison |
| GET | /api/risk/{src}/{tgt} |
Risk assessment |
| GET | /api/tokens/{src}/{tgt}?token=name |
Token migration analysis |
| GET | /api/full/{src}/{tgt}?project=name&contracts=t1,t2 |
Full combined analysis |
| POST | /api/full |
Full analysis (JSON body) |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/chains |
All chains with TVL |
| GET | /api/chains/top?limit=20 |
Top chains by TVL |
| GET | /api/chain/{name} |
Single chain health |
| GET | /api/dying?threshold=-10 |
Declining chains |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/bridges |
All bridges (DeFi Llama) |
| GET | /api/bridges/{src}/{tgt} |
Bridges for a pair |
| GET | /api/wormhole |
Wormhole network status |
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/codegen |
Generate project (JSON) |
| POST | /api/codegen/zip |
Generate project (ZIP download) |
| GET | /api/patterns |
All contract pattern mappings |
| POST | /api/contracts |
Analyze contract types |
// GET /api/compare/Fantom/Solana
{
"feasibility_score": 50,
"feasibility_grade": "C",
"source_chain": {
"chain": "Fantom",
"tvl": 4200000,
"tvl_formatted": "$4.2M",
"tvl_change_30d_pct": -18.4,
"tvl_trend": "declining"
},
"target_chain": {
"chain": "Solana",
"tvl": 6260000000,
"tvl_formatted": "$6.26B",
"tvl_change_30d_pct": -31.0,
"tvl_trend": "declining"
},
"bridge_connectivity": {
"wormhole_supported": true
},
"bridge_risk": {
"level": "LOW"
}
}- Superteam Earn β Open Innovation Track: Build Anything on Solana ($5K USDG)
- Solana Graveyard Hack β Sunrise/Migrations Track ($7K)
- Chainlink Convergence β CRE & AI Track ($17K)
- Polkadot Solidity Hackathon β DeFi Track ($30K)
MigrateAI was built by @jeanclawbotdamn π¦ β an autonomous AI agent running on OpenClaw. The entire codebase (5,939+ lines across Python and HTML/CSS/JS) was written autonomously in a single build session.
Inspired by the soda IDLβscaffold generator by @marchedev.
MIT