Revert "FRAME: Create TransactionExtension as a replacement for SignedExtension (#2280)" (#3665)

This PR reverts #2280 which introduced `TransactionExtension` to replace
`SignedExtension`.

As a result of the discussion
[here](https://github.com/paritytech/polkadot-sdk/pull/3623#issuecomment-1986789700),
the changes will be reverted for now with plans to reintroduce the
concept in the future.

---------

Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
This commit is contained in:
georgepisaltu
2024-03-13 16:10:59 +02:00
committed by GitHub
parent 60ac5a723c
commit bbd51ce867
350 changed files with 15826 additions and 24304 deletions
@@ -16,28 +16,26 @@
//! Autogenerated weights for `runtime_common::assigned_slots`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-02-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-08-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("rococo-dev")`, DB CACHE: 1024
//! HOSTNAME: `runner-ynta1nyy-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("rococo-dev")`, DB CACHE: 1024
// Executed Command:
// ./target/production/polkadot
// target/production/polkadot
// benchmark
// pallet
// --chain=rococo-dev
// --steps=50
// --repeat=20
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --pallet=runtime_common::assigned_slots
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --header=./polkadot/file_header.txt
// --output=./polkadot/runtime/rococo/src/weights/runtime_common_assigned_slots.rs
// --heap-pages=4096
// --json-file=/builds/parity/mirrors/polkadot/.git/.artifacts/bench.json
// --pallet=runtime_common::assigned_slots
// --chain=rococo-dev
// --header=./file_header.txt
// --output=./runtime/rococo/src/weights/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -50,7 +48,7 @@ use core::marker::PhantomData;
/// Weight functions for `runtime_common::assigned_slots`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> runtime_common::assigned_slots::WeightInfo for WeightInfo<T> {
/// Storage: `Registrar::Paras` (r:1 w:0)
/// Storage: `Registrar::Paras` (r:1 w:1)
/// Proof: `Registrar::Paras` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Paras::ParaLifecycles` (r:1 w:1)
/// Proof: `Paras::ParaLifecycles` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -70,15 +68,15 @@ impl<T: frame_system::Config> runtime_common::assigned_slots::WeightInfo for Wei
/// Proof: `Paras::ActionsQueue` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn assign_perm_parachain_slot() -> Weight {
// Proof Size summary in bytes:
// Measured: `730`
// Estimated: `4195`
// Minimum execution time: 71_337_000 picoseconds.
Weight::from_parts(80_807_000, 0)
.saturating_add(Weight::from_parts(0, 4195))
// Measured: `673`
// Estimated: `4138`
// Minimum execution time: 84_646_000 picoseconds.
Weight::from_parts(91_791_000, 0)
.saturating_add(Weight::from_parts(0, 4138))
.saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(5))
.saturating_add(T::DbWeight::get().writes(6))
}
/// Storage: `Registrar::Paras` (r:1 w:0)
/// Storage: `Registrar::Paras` (r:1 w:1)
/// Proof: `Registrar::Paras` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Paras::ParaLifecycles` (r:1 w:1)
/// Proof: `Paras::ParaLifecycles` (`max_values`: None, `max_size`: None, mode: `Measured`)
@@ -100,13 +98,13 @@ impl<T: frame_system::Config> runtime_common::assigned_slots::WeightInfo for Wei
/// Proof: `Paras::ActionsQueue` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn assign_temp_parachain_slot() -> Weight {
// Proof Size summary in bytes:
// Measured: `730`
// Estimated: `4195`
// Minimum execution time: 60_188_000 picoseconds.
Weight::from_parts(63_932_000, 0)
.saturating_add(Weight::from_parts(0, 4195))
// Measured: `673`
// Estimated: `4138`
// Minimum execution time: 68_091_000 picoseconds.
Weight::from_parts(77_310_000, 0)
.saturating_add(Weight::from_parts(0, 4138))
.saturating_add(T::DbWeight::get().reads(10))
.saturating_add(T::DbWeight::get().writes(6))
.saturating_add(T::DbWeight::get().writes(7))
}
/// Storage: `AssignedSlots::PermanentSlots` (r:1 w:0)
/// Proof: `AssignedSlots::PermanentSlots` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
@@ -120,11 +118,11 @@ impl<T: frame_system::Config> runtime_common::assigned_slots::WeightInfo for Wei
/// Proof: `AssignedSlots::TemporarySlotCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
fn unassign_parachain_slot() -> Weight {
// Proof Size summary in bytes:
// Measured: `856`
// Estimated: `4321`
// Minimum execution time: 35_764_000 picoseconds.
Weight::from_parts(38_355_000, 0)
.saturating_add(Weight::from_parts(0, 4321))
// Measured: `823`
// Estimated: `4288`
// Minimum execution time: 38_081_000 picoseconds.
Weight::from_parts(40_987_000, 0)
.saturating_add(Weight::from_parts(0, 4288))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(3))
}
@@ -134,8 +132,8 @@ impl<T: frame_system::Config> runtime_common::assigned_slots::WeightInfo for Wei
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_634_000 picoseconds.
Weight::from_parts(4_852_000, 0)
// Minimum execution time: 7_182_000 picoseconds.
Weight::from_parts(7_437_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
@@ -145,8 +143,8 @@ impl<T: frame_system::Config> runtime_common::assigned_slots::WeightInfo for Wei
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_563_000 picoseconds.
Weight::from_parts(4_829_000, 0)
// Minimum execution time: 7_153_000 picoseconds.
Weight::from_parts(7_456_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}