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

Method RegisterGRPCGatewayRoutes

x/margin/module.go:67–72  ·  view source on GitHub ↗
(clientCtx sdkclient.Context, mux *runtime.ServeMux)

Source from the content-addressed store, hash-verified

65}
66
67func (b AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx sdkclient.Context, mux *runtime.ServeMux) {
68 err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx))
69 if err != nil {
70 panic(err)
71 }
72}
73
74// RegisterRESTRoutes registers the REST routes.
75func (b AppModuleBasic) RegisterRESTRoutes(ctx sdkclient.Context, router *mux.Router) {

Callers

nothing calls this directly

Calls 2

NewQueryClientFunction · 0.92

Tested by

no test coverage detected