Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove handler.go #497

Merged
merged 2 commits into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"fmt"

// this line is used by starport scaffolding # 1

"github.com/gorilla/mux"
Expand Down Expand Up @@ -128,7 +129,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
17 changes: 0 additions & 17 deletions x/observer/types/tmp.json

This file was deleted.