Proof of Work — Envio Growth Engineer Package
One-page scoreboard. Built for someone landing cold who wants to know: what was made, what was proven, where to verify.
🟢 Live on Envio hosted service
The money-market template (Aave V3, Polygon) is deployed and queryable right now on Envio's hosted indexing service:
GraphQL endpoint: https://indexer.dev.hyperindex.xyz/8fc0607/v1/graphql (opens in a new tab)
curl -sX POST https://indexer.dev.hyperindex.xyz/8fc0607/v1/graphql \
-H 'Content-Type: application/json' \
-d '{"query":"{ ReserveAggregator(order_by:{totalSupplied:desc}, limit:5){ asset totalSupplied uniqueBorrowers totalLiquidations } }"}'Deployed from branch envio-deploy-money-market (opens in a new tab) — pushes to that branch trigger redeploys. See DEPLOY.md (opens in a new tab) on that branch for sample queries.
What was built
Three forkable Envio HyperIndex templates, each anchored to a different real DeFi vertical and a real production protocol — not synthesised toys.
| Template | Vertical | Anchored protocol | Chain |
|---|---|---|---|
pow/envio-defi-template-v1/ | DEX (AMM swaps + liquidity) | Velodrome V2 PoolFactory | Optimism |
pow/envio-money-market-template-v1/ | Money market (lending + liquidations) | Aave V3 Pool | Polygon |
pow/envio-perp-template-v1/ | Perpetuals (positions + funding) | GMX v2 EventEmitter | Arbitrum |
Plus 23 strategy memos at the repo root (ENVIO_*.md) — vertical playbook, pain-map matrix, money-market diagnostics, revenue math, video script, etc.
What was proven
| Layer | Count | Where |
|---|---|---|
| Vitest unit tests passing | 19 / 19 | pow/*/test/*.test.ts (10 DEX + 5 money-market + 4 perp/v1) |
| Cross-entity invariants written | 21 | scripts/demo-capture/assertions{,-defi,-perp}.mjs |
| Live-data checks passing | 48,014 / 48,014 | All 21 invariants, against real on-chain state on 3 chains |
| JSON GraphQL captures | 18 | docs/screenshots/queries{,-defi,-perp}/*.json |
| Harness output transcripts | 3 | docs/screenshots/queries*/HARNESS_OUTPUT.txt |
Per-template scoreboard
| Template | Vitest | Invariants | Live checks | Sample size |
|---|---|---|---|---|
| DEX (Velodrome V2 / Optimism) | 10 ✓ | 8 (D1–D8) | 31,091 / 31,091 ✓ | 265 pools, 10k snapshots |
| Money market (Aave V3 / Polygon) | 5 ✓ | 9 (L1–L9) | 14,401 / 14,401 ✓ | 16 reserves, 1,089 liquidations, 5k user-reserves |
| Perp (GMX v2 / Arbitrum) | 2 ✓ + 3 skip→v2 | 4 (P1–P4) | 2,522 / 2,522 ✓ | 9 markets, 1,252 positions |
The harnesses catch a different class of bug from the unit tests: unit tests use MockDb with ~5–10 synthetic events, while the harness queries real chain state and asserts cross-entity invariants would have failed if any handler bug produced inconsistent state across thousands of events. Two real harness bugs were caught during DEX-harness development (unstable Hasura pagination; bad heuristic D8) — see the 2026-04-30 CHANGELOG entry in Growth_Engineer_at_ENVIO/CHANGELOG.md (opens in a new tab).
Where to verify it
- Read the saved harness output (no setup required):
- Read the JSON GraphQL response captures (real live-indexer output):
docs/screenshots/queries/(money market, 6 files)docs/screenshots/queries-defi/(DEX, 6 files)docs/screenshots/queries-perp/(perp, 6 files)
- Read the harness scripts (the predicates being checked):
scripts/demo-capture/assertions.mjs— 9 money-market invariantsscripts/demo-capture/assertions-defi.mjs— 8 DEX invariantsscripts/demo-capture/assertions-perp.mjs— 4 perp invariants
- Reproduce the runs yourself — see each template's
RUN.md:
Chain provenance
| Template | Chain | Contract | Deploy block |
|---|---|---|---|
| DEX | Optimism (10) | 0xF1046053…5FF5a (opens in a new tab) (Velodrome V2 PoolFactory) | 105,896,852 |
| Money market | Polygon (137) | 0x794a6135…814aD (opens in a new tab) (Aave V3 Pool) | 25,826,028 |
| Perp | Arbitrum (42161) | 0xC8ee91A5…22Fb (opens in a new tab) (GMX v2 EventEmitter) | 107,737,756 |
All harness runs recorded in this package were against these mainnet deployments on 2026-04-30.
4-line replay
git clone https://github.com/kaustubh76/Growth_Engineer_at_ENVIO.git && cd Growth_Engineer_at_ENVIO
pnpm -C pow/envio-money-market-template-v1 install && pnpm -C pow/envio-money-market-template-v1 test # 5 ✓
pnpm -C pow/envio-defi-template-v1 install && pnpm -C pow/envio-defi-template-v1 test # 10 ✓
pnpm -C pow/envio-perp-template-v1 install && pnpm -C pow/envio-perp-template-v1 test # 2 ✓ + 3 skip→v2For the live runs (with RPC URL): cd pow/envio-XXX-template-v1 && cat RUN.md.
Strategy artifacts (the "growth engineer" half)
Strategy and positioning memos at the repo root. Highlights:
ENVIO_VERTICAL_PLAYBOOK.md— three-vertical positioning + onboarding planENVIO_PAIN_MAP_MATRIX.md— protocol-pain × Envio-feature matrixENVIO_MONEY_MARKET_TECH_DIAGNOSTIC.md,ENVIO_MONEY_MARKET_POSITIONING_AUDIT.md,ENVIO_LIQUIDATION_HANDLER_REFERENCE.md— money-market verticalENVIO_DEFI_TECH_DIAGNOSTIC.md,ENVIO_DEFI_POSITIONING_AUDIT.md— DEX verticalENVIO_DEFI_60MIN_TEMPLATE.md— 60-minute fork-and-ship walkthroughENVIO_FIRST_24_HOURS.md,ENVIO_GROWTH_PLAN.md,ENVIO_DECK_OUTLINE.md,ENVIO_VIDEO_SCRIPT.md— operating planENVIO_REVENUE_MATH.md,ENVIO_REVENUE_MATH_V2.md,ENVIO_REVENUE_MODEL.md— revenue mathENVIO_EFFECT_API_PATTERN.md,ENVIO_MULTICHAIN_EXPANSION_RUNBOOK.md,ENVIO_RISK_DASHBOARD_QUERY_ARCHITECTURE.md— depth on Envio-specific patterns