diff --git a/Cargo.toml b/Cargo.toml index d6dcb3b81c..03a4a39342 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,9 @@ [workspace] resolver = "2" members = [ + "crates/*", "node-template-spartan/node", "node-template-spartan/runtime", - "crates/*", "substrate/*", ] diff --git a/crates/pallet-feeds/Cargo.toml b/crates/pallet-feeds/Cargo.toml index 536bcd032c..3755ac170d 100644 --- a/crates/pallet-feeds/Cargo.toml +++ b/crates/pallet-feeds/Cargo.toml @@ -1,39 +1,40 @@ [package] +name = "pallet-feeds" +version = "0.1.0" authors = ["Serge Kovbasiuk "] -description = "Subspace node pallet for interacting with storage" edition = "2018" -homepage = "https://subspace.network" license = "Apache-2.0" -name = "pallet-feeds" -readme = "README.md" +homepage = "https://subspace.network" repository = "https://github.com/subspace/subspace" -version = "0.1.0" +description = "Subspace node pallet for interacting with storage" +readme = "README.md" [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] -codec = {package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"]} -frame-support = {version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05"} -frame-system = {version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05"} -log = {version = "0.4.14", default-features = false} -scale-info = {version = "1.0", default-features = false, features = ["derive"]} -sp-core = {version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05"} -sp-std = {version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05"} +codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } +frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +log = { version = "0.4.14", default-features = false } +scale-info = { version = "1.0", default-features = false, features = ["derive"] } +sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } [dev-dependencies] -serde = {version = "1.0.127"} -sp-io = {version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05"} -sp-runtime = {version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05"} +serde = "1.0.127" +sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } [features] default = ["std"] std = [ "codec/std", - "scale-info/std", - "sp-std/std", "frame-support/std", "frame-system/std", "log/std", + "scale-info/std", + "sp-core/std", + "sp-std/std", ] try-runtime = ["frame-support/try-runtime"] diff --git a/crates/pallet-offences-poc/Cargo.toml b/crates/pallet-offences-poc/Cargo.toml index 57e81b5d2c..f679a2fd42 100644 --- a/crates/pallet-offences-poc/Cargo.toml +++ b/crates/pallet-offences-poc/Cargo.toml @@ -14,29 +14,29 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } -scale-info = { version = "1.0", default-features = false, features = ["derive"] } -sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sp-consensus-poc = { version = "0.1.0", default-features = false, path = "../sp-consensus-poc" } frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } log = { version = "0.4.14", default-features = false } +scale-info = { version = "1.0", default-features = false, features = ["derive"] } +sp-consensus-poc = { version = "0.1.0", default-features = false, path = "../sp-consensus-poc" } +sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } [dev-dependencies] sp-io = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -schnorrkel = { version = "0.10.1" } +schnorrkel = "0.10.1" [features] default = ["std"] std = [ "codec/std", - "scale-info/std", - "sp-std/std", - "sp-runtime/std", - "sp-consensus-poc/std", "frame-support/std", "frame-system/std", "log/std", + "scale-info/std", + "sp-consensus-poc/std", + "sp-runtime/std", + "sp-std/std", ] try-runtime = ["frame-support/try-runtime"] diff --git a/crates/pallet-spartan/Cargo.toml b/crates/pallet-spartan/Cargo.toml index 10a0fda14a..93e2413622 100644 --- a/crates/pallet-spartan/Cargo.toml +++ b/crates/pallet-spartan/Cargo.toml @@ -14,44 +14,44 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } -scale-info = { version = "1.0", default-features = false, features = ["derive"] } frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +log = { version = "0.4.14", default-features = false } +num-traits = { version = "0.2.14", default-features = false } pallet-timestamp = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +scale-info = { version = "1.0", default-features = false, features = ["derive"] } sp-consensus-poc = { version = "0.1.0", default-features = false, path = "../sp-consensus-poc" } sp-consensus-slots = { version = "0.10.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-consensus-spartan = { version = "0.1.0", default-features = false, path = "../sp-consensus-spartan" } sp-io = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -log = { version = "0.4.14", default-features = false } -num-traits = { version = "0.2.14", default-features = false } subspace-core-primitives = { version = "0.1.0", default-features = false, path = "../subspace-core-primitives" } [dev-dependencies] +ring = "0.16" pallet-balances = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } pallet-offences-poc = { version = "0.1.0", path = "../pallet-offences-poc" } +schnorrkel = "0.9.1" sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -schnorrkel = { version = "0.9.1" } -ring = "0.16" subspace-codec = { version = "0.1.0", path = "../subspace-codec" } [features] default = ["std"] std = [ "codec/std", - "scale-info/std", "frame-support/std", "frame-system/std", + "log/std", + "num-traits/std", "pallet-timestamp/std", + "scale-info/std", "sp-consensus-poc/std", "sp-consensus-slots/std", "sp-consensus-spartan/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "log/std", - "num-traits/std", "subspace-core-primitives/std", ] try-runtime = ["frame-support/try-runtime"] diff --git a/crates/sc-consensus-poc-rpc/Cargo.toml b/crates/sc-consensus-poc-rpc/Cargo.toml index 6f339a288a..0651a7bba2 100644 --- a/crates/sc-consensus-poc-rpc/Cargo.toml +++ b/crates/sc-consensus-poc-rpc/Cargo.toml @@ -14,23 +14,21 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] async-oneshot = "0.5.0" -sc-consensus-poc = { version = "0.1.0", path = "../sc-consensus-poc" } -sc-rpc-api = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +futures = "0.3.17" +futures-timer = "3.0.2" jsonrpc-core = "18.0.0" jsonrpc-core-client = "18.0.0" jsonrpc-derive = "18.0.0" jsonrpc-pubsub = "18.0.0" -sp-consensus-poc = { version = "0.1.0", path = "../sp-consensus-poc" } -sp-consensus-slots = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +log = "0.4.14" +parking_lot = "0.11.1" +sc-consensus-poc = { version = "0.1.0", path = "../sc-consensus-poc" } +sc-rpc-api = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } serde = { version = "1.0.127", features = ["derive"] } -futures = "0.3.17" -futures-timer = "3.0.2" sp-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-consensus-poc = { version = "0.1.0", path = "../sp-consensus-poc" } +sp-consensus-slots = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-blockchain = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -log = "0.4.14" -parking_lot = "0.11.1" -subspace-core-primitives = { version = "0.1.0", default-features = false, path = "../subspace-core-primitives" } - -[dev-dependencies] +subspace-core-primitives = { version = "0.1.0", path = "../subspace-core-primitives" } diff --git a/crates/sc-consensus-poc/Cargo.toml b/crates/sc-consensus-poc/Cargo.toml index 249171c087..eb0ccb46b8 100644 --- a/crates/sc-consensus-poc/Cargo.toml +++ b/crates/sc-consensus-poc/Cargo.toml @@ -14,48 +14,48 @@ readme = "README.md" targets = ["x86_64-unknown-linux-gnu"] [dependencies] +async-trait = "0.1.51" codec = { package = "parity-scale-codec", version = "2.0.0", features = ["derive"] } -sp-consensus-poc = { version = "0.1.0", path = "../sp-consensus-poc" } +derive_more = "0.99.16" +fork-tree = { version = "3.0.0", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +futures = "0.3.16" +log = "0.4.14" +lru = { version = "0.6.6", default-features = false } +parking_lot = "0.11.1" +prometheus-endpoint = { package = "substrate-prometheus-endpoint", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05", version = "0.9.0" } +rand = "0.8.4" +ring = "0.16" +schnorrkel = "0.9.1" sc-consensus = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -serde = { version = "1.0.127", features = ["derive"] } -sp-version = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sp-io = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sp-inherents = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sc-consensus-slots = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sc-telemetry = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sc-client-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sc-consensus-epochs = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sc-utils = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +serde = { version = "1.0.127", features = ["derive"] } sp-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sp-block-builder = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-blockchain = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-block-builder = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-consensus = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-consensus-poc = { version = "0.1.0", path = "../sp-consensus-poc" } sp-consensus-slots = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-consensus-spartan = { version = "0.1.0", path = "../sp-consensus-spartan" } -sc-consensus-slots = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-inherents = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-io = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -fork-tree = { version = "3.0.0", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -prometheus-endpoint = { package = "substrate-prometheus-endpoint", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05", version = "0.9.0"} -futures = "0.3.16" -parking_lot = "0.11.1" -log = "0.4.14" -schnorrkel = { version = "0.9.1" } -rand = "0.8.4" -derive_more = "0.99.16" -async-trait = "0.1.51" -lru = { version = "0.6.6", default-features = false } -ring = "0.16" +sp-version = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } subspace-archiving = { version = "0.1.0", path = "../subspace-archiving" } subspace-codec = { version = "0.1.0", path = "../subspace-codec" } subspace-core-primitives = { version = "0.1.0", path = "../subspace-core-primitives" } [dev-dependencies] +sc-block-builder = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sc-cli = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sc-service = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sc-network = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-timestamp = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-tracing = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sc-network = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sc-network-test = { version = "0.8.0", path = "../../substrate/sc-network-test" } substrate-test-runtime = { version = "2.0.0", path = "../../substrate/substrate-test-runtime" } substrate-test-runtime-client = { version = "2.0.0", path = "../../substrate/substrate-test-runtime-client" } -sc-block-builder = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } diff --git a/crates/sp-consensus-poc/Cargo.toml b/crates/sp-consensus-poc/Cargo.toml index bca18003ad..4db663d9ac 100644 --- a/crates/sp-consensus-poc/Cargo.toml +++ b/crates/sp-consensus-poc/Cargo.toml @@ -13,38 +13,38 @@ readme = "README.md" targets = ["x86_64-unknown-linux-gnu"] [dependencies] -sp-application-crypto = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +async-trait = { version = "0.1.51", optional = true } codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false } scale-info = { version = "1.0", default-features = false, features = ["derive"] } -sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +serde = { version = "1.0.127", features = ["derive"], optional = true } sp-api = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-application-crypto = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-consensus = { version = "0.10.0-dev", optional = true, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-consensus-slots = { version = "0.10.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-consensus-spartan = { version = "0.1.0", path = "../sp-consensus-spartan", default-features = false } sp-core = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-inherents = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-runtime = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sp-timestamp = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05", optional = true } -serde = { version = "1.0.127", features = ["derive"], optional = true } -async-trait = { version = "0.1.51", optional = true } -subspace-core-primitives = { version = "0.1.0", default-features = false, path = "../subspace-core-primitives" } +sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-timestamp = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05", default-features = false } +subspace-core-primitives = { version = "0.1.0", path = "../subspace-core-primitives", default-features = false } [features] default = ["std"] std = [ - "sp-application-crypto/std", + "async-trait", "codec/std", "scale-info/std", - "sp-std/std", + "serde", "sp-api/std", + "sp-application-crypto/std", "sp-consensus", "sp-consensus-slots/std", "sp-consensus-spartan/std", "sp-core/std", "sp-inherents/std", "sp-runtime/std", - "serde", - "sp-timestamp", - "async-trait", + "sp-std/std", + "sp-timestamp/std", "subspace-core-primitives/std", ] diff --git a/crates/sp-consensus-spartan/Cargo.toml b/crates/sp-consensus-spartan/Cargo.toml index 549c4fc7bc..d824df31d2 100644 --- a/crates/sp-consensus-spartan/Cargo.toml +++ b/crates/sp-consensus-spartan/Cargo.toml @@ -14,11 +14,11 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] ring = { version = "0.16.20", optional = true } -subspace-core-primitives = { version = "0.1.0", path = "../subspace-core-primitives", optional = true} +subspace-core-primitives = { version = "0.1.0", path = "../subspace-core-primitives", default-features = false } [features] default = ["std"] std = [ "ring/std", - "subspace-core-primitives" + "subspace-core-primitives/std" ] diff --git a/crates/spartan-farmer/Cargo.toml b/crates/spartan-farmer/Cargo.toml index 8dc3c453d0..f5d8a6c544 100644 --- a/crates/spartan-farmer/Cargo.toml +++ b/crates/spartan-farmer/Cargo.toml @@ -22,18 +22,18 @@ event-listener-primitives = "2.0.1" futures = "0.3.13" hex = "0.4.3" indicatif = "0.16.2" +jsonrpsee = { version = "0.3.1", features = ["client", "types"] } log = "0.4.14" rayon = "1.5.0" ring = "0.16.20" schnorrkel = "0.10.1" +serde = { version = "1.0.125", features = ["derive"] } serde_json = "1.0.64" +subspace-codec = { version = "0.1.0", path = "../subspace-codec" } +subspace-core-primitives = { version = "0.1.0", path = "../subspace-core-primitives" } thiserror = "1.0.24" tokio = "1.11.0" -[dependencies.jsonrpsee] -features = ["client", "types"] -version = "0.3.1" - [dependencies.rocksdb] # This disables compression algorithms that cause issues during linking due to # https://github.com/rust-rocksdb/rust-rocksdb/issues/514 @@ -42,29 +42,11 @@ default-features = false features = ["snappy"] version = "0.17.0" -[dependencies.serde] -features = ["derive"] -version = "1.0.125" - -[dependencies.subspace-codec] -version = "0.1.0" -path = "../subspace-codec" - -[dependencies.subspace-core-primitives] -version = "0.1.0" -path = "../subspace-core-primitives" - [dev-dependencies] +async-std = { version = "1.9.0", features = ["attributes"] } rand = "0.8.4" tempfile = "3.2.0" - -[dev-dependencies.async-std] -features = ["attributes"] -version = "1.9.0" - -[dev-dependencies.tokio] -features = ["macros"] -version = "1.11.0" +tokio = { version = "1.11.0", features = ["macros"] } [features] default = [] diff --git a/crates/subspace-archiving/Cargo.toml b/crates/subspace-archiving/Cargo.toml index d5e7d592be..c580ed6f55 100644 --- a/crates/subspace-archiving/Cargo.toml +++ b/crates/subspace-archiving/Cargo.toml @@ -14,13 +14,10 @@ include = [ [dependencies] merkletree = "0.21.0" +parity-scale-codec = { version = "2.3.0", features = ["derive"], default-features = false } thiserror = "1.0.29" typenum = "1.14.0" - -[dependencies.parity-scale-codec] -default-features = false -features = ["derive"] -version = "2.3.0" +subspace-core-primitives = { version = "0.1.0", path = "../subspace-core-primitives", default-features = false } # Ugly workaround for https://github.com/rust-lang/cargo/issues/1197 [target.'cfg(not(all(target_os = "macos", target_arch = "aarch64")))'.dependencies.reed-solomon-erasure] @@ -43,14 +40,8 @@ version = "0.9.8" default-features = false version = "0.9.8" -[dependencies.subspace-core-primitives] -default-features = false -version = "0.1.0" -path = "../subspace-core-primitives" - -[dev-dependencies.rand] -features = ["min_const_gen"] -version = "0.8.4" +[dev-dependencies] +rand = { version = "0.8.4", features = ["min_const_gen"] } # TODO: Nothing is exposed in no-std environment at the moment :( [features] diff --git a/crates/subspace-codec/Cargo.toml b/crates/subspace-codec/Cargo.toml index f362e7da2c..fd62aff032 100644 --- a/crates/subspace-codec/Cargo.toml +++ b/crates/subspace-codec/Cargo.toml @@ -14,10 +14,7 @@ include = [ [dependencies] sloth256-189 = "0.2.2" - -[dependencies.subspace-core-primitives] -version = "0.1.0" -path = "../subspace-core-primitives" +subspace-core-primitives = { version = "0.1.0", path = "../subspace-core-primitives" } [dev-dependencies] rand = "0.8.4" diff --git a/crates/subspace-core-primitives/Cargo.toml b/crates/subspace-core-primitives/Cargo.toml index 8067039062..3971d3286a 100644 --- a/crates/subspace-core-primitives/Cargo.toml +++ b/crates/subspace-core-primitives/Cargo.toml @@ -12,20 +12,10 @@ include = [ "/README.md" ] -[dependencies.parity-scale-codec] -default-features = false -features = ["derive"] -version = "2.3.0" - -[dependencies.scale-info] -default-features = false -features = ["derive"] -version = "1.0" - -[dependencies.serde] -default-features = false -features = ["derive"] -version = "1.0.130" +[dependencies] +parity-scale-codec = { version = "2.3.0", default-features = false, features = ["derive"] } +scale-info = { version = "1.0", default-features = false, features = ["derive"] } +serde = { version = "1.0.130", default-features = false, features = ["derive"] } # Ugly workaround for https://github.com/rust-lang/cargo/issues/1197 [target.'cfg(any(target_os = "linux", target_os = "macos", all(target_os = "windows", target_env = "gnu")))'.dependencies.sha2] diff --git a/node-template-spartan/node/Cargo.toml b/node-template-spartan/node/Cargo.toml index 584c4e2252..1dd2276785 100644 --- a/node-template-spartan/node/Cargo.toml +++ b/node-template-spartan/node/Cargo.toml @@ -16,43 +16,37 @@ targets = ["x86_64-unknown-linux-gnu"] name = "node-template-spartan" [dependencies] -structopt = "0.3.22" - +frame-benchmarking = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +frame-benchmarking-cli = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +jsonrpc-core = "18.0.0" +node-template-spartan-runtime = { version = "0.1.0", path = "../runtime" } +pallet-transaction-payment-rpc = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sc-basic-authorship = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sc-cli = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05", features = ["wasmtime"] } -sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sc-executor = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05", features = ["wasmtime"] } -sc-service = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05", features = ["wasmtime"] } -sc-telemetry = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sc-transaction-pool = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sc-transaction-pool-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sc-client-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sc-consensus = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sc-consensus-poc = { version = "0.1.0", path = "../../crates/sc-consensus-poc" } sc-consensus-poc-rpc = { version = "0.1.0", path = "../../crates/sc-consensus-poc-rpc" } sc-consensus-slots = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sc-consensus-uncles = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sp-consensus-poc = { version = "0.1.0", path = "../../crates/sp-consensus-poc" } -sp-consensus = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sc-consensus = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sc-client-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sp-timestamp = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sp-authorship = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } - -# These dependencies are used for the node template's RPCs -jsonrpc-core = "18.0.0" +sc-executor = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05", features = ["wasmtime"] } sc-rpc = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sp-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sc-rpc-api = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sc-service = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05", features = ["wasmtime"] } +sc-telemetry = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sc-transaction-pool = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sc-transaction-pool-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-api = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-authorship = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-blockchain = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-block-builder = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -sc-basic-authorship = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-consensus = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-consensus-poc = { version = "0.1.0", path = "../../crates/sp-consensus-poc" } +sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-runtime = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +sp-timestamp = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +structopt = "0.3.22" substrate-frame-rpc-system = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -pallet-transaction-payment-rpc = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } - -# These dependencies are used for runtime benchmarking -frame-benchmarking = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -frame-benchmarking-cli = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } - -node-template-spartan-runtime = { version = "0.1.0", path = "../runtime" } [build-dependencies] substrate-build-script-utils = { version = "3.0.0", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } diff --git a/node-template-spartan/runtime/Cargo.toml b/node-template-spartan/runtime/Cargo.toml index cf248ef86c..717e20df39 100644 --- a/node-template-spartan/runtime/Cargo.toml +++ b/node-template-spartan/runtime/Cargo.toml @@ -12,19 +12,19 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } -scale-info = { version = "1.0", default-features = false, features = ["derive"] } - -pallet-feeds = { version = "0.1.0", default-features = false, path = "../../crates/pallet-feeds" } -pallet-spartan = { version = "0.1.0", default-features = false, path = "../../crates/pallet-spartan" } -pallet-balances = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +frame-executive = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +hex-literal = { version = "0.3.3", optional = true } +pallet-balances = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +pallet-feeds = { version = "0.1.0", default-features = false, path = "../../crates/pallet-feeds" } +pallet-offences-poc = { version = "0.1.0", default-features = false, path = "../../crates/pallet-offences-poc" } pallet-randomness-collective-flip = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +pallet-spartan = { version = "0.1.0", default-features = false, path = "../../crates/pallet-spartan" } pallet-sudo = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -pallet-offences-poc = { version = "0.1.0", default-features = false, path = "../../crates/pallet-offences-poc" } -frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } pallet-timestamp = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } pallet-transaction-payment = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } -frame-executive = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } +scale-info = { version = "1.0", default-features = false, features = ["derive"] } sp-api = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } sp-block-builder = { git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05", default-features = false, version = "4.0.0-dev"} sp-consensus-poc = { version = "0.1.0", default-features = false, path = "../../crates/sp-consensus-poc" } @@ -46,7 +46,6 @@ pallet-transaction-payment-rpc-runtime-api = { version = "4.0.0-dev", default-fe # Used for runtime benchmarking frame-benchmarking = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05", optional = true } frame-system-benchmarking = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05", optional = true } -hex-literal = { version = "0.3.3", optional = true } [build-dependencies] substrate-wasm-builder = { version = "5.0.0-dev", git = "https://github.com/paritytech/substrate", rev = "91b386ff07a85b3dd50ff3ed29c97e6b29d15f05" } @@ -55,20 +54,20 @@ substrate-wasm-builder = { version = "5.0.0-dev", git = "https://github.com/pari default = ["std"] std = [ "codec/std", - "scale-info/std", "frame-executive/std", "frame-support/std", - "frame-system-rpc-runtime-api/std", "frame-system/std", - "pallet-feeds/std", - "pallet-spartan/std", + "frame-system-rpc-runtime-api/std", "pallet-balances/std", + "pallet-feeds/std", + "pallet-offences-poc/std", "pallet-randomness-collective-flip/std", + "pallet-spartan/std", "pallet-sudo/std", - "pallet-offences-poc/std", "pallet-timestamp/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", + "scale-info/std", "sp-api/std", "sp-block-builder/std", "sp-consensus-poc/std",