"""Builds public/index.html from the approved mockup (tools/mockup-Main.dc.html, Marty 2026-11-16): same copy, colours, fonts and sections; the header and footer come from assets/common.js; the form, pricing buttons, live result and network table are wired. Run: python tools/build-index.py""" import re, os H = os.path.dirname(os.path.abspath(__file__)) src = open(os.path.join(H, 'mockup-Main.dc.html'), encoding='utf8').read() a = src.index(''); b = src.index('') body = src[a:b] def rep(old, new, count=1): global body assert old in body, old[:80] body = body.replace(old, new, count) # form rep('
BNB Chain', '') rep('', 'cursor: pointer" data-buy="deep1" disabled>Payments arrive at launch') rep('cursor: pointer">Buy 10 reports', 'cursor: pointer" data-buy="deep10" disabled>Payments arrive at launch') rep('One payment. It stops by itself after 3 months.', 'One payment. It stops by itself after 3 months. Alerts start at launch.') rep('', '''
Have a voucher? Vouchers add deep reports or extra free checks to this browser, or to your account when you are signed in.
Staging test code For testing only. It unlocks deep reports and test purchases that record who would be paid. No money moves.
Share WebWorthIt Your referral link. When someone you referred buys a report, you earn 20% as their direct sponsor, plus 5% on levels 2 to 5 of your team. You earn only when people choose to buy.
''') rep('[address published at launch] · source verified on Polygonscan', '[address published at launch] · source verified on Polygonscan · placeholder until launch') rep('View its scorecard', '[scorecard at launch]') # network table: full addresses, filled from /api/network-checks NET = [('Viral Banner Blitz', 'polygon', '0x36F6ccc8752DcE1c84e06b65f07dF30e8a4707D7', '0x36F6…D7D7'), ('ViralAdBlitz', 'polygon', '0xb58447b0CE9a38Ad0e7d41a074FEbee696452905', '0xb584…2905'), ('DownlineHydra', 'polygon', '0xEd07Ad7150ecBa62689Cf2480729753F2Fa44e90', '0xEd07…4e90'), ('5xYourTeam', 'polygon', '0x83Bb982d8B485De1a24E7D313765dDA48D5aBc74', '0x83Bb…bc74')] for name, ch, full, sh in NET: old = re.search(r'%s.*?' % re.escape(name), body).group(0) body = body.replace(old, '%s%sVerified[scorecard at launch]' % (full.lower(), name, full, sh)) rep('

We run the same check on every contract in our own network and publish the result, good or bad. Rescanned every week.

', '

We run the same check on every contract in our own network and publish the result, good or bad. Rescanned every week.

\n

Each grade is our opinion, from the published rubric applied to the public facts in the linked report.

') rep('Open the Contract Checks topic', 'Open the Contract Checks topic [placeholder: opens at launch]') rep('High risk · updated Nov 16', 'High risk · updated Nov 16 [placeholder]') assert '—' not in body head = ''' WebWorthIt: check before you join
''' tail = '''
''' open(os.path.join(H, '..', 'public', 'index.html'), 'w', encoding='utf8', newline='\n').write(head + body + tail) print('ok', len(head + body + tail))