Skip to content

Commit 33f276a

Browse files
authored
Websocket support (#410)
Implement websocket support via alloy::RpcClient. I have preserved hyper client inside, removed some layers because of incompatibility
1 parent f83aaff commit 33f276a

File tree

11 files changed

+336
-399
lines changed

11 files changed

+336
-399
lines changed

Cargo.lock

Lines changed: 32 additions & 128 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
@@ -26,6 +26,7 @@ sha2 = { version = "0.10", default-features = false }
2626

2727
# Reth deps
2828
reth-optimism-payload-builder = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
29+
reth-rpc-eth-types = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
2930

3031
# Alloy libraries
3132
alloy-rpc-types-engine = "1.0.35"
@@ -39,6 +40,8 @@ alloy-rpc-types = "1.0.35"
3940
alloy-genesis = "1.0.35"
4041
alloy-rpc-client = "1.0.35"
4142
alloy-provider = "1.0.35"
43+
alloy-transport = "1.0.35"
44+
alloy-transport-http = "1.0.35"
4245
op-alloy-network = "0.20.0"
4346
op-alloy-rpc-types-engine = "0.20.0"
4447
op-alloy-consensus = "0.20.0"

crates/rollup-boost/Cargo.toml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,27 @@ url.workspace = true
1919
sha2.workspace = true
2020

2121
reth-optimism-payload-builder.workspace = true
22+
reth-rpc-eth-types.workspace = true
2223
op-alloy-rpc-types-engine.workspace = true
2324
alloy-rpc-types-engine.workspace = true
2425
alloy-rpc-types-eth.workspace = true
26+
alloy-json-rpc.workspace = true
2527
alloy-primitives.workspace = true
2628
alloy-serde.workspace = true
29+
alloy-rpc-client = { workspace = true, features = ["hyper"]}
30+
alloy-transport = {workspace = true}
31+
alloy-transport-http = {workspace = true, features = ["hyper", "hyper-tls"]}
2732

2833
tokio-tungstenite.workspace = true
2934
metrics-derive.workspace = true
3035
testcontainers.workspace = true
3136

32-
# TODO: update to latest release when it is published
33-
# jsonrpsee = { version = "0.25.1", features = ["server", "http-client", "macros"] }
34-
jsonrpsee = { git = "https://github.com/paritytech/jsonrpsee", rev = "f04afa740e55db60dce20d9839758792f035ffff", features = [
35-
"server",
36-
"http-client",
37-
"macros",
38-
] }
37+
# rpc
38+
jsonrpsee = { version = "0.26.0", features = ["server", "http-client", "macros"] }
39+
jsonrpsee-core = "0.26.0"
40+
jsonrpsee-server = "0.26.0"
41+
jsonrpsee-http-client = "0.26.0"
42+
jsonrpsee-types = "0.26.0"
3943
moka = { version = "0.12.10", features = ["future"] }
4044
http = "1.1.0"
4145
dotenvy = "0.15.7"

0 commit comments

Comments
 (0)