mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 20:21:03 +00:00
Add force remove vesting (#1982)
This PR exposes a `force_remove_vesting` through a ROOT call. See linked [issue](https://github.com/paritytech/polkadot-sdk/issues/269) --------- Co-authored-by: georgepisaltu <52418509+georgepisaltu@users.noreply.github.com> Co-authored-by: command-bot <> Co-authored-by: Dónal Murray <donal.murray@parity.io>
This commit is contained in:
committed by
GitHub
parent
fb2dc6df8d
commit
318e5969c7
@@ -187,16 +187,29 @@ impl<T: frame_system::Config> pallet_vesting::WeightInfo for WeightInfo<T> {
|
||||
.saturating_add(T::DbWeight::get().reads(5))
|
||||
.saturating_add(T::DbWeight::get().writes(4))
|
||||
}
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[2, 28]`.
|
||||
fn force_remove_vesting_schedule(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `555 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 41_497_000 picoseconds.
|
||||
Weight::from_parts(38_763_834, 4764)
|
||||
// Standard Error: 2_030
|
||||
.saturating_add(Weight::from_parts(99_580, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_750
|
||||
.saturating_add(Weight::from_parts(132_188, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `378 + l * (25 ±0) + s * (36 ±0)`
|
||||
|
||||
@@ -238,4 +238,28 @@ impl<T: frame_system::Config> pallet_vesting::WeightInfo for WeightInfo<T> {
|
||||
.saturating_add(T::DbWeight::get().reads(4))
|
||||
.saturating_add(T::DbWeight::get().writes(3))
|
||||
}
|
||||
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[2, 28]`.
|
||||
fn force_remove_vesting_schedule(l: u32, s: u32) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `555 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 41_497_000 picoseconds.
|
||||
Weight::from_parts(38_763_834, 4764)
|
||||
// Standard Error: 2_030
|
||||
.saturating_add(Weight::from_parts(99_580, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_750
|
||||
.saturating_add(Weight::from_parts(132_188, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -383,6 +383,33 @@ benchmarks! {
|
||||
);
|
||||
}
|
||||
|
||||
force_remove_vesting_schedule {
|
||||
let l in 0 .. MaxLocksOf::<T>::get() - 1;
|
||||
let s in 2 .. T::MAX_VESTING_SCHEDULES;
|
||||
|
||||
let source: T::AccountId = account("source", 0, SEED);
|
||||
let source_lookup: <T::Lookup as StaticLookup>::Source = T::Lookup::unlookup(source.clone());
|
||||
T::Currency::make_free_balance_be(&source, BalanceOf::<T>::max_value());
|
||||
|
||||
let target: T::AccountId = account("target", 0, SEED);
|
||||
let target_lookup: <T::Lookup as StaticLookup>::Source = T::Lookup::unlookup(target.clone());
|
||||
T::Currency::make_free_balance_be(&target, T::Currency::minimum_balance());
|
||||
|
||||
// Give target existing locks.
|
||||
add_locks::<T>(&target, l as u8);
|
||||
let _ = add_vesting_schedules::<T>(target_lookup.clone(), s)?;
|
||||
|
||||
// The last vesting schedule.
|
||||
let schedule_index = s - 1;
|
||||
}: _(RawOrigin::Root, target_lookup, schedule_index)
|
||||
verify {
|
||||
assert_eq!(
|
||||
Vesting::<T>::vesting(&target).unwrap().len(),
|
||||
schedule_index as usize,
|
||||
"Schedule count should reduce by 1"
|
||||
);
|
||||
}
|
||||
|
||||
impl_benchmark_test_suite!(
|
||||
Vesting,
|
||||
crate::mock::ExtBuilder::default().existential_deposit(256).build(),
|
||||
|
||||
@@ -427,6 +427,36 @@ pub mod pallet {
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Force remove a vesting schedule
|
||||
///
|
||||
/// The dispatch origin for this call must be _Root_.
|
||||
///
|
||||
/// - `target`: An account that has a vesting schedule
|
||||
/// - `schedule_index`: The vesting schedule index that should be removed
|
||||
#[pallet::call_index(5)]
|
||||
#[pallet::weight(
|
||||
T::WeightInfo::force_remove_vesting_schedule(MaxLocksOf::<T>::get(), T::MAX_VESTING_SCHEDULES)
|
||||
)]
|
||||
pub fn force_remove_vesting_schedule(
|
||||
origin: OriginFor<T>,
|
||||
target: <T::Lookup as StaticLookup>::Source,
|
||||
schedule_index: u32,
|
||||
) -> DispatchResultWithPostInfo {
|
||||
ensure_root(origin)?;
|
||||
let who = T::Lookup::lookup(target)?;
|
||||
|
||||
let schedules_count = Vesting::<T>::decode_len(&who).unwrap_or_default();
|
||||
ensure!(schedule_index < schedules_count as u32, Error::<T>::InvalidScheduleParams);
|
||||
|
||||
Self::remove_vesting_schedule(&who, schedule_index)?;
|
||||
|
||||
Ok(Some(T::WeightInfo::force_remove_vesting_schedule(
|
||||
MaxLocksOf::<T>::get(),
|
||||
schedules_count as u32,
|
||||
))
|
||||
.into())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1155,3 +1155,39 @@ fn vested_transfer_less_than_existential_deposit_fails() {
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn remove_vesting_schedule() {
|
||||
ExtBuilder::default().existential_deposit(ED).build().execute_with(|| {
|
||||
assert_eq!(Balances::free_balance(&3), 256 * 30);
|
||||
assert_eq!(Balances::free_balance(&4), 256 * 40);
|
||||
// Account 4 should not have any vesting yet.
|
||||
assert_eq!(Vesting::vesting(&4), None);
|
||||
// Make the schedule for the new transfer.
|
||||
let new_vesting_schedule = VestingInfo::new(
|
||||
ED * 5,
|
||||
(ED * 5) / 20, // Vesting over 20 blocks
|
||||
10,
|
||||
);
|
||||
assert_ok!(Vesting::vested_transfer(Some(3).into(), 4, new_vesting_schedule));
|
||||
// Now account 4 should have vesting.
|
||||
assert_eq!(Vesting::vesting(&4).unwrap(), vec![new_vesting_schedule]);
|
||||
// Account 4 has 5 * 256 locked.
|
||||
assert_eq!(Vesting::vesting_balance(&4), Some(256 * 5));
|
||||
// Verify only root can call.
|
||||
assert_noop!(Vesting::force_remove_vesting_schedule(Some(4).into(), 4, 0), BadOrigin);
|
||||
// Verify that root can remove the schedule.
|
||||
assert_ok!(Vesting::force_remove_vesting_schedule(RawOrigin::Root.into(), 4, 0));
|
||||
// Verify that last event is VestingCompleted.
|
||||
System::assert_last_event(Event::VestingCompleted { account: 4 }.into());
|
||||
// Appropriate storage is cleaned up.
|
||||
assert!(!<VestingStorage<Test>>::contains_key(4));
|
||||
// Check the vesting balance is zero.
|
||||
assert_eq!(Vesting::vesting(&4), None);
|
||||
// Verifies that trying to remove a schedule when it doesnt exist throws error.
|
||||
assert_noop!(
|
||||
Vesting::force_remove_vesting_schedule(RawOrigin::Root.into(), 4, 0),
|
||||
Error::<Test>::InvalidScheduleParams
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Generated
+277
-233
@@ -15,32 +15,29 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_vesting
|
||||
//! Autogenerated weights for `pallet_vesting`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2023-10-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-vmdtonbz-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_vesting
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/vesting/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_vesting
|
||||
// --chain=dev
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --output=./substrate/frame/vesting/src/weights.rs
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +47,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_vesting.
|
||||
/// Weight functions needed for `pallet_vesting`.
|
||||
pub trait WeightInfo {
|
||||
fn vest_locked(l: u32, s: u32, ) -> Weight;
|
||||
fn vest_unlocked(l: u32, s: u32, ) -> Weight;
|
||||
@@ -60,372 +57,419 @@ pub trait WeightInfo {
|
||||
fn force_vested_transfer(l: u32, s: u32, ) -> Weight;
|
||||
fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight;
|
||||
fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight;
|
||||
fn force_remove_vesting_schedule(l: u32, s: u32, ) -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_vesting using the Substrate node and recommended hardware.
|
||||
/// Weights for `pallet_vesting` using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_locked(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `381 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 35_336_000 picoseconds.
|
||||
Weight::from_parts(34_290_169, 4764)
|
||||
// Standard Error: 1_381
|
||||
.saturating_add(Weight::from_parts(76_354, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 2_457
|
||||
.saturating_add(Weight::from_parts(81_362, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 32_846_000 picoseconds.
|
||||
Weight::from_parts(30_974_459, 4764)
|
||||
// Standard Error: 1_755
|
||||
.saturating_add(Weight::from_parts(73_138, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_123
|
||||
.saturating_add(Weight::from_parts(82_417, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_unlocked(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `381 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 38_540_000 picoseconds.
|
||||
Weight::from_parts(38_893_820, 4764)
|
||||
// Standard Error: 1_710
|
||||
.saturating_add(Weight::from_parts(62_106, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_043
|
||||
.saturating_add(Weight::from_parts(41_966, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 34_360_000 picoseconds.
|
||||
Weight::from_parts(34_964_080, 4764)
|
||||
// Standard Error: 1_996
|
||||
.saturating_add(Weight::from_parts(48_024, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_552
|
||||
.saturating_add(Weight::from_parts(34_411, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_other_locked(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `484 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 37_529_000 picoseconds.
|
||||
Weight::from_parts(36_781_151, 4764)
|
||||
// Standard Error: 1_490
|
||||
.saturating_add(Weight::from_parts(76_322, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 2_652
|
||||
.saturating_add(Weight::from_parts(76_914, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 33_859_000 picoseconds.
|
||||
Weight::from_parts(32_950_681, 4764)
|
||||
// Standard Error: 1_745
|
||||
.saturating_add(Weight::from_parts(69_323, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_105
|
||||
.saturating_add(Weight::from_parts(86_370, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_other_unlocked(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `484 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 41_217_000 picoseconds.
|
||||
Weight::from_parts(40_942_515, 4764)
|
||||
// Standard Error: 2_098
|
||||
.saturating_add(Weight::from_parts(65_213, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_733
|
||||
.saturating_add(Weight::from_parts(63_326, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 36_239_000 picoseconds.
|
||||
Weight::from_parts(36_459_756, 4764)
|
||||
// Standard Error: 2_051
|
||||
.saturating_add(Weight::from_parts(56_670, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_650
|
||||
.saturating_add(Weight::from_parts(49_663, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[0, 27]`.
|
||||
fn vested_transfer(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `555 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 76_396_000 picoseconds.
|
||||
Weight::from_parts(77_085_336, 4764)
|
||||
// Standard Error: 2_795
|
||||
.saturating_add(Weight::from_parts(88_995, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 4_974
|
||||
.saturating_add(Weight::from_parts(135_384, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 70_330_000 picoseconds.
|
||||
Weight::from_parts(71_196_328, 4764)
|
||||
// Standard Error: 2_923
|
||||
.saturating_add(Weight::from_parts(67_238, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 5_201
|
||||
.saturating_add(Weight::from_parts(89_102, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:2 w:2)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[0, 27]`.
|
||||
fn force_vested_transfer(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `658 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 77_312_000 picoseconds.
|
||||
Weight::from_parts(79_600_900, 6196)
|
||||
// Standard Error: 3_232
|
||||
.saturating_add(Weight::from_parts(78_018, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 5_750
|
||||
.saturating_add(Weight::from_parts(100_848, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 70_235_000 picoseconds.
|
||||
Weight::from_parts(71_960_020, 6196)
|
||||
// Standard Error: 2_493
|
||||
.saturating_add(Weight::from_parts(64_835, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 4_436
|
||||
.saturating_add(Weight::from_parts(102_159, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[2, 28]`.
|
||||
fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `482 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 38_769_000 picoseconds.
|
||||
Weight::from_parts(37_752_437, 4764)
|
||||
// Standard Error: 1_415
|
||||
.saturating_add(Weight::from_parts(78_398, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 2_614
|
||||
.saturating_add(Weight::from_parts(78_922, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 34_352_000 picoseconds.
|
||||
Weight::from_parts(33_697_027, 4764)
|
||||
// Standard Error: 2_008
|
||||
.saturating_add(Weight::from_parts(79_270, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_710
|
||||
.saturating_add(Weight::from_parts(60_691, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[2, 28]`.
|
||||
fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `482 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 43_021_000 picoseconds.
|
||||
Weight::from_parts(42_182_858, 4764)
|
||||
// Standard Error: 1_747
|
||||
.saturating_add(Weight::from_parts(83_938, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_227
|
||||
.saturating_add(Weight::from_parts(84_652, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 37_467_000 picoseconds.
|
||||
Weight::from_parts(36_866_847, 4764)
|
||||
// Standard Error: 1_692
|
||||
.saturating_add(Weight::from_parts(57_882, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_124
|
||||
.saturating_add(Weight::from_parts(80_266, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[2, 28]`.
|
||||
fn force_remove_vesting_schedule(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `555 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 41_497_000 picoseconds.
|
||||
Weight::from_parts(38_763_834, 4764)
|
||||
// Standard Error: 2_030
|
||||
.saturating_add(Weight::from_parts(99_580, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_750
|
||||
.saturating_add(Weight::from_parts(132_188, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_locked(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `381 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 35_336_000 picoseconds.
|
||||
Weight::from_parts(34_290_169, 4764)
|
||||
// Standard Error: 1_381
|
||||
.saturating_add(Weight::from_parts(76_354, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 2_457
|
||||
.saturating_add(Weight::from_parts(81_362, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 32_846_000 picoseconds.
|
||||
Weight::from_parts(30_974_459, 4764)
|
||||
// Standard Error: 1_755
|
||||
.saturating_add(Weight::from_parts(73_138, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_123
|
||||
.saturating_add(Weight::from_parts(82_417, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_unlocked(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `381 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 38_540_000 picoseconds.
|
||||
Weight::from_parts(38_893_820, 4764)
|
||||
// Standard Error: 1_710
|
||||
.saturating_add(Weight::from_parts(62_106, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_043
|
||||
.saturating_add(Weight::from_parts(41_966, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 34_360_000 picoseconds.
|
||||
Weight::from_parts(34_964_080, 4764)
|
||||
// Standard Error: 1_996
|
||||
.saturating_add(Weight::from_parts(48_024, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_552
|
||||
.saturating_add(Weight::from_parts(34_411, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_other_locked(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `484 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 37_529_000 picoseconds.
|
||||
Weight::from_parts(36_781_151, 4764)
|
||||
// Standard Error: 1_490
|
||||
.saturating_add(Weight::from_parts(76_322, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 2_652
|
||||
.saturating_add(Weight::from_parts(76_914, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 33_859_000 picoseconds.
|
||||
Weight::from_parts(32_950_681, 4764)
|
||||
// Standard Error: 1_745
|
||||
.saturating_add(Weight::from_parts(69_323, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_105
|
||||
.saturating_add(Weight::from_parts(86_370, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_other_unlocked(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `484 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 41_217_000 picoseconds.
|
||||
Weight::from_parts(40_942_515, 4764)
|
||||
// Standard Error: 2_098
|
||||
.saturating_add(Weight::from_parts(65_213, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_733
|
||||
.saturating_add(Weight::from_parts(63_326, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 36_239_000 picoseconds.
|
||||
Weight::from_parts(36_459_756, 4764)
|
||||
// Standard Error: 2_051
|
||||
.saturating_add(Weight::from_parts(56_670, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_650
|
||||
.saturating_add(Weight::from_parts(49_663, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[0, 27]`.
|
||||
fn vested_transfer(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `555 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 76_396_000 picoseconds.
|
||||
Weight::from_parts(77_085_336, 4764)
|
||||
// Standard Error: 2_795
|
||||
.saturating_add(Weight::from_parts(88_995, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 4_974
|
||||
.saturating_add(Weight::from_parts(135_384, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 70_330_000 picoseconds.
|
||||
Weight::from_parts(71_196_328, 4764)
|
||||
// Standard Error: 2_923
|
||||
.saturating_add(Weight::from_parts(67_238, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 5_201
|
||||
.saturating_add(Weight::from_parts(89_102, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:2 w:2)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[0, 27]`.
|
||||
fn force_vested_transfer(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `658 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 77_312_000 picoseconds.
|
||||
Weight::from_parts(79_600_900, 6196)
|
||||
// Standard Error: 3_232
|
||||
.saturating_add(Weight::from_parts(78_018, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 5_750
|
||||
.saturating_add(Weight::from_parts(100_848, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 70_235_000 picoseconds.
|
||||
Weight::from_parts(71_960_020, 6196)
|
||||
// Standard Error: 2_493
|
||||
.saturating_add(Weight::from_parts(64_835, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 4_436
|
||||
.saturating_add(Weight::from_parts(102_159, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[2, 28]`.
|
||||
fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `482 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 38_769_000 picoseconds.
|
||||
Weight::from_parts(37_752_437, 4764)
|
||||
// Standard Error: 1_415
|
||||
.saturating_add(Weight::from_parts(78_398, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 2_614
|
||||
.saturating_add(Weight::from_parts(78_922, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 34_352_000 picoseconds.
|
||||
Weight::from_parts(33_697_027, 4764)
|
||||
// Standard Error: 2_008
|
||||
.saturating_add(Weight::from_parts(79_270, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_710
|
||||
.saturating_add(Weight::from_parts(60_691, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[2, 28]`.
|
||||
fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `482 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 43_021_000 picoseconds.
|
||||
Weight::from_parts(42_182_858, 4764)
|
||||
// Standard Error: 1_747
|
||||
.saturating_add(Weight::from_parts(83_938, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_227
|
||||
.saturating_add(Weight::from_parts(84_652, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 37_467_000 picoseconds.
|
||||
Weight::from_parts(36_866_847, 4764)
|
||||
// Standard Error: 1_692
|
||||
.saturating_add(Weight::from_parts(57_882, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_124
|
||||
.saturating_add(Weight::from_parts(80_266, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: `Vesting::Vesting` (r:1 w:1)
|
||||
/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[2, 28]`.
|
||||
fn force_remove_vesting_schedule(l: u32, s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `555 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 41_497_000 picoseconds.
|
||||
Weight::from_parts(38_763_834, 4764)
|
||||
// Standard Error: 2_030
|
||||
.saturating_add(Weight::from_parts(99_580, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_750
|
||||
.saturating_add(Weight::from_parts(132_188, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user