1
0
Fork 0
polaris-task-force/tests
Z8MB1E 73cae3defd feat(arma): sync in-game shop money events to bank accounts
Route the game's `money.delta` events into the web banking system so a
player's personal bank account tracks their in-game wallet.

- New `processMoneyEvent` (src/lib/arma-bridge/money.ts) applies a parsed
  money delta to the player's personal account: debits go to the unit
  treasury (or leave if no treasury), refunds hit the treasury first and
  fall back to a plain deposit, and rewards/grants deposit directly.
- Wire the handler into ArmaSyncEvents and add a `POST /api/arma/v1/balances`
  route (get_balances) that returns personal balances for Steam IDs, omitting
  unlinked IDs so the game keeps its own stored value.
- Events dedupe by serverId+eventId so a retried delivery never
  double-charges, and the whole path never throws.
2026-10-01 10:04:32 -04:00
..
e2e test(tech-tree): add integration and e2e coverage 2026-10-01 10:04:07 -04:00
int feat(arma): sync in-game shop money events to bank accounts 2026-10-01 10:04:32 -04:00
push-schema.ts feat(test): run tests against a dedicated truncated database 2026-09-22 17:58:17 -04:00
seed-baseline.ts feat(test): run tests against a dedicated truncated database 2026-09-22 17:58:17 -04:00
test-db.ts feat(test): run tests against a dedicated truncated database 2026-09-22 17:58:17 -04:00
vitest-global.ts feat(test): run tests against a dedicated truncated database 2026-09-22 17:58:17 -04:00
vitest-teardown.ts feat(test): run tests against a dedicated truncated database 2026-09-22 17:58:17 -04:00