refactor: move UpgradeModule interface to appmodule and fix mocks (#17383)

Co-authored-by: Marko <marko@baricevic.me>
This commit is contained in:
Julien Robert
2023-08-16 14:11:49 +00:00
committed by GitHub
co-authored by Marko
parent 208219a428
commit e3a3df2a82
19 changed files with 287 additions and 130 deletions
+7
View File
@@ -71,3 +71,10 @@ type HasEndBlocker interface {
// a block.
EndBlock(context.Context) error
}
// UpgradeModule is the extension interface that upgrade module should implement to differentiate
// it from other modules, migration handler need ensure the upgrade module's migration is executed
// before the rest of the modules.
type UpgradeModule interface {
IsUpgradeModule()
}