moonbase_runtime/
migrations.rs

1// Copyright 2025 Moonbeam Foundation.Inc.
2// This file is part of Moonbeam.
3
4// Moonbeam is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Moonbeam is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Moonbeam.  If not, see <http://www.gnu.org/licenses/>.
16
17//! # Moonbase specific Migrations
18
19use crate::xcm_config::AssetType;
20use moonbeam_core_primitives::AssetId;
21use sp_core::parameter_types;
22
23parameter_types! {
24	pub RelayAssetId: AssetId = AssetType::Xcm(xcm::v3::Location::parent()).into();
25}
26
27type MoonbaseMigrations = ();
28
29/// List of single block migrations to be executed by frame executive.
30pub type SingleBlockMigrations<Runtime> = (
31	// Common migrations applied on all Moonbeam runtime
32	moonbeam_runtime_common::migrations::SingleBlockMigrations<Runtime>,
33	// Moonbase specific migrations
34	MoonbaseMigrations,
35);
36
37/// List of multi block migrations to be executed by the pallet_migrations.
38#[cfg(not(feature = "runtime-benchmarks"))]
39pub type MultiBlockMigrationList<Runtime> = (
40	// Common multiblock migrations applied on all Moonbeam runtimes
41	moonbeam_runtime_common::migrations::MultiBlockMigrations<Runtime>,
42	// ... Moonbase specific multiblock migrations
43);