On-chain Mafia game with ENS subnames, Flow staking, and Filecoin-powered assets.
Prepasur is a multiplayer on-chain Mafia-style social deduction game reimagined for Web3. Players take mythological roles Asur (Mafia), Dev (Doctor), Manav (Villager), and Rishi (Detective), and compete through commit-reveal actions, staking, and sabotage to win rounds.
Every player is issued an ENS subname (e.g., rishi.prepasur.eth) as their persistent identity, linked to both their Ethereum and Flow wallets. These names store profile data and avatars, creating a cross-chain identity layer that extends beyond the game.
Game assets and player-generated content are stored on Filecoin via the Synapse SDK, ensuring permanence and verifiability. An integrated NFT marketplace allows players to trade collectibles, skins, and achievement badges, giving the game both play-to-earn and social identity utility.
By combining Flow’s scalability, ENS’s universal naming, and Filecoin’s storage guarantees, Prepasur delivers a gasless, addictive, and provably fair Web3-native game that bridges casual gaming and on-chain identity.
Flow Blockchain: Core gameplay logic (staking, commit-reveal, settlement) is built on Flow’s EVM environment, giving us low fees, account abstraction, and smooth onboarding.
ENS Subnames: Every player receives a subdomain under prepasur.eth. We implemented a relayer + Namespace offchain manager so subnames resolve via ENS resolvers (CCIP-read) with text records linking their Flow address and avatars. This ties game identity into ENS’s universal ecosystem.
Filecoin (Synapse SDK): All game assets (pixel-art roles, avatars, metadata, and player NFTs) are stored on Filecoin for permanence. The Synapse SDK made integration easy, and ensured decentralized hosting without running custom infra.
NFT Marketplace: We deployed a simple Flow-based marketplace for skins and achievement NFTs. Assets reference Filecoin IPFS CIDs, and ownership is verified on-chain.
Frontend: Next.js + wagmi + viem for Ethereum/ENS resolution, and FCL for Flow wallet connection. Pixelated UI/UX to fit the retro mythological space-mafia theme.
Hacky but fun bits: We built a commit-reveal system off-chain (for speed) but verifiable on-chain at settlement. ENS text records double as cross-chain identity by embedding Flow addresses. We also hacked together a pixel-art generator for avatars and immediately pushed them to Filecoin for authenticity in the demo.