Extract Runtime Constants into Separate Crates (#4456)

* kusama-runtime-constants created

* polkadot_runtime_constants added

* runtime constants extracted

* update node

* cargo +nightly fmt

* Delete constants.rs

* update Cargo.toml

* 2021

* runtime constants update

* utils

* utils

* node test service

* Update runtime/rococo/constants/Cargo.toml

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* runtime-native

* bridge messages

* re-export DOLLARS

* Update runtime/westend/Cargo.toml

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Update runtime/test-runtime/Cargo.toml

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* std feature

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Doordashcon
2021-12-11 08:10:32 +01:00
committed by GitHub
parent 7c5249c951
commit 11d343e258
28 changed files with 238 additions and 36 deletions
+68
View File
@@ -3122,6 +3122,7 @@ dependencies = [
"frame-system-rpc-runtime-api",
"frame-try-runtime",
"hex-literal",
"kusama-runtime-constants",
"log",
"pallet-authority-discovery",
"pallet-authorship",
@@ -3197,6 +3198,17 @@ dependencies = [
"xcm-executor",
]
[[package]]
name = "kusama-runtime-constants"
version = "0.9.13"
dependencies = [
"frame-support",
"polkadot-primitives",
"polkadot-runtime-common",
"smallvec",
"sp-runtime",
]
[[package]]
name = "kv-log-macro"
version = "1.0.7"
@@ -6692,6 +6704,7 @@ dependencies = [
"parity-scale-codec",
"polkadot-primitives",
"polkadot-runtime-common",
"polkadot-runtime-constants",
"polkadot-runtime-parachains",
"rustc-hex",
"scale-info",
@@ -6777,6 +6790,17 @@ dependencies = [
"xcm",
]
[[package]]
name = "polkadot-runtime-constants"
version = "0.9.13"
dependencies = [
"frame-support",
"polkadot-primitives",
"polkadot-runtime-common",
"smallvec",
"sp-runtime",
]
[[package]]
name = "polkadot-runtime-parachains"
version = "0.9.13"
@@ -6835,6 +6859,7 @@ dependencies = [
"futures 0.3.18",
"hex-literal",
"kusama-runtime",
"kusama-runtime-constants",
"kvdb",
"kvdb-rocksdb",
"log",
@@ -6875,10 +6900,12 @@ dependencies = [
"polkadot-primitives",
"polkadot-rpc",
"polkadot-runtime",
"polkadot-runtime-constants",
"polkadot-runtime-parachains",
"polkadot-statement-distribution",
"polkadot-test-client",
"rococo-runtime",
"rococo-runtime-constants",
"sc-authority-discovery",
"sc-basic-authorship",
"sc-block-builder",
@@ -6922,6 +6949,7 @@ dependencies = [
"thiserror",
"tracing",
"westend-runtime",
"westend-runtime-constants",
]
[[package]]
@@ -7128,6 +7156,7 @@ dependencies = [
"sp-trie",
"sp-version",
"substrate-wasm-builder",
"test-runtime-constants",
"tiny-keccak",
"xcm",
"xcm-builder",
@@ -7184,6 +7213,7 @@ dependencies = [
"substrate-test-client",
"substrate-test-utils",
"tempfile",
"test-runtime-constants",
"tokio",
"tracing",
]
@@ -7712,14 +7742,17 @@ dependencies = [
"clap",
"frame-system",
"kusama-runtime",
"kusama-runtime-constants",
"log",
"pallet-bags-list-remote-tests",
"polkadot-runtime",
"polkadot-runtime-constants",
"sp-core",
"sp-tracing",
"structopt",
"tokio",
"westend-runtime",
"westend-runtime-constants",
]
[[package]]
@@ -7848,6 +7881,7 @@ dependencies = [
"polkadot-primitives",
"polkadot-runtime-common",
"polkadot-runtime-parachains",
"rococo-runtime-constants",
"scale-info",
"serde",
"serde_derive",
@@ -7872,6 +7906,17 @@ dependencies = [
"xcm-executor",
]
[[package]]
name = "rococo-runtime-constants"
version = "0.9.13"
dependencies = [
"frame-support",
"polkadot-primitives",
"polkadot-runtime-common",
"smallvec",
"sp-runtime",
]
[[package]]
name = "rpassword"
version = "5.0.1"
@@ -10492,6 +10537,17 @@ dependencies = [
"tokio",
]
[[package]]
name = "test-runtime-constants"
version = "0.9.13"
dependencies = [
"frame-support",
"polkadot-primitives",
"polkadot-runtime-common",
"smallvec",
"sp-runtime",
]
[[package]]
name = "textwrap"
version = "0.11.0"
@@ -11552,11 +11608,23 @@ dependencies = [
"sp-version",
"substrate-wasm-builder",
"tiny-keccak",
"westend-runtime-constants",
"xcm",
"xcm-builder",
"xcm-executor",
]
[[package]]
name = "westend-runtime-constants"
version = "0.9.13"
dependencies = [
"frame-support",
"polkadot-primitives",
"polkadot-runtime-common",
"smallvec",
"sp-runtime",
]
[[package]]
name = "which"
version = "4.2.2"