Add GRPC querier and REST gateway

This commit is contained in:
Alex Peters
2020-10-27 10:48:38 +01:00
parent bcb00d6017
commit 5cc3e6dc8b
16 changed files with 2270 additions and 438 deletions

View File

@@ -1,6 +1,7 @@
package wasm
import (
"context"
"encoding/json"
"math/rand"
@@ -33,8 +34,8 @@ func (b AppModuleBasic) RegisterLegacyAminoCodec(amino *codec.LegacyAmino) {
RegisterCodec(amino)
}
func (b AppModuleBasic) RegisterGRPCRoutes(context client.Context, serveMux *runtime.ServeMux) {
panic("implement me")
func (b AppModuleBasic) RegisterGRPCRoutes(clientCtx client.Context, serveMux *runtime.ServeMux) {
types.RegisterQueryHandlerClient(context.Background(), serveMux, types.NewQueryClient(clientCtx))
}
// Name returns the wasm module's name.