Commit Graph

12 Commits

Author SHA1 Message Date
martbost a5c2c38106 Sponsor follow + one network holding tank + Sponsor check (Marty, 2026-10-22, approved 1-3)
Same design as InstantAdPay (shared sponsorfollow.js). Deliberate sponsor changes (tank adoption, rescue, release,
adoption window ending, admin edit) are recorded and travel on the iapsync rows; InstantAdPay's deliberate changes are
applied here only when the member is not bound or binding on the LinkSpin contract (memberId, wallet on chain, or an
engine activation in flight), newer than our own, and both sides agreed before (or no sponsor here). Bound / diverged /
race cases change nothing and are logged. Ordinary rows keep the fill-empty rule, except a sponsor emptied on purpose
here is not refilled by an ordinary row.

Carry: an InstantAdPay batch holds its members (carry.hold) so no auto-activation starts mid-batch; ensureOnChain waits,
then re-reads the account so the contract binds the settled sponsor; wallets from a batch are linked after every sponsor
decision; the wallet hook skips activation while a follow is pending and activates once it is settled.
Registry keeps the follow record (loop guard) and a deliberate clear. Network tank, Admin > Members > Sponsor check and
the partner endpoints as on InstantAdPay. Rows without the new facts hash as before (no resend on deploy).

Tests: qa/sponsorfollow.test.cjs 27/27, qa/carry-hold.test.cjs ok, two-server e2e (in the InstantAdPay repo) 20/20,
QA member walk 0 bugs. No sponsor was changed on production.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 09:05:20 -05:00
martbost a416f2f9c9 Member numbers saved at every engine activation + one-time backfill from the chain (340 activated accounts had none, so the live ledger showed member numbers instead of usernames)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 06:41:12 -05:00
martbost 724dafd9be Restore CRLF line endings (no content change)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 18:45:25 -05:00
martbost 36611218ad Payouts switch on automatically when a wallet is linked (wallet screen, wallet sign-in, InstantAdPay sync): engine activateFor, gas on us, sponsors first; quiet in-app notice, email held by the pre-launch gate
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 18:44:00 -05:00
martbost baa7db61ff Message kinds from InstantAdPay (broadcast / alert / notice): carry-over notices are quiet inbox notices, never the sign-in modal; a one-time startup pass reclassifies the ones already stored
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 08:42:31 -05:00
martbost 19bb98eabc Join notice: no 3-day window wording; purchases never wait
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 08:20:15 -05:00
martbost 080cf703f1 Engine activation: rotate RPC providers, re-read the chain after any error before calling it a failure; seed sends the missed notice to members activated during the 403 run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 08:02:15 -05:00
martbost 732a3a0378 Pre-seed: notice says payouts were switched on for you (not 'someone was about to buy'); seedAll skips members already on-chain and reports them
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 07:59:56 -05:00
martbost 4a432975b0 Never hold a purchase: the 3-day claim window is gone. A sponsor with a wallet is activated by the engine (one retry); no wallet, unknown sponsor or a failed activation walks up to the nearest ancestor with a wallet, else the company. Only the buy (intent=buy) moves the member and sends notices; /api/me and /api/sponsor block only on an RPC hiccup.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 07:55:31 -05:00
martbost ab65439ad4 Sponsor fallback never names a position the contract does not have yet: on a fresh contract the first member joins with sponsor 0 and becomes #1 (Marty's activate(1) reverted 'Unknown sponsor')
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 06:41:54 -05:00
martbost 158ee291a1 carry: carryNotices setting keeps notices on-site only in the test area 2026-09-15 16:39:42 -05:00
martbost 010e8d7ffc LinkSpin test area: InstantAdPay engine fork rebranded, network registry, sponsor carry-over with engine activation and claim window, rotator with /r/ redirects, link-domain mini-sites
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-15 16:16:52 -05:00