Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add contract bindings #38

Merged
merged 5 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
266 changes: 266 additions & 0 deletions registry/Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion registry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ axum = "0.8.1"
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-native-tls", "postgres", "chrono"] }

# ethereum
alloy = { version = "0.9.1", features = ["consensus", "rpc-types", "reqwest"] }
alloy = { version = "0.9.1", features = ["full", "rpc-types", "reqwest"] }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need full? I think it's good practice to only pull in what you need

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, 7668af1

ethereum-consensus = { git = "https://github.com/ralexstokes/ethereum-consensus", rev = "8fbd8a5" } # Last release in 2022
beacon-api-client = { git = "https://github.com/ralexstokes/ethereum-consensus", rev = "8fbd8a5" } # Last release in 2022

Expand Down
2 changes: 2 additions & 0 deletions registry/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ use crate::primitives::{
/// API handler functions
mod handlers;

/// Actions to process.
pub(crate) mod actions;
use actions::{Action, ActionStream};

/// API specification and traits.
pub(crate) mod spec;
use spec::{
DiscoverySpec, ValidatorSpec, DISCOVERY_LOOKAHEAD_PATH, DISCOVERY_OPERATORS_PATH,
Expand Down
Loading
Loading