328f11d564
* Implemented more REST API endpoints. - Added many of the endpoints, which return 501 - Not Implemented - Created helper function to return a not implemented error - Created a parse_pubkey function to get a PublicKey from a hex string - Created a HTTP handler for the validator endpoints - Started implementing validator/duties endpoint. * Fleshed out get validator duties. - Re-implemented the get validator duties function for the REST API - Added an 'as_hex_string' function to FakePublicKey, beacuse it was missing. * Fixed small caching/state bug. * Extended to array of API inputs. - Created function for getting arrays from GET parameters. - Extended get validator duties function to support array of validator duties. * Tidy API to be more consistent with recent decisions * Addressing Paul's comments. - Cleaning up function to get list of proposers. - Removing unnecessary serde annotations - Clarifying error messages - Only accept pubkeys if they are '0x' prefixed. * Fixed formatting with rustfmt.
34 lines
1019 B
TOML
34 lines
1019 B
TOML
[package]
|
|
name = "rest_api"
|
|
version = "0.1.0"
|
|
authors = ["Luke Anderson <luke@lukeanderson.com.au>"]
|
|
edition = "2018"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
[dependencies]
|
|
bls = { path = "../../eth2/utils/bls" }
|
|
beacon_chain = { path = "../beacon_chain" }
|
|
network = { path = "../network" }
|
|
eth2-libp2p = { path = "../eth2-libp2p" }
|
|
store = { path = "../store" }
|
|
version = { path = "../version" }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "^1.0"
|
|
slog = "^2.2.3"
|
|
slog-term = "^2.4.0"
|
|
slog-async = "^2.3.0"
|
|
state_processing = { path = "../../eth2/state_processing" }
|
|
types = { path = "../../eth2/types" }
|
|
clap = "2.32.0"
|
|
http = "^0.1.17"
|
|
prometheus = { version = "^0.6", features = ["process"] }
|
|
hyper = "0.12.32"
|
|
futures = "0.1"
|
|
exit-future = "0.1.3"
|
|
tokio = "0.1.17"
|
|
url = "2.0"
|
|
lazy_static = "1.3.0"
|
|
lighthouse_metrics = { path = "../../eth2/utils/lighthouse_metrics" }
|
|
slot_clock = { path = "../../eth2/utils/slot_clock" }
|
|
hex = "0.3.2"
|