Skip to content

Commit 068cc24

Browse files
authored
Add WeightInfo to all pallets with benchmarks. (#6575)
* Start adding weight info * More weightinfo * finish weight info * more fixes * inital update of node runtime * fix the rest of the compilation * update balances * add docs * fix balances tests * Fix more tests * Fix compile * Fix pallet-evm tests
1 parent c4b496e commit 068cc24

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/mock.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ impl frame_system::Trait for Test {
9090
type AccountData = pallet_balances::AccountData<u128>;
9191
type OnNewAccount = ();
9292
type OnKilledAccount = ();
93+
type SystemWeightInfo = ();
9394
}
9495

9596
impl<C> frame_system::offchain::SendTransactionTypes<C> for Test
@@ -116,6 +117,7 @@ impl pallet_session::Trait for Test {
116117
type SessionHandler = <MockSessionKeys as OpaqueKeys>::KeyTypeIdProviders;
117118
type Keys = MockSessionKeys;
118119
type DisabledValidatorsThreshold = DisabledValidatorsThreshold;
120+
type WeightInfo = ();
119121
}
120122

121123
impl pallet_session::historical::Trait for Test {
@@ -142,6 +144,7 @@ impl pallet_timestamp::Trait for Test {
142144
type Moment = u64;
143145
type OnTimestampSet = Babe;
144146
type MinimumPeriod = MinimumPeriod;
147+
type WeightInfo = ();
145148
}
146149

147150
parameter_types! {
@@ -154,6 +157,7 @@ impl pallet_balances::Trait for Test {
154157
type Event = ();
155158
type ExistentialDeposit = ExistentialDeposit;
156159
type AccountStore = System;
160+
type WeightInfo = ();
157161
}
158162

159163
pallet_staking_reward_curve::build! {
@@ -213,6 +217,7 @@ impl pallet_staking::Trait for Test {
213217
type UnsignedPriority = StakingUnsignedPriority;
214218
type MaxIterations = ();
215219
type MinSolutionScoreBump = ();
220+
type WeightInfo = ();
216221
}
217222

218223
parameter_types! {
@@ -224,6 +229,7 @@ impl pallet_offences::Trait for Test {
224229
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
225230
type OnOffenceHandler = Staking;
226231
type WeightSoftLimit = OffencesWeightSoftLimit;
232+
type WeightInfo = ();
227233
}
228234

229235
impl Trait for Test {

0 commit comments

Comments
 (0)