Trust pack (Marty 2026-11-14): legal pages, network footer, Telegram image + week stats.
- /terms, /disclaimer (Earnings Disclaimer), /privacy: TrustClickz, 615 Green Valley Drive, Moody, AL 35004; written from the real mechanics: a $5 spot buys advertising (300 guaranteed views + a place in the line), same-transaction split 30/55/10/5, the contract holds only the momentum fund, paid only when later spots sell, nothing held or withdrawn, no refunds on-chain, one-time purchases, crypto risk, data (wallet, username from the hub, hashed visit checks, cookies, no email stored) and one account across the network through the hub. No earnings cap shown. Sitemap. - Footer: Terms, Earnings Disclaimer, Privacy, Contract, Ledger, Support, company line, 'Part of the network' from the hub (netsites.js, GET /api/network-sites, 10 min cache, fallback list), Downline Banners marked current. - tgproof.js: each sale message adds this week's spot numbers (Central-time week, bought vs gifted) and shows a large kit image above the text via link_preview_options (rotated, no caption length limit); TG_API for the test stand-in. common.js?v=20261114t, line.css?v=8. Smoke 122/122 (stand-in Telegram: one message per sale, never two per tx; stand-in hub serves the list; legal pages; footer on phone). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,7 @@ const keeper = require('./keeper');
|
||||
const { iface } = require('./abi');
|
||||
const dlbnas = require('./dlbnas'); // Network Ad Space: standing house banner + finishing spots still owed views after 30 days (2026-11-13)
|
||||
const refuelspots = require('./refuelspots'); // refuel spots: $50+ Monthly Refuels earn a spot, engine wallet pays (2026-11-13)
|
||||
const netsites = require('./netsites'); // footer network list from the hub (trust pack 2026-11-14)
|
||||
const tgproof = require('./tgproof'); // payment proof in the Telegram payments topic, one message per spot sale (2026-11-13)
|
||||
const hubreport = require('./hubreport'); // network hub, shadow mode: members reported by wallet (2026-11-13), off unless HUB_ENABLED
|
||||
const promokit = require('./promokit'); // promo kit feed /api/promo-kit, the /promote page, /art/kit/* creatives (2026-11-14)
|
||||
@@ -286,7 +287,8 @@ const server = http.createServer(async (req, res) => {
|
||||
let OR = {}; try { OR = JSON.parse(fs.readFileSync(path.join(C.dataDir, 'oldrefs.json'), 'utf8')); } catch (e) {}
|
||||
const net = old && OR[old]; res.writeHead(301, { Location: net ? '/?ref=' + encodeURIComponent(net) : '/', 'Cache-Control': 'no-store' }); return res.end();
|
||||
}
|
||||
const PAGES = { '/': 'index.html', '/board': 'board.html', '/join': 'join.html', '/my': 'my.html', '/how': 'how.html', '/ledger': 'ledger.html', '/contract': 'contract.html' };
|
||||
const PAGES = { '/': 'index.html', '/board': 'board.html', '/join': 'join.html', '/my': 'my.html', '/how': 'how.html', '/ledger': 'ledger.html', '/contract': 'contract.html',
|
||||
'/terms': 'terms.html', '/disclaimer': 'disclaimer.html', '/privacy': 'privacy.html' }; // legal pages: trust pack 2026-11-14
|
||||
if (PAGES[p]) {
|
||||
const set = [];
|
||||
if (setVid) set.push(setVid);
|
||||
@@ -299,7 +301,7 @@ const server = http.createServer(async (req, res) => {
|
||||
// sitemap (2026-11-13, SEO): the public pages only
|
||||
if (p === '/sitemap.xml') {
|
||||
const day = new Date().toISOString().slice(0, 10);
|
||||
const urls = ['/', '/board', '/how', '/ledger', '/contract', '/join', '/promote'].map(u => '<url><loc>https://' + C.site + u + '</loc><lastmod>' + day + '</lastmod></url>').join('');
|
||||
const urls = ['/', '/board', '/how', '/ledger', '/contract', '/join', '/promote', '/terms', '/disclaimer', '/privacy'].map(u => '<url><loc>https://' + C.site + u + '</loc><lastmod>' + day + '</lastmod></url>').join('');
|
||||
res.writeHead(200, headers({ 'Content-Type': 'application/xml; charset=utf-8', 'Cache-Control': 'public, max-age=3600' }));
|
||||
return res.end('<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' + urls + '</urlset>');
|
||||
}
|
||||
@@ -341,6 +343,7 @@ const server = http.createServer(async (req, res) => {
|
||||
}
|
||||
|
||||
// -- public API
|
||||
if (p === '/api/network-sites' && req.method === 'GET') return netsites.handle(req, res);
|
||||
if (p === '/api/config' && req.method === 'GET') {
|
||||
return json(res, 200, { site: C.site, chainId: C.chainId, chainName: C.chainName, contract: C.contract, rpc: C.publicRpc, explorer: C.explorer,
|
||||
walletConnectProjectId: C.walletConnectProjectId, viewsOwed: C.viewsOwed, spotDays: C.spotDays, priceUsd: 5, ready: !!C.contract, sel: SEL }, extra);
|
||||
@@ -537,12 +540,26 @@ const server = http.createServer(async (req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
// this Central-time week (from Monday 12:00 AM CT): spots taken, bought vs gifted by the momentum fund, plus the all-time count
|
||||
function ctWeekStart(now) {
|
||||
const p = Object.fromEntries(new Intl.DateTimeFormat('en-US', { timeZone: 'America/Chicago', weekday: 'short', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false })
|
||||
.formatToParts(new Date(now)).map(x => [x.type, x.value]));
|
||||
const back = { Mon: 0, Tue: 1, Wed: 2, Thu: 3, Fri: 4, Sat: 5, Sun: 6 }[p.weekday] || 0;
|
||||
return now - back * 86400000 - ((Number(p.hour) % 24) * 3600 + Number(p.minute) * 60 + Number(p.second)) * 1000;
|
||||
}
|
||||
function weekLine() {
|
||||
const from = ctWeekStart(Date.now()); const all = chain.spots(); const wk = all.filter(s => s.boughtAt >= from);
|
||||
const gifted = wk.filter(s => s.kind === 2).length;
|
||||
return '\u{1F4CA} This week: ' + wk.length + ' spot' + (wk.length === 1 ? '' : 's') + (gifted ? ' (' + (wk.length - gifted) + ' bought, ' + gifted + ' gifted by the momentum fund)' : '') + ' · ' + all.length + ' spots in the line';
|
||||
}
|
||||
|
||||
(async () => {
|
||||
await docstore.init({}); // before anything reads its data
|
||||
process.on('SIGTERM', () => { docstore.drain(8000).finally(() => process.exit(0)); });
|
||||
store.load();
|
||||
tgproof.init({ nameOf, contract: C.contract, explorer: C.explorer || 'https://polygonscan.com', site: C.site,
|
||||
feeWallets: ['0x7627fc78876948ac9d95c1c9eb061e7d6d647b70', '0x8b7d33849a2c4d92c985be31e46dc564ba901ad2'] }); // contract feeA / feeB
|
||||
feeWallets: ['0x7627fc78876948ac9d95c1c9eb061e7d6d647b70', '0x8b7d33849a2c4d92c985be31e46dc564ba901ad2'], // contract feeA / feeB
|
||||
weekLine }); // this week's spot numbers on every sale message (trust pack 2026-11-14)
|
||||
chain.init({ onEvent: tgproof.onEvent }); // every spot sale -> one payment-proof message in the payments topic
|
||||
hubreport.init({ dataDir: C.dataDir, members: () => chain.allMembers() });
|
||||
refuelspots.init({ lock: () => keeper.busy() }); keeper.setOtherBusy(() => refuelspots.busy());
|
||||
|
||||
Reference in New Issue
Block a user