@@ -279,7 +279,7 @@ pub mod benchmarking;
279
279
pub mod slashing;
280
280
pub mod offchain_election;
281
281
pub mod inflation;
282
- pub mod default_weights ;
282
+ pub mod weights ;
283
283
284
284
use sp_std:: {
285
285
result,
@@ -330,6 +330,7 @@ use sp_npos_elections::{
330
330
build_support_map, evaluate_support, seq_phragmen, generate_solution_type,
331
331
is_score_better, VotingLimit , SupportMap , VoteWeight ,
332
332
} ;
333
+ pub use weights:: WeightInfo ;
333
334
334
335
const STAKING_ID : LockIdentifier = * b"staking " ;
335
336
pub const MAX_UNLOCKING_CHUNKS : usize = 32 ;
@@ -769,33 +770,6 @@ impl<T: Trait> SessionInterface<<T as frame_system::Trait>::AccountId> for T whe
769
770
}
770
771
}
771
772
772
- pub trait WeightInfo {
773
- fn bond ( ) -> Weight ;
774
- fn bond_extra ( ) -> Weight ;
775
- fn unbond ( ) -> Weight ;
776
- fn withdraw_unbonded_update ( s : u32 , ) -> Weight ;
777
- fn withdraw_unbonded_kill ( s : u32 , ) -> Weight ;
778
- fn validate ( ) -> Weight ;
779
- fn nominate ( n : u32 , ) -> Weight ;
780
- fn chill ( ) -> Weight ;
781
- fn set_payee ( ) -> Weight ;
782
- fn set_controller ( ) -> Weight ;
783
- fn set_validator_count ( ) -> Weight ;
784
- fn force_no_eras ( ) -> Weight ;
785
- fn force_new_era ( ) -> Weight ;
786
- fn force_new_era_always ( ) -> Weight ;
787
- fn set_invulnerables ( v : u32 , ) -> Weight ;
788
- fn force_unstake ( s : u32 , ) -> Weight ;
789
- fn cancel_deferred_slash ( s : u32 , ) -> Weight ;
790
- fn payout_stakers_alive_staked ( n : u32 , ) -> Weight ;
791
- fn payout_stakers_dead_controller ( n : u32 , ) -> Weight ;
792
- fn rebond ( l : u32 , ) -> Weight ;
793
- fn set_history_depth ( e : u32 , ) -> Weight ;
794
- fn reap_stash ( s : u32 , ) -> Weight ;
795
- fn new_era ( v : u32 , n : u32 , ) -> Weight ;
796
- fn submit_solution_better ( v : u32 , n : u32 , a : u32 , w : u32 , ) -> Weight ;
797
- }
798
-
799
773
pub trait Trait : frame_system:: Trait + SendTransactionTypes < Call < Self > > {
800
774
/// The staking balance.
801
775
type Currency : LockableCurrency < Self :: AccountId , Moment =Self :: BlockNumber > ;
0 commit comments