This repository was archived by the owner on Nov 15, 2023. It is now read-only.
File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 25
25
//! `Compute` and `Storage` parameters the pallet consumes the adequate amount
26
26
//! of weight.
27
27
28
+ #![ deny( missing_docs) ]
28
29
#![ cfg_attr( not( feature = "std" ) , no_std) ]
29
30
30
31
#[ cfg( feature = "runtime-benchmarks" ) ]
@@ -75,11 +76,20 @@ pub mod pallet {
75
76
#[ pallet:: generate_deposit( pub ( super ) fn deposit_event) ]
76
77
pub enum Event {
77
78
/// The pallet has been (re)initialized.
78
- PalletInitialized { reinit : bool } ,
79
+ PalletInitialized {
80
+ /// Whether the pallet has been re-initialized.
81
+ reinit : bool ,
82
+ } ,
79
83
/// The computation limit has been updated.
80
- ComputationLimitSet { compute : FixedU64 } ,
84
+ ComputationLimitSet {
85
+ /// The computation limit.
86
+ compute : FixedU64 ,
87
+ } ,
81
88
/// The storage limit has been updated.
82
- StorageLimitSet { storage : FixedU64 } ,
89
+ StorageLimitSet {
90
+ /// The storage limit.
91
+ storage : FixedU64 ,
92
+ } ,
83
93
}
84
94
85
95
#[ pallet:: error]
@@ -131,10 +141,14 @@ pub mod pallet {
131
141
#[ pallet:: genesis_config]
132
142
#[ derive( DefaultNoBound ) ]
133
143
pub struct GenesisConfig < T : Config > {
144
+ /// The compute limit.
134
145
pub compute : FixedU64 ,
146
+ /// The storage limit.
135
147
pub storage : FixedU64 ,
148
+ /// The amount of trash data for wasting proof size.
136
149
pub trash_data_count : u32 ,
137
150
#[ serde( skip) ]
151
+ /// The required configuration field.
138
152
pub _config : sp_std:: marker:: PhantomData < T > ,
139
153
}
140
154
You can’t perform that action at this time.
0 commit comments