Skip to content

Commit

Permalink
Upgrade the way of handling messages (#818)
Browse files Browse the repository at this point in the history
* Upgrade the way of handling messages

It was pointed out to us that the old way of handling messages (which
we were doing with the handler.go) is no longer supported in
cosmos-sdk v0.47.1  We have to update.  This does that

* update changelog

---------

Co-authored-by: Tyler Ruppert <{ID}+{username}@users.noreply.github.com>
  • Loading branch information
MechanicalTyler and Tyler Ruppert authored Apr 28, 2023
1 parent 41428f7 commit 14ce472
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 181 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ Ref: https://keepachangelog.com/en/1.0.0/
# Changelog

## [Unreleased]
* https://github.com/palomachain/paloma/pull/818 - Upgrade the way of handling messages
38 changes: 0 additions & 38 deletions x/consensus/handler.go

This file was deleted.

1 change: 1 addition & 0 deletions x/consensus/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func (AppModule) QuerierRoute() string { return types.QuerierRoute }
// RegisterServices registers a GRPC query service to respond to the
// module-specific GRPC queries.
func (am AppModule) RegisterServices(cfg module.Configurator) {
types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
types.RegisterQueryServer(cfg.QueryServer(), am.keeper)
}

Expand Down
32 changes: 0 additions & 32 deletions x/evm/handler.go

This file was deleted.

1 change: 1 addition & 0 deletions x/evm/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func (AppModule) QuerierRoute() string { return types.QuerierRoute }
// RegisterServices registers a GRPC query service to respond to the
// module-specific GRPC queries.
func (am AppModule) RegisterServices(cfg module.Configurator) {
types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
types.RegisterQueryServer(cfg.QueryServer(), am.keeper)
}

Expand Down
23 changes: 0 additions & 23 deletions x/paloma/handler.go

This file was deleted.

1 change: 1 addition & 0 deletions x/paloma/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func (AppModule) QuerierRoute() string { return types.QuerierRoute }
// RegisterServices registers a GRPC query service to respond to the
// module-specific GRPC queries.
func (am AppModule) RegisterServices(cfg module.Configurator) {
types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
types.RegisterQueryServer(cfg.QueryServer(), am.keeper)
}

Expand Down
33 changes: 0 additions & 33 deletions x/scheduler/handler.go

This file was deleted.

23 changes: 0 additions & 23 deletions x/treasury/handler.go

This file was deleted.

1 change: 1 addition & 0 deletions x/treasury/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func (AppModule) QuerierRoute() string { return types.QuerierRoute }
// RegisterServices registers a GRPC query service to respond to the
// module-specific GRPC queries.
func (am AppModule) RegisterServices(cfg module.Configurator) {
types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
types.RegisterQueryServer(cfg.QueryServer(), am.keeper)
}

Expand Down
32 changes: 0 additions & 32 deletions x/valset/handler.go

This file was deleted.

1 change: 1 addition & 0 deletions x/valset/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func (AppModule) QuerierRoute() string { return types.QuerierRoute }
// RegisterServices registers a GRPC query service to respond to the
// module-specific GRPC queries.
func (am AppModule) RegisterServices(cfg module.Configurator) {
types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
types.RegisterQueryServer(cfg.QueryServer(), am.keeper)
}

Expand Down

0 comments on commit 14ce472

Please sign in to comment.