mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
Introduce sensible weight constants (#12868)
* Introduce sensible weight constants * cargo fmt * Remove unused import * Add missing import * ".git/.scripts/bench-bot.sh" pallet dev pallet_lottery Co-authored-by: command-bot <>
This commit is contained in:
@@ -47,12 +47,13 @@ pub use weight_meter::*;
|
||||
pub use weight_v2::*;
|
||||
|
||||
pub mod constants {
|
||||
use super::Weight;
|
||||
pub const WEIGHT_REF_TIME_PER_SECOND: u64 = 1_000_000_000_000;
|
||||
pub const WEIGHT_REF_TIME_PER_MILLIS: u64 = 1_000_000_000;
|
||||
pub const WEIGHT_REF_TIME_PER_MICROS: u64 = 1_000_000;
|
||||
pub const WEIGHT_REF_TIME_PER_NANOS: u64 = 1_000;
|
||||
|
||||
pub const WEIGHT_PER_SECOND: Weight = Weight::from_ref_time(1_000_000_000_000);
|
||||
pub const WEIGHT_PER_MILLIS: Weight = Weight::from_ref_time(1_000_000_000);
|
||||
pub const WEIGHT_PER_MICROS: Weight = Weight::from_ref_time(1_000_000);
|
||||
pub const WEIGHT_PER_NANOS: Weight = Weight::from_ref_time(1_000);
|
||||
pub const WEIGHT_PROOF_SIZE_PER_MB: u64 = 1024 * 1024;
|
||||
pub const WEIGHT_PROOF_SIZE_PER_KB: u64 = 1024;
|
||||
}
|
||||
|
||||
/// The old weight type.
|
||||
|
||||
Reference in New Issue
Block a user