Project
How it's built
Blast Ball is a game server, a website and a worker. There are no smart contracts of our own.
The parts#
| Part | What it does |
|---|---|
| Game server | Runs every arena at 30 Hz, checks sign-ins, applies the fair-play rules and writes counted hits to the database |
| Website | The arena in the browser (three.js), leaderboards, rounds, docs and the public API |
| Worker | Claims $BlastBall's creator fees into the pot, books every inflow, opens and closes rounds, buys back and burns, pays prizes, reconciles the books against the chain |
| Database | Postgres: rounds, scores, counted hits, payouts, deposits, settings |
On-chain programs used#
| Program | Used for |
|---|---|
| pump.fun bonding curve | $BlastBall itself, and buybacks before graduation |
| pump.fun fee sharing (pump-fees) | Routing creator fees to the pot wallet; distribute_creator_fees to claim them |
| PumpSwap + Jupiter | Buybacks after graduation |
| SPL Token / Token-2022 | burn_checked for the buyback |
| System program | Prizes (plain SOL transfers) and gifts |
Every transaction is simulated#
The worker simulates each transaction before signing it and records its signature before sending it, so an interrupted step is settled from what the chain says instead of being repeated.