difftreelog
remove events fro unique pallete
in: master
3 files changed
pallets/unique/src/lib.rsdiffbeforeafterboth120120121/// Configuration trait of this pallet.121/// Configuration trait of this pallet.122pub trait Config: system::Config + pallet_common::Config + Sized + TypeInfo {122pub trait Config: system::Config + pallet_common::Config + Sized + TypeInfo {123 /// Overarching event type.124 type RuntimeEvent: From<Event<Self>> + Into<<Self as frame_system::Config>::RuntimeEvent>;125126 /// Weight information for extrinsics in this pallet.123 /// Weight information for extrinsics in this pallet.127 type WeightInfo: WeightInfo;124 type WeightInfo: WeightInfo;133 type RefungibleExtensionsWeightInfo: RefungibleExtensionsWeightInfo;130 type RefungibleExtensionsWeightInfo: RefungibleExtensionsWeightInfo;134}131}135136decl_event! {137 pub enum Event<T>138 where139 <T as frame_system::Config>::AccountId,140 {141 /// Collection sponsor was removed142 ///143 /// # Arguments144 /// * collection_id: ID of the affected collection.145 CollectionSponsorRemoved(CollectionId),146147 /// Collection sponsor was set148 ///149 /// # Arguments150 /// * collection_id: ID of the affected collection.151 /// * owner: New sponsor address.152 CollectionSponsorSet(CollectionId, AccountId),153154 }155}156132157type SelfWeightOf<T> = <T as Config>::WeightInfo;133type SelfWeightOf<T> = <T as Config>::WeightInfo;158134262 const FT_DEFAULT_COLLECTION_LIMITS: CollectionLimits = CollectionLimits::with_default_limits(CollectionMode::Fungible(0));238 const FT_DEFAULT_COLLECTION_LIMITS: CollectionLimits = CollectionLimits::with_default_limits(CollectionMode::Fungible(0));263264265 pub fn deposit_event() = default;266239267 fn on_initialize(_now: T::BlockNumber) -> Weight {240 fn on_initialize(_now: T::BlockNumber) -> Weight {268 Weight::zero()241 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.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,