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
120120
121/// 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>;
125
126 /// 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}
135
136decl_event! {
137 pub enum Event<T>
138 where
139 <T as frame_system::Config>::AccountId,
140 {
141 /// Collection sponsor was removed
142 ///
143 /// # Arguments
144 /// * collection_id: ID of the affected collection.
145 CollectionSponsorRemoved(CollectionId),
146
147 /// Collection sponsor was set
148 ///
149 /// # Arguments
150 /// * collection_id: ID of the affected collection.
151 /// * owner: New sponsor address.
152 CollectionSponsorSet(CollectionId, AccountId),
153
154 }
155}
156132
157type SelfWeightOf<T> = <T as Config>::WeightInfo;133type SelfWeightOf<T> = <T as Config>::WeightInfo;
158134
262 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));
263
264
265 pub fn deposit_event() = default;
266239
267 fn on_initialize(_now: T::BlockNumber) -> Weight {240 fn on_initialize(_now: T::BlockNumber) -> Weight {
268 Weight::zero()241 Weight::zero()
modifiedruntime/common/config/pallets/mod.rsdiffbeforeafterboth
93}93}
9494
95impl 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>;
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,