From a7f75b6b0c9b4babfb1a23680a0a4b684f33a949 Mon Sep 17 00:00:00 2001 From: Devashish Dixit Date: Thu, 10 Mar 2022 18:50:25 +0800 Subject: [PATCH] Problem: `x/supply` is not marked as deprecated (#724) Solution: Marked `x/supply` grpc and cli as deprecated. Fixes #720. --- CHANGELOG.md | 1 + proto/supply/v1/query.proto | 2 ++ x/nft/types/query.pb.gw.go | 25 +-------------- x/supply/client/cli/query.go | 12 +++++--- x/supply/module.go | 2 ++ x/supply/types/query.pb.go | 60 ++++++++++++++++++++---------------- 6 files changed, 46 insertions(+), 56 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b015d0bbf..2b69b543f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased - Upgrade `cosmos-sdk` to `v0.45.1` and `ibc-go` to `v3.0.0-rc0`. #717 +- Mark gRPC and CLI of `x/supply` as deprecated. #724 *March 1, 2022* diff --git a/proto/supply/v1/query.proto b/proto/supply/v1/query.proto index c71b0a6cd..b56e637e0 100644 --- a/proto/supply/v1/query.proto +++ b/proto/supply/v1/query.proto @@ -9,6 +9,8 @@ option go_package = "github.com/crypto-org-chain/chain-main/x/supply/types"; // Query defines the gRPC querier service. service Query { + option deprecated = true; + // TotalSupply queries the total supply of all coins. rpc TotalSupply(SupplyRequest) returns (SupplyResponse) { option (google.api.http).get = "/chainmain/supply/v1/total"; diff --git a/x/nft/types/query.pb.gw.go b/x/nft/types/query.pb.gw.go index c7c205c24..5f94eef28 100644 --- a/x/nft/types/query.pb.gw.go +++ b/x/nft/types/query.pb.gw.go @@ -20,7 +20,6 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" ) @@ -31,7 +30,6 @@ var _ status.Status var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage -var _ = metadata.Join var ( filter_Query_Supply_0 = &utilities.DoubleArray{Encoding: map[string]int{"denom_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} @@ -436,14 +434,12 @@ func local_request_Query_NFT_0(ctx context.Context, marshaler runtime.Marshaler, // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +// Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { mux.Handle("GET", pattern_Query_Supply_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -451,7 +447,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Supply_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -465,8 +460,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Owner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -474,7 +467,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Owner_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -488,8 +480,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Collection_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -497,7 +487,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Collection_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -511,8 +500,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Denom_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -520,7 +507,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Denom_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -534,8 +520,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_DenomByName_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -543,7 +527,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_DenomByName_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -557,8 +540,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Denoms_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -566,7 +547,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Denoms_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -580,8 +560,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_NFT_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -589,7 +567,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_NFT_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) diff --git a/x/supply/client/cli/query.go b/x/supply/client/cli/query.go index 966a05b50..6bb1b9c31 100644 --- a/x/supply/client/cli/query.go +++ b/x/supply/client/cli/query.go @@ -17,7 +17,7 @@ import ( func GetQueryCmd() *cobra.Command { cmd := &cobra.Command{ Use: types.ModuleName, - Short: "Querying commands for the supply module", + Short: "Querying commands for the supply module [Deprecated: do not use]", DisableFlagParsing: true, SuggestionsMinimumDistance: 2, RunE: client.ValidateCmd, @@ -35,9 +35,9 @@ func GetQueryCmd() *cobra.Command { func GetCmdQueryTotalSupply() *cobra.Command { cmd := &cobra.Command{ Use: "total", - Short: "Query the total supply of coins of the chain", + Short: "Query the total supply of coins of the chain [Deprecated: do not use]", Long: strings.TrimSpace( - fmt.Sprintf(`Query total supply of coins that are held by accounts in the chain. + fmt.Sprintf(`Query total supply of coins that are held by accounts in the chain. [Deprecated: do not use] Example: $ %s query %s total `, @@ -50,6 +50,7 @@ Example: return err } + // nolint: staticcheck queryClient := types.NewQueryClient(clientCtx) res, err := queryClient.TotalSupply(cmd.Context(), types.NewSupplyRequest()) if err != nil { @@ -69,9 +70,9 @@ Example: func GetCmdQueryLiquidSupply() *cobra.Command { cmd := &cobra.Command{ Use: "liquid", - Short: "Query the liquid supply of coins of the chain", + Short: "Query the liquid supply of coins of the chain [Deprecated: do not use]", Long: strings.TrimSpace( - fmt.Sprintf(`Query liquid supply of coins that are held by accounts in the chain. + fmt.Sprintf(`Query liquid supply of coins that are held by accounts in the chain. [Deprecated: do not use] Example: $ %s query %s liquid `, @@ -84,6 +85,7 @@ Example: return err } + // nolint: staticcheck queryClient := types.NewQueryClient(clientCtx) res, err := queryClient.LiquidSupply(cmd.Context(), types.NewSupplyRequest()) if err != nil { diff --git a/x/supply/module.go b/x/supply/module.go index 082e0be78..e96e91d03 100644 --- a/x/supply/module.go +++ b/x/supply/module.go @@ -80,6 +80,7 @@ func (a AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Ro // RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the capability module. func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { + // nolint: staticcheck err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)) if err != nil { @@ -134,6 +135,7 @@ func (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sd // RegisterServices registers query server. func (am AppModule) RegisterServices(cfg module.Configurator) { + // nolint: staticcheck types.RegisterQueryServer(cfg.QueryServer(), am.keeper) } diff --git a/x/supply/types/query.pb.go b/x/supply/types/query.pb.go index 29efaea22..1dffbee26 100644 --- a/x/supply/types/query.pb.go +++ b/x/supply/types/query.pb.go @@ -6,7 +6,6 @@ package types import ( context "context" fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" @@ -73,7 +72,7 @@ var xxx_messageInfo_SupplyRequest proto.InternalMessageInfo // method type SupplyResponse struct { // supply is the supply of the coins - Supply github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=supply,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"supply"` + Supply []types.Coin `protobuf:"bytes,1,rep,name=supply,proto3" json:"supply"` } func (m *SupplyResponse) Reset() { *m = SupplyResponse{} } @@ -109,7 +108,7 @@ func (m *SupplyResponse) XXX_DiscardUnknown() { var xxx_messageInfo_SupplyResponse proto.InternalMessageInfo -func (m *SupplyResponse) GetSupply() github_com_cosmos_cosmos_sdk_types.Coins { +func (m *SupplyResponse) GetSupply() []types.Coin { if m != nil { return m.Supply } @@ -124,30 +123,30 @@ func init() { func init() { proto.RegisterFile("supply/v1/query.proto", fileDescriptor_64cd1add7eb523c6) } var fileDescriptor_64cd1add7eb523c6 = []byte{ - // 362 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x91, 0xbf, 0x4e, 0xeb, 0x30, - 0x14, 0xc6, 0x93, 0x5e, 0xdd, 0x0e, 0xe9, 0xfd, 0x23, 0xe5, 0x5e, 0x24, 0x08, 0x25, 0x45, 0xe9, - 0xd2, 0x25, 0x36, 0x29, 0xe2, 0x05, 0xca, 0x8a, 0x84, 0x28, 0x4c, 0x6c, 0x4e, 0x6a, 0xa5, 0x16, - 0xa9, 0x4f, 0x1a, 0x3b, 0x15, 0x41, 0x2c, 0xf0, 0x04, 0x48, 0xbc, 0x05, 0x4f, 0xd2, 0xb1, 0x12, - 0x0b, 0x13, 0xa0, 0x96, 0x07, 0x41, 0xb1, 0x53, 0xfe, 0x48, 0x15, 0x13, 0x93, 0x8f, 0x8e, 0xcf, - 0xf9, 0xbe, 0x9f, 0x3f, 0x5b, 0x6b, 0x22, 0x4f, 0xd3, 0xa4, 0xc0, 0x93, 0x00, 0x8f, 0x73, 0x9a, - 0x15, 0x28, 0xcd, 0x40, 0x82, 0xfd, 0x2f, 0x1a, 0x12, 0xc6, 0x47, 0x84, 0x71, 0xa4, 0x07, 0xd0, - 0x24, 0x70, 0xdc, 0x08, 0xc4, 0x08, 0x04, 0x0e, 0x89, 0xa0, 0x78, 0x12, 0x84, 0x54, 0x92, 0x00, - 0x47, 0xc0, 0xb8, 0x5e, 0x72, 0xfe, 0xc7, 0x10, 0x83, 0x2a, 0x71, 0x59, 0x55, 0xdd, 0x66, 0x0c, - 0x10, 0x27, 0x14, 0x93, 0x94, 0x61, 0xc2, 0x39, 0x48, 0x22, 0x19, 0x70, 0xa1, 0x6f, 0xbd, 0xbf, - 0xd6, 0xef, 0x63, 0x65, 0xd0, 0xa7, 0xe3, 0x9c, 0x0a, 0xe9, 0xe5, 0xd6, 0x9f, 0x65, 0x43, 0xa4, - 0xc0, 0x05, 0xb5, 0x23, 0xab, 0xae, 0x19, 0xd6, 0xcd, 0xed, 0x1f, 0x9d, 0x46, 0x77, 0x03, 0x69, - 0x0e, 0x54, 0x72, 0xa0, 0x8a, 0x03, 0xed, 0x03, 0xe3, 0xbd, 0x9d, 0xe9, 0x63, 0xcb, 0xb8, 0x7b, - 0x6a, 0x75, 0x62, 0x26, 0x87, 0x79, 0x88, 0x22, 0x18, 0xe1, 0x0a, 0x5a, 0x1f, 0xbe, 0x18, 0x9c, - 0x61, 0x59, 0xa4, 0x54, 0xa8, 0x05, 0xd1, 0xaf, 0xa4, 0xbb, 0x57, 0x35, 0xeb, 0xe7, 0x51, 0x19, - 0x80, 0x7d, 0x61, 0x35, 0x4e, 0x40, 0x92, 0x44, 0x53, 0xd8, 0x1e, 0x5a, 0x11, 0x05, 0xfa, 0xc4, - 0xec, 0xb4, 0xbf, 0x9c, 0xd1, 0xcf, 0xf0, 0xbc, 0xeb, 0xfb, 0x97, 0xdb, 0x5a, 0xd3, 0x76, 0xf0, - 0xdb, 0x30, 0x7e, 0x0f, 0x5f, 0x96, 0x96, 0xf6, 0xa5, 0xf5, 0xeb, 0x80, 0x8d, 0x73, 0x36, 0xf8, - 0x6e, 0xf3, 0xb6, 0x32, 0xdf, 0xb2, 0x37, 0x57, 0x9a, 0x27, 0xca, 0xb3, 0x77, 0x38, 0x9d, 0xbb, - 0xe6, 0x6c, 0xee, 0x9a, 0xcf, 0x73, 0xd7, 0xbc, 0x59, 0xb8, 0xc6, 0x6c, 0xe1, 0x1a, 0x0f, 0x0b, - 0xd7, 0x38, 0xdd, 0xfb, 0x98, 0x67, 0x56, 0xa4, 0x12, 0x7c, 0xc8, 0x62, 0x5f, 0x69, 0x69, 0x45, - 0x5f, 0x49, 0x9e, 0x2f, 0x45, 0x55, 0xc4, 0x61, 0x5d, 0xfd, 0xf1, 0xee, 0x6b, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x5d, 0x1d, 0xb8, 0x1f, 0x65, 0x02, 0x00, 0x00, + // 368 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x91, 0xbd, 0x4e, 0xe3, 0x40, + 0x14, 0x85, 0xed, 0x44, 0x9b, 0xc2, 0xd9, 0x1f, 0xc9, 0xbb, 0x2b, 0xed, 0x7a, 0xb3, 0x0e, 0x72, + 0x9a, 0x34, 0x9e, 0xc1, 0x41, 0xbc, 0x40, 0x68, 0x91, 0x10, 0x81, 0x8a, 0x6e, 0xec, 0x8c, 0x9c, + 0x11, 0xce, 0x5c, 0xc7, 0x33, 0x8e, 0x30, 0xa2, 0xa2, 0x40, 0x94, 0x48, 0xbc, 0x05, 0x4f, 0x92, + 0x32, 0x12, 0x0d, 0x15, 0xa0, 0x84, 0x07, 0x41, 0x9e, 0x71, 0xf8, 0x91, 0x22, 0x2a, 0xaa, 0xb9, + 0xba, 0x73, 0xef, 0x39, 0xdf, 0x9c, 0xb1, 0x7e, 0x8b, 0x3c, 0x4d, 0x93, 0x02, 0x4f, 0x03, 0x3c, + 0xc9, 0x69, 0x56, 0xa0, 0x34, 0x03, 0x09, 0xf6, 0xcf, 0x68, 0x44, 0x18, 0x1f, 0x13, 0xc6, 0x91, + 0x1e, 0x40, 0xd3, 0xc0, 0x71, 0x23, 0x10, 0x63, 0x10, 0x38, 0x24, 0x82, 0xe2, 0x69, 0x10, 0x52, + 0x49, 0x02, 0x1c, 0x01, 0xe3, 0x7a, 0xc9, 0xf9, 0x15, 0x43, 0x0c, 0xaa, 0xc4, 0x65, 0x55, 0x75, + 0x5b, 0x31, 0x40, 0x9c, 0x50, 0x4c, 0x52, 0x86, 0x09, 0xe7, 0x20, 0x89, 0x64, 0xc0, 0x85, 0xbe, + 0xf5, 0x7e, 0x58, 0xdf, 0x0e, 0x94, 0xc1, 0x80, 0x4e, 0x72, 0x2a, 0xa4, 0x97, 0x5b, 0xdf, 0x57, + 0x0d, 0x91, 0x02, 0x17, 0xd4, 0x8e, 0xac, 0x86, 0x66, 0xf8, 0x63, 0x6e, 0xd4, 0xbb, 0xcd, 0xde, + 0x5f, 0xa4, 0x39, 0x50, 0xc9, 0x81, 0x2a, 0x0e, 0xb4, 0x03, 0x8c, 0xf7, 0x37, 0x67, 0xf7, 0x6d, + 0xe3, 0xe6, 0xa1, 0xdd, 0x8d, 0x99, 0x1c, 0xe5, 0x21, 0x8a, 0x60, 0x8c, 0x2b, 0x68, 0x7d, 0xf8, + 0x62, 0x78, 0x8c, 0x65, 0x91, 0x52, 0xa1, 0x16, 0xc4, 0xa0, 0x92, 0xee, 0x5d, 0xd4, 0xac, 0x2f, + 0xfb, 0x65, 0x00, 0xf6, 0xa9, 0xd5, 0x3c, 0x04, 0x49, 0x12, 0x4d, 0x61, 0x7b, 0x68, 0x4d, 0x14, + 0xe8, 0x1d, 0xb3, 0xd3, 0xf9, 0x70, 0x46, 0x3f, 0xc3, 0xf3, 0xce, 0x6f, 0x9f, 0xae, 0x6b, 0x2d, + 0xdb, 0xc1, 0x2f, 0xc3, 0xf8, 0x35, 0x7c, 0x59, 0x5a, 0xda, 0x67, 0xd6, 0xd7, 0x5d, 0x36, 0xc9, + 0xd9, 0xf0, 0xb3, 0xcd, 0x3b, 0xca, 0xfc, 0xbf, 0xfd, 0x6f, 0xad, 0x79, 0xa2, 0x3c, 0x9d, 0xfa, + 0x65, 0xcd, 0xec, 0xef, 0xcd, 0x16, 0xae, 0x39, 0x5f, 0xb8, 0xe6, 0xe3, 0xc2, 0x35, 0xaf, 0x96, + 0xae, 0x31, 0x5f, 0xba, 0xc6, 0xdd, 0xd2, 0x35, 0x8e, 0xb6, 0xdf, 0x86, 0x9a, 0x15, 0xa9, 0x04, + 0x1f, 0xb2, 0xd8, 0x57, 0x82, 0x5a, 0xd6, 0x57, 0xba, 0x27, 0x2b, 0x65, 0x95, 0x73, 0xd8, 0x50, + 0x1f, 0xbd, 0xf5, 0x1c, 0x00, 0x00, 0xff, 0xff, 0x38, 0xcd, 0x08, 0x12, 0x6a, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -161,6 +160,8 @@ const _ = grpc.SupportPackageIsVersion4 // QueryClient is the client API for Query service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// +// Deprecated: Do not use. type QueryClient interface { // TotalSupply queries the total supply of all coins. TotalSupply(ctx context.Context, in *SupplyRequest, opts ...grpc.CallOption) (*SupplyResponse, error) @@ -172,6 +173,7 @@ type queryClient struct { cc grpc1.ClientConn } +// Deprecated: Do not use. func NewQueryClient(cc grpc1.ClientConn) QueryClient { return &queryClient{cc} } @@ -195,6 +197,8 @@ func (c *queryClient) LiquidSupply(ctx context.Context, in *SupplyRequest, opts } // QueryServer is the server API for Query service. +// +// Deprecated: Do not use. type QueryServer interface { // TotalSupply queries the total supply of all coins. TotalSupply(context.Context, *SupplyRequest) (*SupplyResponse, error) @@ -202,6 +206,7 @@ type QueryServer interface { LiquidSupply(context.Context, *SupplyRequest) (*SupplyResponse, error) } +// Deprecated: Do not use. // UnimplementedQueryServer can be embedded to have forward compatible implementations. type UnimplementedQueryServer struct { } @@ -213,6 +218,7 @@ func (*UnimplementedQueryServer) LiquidSupply(ctx context.Context, req *SupplyRe return nil, status.Errorf(codes.Unimplemented, "method LiquidSupply not implemented") } +// Deprecated: Do not use. func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) }