Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 88798fb

Browse files
authored
* Remove RefTimeWeight * Fixes * update lockfile for {"substrate"} Co-authored-by: parity-processbot <>
1 parent 00f8731 commit 88798fb

138 files changed

Lines changed: 4123 additions & 4123 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 170 additions & 170 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtime/kusama/src/weights/frame_benchmarking_baseline.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,52 +38,52 @@
3838
#![allow(unused_parens)]
3939
#![allow(unused_imports)]
4040

41-
use frame_support::{traits::Get, weights::{RefTimeWeight, Weight}};
41+
use frame_support::{traits::Get, weights::Weight};
4242
use sp_std::marker::PhantomData;
4343

4444
/// Weight functions for `frame_benchmarking::baseline`.
4545
pub struct WeightInfo<T>(PhantomData<T>);
4646
impl<T: frame_system::Config> frame_benchmarking::baseline::WeightInfo for WeightInfo<T> {
4747
/// The range of component `i` is `[0, 1000000]`.
4848
fn addition(_i: u32, ) -> Weight {
49-
Weight::from_ref_time(123_000 as RefTimeWeight)
49+
Weight::from_ref_time(123_000 as u64)
5050
}
5151
/// The range of component `i` is `[0, 1000000]`.
5252
fn subtraction(_i: u32, ) -> Weight {
53-
Weight::from_ref_time(110_000 as RefTimeWeight)
53+
Weight::from_ref_time(110_000 as u64)
5454
}
5555
/// The range of component `i` is `[0, 1000000]`.
5656
fn multiplication(_i: u32, ) -> Weight {
57-
Weight::from_ref_time(124_000 as RefTimeWeight)
57+
Weight::from_ref_time(124_000 as u64)
5858
}
5959
/// The range of component `i` is `[0, 1000000]`.
6060
fn division(_i: u32, ) -> Weight {
61-
Weight::from_ref_time(120_000 as RefTimeWeight)
61+
Weight::from_ref_time(120_000 as u64)
6262
}
6363
/// The range of component `i` is `[0, 100]`.
6464
fn hashing(_i: u32, ) -> Weight {
65-
Weight::from_ref_time(19_606_352_000 as RefTimeWeight)
65+
Weight::from_ref_time(19_606_352_000 as u64)
6666
}
6767
/// The range of component `i` is `[1, 100]`.
6868
fn sr25519_verification(i: u32, ) -> Weight {
69-
Weight::from_ref_time(0 as RefTimeWeight)
69+
Weight::from_ref_time(0 as u64)
7070
// Standard Error: 38_000
71-
.saturating_add(Weight::from_ref_time(47_929_000 as RefTimeWeight).saturating_mul(i as RefTimeWeight))
71+
.saturating_add(Weight::from_ref_time(47_929_000 as u64).saturating_mul(i as u64))
7272
}
7373
// Storage: Skipped Metadata (r:0 w:0)
7474
/// The range of component `i` is `[0, 1000]`.
7575
fn storage_read(i: u32, ) -> Weight {
76-
Weight::from_ref_time(0 as RefTimeWeight)
76+
Weight::from_ref_time(0 as u64)
7777
// Standard Error: 4_000
78-
.saturating_add(Weight::from_ref_time(2_101_000 as RefTimeWeight).saturating_mul(i as RefTimeWeight))
79-
.saturating_add(T::DbWeight::get().reads((1 as RefTimeWeight).saturating_mul(i as RefTimeWeight)))
78+
.saturating_add(Weight::from_ref_time(2_101_000 as u64).saturating_mul(i as u64))
79+
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(i as u64)))
8080
}
8181
// Storage: Skipped Metadata (r:0 w:0)
8282
/// The range of component `i` is `[0, 1000]`.
8383
fn storage_write(i: u32, ) -> Weight {
84-
Weight::from_ref_time(0 as RefTimeWeight)
84+
Weight::from_ref_time(0 as u64)
8585
// Standard Error: 0
86-
.saturating_add(Weight::from_ref_time(330_000 as RefTimeWeight).saturating_mul(i as RefTimeWeight))
87-
.saturating_add(T::DbWeight::get().writes((1 as RefTimeWeight).saturating_mul(i as RefTimeWeight)))
86+
.saturating_add(Weight::from_ref_time(330_000 as u64).saturating_mul(i as u64))
87+
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
8888
}
8989
}

runtime/kusama/src/weights/frame_election_provider_support.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#![allow(unused_parens)]
3939
#![allow(unused_imports)]
4040

41-
use frame_support::{traits::Get, weights::{RefTimeWeight, Weight}};
41+
use frame_support::{traits::Get, weights::Weight};
4242
use sp_std::marker::PhantomData;
4343

4444
/// Weight functions for `frame_election_provider_support`.
@@ -48,20 +48,20 @@ impl<T: frame_system::Config> frame_election_provider_support::WeightInfo for We
4848
/// The range of component `t` is `[500, 1000]`.
4949
/// The range of component `d` is `[5, 16]`.
5050
fn phragmen(v: u32, _t: u32, d: u32, ) -> Weight {
51-
Weight::from_ref_time(0 as RefTimeWeight)
51+
Weight::from_ref_time(0 as u64)
5252
// Standard Error: 87_000
53-
.saturating_add(Weight::from_ref_time(22_196_000 as RefTimeWeight).saturating_mul(v as RefTimeWeight))
53+
.saturating_add(Weight::from_ref_time(22_196_000 as u64).saturating_mul(v as u64))
5454
// Standard Error: 7_520_000
55-
.saturating_add(Weight::from_ref_time(3_555_366_000 as RefTimeWeight).saturating_mul(d as RefTimeWeight))
55+
.saturating_add(Weight::from_ref_time(3_555_366_000 as u64).saturating_mul(d as u64))
5656
}
5757
/// The range of component `v` is `[1000, 2000]`.
5858
/// The range of component `t` is `[500, 1000]`.
5959
/// The range of component `d` is `[5, 16]`.
6060
fn phragmms(v: u32, _t: u32, d: u32, ) -> Weight {
61-
Weight::from_ref_time(0 as RefTimeWeight)
61+
Weight::from_ref_time(0 as u64)
6262
// Standard Error: 74_000
63-
.saturating_add(Weight::from_ref_time(15_098_000 as RefTimeWeight).saturating_mul(v as RefTimeWeight))
63+
.saturating_add(Weight::from_ref_time(15_098_000 as u64).saturating_mul(v as u64))
6464
// Standard Error: 6_402_000
65-
.saturating_add(Weight::from_ref_time(2_580_118_000 as RefTimeWeight).saturating_mul(d as RefTimeWeight))
65+
.saturating_add(Weight::from_ref_time(2_580_118_000 as u64).saturating_mul(d as u64))
6666
}
6767
}

runtime/kusama/src/weights/frame_system.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,53 +38,53 @@
3838
#![allow(unused_parens)]
3939
#![allow(unused_imports)]
4040

41-
use frame_support::{traits::Get, weights::{RefTimeWeight, Weight}};
41+
use frame_support::{traits::Get, weights::Weight};
4242
use sp_std::marker::PhantomData;
4343

4444
/// Weight functions for `frame_system`.
4545
pub struct WeightInfo<T>(PhantomData<T>);
4646
impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
4747
/// The range of component `b` is `[0, 3932160]`.
4848
fn remark(b: u32, ) -> Weight {
49-
Weight::from_ref_time(0 as RefTimeWeight)
49+
Weight::from_ref_time(0 as u64)
5050
// Standard Error: 0
51-
.saturating_add(Weight::from_ref_time(1_000 as RefTimeWeight).saturating_mul(b as RefTimeWeight))
51+
.saturating_add(Weight::from_ref_time(1_000 as u64).saturating_mul(b as u64))
5252
}
5353
/// The range of component `b` is `[0, 3932160]`.
5454
fn remark_with_event(b: u32, ) -> Weight {
55-
Weight::from_ref_time(0 as RefTimeWeight)
55+
Weight::from_ref_time(0 as u64)
5656
// Standard Error: 0
57-
.saturating_add(Weight::from_ref_time(2_000 as RefTimeWeight).saturating_mul(b as RefTimeWeight))
57+
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(b as u64))
5858
}
5959
// Storage: System Digest (r:1 w:1)
6060
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
6161
fn set_heap_pages() -> Weight {
62-
Weight::from_ref_time(4_767_000 as RefTimeWeight)
63-
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
64-
.saturating_add(T::DbWeight::get().writes(2 as RefTimeWeight))
62+
Weight::from_ref_time(4_767_000 as u64)
63+
.saturating_add(T::DbWeight::get().reads(1 as u64))
64+
.saturating_add(T::DbWeight::get().writes(2 as u64))
6565
}
6666
// Storage: Skipped Metadata (r:0 w:0)
6767
/// The range of component `i` is `[1, 1000]`.
6868
fn set_storage(i: u32, ) -> Weight {
69-
Weight::from_ref_time(0 as RefTimeWeight)
69+
Weight::from_ref_time(0 as u64)
7070
// Standard Error: 1_000
71-
.saturating_add(Weight::from_ref_time(550_000 as RefTimeWeight).saturating_mul(i as RefTimeWeight))
72-
.saturating_add(T::DbWeight::get().writes((1 as RefTimeWeight).saturating_mul(i as RefTimeWeight)))
71+
.saturating_add(Weight::from_ref_time(550_000 as u64).saturating_mul(i as u64))
72+
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
7373
}
7474
// Storage: Skipped Metadata (r:0 w:0)
7575
/// The range of component `i` is `[1, 1000]`.
7676
fn kill_storage(i: u32, ) -> Weight {
77-
Weight::from_ref_time(0 as RefTimeWeight)
77+
Weight::from_ref_time(0 as u64)
7878
// Standard Error: 1_000
79-
.saturating_add(Weight::from_ref_time(441_000 as RefTimeWeight).saturating_mul(i as RefTimeWeight))
80-
.saturating_add(T::DbWeight::get().writes((1 as RefTimeWeight).saturating_mul(i as RefTimeWeight)))
79+
.saturating_add(Weight::from_ref_time(441_000 as u64).saturating_mul(i as u64))
80+
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
8181
}
8282
// Storage: Skipped Metadata (r:0 w:0)
8383
/// The range of component `p` is `[1, 1000]`.
8484
fn kill_prefix(p: u32, ) -> Weight {
85-
Weight::from_ref_time(0 as RefTimeWeight)
85+
Weight::from_ref_time(0 as u64)
8686
// Standard Error: 1_000
87-
.saturating_add(Weight::from_ref_time(955_000 as RefTimeWeight).saturating_mul(p as RefTimeWeight))
88-
.saturating_add(T::DbWeight::get().writes((1 as RefTimeWeight).saturating_mul(p as RefTimeWeight)))
87+
.saturating_add(Weight::from_ref_time(955_000 as u64).saturating_mul(p as u64))
88+
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
8989
}
9090
}

runtime/kusama/src/weights/pallet_bags_list.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#![allow(unused_parens)]
3939
#![allow(unused_imports)]
4040

41-
use frame_support::{traits::Get, weights::{RefTimeWeight, Weight}};
41+
use frame_support::{traits::Get, weights::Weight};
4242
use sp_std::marker::PhantomData;
4343

4444
/// Weight functions for `pallet_bags_list`.
@@ -49,27 +49,27 @@ impl<T: frame_system::Config> pallet_bags_list::WeightInfo for WeightInfo<T> {
4949
// Storage: VoterList ListNodes (r:4 w:4)
5050
// Storage: VoterList ListBags (r:1 w:1)
5151
fn rebag_non_terminal() -> Weight {
52-
Weight::from_ref_time(50_938_000 as RefTimeWeight)
53-
.saturating_add(T::DbWeight::get().reads(7 as RefTimeWeight))
54-
.saturating_add(T::DbWeight::get().writes(5 as RefTimeWeight))
52+
Weight::from_ref_time(50_938_000 as u64)
53+
.saturating_add(T::DbWeight::get().reads(7 as u64))
54+
.saturating_add(T::DbWeight::get().writes(5 as u64))
5555
}
5656
// Storage: Staking Bonded (r:1 w:0)
5757
// Storage: Staking Ledger (r:1 w:0)
5858
// Storage: VoterList ListNodes (r:3 w:3)
5959
// Storage: VoterList ListBags (r:2 w:2)
6060
fn rebag_terminal() -> Weight {
61-
Weight::from_ref_time(49_843_000 as RefTimeWeight)
62-
.saturating_add(T::DbWeight::get().reads(7 as RefTimeWeight))
63-
.saturating_add(T::DbWeight::get().writes(5 as RefTimeWeight))
61+
Weight::from_ref_time(49_843_000 as u64)
62+
.saturating_add(T::DbWeight::get().reads(7 as u64))
63+
.saturating_add(T::DbWeight::get().writes(5 as u64))
6464
}
6565
// Storage: VoterList ListNodes (r:4 w:4)
6666
// Storage: Staking Bonded (r:2 w:0)
6767
// Storage: Staking Ledger (r:2 w:0)
6868
// Storage: VoterList CounterForListNodes (r:1 w:1)
6969
// Storage: VoterList ListBags (r:1 w:1)
7070
fn put_in_front_of() -> Weight {
71-
Weight::from_ref_time(51_965_000 as RefTimeWeight)
72-
.saturating_add(T::DbWeight::get().reads(10 as RefTimeWeight))
73-
.saturating_add(T::DbWeight::get().writes(6 as RefTimeWeight))
71+
Weight::from_ref_time(51_965_000 as u64)
72+
.saturating_add(T::DbWeight::get().reads(10 as u64))
73+
.saturating_add(T::DbWeight::get().writes(6 as u64))
7474
}
7575
}

