Skip to content

Commit

Permalink
Merge pull request #285 from peaqnetwork/feat/1208310165356699_remove…
Browse files Browse the repository at this point in the history
…_migration

Remove the migrations
  • Loading branch information
sfffaaa authored Sep 16, 2024
2 parents bd3deaf + bc10812 commit 9299c9c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 330 deletions.
16 changes: 2 additions & 14 deletions runtime/krest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ use sp_version::NativeVersion;
use sp_version::RuntimeVersion;
use zenlink_protocol::{AssetBalance, MultiAssetsHandler, PairInfo, ZenlinkMultiAssets};

mod vesting_migration;
mod weights;
pub mod xcm_config;

Expand Down Expand Up @@ -404,14 +403,7 @@ impl pallet_contracts::Config for Runtime {
type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent;
type MaxDelegateDependencies = MaxDelegateDependencies;
type RuntimeHoldReason = RuntimeHoldReason;
type Migrations = (
pallet_contracts::migration::v10::Migration<Runtime, Balances>,
pallet_contracts::migration::v11::Migration<Runtime>,
pallet_contracts::migration::v12::Migration<Runtime, Balances>,
pallet_contracts::migration::v13::Migration<Runtime>,
pallet_contracts::migration::v14::Migration<Runtime, Balances>,
pallet_contracts::migration::v15::Migration<Runtime>,
);
type Migrations = ();
type Debug = ();
type Environment = ();
type Xcm = ();
Expand Down Expand Up @@ -1161,11 +1153,7 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
(
cumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
pallet_contracts::Migration<Runtime>,
vesting_migration::VestingMigrationToAsyncBacking<Runtime>,
),
(),
>;

#[cfg(feature = "runtime-benchmarks")]
Expand Down
96 changes: 0 additions & 96 deletions runtime/krest/src/vesting_migration.rs

This file was deleted.

16 changes: 2 additions & 14 deletions runtime/peaq-dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ use sp_version::NativeVersion;
use sp_version::RuntimeVersion;
use zenlink_protocol::{AssetBalance, MultiAssetsHandler, PairInfo, ZenlinkMultiAssets};

mod vesting_migration;
mod weights;
pub mod xcm_config;

Expand Down Expand Up @@ -410,14 +409,7 @@ impl pallet_contracts::Config for Runtime {
type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent;
type MaxDelegateDependencies = MaxDelegateDependencies;
type RuntimeHoldReason = RuntimeHoldReason;
type Migrations = (
pallet_contracts::migration::v10::Migration<Runtime, Balances>,
pallet_contracts::migration::v11::Migration<Runtime>,
pallet_contracts::migration::v12::Migration<Runtime, Balances>,
pallet_contracts::migration::v13::Migration<Runtime>,
pallet_contracts::migration::v14::Migration<Runtime, Balances>,
pallet_contracts::migration::v15::Migration<Runtime>,
);
type Migrations = ();
type Debug = ();
type Environment = ();
type Xcm = ();
Expand Down Expand Up @@ -1176,11 +1168,7 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
(
cumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
pallet_contracts::Migration<Runtime>,
vesting_migration::VestingMigrationToAsyncBacking<Runtime>,
),
(),
>;

#[cfg(feature = "runtime-benchmarks")]
Expand Down
96 changes: 0 additions & 96 deletions runtime/peaq-dev/src/vesting_migration.rs

This file was deleted.

16 changes: 2 additions & 14 deletions runtime/peaq/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ use sp_version::NativeVersion;
use sp_version::RuntimeVersion;
use zenlink_protocol::{AssetBalance, MultiAssetsHandler, PairInfo, ZenlinkMultiAssets};

mod vesting_migration;
mod weights;
pub mod xcm_config;

Expand Down Expand Up @@ -430,14 +429,7 @@ impl pallet_contracts::Config for Runtime {
type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent;
type MaxDelegateDependencies = MaxDelegateDependencies;
type RuntimeHoldReason = RuntimeHoldReason;
type Migrations = (
pallet_contracts::migration::v10::Migration<Runtime, Balances>,
pallet_contracts::migration::v11::Migration<Runtime>,
pallet_contracts::migration::v12::Migration<Runtime, Balances>,
pallet_contracts::migration::v13::Migration<Runtime>,
pallet_contracts::migration::v14::Migration<Runtime, Balances>,
pallet_contracts::migration::v15::Migration<Runtime>,
);
type Migrations = ();
type Debug = ();
type Environment = ();
type Xcm = ();
Expand Down Expand Up @@ -1207,11 +1199,7 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
(
cumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
pallet_contracts::Migration<Runtime>,
vesting_migration::VestingMigrationToAsyncBacking<Runtime>,
),
(),
>;

#[cfg(feature = "runtime-benchmarks")]
Expand Down
Loading

0 comments on commit 9299c9c

Please sign in to comment.