
Blightfell
End-to-end Web3 integration for a blockchain-integrated strategy autobattler
Overview
Blightfell is a blockchain-integrated strategy autobattler by Merlyn Labs. As Lead Integrations Engineer contracted through Ball Lightning AB, I owned the entire Favor system — the in-game currency that bridges on-chain purchases to gameplay. The work spans from the purchase UX on Blightfell.com through backend verification, ledger accounting, and Unity server-to-server endpoints.
Favor System Architecture
The Favor economy follows a strict pipeline: on-chain purchase → backend verification → Neon Postgres ledger entry → in-game balance update. Every transaction is idempotent and auditable, with recovery paths for failed states.
- Wallet linking and auth flow integrated with Abstract Global Wallet and Arbitrum L2
- Idempotent ledger writes with full audit trail in Neon Postgres
- Anti-double-spend protections using Upstash Redis guards and distributed locks
- Credit and reconciliation cron jobs for production operations
Purchase Flow & Anti-Double-Spend
Built the Blightfell.com purchase experience using Next.js, React, TypeScript, Tailwind, and shadcn/ui. The flow covers auth + wallet linking, pricing/quantity UX, and transaction handoff to credit Favor reliably. Every spend operation uses Redis-backed guards and Neon ledger semantics to handle concurrency and retries safely.
Blood Moon Bundle
Delivered the Blood Moon bundle flow spanning a second chain (Arbitrum) with automated crediting and airdrops to Abstract Global Wallet. This required integrating auth and ownership checks across multiple systems, coordinating cross-chain state, and building production-ready runbooks for Early Access operations.
