Game POL pays to any LINKED wallet (Marty approved "build all three", 2026-10-27)
- walletnudge.js: the hourly push hands the member's signature-linked wallet (accounts.address, only set by auth.verifyChallenge -> accounts.linkWallet) to every game holding an unpaid balance, activated or not; memberId is the on-chain id when there is one, else 0 (a failed chain read falls back to the stored id instead of skipping the row). Holding-tank members waiting to switch on payouts no longer have their game POL stuck. Game side unchanged contract: signed POST, fill-empty-only (different wallet = 409, retried once a day), idempotent. - Nudge copy (no linked wallet only): "You've earned X POL in <game>. Link your wallet (one free signature) and it's sent automatically, including everything you've earned so far." + /my#wallet; never mentions switching on payouts. - The IAP -> game /auth tokens already carried wallet: a.address regardless of activation (no change). - chatbot.js: game-pol-wallet canned answer (ahead of the per-game entries) + GAME POL TO ANY LINKED WALLET prompt fact - qa/walletnudge.test.cjs (mock game: non-activated push with memberId 0, activated push, chain-read failure, nudge copy, 409 refusal + daily retry), wired into qa/run.sh member + walletnudge; chatbot-parse routing cases for the new answer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
# bash qa/run.sh earn # local copy: earning flows end to end (~2-3 min)
|
||||
# bash qa/run.sh all # public + member + earn
|
||||
# bash qa/run.sh kb # chat knowledge base: retrieval unit test + chat endpoint e2e on a local copy with a mock OpenRouter
|
||||
# bash qa/run.sh walletnudge # game wallet push (any linked wallet, activated or not) + no-wallet nudge copy against a mock game (also runs in member)
|
||||
# bash qa/run.sh tankhold # holding-tank activation hold, 24-hour safety net (mocked clock) and LinkSpin alignment: unit + local copy (also runs in member)
|
||||
# bash qa/run.sh sponsorfollow # sponsor follow rule + network tank unit tests and the two-server e2e (local IAP + local LinkSpin, throwaway data)
|
||||
# bash qa/run.sh door # Spooky Doors door + costume shop flows on their own local copy (qa/door.mjs boots it)
|
||||
@@ -43,6 +44,9 @@ if [ "$MODE" = "public" ]; then
|
||||
elif [ "$MODE" = "member" ]; then
|
||||
start_local 8796 && { LOCAL=http://127.0.0.1:8796 node qa/walk.mjs member || status=1; }; stop_local 8796
|
||||
node qa/tank-hold.mjs || status=1
|
||||
node qa/walletnudge.test.cjs || status=1
|
||||
elif [ "$MODE" = "walletnudge" ]; then
|
||||
node qa/walletnudge.test.cjs || status=1
|
||||
elif [ "$MODE" = "tankhold" ]; then
|
||||
node qa/tank-hold.mjs || status=1
|
||||
elif [ "$MODE" = "sponsorfollow" ]; then
|
||||
|
||||
Reference in New Issue
Block a user