Put HRMP Channel Management on General Admin Track (#7477)

* create ManagerOrigin for HRMP

* missed one

* fix mock

* update GeneralAdmin docs
This commit is contained in:
joe petrowski
2023-07-17 08:32:52 +02:00
committed by GitHub
parent b95cc76d7c
commit dd7d2f924b
9 changed files with 35 additions and 20 deletions
@@ -38,7 +38,7 @@ pub mod pallet_custom_origins {
Treasurer,
/// Origin for managing the composition of the fellowship.
FellowshipAdmin,
/// Origin for managing the registrar.
/// Origin for managing the registrar and permissioned HRMP channel operations.
GeneralAdmin,
/// Origin for starting auctions.
AuctionAdmin,
+1
View File
@@ -1155,6 +1155,7 @@ impl parachains_dmp::Config for Runtime {}
impl parachains_hrmp::Config for Runtime {
type RuntimeOrigin = RuntimeOrigin;
type RuntimeEvent = RuntimeEvent;
type ChannelManager = EitherOf<EnsureRoot<Self::AccountId>, GeneralAdmin>;
type Currency = Balances;
type WeightInfo = weights::runtime_parachains_hrmp::WeightInfo<Runtime>;
}