Loops HouseHearthmarket

NEAR HACKATHON
Links
Team
1 member- PHOwner
Pham Nguyen Khang
Overview
Game economies usually die in one of two ways: developers keep patching prices, or a token is pumped in and the game becomes a chart. Hearthmarket is a pixel village whose economy runs itself. Six AI agents (miner, lumberjack, farmer, baker, smith, merchant) produce, negotiate prices with each other, hire each other and fill player orders. Real weather in five producing regions moves world prices; the price of tokenized gold read from NEAR Intents sets what village gold is worth.
Players play with the agents, not beside them: they haggle with an NPC over three rounds while it remembers lowballs and loyal customers, take big orders on a promise, list goods on a stall board that NPCs buy from, hire an NPC to keep their stall, vote in a council where each NPC votes its own interest, fill co-op caravans with them, and race Silas, an AI rival trader, toward a weekly goal.
Every agent is a NEAR sub-account that signs its own transactions with a function-call key limited to the game contract and its own methods. The contract enforces daily budgets, recipes and escrow; gold is NEP-141, goods NEP-245, badges NEP-171. Stall listings move goods into a separate stalls contract by mt_transfer_call, and an NPC buys them with its own key through ft_transfer_call. Google players get a NEAR account derived from their login, the operator relays their trades, and they can claim the key into any wallet. The oracle posts world data with the SHA-256 of the source payload. Agent brains run on NEAR AI Cloud and can only turn bounded dials.
Security is shown, not claimed: a red-team panel swaps an agent's brain for a model that obeys any prompt injection and runs 20 attacks. The signer refuses most before anything is signed; the contract refuses the rest as failed transactions anyone can open. A public dashboard shows prices, flows, agent deals and every call that reached testnet.