Skip to content

Commit

Permalink
Weights for Kusama
Browse files Browse the repository at this point in the history
  • Loading branch information
bkontur committed Jun 6, 2024
1 parent 3cbd8fb commit 9c64dd7
Show file tree
Hide file tree
Showing 56 changed files with 1,561 additions and 1,508 deletions.
2 changes: 1 addition & 1 deletion relay/kusama/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ where
fn on_reap_identity(who: &AccountId, fields: u32, subs: u32) -> DispatchResult {
use crate::{
impls::IdentityMigratorCalls::PokeDeposit,
weights::runtime_common_identity_migrator::WeightInfo as MigratorWeights,
weights::polkadot_runtime_common_identity_migrator::WeightInfo as MigratorWeights,
};

let total_to_send = Self::calculate_remote_deposit(fields, subs);
Expand Down
16 changes: 7 additions & 9 deletions relay/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ impl claims::Config for Runtime {
type VestingSchedule = Vesting;
type Prefix = Prefix;
type MoveClaimOrigin = EnsureRoot<AccountId>;
type WeightInfo = weights::runtime_common_claims::WeightInfo<Runtime>;
type WeightInfo = weights::polkadot_runtime_common_claims::WeightInfo<Runtime>;
}

parameter_types! {
Expand Down Expand Up @@ -1005,7 +1005,7 @@ impl identity_migrator::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Reaper = EnsureSigned<AccountId>;
type ReapIdentityHandler = impls::ToParachainIdentityReaper<Runtime, Self::AccountId>;
type WeightInfo = weights::runtime_common_identity_migrator::WeightInfo<Runtime>;
type WeightInfo = weights::polkadot_runtime_common_identity_migrator::WeightInfo<Runtime>;
}

impl pallet_utility::Config for Runtime {
Expand Down Expand Up @@ -1440,7 +1440,7 @@ impl paras_registrar::Config for Runtime {
type OnSwap = (Crowdloan, Slots);
type ParaDeposit = ParaDeposit;
type DataDepositPerByte = DataDepositPerByte;
type WeightInfo = weights::runtime_common_paras_registrar::WeightInfo<Runtime>;
type WeightInfo = weights::polkadot_runtime_common_paras_registrar::WeightInfo<Runtime>;
}

parameter_types! {
Expand All @@ -1455,7 +1455,7 @@ impl slots::Config for Runtime {
type LeasePeriod = LeasePeriod;
type LeaseOffset = ();
type ForceOrigin = EitherOf<EnsureRoot<Self::AccountId>, LeaseAdmin>;
type WeightInfo = weights::runtime_common_slots::WeightInfo<Runtime>;
type WeightInfo = weights::polkadot_runtime_common_slots::WeightInfo<Runtime>;
}

parameter_types! {
Expand All @@ -1476,7 +1476,7 @@ impl crowdloan::Config for Runtime {
type Registrar = Registrar;
type Auctioneer = Auctions;
type MaxMemoLength = MaxMemoLength;
type WeightInfo = weights::runtime_common_crowdloan::WeightInfo<Runtime>;
type WeightInfo = weights::polkadot_runtime_common_crowdloan::WeightInfo<Runtime>;
}

parameter_types! {
Expand All @@ -1495,7 +1495,7 @@ impl auctions::Config for Runtime {
type SampleLength = SampleLength;
type Randomness = pallet_babe::RandomnessFromOneEpochAgo<Runtime>;
type InitiateOrigin = EitherOf<EnsureRoot<Self::AccountId>, AuctionAdmin>;
type WeightInfo = weights::runtime_common_auctions::WeightInfo<Runtime>;
type WeightInfo = weights::polkadot_runtime_common_auctions::WeightInfo<Runtime>;
}

type NisCounterpartInstance = pallet_balances::Instance2;
Expand Down Expand Up @@ -1975,7 +1975,7 @@ pub mod migrations {
) {
log::debug!(target: "runtime", "Cancelling scheduled auctions failed: {:?}", err);
}
weights::runtime_common_auctions::WeightInfo::<Runtime>::cancel_auction()
weights::polkadot_runtime_common_auctions::WeightInfo::<Runtime>::cancel_auction()
.saturating_add(weights::pallet_scheduler::WeightInfo::<Runtime>::cancel_named(
<Runtime as pallet_scheduler::Config>::MaxScheduledPerBlock::get(),
))
Expand Down Expand Up @@ -2033,8 +2033,6 @@ pub type SignedPayload = generic::SignedPayload<RuntimeCall, SignedExtra>;
mod benches {
frame_benchmarking::define_benchmarks!(
// Polkadot
// NOTE: Make sure to prefix these with `polkadot_runtime_common::` so
// that the path resolves correctly in the generated file.
[polkadot_runtime_common::auctions, Auctions]
[polkadot_runtime_common::crowdloan, Crowdloan]
[polkadot_runtime_common::claims, Claims]
Expand Down
33 changes: 17 additions & 16 deletions relay/kusama/src/weights/frame_benchmarking_baseline.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 15 additions & 14 deletions relay/kusama/src/weights/frame_election_provider_support.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 33 additions & 32 deletions relay/kusama/src/weights/frame_system.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions relay/kusama/src/weights/mod.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9c64dd7

Please sign in to comment.