@@ -48,12 +48,6 @@ import (
4848 slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
4949 stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
5050 stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
51- icacontroller "github.com/cosmos/ibc-go/v10/modules/apps/27-interchain-accounts/controller"
52- icacontrollerkeeper "github.com/cosmos/ibc-go/v10/modules/apps/27-interchain-accounts/controller/keeper"
53- icacontrollertypes "github.com/cosmos/ibc-go/v10/modules/apps/27-interchain-accounts/controller/types"
54- icahostkeeper "github.com/cosmos/ibc-go/v10/modules/apps/27-interchain-accounts/host/keeper"
55- icahosttypes "github.com/cosmos/ibc-go/v10/modules/apps/27-interchain-accounts/host/types"
56- ibccallbacks "github.com/cosmos/ibc-go/v10/modules/apps/callbacks"
5751 "github.com/cosmos/ibc-go/v10/modules/apps/transfer"
5852 ibctransferkeeper "github.com/cosmos/ibc-go/v10/modules/apps/transfer/keeper"
5953 ibctransfertypes "github.com/cosmos/ibc-go/v10/modules/apps/transfer/types"
@@ -115,8 +109,6 @@ type AppKeepers struct {
115109 IBC * ibckeeper.Keeper
116110 Evidence * evidencekeeper.Keeper
117111 Transfer ibctransferkeeper.Keeper
118- ICAController icacontrollerkeeper.Keeper
119- ICAHost icahostkeeper.Keeper
120112 Wasm * wasmkeeper.Keeper
121113 }
122114
@@ -500,21 +492,6 @@ func (app *App) InitNormalKeepers(
500492 // Create fee enabled wasm ibc Stack
501493 wasmStackIBCHandler := wasm .NewIBCHandler (app .Keepers .Cosmos .Wasm , app .Keepers .Cosmos .IBC .ChannelKeeper , app .Keepers .Cosmos .Transfer , app .Keepers .Cosmos .IBC .ChannelKeeper )
502494
503- // Create Interchain Accounts Stack
504- // SendPacket, since it is originating from the application to core IBC:
505- // icaAuthModuleKeeper.SendTx -> icaController.SendPacket -> fee.SendPacket -> channel.SendPacket
506- var icaControllerStack porttypes.IBCModule
507- // integration point for custom authentication modules
508- // sees https://medium.com/the-interchain-foundation/ibc-go-v6-changes-to-interchain-accounts-and-how-it-impacts-your-chain-806c185300d7
509- var noAuthzModule porttypes.IBCModule
510- icaControllerStack = icacontroller .NewIBCMiddlewareWithAuth (noAuthzModule , app .Keepers .Cosmos .ICAController )
511- // app.ICAAuthModule = icaControllerStack.(ibcmock.IBCModule)
512- icaControllerStack = icacontroller .NewIBCMiddlewareWithAuth (icaControllerStack , app .Keepers .Cosmos .ICAController )
513- icaControllerStack = ibccallbacks .NewIBCMiddleware (icaControllerStack , app .Keepers .Cosmos .IBC .ChannelKeeper , wasmStackIBCHandler , wasm .DefaultMaxIBCCallbackGas )
514- icaICS4Wrapper := icaControllerStack .(porttypes.ICS4Wrapper )
515- // Since the callback middleware itself is an ics4wrapper, it needs to be passed to the ica controller keeper
516- app .Keepers .Cosmos .ICAController .WithICS4Wrapper (icaICS4Wrapper )
517-
518495 transferIBCModule := transfer .NewIBCModule (app .Keepers .Cosmos .Transfer )
519496
520497 // Create static IBC router, add transfer route, then set and seal it
@@ -540,7 +517,6 @@ func (app *App) SetupHooks() {
540517 app .Keepers .Cosmos .Slashing .Hooks (),
541518 ),
542519 )
543-
544520 app .Keepers .Cosmos .Gov .SetHooks (
545521 govtypes .NewMultiGovHooks (
546522 // insert governance hooks receivers here
@@ -573,8 +549,6 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino
573549 paramsKeeper .Subspace (crisistypes .ModuleName ).WithKeyTable (crisistypes .ParamKeyTable ()) // nolint: staticcheck // SA1019
574550 paramsKeeper .Subspace (ibctransfertypes .ModuleName ).WithKeyTable (ibctransfertypes .ParamKeyTable ())
575551 paramsKeeper .Subspace (ibcexported .ModuleName ).WithKeyTable (ibctable )
576- paramsKeeper .Subspace (icacontrollertypes .SubModuleName )
577- paramsKeeper .Subspace (icahosttypes .SubModuleName )
578552
579553 // akash params subspaces
580554 paramsKeeper .Subspace (dtypes .ModuleName ).WithKeyTable (dv1beta .ParamKeyTable ())
0 commit comments