Loops HouseAshes of the Ninth Heaven

NEAR HACKATHON
Links
Team
1 member- MEOwner
Meraj Ali
Overview
Ashes of the Ninth Heaven is a xianxia deckbuilding RPG whose market is a real economy on NEAR. You win card duels for materials, forge techniques from them, and trade with nine merchants who are AI agents, each with its own NEAR account, purse and stock.
Every price comes from one readable rules file (js/market/merchant-rules.js): stock against target, recent demand, the weekly Pagoda Edict and world events. The browser, a fast-forward simulation and the contract all run it, and tests replay thousands of recorded trades to prove they agree. Hover any price and the merchant explains it. Flood a good and its price falls; let a purse run dry and the shop closes until patrons rekindle it.
Every card, material and the jade currency is a token in one NEP-245 contract (items.ashes-ninth.testnet), and the market runs inside it: the contract, not a server, decides every trade. Players sign in with Google, email or as a guest: no wallet, no seed phrase, no gas. A browser key limited to the game's methods signs NEP-366 delegate actions, and a relayer pays. Battle rewards are minted only after the server replays the fight.
AI agents: once a market day each merchant sets its strategy through NEAR AI and signs it from its own account, with a key limited to three methods. Short of stock, it posts a paid job with the wages in escrow; players get the first hours, then another merchant's agent fills it. Players can haggle: the contract decides the counter, and NEAR AI only voices it.
NFTs: each shop has a Shop Deed (NEP-171). Its holder takes 10% of every profitable day into a vault that moves with the deed. Each deed's history lives on the ledger, and its counting room opens only for the current holder (NEP-413).
For judges: /judge sends real transactions, including moves the contract refuses, each with an explorer link. npm run verify and npm run chain:verify check everything without keys. Testnet; all code written during the hackathon.