Companion for substrate#14188 (Add genesis config to Glutton pallet) (#2612)

* sudo + genesis for glutton

* ".git/.scripts/commands/fmt/fmt.sh"

* add AdminOrigin to glutton

* ".git/.scripts/commands/fmt/fmt.sh"

* update Cargo.lock

---------

Co-authored-by: command-bot <>
This commit is contained in:
Ignacio Palacios
2023-05-23 16:55:28 +02:00
committed by GitHub
parent bb307879ed
commit 1559fee4b3
6 changed files with 238 additions and 238 deletions
@@ -76,7 +76,10 @@ pub use frame_support::{
},
StorageValue,
};
use frame_system::limits::{BlockLength, BlockWeights};
use frame_system::{
limits::{BlockLength, BlockWeights},
EnsureRoot,
};
use parachains_common::{AccountId, Signature};
#[cfg(any(feature = "std", test))]
pub use sp_runtime::BuildStorage;
@@ -187,6 +190,13 @@ impl parachain_info::Config for Runtime {}
impl pallet_glutton::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type WeightInfo = weights::pallet_glutton::WeightInfo<Runtime>;
type AdminOrigin = EnsureRoot<AccountId>;
}
impl pallet_sudo::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type WeightInfo = ();
}
construct_runtime! {
@@ -205,7 +215,10 @@ construct_runtime! {
CumulusXcm: cumulus_pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 10,
// The main stage.
Glutton: pallet_glutton::{Pallet, Call, Storage, Event} = 20,
Glutton: pallet_glutton::{Pallet, Call, Storage, Event, Config} = 20,
// Sudo.
Sudo: pallet_sudo::{Pallet, Call, Storage, Event<T>, Config<T>} = 255,
}
}