From 1dc8366ea8bc944a5287e022b4480c7177117e1b Mon Sep 17 00:00:00 2001 From: supernovahs <91280922+supernovahs@users.noreply.github.com> Date: Fri, 10 Jan 2025 02:50:00 +0530 Subject: [PATCH] add common crate to eigensdk crate (#213) Co-authored-by: supernovahs --- Cargo.lock | 1 + README.md | 1 + crates/eigensdk/Cargo.toml | 4 ++++ crates/eigensdk/README.md | 1 + crates/eigensdk/src/lib.rs | 6 ++++++ 5 files changed, 13 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index eed78ba2..3c8ef4c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2863,6 +2863,7 @@ dependencies = [ "eigen-client-elcontracts", "eigen-client-eth", "eigen-client-fireblocks", + "eigen-common", "eigen-crypto-bls", "eigen-crypto-bn254", "eigen-logging", diff --git a/README.md b/README.md index 2fb8e580..7cd81211 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ cargo add eigensdk --features full - [eigen-cli](https://github.com/Layr-Labs/eigensdk-rs/tree/main/crates/eigen-cli) - ECDSA, BLS keystore cli - [eigen-nodeapi](https://github.com/Layr-Labs/eigensdk-rs/tree/main/crates/nodeapi) - NodeApi implementation for EigenLayer. - [eigen-logging](https://github.com/Layr-Labs/eigensdk-rs/tree/main/crates/logging) - Logging utilities +- [eigen-common](https://github.com/Layr-Labs/eigensdk-rs/tree/main/crates/common) - Common utilities like provider and signer getters. ## Examples diff --git a/crates/eigensdk/Cargo.toml b/crates/eigensdk/Cargo.toml index 71bf1bbe..2b7726ea 100644 --- a/crates/eigensdk/Cargo.toml +++ b/crates/eigensdk/Cargo.toml @@ -26,6 +26,7 @@ eigen-testing-utils = { workspace = true, optional = true } eigen-types = { workspace = true, optional = true } eigen-utils = { workspace = true, optional = true } eigen-nodeapi = { workspace = true, optional = true } +eigen-common = {workspace = true, optional = true} # Feature configurations @@ -87,3 +88,6 @@ signer = ["dep:eigen-signer"] # types types = ["dep:eigen-types"] + +#common utilities +common = ["dep:eigen-common"] diff --git a/crates/eigensdk/README.md b/crates/eigensdk/README.md index 2fb8e580..7cd81211 100644 --- a/crates/eigensdk/README.md +++ b/crates/eigensdk/README.md @@ -24,6 +24,7 @@ cargo add eigensdk --features full - [eigen-cli](https://github.com/Layr-Labs/eigensdk-rs/tree/main/crates/eigen-cli) - ECDSA, BLS keystore cli - [eigen-nodeapi](https://github.com/Layr-Labs/eigensdk-rs/tree/main/crates/nodeapi) - NodeApi implementation for EigenLayer. - [eigen-logging](https://github.com/Layr-Labs/eigensdk-rs/tree/main/crates/logging) - Logging utilities +- [eigen-common](https://github.com/Layr-Labs/eigensdk-rs/tree/main/crates/common) - Common utilities like provider and signer getters. ## Examples diff --git a/crates/eigensdk/src/lib.rs b/crates/eigensdk/src/lib.rs index f4691aaf..50514e75 100644 --- a/crates/eigensdk/src/lib.rs +++ b/crates/eigensdk/src/lib.rs @@ -85,3 +85,9 @@ pub use eigen_metrics_collectors_economic as metrics_collectors_economic; #[cfg(feature = "metrics-collectors-rpc-calls")] #[doc(inline)] pub use eigen_metrics_collectors_rpc_calls as metrics_collectors_rpc_calls; + +/* ------------------------------------ Common Utilities Re-exports -------------------------- */ + +#[doc(inline)] +#[cfg(feature = "common")] +pub use eigen_common as common;