@@ -24,22 +24,22 @@ use frame_election_provider_support::{
24
24
onchain, SequentialPhragmen ,
25
25
} ;
26
26
use frame_support:: {
27
- parameter_types,
27
+ derive_impl , parameter_types,
28
28
traits:: { ConstU128 , ConstU32 , ConstU64 , KeyOwnerProofSystem , OnInitialize } ,
29
29
} ;
30
30
use pallet_session:: historical as pallet_session_historical;
31
31
use pallet_staking:: FixedNominationsQuota ;
32
32
use sp_consensus_babe:: { AuthorityId , AuthorityPair , Randomness , Slot , VrfSignature } ;
33
33
use sp_core:: {
34
34
crypto:: { KeyTypeId , Pair , VrfSecret } ,
35
- H256 , U256 ,
35
+ U256 ,
36
36
} ;
37
37
use sp_io;
38
38
use sp_runtime:: {
39
39
curve:: PiecewiseLinear ,
40
40
impl_opaque_keys,
41
41
testing:: { Digest , DigestItem , Header , TestXt } ,
42
- traits:: { Header as _, IdentityLookup , OpaqueKeys } ,
42
+ traits:: { Header as _, OpaqueKeys } ,
43
43
BuildStorage , Perbill ,
44
44
} ;
45
45
use sp_staking:: { EraIndex , SessionIndex } ;
@@ -63,30 +63,10 @@ frame_support::construct_runtime!(
63
63
}
64
64
) ;
65
65
66
+ #[ derive_impl( frame_system:: config_preludes:: TestDefaultConfig as frame_system:: DefaultConfig ) ]
66
67
impl frame_system:: Config for Test {
67
- type BaseCallFilter = frame_support:: traits:: Everything ;
68
- type BlockWeights = ( ) ;
69
- type BlockLength = ( ) ;
70
- type DbWeight = ( ) ;
71
- type RuntimeOrigin = RuntimeOrigin ;
72
- type Nonce = u64 ;
73
- type RuntimeCall = RuntimeCall ;
74
- type Hash = H256 ;
75
- type Version = ( ) ;
76
- type Hashing = sp_runtime:: traits:: BlakeTwo256 ;
77
- type AccountId = DummyValidatorId ;
78
- type Lookup = IdentityLookup < Self :: AccountId > ;
79
68
type Block = Block ;
80
- type RuntimeEvent = RuntimeEvent ;
81
- type BlockHashCount = ConstU64 < 250 > ;
82
- type PalletInfo = PalletInfo ;
83
69
type AccountData = pallet_balances:: AccountData < u128 > ;
84
- type OnNewAccount = ( ) ;
85
- type OnKilledAccount = ( ) ;
86
- type SystemWeightInfo = ( ) ;
87
- type SS58Prefix = ( ) ;
88
- type OnSetCode = ( ) ;
89
- type MaxConsumers = frame_support:: traits:: ConstU32 < 16 > ;
90
70
}
91
71
92
72
impl < C > frame_system:: offchain:: SendTransactionTypes < C > for Test
0 commit comments