Files
linkspin/public/ledger.html
T
martbost 010c3afdd9 Level 4 override for LinkSpin: weekly dry-run report + the payer, shipped OFF (Marty approved 2026-10-23)
override.js is the InstantAdPay module (same code, same tests) with LinkSpin defaults: qualification is the
LinkSpin contract's own buyerCount >= 5 (referred first buys of $20+, which on the $10/$25/... ladder means
$25+, the level-3 bar), house id #1, hunt up to 25 hops, one recipient per purchase, purchases from
overrideGoLive on, weekly Mon-Sun Central, settled Monday after 9 AM CT.

- Default overrideMode 'dryrun': Monday who-would-be-paid summary to the admin Telegram chat
  (telegramAdminChatId; email to ADMIN_EMAIL if the bot is not set). No money moves.
- Payer pays only with overrideMode 'live' + overrideGoLive + OVERRIDE_PAYER_KEY. LinkSpin has no MySQL,
  so every once-only step is an exclusive file create on the shared volume (fails closed); plan frozen
  per week, 'sending' persisted before the tx, lost answers -> review (never re-sent), dust carried,
  weekly cap held whole, balance + gas checked first.
- Members: AwardPaid from the payer emails + on-site notice "Your Level 4 override is paid"; Wallet
  screen and feeds label it "Level 4 override". /api/my/activity now reads the whole history (was the
  last 600 events, the IAP bug of 2026-09-16; LinkSpin is at 525).
- Admin: /api/admin/override (+ status, payer), POST /pay (live only), POST /resolve; P&L card.
- Contract page: Level 4 override panel hidden until overrideMode is live (contract.js reveals it).
- qa/override.test.cjs (bash qa/run.sh override): 30 checks, fake chain/signer, throwaway data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:20:02 -05:00

71 lines
4.0 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>Live ledger | LinkSpin</title>
<meta name="description" content="Every purchase, payout, and pass-up on LinkSpin, streamed straight from the blockchain with a verify link on every line.">
<link rel="canonical" href="{{SITE_URL}}/ledger">
<meta property="og:type" content="website"><meta property="og:site_name" content="LinkSpin">
<meta property="og:url" content="{{SITE_URL}}/ledger">
<meta property="og:title" content="LinkSpin: the live payout ledger">
<meta property="og:description" content="Watch real ad purchases split into instant on-chain payouts, live. Every line links to the raw transaction.">
<meta property="og:image" content="{{SITE_URL}}/banners/linkspin-og-1200x630.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="LinkSpin: the live payout ledger">
<meta name="twitter:description" content="Real ad purchases splitting into instant on-chain payouts, live and verifiable.">
<meta name="twitter:image" content="{{SITE_URL}}/banners/linkspin-og-1200x630.png">
<meta name="theme-color" content="#0B1424">
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700;800&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="icon" type="image/png" href="/logo-icon.png">
<link rel="stylesheet" href="/assets/pub.css?v=20261007b">
</head>
<body>
<header class="top">
<div class="wrap">
<a class="brand" href="/" aria-label="LinkSpin home"><span class="mark"></span><span class="word">Link<b>Spin</b></span></a>
<span class="eyebrow" style="color:var(--chrome-sub);padding-left:14px;border-left:1px solid var(--chrome-line)">Live ledger</span>
<span class="grow"></span>
<a href="/contract" class="btn ghost">The contract</a>
<a href="/join" class="btn pri">Start free</a>
</div>
</header>
<main class="sec" style="padding-top:44px">
<div class="wrap" style="gap:18px">
<div class="two" style="align-items:flex-end">
<div class="text" style="gap:12px">
<h1 class="disp" style="margin:0;font-size:44px;line-height:1.04">The ledger does not lie</h1>
<p style="font-size:16px">This page streams every payment the contract has ever made. If it is not here, it did not happen. Every line carries a verify link straight to the block explorer. Go click one.</p>
</div>
<div class="strip" style="margin:0;border-radius:8px;border:1px solid var(--chrome-line)">
<div class="wrap" style="padding:12px 16px"><span><span class="dot off" id="liveDot"></span><b id="liveBadge">connecting</b></span><span id="statLine"></span><span class="grow"></span><a id="contractLink" href="/contract" target="_blank" rel="noopener">contract source →</a></div>
</div>
</div>
<div class="panel" id="adSlotBanner" hidden style="padding:12px"></div>
<div class="panel" style="padding:0;overflow:hidden">
<div class="ph"><h2>Every payment, newest first</h2><span class="meta">read from Polygon · verify link on every line</span></div>
<div class="feed" id="feed"><div class="row muted">Loading recent history…</div></div>
</div>
<div class="panel" id="adSlotText" hidden style="padding:12px 16px;font-size:13px"></div>
</div>
</main>
<footer class="foot">
<div class="wrap">
<span class="word">Link<b>Spin</b></span>
<a href="/">Home</a>
<a href="/contract">The contract</a>
<a href="/terms">Terms</a>
<a href="/privacy">Privacy</a>
<a href="/disclaimer">Disclaimer</a>
<a href="/support">Support</a>
<span class="grow"></span>
<span class="mono" style="font-size:11px">a Crypto Team Build Network property</span>
</div>
</footer>
<script src="/assets/common.js?v=20261023ov"></script>
<script src="/assets/ledger.js?v=20261007a"></script>
</body>
</html>