Commit Graph

6 Commits

Author SHA1 Message Date
martbost 840161b367 Membership and sponsors through the network hub (Marty 2026-11-14): hubpeople.js (the Downline Banners module, signed as vbb, cached 5 minutes, never waits on a down hub); netMember asks the hub first, InstantAdPay only when the hub is unreachable. Free daily credits: verified = the hub knows this wallet, or the network member who signed in through InstantAdPay/LinkSpin (by the token's email, never stored); InstantAdPay or a network sign-in counts only while the hub is unreachable. /api/my/voucher: sponsor = the hub network sponsor for the wallet, resolved to a wallet by hub id; hub unreachable = no voucher (why hub-unavailable). Admin status shows hubLookup. Smoke 142/142 (stand-in hub answers /v1/resolve)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 09:25:57 -06:00
martbost be9de262db Launch prep: /health + Dockerfile HEALTHCHECK; old site links (/?<old username>, /splashpg.php?pid=N&r=, /lcp.php?pid=N&r= -> /?ref=<network username> from the oldrefs.json MySQL document, loaded by POST /api/admin/oldrefs; any other *.php -> /), checked before any page; hubreport.js (DLB pattern): each VBBShop purchase reported to the network hub by wallet, first as contract-bind with the sponsor, later as contract-spend, signed as vbb, off unless HUB_ENABLED; compose passes HUB_* + RPC_URLS + CHAIN_ID. Smoke 134/134
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 08:03:26 -06:00
martbost 07cc1944e6 VBBShop hooks (inert until configured, nothing deployed): GET /api/my/voucher signs an EIP-712 sponsor voucher with KEEPER_KEY when the hub lookup names the member's network sponsor (new optional sponsor field; none or self = no voucher); shop.js watcher reads Purchase logs (CONTRACT_ADDRESS + CHAIN_RPC, confirmed blocks, 1,000-block ranges) and credits packs once per txHash:logIndex, dedupe marks saved in vbb.json with the credits; admin status shows the watcher, never the key. Packages page stays coming soon. Smoke 117/117 (fake chain + voucher checks)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:20:24 -06:00
martbost 885187bfb1 Free daily post credits for network-verified members only (Marty 2026-11-13): InstantAdPay/LinkSpin sign-in or a wallet the network knows; plain wallets rechecked each visit; copy on My Banners, How and Packages; smoke 102/102
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 15:48:30 -06:00
martbost cb77582926 Weekly prize pot (Marty 2026-11-13): 10% of the week's sales, $20 floor topped up by the company, $50 cap kept internal; half per leaderboard, split 50/30/20; leaderboard page shows the live pot, never the cap; smoke 100/100
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 15:42:03 -06:00
martbost 832395daa4 VBB v1: Marty's approved numbers as config defaults (1 free credit/day; packs 10 for $3, 40 for $10; look $2; split 30/70 kept for later; 150 views per cycle; weekly prizes $15/$7/$3 per leaderboard, display only); packages page shows planned prices as coming soon; smoke test (99/99); OG image + icon; env example + compose (not deployed)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 15:30:19 -06:00