72
72
73
73
#![ cfg_attr( not( feature = "std" ) , no_std) ]
74
74
75
+ #[ cfg( test) ]
76
+ mod tests;
77
+ mod benchmarking;
78
+ pub mod weights;
79
+
75
80
use sp_std:: prelude:: * ;
76
81
use sp_std:: { fmt:: Debug , ops:: Add , iter:: once} ;
77
82
use enumflags2:: BitFlags ;
@@ -82,37 +87,13 @@ use frame_support::{
82
87
decl_module, decl_event, decl_storage, ensure, decl_error,
83
88
dispatch:: DispatchResultWithPostInfo ,
84
89
traits:: { Currency , ReservableCurrency , OnUnbalanced , Get , BalanceStatus , EnsureOrigin } ,
85
- weights:: Weight ,
86
90
} ;
87
91
use frame_system:: ensure_signed;
88
-
89
- #[ cfg( test) ]
90
- mod tests;
91
- mod benchmarking;
92
- mod default_weights;
92
+ pub use weights:: WeightInfo ;
93
93
94
94
type BalanceOf < T > = <<T as Trait >:: Currency as Currency < <T as frame_system:: Trait >:: AccountId > >:: Balance ;
95
95
type NegativeImbalanceOf < T > = <<T as Trait >:: Currency as Currency < <T as frame_system:: Trait >:: AccountId > >:: NegativeImbalance ;
96
96
97
- pub trait WeightInfo {
98
- fn add_registrar ( r : u32 , ) -> Weight ;
99
- fn set_identity ( r : u32 , x : u32 , ) -> Weight ;
100
- fn set_subs_new ( s : u32 , ) -> Weight ;
101
- fn set_subs_old ( p : u32 , ) -> Weight ;
102
- fn add_sub ( p : u32 , ) -> Weight ;
103
- fn rename_sub ( p : u32 , ) -> Weight ;
104
- fn remove_sub ( p : u32 , ) -> Weight ;
105
- fn quit_sub ( p : u32 , ) -> Weight ;
106
- fn clear_identity ( r : u32 , s : u32 , x : u32 , ) -> Weight ;
107
- fn request_judgement ( r : u32 , x : u32 , ) -> Weight ;
108
- fn cancel_request ( r : u32 , x : u32 , ) -> Weight ;
109
- fn set_fee ( r : u32 , ) -> Weight ;
110
- fn set_account_id ( r : u32 , ) -> Weight ;
111
- fn set_fields ( r : u32 , ) -> Weight ;
112
- fn provide_judgement ( r : u32 , x : u32 , ) -> Weight ;
113
- fn kill_identity ( r : u32 , s : u32 , x : u32 , ) -> Weight ;
114
- }
115
-
116
97
pub trait Trait : frame_system:: Trait {
117
98
/// The overarching event type.
118
99
type Event : From < Event < Self > > + Into < <Self as frame_system:: Trait >:: Event > ;
0 commit comments