mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 18:41:01 +00:00
Deprecate Weight::from_{ref_time, proof_size} (#13475)
* Deprecate Weight::from_{ref_time, proof_size}
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Update templates
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Use from_parts
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Use from_parts
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Dont revert comment 🤦
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_balances
* Update weight files
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* More fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Adapt to Master changes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: command-bot <>
This commit is contained in:
committed by
GitHub
parent
7981d4aa59
commit
9e56e1acdd
@@ -121,7 +121,7 @@ impl Contains<RuntimeCall> for BaseFilter {
|
||||
parameter_types! {
|
||||
pub BlockWeights: frame_system::limits::BlockWeights =
|
||||
frame_system::limits::BlockWeights::simple_max(
|
||||
Weight::from_ref_time(2_000_000_000_000).set_proof_size(u64::MAX),
|
||||
Weight::from_parts(2_000_000_000_000, u64::MAX),
|
||||
);
|
||||
}
|
||||
impl system::Config for Test {
|
||||
@@ -169,40 +169,40 @@ impl pallet_preimage::Config for Test {
|
||||
pub struct TestWeightInfo;
|
||||
impl WeightInfo for TestWeightInfo {
|
||||
fn service_agendas_base() -> Weight {
|
||||
Weight::from_ref_time(0b0000_0001)
|
||||
Weight::from_parts(0b0000_0001, 0)
|
||||
}
|
||||
fn service_agenda_base(i: u32) -> Weight {
|
||||
Weight::from_ref_time((i << 8) as u64 + 0b0000_0010)
|
||||
Weight::from_parts((i << 8) as u64 + 0b0000_0010, 0)
|
||||
}
|
||||
fn service_task_base() -> Weight {
|
||||
Weight::from_ref_time(0b0000_0100)
|
||||
Weight::from_parts(0b0000_0100, 0)
|
||||
}
|
||||
fn service_task_periodic() -> Weight {
|
||||
Weight::from_ref_time(0b0000_1100)
|
||||
Weight::from_parts(0b0000_1100, 0)
|
||||
}
|
||||
fn service_task_named() -> Weight {
|
||||
Weight::from_ref_time(0b0001_0100)
|
||||
Weight::from_parts(0b0001_0100, 0)
|
||||
}
|
||||
fn service_task_fetched(s: u32) -> Weight {
|
||||
Weight::from_ref_time((s << 8) as u64 + 0b0010_0100)
|
||||
Weight::from_parts((s << 8) as u64 + 0b0010_0100, 0)
|
||||
}
|
||||
fn execute_dispatch_signed() -> Weight {
|
||||
Weight::from_ref_time(0b0100_0000)
|
||||
Weight::from_parts(0b0100_0000, 0)
|
||||
}
|
||||
fn execute_dispatch_unsigned() -> Weight {
|
||||
Weight::from_ref_time(0b1000_0000)
|
||||
Weight::from_parts(0b1000_0000, 0)
|
||||
}
|
||||
fn schedule(_s: u32) -> Weight {
|
||||
Weight::from_ref_time(50)
|
||||
Weight::from_parts(50, 0)
|
||||
}
|
||||
fn cancel(_s: u32) -> Weight {
|
||||
Weight::from_ref_time(50)
|
||||
Weight::from_parts(50, 0)
|
||||
}
|
||||
fn schedule_named(_s: u32) -> Weight {
|
||||
Weight::from_ref_time(50)
|
||||
Weight::from_parts(50, 0)
|
||||
}
|
||||
fn cancel_named(_s: u32) -> Weight {
|
||||
Weight::from_ref_time(50)
|
||||
Weight::from_parts(50, 0)
|
||||
}
|
||||
}
|
||||
parameter_types! {
|
||||
|
||||
Reference in New Issue
Block a user