difftreelog
Merge pull request #770 from UniqueNetwork/fix/disable-scheduler-v2-everywhere
in: master
4 files changed
runtime/common/construct_runtime/mod.rsdiffbeforeafterboth--- a/runtime/common/construct_runtime/mod.rs
+++ b/runtime/common/construct_runtime/mod.rs
@@ -57,8 +57,8 @@
Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,
Unique: pallet_unique::{Pallet, Call, Storage} = 61,
- #[runtimes(opal)]
- Scheduler: pallet_unique_scheduler_v2::{Pallet, Call, Storage, Event<T>} = 62,
+ // #[runtimes(opal)]
+ // Scheduler: pallet_unique_scheduler_v2::{Pallet, Call, Storage, Event<T>} = 62,
Configuration: pallet_configuration::{Pallet, Call, Storage} = 63,
runtime/opal/Cargo.tomldiffbeforeafterboth--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -179,7 +179,6 @@
limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
opal-runtime = [
'refungible',
- 'scheduler',
'rmrk',
'app-promotion',
'foreign-assets',
test-pallets/utils/src/lib.rsdiffbeforeafterboth29 };29 };30 use frame_system::pallet_prelude::*;30 use frame_system::pallet_prelude::*;31 use sp_std::vec::Vec;31 use sp_std::vec::Vec;32 use pallet_unique_scheduler_v2::{TaskName, Pallet as SchedulerPallet};32 // use pallet_unique_scheduler_v2::{TaskName, Pallet as SchedulerPallet};333334 #[pallet::config]34 #[pallet::config]35 pub trait Config: frame_system::Config + pallet_unique_scheduler_v2::Config {35 pub trait Config: frame_system::Config /*+ pallet_unique_scheduler_v2::Config*/ {36 type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;36 type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;373738 /// The overarching call type.38 /// The overarching call type.108 Self::set_test_value(origin, <TestValue<T>>::get() + 1)108 Self::set_test_value(origin, <TestValue<T>>::get() + 1)109 }109 }110110111 #[pallet::weight(10_000)]111 // #[pallet::weight(10_000)]112 pub fn self_canceling_inc(112 // pub fn self_canceling_inc(113 origin: OriginFor<T>,113 // origin: OriginFor<T>,114 id: TaskName,114 // id: TaskName,115 max_test_value: u32,115 // max_test_value: u32,116 ) -> DispatchResult {116 // ) -> DispatchResult {117 Self::ensure_origin_and_enabled(origin.clone())?;117 // Self::ensure_origin_and_enabled(origin.clone())?;118 Self::inc_test_value(origin.clone())?;118 // Self::inc_test_value(origin.clone())?;119119120 if <TestValue<T>>::get() == max_test_value {120 // if <TestValue<T>>::get() == max_test_value {121 SchedulerPallet::<T>::cancel_named(origin, id)?;121 // SchedulerPallet::<T>::cancel_named(origin, id)?;122 }122 // }123123124 Ok(())124 // Ok(())125 }125 // }126126127 #[pallet::weight(100_000_000)]127 #[pallet::weight(100_000_000)]128 pub fn just_take_fee(origin: OriginFor<T>) -> DispatchResult {128 pub fn just_take_fee(origin: OriginFor<T>) -> DispatchResult {tests/src/pallet-presence.test.tsdiffbeforeafterboth--- a/tests/src/pallet-presence.test.ts
+++ b/tests/src/pallet-presence.test.ts
@@ -63,7 +63,6 @@
const chain = await helper.callRpc('api.rpc.system.chain', []);
const refungible = 'refungible';
- const scheduler = 'scheduler';
const foreignAssets = 'foreignassets';
const rmrkPallets = ['rmrkcore', 'rmrkequip'];
const appPromotion = 'apppromotion';
@@ -72,11 +71,9 @@
if (chain.eq('OPAL by UNIQUE')) {
requiredPallets.push(
refungible,
- // scheduler,
foreignAssets,
appPromotion,
testUtils,
- scheduler,
...rmrkPallets,
);
} else if (chain.eq('QUARTZ by UNIQUE')) {