@@ -12,10 +12,10 @@ use core::mem;
12
12
use domain_runtime_primitives:: opaque:: Header as DomainHeader ;
13
13
use domain_runtime_primitives:: BlockNumber as DomainBlockNumber ;
14
14
use frame_support:: dispatch:: { DispatchInfo , RawOrigin } ;
15
- use frame_support:: traits:: { ConstU16 , ConstU32 , ConstU64 , Currency , Hooks , VariantCount } ;
15
+ use frame_support:: traits:: { ConstU64 , Currency , Hooks , VariantCount } ;
16
16
use frame_support:: weights:: constants:: ParityDbWeight ;
17
17
use frame_support:: weights:: { IdentityFee , Weight } ;
18
- use frame_support:: { assert_err, assert_ok, parameter_types, PalletId } ;
18
+ use frame_support:: { assert_err, assert_ok, derive_impl , parameter_types, PalletId } ;
19
19
use frame_system:: mocking:: MockUncheckedExtrinsic ;
20
20
use frame_system:: pallet_prelude:: * ;
21
21
use scale_info:: TypeInfo ;
@@ -76,31 +76,14 @@ type BlockNumber = u64;
76
76
type Hash = H256 ;
77
77
type AccountId = u128 ;
78
78
79
+ #[ derive_impl( frame_system:: config_preludes:: TestDefaultConfig as frame_system:: DefaultConfig ) ]
79
80
impl frame_system:: Config for Test {
80
- type BaseCallFilter = frame_support:: traits:: Everything ;
81
- type BlockWeights = ( ) ;
82
- type BlockLength = ( ) ;
83
- type DbWeight = ParityDbWeight ;
84
- type RuntimeOrigin = RuntimeOrigin ;
85
- type RuntimeCall = RuntimeCall ;
86
- type RuntimeTask = RuntimeTask ;
87
- type Nonce = u64 ;
81
+ type Block = Block ;
88
82
type Hash = Hash ;
89
- type Hashing = BlakeTwo256 ;
90
83
type AccountId = AccountId ;
91
84
type Lookup = IdentityLookup < Self :: AccountId > ;
92
- type Block = Block ;
93
- type RuntimeEvent = RuntimeEvent ;
94
- type BlockHashCount = ConstU64 < 2 > ;
95
- type Version = ( ) ;
96
- type PalletInfo = PalletInfo ;
97
85
type AccountData = pallet_balances:: AccountData < Balance > ;
98
- type OnNewAccount = ( ) ;
99
- type OnKilledAccount = ( ) ;
100
- type SystemWeightInfo = ( ) ;
101
- type SS58Prefix = ConstU16 < 42 > ;
102
- type OnSetCode = ( ) ;
103
- type MaxConsumers = ConstU32 < 16 > ;
86
+ type DbWeight = ParityDbWeight ;
104
87
}
105
88
106
89
parameter_types ! {
@@ -157,21 +140,13 @@ parameter_types! {
157
140
pub const ExistentialDeposit : Balance = 1 ;
158
141
}
159
142
143
+ #[ derive_impl( pallet_balances:: config_preludes:: TestDefaultConfig as pallet_balances:: DefaultConfig ) ]
160
144
impl pallet_balances:: Config for Test {
161
- type RuntimeFreezeReason = RuntimeFreezeReason ;
162
- type MaxLocks = ( ) ;
163
- type MaxReserves = ( ) ;
164
- type ReserveIdentifier = [ u8 ; 8 ] ;
165
145
type Balance = Balance ;
166
- type DustRemoval = ( ) ;
167
- type RuntimeEvent = RuntimeEvent ;
168
146
type ExistentialDeposit = ExistentialDeposit ;
169
147
type AccountStore = System ;
170
- type WeightInfo = ( ) ;
171
- type FreezeIdentifier = ( ) ;
172
- type MaxFreezes = ( ) ;
173
148
type RuntimeHoldReason = HoldIdentifier ;
174
- type MaxHolds = MaxHolds ;
149
+ type DustRemoval = ( ) ;
175
150
}
176
151
177
152
parameter_types ! {
0 commit comments