Loops HouseCapybazaar

NEAR HACKATHON
Links
Team
1 member- NEOwner
nelson
Overview
Capybazaar is a small market-town game on NEAR testnet where every stall is an NFT that is its own NEAR account. Players join with just a name and get a real NEAR account whose only key is a function-call key, so there's no wallet, seed phrase or gas prompt. They forage goods, sell them to capybara shopkeepers whose prices move with stock, soak in the hot spring, and buy hats with test USDC. 70% of each hat sale goes as USDC into the stall's own account. Anyone can buy a listed stall: the NFT is the account, so its stock, coins and earnings move to the buyer.
The stall account is the authority on its owner (it implements the House of Stake sharded NFT items draft). Listing a stall freezes withdrawals, a sale must match the listing nonce, and the previous owner's agent keys are deleted on sale. Each stall is run by a shopkeeper agent that signs as the stall with a key limited to repricing within the owner's limits. The agents compete in a uniform-price caravan auction that brings coins into town.
NEAR pieces: named sub-accounts as NFTs, NEP-591 global contracts (each stall account stores 731 bytes), function-call keys for players and agents, NEP-171, NEP-245 and NEP-141. Measured gas is about 0.0003-0.0009 NEAR per action. Testnet only; test USDC has no value.