From a9f6300e8633b25600741adbf01a12f09c61a267 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Sun, 26 Mar 2023 23:10:16 -0400 Subject: [PATCH] Remove unused dependencies from runtime/node --- Cargo.lock | 48 ------------------------------------ substrate/node/Cargo.toml | 10 +------- substrate/runtime/Cargo.toml | 4 --- 3 files changed, 1 insertion(+), 61 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ed900c47..12ca4e3c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7629,28 +7629,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "sc-consensus-babe-rpc" -version = "0.10.0-dev" -source = "git+https://github.com/serai-dex/substrate#a4cb49764a438bc9066451ac5956ecf3e12de6de" -dependencies = [ - "futures", - "jsonrpsee", - "sc-consensus-babe", - "sc-consensus-epochs", - "sc-rpc-api", - "serde", - "sp-api", - "sp-application-crypto", - "sp-blockchain", - "sp-consensus", - "sp-consensus-babe", - "sp-core", - "sp-keystore", - "sp-runtime", - "thiserror", -] - [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" @@ -7704,26 +7682,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "sc-consensus-grandpa-rpc" -version = "0.10.0-dev" -source = "git+https://github.com/serai-dex/substrate#a4cb49764a438bc9066451ac5956ecf3e12de6de" -dependencies = [ - "finality-grandpa", - "futures", - "jsonrpsee", - "log", - "parity-scale-codec", - "sc-client-api", - "sc-consensus-grandpa", - "sc-rpc", - "serde", - "sp-blockchain", - "sp-core", - "sp-runtime", - "thiserror", -] - [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" @@ -8730,7 +8688,6 @@ dependencies = [ name = "serai-node" version = "0.1.0" dependencies = [ - "async-trait", "clap 4.1.13", "frame-benchmarking", "frame-benchmarking-cli", @@ -8741,12 +8698,9 @@ dependencies = [ "sc-basic-authorship", "sc-cli", "sc-client-api", - "sc-client-db", "sc-consensus", "sc-consensus-babe", - "sc-consensus-babe-rpc", "sc-consensus-grandpa", - "sc-consensus-grandpa-rpc", "sc-executor", "sc-network", "sc-network-common", @@ -8759,7 +8713,6 @@ dependencies = [ "sp-api", "sp-block-builder", "sp-blockchain", - "sp-consensus", "sp-consensus-babe", "sp-core", "sp-inherents", @@ -8793,7 +8746,6 @@ dependencies = [ "frame-support", "frame-system", "frame-system-rpc-runtime-api", - "hex-literal", "in-instructions-pallet", "pallet-assets", "pallet-authority-discovery", diff --git a/substrate/node/Cargo.toml b/substrate/node/Cargo.toml index efaa0d7e..f15d5e2c 100644 --- a/substrate/node/Cargo.toml +++ b/substrate/node/Cargo.toml @@ -12,8 +12,6 @@ publish = false name = "serai-node" [dependencies] -async-trait = "0.1" - clap = { version = "4", features = ["derive"] } futures = "0.3" @@ -28,7 +26,6 @@ sp-runtime = { git = "https://github.com/serai-dex/substrate" } sp-blockchain = { git = "https://github.com/serai-dex/substrate" } sp-api = { git = "https://github.com/serai-dex/substrate" } sp-block-builder = { git = "https://github.com/serai-dex/substrate" } -sp-consensus = { git = "https://github.com/serai-dex/substrate" } sp-consensus-babe = { git = "https://github.com/serai-dex/substrate" } frame-benchmarking = { git = "https://github.com/serai-dex/substrate" } @@ -41,18 +38,13 @@ sc-transaction-pool-api = { git = "https://github.com/serai-dex/substrate" } sc-basic-authorship = { git = "https://github.com/serai-dex/substrate" } sc-executor = { git = "https://github.com/serai-dex/substrate" } sc-service = { git = "https://github.com/serai-dex/substrate" } -sc-client-db = { git = "https://github.com/serai-dex/substrate" } sc-client-api = { git = "https://github.com/serai-dex/substrate" } sc-network-common = { git = "https://github.com/serai-dex/substrate" } sc-network = { git = "https://github.com/serai-dex/substrate" } + sc-consensus = { git = "https://github.com/serai-dex/substrate" } - sc-consensus-babe = { git = "https://github.com/serai-dex/substrate" } -sc-consensus-babe-rpc = { git = "https://github.com/serai-dex/substrate" } - sc-consensus-grandpa = { git = "https://github.com/serai-dex/substrate" } -sc-consensus-grandpa-rpc = { git = "https://github.com/serai-dex/substrate" } - sc-authority-discovery = { git = "https://github.com/serai-dex/substrate" } sc-telemetry = { git = "https://github.com/serai-dex/substrate" } diff --git a/substrate/runtime/Cargo.toml b/substrate/runtime/Cargo.toml index 015c2676..b623223e 100644 --- a/substrate/runtime/Cargo.toml +++ b/substrate/runtime/Cargo.toml @@ -12,8 +12,6 @@ all-features = true rustdoc-args = ["--cfg", "docsrs"] [dependencies] -hex-literal = { version = "0.3", optional = true } - codec = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale-info = { version = "2", default-features = false, features = ["derive"] } @@ -116,8 +114,6 @@ std = [ ] runtime-benchmarks = [ - "hex-literal", - "sp-runtime/runtime-benchmarks", "frame-system/runtime-benchmarks",