Skip to content
Merged

v2.31 #789

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
759a36a
Rename blocks table
DZakh Sep 23, 2025
6408d01
Break everything
DZakh Sep 24, 2025
55b0da6
Turn reorg checkpoints into general checkpoints
DZakh Sep 30, 2025
f5bf560
Load relevant reorg checkpoints on restart
DZakh Sep 30, 2025
2dbe083
Move a lot of logic to the Batch module
DZakh Oct 1, 2025
bb6ecdb
Make tests compile
DZakh Oct 1, 2025
54a2508
Merge branch 'main' of github.com:enviodev/hyperindex into dz/track-b…
DZakh Oct 1, 2025
82f127e
Rename last block scanned hashes to reorg detection module
DZakh Oct 1, 2025
9bc0799
Merge branch 'main' of github.com:enviodev/hyperindex into dz/track-b…
DZakh Oct 1, 2025
b2c7f0e
Fix next progress block number calculation
DZakh Oct 2, 2025
fb3487b
Turn batch module into a single array
DZakh Oct 3, 2025
e3ace66
Merge branch 'main' of github.com:enviodev/hyperindex into dz/track-b…
DZakh Oct 3, 2025
24c348c
Include reorg checkpoints to the batch
DZakh Oct 3, 2025
b77485b
Fix a few e2e tests
DZakh Oct 3, 2025
5eefea9
Restore commited checkpoint id from the db
DZakh Oct 7, 2025
9785792
Store checkpoint in the db
DZakh Oct 7, 2025
e9f4722
Return back old prunning logic for checkpoints
DZakh Oct 7, 2025
bf9720d
Make rollback logic work again
DZakh Oct 7, 2025
3251b14
Fix tests
DZakh Oct 7, 2025
2567fa6
Fix tests
DZakh Oct 8, 2025
ed1514a
Fix erc20 tests
DZakh Oct 8, 2025
5c66c63
Fix coderabbit comments
DZakh Oct 8, 2025
e42dd92
Find reorg depth concurrently
DZakh Oct 8, 2025
dfd3691
Track safe checkpoint and optimize pruning
DZakh Oct 9, 2025
bee45cd
Correctly rollback chains progress
DZakh Oct 9, 2025
7af054e
Correctly rollback checkpoints from db
DZakh Oct 9, 2025
3f68978
Pass checkpointId to every entity identifier
DZakh Oct 10, 2025
307199d
Fix items iteration
DZakh Oct 10, 2025
477f019
Move event identifier to internal
DZakh Oct 10, 2025
00ab0d6
Finish rollback on reorg rewrite
DZakh Oct 13, 2025
a774659
Final touches and test fixes
DZakh Oct 14, 2025
b409ddc
Merge main
DZakh Oct 15, 2025
6fffa3c
Multiple reorg&rollback fixes, tests and improvements
DZakh Oct 17, 2025
c56146b
Fix review comments and fuel tests
DZakh Oct 20, 2025
dbeb6f5
Fix https://github.com/enviodev/hyperindex/issues/786
DZakh Oct 20, 2025
9f5cee3
Fix [BigInt!]! precision loss in Hasura
DZakh Oct 20, 2025
c0cd951
Fix https://github.com/enviodev/hyperindex/issues/749
DZakh Oct 21, 2025
ac385cc
Try to add hasura service for tests pipeline
DZakh Oct 21, 2025
377d11f
Add Effect cache load prom metrics
DZakh Oct 21, 2025
7e212fd
Remove processing prom metrics and add envio_progress_batches_count
DZakh Oct 21, 2025
a9dfa79
Validate effect cache when loading it from db
DZakh Oct 21, 2025
e977e34
Improve batch processing log
DZakh Oct 21, 2025
cd01da8
Merge branch 'main' of github.com:enviodev/hyperindex into dz/oct-20-…
DZakh Oct 21, 2025
eba95ad
Sync chains
DZakh Oct 21, 2025
1e010d1
Fix chains order
DZakh Oct 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .cursor/rules/navigation.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ globs: ""
alwaysApply: true
---

# Always

- Sacrifice grammar for the sake of concision
- List any unresolved questions at the end, if any

## Navigation

- The Rust CLI lives in `codegenerator/cli`.
- Entry point: `codegenerator/cli/src/lib.rs`.
- Command dispatcher: `codegenerator/cli/src/commands.rs`.
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ jobs:
# Maps tcp port 5432 on service container to the host port of 5433 which envio will use.
- 5433:5432

hasura:
image: hasura/graphql-engine:v2.43.0
env:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:testing@postgres:5432/envio-dev
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_NO_OF_RETRIES: 10
HASURA_GRAPHQL_ADMIN_SECRET: testing
HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES: "true"
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: public
PORT: 8080
ports:
- 8080:8080

steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
Expand Down Expand Up @@ -122,6 +136,15 @@ jobs:
pnpm hardhat compile --verbose
pnpm res:build

- name: Wait for Hasura
if: steps.changes.outputs.testChanges == 'true'
shell: bash
run: |
for i in {1..60}; do
if curl -sSf http://localhost:8080/healthz >/dev/null; then
echo "Hasura is up"; exit 0; fi; sleep 1; done
echo "Hasura did not become ready in time"; exit 1

- name: test_codegen test
if: steps.changes.outputs.testChanges == 'true'
working-directory: scenarios/test_codegen
Expand Down
Loading