@@ -48,12 +48,8 @@ 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"
5351 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"
5552 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"
5753 "github.com/cosmos/ibc-go/v10/modules/apps/transfer"
5854 ibctransferkeeper "github.com/cosmos/ibc-go/v10/modules/apps/transfer/keeper"
5955 ibctransfertypes "github.com/cosmos/ibc-go/v10/modules/apps/transfer/types"
@@ -115,9 +111,9 @@ type AppKeepers struct {
115111 IBC * ibckeeper.Keeper
116112 Evidence * evidencekeeper.Keeper
117113 Transfer ibctransferkeeper.Keeper
118- ICAController icacontrollerkeeper.Keeper
119- ICAHost icahostkeeper.Keeper
120- Wasm * wasmkeeper.Keeper
114+ // ICAController icacontrollerkeeper.Keeper
115+ // ICAHost icahostkeeper.Keeper
116+ Wasm * wasmkeeper.Keeper
121117 }
122118
123119 Akash struct {
@@ -503,17 +499,17 @@ func (app *App) InitNormalKeepers(
503499 // Create Interchain Accounts Stack
504500 // SendPacket, since it is originating from the application to core IBC:
505501 // 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 )
502+ // var icaControllerStack porttypes.IBCModule
503+ //integration point for custom authentication modules
504+ //sees https://medium.com/the-interchain-foundation/ibc-go-v6-changes-to-interchain-accounts-and-how-it-impacts-your-chain-806c185300d7
505+ // var noAuthzModule porttypes.IBCModule
506+ // icaControllerStack = icacontroller.NewIBCMiddlewareWithAuth(noAuthzModule, app.Keepers.Cosmos.ICAController)
507+ //// app.ICAAuthModule = icaControllerStack.(ibcmock.IBCModule)
508+ // icaControllerStack = icacontroller.NewIBCMiddlewareWithAuth(icaControllerStack, app.Keepers.Cosmos.ICAController)
509+ // icaControllerStack = ibccallbacks.NewIBCMiddleware(icaControllerStack, app.Keepers.Cosmos.IBC.ChannelKeeper, wasmStackIBCHandler, wasm.DefaultMaxIBCCallbackGas)
510+ // icaICS4Wrapper := icaControllerStack.(porttypes.ICS4Wrapper)
511+ //// Since the callback middleware itself is an ics4wrapper, it needs to be passed to the ica controller keeper
512+ // app.Keepers.Cosmos.ICAController.WithICS4Wrapper(icaICS4Wrapper)
517513
518514 transferIBCModule := transfer .NewIBCModule (app .Keepers .Cosmos .Transfer )
519515
0 commit comments