mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-22 01:01:03 +00:00
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:
@@ -53,7 +53,7 @@
|
||||
//! ## Usage
|
||||
//!
|
||||
//! ```
|
||||
//! use srml_support::{decl_module, dispatch::Result};
|
||||
//! use support::{decl_module, dispatch::Result};
|
||||
//! use system::ensure_signed;
|
||||
//! use srml_scored_pool::{self as scored_pool};
|
||||
//!
|
||||
@@ -90,7 +90,7 @@ mod tests;
|
||||
|
||||
use codec::{Encode, Decode};
|
||||
use rstd::prelude::*;
|
||||
use srml_support::{
|
||||
use support::{
|
||||
StorageValue, StorageMap, decl_module, decl_storage, decl_event, ensure,
|
||||
traits::{ChangeMembers, InitializeMembers, Currency, Get, ReservableCurrency},
|
||||
};
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
use super::*;
|
||||
|
||||
use std::cell::RefCell;
|
||||
use srml_support::{impl_outer_origin, parameter_types};
|
||||
use support::{impl_outer_origin, 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 requried.
|
||||
@@ -132,7 +132,7 @@ impl Trait for Test {
|
||||
|
||||
// This function basically just builds a genesis storage key/value store according to
|
||||
// our desired mockup.
|
||||
pub fn new_test_ext() -> sr_io::TestExternalities<Blake2Hasher> {
|
||||
pub fn new_test_ext() -> runtime_io::TestExternalities<Blake2Hasher> {
|
||||
let mut t = system::GenesisConfig::default().build_storage::<Test>().unwrap();
|
||||
// We use default for brevity, but you can configure as desired if needed.
|
||||
balances::GenesisConfig::<Test> {
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
use super::*;
|
||||
use mock::*;
|
||||
|
||||
use srml_support::{assert_ok, assert_noop};
|
||||
use sr_io::with_externalities;
|
||||
use support::{assert_ok, assert_noop};
|
||||
use runtime_io::with_externalities;
|
||||
use sr_primitives::traits::OnInitialize;
|
||||
|
||||
type ScoredPool = Module<Test>;
|
||||
|
||||
Reference in New Issue
Block a user