@@ -49,8 +49,9 @@ use frame_support::{
49
49
parameter_types,
50
50
sp_runtime:: RuntimeDebug ,
51
51
traits:: {
52
- ConstU16 , ConstU32 , Contains , Currency , EitherOfDiverse , EqualPrivilegeOnly , Imbalance ,
53
- InstanceFilter , KeyOwnerProofSystem , LockIdentifier , OnUnbalanced , WithdrawReasons ,
52
+ fungible:: HoldConsideration , ConstU16 , ConstU32 , Contains , Currency , EitherOfDiverse ,
53
+ EqualPrivilegeOnly , Imbalance , InstanceFilter , KeyOwnerProofSystem , LinearStoragePrice ,
54
+ LockIdentifier , OnUnbalanced , WithdrawReasons ,
54
55
} ,
55
56
weights:: {
56
57
constants:: {
@@ -1062,15 +1063,19 @@ impl pallet_scheduler::Config for Runtime {
1062
1063
}
1063
1064
1064
1065
parameter_types ! {
1065
- pub const PreimageMaxSize : u32 = 4096 * 1024 ;
1066
- pub const PreimageBaseDeposit : Balance = DOLLARS ;
1067
- // One cent: $10,000 / MB
1068
- pub const PreimageByteDeposit : Balance = CENTS ;
1066
+ pub const PreimageBaseDeposit : Balance = deposit ( 2 , 64 ) ;
1067
+ pub const PreimageByteDeposit : Balance = deposit ( 0 , 1 ) ;
1068
+ pub const PreimageHoldReason : RuntimeHoldReason =
1069
+ RuntimeHoldReason :: Preimage ( pallet_preimage :: HoldReason :: Preimage ) ;
1069
1070
}
1070
1071
1071
1072
impl pallet_preimage:: Config for Runtime {
1072
- type BaseDeposit = PreimageBaseDeposit ;
1073
- type ByteDeposit = PreimageByteDeposit ;
1073
+ type Consideration = HoldConsideration <
1074
+ AccountId ,
1075
+ Balances ,
1076
+ PreimageHoldReason ,
1077
+ LinearStoragePrice < PreimageBaseDeposit , PreimageByteDeposit , Balance > ,
1078
+ > ;
1074
1079
type Currency = Balances ;
1075
1080
type ManagerOrigin = EnsureRoot < AccountId > ;
1076
1081
type RuntimeEvent = RuntimeEvent ;
0 commit comments