Paradaux
IssuesPAR-21BacklogOpen ↗
0

A command which shows top-level economy stats like the UI

An in-game command showing top-level economy stats like the UI — e.g. broken-down total balances of players / businesses / government.

Technical notes — In-game only /baltop exists (BaltopCommandAccountMapper.getTopBalances, PERSONAL-only, per-player). The UI-style aggregate (total money supply + sum grouped by PERSONAL/BUSINESS/GOVERNMENT) exists only in the explorer's lib/sql/ledger.ts (totalSupply/byType), not in Treasury's command layer or treasury-api. Add a SUM(balance) GROUP BY account_type query to AccountMapper and a new /economy-style command (mirroring BaltopCommand) printing player/business/government totals + grand total via accountService.formatAmount.

Comments

tesks · Jun 4, 2026, 9:57 AM

Code context — In-game only /baltop exists (BaltopCommandAccountMapper.getTopBalances, PERSONAL-only, per-player). The UI-style aggregate (total money supply + sum grouped by PERSONAL/BUSINESS/GOVERNMENT) exists only in the explorer's lib/sql/ledger.ts (totalSupply/byType), not in Treasury's command layer or treasury-api.

Approach: add a SUM(balance) GROUP BY account_type query to AccountMapper and a new /economy-style command (mirroring BaltopCommand) printing player/business/government totals + grand total via accountService.formatAmount.

Activity

  • tesks description: Description updatedJun 4, 2026, 10:02 AM
  • tesks commentedJun 4, 2026, 9:57 AM
  • tesks assigned Assigned to rianJun 4, 2026, 9:27 AM