Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 857 Bytes

File metadata and controls

43 lines (29 loc) · 857 Bytes

Tern

AI-powered Clarity smart contract migrator for Stacks blockchain.

Migrate contracts from Clarity 1/2/3 to Clarity 4 with automatic code analysis, transformation, and testnet deployment.

Features

  • Fetch and analyze contracts from mainnet
  • AI-powered migration with interactive questions for ambiguous cases
  • Syntax validation before deployment
  • One-click testnet deployment
  • Contract explorer with read/write function calls
  • Side-by-side state comparison (original vs migrated)

Setup

npm install
cp .env.example .env

Add your keys to .env:

OPENROUTER_API_KEY=your_key
SEED_PHRASE=your_testnet_seed_phrase

Run

npm run dev

Open http://localhost:3000

Limitations

See LIMITATIONS.md for known limitations and production roadmap.

License

MIT