From 08a1dd27418056f6e3cc462c0464fcd33115c260 Mon Sep 17 00:00:00 2001 From: Bryan White Date: Thu, 30 Jan 2025 14:29:08 +0100 Subject: [PATCH] refactor: migration keeper in cosmos app --- app/app.go | 4 +--- app/keepers/types.go | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/app.go b/app/app.go index 6e9cff698..93b608d19 100644 --- a/app/app.go +++ b/app/app.go @@ -1,7 +1,6 @@ package app import ( - migrationmodulekeeper "github.com/pokt-network/poktroll/x/migration/keeper" // this line is used by starport scaffolding # stargate/app/moduleImport "io" "os" @@ -70,7 +69,6 @@ type App struct { // simulation manager sm *module.SimulationManager - MigrationKeeper migrationmodulekeeper.Keeper // this line is used by starport scaffolding # stargate/app/keeperDeclaration // Ignite CLI adds keepers here when scaffolding new modules. Please move the created keeper to the `keepers` package. } @@ -216,7 +214,7 @@ func New( &app.Keepers.ProofKeeper, &app.Keepers.TokenomicsKeeper, &app.Keepers.SharedKeeper, - &app.MigrationKeeper, + &app.Keepers.MigrationKeeper, // this line is used by starport scaffolding # stargate/app/keeperDefinition // Ignite CLI adds keepers here when scaffolding new modules. Please move the created keeper to the `keepers` package. ); err != nil { diff --git a/app/keepers/types.go b/app/keepers/types.go index 2125523c5..f169bc7ff 100644 --- a/app/keepers/types.go +++ b/app/keepers/types.go @@ -32,6 +32,7 @@ import ( applicationmodulekeeper "github.com/pokt-network/poktroll/x/application/keeper" gatewaymodulekeeper "github.com/pokt-network/poktroll/x/gateway/keeper" + migrationmodulekeeper "github.com/pokt-network/poktroll/x/migration/keeper" proofmodulekeeper "github.com/pokt-network/poktroll/x/proof/keeper" servicemodulekeeper "github.com/pokt-network/poktroll/x/service/keeper" sessionmodulekeeper "github.com/pokt-network/poktroll/x/session/keeper" @@ -82,4 +83,5 @@ type Keepers struct { ProofKeeper proofmodulekeeper.Keeper TokenomicsKeeper tokenomicsmodulekeeper.Keeper SharedKeeper sharedmodulekeeper.Keeper + MigrationKeeper migrationmodulekeeper.Keeper }