runtime/kusama/src/weights/pallet_balances.rs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,52 +38,52 @@
3838
#![allow(unused_parens)]
3939
#![allow(unused_imports)]
4040

41-
use frame_support::{traits::Get, weights::{RefTimeWeight, Weight}};
41+
use frame_support::{traits::Get, weights::Weight};
4242
use sp_std::marker::PhantomData;
4343

4444
/// Weight functions for `pallet_balances`.
4545
pub struct WeightInfo<T>(PhantomData<T>);
4646
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
4747
// Storage: System Account (r:1 w:1)
4848
fn transfer() -> Weight {
49-
Weight::from_ref_time(38_958_000 as RefTimeWeight)
50-
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
51-
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
49+
Weight::from_ref_time(38_958_000 as u64)
50+
.saturating_add(T::DbWeight::get().reads(1 as u64))
51+
.saturating_add(T::DbWeight::get().writes(1 as u64))
5252
}
5353
// Storage: System Account (r:1 w:1)
5454
fn transfer_keep_alive() -> Weight {
55-
Weight::from_ref_time(30_030_000 as RefTimeWeight)
56-
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
57-
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
55+
Weight::from_ref_time(30_030_000 as u64)
56+
.saturating_add(T::DbWeight::get().reads(1 as u64))
57+
.saturating_add(T::DbWeight::get().writes(1 as u64))
5858
}
5959
// Storage: System Account (r:1 w:1)
6060
fn set_balance_creating() -> Weight {
61-
Weight::from_ref_time(19_591_000 as RefTimeWeight)
62-
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
63-
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
61+
Weight::from_ref_time(19_591_000 as u64)
62+
.saturating_add(T::DbWeight::get().reads(1 as u64))
63+
.saturating_add(T::DbWeight::get().writes(1 as u64))
6464
}
6565
// Storage: System Account (r:1 w:1)
6666
fn set_balance_killing() -> Weight {
67-
Weight::from_ref_time(22_871_000 as RefTimeWeight)
68-
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
69-
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
67+
Weight::from_ref_time(22_871_000 as u64)
68+
.saturating_add(T::DbWeight::get().reads(1 as u64))
69+
.saturating_add(T::DbWeight::get().writes(1 as u64))
7070
}
7171
// Storage: System Account (r:2 w:2)
7272
fn force_transfer() -> Weight {
73-
Weight::from_ref_time(39_215_000 as RefTimeWeight)
74-
.saturating_add(T::DbWeight::get().reads(2 as RefTimeWeight))
75-
.saturating_add(T::DbWeight::get().writes(2 as RefTimeWeight))
73+
Weight::from_ref_time(39_215_000 as u64)
74+
.saturating_add(T::DbWeight::get().reads(2 as u64))
75+
.saturating_add(T::DbWeight::get().writes(2 as u64))
7676
}
7777
// Storage: System Account (r:1 w:1)
7878
fn transfer_all() -> Weight {
79-
Weight::from_ref_time(34_799_000 as RefTimeWeight)
80-
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
81-
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
79+
Weight::from_ref_time(34_799_000 as u64)
80+
.saturating_add(T::DbWeight::get().reads(1 as u64))
81+
.saturating_add(T::DbWeight::get().writes(1 as u64))
8282
}
8383
// Storage: System Account (r:1 w:1)
8484
fn force_unreserve() -> Weight {
85-
Weight::from_ref_time(17_925_000 as RefTimeWeight)
86-
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
87-
.saturating_add(T::DbWeight::get().writes(1 as RefTimeWeight))
85+
Weight::from_ref_time(17_925_000 as u64)
86+
.saturating_add(T::DbWeight::get().reads(1 as u64))
87+
.saturating_add(T::DbWeight::get().writes(1 as u64))
8888
}
8989
}

0 commit comments

Comments
 (0)