Normalize Crate Names in SRML/Node Template (#3543)

* Fix some instances of `runtime-io`

* Patch a bunch

* More patches for consistancy

* more patch

* Fix various build issues

* Fix tests

* Patch `srml-support-*` crates

* Fix doc tests

* Revert "Fix doc tests"

This reverts commit ba2ec61da7acc36821a70e76a31a6a5bf13bbe95.

* Revert "Patch `srml-support-*` crates"

This reverts commit 9a6070450107dec17784ba34af4b871023f6dc81.

* Missed one

* Fix doc tests
This commit is contained in:
Shawn Tabrizi
2019-09-04 14:44:28 +02:00
committed by GitHub
parent 875fa73728
commit c284ca2138
84 changed files with 246 additions and 250 deletions
+3 -3
View File
@@ -10,14 +10,14 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features =
# Needed for various traits. In our case, `OnFinalize`.
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
# Needed for type-safe access to storage DB.
srml-support = { path = "../support", default-features = false }
support = { package = "srml-support", path = "../support", default-features = false }
# `system` module provides us with all sorts of useful stuff and macros depend on it being around.
system = { package = "srml-system", path = "../system", default-features = false }
[dev-dependencies]
primitives = { package = "substrate-primitives", path = "../../core/primitives" }
rstd = { package = "sr-std", path = "../../core/sr-std" }
runtime_io = { package = "sr-io", path = "../../core/sr-io" }
runtime-io = { package = "sr-io", path = "../../core/sr-io" }
[features]
default = ["std"]
@@ -25,6 +25,6 @@ std = [
"serde",
"codec/std",
"sr-primitives/std",
"srml-support/std",
"support/std",
"system/std",
]
+2 -2
View File
@@ -130,7 +130,7 @@
// Ensure we're `no_std` when compiling for Wasm.
#![cfg_attr(not(feature = "std"), no_std)]
use srml_support::{StorageValue, StorageMap, Parameter, decl_module, decl_event, decl_storage, ensure};
use support::{StorageValue, StorageMap, Parameter, decl_module, decl_event, decl_storage, ensure};
use sr_primitives::traits::{Member, SimpleArithmetic, Zero, StaticLookup};
use system::ensure_signed;
use sr_primitives::traits::One;
@@ -240,7 +240,7 @@ mod tests {
use super::*;
use runtime_io::with_externalities;
use srml_support::{impl_outer_origin, assert_ok, assert_noop, parameter_types};
use support::{impl_outer_origin, assert_ok, assert_noop, parameter_types};
use primitives::{H256, Blake2Hasher};
// The testing primitives are very useful for avoiding having to work with signatures
// or public keys. `u64` is used as the `AccountId` and no `Signature`s are required.