Skip to content

Commit

Permalink
Remove migration pallet from altair runtime (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
branan committed Aug 23, 2021
1 parent 252d847 commit 459844a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

3 changes: 0 additions & 3 deletions runtime/altair/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,13 @@ runtime-common = { path = "../common", default-features = false }
pallet-anchors = { path = "../../pallets/anchors", default-features = false }
pallet-fees = { path = "../../pallets/fees", default-features = false }
pallet-claims = { path = "../../pallets/claims", default-features = false }
pallet-migration-manager = { path = "../../pallets/migration", default-features = false }

[build-dependencies]
substrate-wasm-builder = "3.0.0"

[features]
default = ["std"]
std = [
"pallet-migration-manager/std",
"sp-authority-discovery/std",
"pallet-authority-discovery/std",
"pallet-authorship/std",
Expand Down Expand Up @@ -183,7 +181,6 @@ runtime-benchmarks = [
"xcm-builder/runtime-benchmarks",
"pallet-collective/runtime-benchmarks",
"pallet-society/runtime-benchmarks",
"pallet-migration-manager/runtime-benchmarks"
]

# A feature that should be enabled when the runtime should be build for on-chain
Expand Down
21 changes: 0 additions & 21 deletions runtime/altair/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,22 +618,6 @@ impl pallet_claims::Config for Runtime {
type WeightInfo = ();
}

parameter_types! {
pub const MigrationMaxAccounts: u32 = 100;
pub const MigrationMaxVestings: u32 = 10;
pub const MigrationMaxProxies: u32 = 10;
}

// Implement the migration manager pallet
// The actual associated type, which executes the migration can be found in the migration folder
impl pallet_migration_manager::Config for Runtime {
type MigrationMaxAccounts = MigrationMaxAccounts;
type MigrationMaxVestings = MigrationMaxVestings;
type MigrationMaxProxies = MigrationMaxProxies;
type Event = Event;
type WeightInfo = pallet_migration_manager::SubstrateWeight<Self>;
}

// admin stuff
impl pallet_sudo::Config for Runtime {
type Event = Event;
Expand Down Expand Up @@ -682,8 +666,6 @@ construct_runtime!(
Anchor: pallet_anchors::{Pallet, Call, Storage, Config} = 91,
Claims: pallet_claims::{Pallet, Call, Storage, Event<T>, ValidateUnsigned} = 92,

// migration pallet
Migration: pallet_migration_manager::{Pallet, Call, Storage, Event<T>} = 199,
// admin stuff
Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>} = 200,
}
Expand Down Expand Up @@ -855,9 +837,6 @@ impl_runtime_apis! {
// Pallet fees benchmarks
add_benchmark!(params, batches, pallet_fees, Fees);

// Pallet migration benchmarks
add_benchmark!(params, batches, pallet_migration_manager, Migration);

if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) }
Ok(batches)
}
Expand Down

0 comments on commit 459844a

Please sign in to comment.