Use public endpoint for game bank requests (Refs #13)

This commit is contained in:
2026-10-12 22:20:37 -04:00
parent 9cce0be438
commit 3bb0b5178e
9 changed files with 169 additions and 29 deletions
+30
View File
@@ -6,6 +6,36 @@ T5/T6 script and each native plugin. Current versions are recorded in
## 2026-10-12
### Public game-bank endpoint — TWS #13
| Component | Version | Affected source |
| --- | --- | --- |
| `tws_t5_bank.gsc` | `2.0.0` | `t5/scripts/tws_t5_bank.gsc` |
| `tws_t6_bank.gsc` | `2.0.0` | `t6/scripts/tws_t6_bank.gsc` |
- Use `https://ec.thewrightserver.net/api/bank` for all balance, transfer and
settlement requests on both engines. Remove the `tws_bank_url` override;
stale settings are ignored. This configuration removal requires a major bump.
Keep EC's `tws_server_id` and private per-instance `tws_bank_token` authentication.
- Both T5 and T6 receive the same behavior with their existing namespaces and
startup guards. Native plugins and other scripts need no source changes.
- Compatibility: requires companion EC agent `1.9.1+` to recognize public and
legacy controller-derived journals during authenticated teardown settlement.
Existing plugin `1.1.0`, common `1.0.0+` and telemetry `1.0.0+` remain sufficient;
no new native API or third-party dependency requirement.
- Deployment: update agents first. When changing endpoints, **rebuild through
EC** so the old process stops and its pending decisions settle before a new
process starts. Do not switch scripts with just a map restart in that case;
journals are endpoint-scoped. If the old URL already matches exactly, copy the
scripts and restart the map; no full server-process restart is required.
See [endpoint upgrade and recovery](README.md#upgrading-the-bank-endpoint).
No deployment was performed; agent release signing, Windows/GSC compilation
and live T5/T6 validation remain required.
- Checks: portable script fixtures exercise real initialization with stale
overrides, every request type, authentication, empty balances and retries.
Native fixtures cover zero-balance and insufficient-balance replies alongside
existing durable storage and process-restart checks.
### Persistent cross-game player bank — TWS #3 / Electric Cherry #146
| Component | Version | Affected source |