refactor(x/slashing): audit QA (#21477)
This commit is contained in:
@@ -85,19 +85,19 @@ func (AppModule) RegisterLegacyAminoCodec(cdc legacy.Amino) {
|
||||
types.RegisterLegacyAminoCodec(cdc)
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the module's interface types
|
||||
// RegisterInterfaces registers the slashing module's interface types
|
||||
func (AppModule) RegisterInterfaces(registrar registry.InterfaceRegistrar) {
|
||||
types.RegisterInterfaces(registrar)
|
||||
}
|
||||
|
||||
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the slashig module.
|
||||
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the slashing module.
|
||||
func (AppModule) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *gwruntime.ServeMux) {
|
||||
if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
// RegisterServices registers module services.
|
||||
// RegisterServices registers slashing module's services.
|
||||
func (am AppModule) RegisterServices(registrar grpc.ServiceRegistrar) error {
|
||||
types.RegisterMsgServer(registrar, keeper.NewMsgServerImpl(am.keeper))
|
||||
types.RegisterQueryServer(registrar, keeper.NewQuerier(am.keeper))
|
||||
@@ -105,7 +105,7 @@ func (am AppModule) RegisterServices(registrar grpc.ServiceRegistrar) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// RegisterMigrations registers module migrations.
|
||||
// RegisterMigrations registers slashing module's migrations.
|
||||
func (am AppModule) RegisterMigrations(mr appmodule.MigrationRegistrar) error {
|
||||
m := keeper.NewMigrator(am.keeper, am.stakingKeeper.ValidatorAddressCodec())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user