diff --git a/types/module/module.go b/types/module/module.go index c2feef8ec579..4aa36f435c6f 100644 --- a/types/module/module.go +++ b/types/module/module.go @@ -46,7 +46,7 @@ import ( // Deprecated: use the embed extension interfaces instead, when needed. type AppModuleBasic interface { HasName - appmodule.HasRegisterInterfaces + HasRegisterInterfaces HasGRPCGateway HasAminoCodec } @@ -58,7 +58,7 @@ type AppModule interface { appmodule.AppModule HasName - appmodule.HasRegisterInterfaces + HasRegisterInterfaces } // HasName allows the module to provide its own name for legacy purposes. @@ -82,6 +82,9 @@ type HasAminoCodec interface { RegisterLegacyAminoCodec(*codec.LegacyAmino) } +// HasRegisterInterfaces is the interface for modules to register their msg types. +type HasRegisterInterfaces appmodule.HasRegisterInterfaces + // HasGRPCGateway is the interface for modules to register their gRPC gateway routes. type HasGRPCGateway interface { RegisterGRPCGatewayRoutes(client.Context, *runtime.ServeMux)