Skip to content

Releases: openpredictionmarkets/socialpredict

Payout and Precision v2.1.0

15 Nov 14:38
2a93a41

Choose a tag to compare

🚀 Release v2.1.0 — Stability, Precision & Production Readiness

🧭 Overview

This minor release focuses on backend reliability, API clarity, migration consistency, and precision in market math.
It includes new timestamped migration improvements, expanded OpenAPI documentation, new metric tests, and added significant-figure support across pricing.


✨ Key Improvements

🗄️ Timestamped Migration Updates

  • Added and refined timestamped migrations related to market label schema changes
    PR: #579 (@pwdel)

📘 Backend API Documentation

  • Fully updated OpenAPI specification and backend API docs
  • Improved developer onboarding and service-to-service clarity
    PR: #521 (@raisch)

🧭 Production Readiness Guides

  • Added a comprehensive production-readiness plan
  • Includes security, observability, infra guidance, and deployment best practices
    PR: #520 (@raisch)

📈 System Metrics Testing

  • Added an integration test validating system metrics endpoints
    PR: #585 (@pwdel)

🎯 Precision Handling (Significant Figures)

  • Added significant-figure support to improve numerical display and market math consistency
    PR: #588 (@astrosnat)

🛠️ Dependency & Module Updates

  • vite upgraded from 7.1.5 → 7.1.11
    PR: #580 (dependabot)
  • go.mod updated to ensure module hygiene and build stability
    PR: #528 (@astrosnat)

🧱 Contributors

Huge thanks to all contributors involved in this minor release:


🔗 Full Changelog

v2.0.0...v2.1.0

Custom Options Support v2.0.0

20 Oct 17:24
78f0e69

Choose a tag to compare

🚀 Release v2.0.0 — Custom Market Labels + Timestamped Migrations

🧭 Overview

This release introduces custom market resolution labels with full emoji support and adds timestamped migration capability for better schema version control.
It is fully backward compatible — existing markets using standard “YES/NO” outcomes will continue to function normally.

image

✨ New Features

🎯 Custom Market Labels

Markets can now define expressive outcome labels beyond "YES/NO".
Examples:

  • Stock predictions: BULL 🚀 vs BEAR 📉
  • Sports: WIN 🏆 vs LOSE 😞
  • Weather: SUNNY ☀️ vs RAINY 🌧️

Highlights

  • Added yes_label and no_label to the Market model
  • Updated backend creation + public response handlers
  • Client-side + server-side validation (1–20 chars)
  • Backward compatible fallback to "YES/NO"

😀 Emoji Picker Integration

A new EmojiPickerInput component lets users insert emojis directly in:

  • Market title, description, and labels
  • With cursor-aware insertion and dark theme support
  • Works seamlessly on desktop and mobile

🎨 Dynamic UI Integration

Custom labels now appear across 18+ components, including:

  • Market creation, detail, and trading interfaces
  • Portfolio, bets, and leaderboard displays
  • Resolution dialogs and alerts

🧩 Technical Updates

  • models/market.go: added label fields and validation
  • handlers/markets/createmarket.go: extended creation logic
  • handlers/marketpublicresponse/: updated public response schema
  • Frontend dependency: [email protected]
  • Added reusable EmojiPickerInput.jsx

🕓 Infrastructure

  • Added datetime-stamped migration system for versioned schema evolution
  • Cleaned up obsolete workflow:
    • Removed .github/workflows/deploy-staging.yml

🧪 Testing & Compatibility

  • ✅ Verified emoji insertion at cursor position
  • ✅ Validated custom labels (1–20 chars)
  • ✅ Confirmed backward compatibility with existing markets
  • ✅ Tested on mobile + dark theme

🧱 Contributors


Full Changelog: v1.0.2...v2.0.0

Badges and Install v1.0.2

17 Oct 13:13
b69bba9

Choose a tag to compare

What's Changed

Full Changelog: v1.0.1...v1.0.2

Updating config.js v1.0.1

15 Oct 17:38
48c5e62

Choose a tag to compare

Background

  • We have recently implemented a Github pipeline which automatically deploys to a staging and a demo environment. In doing so, this changed how config.js gets templated, which makes connecting from the frontend to the backend not function.
  • This is a new patch version release to attempt to fix the connection.

What's Changed

Full Changelog: v1.0.0...v1.0.1

SocialPredict v1.0.0 - Streamlined and Customizable!

13 Oct 01:04
3e7d04f

Choose a tag to compare

SocialPredict v1.0.0: Level Up!

