Skip to content

Upgrade envio to 3.0.1#10

Merged
moose-code merged 1 commit into
mainfrom
upgrade-envio-3.0.1
May 19, 2026
Merged

Upgrade envio to 3.0.1#10
moose-code merged 1 commit into
mainfrom
upgrade-envio-3.0.1

Conversation

@moose-code

@moose-code moose-code commented May 19, 2026

Copy link
Copy Markdown
Member
  • Bump envio dependency from 3.0.0-alpha.23 to 3.0.1
  • Remove optionalDependencies.generated (replaced by .envio/types.d.ts + envio-env.d.ts wiring)
  • Switch handler/test imports from "generated" to "envio"
  • Add envio-env.d.ts ambient types reference at project root
  • Add types: ["node"] to tsconfig.json per v3 guide
  • Refresh agent skills via pnpx envio skills update (indexing-* -> indexer-*)
  • Update docs: TUI_OFF=true -> ENVIO_TUI=false
  • Refresh CTFExchangeV2 snapshots for current Polymarket Gamma outcomePrices

Summary by CodeRabbit

Release Notes

  • New Features

    • Added comprehensive documentation for block indexing, external calls, and event filtering with examples and best practices.
    • Introduced context.chain.isRealtime property for distinguishing realtime vs. historical indexing phases.
  • Documentation

    • Reorganized and updated skill documentation with clearer guidance on handlers, schema, configuration, and multichain setup.
    • Enhanced migration guide from Subgraph with improved import patterns and entity type examples.
  • Improvements

    • Changed environment variable from TUI_OFF=true to ENVIO_TUI=false for consistent configuration.
    • Standardized API imports to use envio module for simpler access to core utilities.
  • Dependencies

    • Updated envio to version 3.0.1.

Review Change Stack

- Bump envio dependency from 3.0.0-alpha.23 to 3.0.1
- Remove optionalDependencies.generated (replaced by .envio/types.d.ts + envio-env.d.ts wiring)
- Switch handler/test imports from "generated" to "envio"
- Add envio-env.d.ts ambient types reference at project root
- Add types: ["node"] to tsconfig.json per v3 guide
- Refresh agent skills via `pnpx envio skills update` (indexing-* -> indexer-*)
- Update docs: TUI_OFF=true -> ENVIO_TUI=false
- Refresh CTFExchangeV2 snapshots for current Polymarket Gamma outcomePrices

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@moose-code moose-code merged commit 5d03689 into main May 19, 2026
0 of 2 checks passed
@coderabbitai

coderabbitai Bot commented May 19, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 69896ffb-6f57-4b2a-b289-f8ed7557df2b

📥 Commits

Reviewing files that changed from the base of the PR and between 746e511 and 6ebef96.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (33)
  • .claude/skills/indexer-blocks/SKILL.md
  • .claude/skills/indexer-configuration/SKILL.md
  • .claude/skills/indexer-external-calls/SKILL.md
  • .claude/skills/indexer-factory/SKILL.md
  • .claude/skills/indexer-filters/SKILL.md
  • .claude/skills/indexer-handlers/SKILL.md
  • .claude/skills/indexer-multichain/SKILL.md
  • .claude/skills/indexer-performance/SKILL.md
  • .claude/skills/indexer-schema/SKILL.md
  • .claude/skills/indexer-testing/SKILL.md
  • .claude/skills/indexer-traces/SKILL.md
  • .claude/skills/indexer-transactions/SKILL.md
  • .claude/skills/indexer-wildcard/SKILL.md
  • .claude/skills/indexing-blocks/SKILL.md
  • .claude/skills/indexing-external-calls/SKILL.md
  • .claude/skills/indexing-filters/SKILL.md
  • .claude/skills/migrate-from-subgraph/SKILL.md
  • .claude/skills/migrate-from-subgraph/references/migration-checklist.md
  • .claude/skills/migrate-from-subgraph/references/migration-patterns.md
  • .claude/skills/migrate-from-subgraph/references/quality-checks.md
  • .claude/skills/migrate-from-subgraph/references/step-by-step.md
  • .envio/.gitignore
  • AGENTS.md
  • CLAUDE.md
  • envio-env.d.ts
  • package.json
  • src/handlers/CTFExchangeV2.ts
  • src/handlers/PolyUSD.ts
  • src/handlers/Rewards.ts
  • test/CTFExchangeV2.test.ts
  • test/PolyUSD.test.ts
  • test/Rewards.test.ts
  • tsconfig.json

📝 Walkthrough

Walkthrough

This PR migrates the Polymarket V2 indexer from legacy indexing-* documentation and generated module imports to indexer-* naming conventions and direct envio module imports. It updates 15+ skill documentation files, rewires handler and test file imports, updates the development CLI environment variable mechanism from TUI_OFF to ENVIO_TUI, and upgrades the envio dependency to 3.0.1.

Changes

Envio Indexer API migration and documentation refactor

Layer / File(s) Summary
Skill documentation refactoring
.claude/skills/indexer-*/SKILL.md, .claude/skills/indexing-*/SKILL.md, .claude/skills/migrate-from-subgraph/*
Comprehensive refactoring renaming 10+ skills from indexing-* to indexer-*, reorganizing documentation, consolidating filter and external-call guidance, updating cross-skill references, adding managed-by: envio metadata, and replacing terminology (HyperIndex → Envio Indexer, isLiveisRealtime).
Handler and test import source migration
src/handlers/CTFExchangeV2.ts, src/handlers/PolyUSD.ts, src/handlers/Rewards.ts, test/*.test.ts
Update handler and test files to import indexer and createTestIndexer from envio instead of generated, and adjust CTFExchangeV2 test snapshots to reflect updated outcome price calculations.
CLI, build, and project configuration
AGENTS.md, CLAUDE.md, package.json, tsconfig.json, .envio/.gitignore, envio-env.d.ts
Change TUI control from TUI_OFF=true to ENVIO_TUI=false, add Node.js type definitions to TypeScript config, update envio dependency to 3.0.1, add generated codegen output to gitignore, and introduce envio-env.d.ts type reference stub.

🎯 2 (Simple) | ⏱️ ~12 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint skipped: no ESLint configuration detected in root package.json. To enable, add eslint to devDependencies.


Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant