Paradaux

PAR-21

0

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

PlannedLowrianTreasuryFeature

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.

Resources

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

  • ParadauxIO linked a pull request — PR #2 open — Last major release
  • ParadauxIO linked a pull request — PR #2 open — Last major release
  • ParadauxIO linked a pull request — PR #2 open — Last major release
  • ParadauxIO linked a pull request — PR #2 open — Last major release
  • ParadauxIO linked a pull request — PR #2 open — Last major release
  • ParadauxIO linked a pull request — PR #2 open — Last major release
  • ParadauxIO linked a pull request — PR #2 open — Last major release
  • ParadauxIO linked a commit — Commit 3816e7a — Add /economy command — top-level economy stats by account type (PAR-21)
  • paradaux changed status to Status → Planned
  • paradaux description: Description updated
  • tesks description: Description updated
  • tesks commented
  • tesks assigned Assigned to rian