Sync from GitHub via hub-sync
Browse files- agents/publish_reputation.py +176 -0
- data/reputation.json +138 -0
- docs/index.html +64 -1
agents/publish_reputation.py
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""
|
| 3 |
+
VAPE reputation publisher — emit a verifiable services + track-record JSON the
|
| 4 |
+
dashboard fetches client-side. REAL DATA ONLY: every number is counted from the
|
| 5 |
+
repo or pulled from on-chain identity. No invented job counts, no fake 5-star ratings.
|
| 6 |
+
|
| 7 |
+
Writes: data/reputation.json (committed; dashboard fetches it raw from GitHub)
|
| 8 |
+
|
| 9 |
+
Sources (all verifiable):
|
| 10 |
+
- reports/, intel/broadcasts/, intel/catalog/, intel/scans/ (real artifact counts)
|
| 11 |
+
- skillforge/memory/tools-registry.json (real tool tiers)
|
| 12 |
+
- skillforge/memory/lessons.jsonl (real job/work log)
|
| 13 |
+
- agents/acp_fulfill.py HANDLERS + price map (live offerings)
|
| 14 |
+
- on-chain identity constants (wallet, ERC-8004, agent id) (publicly checkable)
|
| 15 |
+
|
| 16 |
+
Zero new deps (stdlib only). Runs on the free GitHub runner.
|
| 17 |
+
"""
|
| 18 |
+
import json
|
| 19 |
+
import os
|
| 20 |
+
import glob
|
| 21 |
+
import re
|
| 22 |
+
from datetime import datetime, timezone
|
| 23 |
+
|
| 24 |
+
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
| 25 |
+
OUT = os.path.join(ROOT, "data", "reputation.json")
|
| 26 |
+
|
| 27 |
+
# Publicly verifiable on-chain identity (anyone can check these).
|
| 28 |
+
IDENTITY = {
|
| 29 |
+
"agent": "VAPE",
|
| 30 |
+
"name": "Virtual Ape Private Eye",
|
| 31 |
+
"wallet": "0xa1420293a7df49bc8380f543a1fe7b8d6f582879",
|
| 32 |
+
"erc8004_id": 54988,
|
| 33 |
+
"agent_id": "019eaf60-592a-7f5c-99a2-3e85199303fe",
|
| 34 |
+
"vape_token": "0x2b601d7fc4705361F0c0249a005a714b7A3EdaFE",
|
| 35 |
+
"chain": "Base",
|
| 36 |
+
"x": "https://x.com/based_vape",
|
| 37 |
+
"verify_identity": "https://app.virtuals.io/virtuals/54988",
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
# Live offerings the agent SELLS (price + which are auto-fulfilled with zero LLM).
|
| 41 |
+
AUTO = {"token_safety_check", "liquidity_check", "rug_pull_alert",
|
| 42 |
+
"exploit_check", "safety_preflight", "market_intel"}
|
| 43 |
+
OFFERINGS = [
|
| 44 |
+
("exploit_check", 0.01, "Exploit & scam-database check for any Base wallet/contract"),
|
| 45 |
+
("partner_referral", 0.01, "Earn USDC commission referring clients to VAPE"),
|
| 46 |
+
("token_safety_check", 0.02, "Honeypot detector + 0-100 safety score (GoPlus+DexScreener)"),
|
| 47 |
+
("liquidity_check", 0.02, "DEX liquidity depth, LP burn, slippage + SAFE/THIN/DANGEROUS"),
|
| 48 |
+
("wallet_recon", 0.03, "Address profiling: holdings, patterns, risk flags"),
|
| 49 |
+
("rug_pull_alert", 0.03, "Rug risk LOW/MEDIUM/HIGH/EXTREME with specific red flags"),
|
| 50 |
+
("tx_decode", 0.05, "Plain-language tx decode + risk flags for any Base tx hash"),
|
| 51 |
+
("safety_preflight", 0.05, "All-in-one pre-trade GO/CAUTION/NO_GO verdict"),
|
| 52 |
+
("whale_watch", 0.10, "Whale buys/sells + BULLISH/BEARISH/NEUTRAL net-flow"),
|
| 53 |
+
("community_intel_broadcast", 0.10, "6-hourly consolidated security+market intel broadcast"),
|
| 54 |
+
("market_intel", 0.15, "Real-time price/TVL/liquidity + actionable signal"),
|
| 55 |
+
("bulk_safety_bundle", 0.50, "Scan 5-25 tokens in one job, 40% off"),
|
| 56 |
+
("deep_contract_audit", 1.00, "slither+aderyn+mythril severity-rated audit + 0-100 score"),
|
| 57 |
+
("forensics_deep", 2.00, "Full wallet trace + chain-of-custody graph"),
|
| 58 |
+
]
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
def now():
|
| 62 |
+
return datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
def count_glob(pattern):
|
| 66 |
+
return len(glob.glob(os.path.join(ROOT, pattern)))
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
def newest_oldest(pattern, rx=r"(\d{8})"):
|
| 70 |
+
files = glob.glob(os.path.join(ROOT, pattern))
|
| 71 |
+
dates = []
|
| 72 |
+
for f in files:
|
| 73 |
+
m = re.search(rx, os.path.basename(f))
|
| 74 |
+
if m:
|
| 75 |
+
dates.append(m.group(1))
|
| 76 |
+
if not dates:
|
| 77 |
+
return None, None
|
| 78 |
+
dates.sort()
|
| 79 |
+
return dates[0], dates[-1]
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
def tool_stats():
|
| 83 |
+
p = os.path.join(ROOT, "skillforge/memory/tools-registry.json")
|
| 84 |
+
try:
|
| 85 |
+
d = json.load(open(p))
|
| 86 |
+
tiers = d.get("tiers", {})
|
| 87 |
+
total = sum(len(v) for v in tiers.values() if hasattr(v, "__len__"))
|
| 88 |
+
verified = 0
|
| 89 |
+
for tier in tiers.values():
|
| 90 |
+
items = tier.values() if isinstance(tier, dict) else (tier if isinstance(tier, list) else [])
|
| 91 |
+
for t in items:
|
| 92 |
+
if isinstance(t, dict) and t.get("status") in ("verified", "ok", "installed"):
|
| 93 |
+
verified += 1
|
| 94 |
+
return total, verified, {k: (len(v) if hasattr(v, "__len__") else 0) for k, v in tiers.items()}
|
| 95 |
+
except Exception:
|
| 96 |
+
return 0, 0, {}
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
def lessons_stats():
|
| 100 |
+
p = os.path.join(ROOT, "skillforge/memory/lessons.jsonl")
|
| 101 |
+
work_entries = 0
|
| 102 |
+
auto_jobs = 0
|
| 103 |
+
try:
|
| 104 |
+
for line in open(p):
|
| 105 |
+
line = line.strip()
|
| 106 |
+
if not line:
|
| 107 |
+
continue
|
| 108 |
+
work_entries += 1
|
| 109 |
+
try:
|
| 110 |
+
j = json.loads(line)
|
| 111 |
+
if j.get("path") == "zero-llm" or j.get("outcome") == "auto_submitted":
|
| 112 |
+
auto_jobs += 1
|
| 113 |
+
except Exception:
|
| 114 |
+
pass
|
| 115 |
+
except Exception:
|
| 116 |
+
pass
|
| 117 |
+
return work_entries, auto_jobs
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
def main():
|
| 121 |
+
total_tools, verified_tools, tier_breakdown = tool_stats()
|
| 122 |
+
work_entries, auto_jobs = lessons_stats()
|
| 123 |
+
first, last = newest_oldest("reports/bounty_report_*.md")
|
| 124 |
+
|
| 125 |
+
catalog = 0
|
| 126 |
+
cat_path = os.path.join(ROOT, "intel/catalog/investigation-catalog.md")
|
| 127 |
+
if os.path.exists(cat_path):
|
| 128 |
+
catalog = sum(1 for ln in open(cat_path) if re.match(r"^\s*[-*]\s", ln))
|
| 129 |
+
|
| 130 |
+
rep = {
|
| 131 |
+
"generated": now(),
|
| 132 |
+
"identity": IDENTITY,
|
| 133 |
+
"verifiable_activity": {
|
| 134 |
+
"reports_published": count_glob("reports/*.md"),
|
| 135 |
+
"intel_reports": count_glob("intel/reports/*.md"),
|
| 136 |
+
"intel_broadcasts": count_glob("intel/broadcasts/*.md"),
|
| 137 |
+
"catalog_investigations": catalog,
|
| 138 |
+
"token_scans_logged": count_glob("intel/scans/scan-*.md"),
|
| 139 |
+
"skills_codified": count_glob("skillforge/skills/*.md"),
|
| 140 |
+
"tools_total": total_tools,
|
| 141 |
+
"tools_verified": verified_tools,
|
| 142 |
+
"tool_tiers": tier_breakdown,
|
| 143 |
+
"work_log_entries": work_entries,
|
| 144 |
+
"auto_fulfilled_jobs": auto_jobs,
|
| 145 |
+
"first_report": first,
|
| 146 |
+
"latest_report": last,
|
| 147 |
+
},
|
| 148 |
+
"capabilities": {
|
| 149 |
+
"offerings_live": len(OFFERINGS),
|
| 150 |
+
"auto_fulfilled_zero_llm": sorted(AUTO),
|
| 151 |
+
"offerings": [
|
| 152 |
+
{"name": n, "price_usd": p, "summary": s, "auto": n in AUTO}
|
| 153 |
+
for n, p, s in OFFERINGS
|
| 154 |
+
],
|
| 155 |
+
},
|
| 156 |
+
"operating_model": {
|
| 157 |
+
"data": "real-data-only — every finding sourced from GoPlus/DexScreener/"
|
| 158 |
+
"DefiLlama/CoinGecko/Base RPC/Etherscan, never fabricated",
|
| 159 |
+
"compute": "near-zero — listener+drain idle at no cost; 6 offerings settle "
|
| 160 |
+
"with no model wake; GitHub Actions run the pipeline free",
|
| 161 |
+
"rails": "ACP on Base — escrowed USDC jobs, ERC-8004 registered identity",
|
| 162 |
+
"uptime": "24/7 — detached daemons (PPID 1) + hourly GitHub workflows",
|
| 163 |
+
},
|
| 164 |
+
"disclaimer": "Activity counts are generated from this public repo and on-chain "
|
| 165 |
+
"identity — independently verifiable. Not investment advice.",
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
os.makedirs(os.path.dirname(OUT), exist_ok=True)
|
| 169 |
+
with open(OUT, "w") as f:
|
| 170 |
+
json.dump(rep, f, indent=2)
|
| 171 |
+
print(json.dumps({"wrote": OUT, "reports": rep["verifiable_activity"]["reports_published"],
|
| 172 |
+
"offerings": len(OFFERINGS), "tools_verified": verified_tools}, indent=2))
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
if __name__ == "__main__":
|
| 176 |
+
main()
|
data/reputation.json
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"generated": "2026-06-25T00:43:56Z",
|
| 3 |
+
"identity": {
|
| 4 |
+
"agent": "VAPE",
|
| 5 |
+
"name": "Virtual Ape Private Eye",
|
| 6 |
+
"wallet": "0xa1420293a7df49bc8380f543a1fe7b8d6f582879",
|
| 7 |
+
"erc8004_id": 54988,
|
| 8 |
+
"agent_id": "019eaf60-592a-7f5c-99a2-3e85199303fe",
|
| 9 |
+
"vape_token": "0x2b601d7fc4705361F0c0249a005a714b7A3EdaFE",
|
| 10 |
+
"chain": "Base",
|
| 11 |
+
"x": "https://x.com/based_vape",
|
| 12 |
+
"verify_identity": "https://app.virtuals.io/virtuals/54988"
|
| 13 |
+
},
|
| 14 |
+
"verifiable_activity": {
|
| 15 |
+
"reports_published": 147,
|
| 16 |
+
"intel_reports": 130,
|
| 17 |
+
"intel_broadcasts": 24,
|
| 18 |
+
"catalog_investigations": 42,
|
| 19 |
+
"token_scans_logged": 0,
|
| 20 |
+
"skills_codified": 4,
|
| 21 |
+
"tools_total": 14,
|
| 22 |
+
"tools_verified": 12,
|
| 23 |
+
"tool_tiers": {
|
| 24 |
+
"static": 3,
|
| 25 |
+
"fuzzing": 2,
|
| 26 |
+
"ai-redteam": 3,
|
| 27 |
+
"recon": 6
|
| 28 |
+
},
|
| 29 |
+
"work_log_entries": 12,
|
| 30 |
+
"auto_fulfilled_jobs": 0,
|
| 31 |
+
"first_report": "20260623",
|
| 32 |
+
"latest_report": "20260625"
|
| 33 |
+
},
|
| 34 |
+
"capabilities": {
|
| 35 |
+
"offerings_live": 14,
|
| 36 |
+
"auto_fulfilled_zero_llm": [
|
| 37 |
+
"exploit_check",
|
| 38 |
+
"liquidity_check",
|
| 39 |
+
"market_intel",
|
| 40 |
+
"rug_pull_alert",
|
| 41 |
+
"safety_preflight",
|
| 42 |
+
"token_safety_check"
|
| 43 |
+
],
|
| 44 |
+
"offerings": [
|
| 45 |
+
{
|
| 46 |
+
"name": "exploit_check",
|
| 47 |
+
"price_usd": 0.01,
|
| 48 |
+
"summary": "Exploit & scam-database check for any Base wallet/contract",
|
| 49 |
+
"auto": true
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"name": "partner_referral",
|
| 53 |
+
"price_usd": 0.01,
|
| 54 |
+
"summary": "Earn USDC commission referring clients to VAPE",
|
| 55 |
+
"auto": false
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"name": "token_safety_check",
|
| 59 |
+
"price_usd": 0.02,
|
| 60 |
+
"summary": "Honeypot detector + 0-100 safety score (GoPlus+DexScreener)",
|
| 61 |
+
"auto": true
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"name": "liquidity_check",
|
| 65 |
+
"price_usd": 0.02,
|
| 66 |
+
"summary": "DEX liquidity depth, LP burn, slippage + SAFE/THIN/DANGEROUS",
|
| 67 |
+
"auto": true
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"name": "wallet_recon",
|
| 71 |
+
"price_usd": 0.03,
|
| 72 |
+
"summary": "Address profiling: holdings, patterns, risk flags",
|
| 73 |
+
"auto": false
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"name": "rug_pull_alert",
|
| 77 |
+
"price_usd": 0.03,
|
| 78 |
+
"summary": "Rug risk LOW/MEDIUM/HIGH/EXTREME with specific red flags",
|
| 79 |
+
"auto": true
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"name": "tx_decode",
|
| 83 |
+
"price_usd": 0.05,
|
| 84 |
+
"summary": "Plain-language tx decode + risk flags for any Base tx hash",
|
| 85 |
+
"auto": false
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"name": "safety_preflight",
|
| 89 |
+
"price_usd": 0.05,
|
| 90 |
+
"summary": "All-in-one pre-trade GO/CAUTION/NO_GO verdict",
|
| 91 |
+
"auto": true
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"name": "whale_watch",
|
| 95 |
+
"price_usd": 0.1,
|
| 96 |
+
"summary": "Whale buys/sells + BULLISH/BEARISH/NEUTRAL net-flow",
|
| 97 |
+
"auto": false
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"name": "community_intel_broadcast",
|
| 101 |
+
"price_usd": 0.1,
|
| 102 |
+
"summary": "6-hourly consolidated security+market intel broadcast",
|
| 103 |
+
"auto": false
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"name": "market_intel",
|
| 107 |
+
"price_usd": 0.15,
|
| 108 |
+
"summary": "Real-time price/TVL/liquidity + actionable signal",
|
| 109 |
+
"auto": true
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"name": "bulk_safety_bundle",
|
| 113 |
+
"price_usd": 0.5,
|
| 114 |
+
"summary": "Scan 5-25 tokens in one job, 40% off",
|
| 115 |
+
"auto": false
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"name": "deep_contract_audit",
|
| 119 |
+
"price_usd": 1.0,
|
| 120 |
+
"summary": "slither+aderyn+mythril severity-rated audit + 0-100 score",
|
| 121 |
+
"auto": false
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"name": "forensics_deep",
|
| 125 |
+
"price_usd": 2.0,
|
| 126 |
+
"summary": "Full wallet trace + chain-of-custody graph",
|
| 127 |
+
"auto": false
|
| 128 |
+
}
|
| 129 |
+
]
|
| 130 |
+
},
|
| 131 |
+
"operating_model": {
|
| 132 |
+
"data": "real-data-only \u2014 every finding sourced from GoPlus/DexScreener/DefiLlama/CoinGecko/Base RPC/Etherscan, never fabricated",
|
| 133 |
+
"compute": "near-zero \u2014 listener+drain idle at no cost; 6 offerings settle with no model wake; GitHub Actions run the pipeline free",
|
| 134 |
+
"rails": "ACP on Base \u2014 escrowed USDC jobs, ERC-8004 registered identity",
|
| 135 |
+
"uptime": "24/7 \u2014 detached daemons (PPID 1) + hourly GitHub workflows"
|
| 136 |
+
},
|
| 137 |
+
"disclaimer": "Activity counts are generated from this public repo and on-chain identity \u2014 independently verifiable. Not investment advice."
|
| 138 |
+
}
|
docs/index.html
CHANGED
|
@@ -77,6 +77,35 @@
|
|
| 77 |
</div>
|
| 78 |
</section>
|
| 79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
<!-- Real TVL trend chart -->
|
| 81 |
<section class="glass rounded-3xl p-6 sm:p-8 mb-8">
|
| 82 |
<div class="flex items-center justify-between mb-4">
|
|
@@ -203,11 +232,45 @@
|
|
| 203 |
const App = {
|
| 204 |
async refresh() {
|
| 205 |
document.getElementById('live-label').textContent = 'SYNCING';
|
| 206 |
-
await Promise.allSettled([this.metrics(), this.protocols(), this.bounties(), this.reports(), this.chart(this._days||30)]);
|
| 207 |
document.getElementById('live-label').textContent = 'LIVE';
|
| 208 |
document.getElementById('last-sync').textContent = 'synced ' + new Date().toLocaleTimeString();
|
| 209 |
},
|
| 210 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 211 |
_tvlHist: null, _chart: null,
|
| 212 |
async chart(days=30) {
|
| 213 |
try {
|
|
|
|
| 77 |
</div>
|
| 78 |
</section>
|
| 79 |
|
| 80 |
+
<!-- Reputation & Services (verifiable track record + hireable offerings) -->
|
| 81 |
+
<section class="glass rounded-3xl p-6 sm:p-8 mb-8">
|
| 82 |
+
<div class="flex flex-wrap items-center justify-between gap-3 mb-5">
|
| 83 |
+
<h2 class="text-xl font-semibold flex items-center gap-2"><i class="fa-solid fa-id-badge text-emerald-400"></i> Reputation & Services <span class="text-xs text-zinc-500 font-normal">(verifiable on-chain & in-repo)</span></h2>
|
| 84 |
+
<div class="flex items-center gap-2 text-xs">
|
| 85 |
+
<a id="rep-verify" href="#" target="_blank" rel="noopener" class="px-3 py-1.5 rounded-lg bg-white/5 hover:bg-white/10 transition"><i class="fa-solid fa-shield-halved text-emerald-400"></i> Verify identity</a>
|
| 86 |
+
<a href="https://x.com/based_vape" target="_blank" rel="noopener" class="px-3 py-1.5 rounded-lg bg-white/5 hover:bg-white/10 transition"><i class="fa-brands fa-x-twitter"></i> @based_vape</a>
|
| 87 |
+
</div>
|
| 88 |
+
</div>
|
| 89 |
+
<!-- track-record stat grid -->
|
| 90 |
+
<div id="rep-stats" class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3 mb-6">
|
| 91 |
+
<div class="text-center bg-white/5 rounded-xl py-3 px-2"><div id="rep-reports" class="font-display text-2xl text-emerald-400">—</div><div class="text-[10px] uppercase tracking-wider text-zinc-500 mt-0.5">Reports</div></div>
|
| 92 |
+
<div class="text-center bg-white/5 rounded-xl py-3 px-2"><div id="rep-broadcasts" class="font-display text-2xl text-emerald-400">—</div><div class="text-[10px] uppercase tracking-wider text-zinc-500 mt-0.5">Broadcasts</div></div>
|
| 93 |
+
<div class="text-center bg-white/5 rounded-xl py-3 px-2"><div id="rep-investigations" class="font-display text-2xl text-emerald-400">—</div><div class="text-[10px] uppercase tracking-wider text-zinc-500 mt-0.5">Investigations</div></div>
|
| 94 |
+
<div class="text-center bg-white/5 rounded-xl py-3 px-2"><div id="rep-tools" class="font-display text-2xl text-emerald-400">—</div><div class="text-[10px] uppercase tracking-wider text-zinc-500 mt-0.5">Tools verified</div></div>
|
| 95 |
+
<div class="text-center bg-white/5 rounded-xl py-3 px-2"><div id="rep-offerings" class="font-display text-2xl text-emerald-400">—</div><div class="text-[10px] uppercase tracking-wider text-zinc-500 mt-0.5">Offerings</div></div>
|
| 96 |
+
<div class="text-center bg-white/5 rounded-xl py-3 px-2"><div id="rep-skills" class="font-display text-2xl text-emerald-400">—</div><div class="text-[10px] uppercase tracking-wider text-zinc-500 mt-0.5">Skills</div></div>
|
| 97 |
+
</div>
|
| 98 |
+
<!-- hireable services -->
|
| 99 |
+
<div class="flex items-center justify-between mb-3">
|
| 100 |
+
<h3 class="text-sm font-semibold text-zinc-300"><i class="fa-solid fa-store text-indigo-400"></i> Hire VAPE on ACP <span class="text-xs text-zinc-500 font-normal">· escrowed USDC on Base</span></h3>
|
| 101 |
+
<span class="text-[10px] text-emerald-400/80"><i class="fa-solid fa-bolt"></i> auto = settles with zero compute</span>
|
| 102 |
+
</div>
|
| 103 |
+
<div id="rep-offerings-grid" class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2 text-sm">
|
| 104 |
+
<div class="text-zinc-600 text-xs">loading services…</div>
|
| 105 |
+
</div>
|
| 106 |
+
<p id="rep-disclaimer" class="text-[11px] text-zinc-600 mt-4"></p>
|
| 107 |
+
</section>
|
| 108 |
+
|
| 109 |
<!-- Real TVL trend chart -->
|
| 110 |
<section class="glass rounded-3xl p-6 sm:p-8 mb-8">
|
| 111 |
<div class="flex items-center justify-between mb-4">
|
|
|
|
| 232 |
const App = {
|
| 233 |
async refresh() {
|
| 234 |
document.getElementById('live-label').textContent = 'SYNCING';
|
| 235 |
+
await Promise.allSettled([this.metrics(), this.protocols(), this.bounties(), this.reports(), this.chart(this._days||30), this.reputation()]);
|
| 236 |
document.getElementById('live-label').textContent = 'LIVE';
|
| 237 |
document.getElementById('last-sync').textContent = 'synced ' + new Date().toLocaleTimeString();
|
| 238 |
},
|
| 239 |
|
| 240 |
+
_rep: null,
|
| 241 |
+
async reputation() {
|
| 242 |
+
try {
|
| 243 |
+
if (!this._rep) this._rep = await (await fetch(`${RAW}/data/reputation.json?t=`+Date.now())).json();
|
| 244 |
+
const r = this._rep, a = r.verifiable_activity||{}, c = r.capabilities||{}, id = r.identity||{};
|
| 245 |
+
const set = (el,v)=>{const n=document.getElementById(el); if(n) n.textContent = (v==null?'—':Number(v).toLocaleString());};
|
| 246 |
+
set('rep-reports', a.reports_published);
|
| 247 |
+
set('rep-broadcasts', a.intel_broadcasts);
|
| 248 |
+
set('rep-investigations', a.catalog_investigations);
|
| 249 |
+
set('rep-tools', a.tools_verified);
|
| 250 |
+
set('rep-offerings', c.offerings_live);
|
| 251 |
+
set('rep-skills', a.skills_codified);
|
| 252 |
+
const vlink = document.getElementById('rep-verify');
|
| 253 |
+
if (vlink && id.verify_identity) vlink.href = id.verify_identity;
|
| 254 |
+
const grid = document.getElementById('rep-offerings-grid');
|
| 255 |
+
if (grid && Array.isArray(c.offerings)) {
|
| 256 |
+
grid.innerHTML = c.offerings.map(o=>`
|
| 257 |
+
<div class="bg-white/5 rounded-xl p-3 flex flex-col gap-1">
|
| 258 |
+
<div class="flex items-center justify-between gap-2">
|
| 259 |
+
<span class="font-mono text-xs text-zinc-200">${o.name}</span>
|
| 260 |
+
<span class="font-display text-emerald-400 text-sm whitespace-nowrap">$${o.price_usd}</span>
|
| 261 |
+
</div>
|
| 262 |
+
<div class="text-[11px] text-zinc-500 leading-snug">${o.summary}</div>
|
| 263 |
+
${o.auto?'<span class="text-[9px] text-emerald-400/80 uppercase tracking-wider"><i class="fa-solid fa-bolt"></i> auto · zero compute</span>':''}
|
| 264 |
+
</div>`).join('');
|
| 265 |
+
}
|
| 266 |
+
const disc = document.getElementById('rep-disclaimer');
|
| 267 |
+
if (disc) disc.textContent = (r.disclaimer||'') + (a.first_report?` · Active since ${a.first_report.replace(/(\d{4})(\d{2})(\d{2})/,'$1-$2-$3')}.`:'');
|
| 268 |
+
} catch(e){
|
| 269 |
+
const grid = document.getElementById('rep-offerings-grid');
|
| 270 |
+
if (grid) grid.innerHTML = '<div class="text-amber-400 text-xs">Reputation feed unavailable (regenerating).</div>';
|
| 271 |
+
}
|
| 272 |
+
},
|
| 273 |
+
|
| 274 |
_tvlHist: null, _chart: null,
|
| 275 |
async chart(days=30) {
|
| 276 |
try {
|