From 7b687f5b7c8720a9822282ce1a4b09f99e5a2ffa Mon Sep 17 00:00:00 2001 From: v0-e Date: Fri, 22 Nov 2024 18:11:57 +0000 Subject: [PATCH] chore: Update dependencies --- v4-client-rs/Cargo.toml | 4 ++-- v4-client-rs/client/Cargo.toml | 18 +++++++++--------- v4-client-rs/client/src/noble/mod.rs | 3 ++- v4-client-rs/client/src/node/client/methods.rs | 1 + v4-client-rs/client/src/node/client/mod.rs | 2 +- 5 files changed, 15 insertions(+), 13 deletions(-) diff --git a/v4-client-rs/Cargo.toml b/v4-client-rs/Cargo.toml index a8754ef3..86d1f404 100644 --- a/v4-client-rs/Cargo.toml +++ b/v4-client-rs/Cargo.toml @@ -15,6 +15,6 @@ async-trait = "0.1" bigdecimal = { version = "0.4", features = ["serde"] } derive_more = { version = "1", features = ["full"] } log = "0.4" -thiserror = "1" +thiserror = "2" tokio = { version = "1.39", features = ["full"] } -dydx-proto = "0.1.0" +dydx-proto = "0.2.0" diff --git a/v4-client-rs/client/Cargo.toml b/v4-client-rs/client/Cargo.toml index e62fc7c0..807bf415 100644 --- a/v4-client-rs/client/Cargo.toml +++ b/v4-client-rs/client/Cargo.toml @@ -18,7 +18,7 @@ noble = [ "dep:ibc-proto" ] telemetry = [ - "dep:metrics", + "dep:metrics", ] [dependencies] @@ -26,12 +26,12 @@ anyhow.workspace = true async-trait.workspace = true bigdecimal.workspace = true bip32 = { version = "0.5", default-features = false, features = ["bip39", "alloc", "secp256k1"] } -cosmrs = "0.16" +cosmrs = "0.21" chrono = { version = "0.4", features = ["serde"] } derive_more.workspace = true futures-util = "0.3" -governor = "0.6" -ibc-proto = { version = "0.46", optional = true } +governor = "0.7" +ibc-proto = { version = "0.51", optional = true } log.workspace = true rand = "0.8" reqwest = { version = "0.12", features = ["json"] } @@ -40,18 +40,18 @@ serde_json = "1" serde_with = "3.9" strum = { version = "0.26", features = ["derive"] } thiserror.workspace = true -tonic = { version = "0.11", features = ["tls", "tls-roots", "transport", "channel"] } +tonic = { version = "0.12", features = ["tls-native-roots"] } tokio.workspace = true -tokio-tungstenite = { version = "0.23", features = ["native-tls"] } +tokio-tungstenite = { version = "0.24", features = ["native-tls"] } toml = "0.8" -tower = "0.4" +tower = { version = "0.5", features = ["timeout"] } dydx-proto.workspace = true # Telemetry -metrics = { version = "0.23", optional = true } +metrics = { version = "0.24", optional = true } [dev-dependencies] -metrics-exporter-tcp = "0.10.0" +metrics-exporter-tcp = "0.11.0" serial_test = "3.1.1" tracing = "0.1" tracing-subscriber = "0.3" diff --git a/v4-client-rs/client/src/noble/mod.rs b/v4-client-rs/client/src/noble/mod.rs index 3bee14e5..67abe3d8 100644 --- a/v4-client-rs/client/src/noble/mod.rs +++ b/v4-client-rs/client/src/noble/mod.rs @@ -64,7 +64,7 @@ pub struct NobleClient { impl NobleClient { /// Connect to the node. pub async fn connect(config: NobleConfig) -> Result { - let tls = ClientTlsConfig::new(); + let tls = ClientTlsConfig::new().with_native_roots(); let endpoint = config.endpoint.clone(); let channel = Channel::from_shared(endpoint)? .tls_config(tls)? @@ -85,6 +85,7 @@ impl NobleClient { pub async fn get_account_balances(&mut self, address: Address) -> Result, Error> { let req = QueryAllBalancesRequest { address: address.to_string(), + resolve_denom: false, pagination: None, }; let balances = self diff --git a/v4-client-rs/client/src/node/client/methods.rs b/v4-client-rs/client/src/node/client/methods.rs index 04974d01..58c81fbf 100644 --- a/v4-client-rs/client/src/node/client/methods.rs +++ b/v4-client-rs/client/src/node/client/methods.rs @@ -44,6 +44,7 @@ impl NodeClient { pub async fn get_account_balances(&mut self, address: &Address) -> Result, Error> { let req = QueryAllBalancesRequest { address: address.to_string(), + resolve_denom: false, pagination: None, }; let balances = self.bank.all_balances(req).await?.into_inner().balances; diff --git a/v4-client-rs/client/src/node/client/mod.rs b/v4-client-rs/client/src/node/client/mod.rs index 58f1f90b..c6e74847 100644 --- a/v4-client-rs/client/src/node/client/mod.rs +++ b/v4-client-rs/client/src/node/client/mod.rs @@ -146,7 +146,7 @@ pub struct NodeClient { impl NodeClient { /// Connect to the node. pub async fn connect(config: NodeConfig) -> Result { - let tls = ClientTlsConfig::new(); + let tls = ClientTlsConfig::new().with_native_roots(); let endpoint = config.endpoint.clone(); let channel = Channel::from_shared(endpoint)? .tls_config(tls)?