Skip to content

HathorNetwork/hathor-playground

Repository files navigation

Hathor Nano Contracts IDE

A complete Remix-like development environment for Hathor nano contracts, providing a full-featured web-based IDE for developing, testing, and deploying nano contracts without requiring a full Hathor node.

🚀 Features

  • Web-based IDE with Monaco Editor and Python syntax highlighting
  • Real-time validation of nano contract rules and syntax
  • Local execution engine using the complete Hathor nano contracts implementation
  • Interactive testing environment with balance simulation and debugging
  • Contract templates and examples
  • Deployment integration with Hathor testnet/mainnet

🏗️ Architecture

nano-contracts-ide/
├── frontend/          # React/Next.js web interface
├── backend/           # Python FastAPI backend
├── python-runner/     # Isolated Python execution environment
└── shared/           # Shared utilities and types

🛠️ Development Setup

Prerequisites

  • Python 3.11+
  • Node.js 18+
  • npm or yarn

Backend Setup

cd backend
pip install -r requirements.txt
uvicorn main:app --reload

Frontend Setup

cd frontend
npm install
npm run dev

📋 TODO

  • Project structure setup
  • Python backend with FastAPI
  • Nano contracts execution engine
  • Contract validation system
  • React frontend with Monaco editor
  • Storage simulation layer
  • Interactive testing interface
  • Contract templates and examples

🎯 Goals

This toolkit aims to:

  1. Democratize nano contract development by removing barriers to entry
  2. Provide instant feedback for faster development cycles
  3. Maintain full compatibility with production Hathor network
  4. Enable educational use for learning nano contracts
  5. Support production deployment with real network integration

📄 License

Licensed under the Apache License, Version 2.0.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •