Market Square: Currencies, Wallets and Shops Kit
README.md
economy (economyKit)
The one interface a game uses for economyKit: local Economy = require("economyKit.economy"). It sets the economy up (which currencies, incomes and sinks are on, wallet display, shop screen, look), defines currencies, price lists, shops, incomes and sinks from code, reads the local player's wallet, sends buy, sell, spend, charge, grant, wave and trade requests to the bank and reports the answers as events, opens and closes shop screens, and places shopkeepers and coins. It chooses which machine runs the bank (the lowest peer) and passes messages between players and the bank. See the package README for every call.