difftreelog
remove events fro unique pallete
in: master
3 files changed
pallets/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()
runtime/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>;
runtime/common/construct_runtime/mod.rsdiffbeforeafterboth555556 // Unique Pallets56 // Unique Pallets57 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,595960 #[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,