├── .env.sample ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── Makefile ├── README.md ├── chaindexing-macros ├── Cargo.toml └── src │ └── lib.rs ├── chaindexing-tests ├── Cargo.toml └── src │ ├── db.rs │ ├── factory.rs │ ├── factory │ ├── contracts.rs │ ├── events.rs │ ├── handlers.rs │ └── providers.rs │ ├── lib.rs │ ├── main.rs │ ├── test_runner.rs │ ├── tests.rs │ └── tests │ ├── handlers.rs │ ├── ingester.rs │ ├── repos.rs │ ├── repos │ └── postgres_repo.rs │ └── states.rs ├── chaindexing ├── Cargo.toml └── src │ ├── augmenting_std.rs │ ├── booting.rs │ ├── chain_reorg.rs │ ├── chains.rs │ ├── config.rs │ ├── contracts.rs │ ├── deferred_futures.rs │ ├── diesel.rs │ ├── events.rs │ ├── events │ └── event.rs │ ├── handlers.rs │ ├── handlers │ ├── handle_events.rs │ ├── handler_context.rs │ ├── maybe_handle_chain_reorg.rs │ ├── pure_handler.rs │ └── side_effect_handler.rs │ ├── ingester.rs │ ├── ingester │ ├── error.rs │ ├── filters.rs │ ├── ingest_events.rs │ ├── maybe_handle_chain_reorg.rs │ └── provider.rs │ ├── lib.rs │ ├── nodes.rs │ ├── nodes │ ├── node.rs │ ├── node_heartbeat.rs │ ├── node_task.rs │ ├── node_tasks.rs │ └── node_tasks_runner.rs │ ├── pruning.rs │ ├── repos.rs │ ├── repos │ ├── postgres_repo.rs │ ├── postgres_repo │ │ ├── migrations.rs │ │ └── raw_queries.rs │ ├── repo.rs │ └── streams.rs │ ├── root.rs │ ├── states.rs │ └── states │ ├── chain_state.rs │ ├── contract_state.rs │ ├── filters.rs │ ├── migrations.rs │ ├── multi_chain_state.rs │ ├── state.rs │ ├── state_versions.rs │ ├── state_views.rs │ └── updates.rs ├── docker-compose.yml ├── renovate.json ├── rustfmt.toml └── test-ci-locally.sh /.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/.env.sample -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/.gitignore -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/README.md -------------------------------------------------------------------------------- /chaindexing-macros/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-macros/Cargo.toml -------------------------------------------------------------------------------- /chaindexing-macros/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-macros/src/lib.rs -------------------------------------------------------------------------------- /chaindexing-tests/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-tests/Cargo.toml -------------------------------------------------------------------------------- /chaindexing-tests/src/db.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-tests/src/db.rs -------------------------------------------------------------------------------- /chaindexing-tests/src/factory.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-tests/src/factory.rs -------------------------------------------------------------------------------- /chaindexing-tests/src/factory/contracts.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-tests/src/factory/contracts.rs -------------------------------------------------------------------------------- /chaindexing-tests/src/factory/events.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-tests/src/factory/events.rs -------------------------------------------------------------------------------- /chaindexing-tests/src/factory/handlers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-tests/src/factory/handlers.rs -------------------------------------------------------------------------------- /chaindexing-tests/src/factory/providers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-tests/src/factory/providers.rs -------------------------------------------------------------------------------- /chaindexing-tests/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-tests/src/lib.rs -------------------------------------------------------------------------------- /chaindexing-tests/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-tests/src/main.rs -------------------------------------------------------------------------------- /chaindexing-tests/src/test_runner.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-tests/src/test_runner.rs -------------------------------------------------------------------------------- /chaindexing-tests/src/tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-tests/src/tests.rs -------------------------------------------------------------------------------- /chaindexing-tests/src/tests/handlers.rs: -------------------------------------------------------------------------------- 1 | // TODO: Event Handlers Test here 2 | -------------------------------------------------------------------------------- /chaindexing-tests/src/tests/ingester.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-tests/src/tests/ingester.rs -------------------------------------------------------------------------------- /chaindexing-tests/src/tests/repos.rs: -------------------------------------------------------------------------------- 1 | mod postgres_repo; 2 | -------------------------------------------------------------------------------- /chaindexing-tests/src/tests/repos/postgres_repo.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-tests/src/tests/repos/postgres_repo.rs -------------------------------------------------------------------------------- /chaindexing-tests/src/tests/states.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing-tests/src/tests/states.rs -------------------------------------------------------------------------------- /chaindexing/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/Cargo.toml -------------------------------------------------------------------------------- /chaindexing/src/augmenting_std.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/augmenting_std.rs -------------------------------------------------------------------------------- /chaindexing/src/booting.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/booting.rs -------------------------------------------------------------------------------- /chaindexing/src/chain_reorg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/chain_reorg.rs -------------------------------------------------------------------------------- /chaindexing/src/chains.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/chains.rs -------------------------------------------------------------------------------- /chaindexing/src/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/config.rs -------------------------------------------------------------------------------- /chaindexing/src/contracts.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/contracts.rs -------------------------------------------------------------------------------- /chaindexing/src/deferred_futures.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/deferred_futures.rs -------------------------------------------------------------------------------- /chaindexing/src/diesel.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/diesel.rs -------------------------------------------------------------------------------- /chaindexing/src/events.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/events.rs -------------------------------------------------------------------------------- /chaindexing/src/events/event.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/events/event.rs -------------------------------------------------------------------------------- /chaindexing/src/handlers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/handlers.rs -------------------------------------------------------------------------------- /chaindexing/src/handlers/handle_events.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/handlers/handle_events.rs -------------------------------------------------------------------------------- /chaindexing/src/handlers/handler_context.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/handlers/handler_context.rs -------------------------------------------------------------------------------- /chaindexing/src/handlers/maybe_handle_chain_reorg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/handlers/maybe_handle_chain_reorg.rs -------------------------------------------------------------------------------- /chaindexing/src/handlers/pure_handler.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/handlers/pure_handler.rs -------------------------------------------------------------------------------- /chaindexing/src/handlers/side_effect_handler.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/handlers/side_effect_handler.rs -------------------------------------------------------------------------------- /chaindexing/src/ingester.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/ingester.rs -------------------------------------------------------------------------------- /chaindexing/src/ingester/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/ingester/error.rs -------------------------------------------------------------------------------- /chaindexing/src/ingester/filters.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/ingester/filters.rs -------------------------------------------------------------------------------- /chaindexing/src/ingester/ingest_events.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/ingester/ingest_events.rs -------------------------------------------------------------------------------- /chaindexing/src/ingester/maybe_handle_chain_reorg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/ingester/maybe_handle_chain_reorg.rs -------------------------------------------------------------------------------- /chaindexing/src/ingester/provider.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/ingester/provider.rs -------------------------------------------------------------------------------- /chaindexing/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/lib.rs -------------------------------------------------------------------------------- /chaindexing/src/nodes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/nodes.rs -------------------------------------------------------------------------------- /chaindexing/src/nodes/node.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/nodes/node.rs -------------------------------------------------------------------------------- /chaindexing/src/nodes/node_heartbeat.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/nodes/node_heartbeat.rs -------------------------------------------------------------------------------- /chaindexing/src/nodes/node_task.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/nodes/node_task.rs -------------------------------------------------------------------------------- /chaindexing/src/nodes/node_tasks.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/nodes/node_tasks.rs -------------------------------------------------------------------------------- /chaindexing/src/nodes/node_tasks_runner.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/nodes/node_tasks_runner.rs -------------------------------------------------------------------------------- /chaindexing/src/pruning.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/pruning.rs -------------------------------------------------------------------------------- /chaindexing/src/repos.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/repos.rs -------------------------------------------------------------------------------- /chaindexing/src/repos/postgres_repo.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/repos/postgres_repo.rs -------------------------------------------------------------------------------- /chaindexing/src/repos/postgres_repo/migrations.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/repos/postgres_repo/migrations.rs -------------------------------------------------------------------------------- /chaindexing/src/repos/postgres_repo/raw_queries.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/repos/postgres_repo/raw_queries.rs -------------------------------------------------------------------------------- /chaindexing/src/repos/repo.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/repos/repo.rs -------------------------------------------------------------------------------- /chaindexing/src/repos/streams.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/repos/streams.rs -------------------------------------------------------------------------------- /chaindexing/src/root.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/root.rs -------------------------------------------------------------------------------- /chaindexing/src/states.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/states.rs -------------------------------------------------------------------------------- /chaindexing/src/states/chain_state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/states/chain_state.rs -------------------------------------------------------------------------------- /chaindexing/src/states/contract_state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/states/contract_state.rs -------------------------------------------------------------------------------- /chaindexing/src/states/filters.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/states/filters.rs -------------------------------------------------------------------------------- /chaindexing/src/states/migrations.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/states/migrations.rs -------------------------------------------------------------------------------- /chaindexing/src/states/multi_chain_state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/states/multi_chain_state.rs -------------------------------------------------------------------------------- /chaindexing/src/states/state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/states/state.rs -------------------------------------------------------------------------------- /chaindexing/src/states/state_versions.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/states/state_versions.rs -------------------------------------------------------------------------------- /chaindexing/src/states/state_views.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/states/state_views.rs -------------------------------------------------------------------------------- /chaindexing/src/states/updates.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/chaindexing/src/states/updates.rs -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/renovate.json -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- 1 | chain_width = 80 -------------------------------------------------------------------------------- /test-ci-locally.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaindexing/chaindexing-rs/HEAD/test-ci-locally.sh --------------------------------------------------------------------------------