Clean up crate names and locations (#4361)

* rename crate: sp-transaction-pool-api -> sp-transaction-pool

* move primitives/core/derive-debug -> primitives/derive-debug; primitives/core/storage -> primitives/storage

* rename crate sp-core-storage -> sp-storage

* rename and move: test/utils/transaction-factory -> client/transaction-factory

* move transaction-factory -> node/transaction-factory

* fix missing rename

* Move chain-spec-builder into bin/utils

* move subkey into bin/utils

* Update new subkey location

* Update docs to reflect new location for utils

* fixing import name
This commit is contained in:
Benjamin Kampmann
2019-12-11 15:33:00 +01:00
committed by GitHub
parent 58c1c7a10d
commit 7773daaf5b
48 changed files with 138 additions and 111 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ cargo-check-subkey:
except:
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
script:
- cd ./bin/subkey
- cd ./bin/utils/subkey
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --release
- sccache -s
@@ -300,7 +300,7 @@ build-linux-subkey:
variables:
- $DEPLOY_TAG
script:
- cd ./bin/subkey
- cd ./bin/utils/subkey
- BUILD_DUMMY_WASM_BINARY=1 time cargo build --release --verbose
- cd -
- sccache -s
+6 -1
View File
@@ -34,9 +34,14 @@ function rename() {
TO_RENAME=(
# OLD-CRATE-NAME NEW-CRATE-NAME
# post initial rename fixes
"sc-application-crypto sp-application-crypto"
"sp-transaction-pool-api sp-transaction-pool"
"sp-core-storage sp-storage"
"transaction-factory node-transaction-factory"
# PRIMITIVES
"substrate-application-crypto sp-application-crypto"
"sc-application-crypto sp-application-crypto"
"substrate-authority-discovery-primitives sp-authority-discovery"
"substrate-block-builder-runtime-api sp-block-builder"
"substrate-consensus-aura-primitives sp-consensus-aura"
+49 -49
View File
@@ -3012,6 +3012,7 @@ dependencies = [
"node-primitives 2.0.0",
"node-rpc 2.0.0",
"node-runtime 2.0.0",
"node-transaction-factory 0.0.1",
"pallet-authority-discovery 0.1.0",
"pallet-balances 2.0.0",
"pallet-contracts 2.0.0",
@@ -3051,12 +3052,11 @@ dependencies = [
"sp-keyring 2.0.0",
"sp-runtime 2.0.0",
"sp-timestamp 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"structopt 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-build-script-utils 2.0.0",
"tempfile 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)",
"transaction-factory 0.0.1",
"vergen 3.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
"wasm-bindgen 0.2.55 (registry+https://github.com/rust-lang/crates.io-index)",
"wasm-bindgen-futures 0.3.27 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3113,7 +3113,7 @@ dependencies = [
"pallet-transaction-payment-rpc 2.0.0",
"sc-client 2.0.0",
"sp-runtime 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"substrate-frame-rpc-system 2.0.0",
]
@@ -3183,7 +3183,7 @@ dependencies = [
"sp-session 2.0.0",
"sp-staking 2.0.0",
"sp-std 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"sp-version 2.0.0",
"substrate-wasm-builder-runner 1.0.4",
]
@@ -3215,7 +3215,7 @@ dependencies = [
"sp-inherents 2.0.0",
"sp-io 2.0.0",
"sp-runtime 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"substrate-build-script-utils 2.0.0",
"tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)",
"trie-root 0.15.2 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3250,7 +3250,7 @@ dependencies = [
"sp-runtime 2.0.0",
"sp-session 2.0.0",
"sp-std 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"sp-version 2.0.0",
"substrate-wasm-builder-runner 1.0.4",
]
@@ -3284,6 +3284,24 @@ dependencies = [
"wabt 0.9.2 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "node-transaction-factory"
version = "0.0.1"
dependencies = [
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"sc-cli 2.0.0",
"sc-client 2.0.0",
"sc-client-api 2.0.0",
"sc-service 2.0.0",
"sp-api 2.0.0",
"sp-block-builder 2.0.0",
"sp-blockchain 2.0.0",
"sp-consensus 2.0.0",
"sp-core 2.0.0",
"sp-runtime 2.0.0",
]
[[package]]
name = "nodrop"
version = "0.1.14"
@@ -4925,7 +4943,7 @@ dependencies = [
"sp-core 2.0.0",
"sp-inherents 2.0.0",
"sp-runtime 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"substrate-test-runtime-client 2.0.0",
"tokio-executor 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)",
]
@@ -5065,7 +5083,7 @@ dependencies = [
"sp-state-machine 2.0.0",
"sp-std 2.0.0",
"sp-test-primitives 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"sp-trie 2.0.0",
"sp-version 2.0.0",
]
@@ -5433,7 +5451,7 @@ dependencies = [
"sp-core 2.0.0",
"sp-offchain 2.0.0",
"sp-runtime 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"substrate-test-runtime-client 2.0.0",
"threadpool 1.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
"tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -5480,7 +5498,7 @@ dependencies = [
"sp-runtime 2.0.0",
"sp-session 2.0.0",
"sp-state-machine 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"sp-version 2.0.0",
"substrate-test-runtime-client 2.0.0",
"tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -5503,7 +5521,7 @@ dependencies = [
"serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)",
"sp-core 2.0.0",
"sp-rpc 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"sp-version 2.0.0",
]
@@ -5574,7 +5592,7 @@ dependencies = [
"sp-io 2.0.0",
"sp-runtime 2.0.0",
"sp-session 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"substrate-test-runtime-client 2.0.0",
"sysinfo 0.9.6 (registry+https://github.com/rust-lang/crates.io-index)",
"target_info 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -5599,7 +5617,7 @@ dependencies = [
"sp-consensus 2.0.0",
"sp-core 2.0.0",
"sp-runtime 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"tempfile 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)",
]
@@ -5666,7 +5684,7 @@ dependencies = [
"serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)",
"sp-core 2.0.0",
"sp-runtime 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"substrate-test-runtime 2.0.0",
]
@@ -5686,7 +5704,7 @@ dependencies = [
"sp-core 2.0.0",
"sp-keyring 2.0.0",
"sp-runtime 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"substrate-test-runtime-client 2.0.0",
]
@@ -6184,12 +6202,12 @@ dependencies = [
"serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)",
"sha2 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
"sp-core-storage 2.0.0",
"sp-debug-derive 2.0.0",
"sp-externalities 2.0.0",
"sp-runtime-interface 2.0.0",
"sp-serializer 2.0.0",
"sp-std 2.0.0",
"sp-storage 2.0.0",
"substrate-bip39 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"tiny-bip39 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)",
"tiny-keccak 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -6198,16 +6216,6 @@ dependencies = [
"zeroize 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "sp-core-storage"
version = "2.0.0"
dependencies = [
"impl-serde 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)",
"sp-debug-derive 2.0.0",
"sp-std 2.0.0",
]
[[package]]
name = "sp-debug-derive"
version = "2.0.0"
@@ -6222,8 +6230,8 @@ name = "sp-externalities"
version = "2.0.0"
dependencies = [
"environmental 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
"sp-core-storage 2.0.0",
"sp-std 2.0.0",
"sp-storage 2.0.0",
]
[[package]]
@@ -6456,6 +6464,16 @@ dependencies = [
name = "sp-std"
version = "2.0.0"
[[package]]
name = "sp-storage"
version = "2.0.0"
dependencies = [
"impl-serde 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)",
"sp-debug-derive 2.0.0",
"sp-std 2.0.0",
]
[[package]]
name = "sp-test-primitives"
version = "2.0.0"
@@ -6480,7 +6498,7 @@ dependencies = [
]
[[package]]
name = "sp-transaction-pool-api"
name = "sp-transaction-pool"
version = "2.0.0"
dependencies = [
"derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -6660,7 +6678,7 @@ dependencies = [
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"sc-rpc-api 2.0.0",
"serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)",
"sp-core-storage 2.0.0",
"sp-storage 2.0.0",
"tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)",
]
@@ -6682,7 +6700,7 @@ dependencies = [
"sp-blockchain 2.0.0",
"sp-core 2.0.0",
"sp-runtime 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"substrate-test-runtime-client 2.0.0",
]
@@ -6737,7 +6755,7 @@ dependencies = [
"sp-session 2.0.0",
"sp-state-machine 2.0.0",
"sp-std 2.0.0",
"sp-transaction-pool-api 2.0.0",
"sp-transaction-pool 2.0.0",
"sp-trie 2.0.0",
"sp-version 2.0.0",
"substrate-test-runtime-client 2.0.0",
@@ -7297,24 +7315,6 @@ name = "traitobject"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "transaction-factory"
version = "0.0.1"
dependencies = [
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"sc-cli 2.0.0",
"sc-client 2.0.0",
"sc-client-api 2.0.0",
"sc-service 2.0.0",
"sp-api 2.0.0",
"sp-block-builder 2.0.0",
"sp-blockchain 2.0.0",
"sp-consensus 2.0.0",
"sp-core 2.0.0",
"sp-runtime 2.0.0",
]
[[package]]
name = "trie-bench"
version = "0.17.0"
+5 -5
View File
@@ -9,7 +9,9 @@ members = [
"bin/node/rpc",
"bin/node/runtime",
"bin/node/testing",
"bin/subkey",
"bin/node/transaction-factory",
"bin/utils/subkey",
"bin/utils/chain-spec-builder",
"client",
"client/api",
"client/authority-discovery",
@@ -101,8 +103,8 @@ members = [
"primitives/consensus/common",
"primitives/consensus/pow",
"primitives/core",
"primitives/core/debug-derive",
"primitives/core/storage",
"primitives/debug-derive",
"primitives/storage",
"primitives/externalities",
"primitives/finality-tracker",
"primitives/finality-grandpa",
@@ -134,11 +136,9 @@ members = [
"primitives/transaction-pool",
"primitives/trie",
"primitives/wasm-interface",
"test/utils/chain-spec-builder",
"test/utils/client",
"test/utils/runtime",
"test/utils/runtime/client",
"test/utils/transaction-factory",
"utils/build-script-utils",
"utils/fork-tree",
"utils/frame/rpc/support",
+1 -1
View File
@@ -25,7 +25,7 @@ sc-executor = { path = "../../client/executor" }
sc-service = { path = "../../client/service" }
inherents = { package = "sp-inherents", path = "../../primitives/inherents" }
txpool = { package = "sc-transaction-pool", path = "../../client/transaction-pool" }
txpool-api = { package = "sp-transaction-pool-api", path = "../../primitives/transaction-pool" }
txpool-api = { package = "sp-transaction-pool", path = "../../primitives/transaction-pool" }
network = { package = "sc-network", path = "../../client/network" }
aura = { package = "sc-consensus-aura", path = "../../client/consensus/aura" }
aura-primitives = { package = "sp-consensus-aura", path = "../../primitives/consensus/aura" }
@@ -29,7 +29,7 @@ support = { package = "frame-support", path = "../../../frame/support", default-
system = { package = "frame-system", path = "../../../frame/system", default-features = false }
timestamp = { package = "pallet-timestamp", path = "../../../frame/timestamp", default-features = false }
transaction-payment = { package = "pallet-transaction-payment", path = "../../../frame/transaction-payment", default-features = false }
sp-transaction-pool = { package = "sp-transaction-pool-api", path = "../../../primitives/transaction-pool", default-features = false }
sp-transaction-pool = { package = "sp-transaction-pool", path = "../../../primitives/transaction-pool", default-features = false }
version = { package = "sp-version", path = "../../../primitives/version", default-features = false }
[build-dependencies]
+3 -3
View File
@@ -51,7 +51,7 @@ client-api = { package = "sc-client-api", path = "../../../client/api" }
client = { package = "sc-client", path = "../../../client/" }
chain-spec = { package = "sc-chain-spec", path = "../../../client/chain-spec" }
txpool = { package = "sc-transaction-pool", path = "../../../client/transaction-pool" }
txpool-api = { package = "sp-transaction-pool-api", path = "../../../primitives/transaction-pool" }
txpool-api = { package = "sp-transaction-pool", path = "../../../primitives/transaction-pool" }
network = { package = "sc-network", path = "../../../client/network" }
babe = { package = "sc-consensus-babe", path = "../../../client/consensus/babe" }
grandpa = { package = "sc-finality-grandpa", path = "../../../client/finality-grandpa" }
@@ -83,8 +83,8 @@ node-executor = { path = "../executor" }
# CLI-specific dependencies
tokio = { version = "0.1.22", optional = true }
sc-cli = { path = "../../../client/cli", optional = true }
transaction-factory = { path = "../../../test/utils/transaction-factory", optional = true }
ctrlc = { version = "3.1.3", features = ["termination"], optional = true }
node-transaction-factory = { path = "../transaction-factory", optional = true }
# WASM-specific dependencies
libp2p = { version = "0.13.0", default-features = false, optional = true }
@@ -126,7 +126,7 @@ browser = [
]
cli = [
"sc-cli",
"transaction-factory",
"node-transaction-factory",
"tokio",
"ctrlc",
"sc-service/rocksdb",
+3 -3
View File
@@ -24,7 +24,7 @@ use structopt::{StructOpt, clap::App};
use sc_cli::{display_role, parse_and_prepare, AugmentClap, GetLogFilter, ParseAndPrepare};
use crate::{service, ChainSpec, load_spec};
use crate::factory_impl::FactoryState;
use transaction_factory::RuntimeAdapter;
use node_transaction_factory::RuntimeAdapter;
/// Custom subcommands.
#[derive(Clone, Debug, StructOpt)]
@@ -70,7 +70,7 @@ pub struct FactoryCmd {
///
/// These three modes control manufacturing.
#[structopt(long="mode", default_value = "MasterToN")]
pub mode: transaction_factory::Mode,
pub mode: node_transaction_factory::Mode,
/// Number of transactions to generate. In mode `MasterNToNToM` this is
/// the number of transactions per round.
@@ -155,7 +155,7 @@ pub fn run<I, T, E>(args: I, exit: E, version: sc_cli::VersionInfo) -> error::Re
);
let service_builder = new_full_start!(config).0;
transaction_factory::factory::<FactoryState<_>, _, _, _, _, _>(
node_transaction_factory::factory::<FactoryState<_>, _, _, _, _, _>(
factory_state,
service_builder.client(),
service_builder.select_chain()
+2 -2
View File
@@ -32,8 +32,8 @@ use primitives::{sr25519, crypto::Pair};
use sp_runtime::{
generic::Era, traits::{Block as BlockT, Header as HeaderT, SignedExtension, Verify, IdentifyAccount}
};
use transaction_factory::RuntimeAdapter;
use transaction_factory::modes::Mode;
use node_transaction_factory::RuntimeAdapter;
use node_transaction_factory::modes::Mode;
use inherents::InherentData;
use sp_timestamp;
use sp_finality_tracker;
+1 -1
View File
@@ -13,4 +13,4 @@ sp-runtime = { path = "../../../primitives/runtime" }
pallet-contracts-rpc = { path = "../../../frame/contracts/rpc/" }
pallet-transaction-payment-rpc = { path = "../../../frame/transaction-payment/rpc/" }
substrate-frame-rpc-system = { path = "../../../utils/frame/rpc/system" }
txpool-api = { package = "sp-transaction-pool-api", path = "../../../primitives/transaction-pool" }
txpool-api = { package = "sp-transaction-pool", path = "../../../primitives/transaction-pool" }
+1 -1
View File
@@ -27,7 +27,7 @@ sp-runtime = { path = "../../../primitives/runtime", default-features = false }
sp-staking = { path = "../../../primitives/staking", default-features = false }
sp-keyring = { path = "../../../primitives/keyring", optional = true }
sp-session = { path = "../../../primitives/session", default-features = false }
sp-transaction-pool = { package = "sp-transaction-pool-api", path = "../../../primitives/transaction-pool", default-features = false }
sp-transaction-pool = { package = "sp-transaction-pool", path = "../../../primitives/transaction-pool", default-features = false }
version = { package = "sp-version", path = "../../../primitives/version", default-features = false }
# frame dependencies
@@ -0,0 +1,19 @@
[package]
name = "node-transaction-factory"
version = "0.0.1"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
block-builder-api = { package = "sp-block-builder", path = "../../../primitives/block-builder" }
cli = { package = "sc-cli", path = "../../../client/cli" }
client-api = { package = "sc-client-api", path = "../../../client/api" }
client = { package = "sc-client", path = "../../../client" }
codec = { package = "parity-scale-codec", version = "1.0.0", features = ["derive"] }
consensus_common = { package = "sp-consensus", path = "../../../primitives/consensus/common" }
log = "0.4.8"
primitives = { package = "sp-core", path = "../../../primitives/core" }
sp-api = { path = "../../../primitives/api" }
sp-runtime = { path = "../../../primitives/runtime" }
sc-service = { path = "../../../client/service" }
sp-blockchain = { path = "../../../primitives/blockchain" }
@@ -8,7 +8,7 @@ build = "build.rs"
[dependencies]
ansi_term = "0.12.1"
keystore = { package = "sc-keystore", path = "../../../client/keystore" }
node-cli = { path = "../../../bin/node/cli" }
node-cli = { path = "../../node/cli" }
primitives = { package = "sp-core", path = "../../../primitives/core" }
rand = "0.7.2"
structopt = "0.3.3"
@@ -5,10 +5,10 @@ authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
primitives = { package = "sp-core", version = "*", path = "../../primitives/core" }
node-runtime = { version = "*", path = "../node/runtime" }
node-primitives = { version = "*", path = "../node/primitives" }
sp-runtime = { version = "*", path = "../../primitives/runtime" }
primitives = { package = "sp-core", version = "*", path = "../../../primitives/core" }
node-runtime = { version = "*", path = "../../node/runtime" }
node-primitives = { version = "*", path = "../../node/primitives" }
sp-runtime = { version = "*", path = "../../../primitives/runtime" }
rand = "0.7.2"
clap = "2.33.0"
tiny-bip39 = "0.6.2"
@@ -17,9 +17,9 @@ substrate-bip39 = "0.3.1"
hex = "0.4.0"
hex-literal = "0.2.1"
codec = { package = "parity-scale-codec", version = "1.0.0" }
system = { package = "frame-system", path = "../../frame/system" }
balances = { package = "pallet-balances", path = "../../frame/balances" }
transaction-payment = { package = "pallet-transaction-payment", path = "../../frame/transaction-payment" }
system = { package = "frame-system", path = "../../../frame/system" }
balances = { package = "pallet-balances", path = "../../../frame/balances" }
transaction-payment = { package = "pallet-transaction-payment", path = "../../../frame/transaction-payment" }
[features]
bench = []
+1 -1
View File
@@ -28,7 +28,7 @@ sp-runtime = { path = "../../primitives/runtime", default-features = false }
state-machine = { package = "sp-state-machine", path = "../../primitives/state-machine" }
sc-telemetry = { path = "../telemetry" }
trie = { package = "sp-trie", path = "../../primitives/trie" }
txpool-api = { package = "sp-transaction-pool-api", path = "../../primitives/transaction-pool" }
txpool-api = { package = "sp-transaction-pool", path = "../../primitives/transaction-pool" }
[dev-dependencies]
test-primitives = { package = "sp-test-primitives", path = "../../primitives/test-primitives" }
+1 -1
View File
@@ -16,7 +16,7 @@ client-api = { package = "sc-client-api", path = "../api" }
consensus_common = { package = "sp-consensus", path = "../../primitives/consensus/common" }
inherents = { package = "sp-inherents", path = "../../primitives/inherents" }
sc-telemetry = { path = "../telemetry" }
txpool-api = { package = "sp-transaction-pool-api", path = "../../primitives/transaction-pool" }
txpool-api = { package = "sp-transaction-pool", path = "../../primitives/transaction-pool" }
block-builder = { package = "sc-block-builder", path = "../block-builder" }
tokio-executor = { version = "0.2.0-alpha.6", features = ["blocking"] }
+1 -1
View File
@@ -36,7 +36,7 @@ env_logger = "0.7.0"
test-client = { package = "substrate-test-runtime-client", path = "../../test/utils/runtime/client" }
tokio = "0.1.22"
txpool = { package = "sc-transaction-pool", path = "../../client/transaction-pool" }
txpool-api = { package = "sp-transaction-pool-api", path = "../../primitives/transaction-pool" }
txpool-api = { package = "sp-transaction-pool", path = "../../primitives/transaction-pool" }
[features]
default = []
+1 -1
View File
@@ -23,7 +23,7 @@ rpc-primitives = { package = "sp-rpc", path = "../../primitives/rpc" }
state_machine = { package = "sp-state-machine", path = "../../primitives/state-machine" }
sc-executor = { path = "../executor" }
sc-keystore = { path = "../keystore" }
txpool-api = { package = "sp-transaction-pool-api", path = "../../primitives/transaction-pool" }
txpool-api = { package = "sp-transaction-pool", path = "../../primitives/transaction-pool" }
sp-blockchain = { path = "../../primitives/blockchain" }
hash-db = { version = "0.15.2", default-features = false }
parking_lot = { version = "0.9.0" }
+1 -1
View File
@@ -18,5 +18,5 @@ primitives = { package = "sp-core", path = "../../../primitives/core" }
runtime_version = { package = "sp-version", path = "../../../primitives/version" }
serde = { version = "1.0.101", features = ["derive"] }
serde_json = "1.0.41"
txpool-api = { package = "sp-transaction-pool-api", path = "../../../primitives/transaction-pool" }
txpool-api = { package = "sp-transaction-pool", path = "../../../primitives/transaction-pool" }
rpc-primitives = { package = "sp-rpc", path = "../../../primitives/rpc" }
+1 -1
View File
@@ -45,7 +45,7 @@ client_db = { package = "sc-client-db", path = "../db" }
codec = { package = "parity-scale-codec", version = "1.0.0" }
sc-executor = { path = "../executor" }
txpool = { package = "sc-transaction-pool", path = "../transaction-pool" }
sp-transaction-pool = { package = "sp-transaction-pool-api", path = "../../primitives/transaction-pool" }
sp-transaction-pool = { package = "sp-transaction-pool", path = "../../primitives/transaction-pool" }
rpc-servers = { package = "sc-rpc-server", path = "../rpc-servers" }
rpc = { package = "sc-rpc", path = "../rpc" }
tel = { package = "sc-telemetry", path = "../telemetry" }
+1 -1
View File
@@ -18,4 +18,4 @@ consensus = { package = "sp-consensus", path = "../../../primitives/consensus/co
client = { package = "sc-client", path = "../../" }
sp-runtime = { path = "../../../primitives/runtime" }
primitives = { package = "sp-core", path = "../../../primitives/core" }
txpool-api = { package = "sp-transaction-pool-api", path = "../../../primitives/transaction-pool" }
txpool-api = { package = "sp-transaction-pool", path = "../../../primitives/transaction-pool" }
+1 -1
View File
@@ -14,7 +14,7 @@ primitives = { package = "sp-core", path = "../../primitives/core" }
sp-api = { path = "../../primitives/api" }
sp-runtime = { path = "../../primitives/runtime" }
txpool = { package = "sc-transaction-graph", path = "./graph" }
txpool-api = { package = "sp-transaction-pool-api", path = "../../primitives/transaction-pool" }
txpool-api = { package = "sp-transaction-pool", path = "../../primitives/transaction-pool" }
client-api = { package = "sc-client-api", path = "../api" }
sp-blockchain = { path = "../../primitives/blockchain" }
@@ -12,7 +12,7 @@ parking_lot = "0.9.0"
serde = { version = "1.0.101", features = ["derive"] }
primitives = { package = "sp-core", path = "../../../primitives/core" }
sp-runtime = { path = "../../../primitives/runtime" }
txpool-api = { package = "sp-transaction-pool-api", path = "../../../primitives/transaction-pool" }
txpool-api = { package = "sp-transaction-pool", path = "../../../primitives/transaction-pool" }
[dev-dependencies]
assert_matches = "1.3.0"
+6 -3
View File
@@ -87,11 +87,14 @@ The default (testing) application pulling together our recommended setup of subs
We also provide a template to get you started building your own node.
==== Subkey
==== Utils
* _found in_: `/bin/subkey`
* _found in_: `/bin/utils`
Subkey is a client library to generate keys and sign transactions to send to a substrate node.
- **subkey**
Subkey is a client library to generate keys and sign transactions to send to a substrate node.
- **chain-spec-builder**
The chain spec builder builds a chain specification that includes a Substrate runtime compiled as WASM. To ensure proper functioning of the included runtime compile (or run) the chain spec builder binary in `--release` mode.
== Internal Dependency Tree
+1 -1
View File
@@ -10,7 +10,7 @@ integer-sqrt = "0.1.2"
num-traits = { version = "0.2.8", default-features = false }
sp-std = { path = "../std", default-features = false }
serde = { version = "1.0.101", optional = true, features = ["derive"] }
sp-debug-derive = { path = "../../primitives/core/debug-derive", default-features = false }
sp-debug-derive = { path = "../../primitives/debug-derive", default-features = false }
[dev-dependencies]
primitive-types = "0.6.0"
+2 -2
View File
@@ -25,9 +25,9 @@ num-traits = { version = "0.2.8", default-features = false }
zeroize = { version = "1.0.0", default-features = false }
lazy_static = { version = "1.4.0", default-features = false, optional = true }
parking_lot = { version = "0.9.0", optional = true }
sp-debug-derive = { version = "2.0.0", path = "./debug-derive" }
sp-debug-derive = { version = "2.0.0", path = "../debug-derive" }
externalities = { package = "sp-externalities", path = "../externalities", optional = true }
primitives-storage = { package = "sp-core-storage", path = "storage", default-features = false }
primitives-storage = { package = "sp-storage", path = "../storage", default-features = false }
# full crypto
ed25519-dalek = { version = "1.0.0-pre.3", default-features = false, features = ["u64_backend", "alloc"], optional = true }
@@ -6,6 +6,6 @@ authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
primitives-storage = { package = "sp-core-storage", path = "../core/storage" }
primitives-storage = { package = "sp-storage", path = "../storage" }
sp-std = { path = "../std" }
environmental = { version = "1.0.2" }
@@ -1,12 +1,12 @@
[package]
name = "sp-core-storage"
name = "sp-storage"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
description = "Storage related primitives"
[dependencies]
sp-std = { path = "../../std", default-features = false }
sp-std = { path = "../std", default-features = false }
serde = { version = "1.0.101", optional = true, features = ["derive"] }
impl-serde = { version = "0.2.3", optional = true }
sp-debug-derive = { version = "2.0.0", path = "../debug-derive" }
@@ -1,5 +1,5 @@
[package]
name = "sp-transaction-pool-api"
name = "sp-transaction-pool"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
+1 -1
View File
@@ -34,7 +34,7 @@ frame-system-rpc-runtime-api = { path = "../../../frame/system/rpc/runtime-api",
pallet-timestamp = { path = "../../../frame/timestamp", default-features = false }
sc-client = { path = "../../../client", optional = true }
sp-trie = { path = "../../../primitives/trie", default-features = false }
sp-transaction-pool = { package = "sp-transaction-pool-api", path = "../../../primitives/transaction-pool", default-features = false }
sp-transaction-pool = { package = "sp-transaction-pool", path = "../../../primitives/transaction-pool", default-features = false }
trie-db = { version = "0.16.0", default-features = false }
[dev-dependencies]
@@ -1,19 +1,19 @@
[package]
name = "transaction-factory"
name = "sc-transaction-factory"
version = "0.0.1"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
block-builder-api = { package = "sp-block-builder", path = "../../../primitives/block-builder" }
cli = { package = "sc-cli", path = "../../../client/cli" }
client-api = { package = "sc-client-api", path = "../../../client/api" }
client = { package = "sc-client", path = "../../../client" }
block-builder-api = { package = "sp-block-builder", path = "../../primitives/block-builder" }
cli = { package = "sc-cli", path = "../cli" }
client-api = { package = "sc-client-api", path = "../api" }
client = { package = "sc-client", path = "../" }
codec = { package = "parity-scale-codec", version = "1.0.0", features = ["derive"] }
consensus_common = { package = "sp-consensus", path = "../../../primitives/consensus/common" }
consensus_common = { package = "sp-consensus", path = "../../primitives/consensus/common" }
log = "0.4.8"
primitives = { package = "sp-core", path = "../../../primitives/core" }
sp-api = { path = "../../../primitives/api" }
sp-runtime = { path = "../../../primitives/runtime" }
sc-service = { path = "../../../client/service" }
sp-blockchain = { path = "../../../primitives/blockchain" }
primitives = { package = "sp-core", path = "../../primitives/core" }
sp-api = { path = "../../primitives/api" }
sp-runtime = { path = "../../primitives/runtime" }
sc-service = { path = "../service" }
sp-blockchain = { path = "../../primitives/blockchain" }
+1 -1
View File
@@ -11,7 +11,7 @@ jsonrpc-core = "14"
parity-scale-codec = "1"
serde = "1"
frame-support = { path = "../../../../frame/support" }
sp-core-storage = { path = "../../../../primitives/core/storage" }
sp-storage = { path = "../../../../primitives/storage" }
sc-rpc-api = { path = "../../../../client/rpc/api" }
[dev-dependencies]
+1 -1
View File
@@ -27,7 +27,7 @@ use serde::{de::DeserializeOwned, Serialize};
use frame_support::storage::generator::{
StorageDoubleMap, StorageLinkedMap, StorageMap, StorageValue
};
use sp_core_storage::{StorageData, StorageKey};
use sp_storage::{StorageData, StorageKey};
use sc_rpc_api::state::StateClient;
/// A typed query on chain state usable from an RPC client.
+1 -1
View File
@@ -17,7 +17,7 @@ sp-runtime = { path = "../../../../primitives/runtime" }
frame-system-rpc-runtime-api = { path = "../../../../frame/system/rpc/runtime-api" }
sp-core = { path = "../../../../primitives/core" }
sp-blockchain = { path = "../../../../primitives/blockchain" }
txpool-api = { package = "sp-transaction-pool-api", path = "../../../../primitives/transaction-pool" }
txpool-api = { package = "sp-transaction-pool", path = "../../../../primitives/transaction-pool" }
[dev-dependencies]
test-client = { package = "substrate-test-runtime-client", path = "../../../../test/utils/runtime/client" }