Skip to content

Commit

Permalink
feat(ser): trait abstractions
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Oct 16, 2024
1 parent 2aeb013 commit 3df189b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ op-alloy-protocol = { git = "https://github.com/alloy-rs/op-alloy", branch = "ma
op-alloy-genesis = { git = "https://github.com/alloy-rs/op-alloy", branch = "main" }
op-alloy-rpc-types = { git = "https://github.com/alloy-rs/op-alloy", branch = "main" }
op-alloy-rpc-types-engine = { git = "https://github.com/alloy-rs/op-alloy", branch = "main" }
op-alloy-rpc-jsonrpsee = { git = "https://github.com/alloy-rs/op-alloy", branch = "main" }

[workspace.dependencies]
# Workspace
Expand Down Expand Up @@ -68,6 +69,7 @@ op-alloy-protocol = { version = "0.4.0", default-features = false }
op-alloy-genesis = { version = "0.4.0", default-features = false }
op-alloy-rpc-types = { version = "0.4.0", default-features = false }
op-alloy-rpc-types-engine = { version = "0.4.0", default-features = false }
op-alloy-rpc-jsonrpsee = { version = "0.4.0", features = ["client"] }

# Tokio
tokio = { version = "1.21", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions crates/ser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ alloy-rlp = { workspace = true, features = ["derive"] }
op-alloy-rpc-types.workspace = true
op-alloy-protocol.workspace = true
op-alloy-genesis.workspace = true
op-alloy-rpc-jsonrpsee.workspace = true

# Misc
rand.workspace = true
Expand Down
6 changes: 6 additions & 0 deletions crates/ser/src/traits/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@

pub mod compressor;
pub use compressor::Compressor;

// Re-export op-alloy-rpc-jsonrpsee crates
pub use op_alloy_rpc_jsonrpsee::traits::{
OpAdminApiClient, OpAdminApiServer, OpP2PApiClient, OpP2PApiServer, RollupNodeClient,
RollupNodeServer,
};

0 comments on commit 3df189b

Please sign in to comment.