@@ -48,7 +48,6 @@ import (
4848 vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
4949 "github.com/cosmos/cosmos-sdk/x/authz"
5050 banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
51- "github.com/cosmos/cosmos-sdk/x/crisis"
5251 distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
5352 genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
5453 govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
@@ -72,8 +71,6 @@ import (
7271
7372 apptypes "pkg.akt.dev/node/app/types"
7473 utypes "pkg.akt.dev/node/upgrades/types"
75- astaking "pkg.akt.dev/node/x/staking"
76-
7774 // unnamed import of statik for swagger UI support
7875 _ "pkg.akt.dev/node/client/docs/statik"
7976)
@@ -170,10 +167,6 @@ func NewApp(
170167 // because I believe the concept of Routes is going away.
171168 app .SetupHooks ()
172169
173- // NOTE: we may consider parsing `appOpts` inside module constructors. For the moment,
174- // we prefer to be more strict in what arguments the modules expect.
175- skipGenesisInvariants := cast .ToBool (appOpts .Get (crisis .FlagSkipGenesisInvariants ))
176-
177170 // NOTE: All module / keeper changes should happen prior to this module.NewManager line being called.
178171 // However, in the event any changes do need to happen after this call, ensure that that keeper
179172 // is only passed in its keeper form (not de-ref'd anywhere)
@@ -183,7 +176,7 @@ func NewApp(
183176 //
184177 // Any time a module requires a keeper de-ref'd that's not its native one,
185178 // its code-smell and should probably change. We should get the staking keeper dependencies fixed.
186- modules := appModules (app , encodingConfig , skipGenesisInvariants )
179+ modules := appModules (app , encodingConfig )
187180
188181 app .MM = module .NewManager (modules ... )
189182
@@ -194,18 +187,16 @@ func NewApp(
194187 // NOTE: capability module's begin-blocker must come before any modules using capabilities (e.g. IBC)
195188
196189 // Upgrades from v0.50.x onwards happen in pre block
197- // app.MM.SetOrderPreBlockers(
198- // upgradetypes.ModuleName,
199- // authtypes.ModuleName,
200- // )
190+ app .MM .SetOrderPreBlockers (
191+ upgradetypes .ModuleName ,
192+ authtypes .ModuleName ,
193+ )
201194
202195 // Tell the app's module manager how to set the order of BeginBlockers, which are run at the beginning of every block.
203196 app .MM .SetOrderBeginBlockers (orderBeginBlockers (app .MM .ModuleNames ())... )
204197
205198 app .MM .SetOrderInitGenesis (OrderInitGenesis (app .MM .ModuleNames ())... )
206199
207- app .MM .RegisterInvariants (app .Keepers .Cosmos .Crisis )
208-
209200 app .Configurator = module .NewConfigurator (app .AppCodec (), app .MsgServiceRouter (), app .GRPCQueryRouter ())
210201 err := app .MM .RegisterServices (app .Configurator )
211202 if err != nil {
@@ -217,16 +208,6 @@ func NewApp(
217208 panic (err )
218209 }
219210
220- // Override the gov ModuleBasic with all the custom proposal handers, otherwise we lose them in the CLI.
221- //app.ModuleBasics = module.NewBasicManagerFromManager(
222- // app.MM,
223- // map[string]module.AppModuleBasic{
224- // "gov": gov.NewAppModuleBasic(
225- // []govclient.ProposalHandler{},
226- // ),
227- // },
228- //)
229-
230211 app .sm = module .NewSimulationManager (appSimModules (app , encodingConfig )... )
231212 app .sm .RegisterStoreDecoders ()
232213
@@ -297,7 +278,6 @@ func orderBeginBlockers(_ []string) []string {
297278 audittypes .ModuleName ,
298279 genutiltypes .ModuleName ,
299280 vestingtypes .ModuleName ,
300- //crisistypes.ModuleName,
301281 authtypes .ModuleName ,
302282 authz .ModuleName ,
303283 taketypes .ModuleName ,
@@ -307,7 +287,6 @@ func orderBeginBlockers(_ []string) []string {
307287 slashingtypes .ModuleName ,
308288 evidencetypes .ModuleName ,
309289 stakingtypes .ModuleName ,
310- //astaking.ModuleName,
311290 transfertypes .ModuleName ,
312291 ibchost .ModuleName ,
313292 feegrant .ModuleName ,
@@ -317,10 +296,8 @@ func orderBeginBlockers(_ []string) []string {
317296// OrderEndBlockers returns EndBlockers (crisis, govtypes, staking) with no relative order.
318297func OrderEndBlockers (_ []string ) []string {
319298 return []string {
320- //crisistypes.ModuleName,
321299 govtypes .ModuleName ,
322300 stakingtypes .ModuleName ,
323- astaking .ModuleName ,
324301 upgradetypes .ModuleName ,
325302 capabilitytypes .ModuleName ,
326303 banktypes .ModuleName ,
0 commit comments