forked from paritytech/substrate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split out cli crate (paritytech#120)
* Split out cli crate * Rearrange the deps alphabetically * https * Add crates to workspace memembers * ChainX runtime should require unwinding too * . * Nits * Reorg assets-runtim-api crate Should be organized as follows: assets/ rpc/ runtime-api/ Cargo.toml Cargo.toml Cargo.toml
- Loading branch information
1 parent
460b850
commit dfc571b
Showing
23 changed files
with
163 additions
and
114 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[package] | ||
name = "chainx-cli" | ||
version = "2.0.0" | ||
authors = ["ChainX community <https://www.chainx.org>"] | ||
edition = "2018" | ||
|
||
[dependencies] | ||
futures = "0.3.4" | ||
jsonrpc-core = "14.0.3" | ||
log = "0.4.8" | ||
parking_lot = "0.10.0" | ||
structopt = "0.3.8" | ||
|
||
# Substrate client | ||
sc-basic-authorship = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sc-cli = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sc-client-api = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sc-consensus = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sc-consensus-aura = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sc-executor = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sc-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sc-network = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sc-rpc = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sc-service = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sc-transaction-pool = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
|
||
# Substrate primitives | ||
sp-core = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sp-consensus = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sp-consensus-aura = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sp-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sp-inherents = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sp-runtime = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
sp-transaction-pool = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } | ||
|
||
chainx-primitives = { path = "../primitives" } | ||
chainx-runtime = { path = "../runtime" } | ||
chainx-rpc = { path = "../rpc" } | ||
|
||
xrml-protocol = { path = "../xrml/protocol" } | ||
|
||
[build-dependencies] | ||
substrate-build-script-utils = { git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc3" } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//! ChainX CLI library. | ||
#![warn(missing_docs)] | ||
#![warn(unused_extern_crates)] | ||
|
||
mod chain_spec; | ||
#[macro_use] | ||
mod service; | ||
mod cli; | ||
mod command; | ||
|
||
pub use command::*; | ||
pub use sc_cli::Result; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
//! Substrate Node Template CLI library. | ||
#![warn(missing_docs)] | ||
//! ChainX CLI | ||
mod chain_spec; | ||
#[macro_use] | ||
mod service; | ||
mod cli; | ||
mod command; | ||
|
||
fn main() -> sc_cli::Result<()> { | ||
command::run() | ||
fn main() -> cli::Result<()> { | ||
cli::run() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.