PassiveDrip on Stack POL (Marty 2026-11-10): program card (join via instantadpay.com/g/passivedrip, sponsor kept), card art in the set's style, indexer reads the PassiveDrip payout engine ledger on core (live passivedrip.com rows paid on chain only; staging tests and dry runs out; attribution by wallet).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-10 07:41:47 -06:00
parent 31709ff051
commit 137dc6a09a
3 changed files with 17 additions and 0 deletions
+14
View File
@@ -24,6 +24,7 @@ GAMES = { # key: (volume dir glob, file)
'pw': ('kq67q1d59m31uqfx1txyr18q-polywarriors-data', 'polpayouts.json'),
'td': ('eo4tqkuwcvny0oqo2dfck9fe-turkeydrop-data', 'polpayouts.json'),
}
PD_VOL = 'w94d6qjry9wjp0pwqzxheora-passivedrip-engine-data'
CHAINS = {'iap': 'h8jd2hmt9y3c1gco9ed5nmva-instantadpay-data', 'ls': 'c10c6soppcsowxsgbrufqb01-*linkspin-prod-data'}
IAP_UUID = 'h8jd2hmt9y3c1gco9ed5nmva'
HERE = '/root/stackpol-indexer'
@@ -87,6 +88,19 @@ def main():
if pol <= 0:
continue
rows.append({'k': k, 'pol': pol, 'tx': x['tx'], 'ts': ms(x.get('paidAt') or x.get('ts') or x.get('at')), 'w': str(x.get('wallet') or '').lower(), 'gu': str(x.get('username') or '').lower()})
# PassiveDrip (Marty 2026-11-10): the payout engine's ledger on core; only live passivedrip.com rows that were paid on chain
# (staging test payouts and dry runs stay out). Rows carry the receiving wallet in 'to'; the PassiveDrip username is not an
# IAP username, so attribution goes by wallet only.
d = voldir(PD_VOL)
for x in ((load(os.path.join(d, 'ledger.json'), {}) if d else {}).get('entries') or {}).values():
if x.get('site') != 'passivedrip.com' or x.get('status') != 'paid' or not x.get('tx'):
continue
try:
pol = float(x.get('pol') or 0)
except Exception:
continue
if pol > 0:
rows.append({'k': 'pd', 'pol': pol, 'tx': x['tx'], 'ts': ms(x.get('paidAt') or x.get('at')), 'w': str(x.get('to') or '').lower(), 'gu': ''})
for k, pat in CHAINS.items():
d = voldir(pat)
ci = load(os.path.join(d, 'chain-index.json'), {}) if d else {}