Skip to content

Commit

Permalink
Remove legacy rest
Browse files Browse the repository at this point in the history
  • Loading branch information
0Tech committed Aug 2, 2022
1 parent 9e003b3 commit 37b1903
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 327 deletions.
134 changes: 0 additions & 134 deletions x/slashing/client/rest/grpc_query_test.go

This file was deleted.

111 changes: 0 additions & 111 deletions x/slashing/client/rest/query.go

This file was deleted.

15 changes: 0 additions & 15 deletions x/slashing/client/rest/rest.go

This file was deleted.

63 changes: 0 additions & 63 deletions x/slashing/client/rest/tx.go

This file was deleted.

5 changes: 1 addition & 4 deletions x/slashing/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"github.com/line/lbm-sdk/types/module"
simtypes "github.com/line/lbm-sdk/types/simulation"
"github.com/line/lbm-sdk/x/slashing/client/cli"
"github.com/line/lbm-sdk/x/slashing/client/rest"
"github.com/line/lbm-sdk/x/slashing/keeper"
"github.com/line/lbm-sdk/x/slashing/simulation"
"github.com/line/lbm-sdk/x/slashing/types"
Expand Down Expand Up @@ -71,9 +70,7 @@ func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncod
}

// RegisterRESTRoutes registers the REST routes for the slashing module.
func (AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router) {
rest.RegisterHandlers(clientCtx, rtr)
}
func (AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router) {}

// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the slashig module.
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {
Expand Down

0 comments on commit 37b1903

Please sign in to comment.