refactor: move UpgradeModule interface to appmodule and fix mocks (#17383)
Co-authored-by: Marko <marko@baricevic.me>
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user