diff --git a/app/app.go b/app/app.go index b362fc86..09e8ff72 100644 --- a/app/app.go +++ b/app/app.go @@ -94,10 +94,6 @@ import ( "github.com/ignite-hq/cli/ignite/pkg/cosmoscmd" "github.com/ignite-hq/cli/ignite/pkg/openapiconsole" - monitoringp "github.com/tendermint/spn/x/monitoringp" - monitoringpkeeper "github.com/tendermint/spn/x/monitoringp/keeper" - monitoringptypes "github.com/tendermint/spn/x/monitoringp/types" - "github.com/okp4/okp4d/docs" // this line is used by starport scaffolding # stargate/app/moduleImport ) @@ -152,7 +148,6 @@ var ( evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, vesting.AppModuleBasic{}, - monitoringp.AppModuleBasic{}, // this line is used by starport scaffolding # stargate/app/moduleBasic ) @@ -218,7 +213,6 @@ type App struct { EvidenceKeeper evidencekeeper.Keeper TransferKeeper ibctransferkeeper.Keeper FeeGrantKeeper feegrantkeeper.Keeper - MonitoringKeeper monitoringpkeeper.Keeper // make scoped keepers public for test purposes ScopedIBCKeeper capabilitykeeper.ScopedKeeper @@ -261,7 +255,7 @@ func New( authtypes.StoreKey, authz.ModuleName, banktypes.StoreKey, stakingtypes.StoreKey, minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey, govtypes.StoreKey, paramstypes.StoreKey, ibchost.StoreKey, upgradetypes.StoreKey, feegrant.StoreKey, - evidencetypes.StoreKey, ibctransfertypes.StoreKey, capabilitytypes.StoreKey, monitoringptypes.StoreKey, + evidencetypes.StoreKey, ibctransfertypes.StoreKey, capabilitytypes.StoreKey, // this line is used by starport scaffolding # stargate/app/storeKey ) tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey) @@ -365,27 +359,11 @@ func New( &stakingKeeper, govRouter, ) - scopedMonitoringKeeper := app.CapabilityKeeper.ScopeToModule(monitoringptypes.ModuleName) - app.MonitoringKeeper = *monitoringpkeeper.NewKeeper( - appCodec, - keys[monitoringptypes.StoreKey], - keys[monitoringptypes.MemStoreKey], - app.GetSubspace(monitoringptypes.ModuleName), - app.StakingKeeper, - app.IBCKeeper.ClientKeeper, - app.IBCKeeper.ConnectionKeeper, - app.IBCKeeper.ChannelKeeper, - &app.IBCKeeper.PortKeeper, - scopedMonitoringKeeper, - ) - monitoringModule := monitoringp.NewAppModule(appCodec, app.MonitoringKeeper) - // this line is used by starport scaffolding # stargate/app/keeperDefinition // Create static IBC router, add transfer route, then set and seal it ibcRouter := ibcporttypes.NewRouter() ibcRouter.AddRoute(ibctransfertypes.ModuleName, transferModule) - ibcRouter.AddRoute(monitoringptypes.ModuleName, monitoringModule) // this line is used by starport scaffolding # ibc/app/router app.IBCKeeper.SetRouter(ibcRouter) @@ -420,7 +398,6 @@ func New( ibc.NewAppModule(app.IBCKeeper), params.NewAppModule(app.ParamsKeeper), transferModule, - monitoringModule, // this line is used by starport scaffolding # stargate/app/appModule ) @@ -447,7 +424,6 @@ func New( genutiltypes.ModuleName, feegrant.ModuleName, paramstypes.ModuleName, - monitoringptypes.ModuleName, // this line is used by starport scaffolding # stargate/app/beginBlockers ) @@ -470,7 +446,6 @@ func New( upgradetypes.ModuleName, ibchost.ModuleName, ibctransfertypes.ModuleName, - monitoringptypes.ModuleName, // this line is used by starport scaffolding # stargate/app/endBlockers ) @@ -498,7 +473,6 @@ func New( upgradetypes.ModuleName, ibctransfertypes.ModuleName, feegrant.ModuleName, - monitoringptypes.ModuleName, // this line is used by starport scaffolding # stargate/app/initGenesis ) @@ -522,7 +496,6 @@ func New( evidence.NewAppModule(app.EvidenceKeeper), ibc.NewAppModule(app.IBCKeeper), transferModule, - monitoringModule, // this line is used by starport scaffolding # stargate/app/appModule ) app.sm.RegisterStoreDecoders() @@ -560,7 +533,6 @@ func New( app.ScopedIBCKeeper = scopedIBCKeeper app.ScopedTransferKeeper = scopedTransferKeeper - app.ScopedMonitoringKeeper = scopedMonitoringKeeper // this line is used by starport scaffolding # stargate/app/beforeInitReturn return app @@ -711,7 +683,6 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(crisistypes.ModuleName) paramsKeeper.Subspace(ibctransfertypes.ModuleName) paramsKeeper.Subspace(ibchost.ModuleName) - paramsKeeper.Subspace(monitoringptypes.ModuleName) // this line is used by starport scaffolding # stargate/app/paramSubspace return paramsKeeper