Skip to content

MatteoMer/groupchat-market

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Groupchat Market: Prediction markets for your groupchat

Built during Frontiers

Turn your chats into prediction markets

ScreenRecording_08-09-2025 14-35-35_1


Example

Alice: "I bet John will be late to the meeting again"
Bob: /new Will John arrive on time to the 3pm meeting?
Bot: ✅ Market #1 created: Will John arrive on time to the 3pm meeting?
Alice: /bet 1 no 500
Bob: /bet 1 yes 100
Charlie: /bet 1 no 200

[Later at 3:05pm]
John: "Sorry guys, traffic was terrible"
Alice: /solve 1 [replying to John's message]
Bot: ✅ MARKET RESOLVED: NO wins
     🤖 AI Analysis: "John apologized for being late, confirming he did not arrive on time"
     💰 Payouts: Alice +750, Charlie +300

Architecture

Everything: bot, server and the contract are written in Rust. The contract is a vApp proven on a zkVM.

This proof is used for settlement on Hyli, a blockchain where every app is a vApp and where the execution is offchain, the consensus is only verifying the proof


Getting Started

Prerequisites

1. Run the Hyli Node

Follow the official documentation at docs.hyli.org to set up and run a Hyli node.

2. Build the Contract

# Clone the repository
git clone https://github.com/MatteoMer/groupchat-market.git
cd groupchat-market

# Build the contract (fast/local build)
cd contracts
cargo build --features nonreproducible,contract1

# Or for reproducible build (slower, uses Docker)
cargo build --features build,contract1

3. Run the Server

# From project root
RISC0_DEV_MODE=1 SP1_PROVER=mock cargo run -p server

# Server will start on port 4001 by default

4. Run the Telegram Bot

# Set required environment variables
export TELOXIDE_TOKEN="your_telegram_bot_token"
export CLAUDE_API_KEY="your_claude_api_key"

# Run the bot
cargo run -p bot

# The bot will connect to the server at localhost:4001

Configuration

  • Edit config.toml to customize ports and settings
  • Server config can be overridden with HYLE_ prefixed environment variables
  • Bot database is stored in bot/bot.db

License

MIT

About

polymarket for your groupchat, made at frontiers 2025; using hyli

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages