Skip to content

Commit

Permalink
chore: Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
v0-e committed Nov 26, 2024
1 parent eea3761 commit 204214f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions v4-client-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
18 changes: 9 additions & 9 deletions v4-client-rs/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ noble = [
"dep:ibc-proto"
]
telemetry = [
"dep:metrics",
"dep:metrics",
]

[dependencies]
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"] }
Expand All @@ -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"
3 changes: 2 additions & 1 deletion v4-client-rs/client/src/noble/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub struct NobleClient {
impl NobleClient {
/// Connect to the node.
pub async fn connect(config: NobleConfig) -> Result<Self, Error> {
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)?
Expand All @@ -85,6 +85,7 @@ impl NobleClient {
pub async fn get_account_balances(&mut self, address: Address) -> Result<Vec<Coin>, Error> {
let req = QueryAllBalancesRequest {
address: address.to_string(),
resolve_denom: false,
pagination: None,
};
let balances = self
Expand Down
1 change: 1 addition & 0 deletions v4-client-rs/client/src/node/client/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ impl NodeClient {
pub async fn get_account_balances(&mut self, address: &Address) -> Result<Vec<Coin>, Error> {
let req = QueryAllBalancesRequest {
address: address.to_string(),
resolve_denom: false,
pagination: None,
};
let balances = self.bank.all_balances(req).await?.into_inner().balances;
Expand Down
2 changes: 1 addition & 1 deletion v4-client-rs/client/src/node/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ pub struct NodeClient {
impl NodeClient {
/// Connect to the node.
pub async fn connect(config: NodeConfig) -> Result<Self, Error> {
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)?
Expand Down

0 comments on commit 204214f

Please sign in to comment.