Skip to content

Commit

Permalink
Remove handler.go (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev authored Apr 10, 2023
1 parent fcbde77 commit cded752
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 165 deletions.
56 changes: 0 additions & 56 deletions x/crosschain/handler.go

This file was deleted.

3 changes: 2 additions & 1 deletion x/crosschain/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"fmt"

authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/gorilla/mux"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
Expand Down Expand Up @@ -130,7 +131,7 @@ func (am AppModule) Name() string {

// Route returns the capability module's message routing key.
func (am AppModule) Route() sdk.Route {
return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper))
return sdk.Route{}
}

// QuerierRoute returns the capability module's query routing key.
Expand Down
23 changes: 0 additions & 23 deletions x/emissions/handler.go

This file was deleted.

3 changes: 2 additions & 1 deletion x/emissions/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package emissions
import (
"encoding/json"
"fmt"

// this line is used by starport scaffolding # 1

"github.com/gorilla/mux"
Expand Down Expand Up @@ -127,7 +128,7 @@ func (am AppModule) Name() string {

// Route returns the capability module's message routing key.
func (am AppModule) Route() sdk.Route {
return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper, am.bankKeeper))
return sdk.Route{}
}

// QuerierRoute returns the capability module's query routing key.
Expand Down
33 changes: 0 additions & 33 deletions x/fungible/handler.go

This file was deleted.

2 changes: 1 addition & 1 deletion x/fungible/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (am AppModule) Name() string {

// Route returns the capability module's message routing key.
func (am AppModule) Route() sdk.Route {
return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper))
return sdk.Route{}
}

// QuerierRoute returns the capability module's query routing key.
Expand Down
32 changes: 0 additions & 32 deletions x/observer/handler.go

This file was deleted.

3 changes: 2 additions & 1 deletion x/observer/module.go