7afbaa807e
## Issue Addressed - Related to #1691 ## Proposed Changes Adds the following API endpoints: - `GET lighthouse/eth1/syncing`: status about how synced we are with Eth1. - `GET lighthouse/eth1/block_cache`: all locally cached eth1 blocks. - `GET lighthouse/eth1/deposit_cache`: all locally cached eth1 deposits. Additionally: - Moves some types from the `beacon_node/eth1` to the `common/eth2` crate, so they can be used in the API without duplication. - Allow `update_deposit_cache` and `update_block_cache` to take an optional head block number to avoid duplicate requests. ## Additional Info TBC
34 lines
1.1 KiB
TOML
34 lines
1.1 KiB
TOML
[package]
|
|
name = "eth2"
|
|
version = "0.1.0"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
|
edition = "2018"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
serde = { version = "1.0.116", features = ["derive"] }
|
|
serde_json = "1.0.58"
|
|
types = { path = "../../consensus/types" }
|
|
hex = "0.4.2"
|
|
reqwest = { version = "0.10.8", features = ["json"] }
|
|
eth2_libp2p = { path = "../../beacon_node/eth2_libp2p" }
|
|
proto_array = { path = "../../consensus/proto_array", optional = true }
|
|
serde_utils = { path = "../../consensus/serde_utils" }
|
|
zeroize = { version = "1.1.1", features = ["zeroize_derive"] }
|
|
eth2_keystore = { path = "../../crypto/eth2_keystore" }
|
|
libsecp256k1 = "0.3.5"
|
|
ring = "0.16.12"
|
|
bytes = "0.5.6"
|
|
account_utils = { path = "../../common/account_utils" }
|
|
eth2_ssz = "0.1.2"
|
|
eth2_ssz_derive = "0.1.0"
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
psutil = { version = "3.2.0", optional = true }
|
|
procinfo = { version = "0.4.2", optional = true }
|
|
|
|
[features]
|
|
default = ["lighthouse"]
|
|
lighthouse = ["proto_array", "psutil", "procinfo"]
|