difftreelog
Missed tests was added. Scheduler pallet renamed.
in: master
13 files changed
Makefilediffbeforeafterboth--- a/Makefile
+++ b/Makefile
@@ -103,7 +103,7 @@
.PHONY: bench-scheduler
bench-scheduler:
- make _bench2 PALLET=unq-scheduler PALLET_DIR=scheduler
+ make _bench2 PALLET=unique-scheduler PALLET_DIR=scheduler
.PHONY: bench
bench: bench-evm-migration bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible bench-scheduler
pallets/scheduler/Cargo.tomldiffbeforeafterboth--- a/pallets/scheduler/Cargo.toml
+++ b/pallets/scheduler/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "pallet-unq-scheduler"
+name = "pallet-unique-scheduler"
version = "0.1.0"
authors = ["Unique Network <support@uniquenetwork.io>"]
edition = "2021"
pallets/scheduler/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/scheduler/src/benchmarking.rs
+++ b/pallets/scheduler/src/benchmarking.rs
@@ -123,6 +123,18 @@
assert!(Agenda::<T>::iter().count() == 0);
}
+ on_initialize_periodic {
+ let s in 1 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+ fill_schedule::<T>(when, s, true, Some(false))?;
+ }: { Scheduler::<T>::on_initialize(when); }
+ verify {
+ assert_eq!(System::<T>::event_count(), s);
+ for i in 0..s {
+ assert_eq!(Agenda::<T>::get(when + (i + 100).into()).len(), 1 as usize);
+ }
+ }
+
on_initialize_periodic_resolved {
let s in 1 .. T::MaxScheduledPerBlock::get();
let when = BLOCK_NUMBER.into();
@@ -135,6 +147,42 @@
}
}
+ on_initialize_aborted {
+ let s in 1 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+ fill_schedule::<T>(when, s, false, None)?;
+ }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }
+ verify {
+ assert_eq!(System::<T>::event_count(), 0);
+ }
+
+ on_initialize_named_aborted {
+ let s in 1 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+ fill_schedule::<T>(when, s, false, Some(false))?;
+ }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }
+ verify {
+ }
+
+ on_initialize_named {
+ let s in 1 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+ fill_schedule::<T>(when, s, false, None)?;
+ }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }
+ verify {
+ assert_eq!(System::<T>::event_count(), 0);
+ }
+
+ on_initialize {
+ let s in 1 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+ fill_schedule::<T>(when, s, false, Some(false))?;
+ }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }
+ verify {
+ assert_eq!(System::<T>::event_count(), s);
+ assert!(Agenda::<T>::iter().count() == 0);
+ }
+
on_initialize_resolved {
let s in 1 .. T::MaxScheduledPerBlock::get();
let when = BLOCK_NUMBER.into();
pallets/scheduler/src/lib.rsdiffbeforeafterboth--- a/pallets/scheduler/src/lib.rs
+++ b/pallets/scheduler/src/lib.rs
@@ -158,11 +158,10 @@
Self::on_initialize_periodic(2) - Self::on_initialize_periodic(1)
}
(true, true, Some(false)) => {
- Self::on_initialize_periodic_named(2) - Self::on_initialize_periodic_named(1)
- }
- (false, false, Some(true)) => {
- Self::on_initialize_resolved(2) - Self::on_initialize_resolved(1)
+ Self::on_initialize_periodic_named_resolved(2)
+ - Self::on_initialize_periodic_named_resolved(1)
}
+ (false, false, Some(true)) => Self::on_initialize(2) - Self::on_initialize(1),
(false, true, Some(true)) => {
Self::on_initialize_named_resolved(2) - Self::on_initialize_named_resolved(1)
}
pallets/scheduler/src/weights.rsdiffbeforeafterboth--- a/pallets/scheduler/src/weights.rs
+++ b/pallets/scheduler/src/weights.rs
@@ -1,6 +1,6 @@
// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs
-//! Autogenerated weights for pallet_unq_scheduler
+//! Autogenerated weights for pallet_unique_scheduler
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-06-09, STEPS: `50`, REPEAT: 200, LOW RANGE: `[]`, HIGH RANGE: `[]`
@@ -11,7 +11,7 @@
// benchmark
// pallet
// --pallet
-// pallet-unq-scheduler
+// pallet-unique-scheduler
// --wasm-execution
// compiled
// --extrinsic
@@ -31,17 +31,22 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use sp_std::marker::PhantomData;
-/// Weight functions needed for pallet_unq_scheduler.
+/// Weight functions needed for pallet_unique_scheduler.
pub trait WeightInfo {
fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight;
fn on_initialize_named_resolved(s: u32, ) -> Weight;
+ fn on_initialize_periodic(s: u32, ) -> Weight;
fn on_initialize_periodic_resolved(s: u32, ) -> Weight;
+ fn on_initialize_aborted(s: u32, ) -> Weight;
+ fn on_initialize_named_aborted(s: u32, ) -> Weight;
+ fn on_initialize_named(s: u32, ) -> Weight;
+ fn on_initialize(s: u32, ) -> Weight;
fn on_initialize_resolved(s: u32, ) -> Weight;
fn schedule_named(s: u32, ) -> Weight;
fn cancel_named(s: u32, ) -> Weight;
}
-/// Weights for pallet_unq_scheduler using the Substrate node and recommended hardware.
+/// Weights for pallet_unique_scheduler using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Scheduler Agenda (r:2 w:2)
@@ -50,9 +55,9 @@
// Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {
- (39_822_000 as Weight)
- // Standard Error: 4_000
- .saturating_add((31_823_000 as Weight).saturating_mul(s as Weight))
+ (35_999_000 as Weight)
+ // Standard Error: 3_000
+ .saturating_add((32_234_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
@@ -64,9 +69,9 @@
// Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_named_resolved(s: u32, ) -> Weight {
- (36_019_000 as Weight)
- // Standard Error: 3_000
- .saturating_add((22_660_000 as Weight).saturating_mul(s as Weight))
+ (34_874_000 as Weight)
+ // Standard Error: 2_000
+ .saturating_add((23_114_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
@@ -76,24 +81,84 @@
// Storage: System AllExtrinsicsLen (r:1 w:1)
// Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
+ fn on_initialize_periodic(s: u32, ) -> Weight {
+ (36_469_000 as Weight)
+ // Standard Error: 3_000
+ .saturating_add((32_202_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(4 as Weight))
+ .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
+ .saturating_add(T::DbWeight::get().writes(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
+ }
+ // Storage: Scheduler Agenda (r:2 w:2)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
+ // Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_periodic_resolved(s: u32, ) -> Weight {
- (36_613_000 as Weight)
+ (35_352_000 as Weight)
// Standard Error: 3_000
- .saturating_add((31_895_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add((32_309_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
}
+ // Storage: Scheduler Agenda (r:2 w:2)
+ // Storage: Scheduler Lookup (r:0 w:1)
+ fn on_initialize_aborted(s: u32, ) -> Weight {
+ (11_267_000 as Weight)
+ // Standard Error: 1_000
+ .saturating_add((9_368_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(2 as Weight))
+ .saturating_add(T::DbWeight::get().writes(2 as Weight))
+ .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
+ }
+ // Storage: Scheduler Agenda (r:1 w:1)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
+ // Storage: Scheduler Lookup (r:0 w:1)
+ fn on_initialize_named_aborted(s: u32, ) -> Weight {
+ (35_937_000 as Weight)
+ // Standard Error: 3_000
+ .saturating_add((23_037_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
+ }
+ // Storage: Scheduler Agenda (r:2 w:2)
+ // Storage: Scheduler Lookup (r:0 w:1)
+ fn on_initialize_named(s: u32, ) -> Weight {
+ (10_338_000 as Weight)
+ // Standard Error: 2_000
+ .saturating_add((9_422_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(2 as Weight))
+ .saturating_add(T::DbWeight::get().writes(2 as Weight))
+ .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
+ }
+ // Storage: Scheduler Agenda (r:1 w:1)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
+ // Storage: Scheduler Lookup (r:0 w:1)
+ fn on_initialize(s: u32, ) -> Weight {
+ (37_448_000 as Weight)
+ // Standard Error: 7_000
+ .saturating_add((22_907_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
+ }
// Storage: Scheduler Agenda (r:1 w:1)
// Storage: System Account (r:1 w:1)
// Storage: System AllExtrinsicsLen (r:1 w:1)
// Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_resolved(s: u32, ) -> Weight {
- (36_252_000 as Weight)
- // Standard Error: 3_000
- .saturating_add((22_662_000 as Weight).saturating_mul(s as Weight))
+ (34_841_000 as Weight)
+ // Standard Error: 7_000
+ .saturating_add((22_966_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
@@ -101,18 +166,18 @@
// Storage: Scheduler Lookup (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn schedule_named(s: u32, ) -> Weight {
- (34_561_000 as Weight)
+ (33_845_000 as Weight)
// Standard Error: 0
- .saturating_add((161_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add((168_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Scheduler Lookup (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn cancel_named(s: u32, ) -> Weight {
- (30_932_000 as Weight)
+ (31_169_000 as Weight)
// Standard Error: 1_000
- .saturating_add((1_537_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add((1_565_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
@@ -126,9 +191,9 @@
// Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {
- (39_822_000 as Weight)
- // Standard Error: 4_000
- .saturating_add((31_823_000 as Weight).saturating_mul(s as Weight))
+ (35_999_000 as Weight)
+ // Standard Error: 3_000
+ .saturating_add((32_234_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
@@ -140,12 +205,26 @@
// Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_named_resolved(s: u32, ) -> Weight {
- (36_019_000 as Weight)
+ (34_874_000 as Weight)
+ // Standard Error: 2_000
+ .saturating_add((23_114_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
+ }
+ // Storage: Scheduler Agenda (r:2 w:2)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
+ // Storage: Scheduler Lookup (r:0 w:1)
+ fn on_initialize_periodic(s: u32, ) -> Weight {
+ (36_469_000 as Weight)
// Standard Error: 3_000
- .saturating_add((22_660_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add((32_202_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
+ .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
- .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
+ .saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
}
// Storage: Scheduler Agenda (r:2 w:2)
// Storage: System Account (r:1 w:1)
@@ -153,23 +232,69 @@
// Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_periodic_resolved(s: u32, ) -> Weight {
- (36_613_000 as Weight)
+ (35_352_000 as Weight)
// Standard Error: 3_000
- .saturating_add((31_895_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add((32_309_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
.saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
}
+ // Storage: Scheduler Agenda (r:2 w:2)
+ // Storage: Scheduler Lookup (r:0 w:1)
+ fn on_initialize_aborted(s: u32, ) -> Weight {
+ (11_267_000 as Weight)
+ // Standard Error: 1_000
+ .saturating_add((9_368_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(2 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(2 as Weight))
+ .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
+ }
+ // Storage: Scheduler Agenda (r:1 w:1)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
+ // Storage: Scheduler Lookup (r:0 w:1)
+ fn on_initialize_named_aborted(s: u32, ) -> Weight {
+ (35_937_000 as Weight)
+ // Standard Error: 3_000
+ .saturating_add((23_037_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
+ }
+ // Storage: Scheduler Agenda (r:2 w:2)
+ // Storage: Scheduler Lookup (r:0 w:1)
+ fn on_initialize_named(s: u32, ) -> Weight {
+ (10_338_000 as Weight)
+ // Standard Error: 2_000
+ .saturating_add((9_422_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(2 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(2 as Weight))
+ .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
+ }
+ // Storage: Scheduler Agenda (r:1 w:1)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
+ // Storage: Scheduler Lookup (r:0 w:1)
+ fn on_initialize(s: u32, ) -> Weight {
+ (37_448_000 as Weight)
+ // Standard Error: 7_000
+ .saturating_add((22_907_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
+ }
// Storage: Scheduler Agenda (r:1 w:1)
// Storage: System Account (r:1 w:1)
// Storage: System AllExtrinsicsLen (r:1 w:1)
// Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_resolved(s: u32, ) -> Weight {
- (36_252_000 as Weight)
- // Standard Error: 3_000
- .saturating_add((22_662_000 as Weight).saturating_mul(s as Weight))
+ (34_841_000 as Weight)
+ // Standard Error: 7_000
+ .saturating_add((22_966_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
@@ -177,18 +302,18 @@
// Storage: Scheduler Lookup (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn schedule_named(s: u32, ) -> Weight {
- (34_561_000 as Weight)
+ (33_845_000 as Weight)
// Standard Error: 0
- .saturating_add((161_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add((168_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
// Storage: Scheduler Lookup (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn cancel_named(s: u32, ) -> Weight {
- (30_932_000 as Weight)
+ (31_169_000 as Weight)
// Standard Error: 1_000
- .saturating_add((1_537_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add((1_565_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
runtime/common/Cargo.tomldiffbeforeafterboth--- a/runtime/common/Cargo.toml
+++ b/runtime/common/Cargo.toml
@@ -89,7 +89,7 @@
default-features = false
path = "../../pallets/refungible"
-[dependencies.pallet-unq-scheduler]
+[dependencies.pallet-unique-scheduler]
default-features = false
path = "../../pallets/scheduler"
runtime/common/src/runtime_apis.rsdiffbeforeafterboth--- a/runtime/common/src/runtime_apis.rs
+++ b/runtime/common/src/runtime_apis.rs
@@ -774,7 +774,7 @@
list_benchmark!(list, extra, pallet_fungible, Fungible);
list_benchmark!(list, extra, pallet_refungible, Refungible);
list_benchmark!(list, extra, pallet_nonfungible, Nonfungible);
- list_benchmark!(list, extra, pallet_unq_scheduler, Scheduler);
+ list_benchmark!(list, extra, pallet_unique_scheduler, Scheduler);
// list_benchmark!(list, extra, pallet_evm_coder_substrate, EvmCoderSubstrate);
let storage_info = AllPalletsReversedWithSystemFirst::storage_info();
@@ -818,7 +818,7 @@
add_benchmark!(params, batches, pallet_fungible, Fungible);
add_benchmark!(params, batches, pallet_refungible, Refungible);
add_benchmark!(params, batches, pallet_nonfungible, Nonfungible);
- add_benchmark!(params, batches, pallet_unq_scheduler, Scheduler);
+ add_benchmark!(params, batches, pallet_unique_scheduler, Scheduler);
// add_benchmark!(params, batches, pallet_evm_coder_substrate, EvmCoderSubstrate);
runtime/opal/Cargo.tomldiffbeforeafterboth--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -36,7 +36,7 @@
'pallet-proxy-rmrk-core/runtime-benchmarks',
'pallet-unique/runtime-benchmarks',
'pallet-inflation/runtime-benchmarks',
- 'pallet-unq-scheduler/runtime-benchmarks',
+ 'pallet-unique-scheduler/runtime-benchmarks',
'pallet-xcm/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
'xcm-builder/runtime-benchmarks',
@@ -94,7 +94,7 @@
'pallet-proxy-rmrk-core/std',
'pallet-proxy-rmrk-equip/std',
'pallet-unique/std',
- 'pallet-unq-scheduler/std',
+ 'pallet-unique-scheduler/std',
'pallet-charge-transaction/std',
'up-data-structs/std',
'sp-api/std',
@@ -413,7 +413,7 @@
pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }
pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }
pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }
-pallet-unq-scheduler = { path = '../../pallets/scheduler', default-features = false }
+pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }
# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }
pallet-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" }
pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }
runtime/opal/src/lib.rsdiffbeforeafterboth--- a/runtime/opal/src/lib.rs
+++ b/runtime/opal/src/lib.rs
@@ -68,7 +68,7 @@
WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, ConstantMultiplier,
},
};
-use pallet_unq_scheduler::DispatchCall;
+use pallet_unique_scheduler::DispatchCall;
use up_data_structs::{
CollectionId, TokenId, TokenData, Property, PropertyKeyPermission, CollectionLimits,
CollectionStats, RpcCollection,
@@ -966,7 +966,7 @@
}
pub struct SchedulerPaymentExecutor;
-impl<T: frame_system::Config + pallet_unq_scheduler::Config, SelfContainedSignedInfo>
+impl<T: frame_system::Config + pallet_unique_scheduler::Config, SelfContainedSignedInfo>
DispatchCall<T, SelfContainedSignedInfo> for SchedulerPaymentExecutor
where
<T as frame_system::Config>::Call: Member
@@ -976,13 +976,13 @@
+ From<frame_system::Call<Runtime>>,
SelfContainedSignedInfo: Send + Sync + 'static,
Call: From<<T as frame_system::Config>::Call>
- + From<<T as pallet_unq_scheduler::Config>::Call>
+ + From<<T as pallet_unique_scheduler::Config>::Call>
+ SelfContainedCall<SignedInfo = SelfContainedSignedInfo>,
sp_runtime::AccountId32: From<<T as frame_system::Config>::AccountId>,
{
fn dispatch_call(
signer: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
) -> Result<
Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>,
TransactionValidityError,
@@ -1008,7 +1008,7 @@
fn reserve_balance(
id: [u8; 16],
sponsor: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
count: u32,
) -> Result<(), DispatchError> {
let dispatch_info = call.get_dispatch_info();
@@ -1025,7 +1025,7 @@
fn pay_for_call(
id: [u8; 16],
sponsor: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
) -> Result<u128, DispatchError> {
let dispatch_info = call.get_dispatch_info();
let weight: Balance = ChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0);
@@ -1066,7 +1066,7 @@
}
}
-impl pallet_unq_scheduler::Config for Runtime {
+impl pallet_unique_scheduler::Config for Runtime {
type Event = Event;
type Origin = Origin;
type Currency = Balances;
@@ -1155,7 +1155,7 @@
// Unique Pallets
Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,
Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,
- Scheduler: pallet_unq_scheduler::{Pallet, Call, Storage, Event<T>} = 62,
+ Scheduler: pallet_unique_scheduler::{Pallet, Call, Storage, Event<T>} = 62,
// free = 63
Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,
// ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,
runtime/quartz/Cargo.tomldiffbeforeafterboth--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -36,7 +36,7 @@
'pallet-proxy-rmrk-core/runtime-benchmarks',
'pallet-unique/runtime-benchmarks',
'pallet-inflation/runtime-benchmarks',
- 'pallet-unq-scheduler/runtime-benchmarks',
+ 'pallet-unique-scheduler/runtime-benchmarks',
'pallet-xcm/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
'xcm-builder/runtime-benchmarks',
@@ -93,7 +93,7 @@
'pallet-nonfungible/std',
'pallet-proxy-rmrk-core/std',
'pallet-unique/std',
- 'pallet-unq-scheduler/std',
+ 'pallet-unique-scheduler/std',
'pallet-charge-transaction/std',
'up-data-structs/std',
'sp-api/std',
@@ -417,7 +417,7 @@
pallet-refungible = { default-features = false, path = "../../pallets/refungible" }
pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }
pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }
-pallet-unq-scheduler = { path = '../../pallets/scheduler', default-features = false }
+pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }
# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }
pallet-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" }
pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }
runtime/quartz/src/lib.rsdiffbeforeafterboth--- a/runtime/quartz/src/lib.rs
+++ b/runtime/quartz/src/lib.rs
@@ -68,7 +68,7 @@
WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, ConstantMultiplier,
},
};
-use pallet_unq_scheduler::DispatchCall;
+use pallet_unique_scheduler::DispatchCall;
use up_data_structs::{
CollectionId, TokenId, TokenData, Property, PropertyKeyPermission, CollectionLimits,
CollectionStats, RpcCollection,
@@ -963,7 +963,7 @@
}
pub struct SchedulerPaymentExecutor;
-impl<T: frame_system::Config + pallet_unq_scheduler::Config, SelfContainedSignedInfo>
+impl<T: frame_system::Config + pallet_unique_scheduler::Config, SelfContainedSignedInfo>
DispatchCall<T, SelfContainedSignedInfo> for SchedulerPaymentExecutor
where
<T as frame_system::Config>::Call: Member
@@ -973,13 +973,13 @@
+ From<frame_system::Call<Runtime>>,
SelfContainedSignedInfo: Send + Sync + 'static,
Call: From<<T as frame_system::Config>::Call>
- + From<<T as pallet_unq_scheduler::Config>::Call>
+ + From<<T as pallet_unique_scheduler::Config>::Call>
+ SelfContainedCall<SignedInfo = SelfContainedSignedInfo>,
sp_runtime::AccountId32: From<<T as frame_system::Config>::AccountId>,
{
fn dispatch_call(
signer: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
) -> Result<
Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>,
TransactionValidityError,
@@ -1005,7 +1005,7 @@
fn reserve_balance(
id: [u8; 16],
sponsor: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
count: u32,
) -> Result<(), DispatchError> {
let dispatch_info = call.get_dispatch_info();
@@ -1022,7 +1022,7 @@
fn pay_for_call(
id: [u8; 16],
sponsor: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
) -> Result<u128, DispatchError> {
let dispatch_info = call.get_dispatch_info();
let weight: Balance = ChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0);
@@ -1063,7 +1063,7 @@
}
}
-impl pallet_unq_scheduler::Config for Runtime {
+impl pallet_unique_scheduler::Config for Runtime {
type Event = Event;
type Origin = Origin;
type Currency = Balances;
@@ -1151,7 +1151,7 @@
// Unique Pallets
Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,
Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,
- Scheduler: pallet_unq_scheduler::{Pallet, Call, Storage, Event<T>} = 62,
+ Scheduler: pallet_unique_scheduler::{Pallet, Call, Storage, Event<T>} = 62,
// free = 63
Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,
// ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,
runtime/unique/Cargo.tomldiffbeforeafterboth1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Unique Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'unique-runtime'12repository = 'https://github.com/UniqueNetwork/unique-chain'13version = '0.9.22'1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std']20runtime-benchmarks = [21 'hex-literal',22 'frame-benchmarking',23 'frame-support/runtime-benchmarks',24 'frame-system-benchmarking',25 'frame-system/runtime-benchmarks',26 'pallet-ethereum/runtime-benchmarks',27 'pallet-evm-migration/runtime-benchmarks',28 'pallet-evm-coder-substrate/runtime-benchmarks',29 'pallet-balances/runtime-benchmarks',30 'pallet-timestamp/runtime-benchmarks',31 'pallet-common/runtime-benchmarks',32 'pallet-structure/runtime-benchmarks',33 'pallet-fungible/runtime-benchmarks',34 'pallet-refungible/runtime-benchmarks',35 'pallet-nonfungible/runtime-benchmarks',36 'pallet-proxy-rmrk-core/runtime-benchmarks',37 'pallet-unique/runtime-benchmarks',38 'pallet-inflation/runtime-benchmarks',39 'pallet-unq-scheduler/runtime-benchmarks',40 'pallet-xcm/runtime-benchmarks',41 'sp-runtime/runtime-benchmarks',42 'xcm-builder/runtime-benchmarks',43 'up-data-structs/runtime-benchmarks',44]45try-runtime = [46 'frame-try-runtime',47 'frame-executive/try-runtime',48 'frame-system/try-runtime',49]50std = [51 'codec/std',52 'cumulus-pallet-aura-ext/std',53 'cumulus-pallet-parachain-system/std',54 'cumulus-pallet-xcm/std',55 'cumulus-pallet-xcmp-queue/std',56 'cumulus-primitives-core/std',57 'cumulus-primitives-utility/std',58 'frame-try-runtime/std',59 'frame-executive/std',60 'frame-support/std',61 'frame-system/std',62 'frame-system-rpc-runtime-api/std',63 'pallet-aura/std',64 'pallet-balances/std',65 # 'pallet-contracts/std',66 # 'pallet-contracts-primitives/std',67 # 'pallet-contracts-rpc-runtime-api/std',68 # 'pallet-contract-helpers/std',69 'pallet-randomness-collective-flip/std',70 'pallet-sudo/std',71 'pallet-timestamp/std',72 'pallet-transaction-payment/std',73 'pallet-transaction-payment-rpc-runtime-api/std',74 'pallet-treasury/std',75 # 'pallet-vesting/std',76 'pallet-evm/std',77 'pallet-evm-migration/std',78 'pallet-evm-contract-helpers/std',79 'pallet-evm-transaction-payment/std',80 'pallet-evm-coder-substrate/std',81 'pallet-ethereum/std',82 'pallet-base-fee/std',83 'fp-rpc/std',84 'up-rpc/std',85 'fp-evm-mapping/std',86 'fp-self-contained/std',87 'parachain-info/std',88 'serde',89 'pallet-inflation/std',90 'pallet-common/std',91 'pallet-structure/std',92 'pallet-fungible/std',93 'pallet-refungible/std',94 'pallet-nonfungible/std',95 'pallet-proxy-rmrk-core/std',96 'pallet-unique/std',97 'pallet-unq-scheduler/std',98 'pallet-charge-transaction/std',99 'up-data-structs/std',100 'sp-api/std',101 'sp-block-builder/std',102 "sp-consensus-aura/std",103 'sp-core/std',104 'sp-inherents/std',105 'sp-io/std',106 'sp-offchain/std',107 'sp-runtime/std',108 'sp-session/std',109 'sp-std/std',110 'sp-transaction-pool/std',111 'sp-version/std',112 'xcm/std',113 'xcm-builder/std',114 'xcm-executor/std',115 'unique-runtime-common/std',116117 "orml-vesting/std",118]119limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']120121################################################################################122# Substrate Dependencies123124[dependencies.codec]125default-features = false126features = ['derive']127package = 'parity-scale-codec'128version = '3.1.2'129130[dependencies.frame-benchmarking]131default-features = false132git = "https://github.com/paritytech/substrate"133optional = true134branch = "polkadot-v0.9.22"135136[dependencies.frame-try-runtime]137default-features = false138git = 'https://github.com/paritytech/substrate'139optional = true140branch = 'polkadot-v0.9.22'141142[dependencies.frame-executive]143default-features = false144git = "https://github.com/paritytech/substrate"145branch = "polkadot-v0.9.22"146147[dependencies.frame-support]148default-features = false149git = "https://github.com/paritytech/substrate"150branch = "polkadot-v0.9.22"151152[dependencies.frame-system]153default-features = false154git = "https://github.com/paritytech/substrate"155branch = "polkadot-v0.9.22"156157[dependencies.frame-system-benchmarking]158default-features = false159git = "https://github.com/paritytech/substrate"160optional = true161branch = "polkadot-v0.9.22"162163[dependencies.frame-system-rpc-runtime-api]164default-features = false165git = "https://github.com/paritytech/substrate"166branch = "polkadot-v0.9.22"167168[dependencies.hex-literal]169optional = true170version = '0.3.3'171172[dependencies.serde]173default-features = false174features = ['derive']175optional = true176version = '1.0.130'177178[dependencies.pallet-aura]179default-features = false180git = "https://github.com/paritytech/substrate"181branch = "polkadot-v0.9.22"182183[dependencies.pallet-balances]184default-features = false185git = "https://github.com/paritytech/substrate"186branch = "polkadot-v0.9.22"187188# Contracts specific packages189# [dependencies.pallet-contracts]190# git = 'https://github.com/paritytech/substrate'191# default-features = false192# branch = 'master'193# version = '4.0.0-dev'194195# [dependencies.pallet-contracts-primitives]196# git = 'https://github.com/paritytech/substrate'197# default-features = false198# branch = 'master'199# version = '4.0.0-dev'200201# [dependencies.pallet-contracts-rpc-runtime-api]202# git = 'https://github.com/paritytech/substrate'203# default-features = false204# branch = 'master'205# version = '4.0.0-dev'206207[dependencies.pallet-randomness-collective-flip]208default-features = false209git = "https://github.com/paritytech/substrate"210branch = "polkadot-v0.9.22"211212[dependencies.pallet-sudo]213default-features = false214git = "https://github.com/paritytech/substrate"215branch = "polkadot-v0.9.22"216217[dependencies.pallet-timestamp]218default-features = false219git = "https://github.com/paritytech/substrate"220branch = "polkadot-v0.9.22"221222[dependencies.pallet-transaction-payment]223default-features = false224git = "https://github.com/paritytech/substrate"225branch = "polkadot-v0.9.22"226227[dependencies.pallet-transaction-payment-rpc-runtime-api]228default-features = false229git = "https://github.com/paritytech/substrate"230branch = "polkadot-v0.9.22"231232[dependencies.pallet-treasury]233default-features = false234git = "https://github.com/paritytech/substrate"235branch = "polkadot-v0.9.22"236237# [dependencies.pallet-vesting]238# default-features = false239# git = 'https://github.com/paritytech/substrate'240# branch = 'master'241242[dependencies.sp-arithmetic]243default-features = false244git = "https://github.com/paritytech/substrate"245branch = "polkadot-v0.9.22"246247[dependencies.sp-api]248default-features = false249git = "https://github.com/paritytech/substrate"250branch = "polkadot-v0.9.22"251252[dependencies.sp-block-builder]253default-features = false254git = "https://github.com/paritytech/substrate"255branch = "polkadot-v0.9.22"256257[dependencies.sp-core]258default-features = false259git = "https://github.com/paritytech/substrate"260branch = "polkadot-v0.9.22"261262[dependencies.sp-consensus-aura]263default-features = false264git = "https://github.com/paritytech/substrate"265branch = "polkadot-v0.9.22"266267[dependencies.sp-inherents]268default-features = false269git = "https://github.com/paritytech/substrate"270branch = "polkadot-v0.9.22"271272[dependencies.sp-io]273default-features = false274git = "https://github.com/paritytech/substrate"275branch = "polkadot-v0.9.22"276277[dependencies.sp-offchain]278default-features = false279git = "https://github.com/paritytech/substrate"280branch = "polkadot-v0.9.22"281282[dependencies.sp-runtime]283default-features = false284git = "https://github.com/paritytech/substrate"285branch = "polkadot-v0.9.22"286287[dependencies.sp-session]288default-features = false289git = "https://github.com/paritytech/substrate"290branch = "polkadot-v0.9.22"291292[dependencies.sp-std]293default-features = false294git = "https://github.com/paritytech/substrate"295branch = "polkadot-v0.9.22"296297[dependencies.sp-transaction-pool]298default-features = false299git = "https://github.com/paritytech/substrate"300branch = "polkadot-v0.9.22"301302[dependencies.sp-version]303default-features = false304git = "https://github.com/paritytech/substrate"305branch = "polkadot-v0.9.22"306307[dependencies.smallvec]308version = '1.6.1'309310################################################################################311# Cumulus dependencies312313[dependencies.parachain-info]314default-features = false315git = "https://github.com/paritytech/cumulus"316branch = "polkadot-v0.9.22"317318[dependencies.cumulus-pallet-aura-ext]319git = "https://github.com/paritytech/cumulus"320branch = "polkadot-v0.9.22"321default-features = false322323[dependencies.cumulus-pallet-parachain-system]324git = "https://github.com/paritytech/cumulus"325branch = "polkadot-v0.9.22"326default-features = false327328[dependencies.cumulus-primitives-core]329git = "https://github.com/paritytech/cumulus"330branch = "polkadot-v0.9.22"331default-features = false332333[dependencies.cumulus-pallet-xcm]334git = "https://github.com/paritytech/cumulus"335branch = "polkadot-v0.9.22"336default-features = false337338[dependencies.cumulus-pallet-dmp-queue]339git = "https://github.com/paritytech/cumulus"340branch = "polkadot-v0.9.22"341default-features = false342343[dependencies.cumulus-pallet-xcmp-queue]344git = "https://github.com/paritytech/cumulus"345branch = "polkadot-v0.9.22"346default-features = false347348[dependencies.cumulus-primitives-utility]349git = "https://github.com/paritytech/cumulus"350branch = "polkadot-v0.9.22"351default-features = false352353[dependencies.cumulus-primitives-timestamp]354git = "https://github.com/paritytech/cumulus"355branch = "polkadot-v0.9.22"356default-features = false357358################################################################################359# Polkadot dependencies360361[dependencies.polkadot-parachain]362git = "https://github.com/paritytech/polkadot"363branch = "release-v0.9.22"364default-features = false365366[dependencies.xcm]367git = "https://github.com/paritytech/polkadot"368branch = "release-v0.9.22"369default-features = false370371[dependencies.xcm-builder]372git = "https://github.com/paritytech/polkadot"373branch = "release-v0.9.22"374default-features = false375376[dependencies.xcm-executor]377git = "https://github.com/paritytech/polkadot"378branch = "release-v0.9.22"379default-features = false380381[dependencies.pallet-xcm]382git = "https://github.com/paritytech/polkadot"383branch = "release-v0.9.22"384default-features = false385386[dependencies.orml-vesting]387git = "https://github.com/uniquenetwork/open-runtime-module-library"388branch = "unique-polkadot-v0.9.22"389version = "0.4.1-dev"390default-features = false391392################################################################################393# local dependencies394395[dependencies]396log = { version = "0.4.16", default-features = false }397unique-runtime-common = { path = "../common", default-features = false }398scale-info = { version = "2.0.1", default-features = false, features = [399 "derive",400] }401derivative = "2.2.0"402pallet-unique = { path = '../../pallets/unique', default-features = false }403up-rpc = { path = "../../primitives/rpc", default-features = false }404rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }405pallet-inflation = { path = '../../pallets/inflation', default-features = false }406up-data-structs = { path = '../../primitives/data-structs', default-features = false }407pallet-common = { default-features = false, path = "../../pallets/common" }408pallet-structure = { default-features = false, path = "../../pallets/structure" }409pallet-fungible = { default-features = false, path = "../../pallets/fungible" }410pallet-refungible = { default-features = false, path = "../../pallets/refungible" }411pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }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 }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" }416pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }417pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }418pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }419pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }420pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.22" }421pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.22" }422pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.22" }423fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.22" }424fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.22" }425fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.22" }426427################################################################################428# Build Dependencies429430[build-dependencies.substrate-wasm-builder]431git = "https://github.com/paritytech/substrate"432branch = "polkadot-v0.9.22"1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Unique Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'unique-runtime'12repository = 'https://github.com/UniqueNetwork/unique-chain'13version = '0.9.22'1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std']20runtime-benchmarks = [21 'hex-literal',22 'frame-benchmarking',23 'frame-support/runtime-benchmarks',24 'frame-system-benchmarking',25 'frame-system/runtime-benchmarks',26 'pallet-ethereum/runtime-benchmarks',27 'pallet-evm-migration/runtime-benchmarks',28 'pallet-evm-coder-substrate/runtime-benchmarks',29 'pallet-balances/runtime-benchmarks',30 'pallet-timestamp/runtime-benchmarks',31 'pallet-common/runtime-benchmarks',32 'pallet-structure/runtime-benchmarks',33 'pallet-fungible/runtime-benchmarks',34 'pallet-refungible/runtime-benchmarks',35 'pallet-nonfungible/runtime-benchmarks',36 'pallet-proxy-rmrk-core/runtime-benchmarks',37 'pallet-unique/runtime-benchmarks',38 'pallet-inflation/runtime-benchmarks',39 'pallet-unique-scheduler/runtime-benchmarks',40 'pallet-xcm/runtime-benchmarks',41 'sp-runtime/runtime-benchmarks',42 'xcm-builder/runtime-benchmarks',43 'up-data-structs/runtime-benchmarks',44]45try-runtime = [46 'frame-try-runtime',47 'frame-executive/try-runtime',48 'frame-system/try-runtime',49]50std = [51 'codec/std',52 'cumulus-pallet-aura-ext/std',53 'cumulus-pallet-parachain-system/std',54 'cumulus-pallet-xcm/std',55 'cumulus-pallet-xcmp-queue/std',56 'cumulus-primitives-core/std',57 'cumulus-primitives-utility/std',58 'frame-try-runtime/std',59 'frame-executive/std',60 'frame-support/std',61 'frame-system/std',62 'frame-system-rpc-runtime-api/std',63 'pallet-aura/std',64 'pallet-balances/std',65 # 'pallet-contracts/std',66 # 'pallet-contracts-primitives/std',67 # 'pallet-contracts-rpc-runtime-api/std',68 # 'pallet-contract-helpers/std',69 'pallet-randomness-collective-flip/std',70 'pallet-sudo/std',71 'pallet-timestamp/std',72 'pallet-transaction-payment/std',73 'pallet-transaction-payment-rpc-runtime-api/std',74 'pallet-treasury/std',75 # 'pallet-vesting/std',76 'pallet-evm/std',77 'pallet-evm-migration/std',78 'pallet-evm-contract-helpers/std',79 'pallet-evm-transaction-payment/std',80 'pallet-evm-coder-substrate/std',81 'pallet-ethereum/std',82 'pallet-base-fee/std',83 'fp-rpc/std',84 'up-rpc/std',85 'fp-evm-mapping/std',86 'fp-self-contained/std',87 'parachain-info/std',88 'serde',89 'pallet-inflation/std',90 'pallet-common/std',91 'pallet-structure/std',92 'pallet-fungible/std',93 'pallet-refungible/std',94 'pallet-nonfungible/std',95 'pallet-proxy-rmrk-core/std',96 'pallet-unique/std',97 'pallet-unique-scheduler/std',98 'pallet-charge-transaction/std',99 'up-data-structs/std',100 'sp-api/std',101 'sp-block-builder/std',102 "sp-consensus-aura/std",103 'sp-core/std',104 'sp-inherents/std',105 'sp-io/std',106 'sp-offchain/std',107 'sp-runtime/std',108 'sp-session/std',109 'sp-std/std',110 'sp-transaction-pool/std',111 'sp-version/std',112 'xcm/std',113 'xcm-builder/std',114 'xcm-executor/std',115 'unique-runtime-common/std',116117 "orml-vesting/std",118]119limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']120121################################################################################122# Substrate Dependencies123124[dependencies.codec]125default-features = false126features = ['derive']127package = 'parity-scale-codec'128version = '3.1.2'129130[dependencies.frame-benchmarking]131default-features = false132git = "https://github.com/paritytech/substrate"133optional = true134branch = "polkadot-v0.9.22"135136[dependencies.frame-try-runtime]137default-features = false138git = 'https://github.com/paritytech/substrate'139optional = true140branch = 'polkadot-v0.9.22'141142[dependencies.frame-executive]143default-features = false144git = "https://github.com/paritytech/substrate"145branch = "polkadot-v0.9.22"146147[dependencies.frame-support]148default-features = false149git = "https://github.com/paritytech/substrate"150branch = "polkadot-v0.9.22"151152[dependencies.frame-system]153default-features = false154git = "https://github.com/paritytech/substrate"155branch = "polkadot-v0.9.22"156157[dependencies.frame-system-benchmarking]158default-features = false159git = "https://github.com/paritytech/substrate"160optional = true161branch = "polkadot-v0.9.22"162163[dependencies.frame-system-rpc-runtime-api]164default-features = false165git = "https://github.com/paritytech/substrate"166branch = "polkadot-v0.9.22"167168[dependencies.hex-literal]169optional = true170version = '0.3.3'171172[dependencies.serde]173default-features = false174features = ['derive']175optional = true176version = '1.0.130'177178[dependencies.pallet-aura]179default-features = false180git = "https://github.com/paritytech/substrate"181branch = "polkadot-v0.9.22"182183[dependencies.pallet-balances]184default-features = false185git = "https://github.com/paritytech/substrate"186branch = "polkadot-v0.9.22"187188# Contracts specific packages189# [dependencies.pallet-contracts]190# git = 'https://github.com/paritytech/substrate'191# default-features = false192# branch = 'master'193# version = '4.0.0-dev'194195# [dependencies.pallet-contracts-primitives]196# git = 'https://github.com/paritytech/substrate'197# default-features = false198# branch = 'master'199# version = '4.0.0-dev'200201# [dependencies.pallet-contracts-rpc-runtime-api]202# git = 'https://github.com/paritytech/substrate'203# default-features = false204# branch = 'master'205# version = '4.0.0-dev'206207[dependencies.pallet-randomness-collective-flip]208default-features = false209git = "https://github.com/paritytech/substrate"210branch = "polkadot-v0.9.22"211212[dependencies.pallet-sudo]213default-features = false214git = "https://github.com/paritytech/substrate"215branch = "polkadot-v0.9.22"216217[dependencies.pallet-timestamp]218default-features = false219git = "https://github.com/paritytech/substrate"220branch = "polkadot-v0.9.22"221222[dependencies.pallet-transaction-payment]223default-features = false224git = "https://github.com/paritytech/substrate"225branch = "polkadot-v0.9.22"226227[dependencies.pallet-transaction-payment-rpc-runtime-api]228default-features = false229git = "https://github.com/paritytech/substrate"230branch = "polkadot-v0.9.22"231232[dependencies.pallet-treasury]233default-features = false234git = "https://github.com/paritytech/substrate"235branch = "polkadot-v0.9.22"236237# [dependencies.pallet-vesting]238# default-features = false239# git = 'https://github.com/paritytech/substrate'240# branch = 'master'241242[dependencies.sp-arithmetic]243default-features = false244git = "https://github.com/paritytech/substrate"245branch = "polkadot-v0.9.22"246247[dependencies.sp-api]248default-features = false249git = "https://github.com/paritytech/substrate"250branch = "polkadot-v0.9.22"251252[dependencies.sp-block-builder]253default-features = false254git = "https://github.com/paritytech/substrate"255branch = "polkadot-v0.9.22"256257[dependencies.sp-core]258default-features = false259git = "https://github.com/paritytech/substrate"260branch = "polkadot-v0.9.22"261262[dependencies.sp-consensus-aura]263default-features = false264git = "https://github.com/paritytech/substrate"265branch = "polkadot-v0.9.22"266267[dependencies.sp-inherents]268default-features = false269git = "https://github.com/paritytech/substrate"270branch = "polkadot-v0.9.22"271272[dependencies.sp-io]273default-features = false274git = "https://github.com/paritytech/substrate"275branch = "polkadot-v0.9.22"276277[dependencies.sp-offchain]278default-features = false279git = "https://github.com/paritytech/substrate"280branch = "polkadot-v0.9.22"281282[dependencies.sp-runtime]283default-features = false284git = "https://github.com/paritytech/substrate"285branch = "polkadot-v0.9.22"286287[dependencies.sp-session]288default-features = false289git = "https://github.com/paritytech/substrate"290branch = "polkadot-v0.9.22"291292[dependencies.sp-std]293default-features = false294git = "https://github.com/paritytech/substrate"295branch = "polkadot-v0.9.22"296297[dependencies.sp-transaction-pool]298default-features = false299git = "https://github.com/paritytech/substrate"300branch = "polkadot-v0.9.22"301302[dependencies.sp-version]303default-features = false304git = "https://github.com/paritytech/substrate"305branch = "polkadot-v0.9.22"306307[dependencies.smallvec]308version = '1.6.1'309310################################################################################311# Cumulus dependencies312313[dependencies.parachain-info]314default-features = false315git = "https://github.com/paritytech/cumulus"316branch = "polkadot-v0.9.22"317318[dependencies.cumulus-pallet-aura-ext]319git = "https://github.com/paritytech/cumulus"320branch = "polkadot-v0.9.22"321default-features = false322323[dependencies.cumulus-pallet-parachain-system]324git = "https://github.com/paritytech/cumulus"325branch = "polkadot-v0.9.22"326default-features = false327328[dependencies.cumulus-primitives-core]329git = "https://github.com/paritytech/cumulus"330branch = "polkadot-v0.9.22"331default-features = false332333[dependencies.cumulus-pallet-xcm]334git = "https://github.com/paritytech/cumulus"335branch = "polkadot-v0.9.22"336default-features = false337338[dependencies.cumulus-pallet-dmp-queue]339git = "https://github.com/paritytech/cumulus"340branch = "polkadot-v0.9.22"341default-features = false342343[dependencies.cumulus-pallet-xcmp-queue]344git = "https://github.com/paritytech/cumulus"345branch = "polkadot-v0.9.22"346default-features = false347348[dependencies.cumulus-primitives-utility]349git = "https://github.com/paritytech/cumulus"350branch = "polkadot-v0.9.22"351default-features = false352353[dependencies.cumulus-primitives-timestamp]354git = "https://github.com/paritytech/cumulus"355branch = "polkadot-v0.9.22"356default-features = false357358################################################################################359# Polkadot dependencies360361[dependencies.polkadot-parachain]362git = "https://github.com/paritytech/polkadot"363branch = "release-v0.9.22"364default-features = false365366[dependencies.xcm]367git = "https://github.com/paritytech/polkadot"368branch = "release-v0.9.22"369default-features = false370371[dependencies.xcm-builder]372git = "https://github.com/paritytech/polkadot"373branch = "release-v0.9.22"374default-features = false375376[dependencies.xcm-executor]377git = "https://github.com/paritytech/polkadot"378branch = "release-v0.9.22"379default-features = false380381[dependencies.pallet-xcm]382git = "https://github.com/paritytech/polkadot"383branch = "release-v0.9.22"384default-features = false385386[dependencies.orml-vesting]387git = "https://github.com/uniquenetwork/open-runtime-module-library"388branch = "unique-polkadot-v0.9.22"389version = "0.4.1-dev"390default-features = false391392################################################################################393# local dependencies394395[dependencies]396log = { version = "0.4.16", default-features = false }397unique-runtime-common = { path = "../common", default-features = false }398scale-info = { version = "2.0.1", default-features = false, features = [399 "derive",400] }401derivative = "2.2.0"402pallet-unique = { path = '../../pallets/unique', default-features = false }403up-rpc = { path = "../../primitives/rpc", default-features = false }404rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }405pallet-inflation = { path = '../../pallets/inflation', default-features = false }406up-data-structs = { path = '../../primitives/data-structs', default-features = false }407pallet-common = { default-features = false, path = "../../pallets/common" }408pallet-structure = { default-features = false, path = "../../pallets/structure" }409pallet-fungible = { default-features = false, path = "../../pallets/fungible" }410pallet-refungible = { default-features = false, path = "../../pallets/refungible" }411pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }412pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }413pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }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" }416pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }417pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }418pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }419pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }420pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.22" }421pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.22" }422pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.22" }423fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.22" }424fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.22" }425fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.22" }426427################################################################################428# Build Dependencies429430[build-dependencies.substrate-wasm-builder]431git = "https://github.com/paritytech/substrate"432branch = "polkadot-v0.9.22"runtime/unique/src/lib.rsdiffbeforeafterboth--- a/runtime/unique/src/lib.rs
+++ b/runtime/unique/src/lib.rs
@@ -68,7 +68,7 @@
WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, ConstantMultiplier,
},
};
-use pallet_unq_scheduler::DispatchCall;
+use pallet_unique_scheduler::DispatchCall;
use up_data_structs::{
CollectionId, TokenId, TokenData, Property, PropertyKeyPermission, CollectionLimits,
CollectionStats, RpcCollection,
@@ -962,7 +962,7 @@
}
pub struct SchedulerPaymentExecutor;
-impl<T: frame_system::Config + pallet_unq_scheduler::Config, SelfContainedSignedInfo>
+impl<T: frame_system::Config + pallet_unique_scheduler::Config, SelfContainedSignedInfo>
DispatchCall<T, SelfContainedSignedInfo> for SchedulerPaymentExecutor
where
<T as frame_system::Config>::Call: Member
@@ -972,13 +972,13 @@
+ From<frame_system::Call<Runtime>>,
SelfContainedSignedInfo: Send + Sync + 'static,
Call: From<<T as frame_system::Config>::Call>
- + From<<T as pallet_unq_scheduler::Config>::Call>
+ + From<<T as pallet_unique_scheduler::Config>::Call>
+ SelfContainedCall<SignedInfo = SelfContainedSignedInfo>,
sp_runtime::AccountId32: From<<T as frame_system::Config>::AccountId>,
{
fn dispatch_call(
signer: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
) -> Result<
Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>,
TransactionValidityError,
@@ -1004,7 +1004,7 @@
fn reserve_balance(
id: [u8; 16],
sponsor: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
count: u32,
) -> Result<(), DispatchError> {
let dispatch_info = call.get_dispatch_info();
@@ -1021,7 +1021,7 @@
fn pay_for_call(
id: [u8; 16],
sponsor: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
) -> Result<u128, DispatchError> {
let dispatch_info = call.get_dispatch_info();
let weight: Balance = ChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0);
@@ -1062,7 +1062,7 @@
}
}
-impl pallet_unq_scheduler::Config for Runtime {
+impl pallet_unique_scheduler::Config for Runtime {
type Event = Event;
type Origin = Origin;
type Currency = Balances;
@@ -1150,7 +1150,7 @@
// Unique Pallets
Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,
Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,
- Scheduler: pallet_unq_scheduler::{Pallet, Call, Storage, Event<T>} = 62,
+ Scheduler: pallet_unique_scheduler::{Pallet, Call, Storage, Event<T>} = 62,
// free = 63
Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,
// ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,