Skip to content

Commit 74a2df3

Browse files
committed
Migrate to alloy from rust-web3
1 parent dace628 commit 74a2df3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+8226
-3798
lines changed

Cargo.lock

Lines changed: 2437 additions & 1159 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ repository = "https://github.com/graphprotocol/graph-node"
3535
license = "MIT OR Apache-2.0"
3636

3737
[workspace.dependencies]
38+
alloy = { version = "1.0.33", features = ["dyn-abi", "json-abi", "full", "arbitrary", "json-rpc", "serde"] }
39+
alloy-rpc-types = "1.0.33"
3840
anyhow = "1.0"
3941
async-graphql = { version = "7.1.0", features = ["chrono"] }
4042
async-graphql-axum = "7.0.17"
@@ -94,14 +96,14 @@ tokio-retry = "0.3.0"
9496
tonic = { version = "0.12.3", features = ["tls-roots", "gzip"] }
9597
tonic-build = { version = "0.12.3", features = ["prost"] }
9698
tower-http = { version = "0.6.8", features = ["cors"] }
99+
tower = { version = "0.5.1", features = ["full"] }
97100
wasmparser = "0.118.1"
98101
wasmtime = { version = "35.0.0", features = ["async"] }
99102
rand = { version = "0.9.2", features = ["os_rng"] }
100103
prometheus = "0.14.0"
101104

102105
# Dependencies related to Amp subgraphs
103106
ahash = "0.8.11"
104-
alloy = { version = "1.0.12", default-features = false, features = ["json-abi", "serde"] }
105107
arrow = { version = "=55.0.0" }
106108
arrow-flight = { version = "=55.0.0", features = ["flight-sql-experimental"] }
107109
futures = "0.3.31"

chain/ethereum/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ semver = "1.0.27"
1818
thiserror = { workspace = true }
1919
tokio = { workspace = true }
2020
tokio-stream = { workspace = true }
21+
tower = { workspace = true }
2122

2223
itertools = "0.14.0"
2324

chain/ethereum/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ fn main() {
33

44
tonic_build::configure()
55
.out_dir("src/protobuf")
6+
.protoc_arg("--experimental_allow_proto3_optional")
67
.compile_protos(&["proto/ethereum.proto"], &["proto"])
78
.expect("Failed to compile Firehose Ethereum proto(s)");
89
}

chain/ethereum/proto/ethereum.proto

Lines changed: 633 additions & 68 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)