A7: player area - play, wallet, movements (WEB-03, WEB-05, WEB-20..27)
Gioca: the round, the player's funds and their bet; the bet is two steps (a confirmation screen that sends nothing, then an explicit confirm) with a fresh idempotency key per screen, and the server re-checks everything. Portafoglio: spendable apart from in-confirmation, deposit address with a QR of the player's own address, copy button, simulated test deposits. Movimenti: the player's own ledger, paged, stacked as cards on a phone. GET /app/stato/ feeds the page and its polling. Every view takes the user from the session only. Checked end to end in a real browser (Playwright): status moves from pending to confirmed without a reload, a double click is one bet. Mutation checks: cross-account leak, non-idempotent POST and unrestricted test-deposit amounts are all caught. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
939c113043
commit
42e5e33371
21 files changed
+1192
-48
No files matched your search
@@ -164,3 +164,6 @@ if LEDGER_BACKEND == "simulated" and PLM_NETWORK == "mainnet":
|
||||
# runs in a few minutes on localhost. Real chains ignore both.
|
||||
SIMULATED_BLOCK_SECONDS = int(os.environ.get("SIMULATED_BLOCK_SECONDS", "20"))
|
||||
SIMULATED_CONFIRM_SECONDS = int(os.environ.get("SIMULATED_CONFIRM_SECONDS", "5"))
|
||||
|
||||
# Where a transaction can be looked up (WEB-24). Empty = no link. `{txid}` is replaced; e.g. https://explorer.example/tx/{txid}
|
||||
EXPLORER_TX_URL = os.environ.get("EXPLORER_TX_URL", "")
|
||||
Reference in new issue
Block a user