MCPcopy Create free account
hub / github.com/Sifchain/sifnode / RegisterServices

Method RegisterServices

x/margin/module.go:102–110  ·  view source on GitHub ↗
(cfg module.Configurator)

Source from the content-addressed store, hash-verified

100}
101
102func (am AppModule) RegisterServices(cfg module.Configurator) {
103 types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
104 types.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServer(am.keeper))
105 m := keeper.NewMigrator(am.keeper)
106 err := cfg.RegisterMigration(types.ModuleName, 1, m.MigrateToVer2)
107 if err != nil {
108 panic(err)
109 }
110}
111
112// NewAppModule creates a new AppModule object
113func NewAppModule(keeper keeper.Keeper, cdc *codec.Codec) AppModule {

Callers

nothing calls this directly

Calls 5

RegisterMsgServerFunction · 0.92
NewMsgServerImplFunction · 0.92
RegisterQueryServerFunction · 0.92
NewQueryServerFunction · 0.92
NewMigratorFunction · 0.92

Tested by

no test coverage detected