Wallet-link nudges on for PolyBreak, SpellWheel, PolyWarriors (Marty 2026-10-25; they were push-only); QA walk: signed-out support tickets are members-only (962cdf0), non-member refused 403

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-25 05:33:43 -05:00
parent a4642341aa
commit cecba6b313
2 changed files with 11 additions and 7 deletions
+4 -4
View File
@@ -9,7 +9,7 @@
// account has a wallet that is an on-chain member (the same a.address the hand-off token carries) is PUSHED to that game's
// signed POST /api/iap/wallet instead of nudged; the game's own payout sweep then pays it. Idempotent on the game side (the same
// wallet twice is a no-op, a different one is refused), so the deploy overlap's two copies cannot do harm.
// nudge: false = push only (PolyBreak, SpellWheel, PolyWarriors joined 2026-10-25; their members never got nudge mail before).
// nudge: false = push only. PolyBreak, SpellWheel and PolyWarriors joined 2026-10-25 push-only; Marty turned their nudges on the same day.
const fs = require('fs'), path = require('path'), crypto = require('crypto'), https = require('https'), http = require('http');
let R = {}, DATA_DIR = '.';
const FILE = () => path.join(DATA_DIR, 'wallet-nudge.json');
@@ -29,9 +29,9 @@ function games() {
{ key: 'clutterhunt', name: 'ClutterHunt', url: process.env.SEEK_URL, secret: process.env.SEEK_SSO_SECRET },
{ key: 'driprunner', name: 'Drip Runner', url: process.env.DR_URL, secret: process.env.DR_SSO_SECRET },
{ key: 'roadagent', name: 'Road Agent', url: process.env.RA_URL, secret: process.env.RA_SSO_SECRET },
{ key: 'polybreak', name: 'PolyBreak', url: process.env.PB_URL || 'https://polybreak.app', secret: process.env.PB_SSO_SECRET, nudge: false },
{ key: 'spellwheel', name: 'SpellWheel', url: process.env.SW_URL || 'https://spellwheel.com', secret: process.env.SW_SSO_SECRET, nudge: false },
{ key: 'polywarriors', name: 'PolyWarriors', url: process.env.PW_URL || 'https://polywarriors.com', secret: process.env.PW_SSO_SECRET, nudge: false }
{ key: 'polybreak', name: 'PolyBreak', url: process.env.PB_URL || 'https://polybreak.app', secret: process.env.PB_SSO_SECRET },
{ key: 'spellwheel', name: 'SpellWheel', url: process.env.SW_URL || 'https://spellwheel.com', secret: process.env.SW_SSO_SECRET },
{ key: 'polywarriors', name: 'PolyWarriors', url: process.env.PW_URL || 'https://polywarriors.com', secret: process.env.PW_SSO_SECRET }
].filter(g => g.url && g.secret && String(g.secret).trim().length >= 32);
}
// POST the wallet to the game: X-IAP-Sig = hex HMAC-SHA256(secret, 'wallet\n' + ts + '\n' + hex sha256(body)) -> { status, j }