git.delta.rocks / unique-network / refs/commits / 1c5f13f26e0d

difftreelog

remove events fro unique pallete

Trubnikov Sergey2022-12-09parent: #d05c19b.patch.diff
in: master

3 files changed

modifiedpallets/unique/src/lib.rsdiffbeforeafterboth
--- a/pallets/unique/src/lib.rs
+++ b/pallets/unique/src/lib.rs
@@ -120,9 +120,6 @@
 
 /// Configuration trait of this pallet.
 pub trait Config: system::Config + pallet_common::Config + Sized + TypeInfo {
-	/// Overarching event type.
-	type RuntimeEvent: From<Event<Self>> + Into<<Self as frame_system::Config>::RuntimeEvent>;
-
 	/// Weight information for extrinsics in this pallet.
 	type WeightInfo: WeightInfo;
 
@@ -132,28 +129,7 @@
 	/// Weight info information for extra refungible pallet operations.
 	type RefungibleExtensionsWeightInfo: RefungibleExtensionsWeightInfo;
 }
-
-decl_event! {
-	pub enum Event<T>
-	where
-		<T as frame_system::Config>::AccountId,
-	{
-		/// Collection sponsor was removed
-		///
-		/// # Arguments
-		/// * collection_id: ID of the affected collection.
-		CollectionSponsorRemoved(CollectionId),
 
-		/// Collection sponsor was set
-		///
-		/// # Arguments
-		/// * collection_id: ID of the affected collection.
-		/// * owner: New sponsor address.
-		CollectionSponsorSet(CollectionId, AccountId),
-
-	}
-}
-
 type SelfWeightOf<T> = <T as Config>::WeightInfo;
 
 // # Used definitions
@@ -260,9 +236,6 @@
 
 		#[doc = "Default FT collection limit."]
 		const FT_DEFAULT_COLLECTION_LIMITS: CollectionLimits = CollectionLimits::with_default_limits(CollectionMode::Fungible(0));
-
-
-		pub fn deposit_event() = default;
 
 		fn on_initialize(_now: T::BlockNumber) -> Weight {
 			Weight::zero()
modifiedruntime/common/config/pallets/mod.rsdiffbeforeafterboth
--- a/runtime/common/config/pallets/mod.rs
+++ b/runtime/common/config/pallets/mod.rs
@@ -93,7 +93,6 @@
 }
 
 impl pallet_unique::Config for Runtime {
-	type RuntimeEvent = RuntimeEvent;
 	type WeightInfo = pallet_unique::weights::SubstrateWeight<Self>;
 	type CommonWeightInfo = CommonWeights<Self>;
 	type RefungibleExtensionsWeightInfo = CommonWeights<Self>;
modifiedruntime/common/construct_runtime/mod.rsdiffbeforeafterboth
5555
56 // Unique Pallets56 // Unique Pallets
57 Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,57 Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,
58 Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,58 Unique: pallet_unique::{Pallet, Call, Storage} = 61,
5959
60 #[runtimes(opal)]60 #[runtimes(opal)]
61 Scheduler: pallet_unique_scheduler_v2::{Pallet, Call, Storage, Event<T>} = 62,61 Scheduler: pallet_unique_scheduler_v2::{Pallet, Call, Storage, Event<T>} = 62,