/
module.go
50 lines (37 loc) · 1.15 KB
/
module.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package stride
import (
"encoding/json"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/types/module"
)
var (
_ module.AppModuleBasic = AppModuleBasic{}
)
// AppModuleBasic implements the AppModuleBasic interface
type AppModuleBasic struct{}
func (AppModuleBasic) Name() string {
return "interchainquery"
}
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
RegisterLegacyAminoCodec(cdc)
}
func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) {
RegisterInterfaces(reg)
}
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
return nil
}
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error {
return nil
}
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {}
func (a AppModuleBasic) GetTxCmd() *cobra.Command {
return nil
}
func (AppModuleBasic) GetQueryCmd() *cobra.Command {
return nil
}