7
7
"time"
8
8
9
9
gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime"
10
- "github.com/spf13/cobra"
11
10
12
11
"cosmossdk.io/core/appmodule"
13
12
@@ -26,7 +25,6 @@ import (
26
25
27
26
var (
28
27
_ module.AppModule = (* AppModule )(nil )
29
- _ module.AppModuleBasic = (* AppModuleBasic )(nil )
30
28
_ module.AppModuleSimulation = (* AppModule )(nil )
31
29
_ module.HasName = (* AppModule )(nil )
32
30
_ module.HasConsensusVersion = (* AppModule )(nil )
@@ -48,11 +46,6 @@ func NewAppModuleBasic(cdc codec.Codec) AppModuleBasic {
48
46
return AppModuleBasic {cdc : cdc }
49
47
}
50
48
51
- // Name returns the capability module's name.
52
- func (AppModuleBasic ) Name () string {
53
- return types .ModuleName
54
- }
55
-
56
49
// RegisterLegacyAminoCodec does nothing. Capability does not support amino.
57
50
func (AppModuleBasic ) RegisterLegacyAminoCodec (cdc * codec.LegacyAmino ) {}
58
51
@@ -77,12 +70,6 @@ func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncod
77
70
func (AppModuleBasic ) RegisterGRPCGatewayRoutes (_ client.Context , _ * gwruntime.ServeMux ) {
78
71
}
79
72
80
- // GetTxCmd returns the capability module's root tx command.
81
- func (AppModuleBasic ) GetTxCmd () * cobra.Command { return nil }
82
-
83
- // GetQueryCmd returns the capability module's root query command.
84
- func (AppModuleBasic ) GetQueryCmd () * cobra.Command { return nil }
85
-
86
73
// ----------------------------------------------------------------------------
87
74
// AppModule
88
75
// ----------------------------------------------------------------------------
@@ -112,7 +99,7 @@ func (AppModule) IsAppModule() {}
112
99
113
100
// Name returns the capability module's name.
114
101
func (am AppModule ) Name () string {
115
- return am . AppModuleBasic . Name ()
102
+ return types . ModuleName
116
103
}
117
104
118
105
// InitGenesis performs the capability module's genesis initialization It returns
0 commit comments