mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 22:07:58 +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:
@@ -14,9 +14,9 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use srml_support::sr_primitives::generic;
|
||||
use srml_support::sr_primitives::traits::{BlakeTwo256, Block as _, Verify};
|
||||
use srml_support::codec::{Encode, Decode};
|
||||
use support::sr_primitives::generic;
|
||||
use support::sr_primitives::traits::{BlakeTwo256, Block as _, Verify};
|
||||
use support::codec::{Encode, Decode};
|
||||
use primitives::{H256, sr25519};
|
||||
use serde::{Serialize, Deserialize};
|
||||
|
||||
@@ -82,7 +82,7 @@ mod module {
|
||||
|
||||
pub trait Trait: system::Trait {}
|
||||
|
||||
srml_support::decl_module! {
|
||||
support::decl_module! {
|
||||
pub struct Module<T: Trait> for enum Call where origin: T::Origin {}
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ mod module {
|
||||
}
|
||||
}
|
||||
|
||||
srml_support::decl_storage! {
|
||||
support::decl_storage! {
|
||||
trait Store for Module<T: Trait> as Actors {
|
||||
/// requirements to enter and maintain status in roles
|
||||
pub Parameters get(parameters) build(|config: &GenesisConfig| {
|
||||
@@ -164,7 +164,7 @@ impl system::Trait for Runtime {
|
||||
|
||||
impl module::Trait for Runtime {}
|
||||
|
||||
srml_support::construct_runtime!(
|
||||
support::construct_runtime!(
|
||||
pub enum Runtime where
|
||||
Block = Block,
|
||||
NodeBlock = Block,
|
||||
|
||||
Reference in New Issue
Block a user