Skip to content

Commit

Permalink
[cleanup] move account/lib to account
Browse files Browse the repository at this point in the history
  • Loading branch information
jolestar committed Mar 24, 2021
1 parent fcef2c4 commit 211488c
Show file tree
Hide file tree
Showing 16 changed files with 53 additions and 56 deletions.
31 changes: 15 additions & 16 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ members = [
"network-rpc/core",
"network-rpc/api",
"account/api",
"account/lib",
"account",
"account/service",
"rpc/api",
"rpc/middleware",
Expand Down Expand Up @@ -149,7 +149,7 @@ default-members = [
"network-rpc/core",
"network-rpc/api",
"account/api",
"account/lib",
"account",
"account/service",
"rpc/api",
"rpc/middleware",
Expand Down
28 changes: 28 additions & 0 deletions account/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
name = "starcoin-account"
version = "1.0.0-alpha.1"
authors = ["Starcoin Core Dev <dev@starcoin.org>"]
license = "Apache-2.0"
publish = false
edition = "2018"

[dependencies]
anyhow = "1.0.39"
futures = "0.3.12"
async-trait = "0.1"
rand = "0.8.3"
parking_lot = "0.11"
serde = "1.0.125"
rand_core = { version = "0.6.2", default-features = false }
starcoin-account-api = {path = "./api"}
bcs-ext ={package= "bcs-ext", path = "../commons/bcs_ext" }
starcoin-types = { path = "../types"}
starcoin-config = { path = "../config"}
starcoin-crypto = { path = "../commons/crypto"}
starcoin-decrypt = {path = "../commons/decrypt"}
starcoin-storage = {path = "../storage"}
starcoin-logger = {path = "../commons/logger"}

[dev-dependencies]
hex= "0.4.3"
tempfile="3"
28 changes: 0 additions & 28 deletions account/lib/Cargo.toml

This file was deleted.

4 changes: 1 addition & 3 deletions account/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ bcs-ext = { package = "bcs-ext", path = "../../commons/bcs_ext" }
starcoin-config = { path = "../../config" }
starcoin-service-registry = { path = "../../commons/service-registry" }
starcoin-account-api = { path = "../api", features = ["mock"] }
starcoin-account-lib = { path = "../lib" }
starcoin-account = { path = "../" }
starcoin-crypto = { path = "../../commons/crypto" }
starcoin-chain-notify = { path = "../../chain/chain-notify" }


[dev-dependencies]
stest = { path = "../../commons/stest" }
starcoin-types = { path = "../../types" }
tempfile = "3"
tokio = { version = "0.2", features = ["full"] }

2 changes: 1 addition & 1 deletion account/service/src/account_events.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use anyhow::{Error, Result};
use starcoin_account_lib::account_storage::AccountStorage;
use starcoin_account::account_storage::AccountStorage;
use starcoin_chain_notify::message::ContractEventNotification;
use starcoin_logger::prelude::*;
use starcoin_service_registry::{ActorService, EventHandler, ServiceContext, ServiceFactory};
Expand Down
2 changes: 1 addition & 1 deletion account/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ mod service;

pub use account_events::AccountEventService;
pub use service::AccountService;
pub use starcoin_account_lib::account_storage::AccountStorage;
pub use starcoin_account::account_storage::AccountStorage;
2 changes: 1 addition & 1 deletion account/service/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: Apache-2.0

use anyhow::Result;
use starcoin_account::{account_storage::AccountStorage, AccountManager};
use starcoin_account_api::message::{AccountRequest, AccountResponse};
use starcoin_account_lib::{account_storage::AccountStorage, AccountManager};
use starcoin_config::NodeConfig;
use starcoin_crypto::ValidCryptoMaterial;
use starcoin_logger::prelude::*;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion cmd/generator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ starcoin-crypto = { path = "../../commons/crypto" }
starcoin-storage = { path = "../../storage" }
starcoin-genesis = { path = "../../genesis" }
starcoin-account-api = { path = "../../account/api" }
starcoin-account-lib = { path = "../../account/lib" }
starcoin-account = { path = "../../account" }
starcoin-chain = { path = "../../chain" }
starcoin-chain-mock = { path = "../../chain/mock" }

Expand Down
4 changes: 2 additions & 2 deletions cmd/generator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// SPDX-License-Identifier: Apache-2.0

use anyhow::{bail, Result};
use starcoin_account::account_storage::AccountStorage;
use starcoin_account::AccountManager;
use starcoin_account_api::AccountInfo;
use starcoin_account_lib::account_storage::AccountStorage;
use starcoin_account_lib::AccountManager;
use starcoin_config::{NodeConfig, StarcoinOpt};
use starcoin_genesis::Genesis;
use starcoin_storage::cache_storage::CacheStorage;
Expand Down
2 changes: 1 addition & 1 deletion genesis/tests/generated_files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn test_that_generated_file_are_up_to_date_in_git() {
assert_that_version_control_has_no_unstaged_changes();

assert!(Command::new("cargo")
.current_dir("../..")
.current_dir("../")
.arg("run")
.arg("-p")
.arg("starcoin-genesis")
Expand Down

0 comments on commit 211488c

Please sign in to comment.