This commit is contained in:
Bryan Stitt 2022-05-04 06:06:34 +00:00
parent 43735163c9
commit 70ffa51c2f
3 changed files with 4 additions and 3 deletions

4
Cargo.lock generated
View File

@ -2878,9 +2878,9 @@ dependencies = [
[[package]]
name = "serde_json"
version = "1.0.80"
version = "1.0.81"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f972498cf015f7c0746cac89ebe1d6ef10c293b94175a243a2d9442c163d9944"
checksum = "9b7ce2b32a1aed03c558dc61a5cd328f15aff2dbc17daad8fb8af04d2100e15c"
dependencies = [
"itoa",
"ryu",

View File

@ -21,7 +21,7 @@ regex = "1.5.5"
reqwest = { version = "0.11.10", features = ["json", "rustls"] }
rustc-hash = "1.1.0"
serde = { version = "1.0.137", features = [] }
serde_json = { version = "1.0.80", default-features = false, features = ["alloc"] }
serde_json = { version = "1.0.81", default-features = false, features = ["alloc"] }
toml = "0.5.9"
tracing = "0.1.34"
tracing-subscriber = "0.3.11"

View File

@ -9,6 +9,7 @@ use crate::Web3ProxyApp;
#[derive(Deserialize)]
pub struct RootConfig {
pub config: Web3ProxyConfig,
// BTreeMap so that iterating keeps the same order
pub balanced_rpc_tiers: BTreeMap<String, HashMap<String, Web3ConnectionConfig>>,
pub private_rpcs: HashMap<String, Web3ConnectionConfig>,
}