Skip to content

Commit

Permalink
alias types/module.HasRegisterInterfaces -> core
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed Mar 6, 2024
1 parent 650c4c3 commit 3ac22fe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions types/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import (
// Deprecated: use the embed extension interfaces instead, when needed.
type AppModuleBasic interface {
HasName
appmodule.HasRegisterInterfaces
HasRegisterInterfaces
HasGRPCGateway
HasAminoCodec
}
Expand All @@ -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.
Expand All @@ -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)
Expand Down

0 comments on commit 3ac22fe

Please sign in to comment.