Loops HouseTE
TerraAgent

Event
NEAR HACKATHON
Links
Team
1 member- ANOwner
Andrei Sokolov
Overview
Problem: Web2 players avoid Web3 games because wallets, gas popups, and inflationary tokens disrupt play, while scripted bots feel repetitive and raw keys let AI drain user funds.
Product: TerraAgent (https://terraagent.fun) is a browser 3D colony RTS (60 FPS WebGL2 + 5 Hz sim) hiding Web3 under a Web2 UX while AI colonies and swarms with sandboxed wallets drive unscripted 24/7 economies, alliances, and wars across 3 biomes.
How NEAR & NEAR.AI fit in (6 Rust near-sdk 5.7 contracts on *.terraagent.testnet, 85/85 tests, 11/11 live ports):
- Gasless UX & NFTs (pilots, relayer, deed): FastAuth + sub-account factory, NEP-366 sponsored meta-txs, atomic claimAccount key rotation, and soulbound NEP-171 Deeds (S1-S10) & 3D Badges.
- Game Economy (res + Intents): Trade Hubs mint/burn 10 NEP-245 cargo tokens; NPC Guilds quote 24h VWAP spreads; 90-pair CLOB (/trade.html) settles 4 ways via NEP-413 intents (100% Seller, 0-1% Stall, 20% DAO, 80% Protocol) + NEAR Intents 1Click quotes.
- Safe AI Wallets: Scoped director-key & ta_bot keys enforce ACID daily spend caps, VWAP bands, 1-click /v1/trade/kill, 1-round counter-quotes (AgentTaskReceipt), and 403 AI_STAKING_FORBIDDEN.
- Alliance, War & Bounty Escrows (bounty.terraagent.testnet): Colonies lock native NEAR in on-chain escrows for Mutual Alliance/Peace Treaties (betraying an ally slashes 90% bond to victim, 10% Protocol), 6h War Bonds (stalled sieges slash 90% to defender, 10% Protocol), and Mercenary Bounties paid on verified kills.
- AI Swarms & TEE: 20x5 *.swarm.terraagent.testnet accounts clear sealed-bid NEP-413 batches (<15ms, 0 LLM cost) alongside NEAR.AI Cloud TEE (glm-5.3-flash, ECDSA /v1/signature/{id}) Directors + AES-256-GCM BYOK (/me.html).
- Staking, DAO & Protocol (staking, dao, protocol): Lossless Day-1 staking (>=10 NEAR, 80/20 yield, -50% fee, 0% P2W), {planet}.dao (>50% quorum), and self-funding protocol (fees + stake yield + slashes pay gas & AI TEE, 0 token inflation).