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.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.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,