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.rsdiffbeforeafterboth93}93}949495impl pallet_unique::Config for Runtime {95impl pallet_unique::Config for Runtime {96 type RuntimeEvent = RuntimeEvent;97 type WeightInfo = pallet_unique::weights::SubstrateWeight<Self>;96 type WeightInfo = pallet_unique::weights::SubstrateWeight<Self>;98 type CommonWeightInfo = CommonWeights<Self>;97 type CommonWeightInfo = CommonWeights<Self>;99 type RefungibleExtensionsWeightInfo = CommonWeights<Self>;98 type RefungibleExtensionsWeightInfo = CommonWeights<Self>;runtime/common/construct_runtime/mod.rsdiffbeforeafterboth--- a/runtime/common/construct_runtime/mod.rs
+++ b/runtime/common/construct_runtime/mod.rs
@@ -55,7 +55,7 @@
// Unique Pallets
Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,
- Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,
+ Unique: pallet_unique::{Pallet, Call, Storage} = 61,
#[runtimes(opal)]
Scheduler: pallet_unique_scheduler_v2::{Pallet, Call, Storage, Event<T>} = 62,