Skip to content

Commit

Permalink
feat(service): adopt the indexer service framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannis committed Dec 1, 2023
1 parent 92aafa7 commit 873f93b
Show file tree
Hide file tree
Showing 24 changed files with 724 additions and 2,035 deletions.
439 changes: 183 additions & 256 deletions Cargo.lock

Large diffs are not rendered by default.

21 changes: 14 additions & 7 deletions service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ license = "Apache-2.0"
[dependencies]
indexer-common = { path = "../common" }
confy = "0.5.1"
ethers-core = "2.0.10"
ethers = "2.0.10"
ethers-core = "2.0.11"
ethers = "2.0.11"
eventuals = "0.6.7"
dotenvy = "0.15"
log = "0.4.17"
Expand All @@ -22,18 +22,17 @@ tracing = "0.1.34"
thiserror = "1.0.49"
serde = { version = "1.0", features = ["rc", "derive"] }
serde_json = "1"
axum = "0.5"
axum = "0.6.20"
hyper = "0.14.27"
tower = { version = "0.4", features = ["util", "timeout", "limit"] }
tower-http = { version = "0.4.0", features = [
"add-extension",
"trace",
"cors",
] }
toml = "0.8.8"
once_cell = "1.17"
async-graphql = "4.0.16"
async-graphql-axum = "4.0.16"
async-graphql = "6.0.11"
async-graphql-axum = "6.0.11"
sha3 = "0.10.6"
tracing-subscriber = { version = "0.3", features = [
"env-filter",
Expand All @@ -59,8 +58,16 @@ alloy-primitives = { version = "0.5.2", features = ["serde"] }
alloy-sol-types = "0.5.2"
lazy_static = "1.4.0"
thegraph = { git = "https://github.com/edgeandnode/toolshed", branch = "main" }
graphql-http = { git = "https://github.com/edgeandnode/toolshed", branch = "main" }
graphql = { git = "https://github.com/edgeandnode/toolshed", branch = "main" }
graphql-http = { git = "https://github.com/edgeandnode/toolshed", branch = "main", features = [
"http-reqwest",
] }
build-info = "0.0.34"
figment = { version = "0.10", features = ["toml", "env"] }

# FIXME: Needed due to a serde_spanned version conflict between
# `ethers` and `figment`.
serde_spanned = "=0.6.4"

[dev-dependencies]
faux = "0.1.10"
Expand Down
9 changes: 9 additions & 0 deletions service/src/cli.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use std::path::PathBuf;

use clap::Parser;

#[derive(Parser)]
pub struct Cli {
#[arg(long, value_name = "FILE")]
pub config: PathBuf,
}
19 changes: 0 additions & 19 deletions service/src/common/address.rs

This file was deleted.

34 changes: 0 additions & 34 deletions service/src/common/database.rs

This file was deleted.

6 changes: 0 additions & 6 deletions service/src/common/mod.rs

This file was deleted.

Loading

0 comments on commit 873f93b

Please sign in to comment.