Skip to content

Commit

Permalink
Drop sudo from main runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
akru committed Mar 11, 2022
1 parent 822cab4 commit e969e0a
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 32 deletions.
31 changes: 15 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "robonomics-node"
version = "1.8.1"
version = "1.8.2"
authors = ["Airalab <[email protected]>"]
description = "Robonomics node implementation in Rust & Substrate."
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion bin/node/rpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "robonomics-rpc"
version = "1.8.1"
version = "1.8.2"
authors = ["Airalab <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion bin/node/service/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "robonomics-service"
version = "1.8.1"
version = "1.8.2"
authors = ["Airalab <[email protected]>"]
description = "Robonomics node console line interface."
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion runtime/alpha/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "alpha-runtime"
version = "1.8.1"
version = "1.8.2"
authors = ["Airalab <[email protected]>"]
edition = "2018"
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion runtime/ipci/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ipci-runtime"
version = "1.8.1"
version = "1.8.2"
authors = ["Airalab <[email protected]>"]
edition = "2018"
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion runtime/local/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "local-runtime"
version = "1.8.1"
version = "1.8.2"
authors = ["Airalab <[email protected]>"]
edition = "2018"
build = "build.rs"
Expand Down
4 changes: 1 addition & 3 deletions runtime/main/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "main-runtime"
version = "1.8.1"
version = "1.8.2"
authors = ["Airalab <[email protected]>"]
edition = "2018"
build = "build.rs"
Expand Down Expand Up @@ -35,7 +35,6 @@ pallet-democracy = { git = "https://github.com/paritytech/substrate", branch = "
frame-executive = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.17", default-features = false }
pallet-identity = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.17", default-features = false }
pallet-scheduler = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.17", default-features = false }
pallet-sudo = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.17", default-features = false }
pallet-treasury = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.17", default-features = false }
pallet-membership = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.17", default-features = false }
frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.17", default-features = false }
Expand Down Expand Up @@ -93,7 +92,6 @@ std = [
"frame-executive/std",
"pallet-identity/std",
"pallet-scheduler/std",
"pallet-sudo/std",
"pallet-treasury/std",
"pallet-membership/std",
"pallet-multisig/std",
Expand Down
8 changes: 1 addition & 7 deletions runtime/main/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("robonomics"),
impl_name: create_runtime_str!("robonomics-airalab"),
authoring_version: 1,
spec_version: 15,
spec_version: 16,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -484,11 +484,6 @@ impl pallet_multisig::Config for Runtime {
type WeightInfo = ();
}

impl pallet_sudo::Config for Runtime {
type Event = Event;
type Call = Call;
}

parameter_types! {
// We do anything the parent chain tells us in this runtime.
pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 2;
Expand Down Expand Up @@ -604,7 +599,6 @@ construct_runtime! {
Utility: pallet_utility::{Pallet, Call, Storage, Event} = 11,
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 12,
Identity: pallet_identity::{Pallet, Call, Storage, Event<T>} = 13,
Sudo: pallet_sudo::{Pallet, Call, Storage, Event<T>, Config<T>} = 14,
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 15,

// Parachain systems.
Expand Down

0 comments on commit e969e0a

Please sign in to comment.