@@ -17,7 +17,7 @@ use crate::bank::{Bank, BankKeeper, BankSudo};
17
17
use crate :: contracts:: Contract ;
18
18
use crate :: executor:: { AppResponse , Executor } ;
19
19
use crate :: module:: { FailingModule , Module } ;
20
- use crate :: staking:: { Distribution , FailingDistribution , FailingStaking , Staking , StakingSudo } ;
20
+ use crate :: staking:: { Distribution , DistributionKeeper , StakeKeeper , Staking , StakingSudo } ;
21
21
use crate :: transactions:: transactional;
22
22
use crate :: wasm:: { ContractData , Wasm , WasmKeeper , WasmSudo } ;
23
23
@@ -33,6 +33,8 @@ pub type BasicApp<ExecC = Empty, QueryC = Empty> = App<
33
33
MockStorage ,
34
34
FailingModule < ExecC , QueryC , Empty > ,
35
35
WasmKeeper < ExecC , QueryC > ,
36
+ StakeKeeper ,
37
+ DistributionKeeper ,
36
38
> ;
37
39
38
40
/// Router is a persisted state. You can query this.
@@ -44,8 +46,8 @@ pub struct App<
44
46
Storage = MockStorage ,
45
47
Custom = FailingModule < Empty , Empty , Empty > ,
46
48
Wasm = WasmKeeper < Empty , Empty > ,
47
- Staking = FailingStaking ,
48
- Distr = FailingDistribution ,
49
+ Staking = StakeKeeper ,
50
+ Distr = DistributionKeeper ,
49
51
> {
50
52
router : Router < Bank , Custom , Wasm , Staking , Distr > ,
51
53
api : Api ,
@@ -75,8 +77,8 @@ impl BasicApp {
75
77
BankKeeper ,
76
78
FailingModule < Empty , Empty , Empty > ,
77
79
WasmKeeper < Empty , Empty > ,
78
- FailingStaking ,
79
- FailingDistribution ,
80
+ StakeKeeper ,
81
+ DistributionKeeper ,
80
82
> ,
81
83
& dyn Api ,
82
84
& mut dyn Storage ,
97
99
BankKeeper ,
98
100
FailingModule < ExecC , QueryC , Empty > ,
99
101
WasmKeeper < ExecC , QueryC > ,
100
- FailingStaking ,
101
- FailingDistribution ,
102
+ StakeKeeper ,
103
+ DistributionKeeper ,
102
104
> ,
103
105
& dyn Api ,
104
106
& mut dyn Storage ,
@@ -159,8 +161,8 @@ pub type BasicAppBuilder<ExecC, QueryC> = AppBuilder<
159
161
MockStorage ,
160
162
FailingModule < ExecC , QueryC , Empty > ,
161
163
WasmKeeper < ExecC , QueryC > ,
162
- FailingStaking ,
163
- FailingDistribution ,
164
+ StakeKeeper ,
165
+ DistributionKeeper ,
164
166
> ;
165
167
166
168
/// Utility to build App in stages. If particular items wont be set, defaults would be used
@@ -182,8 +184,8 @@ impl Default
182
184
MockStorage ,
183
185
FailingModule < Empty , Empty , Empty > ,
184
186
WasmKeeper < Empty , Empty > ,
185
- FailingStaking ,
186
- FailingDistribution ,
187
+ StakeKeeper ,
188
+ DistributionKeeper ,
187
189
>
188
190
{
189
191
fn default ( ) -> Self {
198
200
MockStorage ,
199
201
FailingModule < Empty , Empty , Empty > ,
200
202
WasmKeeper < Empty , Empty > ,
201
- FailingStaking ,
202
- FailingDistribution ,
203
+ StakeKeeper ,
204
+ DistributionKeeper ,
203
205
>
204
206
{
205
207
/// Creates builder with default components working with empty exec and query messages.
211
213
bank : BankKeeper :: new ( ) ,
212
214
wasm : WasmKeeper :: new ( ) ,
213
215
custom : FailingModule :: new ( ) ,
214
- staking : FailingStaking :: new ( ) ,
215
- distribution : FailingDistribution :: new ( ) ,
216
+ staking : StakeKeeper :: new ( ) ,
217
+ distribution : DistributionKeeper :: new ( ) ,
216
218
}
217
219
}
218
220
}
@@ -224,8 +226,8 @@ impl<ExecC, QueryC>
224
226
MockStorage ,
225
227
FailingModule < ExecC , QueryC , Empty > ,
226
228
WasmKeeper < ExecC , QueryC > ,
227
- FailingStaking ,
228
- FailingDistribution ,
229
+ StakeKeeper ,
230
+ DistributionKeeper ,
229
231
>
230
232
where
231
233
ExecC : Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + ' static ,
@@ -241,8 +243,8 @@ where
241
243
bank : BankKeeper :: new ( ) ,
242
244
wasm : WasmKeeper :: new ( ) ,
243
245
custom : FailingModule :: new ( ) ,
244
- staking : FailingStaking :: new ( ) ,
245
- distribution : FailingDistribution :: new ( ) ,
246
+ staking : StakeKeeper :: new ( ) ,
247
+ distribution : DistributionKeeper :: new ( ) ,
246
248
}
247
249
}
248
250
}
0 commit comments