Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(user-ops-indexer): rewrite to alloy #1165

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5,201 changes: 2,467 additions & 2,734 deletions user-ops-indexer/Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions user-ops-indexer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ found [here](../docs/common-envs.md).
| `USER_OPS_INDEXER__INDEXER__PAST_DB_LOGS_INDEXER__ENABLED` | | Enable one-time reindex of missed user operations from core Blockscout DB. Will query relevant events from `logs` Postgres table | `false` |
| `USER_OPS_INDEXER__INDEXER__PAST_DB_LOGS_INDEXER__START_BLOCK` | | Block range start for one-time DB reindex. Use positive number for static block number, or zero/negative number to count backwards from `latest` | `0` |
| `USER_OPS_INDEXER__INDEXER__PAST_DB_LOGS_INDEXER__END_BLOCK` | | Block range end for one-time DB reindex. Use positive number for static block number, or zero/negative number to count backwards from `latest` | `0` |
| `USER_OPS_INDEXER__INDEXER__TRACE_CLIENT` | | RPC tracing namespace to use for tracing transactions, `debug` for using `debug_traceTransaction`, `trace` for using `trace_transaction` | Depends on `web3_clientVersion` |
| `USER_OPS_INDEXER__DATABASE__CONNECT__URL` | true | Postgres connect URL to Blockscout DB with read/write access | (empty) |
| `USER_OPS_INDEXER__DATABASE__CREATE_DATABASE` | | Create database if doesn't exist | `false` |
| `USER_OPS_INDEXER__DATABASE__RUN_MIGRATIONS` | | Run database migrations | `false` |
Expand Down
21 changes: 1 addition & 20 deletions user-ops-indexer/user-ops-indexer-logic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,50 +12,31 @@ blockscout-db = { git = "https://github.com/blockscout/blockscout-rs", rev = "bb

atoi = "2.0.0"
anyhow = "1.0"
blockscout-display-bytes = "1.0"
bytes = "1.2"
ethabi = "18.0"
ethers-core = "2.0.0"
hex = "0.4"
mismatch = "1.0"
sea-orm = { version = "0.12.2", features = [
"sqlx-postgres",
"runtime-tokio-rustls",
"macros",
"postgres-array",
] }
futures = "0.3"
keccak-hash = "0.10.0"
lazy_static = "1"
prometheus = "0.13"
reqwest = "0.11.18"
semver = "1.0"
serde = "1.0"
serde_json = "1.0"
solidity-metadata = "1.0"
thiserror = "1.0"
tokio = { version = "1.22", features = ["sync"] }
tonic = { version = "0.8", features = ["tls-roots"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
ethers = { version = "2.0.11", features = ["ws"] }
num-traits = "0.2.17"
itertools = "0.11.0"
chrono = "0.4.31"
lru = "0.12.2"
async-trait = "0.1.77"
serde_with = "3.6.1"
alloy = { version = "0.9.2", features = ["contract", "pubsub", "provider-debug-api", "provider-trace-api"] }

[dev-dependencies]
async-trait = "0.1"
blockscout-service-launcher = { workspace = true, features = ["test-database", "database-0_12"] }
user-ops-indexer-migration = { path = "../user-ops-indexer-migration" }
mockall = "0.11"
pretty_assertions = "1.3"
rstest = "0.18.0"
sea-orm = { version = "*", features = ["mock"] }
tokio-stream = { version = "0.1", features = ["net"] }
url = "2.4.0"

[features]
# When activated includes helper methods for tests and benchmarking
Expand Down
Loading
Loading