feat(rpc-types): use alloy-trace-rpc-types crate (#5949)

This commit is contained in:
evalir
2024-01-04 15:13:46 -04:00
committed by GitHub
parent d02cc4b833
commit 9a25470ae2
4 changed files with 23 additions and 1 deletions

18
Cargo.lock generated
View File

@@ -216,10 +216,25 @@ dependencies = [
"syn 2.0.43",
]
[[package]]
name = "alloy-rpc-trace-types"
version = "0.1.0"
source = "git+https://github.com/alloy-rs/alloy#f5174888c523b70fa1a94fad24f3214048d3d462"
dependencies = [
"alloy-primitives",
"alloy-rlp",
"alloy-rpc-types",
"itertools 0.12.0",
"jsonrpsee-types",
"serde",
"serde_json",
"thiserror",
]
[[package]]
name = "alloy-rpc-types"
version = "0.1.0"
source = "git+https://github.com/alloy-rs/alloy#e64c1c2b9e4f80fe13ac4f65504a4c30fe786454"
source = "git+https://github.com/alloy-rs/alloy#f5174888c523b70fa1a94fad24f3214048d3d462"
dependencies = [
"alloy-primitives",
"alloy-rlp",
@@ -6581,6 +6596,7 @@ version = "0.1.0-alpha.13"
dependencies = [
"alloy-primitives",
"alloy-rlp",
"alloy-rpc-trace-types",
"alloy-rpc-types",
"arbitrary",
"bytes",

View File

@@ -161,6 +161,7 @@ alloy-dyn-abi = "0.5"
alloy-sol-types = "0.5"
alloy-rlp = "0.3"
alloy-rpc-types = { git = "https://github.com/alloy-rs/alloy", features = ["jsonrpsee-types"] }
alloy-rpc-trace-types = { git = "https://github.com/alloy-rs/alloy", features = ["jsonrpsee-types"] }
ethers-core = { version = "2.0", default-features = false }
ethers-providers = { version = "2.0", default-features = false }
ethers-signers = { version = "2.0", default-features = false }

View File

@@ -16,6 +16,7 @@ workspace = true
alloy-rlp = { workspace = true, features = ["arrayvec", "derive"] }
alloy-primitives = { workspace = true, features = ["rand", "rlp", "serde"] }
alloy-rpc-types.workspace = true
alloy-rpc-trace-types.workspace = true
ethereum_ssz_derive = { version = "0.5", optional = true }
ethereum_ssz = { version = "0.5", optional = true }

View File

@@ -22,6 +22,10 @@ pub mod serde_helpers;
// Ethereum specific rpc types coming from alloy.
pub use alloy_rpc_types::*;
pub mod trace {
//! RPC types for trace endpoints and inspectors.
pub use alloy_rpc_trace_types::*;
}
// Ethereum specific rpc types related to typed transaction requests and the engine API.
pub use eth::{
engine,