Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update dependencies #295

Merged
merged 3 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 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"
tokio = { version = "1.39", features = ["full"] }
dydx-proto = "0.1.0"
thiserror = "2"
tokio = { version = "1.41", features = ["fs", "rt-multi-thread"] }
dydx-proto = "0.2.0"
22 changes: 11 additions & 11 deletions v4-client-rs/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,40 +18,40 @@ 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 = { version = "0.7", default-features = false, features = ["std"] }
ibc-proto = { version = "0.51", optional = true }
log.workspace = true
rand = "0.8"
reqwest = { version = "0.12", features = ["json"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_with = "3.9"
serde_with = "3.11"
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"
serial_test = "3.1.1"
metrics-exporter-tcp = "0.11.0"
serial_test = "3.2.0"
tracing = "0.1"
tracing-subscriber = "0.3"
2 changes: 2 additions & 0 deletions v4-client-rs/client/examples/faucet_endpoint.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
mod support;

#[cfg(feature = "faucet")]
use anyhow::Result;

#[cfg(feature = "faucet")]
Expand Down
1 change: 1 addition & 0 deletions v4-client-rs/client/examples/noble_transfer.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[cfg(feature = "noble")]
use anyhow::Result;

#[cfg(feature = "noble")]
Expand Down
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
4 changes: 3 additions & 1 deletion v4-client-rs/client/tests/env.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use anyhow::{anyhow as err, Error, Result};
#[cfg(any(feature = "faucet", feature = "noble"))]
use anyhow::anyhow as err;
use anyhow::{Error, Result};
use chrono::{TimeDelta, Utc};
#[cfg(feature = "faucet")]
use dydx::faucet::FaucetClient;
Expand Down