difftreelog
Missed tests was added. Scheduler pallet renamed.
in: master
13 files changed
Makefilediffbeforeafterboth103103104.PHONY: bench-scheduler104.PHONY: bench-scheduler105bench-scheduler:105bench-scheduler:106 make _bench2 PALLET=unq-scheduler PALLET_DIR=scheduler106 make _bench2 PALLET=unique-scheduler PALLET_DIR=scheduler107107108.PHONY: bench108.PHONY: bench109bench: bench-evm-migration bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible bench-scheduler109bench: bench-evm-migration bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible bench-schedulerpallets/scheduler/Cargo.tomldiffbeforeafterboth1[package]1[package]2name = "pallet-unq-scheduler"2name = "pallet-unique-scheduler"3version = "0.1.0"3version = "0.1.0"4authors = ["Unique Network <support@uniquenetwork.io>"]4authors = ["Unique Network <support@uniquenetwork.io>"]5edition = "2021"5edition = "2021"pallets/scheduler/src/benchmarking.rsdiffbeforeafterboth123 assert!(Agenda::<T>::iter().count() == 0);123 assert!(Agenda::<T>::iter().count() == 0);124 }124 }125126 on_initialize_periodic {127 let s in 1 .. T::MaxScheduledPerBlock::get();128 let when = BLOCK_NUMBER.into();129 fill_schedule::<T>(when, s, true, Some(false))?;130 }: { Scheduler::<T>::on_initialize(when); }131 verify {132 assert_eq!(System::<T>::event_count(), s);133 for i in 0..s {134 assert_eq!(Agenda::<T>::get(when + (i + 100).into()).len(), 1 as usize);135 }136 }125137126 on_initialize_periodic_resolved {138 on_initialize_periodic_resolved {127 let s in 1 .. T::MaxScheduledPerBlock::get();139 let s in 1 .. T::MaxScheduledPerBlock::get();135 }147 }136 }148 }149150 on_initialize_aborted {151 let s in 1 .. T::MaxScheduledPerBlock::get();152 let when = BLOCK_NUMBER.into();153 fill_schedule::<T>(when, s, false, None)?;154 }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }155 verify {156 assert_eq!(System::<T>::event_count(), 0);157 }158159 on_initialize_named_aborted {160 let s in 1 .. T::MaxScheduledPerBlock::get();161 let when = BLOCK_NUMBER.into();162 fill_schedule::<T>(when, s, false, Some(false))?;163 }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }164 verify {165 }166167 on_initialize_named {168 let s in 1 .. T::MaxScheduledPerBlock::get();169 let when = BLOCK_NUMBER.into();170 fill_schedule::<T>(when, s, false, None)?;171 }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }172 verify {173 assert_eq!(System::<T>::event_count(), 0);174 }175176 on_initialize {177 let s in 1 .. T::MaxScheduledPerBlock::get();178 let when = BLOCK_NUMBER.into();179 fill_schedule::<T>(when, s, false, Some(false))?;180 }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }181 verify {182 assert_eq!(System::<T>::event_count(), s);183 assert!(Agenda::<T>::iter().count() == 0);184 }137185138 on_initialize_resolved {186 on_initialize_resolved {139 let s in 1 .. T::MaxScheduledPerBlock::get();187 let s in 1 .. T::MaxScheduledPerBlock::get();pallets/scheduler/src/lib.rsdiffbeforeafterboth158 Self::on_initialize_periodic(2) - Self::on_initialize_periodic(1)158 Self::on_initialize_periodic(2) - Self::on_initialize_periodic(1)159 }159 }160 (true, true, Some(false)) => {160 (true, true, Some(false)) => {161 Self::on_initialize_periodic_named(2) - Self::on_initialize_periodic_named(1)161 Self::on_initialize_periodic_named_resolved(2)162 - Self::on_initialize_periodic_named_resolved(1)162 }163 }163 (false, false, Some(true)) => {164 (false, false, Some(true)) => Self::on_initialize(2) - Self::on_initialize(1),164 Self::on_initialize_resolved(2) - Self::on_initialize_resolved(1)165 }166 (false, true, Some(true)) => {165 (false, true, Some(true)) => {167 Self::on_initialize_named_resolved(2) - Self::on_initialize_named_resolved(1)166 Self::on_initialize_named_resolved(2) - Self::on_initialize_named_resolved(1)168 }167 }pallets/scheduler/src/weights.rsdiffbeforeafterboth1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs223//! Autogenerated weights for pallet_unq_scheduler3//! Autogenerated weights for pallet_unique_scheduler4//!4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-06-09, STEPS: `50`, REPEAT: 200, LOW RANGE: `[]`, HIGH RANGE: `[]`6//! DATE: 2022-06-09, STEPS: `50`, REPEAT: 200, LOW RANGE: `[]`, HIGH RANGE: `[]`11// benchmark11// benchmark12// pallet12// pallet13// --pallet13// --pallet14// pallet-unq-scheduler14// pallet-unique-scheduler15// --wasm-execution15// --wasm-execution16// compiled16// compiled17// --extrinsic17// --extrinsic31use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};31use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use sp_std::marker::PhantomData;32use sp_std::marker::PhantomData;333334/// Weight functions needed for pallet_unq_scheduler.34/// Weight functions needed for pallet_unique_scheduler.35pub trait WeightInfo {35pub trait WeightInfo {36 fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight;36 fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight;37 fn on_initialize_named_resolved(s: u32, ) -> Weight;37 fn on_initialize_named_resolved(s: u32, ) -> Weight;38 fn on_initialize_periodic(s: u32, ) -> Weight;38 fn on_initialize_periodic_resolved(s: u32, ) -> Weight;39 fn on_initialize_periodic_resolved(s: u32, ) -> Weight;40 fn on_initialize_aborted(s: u32, ) -> Weight;41 fn on_initialize_named_aborted(s: u32, ) -> Weight;42 fn on_initialize_named(s: u32, ) -> Weight;43 fn on_initialize(s: u32, ) -> Weight;39 fn on_initialize_resolved(s: u32, ) -> Weight;44 fn on_initialize_resolved(s: u32, ) -> Weight;40 fn schedule_named(s: u32, ) -> Weight;45 fn schedule_named(s: u32, ) -> Weight;41 fn cancel_named(s: u32, ) -> Weight;46 fn cancel_named(s: u32, ) -> Weight;42}47}434844/// Weights for pallet_unq_scheduler using the Substrate node and recommended hardware.49/// Weights for pallet_unique_scheduler using the Substrate node and recommended hardware.45pub struct SubstrateWeight<T>(PhantomData<T>);50pub struct SubstrateWeight<T>(PhantomData<T>);46impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {51impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {47 // Storage: Scheduler Agenda (r:2 w:2)52 // Storage: Scheduler Agenda (r:2 w:2)50 // Storage: System BlockWeight (r:1 w:1)55 // Storage: System BlockWeight (r:1 w:1)51 // Storage: Scheduler Lookup (r:0 w:1)56 // Storage: Scheduler Lookup (r:0 w:1)52 fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {57 fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {53 (39_822_000 as Weight)58 (35_999_000 as Weight)54 // Standard Error: 4_00059 // Standard Error: 3_00055 .saturating_add((31_823_000 as Weight).saturating_mul(s as Weight))60 .saturating_add((32_234_000 as Weight).saturating_mul(s as Weight))56 .saturating_add(T::DbWeight::get().reads(4 as Weight))61 .saturating_add(T::DbWeight::get().reads(4 as Weight))57 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))62 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))58 .saturating_add(T::DbWeight::get().writes(4 as Weight))63 .saturating_add(T::DbWeight::get().writes(4 as Weight))64 // Storage: System BlockWeight (r:1 w:1)69 // Storage: System BlockWeight (r:1 w:1)65 // Storage: Scheduler Lookup (r:0 w:1)70 // Storage: Scheduler Lookup (r:0 w:1)66 fn on_initialize_named_resolved(s: u32, ) -> Weight {71 fn on_initialize_named_resolved(s: u32, ) -> Weight {67 (36_019_000 as Weight)72 (34_874_000 as Weight)68 // Standard Error: 3_00073 // Standard Error: 2_00069 .saturating_add((22_660_000 as Weight).saturating_mul(s as Weight))74 .saturating_add((23_114_000 as Weight).saturating_mul(s as Weight))70 .saturating_add(T::DbWeight::get().reads(4 as Weight))75 .saturating_add(T::DbWeight::get().reads(4 as Weight))71 .saturating_add(T::DbWeight::get().writes(4 as Weight))76 .saturating_add(T::DbWeight::get().writes(4 as Weight))72 .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))77 .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))76 // Storage: System AllExtrinsicsLen (r:1 w:1)81 // Storage: System AllExtrinsicsLen (r:1 w:1)77 // Storage: System BlockWeight (r:1 w:1)82 // Storage: System BlockWeight (r:1 w:1)78 // Storage: Scheduler Lookup (r:0 w:1)83 // Storage: Scheduler Lookup (r:0 w:1)84 fn on_initialize_periodic(s: u32, ) -> Weight {85 (36_469_000 as Weight)86 // Standard Error: 3_00087 .saturating_add((32_202_000 as Weight).saturating_mul(s as Weight))88 .saturating_add(T::DbWeight::get().reads(4 as Weight))89 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))90 .saturating_add(T::DbWeight::get().writes(4 as Weight))91 .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))92 }93 // Storage: Scheduler Agenda (r:2 w:2)94 // Storage: System Account (r:1 w:1)95 // Storage: System AllExtrinsicsLen (r:1 w:1)96 // Storage: System BlockWeight (r:1 w:1)97 // Storage: Scheduler Lookup (r:0 w:1)79 fn on_initialize_periodic_resolved(s: u32, ) -> Weight {98 fn on_initialize_periodic_resolved(s: u32, ) -> Weight {80 (36_613_000 as Weight)99 (35_352_000 as Weight)81 // Standard Error: 3_000100 // Standard Error: 3_00082 .saturating_add((31_895_000 as Weight).saturating_mul(s as Weight))101 .saturating_add((32_309_000 as Weight).saturating_mul(s as Weight))83 .saturating_add(T::DbWeight::get().reads(4 as Weight))102 .saturating_add(T::DbWeight::get().reads(4 as Weight))84 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))103 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))85 .saturating_add(T::DbWeight::get().writes(4 as Weight))104 .saturating_add(T::DbWeight::get().writes(4 as Weight))86 .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))105 .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))87 }106 }107 // Storage: Scheduler Agenda (r:2 w:2)108 // Storage: Scheduler Lookup (r:0 w:1)109 fn on_initialize_aborted(s: u32, ) -> Weight {110 (11_267_000 as Weight)111 // Standard Error: 1_000112 .saturating_add((9_368_000 as Weight).saturating_mul(s as Weight))113 .saturating_add(T::DbWeight::get().reads(2 as Weight))114 .saturating_add(T::DbWeight::get().writes(2 as Weight))115 .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))116 }88 // Storage: Scheduler Agenda (r:1 w:1)117 // Storage: Scheduler Agenda (r:1 w:1)89 // Storage: System Account (r:1 w:1)118 // Storage: System Account (r:1 w:1)90 // Storage: System AllExtrinsicsLen (r:1 w:1)119 // Storage: System AllExtrinsicsLen (r:1 w:1)91 // Storage: System BlockWeight (r:1 w:1)120 // Storage: System BlockWeight (r:1 w:1)92 // Storage: Scheduler Lookup (r:0 w:1)121 // Storage: Scheduler Lookup (r:0 w:1)93 fn on_initialize_resolved(s: u32, ) -> Weight {122 fn on_initialize_named_aborted(s: u32, ) -> Weight {94 (36_252_000 as Weight)123 (35_937_000 as Weight)95 // Standard Error: 3_000124 // Standard Error: 3_00096 .saturating_add((22_662_000 as Weight).saturating_mul(s as Weight))125 .saturating_add((23_037_000 as Weight).saturating_mul(s as Weight))97 .saturating_add(T::DbWeight::get().reads(4 as Weight))126 .saturating_add(T::DbWeight::get().reads(4 as Weight))98 .saturating_add(T::DbWeight::get().writes(4 as Weight))127 .saturating_add(T::DbWeight::get().writes(4 as Weight))99 .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))128 .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))100 }129 }130 // Storage: Scheduler Agenda (r:2 w:2)131 // Storage: Scheduler Lookup (r:0 w:1)132 fn on_initialize_named(s: u32, ) -> Weight {133 (10_338_000 as Weight)134 // Standard Error: 2_000135 .saturating_add((9_422_000 as Weight).saturating_mul(s as Weight))136 .saturating_add(T::DbWeight::get().reads(2 as Weight))137 .saturating_add(T::DbWeight::get().writes(2 as Weight))138 .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))139 }140 // Storage: Scheduler Agenda (r:1 w:1)141 // Storage: System Account (r:1 w:1)142 // Storage: System AllExtrinsicsLen (r:1 w:1)143 // Storage: System BlockWeight (r:1 w:1)144 // Storage: Scheduler Lookup (r:0 w:1)145 fn on_initialize(s: u32, ) -> Weight {146 (37_448_000 as Weight)147 // Standard Error: 7_000148 .saturating_add((22_907_000 as Weight).saturating_mul(s as Weight))149 .saturating_add(T::DbWeight::get().reads(4 as Weight))150 .saturating_add(T::DbWeight::get().writes(4 as Weight))151 .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))152 }153 // Storage: Scheduler Agenda (r:1 w:1)154 // Storage: System Account (r:1 w:1)155 // Storage: System AllExtrinsicsLen (r:1 w:1)156 // Storage: System BlockWeight (r:1 w:1)157 // Storage: Scheduler Lookup (r:0 w:1)158 fn on_initialize_resolved(s: u32, ) -> Weight {159 (34_841_000 as Weight)160 // Standard Error: 7_000161 .saturating_add((22_966_000 as Weight).saturating_mul(s as Weight))162 .saturating_add(T::DbWeight::get().reads(4 as Weight))163 .saturating_add(T::DbWeight::get().writes(4 as Weight))164 .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))165 }101 // Storage: Scheduler Lookup (r:1 w:1)166 // Storage: Scheduler Lookup (r:1 w:1)102 // Storage: Scheduler Agenda (r:1 w:1)167 // Storage: Scheduler Agenda (r:1 w:1)103 fn schedule_named(s: u32, ) -> Weight {168 fn schedule_named(s: u32, ) -> Weight {104 (34_561_000 as Weight)169 (33_845_000 as Weight)105 // Standard Error: 0170 // Standard Error: 0106 .saturating_add((161_000 as Weight).saturating_mul(s as Weight))171 .saturating_add((168_000 as Weight).saturating_mul(s as Weight))107 .saturating_add(T::DbWeight::get().reads(2 as Weight))172 .saturating_add(T::DbWeight::get().reads(2 as Weight))108 .saturating_add(T::DbWeight::get().writes(2 as Weight))173 .saturating_add(T::DbWeight::get().writes(2 as Weight))109 }174 }110 // Storage: Scheduler Lookup (r:1 w:1)175 // Storage: Scheduler Lookup (r:1 w:1)111 // Storage: Scheduler Agenda (r:1 w:1)176 // Storage: Scheduler Agenda (r:1 w:1)112 fn cancel_named(s: u32, ) -> Weight {177 fn cancel_named(s: u32, ) -> Weight {113 (30_932_000 as Weight)178 (31_169_000 as Weight)114 // Standard Error: 1_000179 // Standard Error: 1_000115 .saturating_add((1_537_000 as Weight).saturating_mul(s as Weight))180 .saturating_add((1_565_000 as Weight).saturating_mul(s as Weight))116 .saturating_add(T::DbWeight::get().reads(2 as Weight))181 .saturating_add(T::DbWeight::get().reads(2 as Weight))117 .saturating_add(T::DbWeight::get().writes(2 as Weight))182 .saturating_add(T::DbWeight::get().writes(2 as Weight))118 }183 }126 // Storage: System BlockWeight (r:1 w:1)191 // Storage: System BlockWeight (r:1 w:1)127 // Storage: Scheduler Lookup (r:0 w:1)192 // Storage: Scheduler Lookup (r:0 w:1)128 fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {193 fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {129 (39_822_000 as Weight)194 (35_999_000 as Weight)130 // Standard Error: 4_000195 // Standard Error: 3_000131 .saturating_add((31_823_000 as Weight).saturating_mul(s as Weight))196 .saturating_add((32_234_000 as Weight).saturating_mul(s as Weight))132 .saturating_add(RocksDbWeight::get().reads(4 as Weight))197 .saturating_add(RocksDbWeight::get().reads(4 as Weight))133 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))198 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))134 .saturating_add(RocksDbWeight::get().writes(4 as Weight))199 .saturating_add(RocksDbWeight::get().writes(4 as Weight))140 // Storage: System BlockWeight (r:1 w:1)205 // Storage: System BlockWeight (r:1 w:1)141 // Storage: Scheduler Lookup (r:0 w:1)206 // Storage: Scheduler Lookup (r:0 w:1)142 fn on_initialize_named_resolved(s: u32, ) -> Weight {207 fn on_initialize_named_resolved(s: u32, ) -> Weight {143 (36_019_000 as Weight)208 (34_874_000 as Weight)144 // Standard Error: 3_000209 // Standard Error: 2_000145 .saturating_add((22_660_000 as Weight).saturating_mul(s as Weight))210 .saturating_add((23_114_000 as Weight).saturating_mul(s as Weight))146 .saturating_add(RocksDbWeight::get().reads(4 as Weight))211 .saturating_add(RocksDbWeight::get().reads(4 as Weight))147 .saturating_add(RocksDbWeight::get().writes(4 as Weight))212 .saturating_add(RocksDbWeight::get().writes(4 as Weight))148 .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))213 .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))152 // Storage: System AllExtrinsicsLen (r:1 w:1)217 // Storage: System AllExtrinsicsLen (r:1 w:1)153 // Storage: System BlockWeight (r:1 w:1)218 // Storage: System BlockWeight (r:1 w:1)154 // Storage: Scheduler Lookup (r:0 w:1)219 // Storage: Scheduler Lookup (r:0 w:1)220 fn on_initialize_periodic(s: u32, ) -> Weight {221 (36_469_000 as Weight)222 // Standard Error: 3_000223 .saturating_add((32_202_000 as Weight).saturating_mul(s as Weight))224 .saturating_add(RocksDbWeight::get().reads(4 as Weight))225 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))226 .saturating_add(RocksDbWeight::get().writes(4 as Weight))227 .saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))228 }229 // Storage: Scheduler Agenda (r:2 w:2)230 // Storage: System Account (r:1 w:1)231 // Storage: System AllExtrinsicsLen (r:1 w:1)232 // Storage: System BlockWeight (r:1 w:1)233 // Storage: Scheduler Lookup (r:0 w:1)155 fn on_initialize_periodic_resolved(s: u32, ) -> Weight {234 fn on_initialize_periodic_resolved(s: u32, ) -> Weight {156 (36_613_000 as Weight)235 (35_352_000 as Weight)157 // Standard Error: 3_000236 // Standard Error: 3_000158 .saturating_add((31_895_000 as Weight).saturating_mul(s as Weight))237 .saturating_add((32_309_000 as Weight).saturating_mul(s as Weight))159 .saturating_add(RocksDbWeight::get().reads(4 as Weight))238 .saturating_add(RocksDbWeight::get().reads(4 as Weight))160 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))239 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))161 .saturating_add(RocksDbWeight::get().writes(4 as Weight))240 .saturating_add(RocksDbWeight::get().writes(4 as Weight))162 .saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))241 .saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))163 }242 }243 // Storage: Scheduler Agenda (r:2 w:2)244 // Storage: Scheduler Lookup (r:0 w:1)245 fn on_initialize_aborted(s: u32, ) -> Weight {246 (11_267_000 as Weight)247 // Standard Error: 1_000248 .saturating_add((9_368_000 as Weight).saturating_mul(s as Weight))249 .saturating_add(RocksDbWeight::get().reads(2 as Weight))250 .saturating_add(RocksDbWeight::get().writes(2 as Weight))251 .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))252 }164 // Storage: Scheduler Agenda (r:1 w:1)253 // Storage: Scheduler Agenda (r:1 w:1)165 // Storage: System Account (r:1 w:1)254 // Storage: System Account (r:1 w:1)166 // Storage: System AllExtrinsicsLen (r:1 w:1)255 // Storage: System AllExtrinsicsLen (r:1 w:1)167 // Storage: System BlockWeight (r:1 w:1)256 // Storage: System BlockWeight (r:1 w:1)168 // Storage: Scheduler Lookup (r:0 w:1)257 // Storage: Scheduler Lookup (r:0 w:1)258 fn on_initialize_named_aborted(s: u32, ) -> Weight {259 (35_937_000 as Weight)260 // Standard Error: 3_000261 .saturating_add((23_037_000 as Weight).saturating_mul(s as Weight))262 .saturating_add(RocksDbWeight::get().reads(4 as Weight))263 .saturating_add(RocksDbWeight::get().writes(4 as Weight))264 .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))265 }266 // Storage: Scheduler Agenda (r:2 w:2)267 // Storage: Scheduler Lookup (r:0 w:1)268 fn on_initialize_named(s: u32, ) -> Weight {269 (10_338_000 as Weight)270 // Standard Error: 2_000271 .saturating_add((9_422_000 as Weight).saturating_mul(s as Weight))272 .saturating_add(RocksDbWeight::get().reads(2 as Weight))273 .saturating_add(RocksDbWeight::get().writes(2 as Weight))274 .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))275 }276 // Storage: Scheduler Agenda (r:1 w:1)277 // Storage: System Account (r:1 w:1)278 // Storage: System AllExtrinsicsLen (r:1 w:1)279 // Storage: System BlockWeight (r:1 w:1)280 // Storage: Scheduler Lookup (r:0 w:1)281 fn on_initialize(s: u32, ) -> Weight {282 (37_448_000 as Weight)283 // Standard Error: 7_000284 .saturating_add((22_907_000 as Weight).saturating_mul(s as Weight))285 .saturating_add(RocksDbWeight::get().reads(4 as Weight))286 .saturating_add(RocksDbWeight::get().writes(4 as Weight))287 .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))288 }289 // Storage: Scheduler Agenda (r:1 w:1)290 // Storage: System Account (r:1 w:1)291 // Storage: System AllExtrinsicsLen (r:1 w:1)292 // Storage: System BlockWeight (r:1 w:1)293 // Storage: Scheduler Lookup (r:0 w:1)169 fn on_initialize_resolved(s: u32, ) -> Weight {294 fn on_initialize_resolved(s: u32, ) -> Weight {170 (36_252_000 as Weight)295 (34_841_000 as Weight)171 // Standard Error: 3_000296 // Standard Error: 7_000172 .saturating_add((22_662_000 as Weight).saturating_mul(s as Weight))297 .saturating_add((22_966_000 as Weight).saturating_mul(s as Weight))173 .saturating_add(RocksDbWeight::get().reads(4 as Weight))298 .saturating_add(RocksDbWeight::get().reads(4 as Weight))174 .saturating_add(RocksDbWeight::get().writes(4 as Weight))299 .saturating_add(RocksDbWeight::get().writes(4 as Weight))175 .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))300 .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))176 }301 }177 // Storage: Scheduler Lookup (r:1 w:1)302 // Storage: Scheduler Lookup (r:1 w:1)178 // Storage: Scheduler Agenda (r:1 w:1)303 // Storage: Scheduler Agenda (r:1 w:1)179 fn schedule_named(s: u32, ) -> Weight {304 fn schedule_named(s: u32, ) -> Weight {180 (34_561_000 as Weight)305 (33_845_000 as Weight)181 // Standard Error: 0306 // Standard Error: 0182 .saturating_add((161_000 as Weight).saturating_mul(s as Weight))307 .saturating_add((168_000 as Weight).saturating_mul(s as Weight))183 .saturating_add(RocksDbWeight::get().reads(2 as Weight))308 .saturating_add(RocksDbWeight::get().reads(2 as Weight))184 .saturating_add(RocksDbWeight::get().writes(2 as Weight))309 .saturating_add(RocksDbWeight::get().writes(2 as Weight))185 }310 }186 // Storage: Scheduler Lookup (r:1 w:1)311 // Storage: Scheduler Lookup (r:1 w:1)187 // Storage: Scheduler Agenda (r:1 w:1)312 // Storage: Scheduler Agenda (r:1 w:1)188 fn cancel_named(s: u32, ) -> Weight {313 fn cancel_named(s: u32, ) -> Weight {189 (30_932_000 as Weight)314 (31_169_000 as Weight)190 // Standard Error: 1_000315 // Standard Error: 1_000191 .saturating_add((1_537_000 as Weight).saturating_mul(s as Weight))316 .saturating_add((1_565_000 as Weight).saturating_mul(s as Weight))192 .saturating_add(RocksDbWeight::get().reads(2 as Weight))317 .saturating_add(RocksDbWeight::get().reads(2 as Weight))193 .saturating_add(RocksDbWeight::get().writes(2 as Weight))318 .saturating_add(RocksDbWeight::get().writes(2 as Weight))194 }319 }runtime/common/Cargo.tomldiffbeforeafterboth89default-features = false89default-features = false90path = "../../pallets/refungible"90path = "../../pallets/refungible"919192[dependencies.pallet-unq-scheduler]92[dependencies.pallet-unique-scheduler]93default-features = false93default-features = false94path = "../../pallets/scheduler"94path = "../../pallets/scheduler"9595runtime/common/src/runtime_apis.rsdiffbeforeafterboth774 list_benchmark!(list, extra, pallet_fungible, Fungible);774 list_benchmark!(list, extra, pallet_fungible, Fungible);775 list_benchmark!(list, extra, pallet_refungible, Refungible);775 list_benchmark!(list, extra, pallet_refungible, Refungible);776 list_benchmark!(list, extra, pallet_nonfungible, Nonfungible);776 list_benchmark!(list, extra, pallet_nonfungible, Nonfungible);777 list_benchmark!(list, extra, pallet_unq_scheduler, Scheduler);777 list_benchmark!(list, extra, pallet_unique_scheduler, Scheduler);778 // list_benchmark!(list, extra, pallet_evm_coder_substrate, EvmCoderSubstrate);778 // list_benchmark!(list, extra, pallet_evm_coder_substrate, EvmCoderSubstrate);779779780 let storage_info = AllPalletsReversedWithSystemFirst::storage_info();780 let storage_info = AllPalletsReversedWithSystemFirst::storage_info();818 add_benchmark!(params, batches, pallet_fungible, Fungible);818 add_benchmark!(params, batches, pallet_fungible, Fungible);819 add_benchmark!(params, batches, pallet_refungible, Refungible);819 add_benchmark!(params, batches, pallet_refungible, Refungible);820 add_benchmark!(params, batches, pallet_nonfungible, Nonfungible);820 add_benchmark!(params, batches, pallet_nonfungible, Nonfungible);821 add_benchmark!(params, batches, pallet_unq_scheduler, Scheduler);821 add_benchmark!(params, batches, pallet_unique_scheduler, Scheduler);822822823 // add_benchmark!(params, batches, pallet_evm_coder_substrate, EvmCoderSubstrate);823 // add_benchmark!(params, batches, pallet_evm_coder_substrate, EvmCoderSubstrate);824824runtime/opal/Cargo.tomldiffbeforeafterboth36 'pallet-proxy-rmrk-core/runtime-benchmarks',36 'pallet-proxy-rmrk-core/runtime-benchmarks',37 'pallet-unique/runtime-benchmarks',37 'pallet-unique/runtime-benchmarks',38 'pallet-inflation/runtime-benchmarks',38 'pallet-inflation/runtime-benchmarks',39 'pallet-unq-scheduler/runtime-benchmarks',39 'pallet-unique-scheduler/runtime-benchmarks',40 'pallet-xcm/runtime-benchmarks',40 'pallet-xcm/runtime-benchmarks',41 'sp-runtime/runtime-benchmarks',41 'sp-runtime/runtime-benchmarks',42 'xcm-builder/runtime-benchmarks',42 'xcm-builder/runtime-benchmarks',94 'pallet-proxy-rmrk-core/std',94 'pallet-proxy-rmrk-core/std',95 'pallet-proxy-rmrk-equip/std',95 'pallet-proxy-rmrk-equip/std',96 'pallet-unique/std',96 'pallet-unique/std',97 'pallet-unq-scheduler/std',97 'pallet-unique-scheduler/std',98 'pallet-charge-transaction/std',98 'pallet-charge-transaction/std',99 'up-data-structs/std',99 'up-data-structs/std',100 'sp-api/std',100 'sp-api/std',413pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }413pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }414pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }414pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }415pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }415pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }416pallet-unq-scheduler = { path = '../../pallets/scheduler', default-features = false }416pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }417# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }417# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }418pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.22", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }418pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.22", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }419pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }419pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }runtime/opal/src/lib.rsdiffbeforeafterboth68 WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, ConstantMultiplier,68 WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, ConstantMultiplier,69 },69 },70};70};71use pallet_unq_scheduler::DispatchCall;71use pallet_unique_scheduler::DispatchCall;72use up_data_structs::{72use up_data_structs::{73 CollectionId, TokenId, TokenData, Property, PropertyKeyPermission, CollectionLimits,73 CollectionId, TokenId, TokenData, Property, PropertyKeyPermission, CollectionLimits,74 CollectionStats, RpcCollection,74 CollectionStats, RpcCollection,966}966}967967968pub struct SchedulerPaymentExecutor;968pub struct SchedulerPaymentExecutor;969impl<T: frame_system::Config + pallet_unq_scheduler::Config, SelfContainedSignedInfo>969impl<T: frame_system::Config + pallet_unique_scheduler::Config, SelfContainedSignedInfo>970 DispatchCall<T, SelfContainedSignedInfo> for SchedulerPaymentExecutor970 DispatchCall<T, SelfContainedSignedInfo> for SchedulerPaymentExecutor971where971where972 <T as frame_system::Config>::Call: Member972 <T as frame_system::Config>::Call: Member976 + From<frame_system::Call<Runtime>>,976 + From<frame_system::Call<Runtime>>,977 SelfContainedSignedInfo: Send + Sync + 'static,977 SelfContainedSignedInfo: Send + Sync + 'static,978 Call: From<<T as frame_system::Config>::Call>978 Call: From<<T as frame_system::Config>::Call>979 + From<<T as pallet_unq_scheduler::Config>::Call>979 + From<<T as pallet_unique_scheduler::Config>::Call>980 + SelfContainedCall<SignedInfo = SelfContainedSignedInfo>,980 + SelfContainedCall<SignedInfo = SelfContainedSignedInfo>,981 sp_runtime::AccountId32: From<<T as frame_system::Config>::AccountId>,981 sp_runtime::AccountId32: From<<T as frame_system::Config>::AccountId>,982{982{983 fn dispatch_call(983 fn dispatch_call(984 signer: <T as frame_system::Config>::AccountId,984 signer: <T as frame_system::Config>::AccountId,985 call: <T as pallet_unq_scheduler::Config>::Call,985 call: <T as pallet_unique_scheduler::Config>::Call,986 ) -> Result<986 ) -> Result<987 Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>,987 Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>,988 TransactionValidityError,988 TransactionValidityError,1008 fn reserve_balance(1008 fn reserve_balance(1009 id: [u8; 16],1009 id: [u8; 16],1010 sponsor: <T as frame_system::Config>::AccountId,1010 sponsor: <T as frame_system::Config>::AccountId,1011 call: <T as pallet_unq_scheduler::Config>::Call,1011 call: <T as pallet_unique_scheduler::Config>::Call,1012 count: u32,1012 count: u32,1013 ) -> Result<(), DispatchError> {1013 ) -> Result<(), DispatchError> {1014 let dispatch_info = call.get_dispatch_info();1014 let dispatch_info = call.get_dispatch_info();1025 fn pay_for_call(1025 fn pay_for_call(1026 id: [u8; 16],1026 id: [u8; 16],1027 sponsor: <T as frame_system::Config>::AccountId,1027 sponsor: <T as frame_system::Config>::AccountId,1028 call: <T as pallet_unq_scheduler::Config>::Call,1028 call: <T as pallet_unique_scheduler::Config>::Call,1029 ) -> Result<u128, DispatchError> {1029 ) -> Result<u128, DispatchError> {1030 let dispatch_info = call.get_dispatch_info();1030 let dispatch_info = call.get_dispatch_info();1031 let weight: Balance = ChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0);1031 let weight: Balance = ChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0);1066 }1066 }1067}1067}106810681069impl pallet_unq_scheduler::Config for Runtime {1069impl pallet_unique_scheduler::Config for Runtime {1070 type Event = Event;1070 type Event = Event;1071 type Origin = Origin;1071 type Origin = Origin;1072 type Currency = Balances;1072 type Currency = Balances;1155 // Unique Pallets1155 // Unique Pallets1156 Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,1156 Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,1157 Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,1157 Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,1158 Scheduler: pallet_unq_scheduler::{Pallet, Call, Storage, Event<T>} = 62,1158 Scheduler: pallet_unique_scheduler::{Pallet, Call, Storage, Event<T>} = 62,1159 // free = 631159 // free = 631160 Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,1160 Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,1161 // ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,1161 // ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,runtime/quartz/Cargo.tomldiffbeforeafterboth36 'pallet-proxy-rmrk-core/runtime-benchmarks',36 'pallet-proxy-rmrk-core/runtime-benchmarks',37 'pallet-unique/runtime-benchmarks',37 'pallet-unique/runtime-benchmarks',38 'pallet-inflation/runtime-benchmarks',38 'pallet-inflation/runtime-benchmarks',39 'pallet-unq-scheduler/runtime-benchmarks',39 'pallet-unique-scheduler/runtime-benchmarks',40 'pallet-xcm/runtime-benchmarks',40 'pallet-xcm/runtime-benchmarks',41 'sp-runtime/runtime-benchmarks',41 'sp-runtime/runtime-benchmarks',42 'xcm-builder/runtime-benchmarks',42 'xcm-builder/runtime-benchmarks',93 'pallet-nonfungible/std',93 'pallet-nonfungible/std',94 'pallet-proxy-rmrk-core/std',94 'pallet-proxy-rmrk-core/std',95 'pallet-unique/std',95 'pallet-unique/std',96 'pallet-unq-scheduler/std',96 'pallet-unique-scheduler/std',97 'pallet-charge-transaction/std',97 'pallet-charge-transaction/std',98 'up-data-structs/std',98 'up-data-structs/std',99 'sp-api/std',99 'sp-api/std',417pallet-refungible = { default-features = false, path = "../../pallets/refungible" }417pallet-refungible = { default-features = false, path = "../../pallets/refungible" }418pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }418pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }419pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }419pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }420pallet-unq-scheduler = { path = '../../pallets/scheduler', default-features = false }420pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }421# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }421# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }422pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.22", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }422pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.22", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }423pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }423pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }runtime/quartz/src/lib.rsdiffbeforeafterboth68 WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, ConstantMultiplier,68 WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, ConstantMultiplier,69 },69 },70};70};71use pallet_unq_scheduler::DispatchCall;71use pallet_unique_scheduler::DispatchCall;72use up_data_structs::{72use up_data_structs::{73 CollectionId, TokenId, TokenData, Property, PropertyKeyPermission, CollectionLimits, 73 CollectionId, TokenId, TokenData, Property, PropertyKeyPermission, CollectionLimits, 74 CollectionStats, RpcCollection, 74 CollectionStats, RpcCollection, 963}963}964964965pub struct SchedulerPaymentExecutor;965pub struct SchedulerPaymentExecutor;966impl<T: frame_system::Config + pallet_unq_scheduler::Config, SelfContainedSignedInfo>966impl<T: frame_system::Config + pallet_unique_scheduler::Config, SelfContainedSignedInfo>967 DispatchCall<T, SelfContainedSignedInfo> for SchedulerPaymentExecutor967 DispatchCall<T, SelfContainedSignedInfo> for SchedulerPaymentExecutor968where968where969 <T as frame_system::Config>::Call: Member969 <T as frame_system::Config>::Call: Member973 + From<frame_system::Call<Runtime>>,973 + From<frame_system::Call<Runtime>>,974 SelfContainedSignedInfo: Send + Sync + 'static,974 SelfContainedSignedInfo: Send + Sync + 'static,975 Call: From<<T as frame_system::Config>::Call>975 Call: From<<T as frame_system::Config>::Call>976 + From<<T as pallet_unq_scheduler::Config>::Call>976 + From<<T as pallet_unique_scheduler::Config>::Call>977 + SelfContainedCall<SignedInfo = SelfContainedSignedInfo>,977 + SelfContainedCall<SignedInfo = SelfContainedSignedInfo>,978 sp_runtime::AccountId32: From<<T as frame_system::Config>::AccountId>,978 sp_runtime::AccountId32: From<<T as frame_system::Config>::AccountId>,979{979{980 fn dispatch_call(980 fn dispatch_call(981 signer: <T as frame_system::Config>::AccountId,981 signer: <T as frame_system::Config>::AccountId,982 call: <T as pallet_unq_scheduler::Config>::Call,982 call: <T as pallet_unique_scheduler::Config>::Call,983 ) -> Result<983 ) -> Result<984 Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>,984 Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>,985 TransactionValidityError,985 TransactionValidityError,1005 fn reserve_balance(1005 fn reserve_balance(1006 id: [u8; 16],1006 id: [u8; 16],1007 sponsor: <T as frame_system::Config>::AccountId,1007 sponsor: <T as frame_system::Config>::AccountId,1008 call: <T as pallet_unq_scheduler::Config>::Call,1008 call: <T as pallet_unique_scheduler::Config>::Call,1009 count: u32,1009 count: u32,1010 ) -> Result<(), DispatchError> {1010 ) -> Result<(), DispatchError> {1011 let dispatch_info = call.get_dispatch_info();1011 let dispatch_info = call.get_dispatch_info();1022 fn pay_for_call(1022 fn pay_for_call(1023 id: [u8; 16],1023 id: [u8; 16],1024 sponsor: <T as frame_system::Config>::AccountId,1024 sponsor: <T as frame_system::Config>::AccountId,1025 call: <T as pallet_unq_scheduler::Config>::Call,1025 call: <T as pallet_unique_scheduler::Config>::Call,1026 ) -> Result<u128, DispatchError> {1026 ) -> Result<u128, DispatchError> {1027 let dispatch_info = call.get_dispatch_info();1027 let dispatch_info = call.get_dispatch_info();1028 let weight: Balance = ChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0);1028 let weight: Balance = ChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0);1063 }1063 }1064}1064}106510651066impl pallet_unq_scheduler::Config for Runtime {1066impl pallet_unique_scheduler::Config for Runtime {1067 type Event = Event;1067 type Event = Event;1068 type Origin = Origin;1068 type Origin = Origin;1069 type Currency = Balances;1069 type Currency = Balances;1151 // Unique Pallets1151 // Unique Pallets1152 Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,1152 Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,1153 Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,1153 Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,1154 Scheduler: pallet_unq_scheduler::{Pallet, Call, Storage, Event<T>} = 62,1154 Scheduler: pallet_unique_scheduler::{Pallet, Call, Storage, Event<T>} = 62,1155 // free = 631155 // free = 631156 Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,1156 Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,1157 // ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,1157 // ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,runtime/unique/Cargo.tomldiffbeforeafterboth36 'pallet-proxy-rmrk-core/runtime-benchmarks',36 'pallet-proxy-rmrk-core/runtime-benchmarks',37 'pallet-unique/runtime-benchmarks',37 'pallet-unique/runtime-benchmarks',38 'pallet-inflation/runtime-benchmarks',38 'pallet-inflation/runtime-benchmarks',39 'pallet-unq-scheduler/runtime-benchmarks',39 'pallet-unique-scheduler/runtime-benchmarks',40 'pallet-xcm/runtime-benchmarks',40 'pallet-xcm/runtime-benchmarks',41 'sp-runtime/runtime-benchmarks',41 'sp-runtime/runtime-benchmarks',42 'xcm-builder/runtime-benchmarks',42 'xcm-builder/runtime-benchmarks',94 'pallet-nonfungible/std',94 'pallet-nonfungible/std',95 'pallet-proxy-rmrk-core/std',95 'pallet-proxy-rmrk-core/std',96 'pallet-unique/std',96 'pallet-unique/std',97 'pallet-unq-scheduler/std',97 'pallet-unique-scheduler/std',98 'pallet-charge-transaction/std',98 'pallet-charge-transaction/std',99 'up-data-structs/std',99 'up-data-structs/std',100 'sp-api/std',100 'sp-api/std',410pallet-refungible = { default-features = false, path = "../../pallets/refungible" }410pallet-refungible = { default-features = false, path = "../../pallets/refungible" }411pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }411pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }412pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }412pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }413pallet-unq-scheduler = { path = '../../pallets/scheduler', default-features = false }413pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }414# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }414# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }415pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.22", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }415pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.22", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }416pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }416pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }runtime/unique/src/lib.rsdiffbeforeafterboth68 WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, ConstantMultiplier,68 WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, ConstantMultiplier,69 },69 },70};70};71use pallet_unq_scheduler::DispatchCall;71use pallet_unique_scheduler::DispatchCall;72use up_data_structs::{72use up_data_structs::{73 CollectionId, TokenId, TokenData, Property, PropertyKeyPermission, CollectionLimits,73 CollectionId, TokenId, TokenData, Property, PropertyKeyPermission, CollectionLimits,74 CollectionStats, RpcCollection,74 CollectionStats, RpcCollection,962}962}963963964pub struct SchedulerPaymentExecutor;964pub struct SchedulerPaymentExecutor;965impl<T: frame_system::Config + pallet_unq_scheduler::Config, SelfContainedSignedInfo>965impl<T: frame_system::Config + pallet_unique_scheduler::Config, SelfContainedSignedInfo>966 DispatchCall<T, SelfContainedSignedInfo> for SchedulerPaymentExecutor966 DispatchCall<T, SelfContainedSignedInfo> for SchedulerPaymentExecutor967where967where968 <T as frame_system::Config>::Call: Member968 <T as frame_system::Config>::Call: Member972 + From<frame_system::Call<Runtime>>,972 + From<frame_system::Call<Runtime>>,973 SelfContainedSignedInfo: Send + Sync + 'static,973 SelfContainedSignedInfo: Send + Sync + 'static,974 Call: From<<T as frame_system::Config>::Call>974 Call: From<<T as frame_system::Config>::Call>975 + From<<T as pallet_unq_scheduler::Config>::Call>975 + From<<T as pallet_unique_scheduler::Config>::Call>976 + SelfContainedCall<SignedInfo = SelfContainedSignedInfo>,976 + SelfContainedCall<SignedInfo = SelfContainedSignedInfo>,977 sp_runtime::AccountId32: From<<T as frame_system::Config>::AccountId>,977 sp_runtime::AccountId32: From<<T as frame_system::Config>::AccountId>,978{978{979 fn dispatch_call(979 fn dispatch_call(980 signer: <T as frame_system::Config>::AccountId,980 signer: <T as frame_system::Config>::AccountId,981 call: <T as pallet_unq_scheduler::Config>::Call,981 call: <T as pallet_unique_scheduler::Config>::Call,982 ) -> Result<982 ) -> Result<983 Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>,983 Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>,984 TransactionValidityError,984 TransactionValidityError,1004 fn reserve_balance(1004 fn reserve_balance(1005 id: [u8; 16],1005 id: [u8; 16],1006 sponsor: <T as frame_system::Config>::AccountId,1006 sponsor: <T as frame_system::Config>::AccountId,1007 call: <T as pallet_unq_scheduler::Config>::Call,1007 call: <T as pallet_unique_scheduler::Config>::Call,1008 count: u32,1008 count: u32,1009 ) -> Result<(), DispatchError> {1009 ) -> Result<(), DispatchError> {1010 let dispatch_info = call.get_dispatch_info();1010 let dispatch_info = call.get_dispatch_info();1021 fn pay_for_call(1021 fn pay_for_call(1022 id: [u8; 16],1022 id: [u8; 16],1023 sponsor: <T as frame_system::Config>::AccountId,1023 sponsor: <T as frame_system::Config>::AccountId,1024 call: <T as pallet_unq_scheduler::Config>::Call,1024 call: <T as pallet_unique_scheduler::Config>::Call,1025 ) -> Result<u128, DispatchError> {1025 ) -> Result<u128, DispatchError> {1026 let dispatch_info = call.get_dispatch_info();1026 let dispatch_info = call.get_dispatch_info();1027 let weight: Balance = ChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0);1027 let weight: Balance = ChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0);1062 }1062 }1063}1063}106410641065impl pallet_unq_scheduler::Config for Runtime {1065impl pallet_unique_scheduler::Config for Runtime {1066 type Event = Event;1066 type Event = Event;1067 type Origin = Origin;1067 type Origin = Origin;1068 type Currency = Balances;1068 type Currency = Balances;1150 // Unique Pallets1150 // Unique Pallets1151 Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,1151 Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,1152 Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,1152 Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,1153 Scheduler: pallet_unq_scheduler::{Pallet, Call, Storage, Event<T>} = 62,1153 Scheduler: pallet_unique_scheduler::{Pallet, Call, Storage, Event<T>} = 62,1154 // free = 631154 // free = 631155 Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,1155 Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,1156 // ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,1156 // ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,