feat: migrate x/genutil to app wiring (#12124)

* Add genutil module.proto and module init

* Update simapp

* Add provideDeliverTx to runtime

* Update x/genutil/module.go

* Update x/genutil/module.go

Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
Marie Gauthier
2022-06-10 11:56:06 +02:00
committed by GitHub
co-authored by Marko
parent c859589f2f
commit 7688ce6e44
6 changed files with 557 additions and 6 deletions
-4
View File
@@ -314,10 +314,6 @@ func NewSimApp(
// NOTE: Any module instantiated in the module manager that is later modified
// must be passed by reference here.
if err := app.RegisterModules(
genutil.NewAppModule(
app.AccountKeeper, app.StakingKeeper, app.BaseApp.DeliverTx,
encodingConfig.TxConfig,
),
vesting.NewAppModule(app.AccountKeeper, app.BankKeeper),
crisis.NewAppModule(&app.CrisisKeeper, skipGenesisInvariants),
gov.NewAppModule(app.appCodec, app.GovKeeper, app.AccountKeeper, app.BankKeeper),
+4
View File
@@ -111,3 +111,7 @@ modules:
- name: slashing
config:
"@type": cosmos.slashing.module.v1.Module
- name: genutil
config:
"@type": cosmos.genutil.module.v1.Module