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 a145c29 commit 0871c8f
Show file tree
Hide file tree
Showing 23 changed files with 541 additions and 1,794 deletions.
22 changes: 14 additions & 8 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.7.4"
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 @@ -58,10 +57,17 @@ sqlx = { version = "0.7.1", features = [
alloy-primitives = { version = "0.4.2", features = ["serde"] }
alloy-sol-types = "0.4.2"
lazy_static = "1.4.0"
toolshed = { git = "https://github.com/edgeandnode/toolshed", branch = "main", features = [
"graphql",
toolshed = { 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,
}
30 changes: 0 additions & 30 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 0871c8f

Please sign in to comment.