Skip to content

Commit

Permalink
refactor(dispatcher): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
GMKrieger committed Jul 31, 2023
1 parent f868fee commit 389d59c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 48 deletions.
50 changes: 9 additions & 41 deletions offchain/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions offchain/dispatcher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ contracts = { path = "../contracts" }
http-server = { path = "../http-server" }
rollups-events = { path = "../rollups-events" }
types = { path = "../types" }
state-fold = { path = "../state-fold" }
state-fold-types = { path = "../state-fold-types", features = ["ethers"] }

async-trait.workspace = true
axum.workspace = true
Expand All @@ -28,11 +30,9 @@ rusoto_sts.workspace = true
serde.workspace = true
serde_json.workspace = true
snafu.workspace = true
state-client-lib.workspace = true
state-fold-types = { workspace = true, features = ["ethers"] }
tokio = { workspace = true, features = ["sync", "macros", "rt-multi-thread"] }
tokio-stream.workspace = true
tonic = "0.8" # TODO: the state-fold still uses this version
tonic.workspace = true
tracing-subscriber = { workspace = true, features = ["env-filter"] }
tracing.workspace = true
url.workspace = true
Expand Down
4 changes: 3 additions & 1 deletion offchain/dispatcher/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ use eth_tx_manager::{
};
use http_server::HttpServerConfig;
use snafu::{ResultExt, Snafu};
use state_client_lib::config::{Error as SCError, SCConfig, SCEnvCLIConfig};
use state_fold::state_client_lib::config::{
Error as SCError, SCConfig, SCEnvCLIConfig,
};
use std::{fs::File, io::BufReader, path::PathBuf};

use rollups_events::{BrokerCLIConfig, BrokerConfig};
Expand Down
2 changes: 1 addition & 1 deletion offchain/dispatcher/src/dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0 (see LICENSE)

use rollups_events::{Address, DAppMetadata};
use state_client_lib::StateServer;
use state_fold::state_client_lib::StateServer;
use state_fold_types::{Block, BlockStreamItem};
use tokio_stream::StreamExt;
use tracing::{error, info, instrument, trace, warn};
Expand Down
2 changes: 1 addition & 1 deletion offchain/dispatcher/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use axum::http::uri::InvalidUri;
use snafu::Snafu;
use state_client_lib::error::StateServerError;
use state_fold::state_client_lib::error::StateServerError;
use std::net::AddrParseError;
use tonic::transport::Error as TonicError;

Expand Down
2 changes: 1 addition & 1 deletion offchain/dispatcher/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use rollups_events::DAppMetadata;
use snafu::ResultExt;
use state_client_lib::{
use state_fold::state_client_lib::{
config::SCConfig, error::StateServerError, BlockServer,
GrpcStateFoldClient, StateServer,
};
Expand Down

0 comments on commit 389d59c

Please sign in to comment.