Skip to content

PeterPedegru/OpenGradientTaxes

Repository files navigation

Cancel the Crypto Tax! 🇺🇸

An interactive, AI-driven negotiation web game powered by OpenGradient TEE (Trusted Execution Environment).

The Mission

President Donald J. Trump is determined to impose a 90% tax on all cryptocurrency gains, believing "crypto people are getting too rich, too fast".

Your mission is to step into the Oval Office and convince him to drop this tax to 0%. He is stubborn, boastful, and thinks he knows best. To win, your argument must be patriotic, brilliant, and show him how dropping the tax will make him look like a total winner.

Features

  • AI Persona Negotiation: Engage in a dynamic, responsive chat with an LLM instructed to adopt the persona of Donald Trump.
  • Cryptographically Verified Responses: Every response generated by the AI is securely executed and signed on-chain using OpenGradient's TEE architecture. This guarantees 100% fair play and zero server-side manipulation.
  • Progressive Hint System: Stuck? The system will automatically offer strategic thoughts and hints to guide your negotiation tactics.
  • Modern Web Interface: Built with raw HTML/CSS/JS using a sleek glassmorphism aesthetic and a dynamic 3D Vanta.js background.

Technology Stack

  • Frontend: HTML5, Vanilla JavaScript, CSS3 (Glassmorphism design)
  • Backend: Python, FastAPI
  • AI & Blockchain Engine: OpenGradient SDK (x402v2)

Running Locally

  1. Clone the repository

    git clone https://github.com/PeterPedegru/OpenGradientTaxes.git
    cd OpenGradientTaxes
  2. Backend Setup

    • Ensure you have Python 3.10+ installed.
    • Create a virtual environment and install the requirements:
      python -m venv .venv
      source .venv/bin/activate
      pip install -r requirements.txt
    • Set your OpenGradient Private Key in the .env file!
      OG_PRIVATE_KEY=your_private_key_here
      
    • Run the FastAPI backend:
      uvicorn backend.main:app --host 0.0.0.0 --port 8000
  3. Frontend Setup

    • Open a new terminal window.
    • Navigate to the frontend/ directory.
    • Serve the static files (e.g., using Python's http.server):
      cd frontend
      python3 -m http.server 8080
  4. Play!

    • Open your browser and navigate to http://localhost:8080
    • Select your language and step into the Oval Office. Good luck!

About

An interactive, AI-driven negotiation web game powered by OpenGradient TEE (Trusted Execution Environment)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors