Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1,366 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌌 Stellarcade

Lint Codebase Test Backend API Test Contracts Test Frontend App License: MIT

Stellarcade is a decentralized arcade platform built on the Stellar network using Soroban smart contracts. We provide provably fair games, community prize pools, and a seamless gaming experience using Stellar's fast and low-cost infrastructure.

✨ Key Features

  • Provably Fair Gaming: Our Random Number Generator (RNG) contract ensures every game result is verifiable and fair.
  • Decentralized Prize Pools: Play and win from pools managed entirely by smart contracts.
  • Stellar Speed: Lightning-fast transactions and minimal fees.
  • Multiple Games: Coin Flip, Trivia, and moreβ€”all on-chain.
  • Open Source: Built by the community, for the community.

🌐 Live Environment & Deployed Services (Stellar Testnet)

Service / Contract Type / Hosting Live Endpoint / Address
Backend API Render Web Service https://stellarcade-backend.onrender.com/api
Arbiter Engine Render Web Service https://stellarcade-arbiter.onrender.com
Telegram Bot Render Web Service Active via @StellarcadeOfficialBot
Coin Flip Contract Soroban Testnet CDP77TELLHACC46EHR3N4ISRWJME446AGK5RM7D4D42YKDCB4LXICKTE
Prize Pool Contract Soroban Testnet CBVNIITX42KQA3MKNUBKG4YIK4FCASZQWKWGHY3YYMM4ANGZ6MOZI2EC
Random Generator Contract Soroban Testnet CAMYBISVQSSVJ3EPAZQWKPTTPGTYY5XIS2BZAG4TYFWTUKHQNPVXAV4O
Access Control Contract Soroban Testnet CC2IRAYC3CT5KAV4PZKXKCE45Z3QAJQSJH7P5J3GITJT4T3KZ6634R7K
Achievement Badge Contract Soroban Testnet CC7SDE6RRV4X7XRHU6OM6GLDIKBC6EZYNHTRGDLEHYNVUWWO3LUJLA5M

πŸ›  Tech Stack

  • Smart Contracts: Rust & Soroban SDK
  • Backend: Node.js, Express, PostgreSQL, Redis
  • Frontend: Vite + React (TypeScript)
  • Infrastructure: Docker, GitHub Actions

πŸ“¦ TypeScript SDK

StellarCade ships with an official, open-source TypeScript SDK for wallet connection, game interactions, and client-side fairness verification:

npm install @stellarcade/sdk @stellar/stellar-sdk

For setup and client configuration details, see the stellarcade-sdk repository.

πŸš€ Quick Start

Prerequisites

Local Development Setup

For a complete local development environment:

# Clone the repository
git clone https://github.com/theblockcade/stellarcade.git
cd stellarcade

# Enable Git hooks (mirrors CI checks locally)
git config core.hooksPath .githooks

# Start all services (PostgreSQL, Redis, Backend)
docker-compose up -d

# Build contracts
cd contracts && soroban contract build && cd ..

# Set up backend
cd backend && npm install && npm run migrate && cd ..

# Set up frontend
cd frontend && pnpm install && cd ..

See the complete Setup Guide for detailed instructions, verification steps, and troubleshooting.

πŸ“ Project Structure

stellarcade/
β”œβ”€β”€ contracts/          # Soroban smart contracts (Rust)
β”‚   β”œβ”€β”€ prize-pool/    # Prize pool management
β”‚   β”œβ”€β”€ coin-flip/     # Coin flip game
β”‚   β”œβ”€β”€ random-generator/  # Provably fair RNG
β”‚   └── ...
β”œβ”€β”€ backend/           # Node.js API server
β”‚   β”œβ”€β”€ src/          # Source code
β”‚   β”œβ”€β”€ migrations/   # Database migrations
β”‚   └── tests/        # API tests
β”œβ”€β”€ frontend/          # React + Vite frontend
β”‚   β”œβ”€β”€ src/          # React components
β”‚   └── tests/        # Frontend tests
β”œβ”€β”€ docs/             # Documentation
└── scripts/          # Utility scripts

πŸ“š Documentation

Document Description
Setup Guide Complete local development setup
Architecture System design and components
API Reference REST API documentation
Game Rules Game mechanics and rules
Deployment Production deployment guide
Contributing How to contribute

Subsystem Documentation

  • Backend - API server setup and development
  • Frontend - Frontend development guide
  • Contracts - Smart contract development

πŸ§ͺ Testing

# Run contract tests
cd contracts && cargo test

# Run backend tests
cd backend && npm test

# Run frontend tests
cd frontend && pnpm test

🐳 Docker Commands

# Start all services
docker-compose up -d

# View logs
docker-compose logs -f

# Stop all services
docker-compose down

# Rebuild and restart
docker-compose up -d --build

🀝 Contributing

We welcome contributions! Here's how to get started:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Enable Git hooks (git config core.hooksPath .githooks)
  4. Make your changes and run tests
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

See CONTRIBUTING.md for detailed guidelines.

πŸ›‘ Security

For security concerns or to report vulnerabilities, please see our SECURITY.md.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ’¬ Community

πŸ™ Acknowledgments

  • Built on Stellar and Soroban
  • Inspired by the decentralized gaming movement
  • Created with ❀️ by the community

Created with ❀️ for the Stellar Ecosystem (2026)

About

Stellarcade is a decentralized arcade platform built on the Stellar network using Soroban smart contracts. We provide provably fair games, community prize pools, and a seamless gaming experience using Stellar's fast and low-cost infrastructure.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages