Skip to content

Commit

Permalink
cargo +nightly fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ark930 committed Aug 18, 2021
1 parent 4157f27 commit ecfb14d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
1 change: 0 additions & 1 deletion runtime/bifrost/src/weights/pallet_balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
// --header=./HEADER-GPL3
// --output=./runtime/bifrost/src/weights/


#![allow(unused_parens)]
#![allow(unused_imports)]

Expand Down
1 change: 0 additions & 1 deletion runtime/bifrost/src/weights/pallet_indices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
// --header=./HEADER-GPL3
// --output=./runtime/bifrost/src/weights/


#![allow(unused_parens)]
#![allow(unused_imports)]

Expand Down
1 change: 0 additions & 1 deletion runtime/bifrost/src/weights/pallet_timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
// --header=./HEADER-GPL3
// --output=./runtime/bifrost/src/weights/


#![allow(unused_parens)]
#![allow(unused_imports)]

Expand Down
5 changes: 2 additions & 3 deletions runtime/bifrost/src/weights/pallet_utility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
// --header=./HEADER-GPL3
// --output=./runtime/bifrost/src/weights/


#![allow(unused_parens)]
#![allow(unused_imports)]

Expand All @@ -46,7 +45,7 @@ use sp_std::marker::PhantomData;
/// Weight functions for pallet_utility.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
fn batch(c: u32, ) -> Weight {
fn batch(c: u32) -> Weight {
(41_767_000 as Weight)
// Standard Error: 1_000
.saturating_add((4_248_000 as Weight).saturating_mul(c as Weight))
Expand All @@ -56,7 +55,7 @@ impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
fn as_derivative() -> Weight {
(11_279_000 as Weight)
}
fn batch_all(c: u32, ) -> Weight {
fn batch_all(c: u32) -> Weight {
(47_341_000 as Weight)
// Standard Error: 1_000
.saturating_add((5_234_000 as Weight).saturating_mul(c as Weight))
Expand Down
13 changes: 6 additions & 7 deletions runtime/bifrost/src/weights/pallet_vesting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
// --header=./HEADER-GPL3
// --output=./runtime/bifrost/src/weights/


#![allow(unused_parens)]
#![allow(unused_imports)]

Expand All @@ -46,42 +45,42 @@ use sp_std::marker::PhantomData;
/// Weight functions for pallet_vesting.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_vesting::WeightInfo for WeightInfo<T> {
fn vest_locked(l: u32, ) -> Weight {
fn vest_locked(l: u32) -> Weight {
(139_430_000 as Weight)
// Standard Error: 29_000
.saturating_add((723_000 as Weight).saturating_mul(l as Weight))
.saturating_add(T::DbWeight::get().reads(7 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
fn vest_unlocked(l: u32, ) -> Weight {
fn vest_unlocked(l: u32) -> Weight {
(144_165_000 as Weight)
// Standard Error: 13_000
.saturating_add((713_000 as Weight).saturating_mul(l as Weight))
.saturating_add(T::DbWeight::get().reads(7 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
fn vest_other_locked(l: u32, ) -> Weight {
fn vest_other_locked(l: u32) -> Weight {
(132_758_000 as Weight)
// Standard Error: 24_000
.saturating_add((752_000 as Weight).saturating_mul(l as Weight))
.saturating_add(T::DbWeight::get().reads(8 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
fn vest_other_unlocked(l: u32, ) -> Weight {
fn vest_other_unlocked(l: u32) -> Weight {
(138_258_000 as Weight)
// Standard Error: 13_000
.saturating_add((723_000 as Weight).saturating_mul(l as Weight))
.saturating_add(T::DbWeight::get().reads(8 as Weight))
.saturating_add(T::DbWeight::get().writes(5 as Weight))
}
fn vested_transfer(l: u32, ) -> Weight {
fn vested_transfer(l: u32) -> Weight {
(249_078_000 as Weight)
// Standard Error: 23_000
.saturating_add((741_000 as Weight).saturating_mul(l as Weight))
.saturating_add(T::DbWeight::get().reads(8 as Weight))
.saturating_add(T::DbWeight::get().writes(5 as Weight))
}
fn force_vested_transfer(l: u32, ) -> Weight {
fn force_vested_transfer(l: u32) -> Weight {
(246_188_000 as Weight)
// Standard Error: 23_000
.saturating_add((749_000 as Weight).saturating_mul(l as Weight))
Expand Down

0 comments on commit ecfb14d

Please sign in to comment.