Skip to content

Commit 0bdb0c0

Browse files
committed
Migrate to alloy from rust-web3
1 parent 82b60ac commit 0bdb0c0

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

+7912
-3448
lines changed

Cargo.lock

Lines changed: 2708 additions & 898 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ repository = "https://github.com/graphprotocol/graph-node"
3939
license = "MIT OR Apache-2.0"
4040

4141
[workspace.dependencies]
42+
alloy = { version = "1.0.33", features = ["dyn-abi", "json-abi", "full", "arbitrary", "json-rpc"] }
43+
alloy-rpc-types = "1.0.33"
4244
anyhow = "1.0"
4345
async-graphql = { version = "7.0.17", features = ["chrono"] }
4446
async-graphql-axum = "7.0.17"
@@ -96,6 +98,7 @@ tokio-retry = "0.3.0"
9698

9799
tonic = { version = "0.12.3", features = ["tls-roots", "gzip"] }
98100
tonic-build = { version = "0.12.3", features = ["prost"] }
101+
tower = { version = "0.5.1", features = ["full"] }
99102
tower-http = { version = "0.6.6", features = ["cors"] }
100103
wasmparser = "0.118.1"
101104
wasmtime = { version = "33.0.2", features = ["async"] }

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)