diff --git a/proto/em/inflation/v1/genesis.proto b/proto/em/inflation/v1/genesis.proto index b97d430a..c046395f 100644 --- a/proto/em/inflation/v1/genesis.proto +++ b/proto/em/inflation/v1/genesis.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "em/inflation/v1/inflation.proto"; -option go_package = "github.com/e-money/em-ledger/x/inflation/internal/types"; +option go_package = "github.com/e-money/em-ledger/x/inflation/types"; message GenesisState { // todo (reviewer): yaml naming is a bit inconsistent. state contains assets diff --git a/proto/em/inflation/v1/inflation.proto b/proto/em/inflation/v1/inflation.proto index 23ec4d9a..9c26881a 100644 --- a/proto/em/inflation/v1/inflation.proto +++ b/proto/em/inflation/v1/inflation.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/e-money/em-ledger/x/inflation/internal/types"; +option go_package = "github.com/e-money/em-ledger/x/inflation/types"; message InflationAsset { string denom = 1 [ (gogoproto.moretags) = "yaml:\"denom\"" ]; diff --git a/proto/em/inflation/v1/query.proto b/proto/em/inflation/v1/query.proto index 4c42b5bb..9134d14c 100644 --- a/proto/em/inflation/v1/query.proto +++ b/proto/em/inflation/v1/query.proto @@ -6,7 +6,7 @@ import "cosmos/base/v1beta1/coin.proto"; import "google/api/annotations.proto"; import "em/inflation/v1/inflation.proto"; -option go_package = "github.com/e-money/em-ledger/x/inflation/internal/types"; +option go_package = "github.com/e-money/em-ledger/x/inflation/types"; service Query { rpc Inflation(QueryInflationRequest) returns (QueryInflationResponse) { diff --git a/x/authority/types/query.pb.gw.go b/x/authority/types/query.pb.gw.go index 1bc12e71..56e60801 100644 --- a/x/authority/types/query.pb.gw.go +++ b/x/authority/types/query.pb.gw.go @@ -20,6 +20,7 @@ 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" ) @@ -30,6 +31,7 @@ var _ status.Status var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage +var _ = metadata.Join func request_Query_GasPrices_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryGasPricesRequest @@ -70,12 +72,14 @@ func local_request_Query_UpgradePlan_0(ctx context.Context, marshaler runtime.Ma // 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { mux.Handle("GET", pattern_Query_GasPrices_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 { @@ -83,6 +87,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_GasPrices_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) @@ -96,6 +101,8 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_UpgradePlan_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 { @@ -103,6 +110,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_UpgradePlan_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/buyback/internal/types/query.pb.gw.go b/x/buyback/internal/types/query.pb.gw.go index f9666090..d332a498 100644 --- a/x/buyback/internal/types/query.pb.gw.go +++ b/x/buyback/internal/types/query.pb.gw.go @@ -20,6 +20,7 @@ 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" ) @@ -30,6 +31,7 @@ var _ status.Status var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage +var _ = metadata.Join func request_Query_Balance_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryBalanceRequest @@ -70,12 +72,14 @@ func local_request_Query_BuybackTime_0(ctx context.Context, marshaler runtime.Ma // 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { mux.Handle("GET", pattern_Query_Balance_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 { @@ -83,6 +87,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Balance_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) @@ -96,6 +101,8 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_BuybackTime_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 { @@ -103,6 +110,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_BuybackTime_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/inflation/accrual.go b/x/inflation/accrual.go index 93f7e715..ca869f8c 100644 --- a/x/inflation/accrual.go +++ b/x/inflation/accrual.go @@ -7,11 +7,9 @@ package inflation import ( "time" - "github.com/e-money/em-ledger/util" - - "github.com/e-money/em-ledger/x/inflation/internal/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/e-money/em-ledger/util" + "github.com/e-money/em-ledger/x/inflation/types" ) const ( diff --git a/x/inflation/alias.go b/x/inflation/alias.go index 9509267e..4b683c8f 100644 --- a/x/inflation/alias.go +++ b/x/inflation/alias.go @@ -10,8 +10,8 @@ package inflation import ( - "github.com/e-money/em-ledger/x/inflation/internal/keeper" - "github.com/e-money/em-ledger/x/inflation/internal/types" + "github.com/e-money/em-ledger/x/inflation/keeper" + "github.com/e-money/em-ledger/x/inflation/types" ) const ( diff --git a/x/inflation/client/cli/query.go b/x/inflation/client/cli/query.go index b032bf5b..28eccb65 100644 --- a/x/inflation/client/cli/query.go +++ b/x/inflation/client/cli/query.go @@ -7,9 +7,7 @@ package cli import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" - - "github.com/e-money/em-ledger/x/inflation/internal/types" - + "github.com/e-money/em-ledger/x/inflation/types" "github.com/spf13/cobra" ) diff --git a/x/inflation/client/rest/query.go b/x/inflation/client/rest/query.go index 8d4f72db..2eb8773d 100644 --- a/x/inflation/client/rest/query.go +++ b/x/inflation/client/rest/query.go @@ -8,7 +8,7 @@ import ( "fmt" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/e-money/em-ledger/x/inflation/internal/types" + "github.com/e-money/em-ledger/x/inflation/types" "net/http" ) diff --git a/x/inflation/genesis.go b/x/inflation/genesis.go index b1106e27..df3d9aa6 100644 --- a/x/inflation/genesis.go +++ b/x/inflation/genesis.go @@ -6,7 +6,7 @@ package inflation import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/e-money/em-ledger/x/inflation/internal/types" + "github.com/e-money/em-ledger/x/inflation/types" ) // NewGenesisState creates a new GenesisState object diff --git a/x/inflation/internal/keeper/grpc_query.go b/x/inflation/keeper/grpc_query.go similarity index 89% rename from x/inflation/internal/keeper/grpc_query.go rename to x/inflation/keeper/grpc_query.go index 3f5f41ff..63b33c95 100644 --- a/x/inflation/internal/keeper/grpc_query.go +++ b/x/inflation/keeper/grpc_query.go @@ -2,8 +2,9 @@ package keeper import ( "context" + sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/e-money/em-ledger/x/inflation/internal/types" + "github.com/e-money/em-ledger/x/inflation/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/inflation/internal/keeper/grpc_query_test.go b/x/inflation/keeper/grpc_query_test.go similarity index 95% rename from x/inflation/internal/keeper/grpc_query_test.go rename to x/inflation/keeper/grpc_query_test.go index 1325c8f3..bebab90b 100644 --- a/x/inflation/internal/keeper/grpc_query_test.go +++ b/x/inflation/keeper/grpc_query_test.go @@ -1,13 +1,14 @@ package keeper import ( + "testing" + "time" + "github.com/cosmos/cosmos-sdk/baseapp" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/e-money/em-ledger/x/inflation/internal/types" + "github.com/e-money/em-ledger/x/inflation/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - "time" ) func TestQueryInflation(t *testing.T) { diff --git a/x/inflation/internal/keeper/keeper.go b/x/inflation/keeper/keeper.go similarity index 98% rename from x/inflation/internal/keeper/keeper.go rename to x/inflation/keeper/keeper.go index d769a54d..b863f544 100644 --- a/x/inflation/internal/keeper/keeper.go +++ b/x/inflation/keeper/keeper.go @@ -6,12 +6,12 @@ package keeper import ( "fmt" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/tendermint/tendermint/libs/log" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/e-money/em-ledger/x/inflation/internal/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/e-money/em-ledger/x/inflation/types" + "github.com/tendermint/tendermint/libs/log" ) type Keeper struct { diff --git a/x/inflation/internal/keeper/querier.go b/x/inflation/keeper/querier.go similarity index 94% rename from x/inflation/internal/keeper/querier.go rename to x/inflation/keeper/querier.go index 4516dfbe..df5660bd 100644 --- a/x/inflation/internal/keeper/querier.go +++ b/x/inflation/keeper/querier.go @@ -6,12 +6,10 @@ package keeper import ( "github.com/cosmos/cosmos-sdk/codec" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - + "github.com/e-money/em-ledger/x/inflation/types" abci "github.com/tendermint/tendermint/abci/types" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/e-money/em-ledger/x/inflation/internal/types" ) // NewQuerier returns an inflation Querier handler. diff --git a/x/inflation/internal/keeper/querier_test.go b/x/inflation/keeper/querier_test.go similarity index 94% rename from x/inflation/internal/keeper/querier_test.go rename to x/inflation/keeper/querier_test.go index 71e63c3f..1a2a82cf 100644 --- a/x/inflation/internal/keeper/querier_test.go +++ b/x/inflation/keeper/querier_test.go @@ -7,9 +7,8 @@ package keeper import ( "testing" + "github.com/e-money/em-ledger/x/inflation/types" "github.com/stretchr/testify/require" - - "github.com/e-money/em-ledger/x/inflation/internal/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/inflation/internal/keeper/test_common.go b/x/inflation/keeper/test_common.go similarity index 98% rename from x/inflation/internal/keeper/test_common.go rename to x/inflation/keeper/test_common.go index f6dbfb85..94c83f63 100644 --- a/x/inflation/internal/keeper/test_common.go +++ b/x/inflation/keeper/test_common.go @@ -6,6 +6,9 @@ package keeper import ( + "testing" + "time" + "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" simappparams "github.com/cosmos/cosmos-sdk/simapp/params" @@ -22,13 +25,11 @@ import ( banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - "github.com/e-money/em-ledger/x/inflation/internal/types" + "github.com/e-money/em-ledger/x/inflation/types" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/libs/log" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - "testing" - "time" ) type testInput struct { diff --git a/x/inflation/module.go b/x/inflation/module.go index d1453a8d..a24bc1bf 100644 --- a/x/inflation/module.go +++ b/x/inflation/module.go @@ -8,6 +8,7 @@ import ( "context" "encoding/json" "fmt" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" @@ -15,8 +16,8 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" "github.com/e-money/em-ledger/x/inflation/client/cli" "github.com/e-money/em-ledger/x/inflation/client/rest" - "github.com/e-money/em-ledger/x/inflation/internal/keeper" - "github.com/e-money/em-ledger/x/inflation/internal/types" + "github.com/e-money/em-ledger/x/inflation/keeper" + "github.com/e-money/em-ledger/x/inflation/types" "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" diff --git a/x/inflation/state_test.go b/x/inflation/state_test.go index 248ecc97..a4a1d5be 100644 --- a/x/inflation/state_test.go +++ b/x/inflation/state_test.go @@ -24,8 +24,8 @@ import ( banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - "github.com/e-money/em-ledger/x/inflation/internal/keeper" - "github.com/e-money/em-ledger/x/inflation/internal/types" + "github.com/e-money/em-ledger/x/inflation/keeper" + "github.com/e-money/em-ledger/x/inflation/types" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/libs/log" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" diff --git a/x/inflation/internal/types/codec.go b/x/inflation/types/codec.go similarity index 100% rename from x/inflation/internal/types/codec.go rename to x/inflation/types/codec.go diff --git a/x/inflation/internal/types/errors.go b/x/inflation/types/errors.go similarity index 100% rename from x/inflation/internal/types/errors.go rename to x/inflation/types/errors.go diff --git a/x/inflation/internal/types/events.go b/x/inflation/types/events.go similarity index 100% rename from x/inflation/internal/types/events.go rename to x/inflation/types/events.go diff --git a/x/inflation/internal/types/expected_keepers.go b/x/inflation/types/expected_keepers.go similarity index 100% rename from x/inflation/internal/types/expected_keepers.go rename to x/inflation/types/expected_keepers.go diff --git a/x/inflation/internal/types/genesis.pb.go b/x/inflation/types/genesis.pb.go similarity index 81% rename from x/inflation/internal/types/genesis.pb.go rename to x/inflation/types/genesis.pb.go index 96ce8d17..b27ba374 100644 --- a/x/inflation/internal/types/genesis.pb.go +++ b/x/inflation/types/genesis.pb.go @@ -76,24 +76,23 @@ func init() { func init() { proto.RegisterFile("em/inflation/v1/genesis.proto", fileDescriptor_8d206018450f821a) } var fileDescriptor_8d206018450f821a = []byte{ - // 260 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8f, 0x3d, 0x4e, 0xc4, 0x30, - 0x10, 0x85, 0xe3, 0x66, 0x8b, 0xf0, 0x27, 0xad, 0x28, 0xd0, 0x4a, 0xd8, 0x28, 0x0d, 0x34, 0xeb, - 0x51, 0xa0, 0x40, 0xa2, 0xdc, 0x06, 0x51, 0x02, 0x1d, 0x15, 0x4e, 0x18, 0x8c, 0xa5, 0xd8, 0x13, - 0xc5, 0x26, 0x22, 0xb7, 0xe0, 0x58, 0x5b, 0x6e, 0x49, 0x15, 0xa1, 0xe4, 0x06, 0x9c, 0x00, 0x91, - 0x2c, 0x7f, 0xdb, 0xd9, 0xf3, 0xde, 0x7c, 0x6f, 0x5e, 0x7c, 0x88, 0x16, 0x8c, 0x7b, 0x2c, 0x54, - 0x30, 0xe4, 0xa0, 0x4e, 0x41, 0xa3, 0x43, 0x6f, 0xbc, 0x2c, 0x2b, 0x0a, 0x34, 0xdd, 0x43, 0x2b, - 0x7f, 0x64, 0x59, 0xa7, 0xb3, 0x7d, 0x4d, 0x9a, 0x06, 0x0d, 0xbe, 0x5e, 0xa3, 0x6d, 0xc6, 0x73, - 0xf2, 0x96, 0x3c, 0x64, 0xca, 0x23, 0xd4, 0x69, 0x86, 0x41, 0xa5, 0x90, 0x93, 0x71, 0x6b, 0x5d, - 0x6c, 0xa6, 0xfc, 0x32, 0x07, 0x43, 0x52, 0xc6, 0xdb, 0x97, 0x63, 0xf0, 0x6d, 0x50, 0x01, 0xa7, - 0xf7, 0xf1, 0x44, 0x79, 0x8f, 0xc1, 0x1f, 0xb0, 0x23, 0x76, 0xb2, 0x75, 0x2a, 0xe4, 0xc6, 0x21, - 0xf2, 0xea, 0xfb, 0x33, 0x2c, 0x2c, 0x8e, 0x97, 0xad, 0x88, 0xba, 0x56, 0xec, 0xfe, 0x9f, 0x7f, - 0xb4, 0x62, 0xa7, 0x51, 0xb6, 0xb8, 0x48, 0x46, 0x5c, 0x72, 0xb3, 0xe6, 0x2e, 0xae, 0x97, 0x1d, - 0x67, 0xab, 0x8e, 0xb3, 0xf7, 0x8e, 0xb3, 0xd7, 0x9e, 0x47, 0xab, 0x9e, 0x47, 0x6f, 0x3d, 0x8f, - 0xee, 0xce, 0xb5, 0x09, 0x4f, 0xcf, 0x99, 0xcc, 0xc9, 0x02, 0xce, 0x2d, 0x39, 0x6c, 0x00, 0xed, - 0xbc, 0xc0, 0x07, 0x8d, 0x15, 0xbc, 0xfc, 0x29, 0x62, 0x5c, 0xc0, 0xca, 0xa9, 0x02, 0x42, 0x53, - 0xa2, 0xcf, 0x26, 0x43, 0x97, 0xb3, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x72, 0x6e, 0x60, 0xc8, - 0x54, 0x01, 0x00, 0x00, + // 253 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8f, 0xbd, 0x4e, 0xc3, 0x30, + 0x14, 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0xa3, 0x75, 0xc7, 0xa3, 0xf7, 0x8e, 0x47, 0xf7, + 0x52, 0x9b, 0xf0, 0xfc, 0x92, 0xc9, 0x9c, 0x2c, 0xe0, 0xdc, 0x92, 0xc3, 0x1a, 0xd0, 0xce, 0x0b, + 0x7c, 0xd4, 0xb8, 0x84, 0xd7, 0x7f, 0x45, 0x42, 0x5d, 0xa2, 0xcf, 0x26, 0x7d, 0x85, 0x8b, 0xaf, + 0x00, 0x00, 0x00, 0xff, 0xff, 0xb2, 0xf5, 0x69, 0xdd, 0x4b, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/inflation/internal/types/inflation.pb.go b/x/inflation/types/inflation.pb.go similarity index 86% rename from x/inflation/internal/types/inflation.pb.go rename to x/inflation/types/inflation.pb.go index f4844775..2f623933 100644 --- a/x/inflation/internal/types/inflation.pb.go +++ b/x/inflation/types/inflation.pb.go @@ -135,37 +135,37 @@ func init() { func init() { proto.RegisterFile("em/inflation/v1/inflation.proto", fileDescriptor_25d8d858c54688c8) } var fileDescriptor_25d8d858c54688c8 = []byte{ - // 473 bytes of a gzipped FileDescriptorProto + // 465 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x3f, 0x6f, 0xd3, 0x40, 0x18, 0xc6, 0xed, 0x86, 0x56, 0xaa, 0x53, 0x68, 0x71, 0x19, 0x22, 0x0f, 0xbe, 0xea, 0x86, 0x2a, - 0x4b, 0xee, 0x94, 0x30, 0x20, 0x75, 0x40, 0xaa, 0xc5, 0x40, 0xa5, 0x2e, 0x98, 0x4e, 0x2c, 0xe5, - 0xec, 0xbc, 0x75, 0x2c, 0x7c, 0x3e, 0x93, 0xbb, 0x44, 0x44, 0xe2, 0x43, 0x74, 0x64, 0xe4, 0xe3, - 0x74, 0xec, 0x88, 0x18, 0x0c, 0x4a, 0x36, 0x26, 0xe4, 0x4f, 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0x04, 0xa6, 0xf4, 0x4b, 0xeb, 0xf7, 0x48, 0x73, - 0x05, 0xd3, 0x9c, 0x65, 0x46, 0x70, 0xb4, 0xa3, 0x8f, 0xe3, 0xe5, 0xbf, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x2b, 0x74, 0xef, 0x08, 0x44, 0x03, 0x00, 0x00, + 0x4b, 0xee, 0x94, 0xb0, 0x75, 0x40, 0xaa, 0xc5, 0xd0, 0x4a, 0x9d, 0x4c, 0x27, 0x96, 0x72, 0x76, + 0xde, 0x3a, 0x16, 0x3e, 0x9f, 0xe9, 0x5d, 0x22, 0x22, 0xf1, 0x21, 0x3a, 0x32, 0xf2, 0x71, 0x3a, + 0x76, 0x44, 0x0c, 0x07, 0x4a, 0x36, 0x26, 0xe4, 0x4f, 0x80, 0x72, 0xe7, 0x34, 0x2e, 0x4c, 0x9d, + 0xec, 0xf7, 0x8f, 0x7f, 0xef, 0xfb, 0x3c, 0x77, 0xf6, 0x10, 0x70, 0x9a, 0x97, 0xd7, 0x05, 0x53, + 0xb9, 0x28, 0xe9, 0x6c, 0xb8, 0x09, 0x48, 0x75, 0x23, 0x94, 0xf0, 0xf7, 0x81, 0x93, 0x4d, 0x6e, + 0x36, 0x0c, 0x5e, 0x65, 0x22, 0x13, 0xa6, 0x46, 0x57, 0x6f, 0xb6, 0x2d, 0x08, 0x53, 0x21, 0xb9, + 0x90, 0x34, 0x61, 0x12, 0xe8, 0x6c, 0x98, 0x80, 0x62, 0x43, 0x9a, 0x8a, 0xbc, 0xc1, 0x04, 0x28, + 0x13, 0x22, 0x2b, 0x80, 0x9a, 0x28, 0x99, 0x5e, 0x53, 0x95, 0x73, 0x90, 0x8a, 0xf1, 0xca, 0x36, + 0xe0, 0x3f, 0xae, 0xf7, 0xe2, 0x7c, 0x3d, 0xe7, 0x54, 0x4a, 0x50, 0xfe, 0xb1, 0xb7, 0x3d, 0x86, + 0x52, 0xf0, 0x9e, 0x7b, 0xe4, 0xf6, 0x77, 0x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0xdb, 0x61, 0xab, 0xc3, 0x96, 0xbd, + 0xce, 0x51, 0xa7, 0xdf, 0x1d, 0x21, 0xf2, 0xcf, 0x7d, 0x23, 0x8f, 0x2f, 0x45, 0xd4, 0x5f, 0xeb, + 0x7d, 0x9c, 0x97, 0xb5, 0x46, 0xcf, 0x1b, 0x93, 0x4d, 0x8c, 0xe3, 0x06, 0x7c, 0xf2, 0xec, 0xeb, + 0x37, 0xe4, 0x44, 0x67, 0x77, 0x8b, 0xd0, 0xbd, 0x5f, 0x84, 0xee, 0xaf, 0x45, 0xe8, 0xde, 0x2e, + 0x43, 0xe7, 0x7e, 0x19, 0x3a, 0xdf, 0x97, 0xa1, 0xf3, 0x9e, 0xb4, 0xb4, 0xc1, 0x80, 0x8b, 0x12, + 0xe6, 0x14, 0xf8, 0xa0, 0x80, 0x71, 0x06, 0x37, 0xf4, 0x73, 0xeb, 0xf7, 0x30, 0x3a, 0x93, 0x1d, + 0x73, 0x0a, 0xaf, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xef, 0x3d, 0xfd, 0xd2, 0x3b, 0x03, 0x00, + 0x00, } func (m *InflationAsset) Marshal() (dAtA []byte, err error) { diff --git a/x/inflation/internal/types/inflation_state.go b/x/inflation/types/inflation_state.go similarity index 100% rename from x/inflation/internal/types/inflation_state.go rename to x/inflation/types/inflation_state.go diff --git a/x/inflation/internal/types/inflation_state_test.go b/x/inflation/types/inflation_state_test.go similarity index 100% rename from x/inflation/internal/types/inflation_state_test.go rename to x/inflation/types/inflation_state_test.go diff --git a/x/inflation/internal/types/keys.go b/x/inflation/types/keys.go similarity index 100% rename from x/inflation/internal/types/keys.go rename to x/inflation/types/keys.go diff --git a/x/inflation/internal/types/query.pb.go b/x/inflation/types/query.pb.go similarity index 86% rename from x/inflation/internal/types/query.pb.go rename to x/inflation/types/query.pb.go index cb0bb75d..9d05281a 100644 --- a/x/inflation/internal/types/query.pb.go +++ b/x/inflation/types/query.pb.go @@ -118,28 +118,28 @@ func init() { func init() { proto.RegisterFile("em/inflation/v1/query.proto", fileDescriptor_8c188548f8d76523) } var fileDescriptor_8c188548f8d76523 = []byte{ - // 329 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0xbf, 0x4b, 0xc3, 0x40, - 0x14, 0xc7, 0x73, 0x42, 0x05, 0xa3, 0x20, 0x84, 0xfa, 0x83, 0x56, 0x2f, 0x12, 0x41, 0x5d, 0x9a, - 0x23, 0x75, 0x10, 0x1c, 0xbb, 0x89, 0x53, 0xeb, 0xe6, 0x76, 0xa9, 0xcf, 0x18, 0xc8, 0xdd, 0x4b, - 0x73, 0xd7, 0x62, 0x46, 0x5d, 0x5d, 0x04, 0xff, 0xa9, 0x8e, 0x05, 0x17, 0xa7, 0x22, 0xad, 0x7f, - 0x81, 0x7f, 0x81, 0xf4, 0x5a, 0xa3, 0x46, 0xc1, 0xed, 0xb8, 0xef, 0x8f, 0xf7, 0x79, 0xcf, 0xae, - 0x83, 0x60, 0xb1, 0xbc, 0x4e, 0xb8, 0x8e, 0x51, 0xb2, 0x41, 0xc0, 0x7a, 0x7d, 0xc8, 0x72, 0x3f, - 0xcd, 0x50, 0xa3, 0xb3, 0x0e, 0xc2, 0x2f, 0x44, 0x7f, 0x10, 0xd4, 0xaa, 0x11, 0x46, 0x68, 0x34, - 0x36, 0x7b, 0xcd, 0x6d, 0x35, 0xda, 0x45, 0x25, 0x50, 0xb1, 0x90, 0x2b, 0x60, 0x83, 0x20, 0x04, - 0xcd, 0x03, 0xd6, 0xc5, 0x58, 0x2e, 0xf4, 0x9d, 0x08, 0x31, 0x4a, 0x80, 0xf1, 0x34, 0x66, 0x5c, - 0x4a, 0xd4, 0xa6, 0x4f, 0x2d, 0x54, 0xb7, 0x4c, 0xf0, 0x35, 0xd1, 0x18, 0xbc, 0x2d, 0x7b, 0xa3, - 0x3d, 0x83, 0x3a, 0xfb, 0xfc, 0xef, 0x40, 0xaf, 0x0f, 0x4a, 0x7b, 0x60, 0x6f, 0x96, 0x05, 0x95, - 0xa2, 0x54, 0xe0, 0x9c, 0xdb, 0x15, 0xa5, 0xb9, 0x86, 0x6d, 0xb2, 0x47, 0x8e, 0x56, 0x9b, 0xae, - 0x5f, 0x5a, 0xc4, 0x2f, 0x22, 0x17, 0x33, 0x5b, 0xab, 0x3a, 0x1c, 0xbb, 0xd6, 0xfb, 0xd8, 0x5d, - 0xcb, 0xb9, 0x48, 0x4e, 0x3d, 0x93, 0xf5, 0x3a, 0xf3, 0x8e, 0xe6, 0x03, 0xb1, 0x2b, 0x66, 0x8e, - 0x73, 0x47, 0xec, 0x95, 0x22, 0xe9, 0x1c, 0xfc, 0x6a, 0xfd, 0x13, 0xb3, 0x76, 0xf8, 0xaf, 0x6f, - 0x4e, 0xed, 0xed, 0xdf, 0x3f, 0xbf, 0x3d, 0x2d, 0xed, 0x3a, 0x75, 0x06, 0x0d, 0x81, 0x12, 0xf2, - 0x9f, 0x77, 0x31, 0x34, 0xad, 0xf6, 0x70, 0x42, 0xc9, 0x68, 0x42, 0xc9, 0xeb, 0x84, 0x92, 0xc7, - 0x29, 0xb5, 0x46, 0x53, 0x6a, 0xbd, 0x4c, 0xa9, 0x75, 0x79, 0x12, 0xc5, 0xfa, 0xa6, 0x1f, 0xfa, - 0x5d, 0x14, 0x45, 0x01, 0x88, 0x46, 0x02, 0x57, 0x11, 0x64, 0xec, 0xf6, 0x5b, 0x59, 0x2c, 0x35, - 0x64, 0x92, 0x27, 0x4c, 0xe7, 0x29, 0xa8, 0x70, 0xd9, 0xdc, 0xf9, 0xf8, 0x23, 0x00, 0x00, 0xff, - 0xff, 0xae, 0xc0, 0x7b, 0xcc, 0x0c, 0x02, 0x00, 0x00, + // 324 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x3f, 0x4b, 0xfb, 0x40,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, 0xf9, 0xcc, 0xd6, 0xaa, 0x0e, 0xc7, 0xbe, 0xf3, 0x36, 0xf6, + 0x57, 0x72, 0x21, 0xd3, 0xa3, 0xc0, 0x66, 0x83, 0xf6, 0xbc, 0xa3, 0x79, 0x4f, 0xdc, 0x8a, 0x9d, + 0xe3, 0xdd, 0x12, 0x77, 0xa9, 0x48, 0x7a, 0x7b, 0x3f, 0x5a, 0x7f, 0xc5, 0xac, 0xed, 0xff, 0xe9, + 0x9b, 0x53, 0x07, 0xbb, 0x77, 0x4f, 0xaf, 0x8f, 0xff, 0xb6, 0xbd, 0x3a, 0x87, 0x86, 0x44, 0x05, + 0xf9, 0xf7, 0xbb, 0x58, 0x9a, 0xd6, 0xf1, 0x70, 0x42, 0xc9, 0x68, 0x42, 0xc9, 0xcb, 0x84, 0x92, + 0x87, 0x29, 0x75, 0x46, 0x53, 0xea, 0x3c, 0x4f, 0xa9, 0x73, 0xc1, 0xe2, 0xc4, 0x5c, 0xf7, 0x23, + 0xd6, 0x41, 0x59, 0x14, 0x80, 0x6c, 0xa4, 0x70, 0x19, 0x43, 0x8f, 0xdf, 0x7c, 0x29, 0x33, 0x79, + 0x06, 0x3a, 0xfa, 0x6f, 0xcf, 0x7b, 0xf8, 0x1e, 0x00, 0x00, 0xff, 0xff, 0x9a, 0xde, 0x43, 0x55, + 0x03, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/inflation/internal/types/query.pb.gw.go b/x/inflation/types/query.pb.gw.go similarity index 93% rename from x/inflation/internal/types/query.pb.gw.go rename to x/inflation/types/query.pb.gw.go index ed38c0a0..0a2f8fad 100644 --- a/x/inflation/internal/types/query.pb.gw.go +++ b/x/inflation/types/query.pb.gw.go @@ -20,6 +20,7 @@ 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" ) @@ -30,6 +31,7 @@ var _ status.Status var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage +var _ = metadata.Join func request_Query_Inflation_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryInflationRequest @@ -52,12 +54,14 @@ func local_request_Query_Inflation_0(ctx context.Context, marshaler runtime.Mars // 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { mux.Handle("GET", pattern_Query_Inflation_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 { @@ -65,6 +69,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Inflation_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/issuer/types/query.pb.gw.go b/x/issuer/types/query.pb.gw.go index 9f15aa7e..50058000 100644 --- a/x/issuer/types/query.pb.gw.go +++ b/x/issuer/types/query.pb.gw.go @@ -20,6 +20,7 @@ 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" ) @@ -30,6 +31,7 @@ var _ status.Status var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage +var _ = metadata.Join func request_Query_Issuers_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryIssuersRequest @@ -52,12 +54,14 @@ func local_request_Query_Issuers_0(ctx context.Context, marshaler runtime.Marsha // 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { mux.Handle("GET", pattern_Query_Issuers_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 { @@ -65,6 +69,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Issuers_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/liquidityprovider/types/query.pb.gw.go b/x/liquidityprovider/types/query.pb.gw.go index ed3bc53b..1c279e1d 100644 --- a/x/liquidityprovider/types/query.pb.gw.go +++ b/x/liquidityprovider/types/query.pb.gw.go @@ -20,6 +20,7 @@ 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" ) @@ -30,6 +31,7 @@ var _ status.Status var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage +var _ = metadata.Join func request_Query_List_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryListRequest @@ -106,12 +108,14 @@ func local_request_Query_Mintable_0(ctx context.Context, marshaler runtime.Marsh // 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { mux.Handle("GET", pattern_Query_List_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 { @@ -119,6 +123,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_List_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) @@ -132,6 +137,8 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Mintable_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 { @@ -139,6 +146,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Mintable_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/market/types/query.pb.gw.go b/x/market/types/query.pb.gw.go index e6a0498d..f04e14a0 100644 --- a/x/market/types/query.pb.gw.go +++ b/x/market/types/query.pb.gw.go @@ -20,6 +20,7 @@ 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" ) @@ -30,6 +31,7 @@ var _ status.Status var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage +var _ = metadata.Join func request_Query_ByAccount_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryByAccountRequest @@ -182,12 +184,14 @@ func local_request_Query_Instrument_0(ctx context.Context, marshaler runtime.Mar // 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { mux.Handle("GET", pattern_Query_ByAccount_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 { @@ -195,6 +199,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_ByAccount_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) @@ -208,6 +213,8 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Instruments_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 { @@ -215,6 +222,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Instruments_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) @@ -228,6 +236,8 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Instrument_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 { @@ -235,6 +245,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Instrument_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/queries/types/query.pb.gw.go b/x/queries/types/query.pb.gw.go index fafaa172..ac118740 100644 --- a/x/queries/types/query.pb.gw.go +++ b/x/queries/types/query.pb.gw.go @@ -20,6 +20,7 @@ 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" ) @@ -30,6 +31,7 @@ var _ status.Status var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage +var _ = metadata.Join func request_Query_Circulating_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryCirculatingRequest @@ -106,12 +108,14 @@ func local_request_Query_Spendable_0(ctx context.Context, marshaler runtime.Mars // 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { mux.Handle("GET", pattern_Query_Circulating_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 { @@ -119,6 +123,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Circulating_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) @@ -132,6 +137,8 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Spendable_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 { @@ -139,6 +146,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Spendable_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)