Skip to content

Commit

Permalink
remove benchmarks from pallet-moonbeam-lazy-migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ committed Nov 13, 2024
1 parent f1c023a commit da165a2
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 82 deletions.
46 changes: 0 additions & 46 deletions pallets/moonbeam-lazy-migrations/src/benchmarks.rs

This file was deleted.

2 changes: 0 additions & 2 deletions pallets/moonbeam-lazy-migrations/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#![allow(non_camel_case_types)]
#![cfg_attr(not(feature = "std"), no_std)]

#[cfg(any(test, feature = "runtime-benchmarks"))]
mod benchmarks;
#[cfg(test)]
mod mock;
#[cfg(test)]
Expand Down
31 changes: 0 additions & 31 deletions pallets/moonbeam-lazy-migrations/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ construct_runtime!(
Timestamp: pallet_timestamp,
EVM: pallet_evm,
LazyMigrations: pallet_moonbeam_lazy_migrations::{Pallet, Call},
Scheduler: pallet_scheduler::{Pallet, Call, Storage, Event<T>},
}
);

Expand Down Expand Up @@ -113,36 +112,6 @@ impl pallet_balances::Config for Test {
type RuntimeFreezeReason = ();
}

impl pallet_scheduler::Config for Test {
type RuntimeEvent = RuntimeEvent;
type RuntimeOrigin = RuntimeOrigin;
type PalletsOrigin = OriginCaller;
type RuntimeCall = RuntimeCall;
type MaximumWeight = ();
type ScheduleOrigin = EnsureRoot<Self::AccountId>;
type MaxScheduledPerBlock = ConstU32<100>;
type WeightInfo = ();
type OriginPrivilegeCmp = EqualPrivilegeOnly;
type Preimages = ();
}

ord_parameter_types! {
pub const One: u64 = 1;
pub const Two: u64 = 2;
pub const Three: u64 = 3;
pub const Four: u64 = 4;
pub const Five: u64 = 5;
pub const Six: u64 = 6;
}
pub struct OneToFive;
impl SortedMembers<u64> for OneToFive {
fn sorted_members() -> Vec<u64> {
vec![1, 2, 3, 4, 5]
}
#[cfg(feature = "runtime-benchmarks")]
fn add(_m: &u64) {}
}

parameter_types! {
pub const MinimumPeriod: u64 = 6000 / 2;
}
Expand Down
1 change: 0 additions & 1 deletion runtime/moonbase/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,6 @@ mod benches {
[pallet_multisig, Multisig]
[pallet_relay_storage_roots, RelayStorageRoots]
[pallet_precompile_benchmarks, PrecompileBenchmarks]
[pallet_moonbeam_lazy_migrations, MoonbeamLazyMigrations]
[pallet_parameters, Parameters]
[pallet_xcm_weight_trader, XcmWeightTrader]
);
Expand Down
1 change: 0 additions & 1 deletion runtime/moonbeam/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,6 @@ mod benches {
[pallet_preimage, Preimage]
[pallet_whitelist, Whitelist]
[pallet_multisig, Multisig]
[pallet_moonbeam_lazy_migrations, MoonbeamLazyMigrations]
[pallet_relay_storage_roots, RelayStorageRoots]
);
}
Expand Down
1 change: 0 additions & 1 deletion runtime/moonriver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,6 @@ mod benches {
[pallet_preimage, Preimage]
[pallet_whitelist, Whitelist]
[pallet_multisig, Multisig]
[pallet_moonbeam_lazy_migrations, MoonbeamLazyMigrations]
[pallet_relay_storage_roots, RelayStorageRoots]
);
}
Expand Down

0 comments on commit da165a2

Please sign in to comment.