-
Notifications
You must be signed in to change notification settings - Fork 0
/
module_ibc_adapter.go
73 lines (58 loc) · 2.09 KB
/
module_ibc_adapter.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package auth
import (
"context"
"fmt"
"github.com/gorilla/mux"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
cliContext "github.com/brc20-collab/brczero/libs/cosmos-sdk/client/context"
"github.com/brc20-collab/brczero/libs/cosmos-sdk/codec"
codectypes "github.com/brc20-collab/brczero/libs/cosmos-sdk/codec/types"
cosmost "github.com/brc20-collab/brczero/libs/cosmos-sdk/store/types"
"github.com/brc20-collab/brczero/libs/cosmos-sdk/types/module"
"github.com/brc20-collab/brczero/libs/cosmos-sdk/types/upgrade"
"github.com/brc20-collab/brczero/libs/cosmos-sdk/x/auth/types"
authinternaltypes "github.com/brc20-collab/brczero/libs/cosmos-sdk/x/auth/typesadapter"
"github.com/spf13/cobra"
)
var (
_ module.AppModuleBasicAdapter = AppModuleBasic{}
_ module.AppModuleAdapter = AppModule{}
)
func (am AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) {
RegisterInterfaces(registry)
}
func (am AppModuleBasic) RegisterGRPCGatewayRoutes(clictx cliContext.CLIContext, serveMux *runtime.ServeMux) {
types.RegisterQueryHandlerClient(context.Background(), serveMux, types.NewQueryClient(clictx))
}
func (am AppModuleBasic) RegisterRouterForGRPC(clictx cliContext.CLIContext, r *mux.Router) {
}
//////
func (am AppModule) RegisterTask() upgrade.HeightTask {
return nil
}
func (am AppModule) CommitFilter() *cosmost.StoreFilter {
return nil
}
func (am AppModule) PruneFilter() *cosmost.StoreFilter {
return nil
}
func (am AppModule) VersionFilter() *cosmost.VersionFilter {
return nil
}
// RegisterServices registers module services.
func (am AppModule) RegisterServices(cfg module.Configurator) {
a := &am.accountKeeper
types.RegisterQueryServer(cfg.QueryServer(), a)
}
func (am AppModuleBasic) GetTxCmdV2(cdc *codec.CodecProxy, reg codectypes.InterfaceRegistry) *cobra.Command {
return nil
}
func (AppModuleBasic) GetQueryCmdV2(cdc *codec.CodecProxy, reg codectypes.InterfaceRegistry) *cobra.Command {
return nil
}
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
registry.RegisterImplementations(
(*fmt.Stringer)(nil),
&authinternaltypes.BaseAccount{},
)
}