feat(core): add AppModule tag interface (#13607)

This commit is contained in:
Aaron Craelius 2022-10-23 02:02:59 -04:00 committed by GitHub
parent c484a0dc0f
commit 4cf2911f16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

14
core/appmodule/module.go Normal file
View File

@ -0,0 +1,14 @@
package appmodule
import "cosmossdk.io/depinject"
// AppModule is a tag interface for app module implementations to use as a basis
// for extension interfaces. It provides no functionality itself, but is the
// type that all valid app modules should provide so that they can be identified
// by other modules (usually via depinject) as app modules.
type AppModule interface {
depinject.OnePerModuleType
// IsAppModule is a dummy method to tag a struct as implementing an AppModule.
IsAppModule()
}