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 unused MsgEmpty #776

Merged
merged 3 commits into from
Nov 12, 2022
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Features

### Improvements
* (x/auth) [\#776](https://github.com/line/lbm-sdk/pull/776) remove unused MsgEmpty

### Bug Fixes
* (x/foundation) [\#772](https://github.com/line/lbm-sdk/pull/772) export x/foundation pool
Expand Down
57 changes: 0 additions & 57 deletions docs/core/proto-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@

- [Query](#cosmos.auth.v1beta1.Query)

- [cosmos/auth/v1beta1/tx.proto](#cosmos/auth/v1beta1/tx.proto)
- [MsgEmpty](#cosmos.auth.v1beta1.MsgEmpty)
- [MsgEmptyResponse](#cosmos.auth.v1beta1.MsgEmptyResponse)

- [Msg](#cosmos.auth.v1beta1.Msg)

- [cosmos/authz/v1beta1/authz.proto](#cosmos/authz/v1beta1/authz.proto)
- [GenericAuthorization](#cosmos.authz.v1beta1.GenericAuthorization)
- [Grant](#cosmos.authz.v1beta1.Grant)
Expand Down Expand Up @@ -1598,57 +1592,6 @@ Since: cosmos-sdk 0.43 | GET|/cosmos/auth/v1beta1/accounts|



<a name="cosmos/auth/v1beta1/tx.proto"></a>
<p align="right"><a href="#top">Top</a></p>

## cosmos/auth/v1beta1/tx.proto



<a name="cosmos.auth.v1beta1.MsgEmpty"></a>

### MsgEmpty
MsgEmpty represents a message that doesn't do anything. Used to measure performance.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `from_address` | [string](#string) | | |






<a name="cosmos.auth.v1beta1.MsgEmptyResponse"></a>

### MsgEmptyResponse
MsgEmptyResponse defines the Msg/Empty response type.





<!-- end messages -->

<!-- end enums -->

<!-- end HasExtensions -->


<a name="cosmos.auth.v1beta1.Msg"></a>

### Msg
Msg defines the auth Msg service.

| Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint |
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
| `Empty` | [MsgEmpty](#cosmos.auth.v1beta1.MsgEmpty) | [MsgEmptyResponse](#cosmos.auth.v1beta1.MsgEmptyResponse) | Empty defines a method that doesn't do anything. Used to measure performance. | |

<!-- end services -->



<a name="cosmos/authz/v1beta1/authz.proto"></a>
<p align="right"><a href="#top">Top</a></p>

Expand Down
23 changes: 0 additions & 23 deletions proto/cosmos/auth/v1beta1/tx.proto

This file was deleted.

54 changes: 0 additions & 54 deletions x/auth/client/cli/tx.go

This file was deleted.

31 changes: 0 additions & 31 deletions x/auth/keeper/msg_server.go

This file was deleted.

3 changes: 1 addition & 2 deletions x/auth/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *r

// GetTxCmd returns the root tx command for the auth module.
func (AppModuleBasic) GetTxCmd() *cobra.Command {
return cli.NewTxCmd()
return nil
}

// GetQueryCmd returns the root query command for the auth module.
Expand Down Expand Up @@ -128,7 +128,6 @@ func (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sd
// 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.accountKeeper))
types.RegisterQueryServer(cfg.QueryServer(), am.accountKeeper)

// m := keeper.NewMigrator(am.accountKeeper)
Expand Down
7 changes: 0 additions & 7 deletions x/auth/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"github.com/line/lbm-sdk/codec/types"
cryptocodec "github.com/line/lbm-sdk/crypto/codec"
sdk "github.com/line/lbm-sdk/types"
"github.com/line/lbm-sdk/types/msgservice"
"github.com/line/lbm-sdk/x/auth/legacy/legacytx"
authzcodec "github.com/line/lbm-sdk/x/authz/codec"
govcodec "github.com/line/lbm-sdk/x/gov/codec"
Expand All @@ -19,19 +18,13 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
cdc.RegisterInterface((*AccountI)(nil), nil)
cdc.RegisterConcrete(&BaseAccount{}, "cosmos-sdk/BaseAccount", nil)
cdc.RegisterConcrete(&ModuleAccount{}, "cosmos-sdk/ModuleAccount", nil)
cdc.RegisterConcrete(&MsgEmpty{}, "cosmos-sdk/MsgEmpty", nil)

legacytx.RegisterLegacyAminoCodec(cdc)
}

// RegisterInterfaces associates protoName with AccountI interface
// and creates a registry of it's concrete implementations
func RegisterInterfaces(registry types.InterfaceRegistry) {
registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgEmpty{},
)
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)

registry.RegisterInterface(
"cosmos.auth.v1beta1.AccountI",
(*AccountI)(nil),
Expand Down
7 changes: 0 additions & 7 deletions x/auth/types/events.go

This file was deleted.

3 changes: 0 additions & 3 deletions x/auth/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ const (
// StoreKey is string representation of the store key for auth
StoreKey = "acc"

// RouterKey defines the module's message routing key
RouterKey = ModuleName

// FeeCollectorName the root string for the fee collector account address
FeeCollectorName = "fee_collector"

Expand Down
45 changes: 0 additions & 45 deletions x/auth/types/msgs.go

This file was deleted.

55 changes: 0 additions & 55 deletions x/auth/types/msgs_test.go

This file was deleted.

Loading