Commit Graph

8 Commits

Author SHA1 Message Date
martbost ffa0d74c70 My Stack POL: network sign-in through the hub + signed-in member area at /my (Marty approved 2026-11-19)
- networksso.js (shared file, same copy as IAP/LinkSpin/YPB): hub-only sign-in (HUB_SSO=on), silent check on /my, sign-out
- my.js: signed session cookie (keyed off HUB_SECRET), sign-outs in the my-signouts.json MySQL document; /my shows the page
  link + on/off, Pro, join links per program, share kit, own payout rows with Polygonscan links and totals from the ledger
- iapswitch.js: the page switch stays in IAP's stack-optin.json; Stack POL calls IAP POST /api/partner/stackpol/switch
  (signed, STACKPOL_SWITCH_KEY; spec in the file). Until IAP has it, /my links to IAP Promo tools
- tools/indexer.py: snapshot gains `my` (every paid member's rows, wallets, page flag, IAP switches, Pro list); public data unchanged
- header Sign in / My Stack POL entry; robots keeps /my and /sso/ out
- qa/my.test.mjs: 66 checks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 06:57:11 -06:00
martbost 96d6281e3e Stack POL data in MySQL (Marty 2026-11-16: payout totals wiped on every deploy)
The indexer snapshot (was /tmp/stack-index.json) and the chatbot KB (was memory)
are now MySQL documents via docstore.js (DOCSTORE_URL, Coolify stackpol-mysql),
loaded before the server listens so a deploy shows the last totals at once.
Snapshot split into stack-index.json + stack-index-at.json so a push with no new
payouts rewrites only the tiny doc (docstore skips unchanged bodies). Ingest API
unchanged. Tested on core: restart keeps totals, /programs, /earn, member pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 04:46:28 -06:00
martbost 7446df2f4f Site assistant (Marty 2026-11-15): chat widget in the Stack POL look on every page, CANNED + FACTS from this repo (the on-page FAQ, programs.js, the 5-minute indexer, opt-in member pages, holds nothing, no income promise), retrieval over the shared network knowledge base on the hub (netkb.js as hub site stackpol; another site named = its answer, with its tracked LinkSpin link), reasoning off, account problems hand off to network support. Static server now serves .js/.css; Dockerfile copies the chat modules. chatbot.test 125 pass
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 13:11:04 -06:00
martbost 3a6ac0a81e Stack POL: DownlineHydra program (standing rule: every rebuilt network site joins Stack POL when it goes live): programs.js dh /earn/downlinehydra (join via LinkSpin nwdh), netsites downlinehydra nwdh, layout ref swap for downlinehydra.com, indexer HydraPro Paid level 1-5 + Claimed (dh-chain.json; house = contract, Tangem, keeper), img dh.jpg. Dry scan OK (0 logs). LOCAL, push at the downlinehydra.com go-live after LinkSpin has nwdh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:58:55 -06:00
martbost 0805c1bcb4 Stack POL: ViralAdBlitz program (Marty 2026-11-15 standing rule: every rebuilt network site joins Stack POL when it goes live)
- programs.js: 'vab' entry (slug viraladblitz, royal blue #0a2fa8, Viral text ads), join via the LinkSpin network link nwvab?src=stackpol&s1=<member>; facts from the VAB app and VABShop contract only
- /earn/viraladblitz + sitemap entry (automatic from the registry); card image public/img/vab.jpg (VAB og image, 800x420)
- netsites.js: same file as ViralAdBlitz (CODES viraladblitz: nwvab, fallback list entry)
- layout.js: Pro personalization also swaps ?ref=martbost on viraladblitz.com links
- tools/indexer.py: VAB member payouts read-only from Polygon (VABShop Paid level 1-5 + Claimed, eth_getLogs from deploy block 97324419, cache vab-chain.json); level 0 (company), contract, company and keeper wallets excluded. Dry run on core: scanned to head, 0 logs (no Boost sold yet)
- README: sources

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:04:37 -06:00
martbost 349fa79643 Stack POL: Viral Banner Blitz program (Marty 2026-11-15 standing rule: every rebuilt network site joins Stack POL when it goes live)
- programs.js: 'vbb' entry (slug viral-banner-blitz, pop-art pink #ff2d87, Banner loop), join via the LinkSpin network link nwvbb?src=stackpol&s1=<member>; facts from the VBB app and VBBShop contract only
- /earn/viral-banner-blitz + sitemap entry (automatic from the registry); card image public/img/vbb.jpg (VBB og image, 800x420); also adds the missing public/img/dlb.jpg (DLB card image was a 404)
- server.js: per-program button verb (Join for the banner sites, not Play) and WebApplication JSON-LD for them; home description no longer calls every program a game
- layout.js: Pro personalization also swaps s1=martbost on LinkSpin network links and ?ref=martbost on downlinebanners.com / viralbannerblitz.com links
- tools/indexer.py: VBB member payouts read-only from Polygon (VBBShop Paid role 0 sponsor shares + Claimed, eth_getLogs from the deploy block, cache vbb-chain.json) plus weekly prize transfers from VBB prizes.json, each checked on chain (from the prize wallet, to the winner, succeeded); contract, prize, company and keeper wallets excluded. Decoder checked against the Downline Banners contract (same Paid signature): 70 logs, role-0 total matches its chain index exactly
- README: sources + the standing rule

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 07:49:59 -06:00
martbost ad546660b9 Stack POL v1: live network totals, program pages, public ledger, opt-in member stacks, blog on the IAP/LinkSpin engine, full SEO (sitemap, robots, canonical, OG/Twitter, JSON-LD), branded share image; indexer on core pushes a snapshot every 5 min
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 14:14:16 -06:00
martbost f9531e1939 Stack POL placeholder: coming-soon page (static, nginx)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 05:20:45 -05:00