git.delta.rocks / unique-network / refs/commits / 2c040b3e73e9

difftreelog

fix unused `on_runtime_upgrade()` was removed

PraetorP2023-04-19parent: #6e3cf5e.patch.diff
in: master
- AppPromo
- Common
- NonFungible

10 files changed

modifiedCargo.lockdiffbeforeafterboth
59965996
5997[[package]]5997[[package]]
5998name = "pallet-app-promotion"5998name = "pallet-app-promotion"
5999version = "0.1.5"5999version = "0.1.6"
6000dependencies = [6000dependencies = [
6001 "frame-benchmarking",6001 "frame-benchmarking",
6002 "frame-support",6002 "frame-support",
62626262
6263[[package]]6263[[package]]
6264name = "pallet-common"6264name = "pallet-common"
6265version = "0.1.13"6265version = "0.1.14"
6266dependencies = [6266dependencies = [
6267 "ethereum",6267 "ethereum",
6268 "evm-coder",6268 "evm-coder",
68146814
6815[[package]]6815[[package]]
6816name = "pallet-nonfungible"6816name = "pallet-nonfungible"
6817version = "0.1.13"6817version = "0.1.14"
6818dependencies = [6818dependencies = [
6819 "evm-coder",6819 "evm-coder",
6820 "frame-benchmarking",6820 "frame-benchmarking",
modifiedpallets/app-promotion/CHANGELOG.mddiffbeforeafterboth
3All notable changes to this project will be documented in this file.3All notable changes to this project will be documented in this file.
44
5<!-- bureaucrate goes here -->5<!-- bureaucrate goes here -->
6## [0.1.6] - 2023-04-19
67
8- ### Fixed
9
10- Useless `on_runtime_upgrade()` has been removed
11
7## [0.1.5] - 2023-02-1412## [0.1.5] - 2023-02-14
813
9### Added14### Added
modifiedpallets/app-promotion/Cargo.tomldiffbeforeafterboth
9license = 'GPLv3'9license = 'GPLv3'
10name = 'pallet-app-promotion'10name = 'pallet-app-promotion'
11repository = 'https://github.com/UniqueNetwork/unique-chain'11repository = 'https://github.com/UniqueNetwork/unique-chain'
12version = '0.1.5'12version = '0.1.6'
1313
14[package.metadata.docs.rs]14[package.metadata.docs.rs]
15targets = ['x86_64-unknown-linux-gnu']15targets = ['x86_64-unknown-linux-gnu']
modifiedpallets/app-promotion/src/lib.rsdiffbeforeafterboth
263 pub type PreviousCalculatedRecord<T: Config> =263 pub type PreviousCalculatedRecord<T: Config> =
264 StorageValue<Value = (T::AccountId, T::BlockNumber), QueryKind = OptionQuery>;264 StorageValue<Value = (T::AccountId, T::BlockNumber), QueryKind = OptionQuery>;
265
266 #[pallet::storage]
267 pub(crate) type UpgradedToReserves<T: Config> =
268 StorageValue<Value = bool, QueryKind = ValueQuery>;
269265
270 #[pallet::hooks]266 #[pallet::hooks]
271 impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {267 impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
291 <T as Config>::WeightInfo::on_initialize(counter)287 <T as Config>::WeightInfo::on_initialize(counter)
292 }288 }
293
294 fn on_runtime_upgrade() -> Weight {
295 <UpgradedToReserves<T>>::kill();
296
297 T::DbWeight::get().reads_writes(0, 1)
298 }
299 }289 }
300290
301 #[pallet::call]291 #[pallet::call]
modifiedpallets/common/CHANGELOG.mddiffbeforeafterboth
3All notable changes to this project will be documented in this file.3All notable changes to this project will be documented in this file.
44
5<!-- bureaucrate goes here -->5<!-- bureaucrate goes here -->
6## [0.1.14] - 2023-04-19
67
8- ### Fixed
9
10- Useless `on_runtime_upgrade()` has been removed
11
7## [0.1.13] - 2023-01-2012## [0.1.13] - 2023-01-20
813
9### Changed14### Changed
76However, we don't use prefix removal limits, so upgrade is81However, we don't use prefix removal limits, so upgrade is
77straightforward82straightforward
7883
79Upstream-Change: https://github.com/paritytech/substrate/pull/1149084Upstream-Change: <https://github.com/paritytech/substrate/pull/11490>
8085
81- build: Upgrade polkadot to v0.9.25 cdfb9bdc7b205ff1b5134f034ef9973d769e5e6b86- build: Upgrade polkadot to v0.9.25 cdfb9bdc7b205ff1b5134f034ef9973d769e5e6b
8287
modifiedpallets/common/Cargo.tomldiffbeforeafterboth
2edition = "2021"2edition = "2021"
3license = "GPLv3"3license = "GPLv3"
4name = "pallet-common"4name = "pallet-common"
5version = "0.1.13"5version = "0.1.14"
66
7[dependencies]7[dependencies]
8# Note: `package = "parity-scale-codec"` must be supplied since the `Encode` macro searches for it.8# Note: `package = "parity-scale-codec"` must be supplied since the `Encode` macro searches for it.
modifiedpallets/common/src/lib.rsdiffbeforeafterboth
870 QueryKind = OptionQuery,870 QueryKind = OptionQuery,
871 >;871 >;
872
873 #[pallet::hooks]
874 impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
875 fn on_runtime_upgrade() -> Weight {
876 StorageVersion::new(1).put::<Pallet<T>>();
877
878 Weight::zero()
879 }
880 }
881}872}
882873
883impl<T: Config> Pallet<T> {874impl<T: Config> Pallet<T> {
modifiedpallets/nonfungible/CHANGELOG.mddiffbeforeafterboth
3All notable changes to this project will be documented in this file.3All notable changes to this project will be documented in this file.
44
5<!-- bureaucrate goes here -->5<!-- bureaucrate goes here -->
6## [0.1.14] - 2023-04-19
67
8- ### Fixed
9
10- Useless `on_runtime_upgrade()` has been removed
11
7## [0.1.13] - 2023-01-2012## [0.1.13] - 2023-01-20
813
9### Fixed14### Fixed
77However, we don't use prefix removal limits, so upgrade is82However, we don't use prefix removal limits, so upgrade is
78straightforward83straightforward
7984
80Upstream-Change: https://github.com/paritytech/substrate/pull/1149085Upstream-Change: <https://github.com/paritytech/substrate/pull/11490>
8186
82- build: Upgrade polkadot to v0.9.25 cdfb9bdc7b205ff1b5134f034ef9973d769e5e6b87- build: Upgrade polkadot to v0.9.25 cdfb9bdc7b205ff1b5134f034ef9973d769e5e6b
8388
modifiedpallets/nonfungible/Cargo.tomldiffbeforeafterboth
2edition = "2021"2edition = "2021"
3license = "GPLv3"3license = "GPLv3"
4name = "pallet-nonfungible"4name = "pallet-nonfungible"
5version = "0.1.13"5version = "0.1.14"
66
7[dependencies]7[dependencies]
8# Note: `package = "parity-scale-codec"` must be supplied since the `Encode` macro searches for it.8# Note: `package = "parity-scale-codec"` must be supplied since the `Encode` macro searches for it.
modifiedpallets/nonfungible/src/lib.rsdiffbeforeafterboth
282 QueryKind = ValueQuery,282 QueryKind = ValueQuery,
283 >;283 >;
284
285 /// Upgrade from the old schema to properties.
286 #[pallet::hooks]
287 impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
288 fn on_runtime_upgrade() -> Weight {
289 StorageVersion::new(1).put::<Pallet<T>>();
290
291 Weight::zero()
292 }
293 }
294}284}
295285
296pub struct NonfungibleHandle<T: Config>(pallet_common::CollectionHandle<T>);286pub struct NonfungibleHandle<T: Config>(pallet_common::CollectionHandle<T>);