Skip to content

simone-stacks/tern

Repository files navigation

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

About

Clarity smart contracts migrator built for the Cancun 2026 hackathon

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors