@@ -21,6 +21,7 @@ import (
21
21
servertypes "github.com/cosmos/cosmos-sdk/server/types"
22
22
"github.com/cosmos/cosmos-sdk/simapp"
23
23
sdk "github.com/cosmos/cosmos-sdk/types"
24
+ "github.com/cosmos/cosmos-sdk/types/genesis"
24
25
"github.com/cosmos/cosmos-sdk/types/module"
25
26
"github.com/cosmos/cosmos-sdk/utils"
26
27
"github.com/cosmos/cosmos-sdk/x/auth"
@@ -77,7 +78,6 @@ import (
77
78
upgradeclient "github.com/cosmos/cosmos-sdk/x/upgrade/client"
78
79
upgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper"
79
80
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
80
- ica "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts"
81
81
icacontroller "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/controller"
82
82
icacontrollerkeeper "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/controller/keeper"
83
83
icacontrollertypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/controller/types"
@@ -203,14 +203,10 @@ var (
203
203
slashing.AppModuleBasic {},
204
204
feegrantmodule.AppModuleBasic {},
205
205
authzmodule.AppModuleBasic {},
206
- ibc.AppModuleBasic {},
207
206
upgrade.AppModuleBasic {},
208
207
evidence.AppModuleBasic {},
209
- transfer.AppModuleBasic {},
210
208
vesting.AppModuleBasic {},
211
209
wasm.AppModuleBasic {},
212
- ica.AppModuleBasic {},
213
- intertx.AppModuleBasic {},
214
210
)
215
211
216
212
// module account permissions
@@ -488,14 +484,12 @@ func NewWasmApp(
488
484
scopedICAControllerKeeper ,
489
485
app .MsgServiceRouter (),
490
486
)
491
- icaModule := ica .NewAppModule (& app .icaControllerKeeper , & app .icaHostKeeper )
492
487
icaHostIBCModule := icahost .NewIBCModule (app .icaHostKeeper )
493
488
494
489
// For wasmd we use the demo controller from https://github.com/cosmos/interchain-accounts but see notes below
495
490
app .interTxKeeper = intertxkeeper .NewKeeper (appCodec , keys [intertxtypes .StoreKey ], app .icaControllerKeeper , scopedInterTxKeeper )
496
491
// Note: please do your research before using this in production app, this is a demo and not an officially
497
492
// supported IBC team implementation. Do your own research before using it.
498
- interTxModule := intertx .NewAppModule (appCodec , app .interTxKeeper )
499
493
interTxIBCModule := intertx .NewIBCModule (app .interTxKeeper )
500
494
// You will likely want to swap out the second argument with your own reviewed and maintained ica auth module
501
495
icaControllerIBCModule := icacontroller .NewIBCModule (app .icaControllerKeeper , interTxIBCModule )
@@ -561,6 +555,7 @@ func NewWasmApp(
561
555
app .accountKeeper ,
562
556
app .bankKeeper ,
563
557
& stakingKeeper ,
558
+ app .paramsKeeper ,
564
559
govRouter ,
565
560
)
566
561
/**** Module Options ****/
@@ -592,11 +587,7 @@ func NewWasmApp(
592
587
evidence .NewAppModule (app .evidenceKeeper ),
593
588
feegrantmodule .NewAppModule (appCodec , app .accountKeeper , app .bankKeeper , app .feeGrantKeeper , app .interfaceRegistry ),
594
589
authzmodule .NewAppModule (appCodec , app .authzKeeper , app .accountKeeper , app .bankKeeper , app .interfaceRegistry ),
595
- ibc .NewAppModule (app .ibcKeeper ),
596
590
params .NewAppModule (app .paramsKeeper ),
597
- transferModule ,
598
- icaModule ,
599
- interTxModule ,
600
591
crisis .NewAppModule (& app .crisisKeeper , skipGenesisInvariants ), // always be last to make sure that it checks for all invariants and not only part of them
601
592
)
602
593
@@ -918,7 +909,7 @@ func (app *WasmApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci
918
909
919
910
app .upgradeKeeper .SetModuleVersionMap (ctx , app .mm .GetVersionMap ())
920
911
921
- return app .mm .InitGenesis (ctx , app .appCodec , genesisState )
912
+ return app .mm .InitGenesis (ctx , app .appCodec , genesisState , genesis. GenesisImportConfig {} )
922
913
}
923
914
924
915
// LoadHeight loads a particular height
0 commit comments