Stack POL: 5xYourTeam program (standing rule: every rebuilt network site joins Stack POL when it goes live). LOCAL, push at the 5xyourteam.com go-live
- programs.js: 'fx' entry (slug 5xyourteam, gold #ffc93c, Team draft), join via the LinkSpin network link nw5x?src=stackpol&s1=<member>; facts from the 5x app and DraftPosition only - netsites.js: fivex in the fallback list, CODES fivex: nw5x - layout.js: Pro personalization swaps ?ref=martbost on 5xyourteam.com links - tools/indexer.py: vab_rows generalized (k, shop, start, house, cache); 5x member payouts read-only from DraftPosition 0x83Bb...bc74 (Paid level 1-5 + Claimed, from block 97363529, cache fx-chain.json); company, keeper, contract and the Best Coach pot wallet excluded - public/img/fx.jpg: the 5x og image, 800x420 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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 + '&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)\//.test(h)) return 'href="' + h.replace(/([?&](?:amp;)?ref=)martbost\b/, '$1' + who) + '"';
|
||||
if (/^https:\/\/(downlinebanners\.com|viralbannerblitz\.com|viraladblitz\.com|5xyourteam\.com)\//.test(h)) return 'href="' + h.replace(/([?&](?:amp;)?ref=)martbost\b/, '$1' + who) + '"';
|
||||
return m;
|
||||
});
|
||||
}
|
||||
|
||||
+2
-1
@@ -8,6 +8,7 @@ const FALLBACK = [
|
||||
{ id: 'dlb', name: 'Downline Banners', url: 'https://downlinebanners.com' },
|
||||
{ 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: 'stackpol', name: 'Stack POL', url: 'https://stackpol.com' },
|
||||
{ id: 'earnerscorner', name: 'Earners Corner', url: 'https://earnerscorner.com' }
|
||||
];
|
||||
@@ -37,7 +38,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', stackpol: 'nwsp', earnerscorner: 'nwec' };
|
||||
const CODES = { iap: 'nwiap', linkspin: 'nwls', dlb: 'nwdlb', vbb: 'nwvbb', viraladblitz: 'nwvab', fivex: 'nw5x', 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) {
|
||||
|
||||
@@ -24,6 +24,11 @@ const PROGRAMS = [
|
||||
{ k: 'vab', slug: 'viraladblitz', n: 'ViralAdBlitz', c: '#0a2fa8', kind: 'Viral text ads', verb: 'Join', app: true, site: 'https://viraladblitz.com', join: u => tracked('viraladblitz', 'stackpol', { s1: u }),
|
||||
d: 'The network\'s home for text ads. Network members post one text ad free; your member page shows your ad and the ads of the five people above you, so every person you bring in shows your ad on their page, five levels deep. A $5 Boost is a one-time purchase of 500 guaranteed network views, paid with SafePal or any other crypto wallet, never a subscription. The contract pays 10% of each Boost to each of five levels up the buyer\'s line in the same transaction. Nothing is promised.',
|
||||
how: 'Payouts here are the level shares the ViralAdBlitz smart contract pays to five people up the buyer\'s line (10% each, to people who have bought a Boost themselves) in the same transaction as each Boost. The company share is not counted.' },
|
||||
// 5xYourTeam The Draft (live 2026-11-15): join through the LinkSpin network link (nw5x, src=stackpol), landing on 5xyourteam.com/?ref=<username>.
|
||||
// Facts from the 5x app (README, config) and the DraftPosition contract 0x83Bb...bc74 only.
|
||||
{ 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.' },
|
||||
{ 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),
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
+18
-10
@@ -55,6 +55,11 @@ VAB_START = 97324419 # deploy block (the app's SHOP_START_BLOCK)
|
||||
VAB_HOUSE = {VAB_SHOP, '0x7627fc78876948ac9d95c1c9eb061e7d6d647b70', '0xf0b9deee7d9768b1d89d30f30e095def2a9cf1db'} # + company (Tangem), keeper
|
||||
VAB_TOPICS = {'0x2932f3f87f2814df80b5152511ba1fed7a451f5fb3703cd5dd406de6e684dfcc': 'Paid', # Paid(uint256,address,uint256,uint8,uint8)
|
||||
'0xf7a40077ff7a04c7e61f6f26fb13774259ddf1b6bce9ecf26a8276cdd3992683': 'Claimed'} # Claimed(address,address,uint256)
|
||||
# 5xYourTeam (2026-11-15): DraftPosition on Polygon, read-only; same Paid/Claimed events as VABShop. Member payouts = Paid level 1-5
|
||||
# (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)
|
||||
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)
|
||||
VBB_MAX_SPANS = 400 # per run; a long gap catches up over a few runs
|
||||
@@ -199,11 +204,11 @@ def vbb_rows(dry=False):
|
||||
last, len(logs), allwei / 1e18, len(prizes), len(rows), sum(r['pol'] for r in rows), ('; ' + note) if note else '')
|
||||
|
||||
|
||||
def vab_rows(dry=False):
|
||||
"""ViralAdBlitz member payouts, read-only on chain (same scan as VBB, no prize wallet). Returns (rows, note)."""
|
||||
cpath = os.path.join(HERE, 'vab-chain.json')
|
||||
def vab_rows(dry=False, k='vab', shop=VAB_SHOP, start=VAB_START, house=VAB_HOUSE, cachefile='vab-chain.json'):
|
||||
"""ViralAdBlitz (and, same events, 5xYourTeam) member payouts, read-only on chain (same scan as VBB, no prize wallet). Returns (rows, note)."""
|
||||
cpath = os.path.join(HERE, cachefile)
|
||||
cache = load(cpath, {}) or {}
|
||||
last = int(cache.get('lastBlock') or VAB_START - 1)
|
||||
last = int(cache.get('lastBlock') or start - 1)
|
||||
logs = cache.get('logs') or [] # every Paid/Claimed log seen (all levels), so the counting rule can change without a rescan
|
||||
bts = {}
|
||||
|
||||
@@ -219,8 +224,8 @@ def vab_rows(dry=False):
|
||||
spans = 0
|
||||
while last < head and spans < VBB_MAX_SPANS:
|
||||
frm, to = last + 1, min(head, last + VBB_SPAN)
|
||||
for l in rpc('eth_getLogs', [{'address': VAB_SHOP, 'topics': [list(VAB_TOPICS)], 'fromBlock': hex(frm), 'toBlock': hex(to)}]) or []:
|
||||
if l.get('removed') or str(l.get('address', '')).lower() != VAB_SHOP:
|
||||
for l in rpc('eth_getLogs', [{'address': shop, 'topics': [list(VAB_TOPICS)], 'fromBlock': hex(frm), 'toBlock': hex(to)}]) or []:
|
||||
if l.get('removed') or str(l.get('address', '')).lower() != shop:
|
||||
continue
|
||||
kind, t, data = VAB_TOPICS.get(l['topics'][0]), l['topics'], l.get('data') or '0x'
|
||||
key = (l['transactionHash'].lower(), int(l['logIndex'], 16))
|
||||
@@ -247,11 +252,11 @@ def vab_rows(dry=False):
|
||||
os.replace(tmp, cpath)
|
||||
rows = []
|
||||
for x in logs:
|
||||
member = (x['ev'] == 'Paid' and 1 <= int(x.get('level') or 0) <= 5) or (x['ev'] == 'Claimed' and x.get('who') not in VAB_HOUSE)
|
||||
if member and x['to'] not in VAB_HOUSE and int(x['wei']) > 0:
|
||||
rows.append({'k': 'vab', 'pol': int(x['wei']) / 1e18, 'tx': x['tx'], 'ts': ms(x['ts']), 'w': x['to'], 'gu': ''})
|
||||
member = (x['ev'] == 'Paid' and 1 <= int(x.get('level') or 0) <= 5) or (x['ev'] == 'Claimed' and x.get('who') not in house)
|
||||
if member and x['to'] not in house and int(x['wei']) > 0:
|
||||
rows.append({'k': k, 'pol': int(x['wei']) / 1e18, 'tx': x['tx'], 'ts': ms(x['ts']), 'w': x['to'], 'gu': ''})
|
||||
allwei = sum(int(x['wei']) for x in logs if x['ev'] == 'Paid')
|
||||
return rows, 'vab: scanned to block %d, %d contract logs (%.4f POL in all Paid events), %d member payouts %.4f POL%s' % (
|
||||
return rows, k + ': scanned to block %d, %d contract logs (%.4f POL in all Paid events), %d member payouts %.4f POL%s' % (
|
||||
last, len(logs), allwei / 1e18, len(rows), sum(r['pol'] for r in rows), ('; ' + note) if note else '')
|
||||
|
||||
|
||||
@@ -340,6 +345,9 @@ def main():
|
||||
ar, anote = vab_rows(dry)
|
||||
rows += ar
|
||||
print(anote)
|
||||
fr, fnote = vab_rows(dry, 'fx', FX_SHOP, FX_START, FX_HOUSE, 'fx-chain.json')
|
||||
rows += fr
|
||||
print(fnote)
|
||||
# wallet -> username
|
||||
wu = iap_wallet_users()
|
||||
lsd = voldir(CHAINS['ls'])
|
||||
|
||||
Reference in New Issue
Block a user