@@ -40,10 +40,7 @@ use beefy_primitives::crypto::AuthorityId as BeefyId;
4040use frame_election_provider_support:: { generate_solution_type, onchain, SequentialPhragmen } ;
4141use frame_support:: {
4242 construct_runtime, parameter_types,
43- traits:: {
44- Contains , EitherOfDiverse , InstanceFilter , KeyOwnerProofSystem , LockIdentifier ,
45- PrivilegeCmp ,
46- } ,
43+ traits:: { EitherOfDiverse , InstanceFilter , KeyOwnerProofSystem , LockIdentifier , PrivilegeCmp } ,
4744 weights:: ConstantMultiplier ,
4845 PalletId , RuntimeDebug ,
4946} ;
@@ -135,62 +132,6 @@ pub fn native_version() -> NativeVersion {
135132 NativeVersion { runtime_version : VERSION , can_author_with : Default :: default ( ) }
136133}
137134
138- pub struct BaseFilter ;
139- impl Contains < Call > for BaseFilter {
140- fn contains ( call : & Call ) -> bool {
141- match call {
142- // These modules are all allowed to be called by transactions:
143- Call :: Democracy ( _) |
144- Call :: Council ( _) |
145- Call :: TechnicalCommittee ( _) |
146- Call :: TechnicalMembership ( _) |
147- Call :: Treasury ( _) |
148- Call :: PhragmenElection ( _) |
149- Call :: System ( _) |
150- Call :: Scheduler ( _) |
151- Call :: Preimage ( _) |
152- Call :: Indices ( _) |
153- Call :: Babe ( _) |
154- Call :: Timestamp ( _) |
155- Call :: Balances ( _) |
156- Call :: Authorship ( _) |
157- Call :: Staking ( _) |
158- Call :: Session ( _) |
159- Call :: Grandpa ( _) |
160- Call :: ImOnline ( _) |
161- Call :: Utility ( _) |
162- Call :: Claims ( _) |
163- Call :: Vesting ( _) |
164- Call :: Identity ( _) |
165- Call :: Proxy ( _) |
166- Call :: Multisig ( _) |
167- Call :: Bounties ( _) |
168- Call :: ChildBounties ( _) |
169- Call :: Tips ( _) |
170- Call :: ElectionProviderMultiPhase ( _) |
171- Call :: Configuration ( _) |
172- Call :: ParasShared ( _) |
173- Call :: ParaInclusion ( _) |
174- Call :: Paras ( _) |
175- Call :: Initializer ( _) |
176- Call :: ParaInherent ( _) |
177- Call :: ParasDisputes ( _) |
178- Call :: Dmp ( _) |
179- Call :: Ump ( _) |
180- Call :: Hrmp ( _) |
181- Call :: Slots ( _) |
182- Call :: Registrar ( _) |
183- Call :: Auctions ( _) |
184- Call :: Crowdloan ( _) |
185- Call :: VoterList ( _) |
186- Call :: XcmPallet ( _) |
187- Call :: NominationPools ( _) => true ,
188- // All pallets are allowed, but exhaustive match is defensive
189- // in the case of adding new pallets.
190- }
191- }
192- }
193-
194135type MoreThanHalfCouncil = EitherOfDiverse <
195136 EnsureRoot < AccountId > ,
196137 pallet_collective:: EnsureProportionMoreThan < AccountId , CouncilCollective , 1 , 2 > ,
@@ -202,7 +143,7 @@ parameter_types! {
202143}
203144
204145impl frame_system:: Config for Runtime {
205- type BaseCallFilter = BaseFilter ;
146+ type BaseCallFilter = frame_support :: traits :: Everything ;
206147 type BlockWeights = BlockWeights ;
207148 type BlockLength = BlockLength ;
208149 type Origin = Origin ;
0 commit comments