Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjj9219 committed Sep 11, 2024
1 parent ef0986e commit 1cf7eed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/homa/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ impl<T: frame_system::Config> WeightInfo for AcalaWeight<T> {
fn on_initialize_with_bump_era(n: u32,) -> Weight {
Weight::from_parts(253_506_000, 0)
.saturating_add(T::DbWeight::get().reads(31 as u64))
.saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(n as u64)))
.saturating_add(T::DbWeight::get().writes(18 as u64))
.saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(n as u64)))
}
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
// Storage: Homa TotalStakingBonded (r:1 w:0)
Expand Down Expand Up @@ -198,7 +200,9 @@ impl WeightInfo for () {
fn on_initialize_with_bump_era(n: u32,) -> Weight {
Weight::from_parts(253_506_000, 0)
.saturating_add(RocksDbWeight::get().reads(31 as u64))
.saturating_add(RocksDbWeight::get().reads((2 as u64).saturating_mul(n as u64)))
.saturating_add(RocksDbWeight::get().writes(18 as u64))
.saturating_add(RocksDbWeight::get().writes((2 as u64).saturating_mul(n as u64)))
}
fn mint() -> Weight {
Weight::from_parts(88_950_000, 0)
Expand Down
2 changes: 2 additions & 0 deletions runtime/acala/src/weights/module_homa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ impl<T: frame_system::Config> module_homa::WeightInfo for WeightInfo<T> {
// Minimum execution time: 298_418 nanoseconds.
Weight::from_parts(305_164_000, 13851)
.saturating_add(T::DbWeight::get().reads(32))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(18))
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into())))
}
// Storage: `Homa::TotalStakingBonded` (r:1 w:0)
// Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Expand Down
2 changes: 2 additions & 0 deletions runtime/karura/src/weights/module_homa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ impl<T: frame_system::Config> module_homa::WeightInfo for WeightInfo<T> {
// Minimum execution time: 314_492 nanoseconds.
Weight::from_parts(320_994_000, 13852)
.saturating_add(T::DbWeight::get().reads(34))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(19))
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into())))
}
// Storage: `Homa::TotalStakingBonded` (r:1 w:0)
// Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Expand Down
2 changes: 2 additions & 0 deletions runtime/mandala/src/weights/module_homa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ impl<T: frame_system::Config> module_homa::WeightInfo for WeightInfo<T> {
// Minimum execution time: 207_924 nanoseconds.
Weight::from_parts(215_712_000, 14947)
.saturating_add(T::DbWeight::get().reads(31))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(18))
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into())))
}
// Storage: `Homa::TotalStakingBonded` (r:1 w:0)
// Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Expand Down

0 comments on commit 1cf7eed

Please sign in to comment.