From c499795b0241ea00bd4dd70d7a8b2e043697cb97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Duarte?= Date: Thu, 2 Jan 2025 16:56:14 +0000 Subject: [PATCH] fix: remove extra files --- pallets/randomness/weights.rs | 88 ----------------------------------- pallets/weights.rs | 57 ----------------------- 2 files changed, 145 deletions(-) delete mode 100644 pallets/randomness/weights.rs delete mode 100644 pallets/weights.rs diff --git a/pallets/randomness/weights.rs b/pallets/randomness/weights.rs deleted file mode 100644 index 44f5bdfa5..000000000 --- a/pallets/randomness/weights.rs +++ /dev/null @@ -1,88 +0,0 @@ - -//! Autogenerated weights for `pallet_randomness` -//! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-12-23, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `parthenon`, CPU: `12th Gen Intel(R) Core(TM) i7-12700H` -//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 - -// Executed Command: -// target/release/polka-storage-node -// benchmark -// pallet -// --wasm-execution=compiled -// --pallet -// pallet_randomness -// --extrinsic -// * -// --steps -// 50 -// --repeat -// 20 -// --output -// pallets/randomness/weights.rs -// --template -// node/benchmark_template.hbs - -#![cfg_attr(rustfmt, rustfmt_skip)] -#![allow(unused_parens)] -#![allow(unused_imports)] -#![allow(missing_docs)] - -use frame_support::{traits::Get, weights::Weight}; -use core::marker::PhantomData; - -pub trait WeightInfo { - fn set_author_vrf() -> Weight; -} - -/// Weight functions for `pallet_randomness`. -pub struct Weights(PhantomData); -impl WeightInfo for Weights { - /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) - /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::RelayStateProof` (r:1 w:0) - /// Proof: `ParachainSystem::RelayStateProof` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `Randomness::CounterForAuthorVrfHistory` (r:1 w:0) - /// Proof: `Randomness::CounterForAuthorVrfHistory` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Randomness::AuthorVrfHistory` (r:1 w:1) - /// Proof: `Randomness::AuthorVrfHistory` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) - /// Storage: `Randomness::AuthorVrf` (r:0 w:1) - /// Proof: `Randomness::AuthorVrf` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) - fn set_author_vrf() -> Weight { - // Proof Size summary in bytes: - // Measured: `1052` - // Estimated: `3513` - // Minimum execution time: 16_315_000 picoseconds. - Weight::from_parts(17_210_000, 0) - .saturating_add(Weight::from_parts(0, 3513)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(2)) - } -} - -impl WeightInfo for () { - /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) - /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::RelayStateProof` (r:1 w:0) - /// Proof: `ParachainSystem::RelayStateProof` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `Randomness::CounterForAuthorVrfHistory` (r:1 w:0) - /// Proof: `Randomness::CounterForAuthorVrfHistory` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Randomness::AuthorVrfHistory` (r:1 w:1) - /// Proof: `Randomness::AuthorVrfHistory` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) - /// Storage: `Randomness::AuthorVrf` (r:0 w:1) - /// Proof: `Randomness::AuthorVrf` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) - fn set_author_vrf() -> Weight { - use frame_support::constants::RocksDbWeight; - - // Proof Size summary in bytes: - // Measured: `1052` - // Estimated: `3513` - // Minimum execution time: 16_315_000 picoseconds. - Weight::from_parts(17_210_000, 0) - .saturating_add(Weight::from_parts(0, 3513)) - .saturating_add(RocksDbWeight::get().reads(4)) - .saturating_add(RocksDbWeight::get().writes(2)) - } -} diff --git a/pallets/weights.rs b/pallets/weights.rs deleted file mode 100644 index 83e5ece4c..000000000 --- a/pallets/weights.rs +++ /dev/null @@ -1,57 +0,0 @@ - -//! Autogenerated weights for `pallet_randomness` -//! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-12-23, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `parthenon`, CPU: `12th Gen Intel(R) Core(TM) i7-12700H` -//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 - -// Executed Command: -// target/release/polka-storage-node -// benchmark -// pallet -// --wasm-execution=compiled -// --pallet -// pallet_randomness -// --extrinsic -// * -// --steps -// 50 -// --repeat -// 20 -// --output -// pallets/weights.rs - -#![cfg_attr(rustfmt, rustfmt_skip)] -#![allow(unused_parens)] -#![allow(unused_imports)] -#![allow(missing_docs)] - -use frame_support::{traits::Get, weights::Weight}; -use core::marker::PhantomData; - -/// Weight functions for `pallet_randomness`. -pub struct WeightInfo(PhantomData); -impl pallet_randomness::WeightInfo for WeightInfo { - /// Storage: `ParachainSystem::ValidationData` (r:1 w:0) - /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `ParachainSystem::RelayStateProof` (r:1 w:0) - /// Proof: `ParachainSystem::RelayStateProof` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `Randomness::CounterForAuthorVrfHistory` (r:1 w:1) - /// Proof: `Randomness::CounterForAuthorVrfHistory` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) - /// Storage: `Randomness::AuthorVrfHistory` (r:1 w:1) - /// Proof: `Randomness::AuthorVrfHistory` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) - /// Storage: `Randomness::AuthorVrf` (r:0 w:1) - /// Proof: `Randomness::AuthorVrf` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) - fn set_author_vrf() -> Weight { - // Proof Size summary in bytes: - // Measured: `82` - // Estimated: `3513` - // Minimum execution time: 8_914_000 picoseconds. - Weight::from_parts(11_225_000, 0) - .saturating_add(Weight::from_parts(0, 3513)) - .saturating_add(T::DbWeight::get().reads(4)) - .saturating_add(T::DbWeight::get().writes(3)) - } -}