@@ -86,14 +86,35 @@ macro_rules! decl_common_types {
86
86
generic, DispatchError , DispatchResult , RuntimeDebug , SaturatedConversion ,
87
87
} ;
88
88
use zeitgeist_primitives:: traits:: { DeployPoolApi , DistributeFees , MarketCommonsPalletApi } ;
89
- use zrml_market_commons:: migrations:: { MigrateDisputeMechanism , RemoveMarkets } ;
90
89
91
90
pub type Block = generic:: Block <Header , UncheckedExtrinsic >;
92
91
93
92
type Address = sp_runtime:: MultiAddress <AccountId , ( ) >;
94
93
95
- type Migrations =
96
- ( RemoveMarkets <Runtime , RemovableMarketIds >, MigrateDisputeMechanism <Runtime >) ;
94
+ parameter_types! {
95
+ pub const CampaignAssetsPalletStr : & ' static str = "CampaignAssets" ;
96
+ pub const CustomAssetsPalletStr : & ' static str = "CustomAssets" ;
97
+ pub const MarketAssetsPalletStr : & ' static str = "MarketAssets" ;
98
+ pub const LiquidityMiningPalletStr : & ' static str = "LiquidityMining" ;
99
+ pub const RikiddoPalletStr : & ' static str = "Rikiddo" ;
100
+ pub const SimpleDisputesPalletStr : & ' static str = "SimpleDisputes" ;
101
+ }
102
+
103
+ type RemoveCustomAssets = RemovePallet <CustomAssetsPalletStr , RocksDbWeight >;
104
+ type RemoveCampaignAssets = RemovePallet <CampaignAssetsPalletStr , RocksDbWeight >;
105
+ type RemoveMarketAssets = RemovePallet <MarketAssetsPalletStr , RocksDbWeight >;
106
+ type RemoveLiquidityMining = RemovePallet <LiquidityMiningPalletStr , RocksDbWeight >;
107
+ type RemoveRikiddo = RemovePallet <RikiddoPalletStr , RocksDbWeight >;
108
+ type RemoveSimpleDisputes = RemovePallet <SimpleDisputesPalletStr , RocksDbWeight >;
109
+
110
+ type Migrations = (
111
+ RemoveCustomAssets ,
112
+ RemoveCampaignAssets ,
113
+ RemoveMarketAssets ,
114
+ RemoveLiquidityMining ,
115
+ RemoveRikiddo ,
116
+ RemoveSimpleDisputes ,
117
+ ) ;
97
118
98
119
pub type Executive = frame_executive:: Executive <
99
120
Runtime ,
0 commit comments