What's Changed

  • Deployment in development and production is now easier
  • Customizable home page with our built-in HTML editor
  • Prod deploy: Migrated to Traefik v3.5 (auto HTTPS w/ Let’s Encrypt). Unified scripts/docker-compose-prod.yaml with clear internal/external networks.
  • Logging: New backend/logger/ with INFO/WARN/ERROR including file:line + function; tests + README.
  • Passwords: Stronger validation (SanitizePassword returns (string, error)), updated handlers/tests.
  • Env/CORS: .env.dev load is non-fatal; DB init supports POSTGRES_* + legacy DB_*; CORS now fully configurable via env.
  • Frontend runtime env: env-config.js injected at startup; src/config.js reads window.__ENV__.

What's Changed

Full Changelog: v0.0.7...v0.1.0

Fixing Docker Image Publish v0.0.7

08 Oct 13:04
6696584

Choose a tag to compare

What's Changed

Full Changelog: v0.0.6...v0.0.7

Attempting fixing docker image publish pipeline

08 Oct 05:34
62a711a

Choose a tag to compare

SocialPredict v0.0.6

Attempting fixing docker image publish pipeline

Deploy, Logging, UX Tweaks v0.0.5

07 Oct 18:56
810adc0

Choose a tag to compare

SocialPredict v0.0.5

Release date: 2025-10-07
Contributors: @pwdel · @astrosnat · @raisch · @ntoufoudis · @jordangeorge

Highlights

  • Docker/CI: New docker/ layout; GitHub Actions builds & publishes frontend and backend images to GHCR. Go updated to 1.25.x.
  • Prod deploy: Migrated to Traefik v3.5 (auto HTTPS w/ Let’s Encrypt). Unified scripts/docker-compose-prod.yaml with clear internal/external networks.
  • Logging: New backend/logger/ with INFO/WARN/ERROR including file:line + function; tests + README.
  • Passwords: Stronger validation (SanitizePassword returns (string, error)), updated handlers/tests.
  • Env/CORS: .env.dev load is non-fatal; DB init supports POSTGRES_* + legacy DB_*; CORS now fully configurable via env.
  • Frontend runtime env: env-config.js injected at startup; src/config.js reads window.__ENV__.

Backup/Restore

  • scripts/backup/db_backup.sh: uses pg_restore; adds --inspect, PRESERVE_OWNERS, RESTORE_DB, RESTORE_JOBS; smarter DB connection fallbacks.

Upgrade Notes

  • Replace old Nginx/Certbot with Traefik (data/traefik/*) and use the new compose file.
  • Ensure .env includes TRAEFIK_CONTAINER_NAME, DOMAIN_URL, and POSTGRES_* vars.
  • Frontend expects /env-config.js (already added to index.html).

Images

  • ghcr.io/openpredictionmarkets/socialpredict-backend:latest
  • ghcr.io/openpredictionmarkets/socialpredict-frontend:latest

What's Changed

New Contributors

Full Changelog: v0.0.4...v0.0.5

v0.0.4 — Faster, Safer, Cleaner

22 Sep 12:46
b92bf21

Choose a tag to compare

SocialPredict is a prediction market infrastructure platform. Read more about us at our readme on Github here.

This release allows production deployment on a VPN via tightened backend security, standardizesd market math, and a smoother frontend experience. Plus: real search, better stats, and a one-liner DB backup.

🧩 Highlights

  • 🔍 Global & Market Search — New /v0/search backend + search components on the frontend for fast market discovery.
  • 🗂 Markets by Status — Dedicated endpoint & UI for Active / Closed / Resolved / All. Consistent across tabs & URLs.
image

📈 Stats & Metrics

  • System Metrics API for platform-level health checks.

  • User Financials view (frontend) with balances, equity, and P&L snapshots.

image image image

🛡️ Security Hardening

  • Strict security headers, input sanitizer, and lightweight rate limiting.
  • Middleware tests included to guard against regressions.

💸 Trading Logic Polish

  • Dust-cap protections on sells to avoid tiny, fee-eaten outputs.
  • Bets returned in consistent ascending order for stable UIs and bots.
  • Market volume & probability math refactors for clarity and testability.
image image image

🧭 SPA Routing Fix

  • Updated Nginx + Vite config to end those weird not-found refreshes on deep links.

💾 One-Command DB Backups

  • New script: scripts/backup/db_backup.sh — portable, simple, documented.

🔨 Developer Experience

  • 🧪 Large test sweep across handlers, math, security, and middleware.
  • 🧰 CI Workflows for backend builds, Docker images, and staging deploys.
  • 📜 Conventions & Docs upgraded: Golang style guidelines, local/stage setup, testing readme.

🐛 Notable Fixes

  • 🚫 Prevent intermittent 402 routing errors with improved SPA handling.
  • 🔢 Market details now include volume consistency checks in tests.
  • 🔁 Consistent GetBetsForMarkets ordering (ascending) across the stack.

v0.0.3 for Development and Staging

10 Aug 16:23
18af840

Choose a tag to compare

SocialPredict v0.0.3

  • Designed for usage and testing on local and staging.

Getting Going

  • Please follow the instructions within the README file and directory.