ViralAdSource app (Marty approved 2026-11-16): free text ads that spread by reshares, each ad with its own family tree

Watershed look from the approved mockup (hero, topo pattern, icons). Network sign-in through the hub, hub membership, activity ping.
Reshare links per member per ad with branch/step tracking; family-tree dashboard (branch, step, reshares, views, clicks, sign-ups, Boosts).
Verified views earn ad credits for the branch's resharer (L3). L2 sign-up pipeline (hub-new, confirmed email, not self device/IP,
throwaway block, daily cap, fraud score) with keeper-signed reward vouchers and a pending-rewards ledger; payouts OFF (REWARD_PAYOUTS).
L1 Boosts through VASShop with signed orders naming the sponsor line and the resharer. Trust pack, chatbot, promo kit, PolHunter embed.
All numbers are PROPOSALS until Marty sets them. qa/e2e.mjs 59/59 on a local anvil chain, chatbot test 108/108.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Marty Bostick
2026-11-16 09:19:34 -06:00
commit edaf98c8f6
103 changed files with 6229 additions and 0 deletions
+71
View File
@@ -0,0 +1,71 @@
// ViralAdSource's site assistant (the network pattern, 2026-11-15): what it knows. The engine is chatcore.js (the same on every rebuilt
// site); retrieval also covers the other network sites through the hub (netkb.js), this site's entries first.
// Every fact below was checked against this repo on KNOWLEDGE_DATE: config.js (Boost, split, reward and credit numbers, all marked
// as PROPOSALS until Marty sets them), tree.js (reshare links, branches, steps), wire.js (verified views, credits), signup.js (the L2
// checks, payouts off), shop.js + ../contracts (VASShop), lstrack.js (spin-link picker), server.js, public pages.
// HOUSE RULE: when a feature changes, update CANNED and FACTS in the same commit and bump KNOWLEDGE_DATE.
// Plain words, no em dashes, never a promise of income, "SafePal or any other crypto wallet", never RM Circle.
'use strict';
const core = require('./chatcore');
const C = require('./config').get();
const KNOWLEDGE_DATE = '2026-11-16';
const URL_ = 'https://' + C.site;
const SUPPORT = 'https://instantadpay.com/support';
const B = C.boost, SP = C.split, R = C.reward, CR = C.credits;
const pct = bps => (bps / 100).toFixed(bps % 100 ? 1 : 0) + '%';
const NOT_INCOME = 'Ad credits buy advertising, not income.';
const CANNED = [
{ id: 'support', title: 'Talk to a person, or a problem with my account', q: ['How do I contact support?', 'My Boost did not show up', 'I need a real person'], tags: ['support', 'help', 'ticket', 'problem'],
re: core.SUPPORT_RE, handoff: true,
a: 'Network support handles every network site, ViralAdSource included: open ' + SUPPORT + ', say it is about ViralAdSource, and include your wallet address and the transaction link if it is about a Boost or a reward.' },
{ id: 'about', title: 'What is ViralAdSource?', q: ['What is ViralAdSource?', 'How does ViralAdSource work?', 'What is VAS?'], tags: ['viraladsource', 'vas', 'reshare', 'overview'],
re: /(what('s| is) (viral ?ad ?source|vas|this (site|place))|how does (viral ?ad ?source|vas|this site|it) work|explain (viral ?ad ?source|this))/i,
a: 'ViralAdSource is where every ad has a source. Post one free text ad, then anyone can reshare it with their own reshare link, and every reshare grows a new branch. Your dashboard shows the family tree of your ad: who passed it on, how many steps it travelled, and the views, clicks and sign-ups each branch brought in. See ' + URL_ + '/#how' },
{ id: 'reshare', title: 'How resharing works', q: ['How do I reshare an ad?', 'What is a reshare link?', 'What is a branch?'], tags: ['reshare', 'branch', 'tree', 'link'],
re: /(reshare|re-share|branch|family tree|share link|step)/i,
a: 'Open any ad and tap "Reshare this ad". You get your own unique reshare link for that ad (one per ad, always the same). Anyone who arrives through it and reshares too grows the branch under you. Each click and view through your link is booked to you, so the ad owner sees your branch on their tree. A share alone is never paid: only real results through your link are.' },
{ id: 'rewards', title: 'How resharers are rewarded', q: ['Do I get paid for resharing?', 'What are the three rewards?', 'How do rewards work?'], tags: ['reward', 'paid', 'earn', 'resharer'],
re: /(reward|get paid|earn|paid for|commission|payout)/i,
a: 'Only results are rewarded, never a bare share. 1) A Boost bought through your branch: the contract pays you a resharer cut in POL in the same transaction (proposed ' + pct(SP.resharerBps) + '). 2) A brand-new network member who joins through your link and confirms their email: a small POL reward from the reward pot after real-time checks (proposed $' + (R.cents / 100).toFixed(2) + ', with a daily cap of ' + R.dailyCap + '). Sign-up reward payouts are switched off until the amounts are confirmed; they wait in the pending ledger. 3) Verified views through your link: ad credits for your own ad (proposed ' + CR.per + ' credits per ' + CR.views + ' views). ' + NOT_INCOME + ' Nothing is promised.' },
{ id: 'credits', title: 'Ad credits', q: ['What are ad credits?', 'How do I use my credits?'], tags: ['credits', 'ad credits', 'views'],
re: /\bcredits?\b/i,
a: 'Every ' + CR.views + ' verified views through your reshare links earn ' + CR.per + ' ad credits (a proposal until confirmed). Credits are spent automatically on your own ad: it is shown in the "Featured with credits" places, and each verified view there uses 1 credit. Credits are never paid out. ' + NOT_INCOME },
{ id: 'spin-link', title: 'Use one of my LinkSpin spin links as my ad link', q: ['Can I use my LinkSpin spin link in my ad?'], tags: ['linkspin', 'spin link', 'rotator'],
re: /(spin ?links?|\brotator\b|linkspin link)/i,
a: 'Yes. In the ad form on ' + URL_ + '/my tap "Use one of my spin links" and pick one of your own LinkSpin spin links. LinkSpin confirms it is yours on every save. Clicks through a reshare link carry the resharer (s2) and the reshare link (s3), so your LinkSpin Reports show which branch brought each click and sign-up.' },
{ id: 'sign-in', title: 'Signing in', q: ['How do I sign in?', 'Do I need an account?'], tags: ['sign in', 'member', 'wallet'],
re: /(sign ?(in|up)|log ?in|register|account|not a member)/i,
a: 'Sign in on ' + URL_ + '/my with your network account (InstantAdPay or LinkSpin, through the network sign-in) or with your wallet (a free signature that cannot move funds). Posting a text ad and resharing are free for network members.' },
{ id: 'boost', title: 'What a Boost is', q: ['What is a Boost?', 'How much is a Boost?', 'Where does the Boost money go?'], tags: ['boost', 'price', 'split'],
re: /\bboost/i,
a: 'A Boost (proposed $' + B.usd + ', one-time, never a subscription) puts your ad at the top of the reshare board for ' + B.days + ' days, so more people see it and pass it on. Paid in POL with SafePal or any other crypto wallet. The contract splits it in the same transaction (proposed): ' + pct(SP.resharerBps) + ' to the resharer whose branch sold it, ' + pct(SP.potBps) + ' to the reward pot, ' + SP.levelBps.map(pct).join(' / ') + ' to your sponsor line (people who have bought a Boost; others are passed over), the rest to the company. Every payment is on ' + URL_ + '/ledger.' },
{ id: 'old', title: 'Old ViralAdSource accounts', q: ['I was a ViralAdSource member before', 'Does my old link work?'], tags: ['old account', 'old link'],
re: /(old (account|link|balance|member)|was a member|member before|before the rebuild)/i,
a: 'Old ViralAdSource members were matched to the network by email and keep their sponsor. Sign in with your network account. Old referral links open your new member page. Old balances were not carried over.' }
];
const FAQ = [
{ id: 'f-network', title: 'ViralAdSource and the other network sites', source: 'faq', tags: ['network', 'one account'],
questions: ['Is ViralAdSource part of InstantAdPay?', 'Do I need a new account?'],
answer: 'ViralAdSource is part of the network: one network account works across InstantAdPay, LinkSpin, Downline Banners, Viral Banner Blitz, ViralAdBlitz, DownlineHydra, 5xYourTeam, Stack POL and Earners Corner, with the same username and sponsor everywhere.' },
{ id: 'f-checks', title: 'How a sign-up reward is verified', source: 'faq', tags: ['verified', 'checks', 'fraud'],
questions: ['How do you check a sign-up?', 'Why was my sign-up reward held?'],
answer: 'A sign-up reward needs all of these: the person is brand new to the whole network (checked with the network hub), they confirmed their email, it is not your own device, connection or wallet, the email is not a throwaway address, you are under the daily cap, and the fraud score is low. A sign-up that looks unusual is held for a person to look at.' }
];
const FACTS = () => [
'- WHAT IT IS: ViralAdSource (' + URL_ + '): "Every ad has a source. Watch yours travel." One free text ad per network member (headline ' + C.ad.headline + ', two lines of ' + C.ad.line + ', an https link or the member\'s own LinkSpin spin link). Anyone reshares an ad with their own unique reshare link /s/<code>; each reshare is a branch; the owner\'s dashboard shows the family tree: branch, step, reshares under it, views, clicks, sign-ups.',
'- REWARDS (results only, never a bare share; all amounts are PROPOSALS until Marty confirms): L1 Boost through a branch: resharer cut ' + pct(SP.resharerBps) + ' paid by the VASShop contract in the same transaction. L2 verified brand-new network member through a branch: $' + (R.cents / 100).toFixed(2) + ' in POL from the reward pot, cap ' + R.dailyCap + ' a day per resharer; checks: hub-new, confirmed email, not the resharer\'s device/IP/wallet, no throwaway email, daily cap, fraud score; payouts currently ' + (R.payouts ? 'ON' : 'OFF (rewards wait in the pending ledger)') + '. L3 verified views: ' + CR.per + ' ad credits per ' + CR.views + ' verified views through the resharer\'s links, spent on their own ad, never paid out.',
'- BOOST: one-time $' + B.usd + ' (proposal) = top of the reshare board for ' + B.days + ' days per unit, 1 to ' + B.maxQty + ' per purchase. Split: resharer ' + pct(SP.resharerBps) + ', reward pot ' + pct(SP.potBps) + ', sponsor levels ' + SP.levelBps.map(pct).join('/') + ' (pass-up over people who never bought, up to ' + SP.maxDepth + ' places), company the rest. The pot can only pay sign-up rewards, never more than it holds.',
'- VERIFIED VIEWS: page visible ' + C.visitSeconds + ' s, one view per visitor per ad per 24 h, never the owner\'s own, max ' + C.perIpDay + ' browsers per connection a day.',
'- TRUST: ' + URL_ + '/ledger, ' + URL_ + '/contract, toasts of real events. Terms ' + URL_ + '/terms, Earnings Disclaimer ' + URL_ + '/disclaimer, Privacy ' + URL_ + '/privacy. Run by TrustClickz, 615 Green Valley Drive, Moody, AL 35004. SUPPORT: ' + SUPPORT
].join('\n');
const SITE = {
id: 'viraladsource', hubSite: 'viraladsource', netId: 'viraladsource', name: 'ViralAdSource', url: URL_, supportUrl: SUPPORT, knowledgeDate: KNOWLEDGE_DATE,
dataDir: C.dataDir, canned: CANNED, faq: FAQ, facts: FACTS,
intro: 'You are the assistant on ViralAdSource (' + URL_ + '): free text ads that spread by reshares, each ad with its own family tree, and rewards only for verified results. It is part of a network of sites that share one account.',
quickTopics: ['How does resharing work?', 'How are resharers rewarded?', 'What are ad credits?', 'What is a Boost?']
};
function init() { return core.init(SITE); }
module.exports = { init, handle: core.handle, answer: core.answer, KNOWLEDGE_DATE, CANNED, FAQ, SITE };