Loops HouseMetropolix

NEAR HACKATHON
Team
1 member- THOwner
Theodhore. R
Overview
Problem: in browser strategy games your city lives on the developer's server, and raids against other players are whatever that server says. Product: Metropolix is a pixel fantasy city builder (five peoples, 60 buildings, AI rival mayors, a war room, a player market) that runs in the browser with no sign-up, live at metropolix-city.vercel.app. NEAR's role: a Rust contract on NEAR testnet (metropolix.testnet) holds each player's city. Founding costs 0.05 testnet NEAR for storage. One wallet confirmation adds a function-call key limited to four game methods, so the city autosaves every 5 minutes with no pop-ups and the key cannot move NEAR. Every save is bounded: layout and troops are validated, and the clock, gold and XP are clamped to what the city could have earned in real time. Players raid each other's saved cities inside the contract with on-chain randomness; a win moves gold between their on-chain treasuries and shields the target. $METRO is a NEP-141 coin in an x*y=k pool against testnet NEAR, backed by the treasury plus the gold of every saved city, so raids move its NAV; above 2x mNAV the contract issues into the pool, below 0.9x the treasury buys back and burns. Treasures from the vault mint as NEP-171 NFTs. A /verify page recomputes every city's ChainPower and the coin's NAV from raw chain data in the browser. Checks: 178 simulation tests, 34 contract tests, two AI audit rounds of the contract with every finding fixed and tested. Honest limits: testnet only, tokens have no value; the per-second simulation runs in the browser and is bounded, not replayed, by the contract; AI mayors are off-chain.