@@ -4,7 +4,7 @@ use super::*;
4
4
5
5
use frame_support:: {
6
6
construct_runtime, parameter_types,
7
- traits:: { Everything , SortedMembers } ,
7
+ traits:: { ConstU32 , ConstU64 , Everything , SortedMembers } ,
8
8
} ;
9
9
use sp_core:: H256 ;
10
10
use sp_runtime:: {
@@ -22,9 +22,6 @@ pub type AccountId = u128;
22
22
type Key = u32 ;
23
23
type Value = u32 ;
24
24
25
- parameter_types ! {
26
- pub const BlockHashCount : u64 = 250 ;
27
- }
28
25
impl frame_system:: Config for Test {
29
26
type Origin = Origin ;
30
27
type Call = Call ;
@@ -36,7 +33,7 @@ impl frame_system::Config for Test {
36
33
type Lookup = IdentityLookup < Self :: AccountId > ;
37
34
type Header = Header ;
38
35
type Event = Event ;
39
- type BlockHashCount = BlockHashCount ;
36
+ type BlockHashCount = ConstU64 < 250 > ;
40
37
type BlockWeights = ( ) ;
41
38
type BlockLength = ( ) ;
42
39
type Version = ( ) ;
@@ -49,7 +46,7 @@ impl frame_system::Config for Test {
49
46
type SystemWeightInfo = ( ) ;
50
47
type SS58Prefix = ( ) ;
51
48
type OnSetCode = ( ) ;
52
- type MaxConsumers = frame_support :: traits :: ConstU32 < 16 > ;
49
+ type MaxConsumers = ConstU32 < 16 > ;
53
50
}
54
51
55
52
thread_local ! {
@@ -72,8 +69,6 @@ impl Timestamp {
72
69
}
73
70
74
71
parameter_types ! {
75
- pub const MinimumCount : u32 = 3 ;
76
- pub const ExpiresIn : u32 = 600 ;
77
72
pub const RootOperatorAccountId : AccountId = 4 ;
78
73
pub static OracleMembers : Vec <AccountId > = vec![ 1 , 2 , 3 ] ;
79
74
}
@@ -86,21 +81,17 @@ impl SortedMembers<AccountId> for Members {
86
81
}
87
82
}
88
83
89
- parameter_types ! {
90
- pub const MaxHasDispatchedSize : u32 = 100 ;
91
- }
92
-
93
84
impl Config for Test {
94
85
type Event = Event ;
95
86
type OnNewData = ( ) ;
96
- type CombineData = DefaultCombineData < Self , MinimumCount , ExpiresIn > ;
87
+ type CombineData = DefaultCombineData < Self , ConstU32 < 3 > , ConstU32 < 600 > > ;
97
88
type Time = Timestamp ;
98
89
type OracleKey = Key ;
99
90
type OracleValue = Value ;
100
91
type RootOperatorAccountId = RootOperatorAccountId ;
101
92
type Members = Members ;
102
93
type WeightInfo = ( ) ;
103
- type MaxHasDispatchedSize = MaxHasDispatchedSize ;
94
+ type MaxHasDispatchedSize = ConstU32 < 100 > ;
104
95
}
105
96
106
97
type UncheckedExtrinsic = frame_system:: mocking:: MockUncheckedExtrinsic < Test > ;
0 commit comments