@@ -644,7 +644,6 @@ impl pallet_vesting::Config for Runtime {
644
644
const MAX_VESTING_SCHEDULES : u32 = 28 ;
645
645
}
646
646
647
- // TODO: changing depost per item and per byte to `deposit` function will require storage migration it seems
648
647
parameter_types ! {
649
648
pub const DepositPerItem : Balance = contracts_deposit( 1 , 0 ) ;
650
649
pub const DepositPerByte : Balance = contracts_deposit( 0 , 1 ) ;
@@ -1122,7 +1121,7 @@ parameter_types! {
1122
1121
///
1123
1122
/// Once done, migrations should be removed from the tuple.
1124
1123
pub type Migrations = (
1125
- pallet_inflation:: PalletInflationInitConfig < Runtime , InitInflationParams > ,
1124
+ pallet_inflation:: PalletInflationInitConfig < Runtime , InitInflationParamsHelper > ,
1126
1125
pallet_dapp_staking_v3:: migrations:: DAppStakingV3InitConfig < Runtime , InitDappStakingV3Params > ,
1127
1126
frame_support:: migrations:: RemovePallet <
1128
1127
BlockRewardName ,
@@ -1131,13 +1130,20 @@ pub type Migrations = (
1131
1130
// This will handle new pallet storage version setting & it will put the new pallet into maintenance mode.
1132
1131
// But it's most important for testing with try-runtime.
1133
1132
pallet_dapp_staking_migration:: DappStakingMigrationHandler < Runtime > ,
1133
+ pallet_static_price_provider:: InitActivePrice < Runtime , InitActivePriceGet > ,
1134
1134
) ;
1135
1135
1136
- // TODO: add static price provider migration too
1136
+ pub struct InitActivePriceGet ;
1137
+ impl Get < FixedU64 > for InitActivePriceGet {
1138
+ fn get ( ) -> FixedU64 {
1139
+ // TODO: set this to the correct value
1140
+ FixedU64 :: from_rational ( 1 , 10 )
1141
+ }
1142
+ }
1137
1143
1138
1144
/// Used to initialize inflation parameters for the runtime.
1139
- pub struct InitInflationParams ;
1140
- impl Get < ( pallet_inflation:: InflationParameters , EraNumber ) > for InitInflationParams {
1145
+ pub struct InitInflationParamsHelper ;
1146
+ impl Get < ( pallet_inflation:: InflationParameters , EraNumber ) > for InitInflationParamsHelper {
1141
1147
fn get ( ) -> ( pallet_inflation:: InflationParameters , EraNumber ) {
1142
1148
(
1143
1149
pallet_inflation:: InflationParameters {
@@ -1152,6 +1158,7 @@ impl Get<(pallet_inflation::InflationParameters, EraNumber)> for InitInflationPa
1152
1158
ideal_staking_rate : Perquintill :: from_percent ( 50 ) ,
1153
1159
} ,
1154
1160
pallet_dapps_staking:: CurrentEra :: < Runtime > :: get ( ) . saturating_add ( 1 ) ,
1161
+ T :: DbWeight :: get ( ) . reads ( 1 ) ,
1155
1162
)
1156
1163
}
1157
1164
}
0 commit comments