Skip to main content
forge-economy owns money. Wallets are write-through and audited: every change commits the balance and a log row in a single transaction, because money is the core of dupe forensics. On top of wallets it provides shops, proximity pay, and a full trade flow.

Concepts

  • Currency. A stable id (coin) with a scope (character or account), optional cap and decimals. The wallet owner is a character id or a user id depending on scope.
  • StartingBalances. Granted once on a character’s first activation.
  • Audited. Deposits, withdrawals, and transfers each write a balance change plus a ledger row atomically.

Exports

Wallets & currencies

Shops, pay, trade

Events

Loot and quest currency rewards bridge into Deposit automatically.

Configuration

Ships one neutral currency, coin (character scope), plus StartingBalances = { coin = 100 }, in editable shared/data/currencies.lua (DefaultCurrencies / DefaultStartingBalances), gated by Config.ShipDefaults. Pay and trade distances and rate caps live in Config.