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>
This commit is contained in:
martbost
2026-11-15 08:58:55 -06:00
parent ab07ffebe2
commit 3a6ac0a81e
6 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -7,4 +7,4 @@ stackpol.com: every POL payout across the network, stacked. Live app since 2026-
- Blog: content/blog/<slug>.json, one file per post (title, seoTitle, excerpt, body HTML, cover, tags, publishedAt, updated, faq[]). Same engine as InstantAdPay/LinkSpin blog.js, ported to file storage. Future-dated posts stay hidden until their time. Generators in tools/write_posts_*.py.
- programs.js: program registry (keys match the indexer); game blurbs are InstantAdPay's own.
- mockup/: the Oct design mockup (artifact https://claude.ai/artifact/1mN4dCYUcbw7EHicCdejM3).
- Standing rule (Marty 2026-11-15): every rebuilt network site is added here when it goes live: a programs.js entry, its /earn/<slug> page (automatic from the entry, plus public/img/<key>.jpg 800x420) and an indexer source for its member payouts (house/company wallets excluded). ViralAdBlitz added 2026-11-15. Next: DownlineHydra, 5xYourTeam.
- Standing rule (Marty 2026-11-15): every rebuilt network site is added here when it goes live: a programs.js entry, its /earn/<slug> page (automatic from the entry, plus public/img/<key>.jpg 800x420) and an indexer source for its member payouts (house/company wallets excluded). ViralAdBlitz, 5xYourTeam and DownlineHydra added 2026-11-15.
+1 -1
View File
@@ -150,7 +150,7 @@ function personalize(html, who, st) {
// it on as ?ref=); Earners Corner (nwec) takes none
if (/^https:\/\/linkspin\.app\/r\/nw[a-z]+\?/.test(h) && !/[?&](?:amp;)?s1=/.test(h)) return /\/r\/nwec\?/.test(h) ? m : 'href="' + h + '&amp;s1=' + who + '"';
if (/^https:\/\/(instantadpay\.com|linkspin\.app)\//.test(h)) return 'href="' + h.replace(/\/join\/martbost\b/, '/join/' + who).replace(/([?&](?:amp;)?ref=)martbost\b/, '$1' + who).replace(/([?&](?:amp;)?s1=)martbost\b/, '$1' + who) + '"'; // s1 = the member on a LinkSpin network link (nwvbb, 2026-11-15)
if (/^https:\/\/(downlinebanners\.com|viralbannerblitz\.com|viraladblitz\.com|5xyourteam\.com)\//.test(h)) return 'href="' + h.replace(/([?&](?:amp;)?ref=)martbost\b/, '$1' + who) + '"';
if (/^https:\/\/(downlinebanners\.com|viralbannerblitz\.com|viraladblitz\.com|5xyourteam\.com|downlinehydra\.com)\//.test(h)) return 'href="' + h.replace(/([?&](?:amp;)?ref=)martbost\b/, '$1' + who) + '"';
return m;
});
}
+2 -1
View File
@@ -9,6 +9,7 @@ const FALLBACK = [
{ id: 'vbb', name: 'Viral Banner Blitz', url: 'https://viralbannerblitz.com' },
{ id: 'viraladblitz', name: 'ViralAdBlitz', url: 'https://viraladblitz.com' },
{ id: 'fivex', name: '5xYourTeam', url: 'https://5xyourteam.com' },
{ id: 'downlinehydra', name: 'DownlineHydra', url: 'https://downlinehydra.com' },
{ id: 'stackpol', name: 'Stack POL', url: 'https://stackpol.com' },
{ id: 'earnerscorner', name: 'Earners Corner', url: 'https://earnerscorner.com' }
];
@@ -38,7 +39,7 @@ function list() { if (Date.now() - cache.at > TTL) refresh(); return cache.list;
// entry also gets go = the LinkSpin network link for that site with ?src=<this site>, so a click shows in LinkSpin Reports under the
// site that sent it (LinkSpin netlinks.js: fixed codes on the admin account). This site = NETWORK_SITE_ID, else the request host.
// No go for this site itself, or when this site cannot be told (a test host): the page then uses the plain url.
const CODES = { iap: 'nwiap', linkspin: 'nwls', dlb: 'nwdlb', vbb: 'nwvbb', viraladblitz: 'nwvab', fivex: 'nw5x', stackpol: 'nwsp', earnerscorner: 'nwec' };
const CODES = { iap: 'nwiap', linkspin: 'nwls', dlb: 'nwdlb', vbb: 'nwvbb', viraladblitz: 'nwvab', fivex: 'nw5x', downlinehydra: 'nwdh', stackpol: 'nwsp', earnerscorner: 'nwec' };
const linksBase = () => String(process.env.NETWORK_LINKS_BASE || 'https://linkspin.app').trim().replace(/\/+$/, '');
const hostOf = u => { try { return new URL(u).hostname.toLowerCase().replace(/^www\./, ''); } catch (e) { return ''; } };
function selfId(req, l) {
+5
View File
@@ -29,6 +29,11 @@ const PROGRAMS = [
{ k: 'fx', slug: '5xyourteam', n: '5xYourTeam', c: '#ffc93c', kind: 'Team draft', verb: 'Join', app: true, site: 'https://5xyourteam.com', join: u => tracked('fivex', 'stackpol', { s1: u }),
d: 'A weekly sports-style draft of people waiting in the network holding tank. A $10 position is a one-time purchase with SafePal or any other crypto wallet, never a subscription: it gives 5 picks right away and a spot in every Monday draft, where coaches pick people to sponsor and help. Draft order is earned by how many of last week\'s picks got started. Nothing is promised.',
how: 'Payouts here are the shares the DraftPosition smart contract pays up the buyer\'s line in the same transaction as each position: 25% to the sponsor and 5% to each of four more levels (to people who hold a position themselves). The weekly Best Coach pot and the company share are not counted.' },
// DownlineHydra (live 2026-11-15): join through the LinkSpin network link (nwdh, src=stackpol), landing on downlinehydra.com/?ref=<username>.
// Facts from the DH app (terms, /pro, config) and the HydraPro contract 0xEd07...4e90 only.
{ k: 'dh', slug: 'downlinehydra', n: 'DownlineHydra', c: '#b4471f', kind: 'Downline builder', verb: 'Join', app: true, site: 'https://downlinehydra.com', join: u => tracked('downlinehydra', 'stackpol', { s1: u }),
d: 'The network\'s front door: join once and you are a member of every network site, with one sponsor line through all of them. Save your referral ID for each program in the builder and the people who join through you see your link first; free members show one program of their own to their team, five levels deep. Pro is $30, a one-time purchase with SafePal or any other crypto wallet, never a subscription, and shows four. Nothing is promised.',
how: 'Payouts here are the shares the HydraPro smart contract pays up the buyer\'s line in the same transaction as each Pro upgrade: 20% to the direct sponsor (free or Pro) and 10% to each of the next four Pro members above them. The company share is not counted.' },
{ k: 'ph', slug: 'polhunter', n: 'PolHunter', c: '#a3e635', kind: 'Scavenger hunt', site: 'https://polhunter.com', join: g('polhunter'),
d: 'Hunt hidden codes on sites across the network. Every find drips POL straight to your wallet.' },
{ k: 'ec', slug: 'earners-corner', n: 'Earners Corner', c: '#a78bfa', kind: 'Community forum', site: 'https://earnerscorner.com', join: u => 'https://instantadpay.com/forum/join/' + encodeURIComponent(u),
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

+6
View File
@@ -59,6 +59,9 @@ VAB_TOPICS = {'0x2932f3f87f2814df80b5152511ba1fed7a451f5fb3703cd5dd406de6e684dfc
# (sponsor 25% + levels 2-5 5%) + Claimed by a member. Level 0 = company, level 6 = the Best Coach prize pot wallet: not counted.
FX_SHOP = '0x83bb982d8b485de1a24e7d313765dda48d5abc74'
FX_START = 97363529 # deploy block (the app's SHOP_START_BLOCK)
DH_SHOP = '0xed07ad7150ecba62689cf2480729753f2fa44e90' # DownlineHydra HydraPro (2026-11-15): same Paid/Claimed events as VABShop
DH_START = 97364036 # deploy block (the app's SHOP_START_BLOCK)
DH_HOUSE = {DH_SHOP, '0x7627fc78876948ac9d95c1c9eb061e7d6d647b70', '0xf2f54cf271e8942ecb02176f408cc08a2a1d5bca'} # + company (Tangem), keeper
FX_HOUSE = {FX_SHOP, '0x7627fc78876948ac9d95c1c9eb061e7d6d647b70', '0x818daeedefbb33a1988b8b4ac76a8c1dd6e82c60', '0x196cfceb0229ee4b2f20a3350a5ec32b93b72ba8'} # + company, keeper, prize pot
VBB_CONFIRM = 30 # blocks behind head
VBB_SPAN = 1000 # blocks per eth_getLogs (public RPC limit)
@@ -348,6 +351,9 @@ def main():
fr, fnote = vab_rows(dry, 'fx', FX_SHOP, FX_START, FX_HOUSE, 'fx-chain.json')
rows += fr
print(fnote)
hr, hnote = vab_rows(dry, 'dh', DH_SHOP, DH_START, DH_HOUSE, 'dh-chain.json')
rows += hr
print(hnote)
# wallet -> username
wu = iap_wallet_users()
lsd = voldir(CHAINS['ls'])