mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-06-14 00:31:01 +00:00
Added benchmarking for EVM template. Updated benchmarking for Generic Templates. Fixed config for EVM template. Added benchmarking utils.
This commit is contained in:
@@ -13,8 +13,12 @@ pub mod currency {
|
||||
pub const DOLLARS: Balance = 100 * CENTS;
|
||||
pub const GRAND: Balance = 1_000 * DOLLARS;
|
||||
|
||||
#[cfg(not(feature = "runtime-benchmarks"))]
|
||||
pub const EXISTENTIAL_DEPOSIT: Balance = 0;
|
||||
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
pub const EXISTENTIAL_DEPOSIT: Balance = 1;
|
||||
|
||||
pub const fn deposit(items: u32, bytes: u32) -> Balance {
|
||||
items as Balance * 15 * CENTS + (bytes as Balance) * 6 * CENTS
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user